diff --git a/index.js b/index.js index 6752647..d291e2e 100644 --- a/index.js +++ b/index.js @@ -417,6 +417,17 @@ app.use('/panel', panelRoutes); // Hot path is in-memory only; no DB/disk reads per request. app.get('/', (req, res) => homepageService.respond(req, res)); app.head('/', (req, res) => homepageService.respond(req, res)); +app.get([ + '/assets/*', + '/apple-touch-icon.png', + '/favicon.ico', + '/favicon.svg', + '/favicon-96x96.png', + '/site.webmanifest', + '/vite.svg', + '/web-app-manifest-192x192.png', + '/web-app-manifest-512x512.png', +], (req, res, next) => homepageService.serveTemplateAsset(req, res, next)); // ==================== ERROR HANDLING ==================== diff --git a/package.json b/package.json index 2cd55e4..79b74b9 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "scripts": { "start": "node index.js", "dev": "nodemon index.js", - "test": "node scripts/test-session-cookie-config.js && node scripts/test-i18n-fallback.js && node scripts/test-node-ui-meta.js && node scripts/test-node-active-api.js && node scripts/test-auth-subscription-boundaries.js", + "test": "node scripts/test-session-cookie-config.js && node scripts/test-i18n-fallback.js && node scripts/test-node-ui-meta.js && node scripts/test-node-active-api.js && node scripts/test-auth-subscription-boundaries.js && node scripts/test-homepage-templates.js", "build:assets": "npx --yes esbuild public/css/style.css public/css/network.css --minify --loader:.css=css --outdir=public/css --out-extension:.css=.min.css --allow-overwrite && npx --yes esbuild public/js/network.js --minify --outfile=public/js/network.min.js" }, "dependencies": { diff --git a/scripts/test-homepage-templates.js b/scripts/test-homepage-templates.js new file mode 100644 index 0000000..b133065 --- /dev/null +++ b/scripts/test-homepage-templates.js @@ -0,0 +1,138 @@ +const assert = require('assert'); +const fs = require('fs'); +const os = require('os'); +const path = require('path'); +const Module = require('module'); + +function createResponse() { + return { + statusCode: 200, + headers: {}, + body: null, + ended: false, + setHeader(name, value) { + this.headers[name.toLowerCase()] = value; + }, + removeHeader(name) { + delete this.headers[name.toLowerCase()]; + }, + status(code) { + this.statusCode = code; + return this; + }, + send(value) { + this.body = value; + this.ended = true; + return this; + }, + end() { + this.ended = true; + return this; + }, + }; +} + +async function withHomepageService(settings, run) { + const originalLoad = Module._load; + const updates = []; + + Module._load = function patchedLoad(request, parent, isMain) { + if (parent?.filename?.endsWith('/src/services/homepageService.js')) { + if (request === '../models/settingsModel') { + return { + get: async () => settings, + update: async (update) => { + updates.push(update); + return settings; + }, + }; + } + if (request === '../utils/logger') { + return { info() {}, warn() {}, error() {}, debug() {} }; + } + } + return originalLoad.call(this, request, parent, isMain); + }; + + try { + delete require.cache[require.resolve('../src/services/homepageService')]; + const homepageService = require('../src/services/homepageService'); + return await run(homepageService, updates); + } finally { + Module._load = originalLoad; + delete require.cache[require.resolve('../src/services/homepageService')]; + } +} + +function writeTemplate(root, slug, html = '

template

') { + const dir = path.join(root, slug); + fs.mkdirSync(path.join(dir, 'assets'), { recursive: true }); + fs.writeFileSync(path.join(dir, 'index.html'), html); + fs.writeFileSync(path.join(dir, 'assets', 'app.js'), 'console.log("asset");'); +} + +async function main() { + const tempRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'celerity-sni-templates-')); + process.env.SNI_TEMPLATES_DIR = tempRoot; + + try { + writeTemplate(tempRoot, 'alpha', '

alpha masking

'); + writeTemplate(tempRoot, 'beta', '

beta masking

'); + fs.mkdirSync(path.join(tempRoot, 'no-index'), { recursive: true }); + writeTemplate(tempRoot, '.hidden', '

hidden

'); + + await withHomepageService({ homepage: { mode: 'nginx' } }, async (homepageService) => { + assert.deepStrictEqual( + homepageService.listTemplates().map(template => template.slug), + ['alpha', 'beta'], + 'only non-hidden template directories with index.html should be listed' + ); + assert.strictEqual(homepageService.isValidTemplateSlug('alpha'), true); + assert.strictEqual(homepageService.isValidTemplateSlug('../alpha'), false); + assert.strictEqual(homepageService.isValidTemplateSlug('.hidden'), false); + assert.strictEqual(homepageService.isValidTemplateSlug('no-index'), false); + }); + + await withHomepageService( + { homepage: { mode: 'template', templateSlug: 'alpha' } }, + async (homepageService) => { + await homepageService.init(); + const res = createResponse(); + homepageService.respond({ method: 'GET', headers: {} }, res); + + assert.strictEqual(homepageService.getMode(), 'template'); + assert.strictEqual(homepageService.getTemplateSlug(), 'alpha'); + assert.match(String(res.body), /alpha masking/); + assert.strictEqual( + homepageService.resolveTemplateAssetPath('/assets/app.js'), + path.join(tempRoot, 'alpha', 'assets', 'app.js') + ); + assert.strictEqual(homepageService.resolveTemplateAssetPath('/assets/../index.html'), null); + assert.strictEqual(homepageService.resolveTemplateAssetPath('/panel'), null); + } + ); + + await withHomepageService( + { homepage: { mode: 'template', templateSlug: 'missing' } }, + async (homepageService, updates) => { + await homepageService.init(); + + assert.strictEqual(homepageService.getMode(), 'nginx'); + assert.deepStrictEqual(updates[0], { + 'homepage.mode': 'nginx', + 'homepage.templateSlug': '', + }); + } + ); + } finally { + delete process.env.SNI_TEMPLATES_DIR; + fs.rmSync(tempRoot, { recursive: true, force: true }); + } + + console.log('homepage template tests passed'); +} + +main().catch((error) => { + console.error(error); + process.exit(1); +}); diff --git a/sni-templates/10gag/apple-touch-icon.png b/sni-templates/10gag/apple-touch-icon.png new file mode 100644 index 0000000..9885941 Binary files /dev/null and b/sni-templates/10gag/apple-touch-icon.png differ diff --git a/sni-templates/10gag/assets/script.js b/sni-templates/10gag/assets/script.js new file mode 100644 index 0000000..a2538c5 --- /dev/null +++ b/sni-templates/10gag/assets/script.js @@ -0,0 +1,120 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zu={exports:{}},rl={},Ju={exports:{}},j={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zn=Symbol.for("react.element"),mc=Symbol.for("react.portal"),hc=Symbol.for("react.fragment"),gc=Symbol.for("react.strict_mode"),yc=Symbol.for("react.profiler"),vc=Symbol.for("react.provider"),wc=Symbol.for("react.context"),kc=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),Sc=Symbol.for("react.memo"),Cc=Symbol.for("react.lazy"),Do=Symbol.iterator;function Ec(e){return e===null||typeof e!="object"?null:(e=Do&&e[Do]||e["@@iterator"],typeof e=="function"?e:null)}var qu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bu=Object.assign,es={};function on(e,t,n){this.props=e,this.context=t,this.refs=es,this.updater=n||qu}on.prototype.isReactComponent={};on.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};on.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ts(){}ts.prototype=on.prototype;function Wi(e,t,n){this.props=e,this.context=t,this.refs=es,this.updater=n||qu}var $i=Wi.prototype=new ts;$i.constructor=Wi;bu($i,on.prototype);$i.isPureReactComponent=!0;var Fo=Array.isArray,ns=Object.prototype.hasOwnProperty,Hi={current:null},rs={key:!0,ref:!0,__self:!0,__source:!0};function ls(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)ns.call(t,r)&&!rs.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=E[Q];if(0>>1;Ql(xl,z))vtl(nr,xl)?(E[Q]=nr,E[vt]=z,Q=vt):(E[Q]=xl,E[yt]=z,Q=yt);else if(vtl(nr,z))E[Q]=nr,E[vt]=z,Q=vt;else break e}}return M}function l(E,M){var z=E.sortIndex-M.sortIndex;return z!==0?z:E.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],h=1,m=null,p=3,k=!1,x=!1,w=!1,U=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(E){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=E)r(c),M.sortIndex=M.expirationTime,t(s,M);else break;M=n(c)}}function y(E){if(w=!1,f(E),!x)if(n(s)!==null)x=!0,wl(C);else{var M=n(c);M!==null&&kl(y,M.startTime-E)}}function C(E,M){x=!1,w&&(w=!1,d(P),P=-1),k=!0;var z=p;try{for(f(M),m=n(s);m!==null&&(!(m.expirationTime>M)||E&&!Me());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,p=m.priorityLevel;var Z=Q(m.expirationTime<=M);M=e.unstable_now(),typeof Z=="function"?m.callback=Z:m===n(s)&&r(s),f(M)}else r(s);m=n(s)}if(m!==null)var tr=!0;else{var yt=n(c);yt!==null&&kl(y,yt.startTime-M),tr=!1}return tr}finally{m=null,p=z,k=!1}}var N=!1,_=null,P=-1,B=5,T=-1;function Me(){return!(e.unstable_now()-TE||125Q?(E.sortIndex=z,t(c,E),n(s)===null&&E===n(c)&&(w?(d(P),P=-1):w=!0,kl(y,z-Q))):(E.sortIndex=Z,t(s,E),x||k||(x=!0,wl(C))),E},e.unstable_shouldYield=Me,e.unstable_wrapCallback=function(E){var M=p;return function(){var z=p;p=M;try{return E.apply(this,arguments)}finally{p=z}}}})(as);ss.exports=as;var Oc=ss.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dc=I,we=Oc;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Fc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ao={},Wo={};function Uc(e){return Xl.call(Wo,e)?!0:Xl.call(Ao,e)?!1:Fc.test(e)?Wo[e]=!0:(Ao[e]=!0,!1)}function Ac(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wc(e,t,n,r){if(t===null||typeof t>"u"||Ac(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ae(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bi=/[\-:]([a-z])/g;function Qi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bi,Qi);te[t]=new ae(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bi,Qi);te[t]=new ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bi,Qi);te[t]=new ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)});te.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ki(e,t,n,r){var l=te.hasOwnProperty(t)?te[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{El=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kn(e):""}function $c(e){switch(e.tag){case 5:return kn(e.type);case 16:return kn("Lazy");case 13:return kn("Suspense");case 19:return kn("SuspenseList");case 0:case 2:case 15:return e=Nl(e.type,!1),e;case 11:return e=Nl(e.type.render,!1),e;case 1:return e=Nl(e.type,!0),e;default:return""}}function ql(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ot:return"Fragment";case Rt:return"Portal";case Gl:return"Profiler";case Yi:return"StrictMode";case Zl:return"Suspense";case Jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fs:return(e.displayName||"Context")+".Consumer";case ds:return(e._context.displayName||"Context")+".Provider";case Xi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gi:return t=e.displayName||null,t!==null?t:ql(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return ql(e(t))}catch{}}return null}function Hc(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ql(t);case 8:return t===Yi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ms(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vc(e){var t=ms(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ir(e){e._valueTracker||(e._valueTracker=Vc(e))}function hs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ms(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ir(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function bl(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ho(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gs(e,t){t=t.checked,t!=null&&Ki(e,"checked",t,!1)}function ei(e,t){gs(e,t);var n=ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ti(e,t.type,n):t.hasOwnProperty("defaultValue")&&ti(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ti(e,t,n){(t!=="number"||Ir(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xn=Array.isArray;function Kt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var En={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bc=["Webkit","ms","Moz","O"];Object.keys(En).forEach(function(e){Bc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),En[t]=En[e]})});function ks(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||En.hasOwnProperty(e)&&En[e]?(""+t).trim():t+"px"}function xs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ks(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Qc=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function li(e,t){if(t){if(Qc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(v(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(v(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(v(61))}if(t.style!=null&&typeof t.style!="object")throw Error(v(62))}}function ii(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oi=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ui=null,Yt=null,Xt=null;function Ko(e){if(e=bn(e)){if(typeof ui!="function")throw Error(v(280));var t=e.stateNode;t&&(t=sl(t),ui(e.stateNode,e.type,t))}}function Ss(e){Yt?Xt?Xt.push(e):Xt=[e]:Yt=e}function Cs(){if(Yt){var e=Yt,t=Xt;if(Xt=Yt=null,Ko(e),t)for(e=0;e>>=0,e===0?32:31-(nd(e)/rd|0)|0}var ur=64,sr=4194304;function Sn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Sn(u):(i&=o,i!==0&&(r=Sn(i)))}else o=n&~l,o!==0?r=Sn(o):i!==0&&(r=Sn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ie(t),e[t]=n}function ud(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_n),tu=" ",nu=!1;function Vs(e,t){switch(e){case"keyup":return Od.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dt=!1;function Fd(e,t){switch(e){case"compositionend":return Bs(t);case"keypress":return t.which!==32?null:(nu=!0,tu);case"textInput":return e=t.data,e===tu&&nu?null:e;default:return null}}function Ud(e,t){if(Dt)return e==="compositionend"||!lo&&Vs(e,t)?(e=$s(),Er=to=nt=null,Dt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ou(n)}}function Xs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gs(){for(var e=window,t=Ir();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ir(e.document)}return t}function io(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yd(e){var t=Gs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xs(n.ownerDocument.documentElement,n)){if(r!==null&&io(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=uu(n,i);var o=uu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ft=null,pi=null,Mn=null,mi=!1;function su(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mi||Ft==null||Ft!==Ir(r)||(r=Ft,"selectionStart"in r&&io(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mn&&Wn(Mn,r)||(Mn=r,r=Wr(pi,"onSelect"),0Wt||(e.current=ki[Wt],ki[Wt]=null,Wt--)}function O(e,t){Wt++,ki[Wt]=e.current,e.current=t}var pt={},ie=ht(pt),fe=ht(!1),_t=pt;function bt(e,t){var n=e.type.contextTypes;if(!n)return pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Hr(){F(fe),F(ie)}function hu(e,t,n){if(ie.current!==pt)throw Error(v(168));O(ie,t),O(fe,n)}function la(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(v(108,Hc(e)||"Unknown",l));return H({},n,r)}function Vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pt,_t=ie.current,O(ie,e),O(fe,fe.current),!0}function gu(e,t,n){var r=e.stateNode;if(!r)throw Error(v(169));n?(e=la(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,F(fe),F(ie),O(ie,e)):F(fe),O(fe,n)}var He=null,al=!1,Al=!1;function ia(e){He===null?He=[e]:He.push(e)}function of(e){al=!0,ia(e)}function gt(){if(!Al&&He!==null){Al=!0;var e=0,t=R;try{var n=He;for(R=1;e>=o,l-=o,Ve=1<<32-Ie(t)+l|n<P?(B=_,_=null):B=_.sibling;var T=p(d,_,f[P],y);if(T===null){_===null&&(_=B);break}e&&_&&T.alternate===null&&t(d,_),a=i(T,a,P),N===null?C=T:N.sibling=T,N=T,_=B}if(P===f.length)return n(d,_),A&&wt(d,P),C;if(_===null){for(;PP?(B=_,_=null):B=_.sibling;var Me=p(d,_,T.value,y);if(Me===null){_===null&&(_=B);break}e&&_&&Me.alternate===null&&t(d,_),a=i(Me,a,P),N===null?C=Me:N.sibling=Me,N=Me,_=B}if(T.done)return n(d,_),A&&wt(d,P),C;if(_===null){for(;!T.done;P++,T=f.next())T=m(d,T.value,y),T!==null&&(a=i(T,a,P),N===null?C=T:N.sibling=T,N=T);return A&&wt(d,P),C}for(_=r(d,_);!T.done;P++,T=f.next())T=k(_,d,P,T.value,y),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?P:T.key),a=i(T,a,P),N===null?C=T:N.sibling=T,N=T);return e&&_.forEach(function(an){return t(d,an)}),A&&wt(d,P),C}function U(d,a,f,y){if(typeof f=="object"&&f!==null&&f.type===Ot&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case lr:e:{for(var C=f.key,N=a;N!==null;){if(N.key===C){if(C=f.type,C===Ot){if(N.tag===7){n(d,N.sibling),a=l(N,f.props.children),a.return=d,d=a;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===qe&&wu(C)===N.type){n(d,N.sibling),a=l(N,f.props),a.ref=gn(d,N,f),a.return=d,d=a;break e}n(d,N);break}else t(d,N);N=N.sibling}f.type===Ot?(a=Nt(f.props.children,d.mode,y,f.key),a.return=d,d=a):(y=Lr(f.type,f.key,f.props,null,d.mode,y),y.ref=gn(d,a,f),y.return=d,d=y)}return o(d);case Rt:e:{for(N=f.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){n(d,a.sibling),a=l(a,f.children||[]),a.return=d,d=a;break e}else{n(d,a);break}else t(d,a);a=a.sibling}a=Yl(f,d.mode,y),a.return=d,d=a}return o(d);case qe:return N=f._init,U(d,a,N(f._payload),y)}if(xn(f))return x(d,a,f,y);if(dn(f))return w(d,a,f,y);hr(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(n(d,a.sibling),a=l(a,f),a.return=d,d=a):(n(d,a),a=Kl(f,d.mode,y),a.return=d,d=a),o(d)):n(d,a)}return U}var tn=aa(!0),ca=aa(!1),Kr=ht(null),Yr=null,Vt=null,ao=null;function co(){ao=Vt=Yr=null}function fo(e){var t=Kr.current;F(Kr),e._currentValue=t}function Ci(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zt(e,t){Yr=e,ao=Vt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(ao!==e)if(e={context:e,memoizedValue:t,next:null},Vt===null){if(Yr===null)throw Error(v(308));Vt=e,Yr.dependencies={lanes:0,firstContext:e}}else Vt=Vt.next=e;return t}var St=null;function po(e){St===null?St=[e]:St.push(e)}function da(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,po(t)):(n.next=l.next,l.next=n),t.interleaved=n,Xe(e,r)}function Xe(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var be=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function st(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,L&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Xe(e,n)}return l=r.interleaved,l===null?(t.next=t,po(r)):(t.next=l.next,l.next=t),r.interleaved=t,Xe(e,n)}function _r(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qi(e,n)}}function ku(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xr(e,t,n,r){var l=e.updateQueue;be=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==o&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(i!==null){var m=l.baseState;o=0,h=c=s=null,u=i;do{var p=u.lane,k=u.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:k,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var x=e,w=u;switch(p=t,k=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){m=x.call(k,m,p);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,p=typeof x=="function"?x.call(k,m,p):x,p==null)break e;m=H({},m,p);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else k={eventTime:k,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=k,s=m):h=h.next=k,o|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(h===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);zt|=o,e.lanes=o,e.memoizedState=m}}function xu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),t()}finally{R=n,$l.transition=r}}function za(){return Pe().memoizedState}function cf(e,t,n){var r=ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ja(e))Ta(t,n);else if(n=da(e,t,n,r),n!==null){var l=ue();Re(n,e,r,l),La(n,t,r)}}function df(e,t,n){var r=ct(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ja(e))Ta(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Oe(u,o)){var s=t.interleaved;s===null?(l.next=l,po(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=da(e,t,l,r),n!==null&&(l=ue(),Re(n,e,r,l),La(n,t,r))}}function ja(e){var t=e.alternate;return e===$||t!==null&&t===$}function Ta(e,t){zn=Zr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function La(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qi(e,n)}}var Jr={readContext:_e,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},ff={readContext:_e,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Cu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=Fe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cf.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:Su,useDebugValue:So,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=Su(!1),t=e[0];return e=af.bind(null,e[1]),Fe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$,l=Fe();if(A){if(n===void 0)throw Error(v(407));n=n()}else{if(n=t(),q===null)throw Error(v(349));Mt&30||ga(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Cu(va.bind(null,r,i,e),[e]),r.flags|=2048,Xn(9,ya.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Fe(),t=q.identifierPrefix;if(A){var n=Be,r=Ve;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ue]=t,e[Vn]=r,Ha(e,t,!1,!1),t.stateNode=e;e:{switch(o=ii(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lln&&(t.flags|=128,r=!0,yn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!A)return re(t),null}else 2*K()-i.renderingStartTime>ln&&n!==1073741824&&(t.flags|=128,r=!0,yn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=W.current,O(W,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Mo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(v(156,t.tag))}function kf(e,t){switch(uo(t),t.tag){case 1:return pe(t.type)&&Hr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nn(),F(fe),F(ie),yo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return go(t),null;case 13:if(F(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(v(340));en()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(W),null;case 4:return nn(),null;case 10:return fo(t.type._context),null;case 22:case 23:return Mo(),null;case 24:return null;default:return null}}var yr=!1,le=!1,xf=typeof WeakSet=="function"?WeakSet:Set,S=null;function Bt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Li(e,t,n){try{n()}catch(r){V(e,t,r)}}var Ru=!1;function Sf(e,t){if(hi=Ur,e=Gs(),io(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,c=0,h=0,m=e,p=null;t:for(;;){for(var k;m!==n||l!==0&&m.nodeType!==3||(u=o+l),m!==i||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(k=m.firstChild)!==null;)p=m,m=k;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=o),p===i&&++h===r&&(s=o),(k=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=k}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(gi={focusedElem:e,selectionRange:n},Ur=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,U=x.memoizedState,d=t.stateNode,a=d.getSnapshotBeforeUpdate(t.elementType===t.type?w:je(t.type,w),U);d.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(v(163))}}catch(y){V(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return x=Ru,Ru=!1,x}function jn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Li(t,n,i)}l=l.next}while(l!==r)}}function fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ii(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Qa(e){var t=e.alternate;t!==null&&(e.alternate=null,Qa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[Vn],delete t[wi],delete t[rf],delete t[lf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ka(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ka(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ri(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$r));else if(r!==4&&(e=e.child,e!==null))for(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}function Oi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Oi(e,t,n),e=e.sibling;e!==null;)Oi(e,t,n),e=e.sibling}var b=null,Te=!1;function Je(e,t,n){for(n=n.child;n!==null;)Ya(e,t,n),n=n.sibling}function Ya(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(ll,n)}catch{}switch(n.tag){case 5:le||Bt(n,t);case 6:var r=b,l=Te;b=null,Je(e,t,n),b=r,Te=l,b!==null&&(Te?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Te?(e=b,n=n.stateNode,e.nodeType===8?Ul(e.parentNode,n):e.nodeType===1&&Ul(e,n),Un(e)):Ul(b,n.stateNode));break;case 4:r=b,l=Te,b=n.stateNode.containerInfo,Te=!0,Je(e,t,n),b=r,Te=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Li(n,t,o),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!le&&(Bt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,Je(e,t,n),le=r):Je(e,t,n);break;default:Je(e,t,n)}}function Du(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xf),t.forEach(function(r){var l=Tf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ef(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,el=0,L&6)throw Error(v(331));var l=L;for(L|=4,S=e.current;S!==null;){var i=S,o=i.child;if(S.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sK()-_o?Et(e,0):No|=n),me(e,t)}function tc(e,t){t===0&&(e.mode&1?(t=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):t=1);var n=ue();e=Xe(e,t),e!==null&&(Jn(e,t,n),me(e,n))}function jf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tc(e,n)}function Tf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(v(314))}r!==null&&r.delete(t),tc(e,n)}var nc;nc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,vf(e,t,n);de=!!(e.flags&131072)}else de=!1,A&&t.flags&1048576&&oa(t,Qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zr(e,t),e=t.pendingProps;var l=bt(t,ie.current);Zt(t,n),l=wo(null,t,r,e,l,n);var i=ko();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(i=!0,Vr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mo(t),l.updater=dl,t.stateNode=l,l._reactInternals=t,Ni(t,r,e,n),t=Mi(null,t,r,!0,i,n)):(t.tag=0,A&&i&&oo(t),oe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=If(r),e=je(r,e),l){case 0:t=Pi(null,t,r,e,n);break e;case 1:t=Tu(null,t,r,e,n);break e;case 11:t=zu(null,t,r,e,n);break e;case 14:t=ju(null,t,r,je(r.type,e),n);break e}throw Error(v(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),Pi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),Tu(e,t,r,l,n);case 3:e:{if(Aa(t),e===null)throw Error(v(387));r=t.pendingProps,i=t.memoizedState,l=i.element,fa(e,t),Xr(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=rn(Error(v(423)),t),t=Lu(e,t,r,n,l);break e}else if(r!==l){l=rn(Error(v(424)),t),t=Lu(e,t,r,n,l);break e}else for(ye=ut(t.stateNode.containerInfo.firstChild),ve=t,A=!0,Le=null,n=ca(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(en(),r===l){t=Ge(e,t,n);break e}oe(e,t,r,n)}t=t.child}return t;case 5:return pa(t),e===null&&Si(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,yi(r,l)?o=null:i!==null&&yi(r,i)&&(t.flags|=32),Ua(e,t),oe(e,t,o,n),t.child;case 6:return e===null&&Si(t),null;case 13:return Wa(e,t,n);case 4:return ho(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tn(t,null,r,n):oe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),zu(e,t,r,l,n);case 7:return oe(e,t,t.pendingProps,n),t.child;case 8:return oe(e,t,t.pendingProps.children,n),t.child;case 12:return oe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,O(Kr,r._currentValue),r._currentValue=o,i!==null)if(Oe(i.value,o)){if(i.children===l.children&&!fe.current){t=Ge(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Qe(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ci(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(v(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ci(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}oe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Zt(t,n),l=_e(l),r=r(l),t.flags|=1,oe(e,t,r,n),t.child;case 14:return r=t.type,l=je(r,t.pendingProps),l=je(r.type,l),ju(e,t,r,l,n);case 15:return Da(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:je(r,l),zr(e,t),t.tag=1,pe(r)?(e=!0,Vr(t)):e=!1,Zt(t,n),Ia(t,r,l),Ni(t,r,l,n),Mi(null,t,r,!0,e,n);case 19:return $a(e,t,n);case 22:return Fa(e,t,n)}throw Error(v(156,t.tag))};function rc(e,t){return js(e,t)}function Lf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new Lf(e,t,n,r)}function jo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function If(e){if(typeof e=="function")return jo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xi)return 11;if(e===Gi)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")jo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ot:return Nt(n.children,l,i,t);case Yi:o=8,l|=8;break;case Gl:return e=Ee(12,n,t,l|2),e.elementType=Gl,e.lanes=i,e;case Zl:return e=Ee(13,n,t,l),e.elementType=Zl,e.lanes=i,e;case Jl:return e=Ee(19,n,t,l),e.elementType=Jl,e.lanes=i,e;case ps:return ml(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ds:o=10;break e;case fs:o=9;break e;case Xi:o=11;break e;case Gi:o=14;break e;case qe:o=16,r=null;break e}throw Error(v(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Nt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function ml(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=ps,e.lanes=n,e.stateNode={isHidden:!1},e}function Kl(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function Yl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rf(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pl(0),this.expirationTimes=Pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function To(e,t,n,r,l,i,o,u,s){return e=new Rf(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ee(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mo(i),e}function Of(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uc)}catch(e){console.error(e)}}uc(),us.exports=ke;var Wf=us.exports,sc,Bu=Wf;sc=Bu.createRoot,Bu.hydrateRoot;const ac=I.createContext({darkMode:!1,toggleDarkMode:()=>{}}),$f=()=>I.useContext(ac),Hf=({children:e})=>{const[t,n]=I.useState(!1);I.useEffect(()=>{localStorage.theme==="dark"||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(n(!0),document.documentElement.classList.add("dark")):(n(!1),document.documentElement.classList.remove("dark"))},[]);const r=()=>{n(!t),t?(document.documentElement.classList.remove("dark"),localStorage.theme="light"):(document.documentElement.classList.add("dark"),localStorage.theme="dark")};return g.jsx(ac.Provider,{value:{darkMode:t,toggleDarkMode:r},children:e})};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Vf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),he=(e,t)=>{const n=I.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:s,...c},h)=>I.createElement("svg",{ref:h,...Vf,width:l,height:l,stroke:r,strokeWidth:o?Number(i)*24/Number(l):i,className:["lucide",`lucide-${Bf(e)}`,u].join(" "),...c},[...t.map(([m,p])=>I.createElement(m,p)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qf=he("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kf=he("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yf=he("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xf=he("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gf=he("Laugh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zf=he("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jf=he("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qf=he("SmilePlus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bf=he("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ep=he("SunMoon",[["path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4",key:"1fu5g2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.9 4.9 1.4 1.4",key:"b9915j"}],["path",{d:"m17.7 17.7 1.4 1.4",key:"qc3ed3"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.3 17.7-1.4 1.4",key:"5gca6"}],["path",{d:"m19.1 4.9-1.4 1.4",key:"wpu9u6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tp=he("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z",key:"y3tblf"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const np=he("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rp=he("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lp=he("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cc=I.createContext({activeCategory:"all",setActiveCategory:()=>{}}),dc=()=>I.useContext(cc),ip=({children:e})=>{const[t,n]=I.useState("all");return g.jsx(cc.Provider,{value:{activeCategory:t,setActiveCategory:n},children:e})},op=[{id:"all",label:"All",icon:bf},{id:"memes",label:"Memes",icon:Gf},{id:"images",label:"Images",icon:Xf},{id:"gifs",label:"GIFs",icon:Kf},{id:"videos",label:"Videos",icon:rp},{id:"trending",label:"Trending",icon:np}],up=()=>{const{activeCategory:e,setActiveCategory:t}=dc();return g.jsx("div",{className:"w-full overflow-x-auto scrollbar-hide py-3 border-t border-gray-200 dark:border-gray-700",children:g.jsx("div",{className:"container mx-auto px-4",children:g.jsx("div",{className:"flex space-x-2",children:op.map(n=>{const r=n.icon;return g.jsxs("button",{onClick:()=>t(n.id),className:`flex items-center px-4 py-2 rounded-full transition-all duration-200 whitespace-nowrap ${e===n.id?"bg-indigo-500 text-white":"bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600"}`,children:[g.jsx(r,{className:"h-4 w-4 mr-2"}),n.label]},n.id)})})})})},sp=()=>{const{darkMode:e,toggleDarkMode:t}=$f(),[n,r]=Sr.useState(!1),[l,i]=Sr.useState(!1);Sr.useEffect(()=>{const u=()=>{window.scrollY>50?r(!0):r(!1),window.scrollY>500?i(!0):i(!1)};return window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)},[]);const o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return g.jsxs(g.Fragment,{children:[g.jsxs("header",{className:`sticky top-0 z-10 bg-white dark:bg-gray-800 shadow-md transition-all duration-300 ${n?"py-2":"py-4"}`,children:[g.jsxs("div",{className:"container mx-auto px-4 flex flex-col md:flex-row items-center justify-between",children:[g.jsxs("div",{className:"flex flex-col items-center md:items-start mb-3 md:mb-0",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(qf,{className:"h-8 w-8 text-indigo-500 mr-2"}),g.jsx("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Meme Flow"})]}),g.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1",children:"Your daily dose of laughter"})]}),g.jsx("div",{className:"flex items-center gap-4",children:g.jsx("button",{onClick:t,className:"p-2 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors","aria-label":e?"Switch to light mode":"Switch to dark mode",children:g.jsx(ep,{className:"h-5 w-5 text-gray-700 dark:text-gray-300"})})})]}),g.jsx(up,{})]}),l&&g.jsx("button",{onClick:o,className:"fixed z-20 bottom-6 right-6 p-2 rounded-full bg-indigo-500 text-white shadow-lg hover:bg-indigo-600 transition-all duration-300 animate-fade-in","aria-label":"Scroll to top",children:g.jsx(Qf,{className:"h-6 w-6"})})]})},ap=[{id:1,username:"meme_lord_42",text:"LMAO 🤣 This is literally me every Monday!",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme1"},{id:2,username:"gif_queen",text:"I can't stop watching this on repeat 😂",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme2"},{id:3,username:"internet_explorer",text:"Wait, is this what they call a meme? 😅",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme3"},{id:4,username:"coffee_coder",text:"My code when it finally works 🎉",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme4"},{id:5,username:"meme_connoisseur",text:"This deserves to be in the meme hall of fame!",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme5"},{id:6,username:"dank_master",text:"This meme speaks to my soul on a spiritual level 🙏",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme6"},{id:7,username:"pepe_fan",text:"Finally, some good freaking memes!",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme7"},{id:8,username:"meme_dealer",text:"I'm saving this one for later 😎",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme8"},{id:9,username:"wholesome_vibes",text:"This made my day so much better ❤️",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme9"},{id:10,username:"procrastinator_prime",text:"Me avoiding my responsibilities like...",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme10"},{id:11,username:"midnight_scroller",text:"3 AM meme hits different 😴",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme11"},{id:12,username:"meme_critic",text:"10/10 would laugh again",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme12"},{id:13,username:"comedy_gold",text:"Take my upvote and get out 😂",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme13"},{id:14,username:"relatable_af",text:"Never have I been so offended by something I 100% agree with",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme14"},{id:15,username:"laugh_track",text:"My humor is broken, why am I laughing so hard 💀",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme15"},{id:16,username:"meme_historian",text:"This will be in history books someday",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme16"},{id:17,username:"reaction_master",text:"Me: *saves to reaction folder*",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme17"},{id:18,username:"quality_poster",text:"Now this is the content I'm here for 👌",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme18"},{id:19,username:"scroll_warrior",text:"I've been laughing at this for 20 minutes straight",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme19"},{id:20,username:"meme_enthusiast",text:"Chef's kiss 🤌 Perfect execution",avatar:"https://api.dicebear.com/7.x/avataaars/svg?seed=meme20"}],cp=({isOpen:e,onClose:t,contentTitle:n})=>{const[r,l]=I.useState(!1),[i,o]=I.useState(""),[u,s]=I.useState(""),[c,h]=I.useState(""),[m,p]=I.useState(""),k=w=>{w.preventDefault(),p("Invalid credentials. Please try again.")},x=Sr.useMemo(()=>[...ap].sort(()=>.5-Math.random()).slice(0,5),[]);return e?g.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:g.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg w-full max-w-lg max-h-[90vh] overflow-y-auto",children:[g.jsxs("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700 flex justify-between items-center sticky top-0 bg-white dark:bg-gray-800",children:[g.jsx("h2",{className:"text-xl font-semibold text-gray-800 dark:text-white",children:"Comments"}),g.jsx("button",{onClick:t,className:"p-1 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-full",children:g.jsx(lp,{className:"h-6 w-6"})})]}),g.jsxs("div",{className:"p-4",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-800 dark:text-white mb-4",children:n}),r?g.jsxs("form",{onSubmit:k,className:"space-y-4",children:[m&&g.jsx("div",{className:"p-3 bg-red-100 text-red-700 rounded-lg",children:m}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Email"}),g.jsx("input",{type:"email",value:i,onChange:w=>o(w.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 dark:bg-gray-700 dark:border-gray-600",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Password"}),g.jsx("input",{type:"password",value:u,onChange:w=>s(w.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 dark:bg-gray-700 dark:border-gray-600",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Verification Code"}),g.jsx("input",{type:"text",value:c,onChange:w=>h(w.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 dark:bg-gray-700 dark:border-gray-600",required:!0})]}),g.jsx("button",{type:"submit",className:"w-full bg-indigo-500 text-white py-2 rounded-lg hover:bg-indigo-600 transition-colors",children:"Log in"}),g.jsx("button",{type:"button",onClick:()=>l(!1),className:"w-full text-gray-600 dark:text-gray-300 hover:underline",children:"Back to comments"})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"space-y-4",children:x.map(w=>g.jsxs("div",{className:"flex space-x-3",children:[g.jsx("img",{src:w.avatar,alt:w.username,className:"w-10 h-10 rounded-full"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-gray-800 dark:text-white",children:w.username}),g.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:w.text})]})]},w.id))}),g.jsxs("div",{className:"mt-6 p-4 bg-gray-50 dark:bg-gray-700 rounded-lg",children:[g.jsx("p",{className:"text-center text-gray-600 dark:text-gray-300 mb-3",children:"To view all comments and join the conversation"}),g.jsx("button",{onClick:()=>l(!0),className:"w-full bg-indigo-500 text-white py-2 rounded-lg hover:bg-indigo-600 transition-colors",children:"Log in to MemeFlow"})]})]})]})]})}):null},Qu=({item:e})=>{const[t,n]=I.useState(!1),[r,l]=I.useState(!1),[i,o]=I.useState(e.likes),[u,s]=I.useState(!1),c=()=>{o(t?p=>p-1:p=>p+1),n(!t)},h=()=>{l(!r)},m=()=>{switch(e.type){case"image":return g.jsx("img",{src:e.url,alt:e.title,className:"w-full rounded-t-lg object-cover max-h-[500px]",loading:"lazy"});case"gif":return g.jsx("img",{src:e.url,alt:e.title,className:"w-full rounded-t-lg object-cover max-h-[500px]",loading:"lazy"});case"video":return g.jsx("video",{src:e.url,controls:!0,className:"w-full rounded-t-lg max-h-[500px]",poster:e.thumbnail,preload:"metadata"});default:return null}};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden transform transition-all duration-200 hover:shadow-xl hover:-translate-y-1",children:[g.jsx("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700",children:g.jsx("h3",{className:"font-semibold text-gray-800 dark:text-white truncate",children:e.title})}),g.jsxs("div",{className:"relative",children:[m(),g.jsx("div",{className:"absolute top-2 right-2 bg-black bg-opacity-60 text-white px-2 py-1 rounded text-xs",children:e.type.toUpperCase()})]}),g.jsx("div",{className:"p-4",children:g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsxs("button",{onClick:c,className:`flex items-center space-x-1 ${t?"text-red-500":"text-gray-600 dark:text-gray-400 hover:text-red-500 dark:hover:text-red-500"} transition-colors`,"aria-label":t?"Unlike":"Like",children:[g.jsx(tp,{className:"h-5 w-5"}),g.jsx("span",{children:i})]}),g.jsxs("button",{onClick:()=>s(!0),className:"flex items-center space-x-1 text-gray-600 dark:text-gray-400 hover:text-blue-500 dark:hover:text-blue-500 transition-colors","aria-label":"Comment",children:[g.jsx(Zf,{className:"h-5 w-5"}),g.jsx("span",{children:e.comments})]})]}),g.jsxs("div",{className:"flex items-center space-x-2",children:[g.jsx("button",{onClick:h,className:`p-2 rounded-full ${r?"text-purple-500":"text-gray-600 dark:text-gray-400 hover:text-purple-500 dark:hover:text-purple-500"} transition-colors`,"aria-label":r?"Unsave":"Save",children:g.jsx(Yf,{className:"h-5 w-5",fill:r?"currentColor":"none"})}),g.jsx("button",{className:"p-2 rounded-full text-gray-600 dark:text-gray-400 hover:text-green-500 dark:hover:text-green-500 transition-colors","aria-label":"Share",children:g.jsx(Jf,{className:"h-5 w-5"})})]})]})})]}),g.jsx(cp,{isOpen:u,onClose:()=>s(!1),contentTitle:e.title})]})},dp=()=>g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx("div",{className:"w-10 h-10 border-4 border-indigo-200 border-t-indigo-500 rounded-full animate-spin"}),g.jsx("p",{className:"mt-2 text-gray-600 dark:text-gray-400",children:"Loading more laughs..."})]}),Ku=[{url:"https://images.unsplash.com/photo-1546776310-eef45dd6d63c",title:"When Monday hits you like...",type:"image"},{url:"https://images.unsplash.com/photo-1517849845537-4d257902454a",title:"Deal with it - doggo edition",type:"image"},{url:"https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba",title:"When you see the food arriving",type:"image"},{url:"https://images.unsplash.com/photo-1533738363-b7f9aef128ce",title:"Living my best life",type:"image"},{url:"https://images.unsplash.com/photo-1573865526739-10659fec78a5",title:"When someone mentions food",type:"image"},{url:"https://images.unsplash.com/photo-1543852786-1cf6624b9987",title:"Monday morning mood",type:"image"},{url:"https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9",title:"When the weekend finally arrives",type:"image"},{url:"https://images.unsplash.com/photo-1516978101789-720eacb59e79",title:"POV: The snack at 3am",type:"image"},{url:"https://images.unsplash.com/photo-1425082661705-1834bfd09dca",title:"When you're trying to adult",type:"image"},{url:"https://images.unsplash.com/photo-1527416876370-fb74d128c3dc",title:"When you finally find the bug in your code",type:"image"},{url:"https://images.unsplash.com/photo-1536589961747-e239b2abbec2",title:"When the coffee kicks in",type:"image"},{url:"https://images.unsplash.com/photo-1574158622682-e40e69881006",title:"When someone says 'free food'",type:"image"},{url:"https://images.unsplash.com/photo-1537151608828-ea2b11777ee8",title:"When you remember it's Friday",type:"image"},{url:"https://images.unsplash.com/photo-1518791841217-8f162f1e1131",title:"When you see your food coming at a restaurant",type:"image"},{url:"https://images.unsplash.com/photo-1561948955-570b270e7c36",title:"When the code works on first try",type:"image"},{url:"https://images.unsplash.com/photo-1495360010541-f48722b34f7d",title:"Me judging your code",type:"image"},{url:"https://images.unsplash.com/photo-1519052537078-e6302a4968d4",title:"Code review feedback be like",type:"image"},{url:"https://images.unsplash.com/photo-1504006833117-8886a355efbf",title:"When the deadline is tomorrow",type:"image"},{url:"https://images.unsplash.com/photo-1526336024174-e58f5cdd8e13",title:"Debugging at 3 AM",type:"image"},{url:"https://images.unsplash.com/photo-1533738363-b7f9aef128ce",title:"When the tests pass unexpectedly",type:"image"},{url:"https://images.unsplash.com/photo-1544568100-847a948585b9",title:"Code review day be like",type:"image"},{url:"https://images.unsplash.com/photo-1507146426996-ef05306b995a",title:"When you find a bug in production",type:"image"},{url:"https://images.unsplash.com/photo-1453227588063-bb302b62f50b",title:"Meeting that could've been an email",type:"image"},{url:"https://images.unsplash.com/photo-1494256997604-768d1f608cac",title:"When someone touches my branch",type:"image"},{url:"https://images.unsplash.com/photo-1504595403659-9088ce801e29",title:"Rubber duck debugging session",type:"image"},{url:"https://images.unsplash.com/photo-1489084917528-a57e68a79a1e",title:"When the caffeine hits",type:"image"},{url:"https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9",title:"Deploying on Friday like",type:"image"},{url:"https://images.unsplash.com/photo-1533738699159-d0c68059bb61",title:"When Stack Overflow is down",type:"image"},{url:"https://images.unsplash.com/photo-1517423440428-a5a00ad493e8",title:"Me explaining my code",type:"image"},{url:"https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba",title:"When the PR gets approved",type:"image"},{url:"https://images.unsplash.com/photo-1533743983669-94fa5c4338ec",title:"404 Sleep Not Found",type:"image"},{url:"https://images.unsplash.com/photo-1516978101789-720eacb59e79",title:"When you find the perfect meme",type:"image"},{url:"https://images.unsplash.com/photo-1504208434309-cb69f4fe52b0",title:"Debugging in production",type:"image"},{url:"https://images.unsplash.com/photo-1533743983669-94fa5c4338ec",title:"When the build fails",type:"image"}],Yu=[{url:"https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExajk4cmNidXk0bG16NmRtNWVkcDVnajVsbWlpMHptOXd4MTU2bmhteCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/8gQR12M5d4kPMRYoC1/giphy.gif",title:"Happy dance time!",type:"gif"},{url:"https://media.giphy.com/media/ICOgUNjpvO0PC/giphy.gif",title:"Cat keyboard warrior",type:"gif"},{url:"https://media.giphy.com/media/nrXif9YExO9EI/giphy.gif",title:"Math lady confusion",type:"gif"},{url:"https://media.giphy.com/media/13GIgrGdslD9oQ/giphy.gif",title:"Party parrot vibes",type:"gif"},{url:"https://media.giphy.com/media/jpbnoe3UIa8TU8LM13/giphy.gif",title:"Mind = Blown",type:"gif"},{url:"https://media.giphy.com/media/6PopYBwOlKS8o/giphy.gif",title:"Loading... still loading...",type:"gif"},{url:"https://media.giphy.com/media/QMHoU66sBxyt3B8hjt/giphy.gif",title:"Everything is fine",type:"gif"},{url:"https://media.giphy.com/media/l36kU80xPf0ojG0Erg/giphy.gif",title:"Where did everybody go?",type:"gif"},{url:"https://media.giphy.com/media/kaq6GnxDlJaBq/giphy.gif",title:"Surprised monkey face",type:"gif"},{url:"https://media.giphy.com/media/3o7btPCcdNniyf0ArS/giphy.gif",title:"Awkward moment seal",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Homer fading away",type:"gif"},{url:"https://media.giphy.com/media/jUwpNzg9IcyrK/giphy.gif",title:"Spitting cereal guy",type:"gif"},{url:"https://media.giphy.com/media/l3q2K5jinAlChoCLS/giphy.gif",title:"The classic blink",type:"gif"},{url:"https://media.giphy.com/media/3o7527pa7qs9kCG78A/giphy.gif",title:"NO NO NO NO",type:"gif"},{url:"https://media.giphy.com/media/1X7lCRp8iE0yrdZvwd/giphy.gif",title:"Sipping tea time",type:"gif"},{url:"https://media.giphy.com/media/xUPGcEliCc7bETyfO8/giphy.gif",title:"When nothing makes sense",type:"gif"},{url:"https://media.giphy.com/media/xT9IgzoKnwFNmISR8I/giphy.gif",title:"Success dance",type:"gif"},{url:"https://media.giphy.com/media/3o7btNRTJ700Vzmn5e/giphy.gif",title:"Facepalm moment",type:"gif"},{url:"https://media.giphy.com/media/l46CyJmS9KUbokzsI/giphy.gif",title:"Not impressed",type:"gif"},{url:"https://media.giphy.com/media/LmNwrBhejkK9EFP504/giphy.gif",title:"Victory dance",type:"gif"},{url:"https://media.giphy.com/media/5wWf7H89PisM6An8UAU/giphy.gif",title:"Trying my best",type:"gif"},{url:"https://media.giphy.com/media/xT9IgG50Fb7Mi0prBC/giphy.gif",title:"Don't touch my stuff",type:"gif"},{url:"https://media.giphy.com/media/13HgwGsXF0aiGY/giphy.gif",title:"Happy dance",type:"gif"},{url:"https://media.giphy.com/media/3oKIPnAiaMCws8nOsE/giphy.gif",title:"Everything is chaos",type:"gif"},{url:"https://media.giphy.com/media/l0IylOPCNkiqOgMyA/giphy.gif",title:"Complex explanations",type:"gif"},{url:"https://media.giphy.com/media/l0MYEqEzwMWFCg8rm/giphy.gif",title:"When things go wrong",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Deep thinking",type:"gif"},{url:"https://media.giphy.com/media/l46CyJmS9KUbokzsI/giphy.gif",title:"Not what I expected",type:"gif"},{url:"https://media.giphy.com/media/l0HlGu6yGT8XHQM5a/giphy.gif",title:"System crash",type:"gif"},{url:"https://media.giphy.com/media/3o7btNa0RUYa5E7iiQ/giphy.gif",title:"Friday mood",type:"gif"},{url:"https://media.giphy.com/media/xT9IgzoKnwFNmISR8I/giphy.gif",title:"Found it!",type:"gif"},{url:"https://media.giphy.com/media/l0MYt5jPR6QX5pnqM/giphy.gif",title:"Problem solved",type:"gif"},{url:"https://media.giphy.com/media/xUPGcjUQcWclgK94ti/giphy.gif",title:"Time to clean up",type:"gif"},{url:"https://media.giphy.com/media/13HgwGsXF0aiGY/giphy.gif",title:"Victory dance",type:"gif"},{url:"https://media.giphy.com/media/3o7btNa0RUYa5E7iiQ/giphy.gif",title:"Weekend vibes",type:"gif"},{url:"https://media.giphy.com/media/3oEjHGr1Fhz0kyv8Ig/giphy.gif",title:"Mind blown reaction",type:"gif"},{url:"https://media.giphy.com/media/l41lUJ1YoZB1lHVPG/giphy.gif",title:"Excited cat jump",type:"gif"},{url:"https://media.giphy.com/media/5VKbvrjxpVJCM/giphy.gif",title:"Surprised pikachu",type:"gif"},{url:"https://media.giphy.com/media/3o7btXkbsV26U95Uly/giphy.gif",title:"Dancing kid",type:"gif"},{url:"https://media.giphy.com/media/l4HodBpDmoMA5p9bG/giphy.gif",title:"Confused math",type:"gif"},{url:"https://media.giphy.com/media/3o7btPCcdNniyf0ArS/giphy.gif",title:"Awkward seal",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Shocked reaction",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Deep thoughts",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Fade away",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Dance party",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Mind blown",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Thinking process",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Disappearing",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Happy time",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Shocked face",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Deep contemplation",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Vanish",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Celebration dance",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Mind explosion",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Pondering",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Fading out",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Victory moves",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Surprise reaction",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Deep focus",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Dissolve away",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Happy dance moves",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Amazed reaction",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Deep thinking mode",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Vanishing trick",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Dance celebration",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Blown away",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Lost in thought",type:"gif"},{url:"https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif",title:"Magic disappear",type:"gif"},{url:"https://media.giphy.com/media/3o7btNhMBytxAM6YBa/giphy.gif",title:"Victory celebration",type:"gif"},{url:"https://media.giphy.com/media/l0HlvtIPzPzsNYbXW/giphy.gif",title:"Total shock",type:"gif"},{url:"https://media.giphy.com/media/3o7btQ0NH6Kl8CxCfK/giphy.gif",title:"Contemplating life",type:"gif"}],Xu=[{url:"https://www.example.com/video1.mp4",thumbnail:"https://images.unsplash.com/photo-1518791841217-8f162f1e1131",title:"Epic fail compilation 2025",type:"video"},{url:"https://www.example.com/video2.mp4",thumbnail:"https://images.unsplash.com/photo-1537151608828-ea2b11777ee8",title:"Cats vs Cucumbers - Ultimate Collection",type:"video"},{url:"https://www.example.com/video3.mp4",thumbnail:"https://images.unsplash.com/photo-1574158622682-e40e69881006",title:"Try not to laugh challenge",type:"video"},{url:"https://www.example.com/video4.mp4",thumbnail:"https://images.unsplash.com/photo-1527416876370-fb74d128c3dc",title:"Best programming memes compilation",type:"video"}],Gu=["Me during standup meetings be like","POV: Your code finally works","That moment when the caffeine hits","My brain at 3 AM:","When the documentation is outdated","Senior devs watching juniors debug","How I explain my code to others","When someone touches my branch","Code review day be like","My rubber duck debugging session","When the production server crashes","Me explaining my code to myself","The bug that only happens in production","When someone asks about the deadline","My code before code review vs after","When the CI/CD pipeline breaks","Finding a bug in production","Me pretending to understand the code","When the client wants new features","Debugging without console.logs"];let wn=new Set;const fp=async(e,t)=>{await new Promise(i=>setTimeout(i,1500));let n=[];t==="all"||t==="trending"?n=[...Ku,...Yu,...Xu]:t==="images"||t==="memes"?n=Ku:t==="gifs"?n=Yu:t==="videos"&&(n=Xu),(e===1||wn.size>=n.length)&&wn.clear();let r=n.filter(i=>!wn.has(i.url));r.length===0&&(r=n,wn.clear()),r=pp([...r]);const l=r.slice(0,6);return l.forEach(i=>wn.add(i.url)),l.map((i,o)=>{const s=Math.random()<.1?Gu[Math.floor(Math.random()*Gu.length)]:i.title,c=Math.random().toString(36).substr(2,8);return{id:`${e}-${o}-${Math.random().toString(36).substr(2,9)}`,title:s,url:i.url,thumbnail:i.thumbnail||i.url,type:i.type,likes:Math.floor(Math.random()*1e3),comments:Math.floor(Math.random()*100),user:{username:`user_${Math.random().toString(36).substr(2,5)}`,avatar:`https://api.dicebear.com/7.x/avataaars/svg?seed=${c}`}}})};function pp(e){const t=[...e];for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t}const mp=()=>{const[e,t]=I.useState([]),[n,r]=I.useState(!0),[l,i]=I.useState(!0),[o,u]=I.useState(1),{activeCategory:s}=dc(),c=I.useRef(null),h=I.useCallback(m=>{n||(c.current&&c.current.disconnect(),c.current=new IntersectionObserver(p=>{p[0].isIntersecting&&l&&u(k=>k+1)}),m&&c.current.observe(m))},[n,l]);return I.useEffect(()=>{t([]),u(1),i(!0)},[s]),I.useEffect(()=>{r(!0),fp(o,s).then(m=>{t(p=>{const k=new Set(p.map(w=>w.id)),x=m.filter(w=>!k.has(w.id));return[...p,...x]}),i(m.length>0),r(!1)}).catch(m=>{console.error("Error fetching content:",m),r(!1)})},[o,s]),g.jsxs("div",{className:"mt-6",children:[e.length===0&&!n?g.jsx("div",{className:"flex flex-col items-center justify-center py-16",children:g.jsx("p",{className:"text-xl text-gray-500 dark:text-gray-400",children:"No content found"})}):g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((m,p)=>e.length===p+1?g.jsx("div",{ref:h,children:g.jsx(Qu,{item:m})},m.id):g.jsx(Qu,{item:m},m.id))}),n&&g.jsx("div",{className:"flex justify-center mt-8 mb-8",children:g.jsx(dp,{})})]})};function hp(){return g.jsx(Hf,{children:g.jsxs("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-900 transition-colors duration-200",children:[g.jsx(sp,{}),g.jsx("main",{className:"container mx-auto px-4 py-6",children:g.jsx(mp,{})})]})})}sc(document.getElementById("root")).render(g.jsx(I.StrictMode,{children:g.jsx(ip,{children:g.jsx(hp,{})})})); diff --git a/sni-templates/10gag/assets/style.css b/sni-templates/10gag/assets/style.css new file mode 100644 index 0000000..25b8bab --- /dev/null +++ b/sni-templates/10gag/assets/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-6{bottom:1.5rem}.right-2{right:.5rem}.right-6{right:1.5rem}.top-0{top:0}.top-2{top:.5rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-\[500px\]{max-height:500px}.max-h-\[90vh\]{max-height:90vh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-lg{max-width:32rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity))}.border-t-indigo-500{--tw-border-opacity: 1;border-top-color:rgb(99 102 241 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}:root{--scrollbar-thumb: #cbd5e0;--scrollbar-track: #f7fafc}.dark{--scrollbar-thumb: #4a5568;--scrollbar-track: #1a202c}body{overflow-x:hidden}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--scrollbar-track)}::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:8px}.animate-fade-in{animation:fadeIn .3s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-indigo-600:hover{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:text-green-500:hover{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.hover\:text-purple-500:hover{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.hover\:text-red-500:hover{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:text-blue-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.dark\:hover\:text-green-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.dark\:hover\:text-purple-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.dark\:hover\:text-red-500:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:mb-0{margin-bottom:0}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/sni-templates/10gag/favicon-96x96.png b/sni-templates/10gag/favicon-96x96.png new file mode 100644 index 0000000..866ad3b Binary files /dev/null and b/sni-templates/10gag/favicon-96x96.png differ diff --git a/sni-templates/10gag/favicon.ico b/sni-templates/10gag/favicon.ico new file mode 100644 index 0000000..20c9d47 Binary files /dev/null and b/sni-templates/10gag/favicon.ico differ diff --git a/sni-templates/10gag/favicon.svg b/sni-templates/10gag/favicon.svg new file mode 100644 index 0000000..73fbd1f --- /dev/null +++ b/sni-templates/10gag/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/sni-templates/10gag/index.html b/sni-templates/10gag/index.html new file mode 100644 index 0000000..5577f48 --- /dev/null +++ b/sni-templates/10gag/index.html @@ -0,0 +1,19 @@ + + + + + + + + + + + Meme Flow - Endless Fun + + + + + +
+ + \ No newline at end of file diff --git a/sni-templates/10gag/site.webmanifest b/sni-templates/10gag/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/10gag/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/10gag/web-app-manifest-192x192.png b/sni-templates/10gag/web-app-manifest-192x192.png new file mode 100644 index 0000000..0c16d41 Binary files /dev/null and b/sni-templates/10gag/web-app-manifest-192x192.png differ diff --git a/sni-templates/10gag/web-app-manifest-512x512.png b/sni-templates/10gag/web-app-manifest-512x512.png new file mode 100644 index 0000000..bac173e Binary files /dev/null and b/sni-templates/10gag/web-app-manifest-512x512.png differ diff --git a/sni-templates/503-1/assets/main.js b/sni-templates/503-1/assets/main.js new file mode 100644 index 0000000..aff3b89 --- /dev/null +++ b/sni-templates/503-1/assets/main.js @@ -0,0 +1,70 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();var Hu={exports:{}},el={},Wu={exports:{}},L={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xt=Symbol.for("react.element"),rc=Symbol.for("react.portal"),lc=Symbol.for("react.fragment"),oc=Symbol.for("react.strict_mode"),ic=Symbol.for("react.profiler"),uc=Symbol.for("react.provider"),sc=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),cc=Symbol.for("react.suspense"),fc=Symbol.for("react.memo"),dc=Symbol.for("react.lazy"),Oi=Symbol.iterator;function pc(e){return e===null||typeof e!="object"?null:(e=Oi&&e[Oi]||e["@@iterator"],typeof e=="function"?e:null)}var Qu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ku=Object.assign,Yu={};function ot(e,n,t){this.props=e,this.context=n,this.refs=Yu,this.updater=t||Qu}ot.prototype.isReactComponent={};ot.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ot.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xu(){}Xu.prototype=ot.prototype;function $o(e,n,t){this.props=e,this.context=n,this.refs=Yu,this.updater=t||Qu}var Ao=$o.prototype=new Xu;Ao.constructor=$o;Ku(Ao,ot.prototype);Ao.isPureReactComponent=!0;var Ii=Array.isArray,Gu=Object.prototype.hasOwnProperty,Vo={current:null},Zu={key:!0,ref:!0,__self:!0,__source:!0};function Ju(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)Gu.call(n,r)&&!Zu.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1>>1,G=E[W];if(0>>1;Wl(wl,z))gnl(er,wl)?(E[W]=er,E[gn]=z,W=gn):(E[W]=wl,E[yn]=z,W=yn);else if(gnl(er,z))E[W]=er,E[gn]=z,W=gn;else break e}}return P}function l(E,P){var z=E.sortIndex-P.sortIndex;return z!==0?z:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],c=[],h=1,m=null,p=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var P=t(c);P!==null;){if(P.callback===null)r(c);else if(P.startTime<=E)r(c),P.sortIndex=P.expirationTime,n(s,P);else break;P=t(c)}}function v(E){if(k=!1,d(E),!w)if(t(s)!==null)w=!0,yl(x);else{var P=t(c);P!==null&&gl(v,P.startTime-E)}}function x(E,P){w=!1,k&&(k=!1,f(N),N=-1),g=!0;var z=p;try{for(d(P),m=t(s);m!==null&&(!(m.expirationTime>P)||E&&!Ne());){var W=m.callback;if(typeof W=="function"){m.callback=null,p=m.priorityLevel;var G=W(m.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?m.callback=G:m===t(s)&&r(s),d(P)}else r(s);m=t(s)}if(m!==null)var bt=!0;else{var yn=t(c);yn!==null&&gl(v,yn.startTime-P),bt=!1}return bt}finally{m=null,p=z,g=!1}}var C=!1,_=null,N=-1,H=5,T=-1;function Ne(){return!(e.unstable_now()-TE||125W?(E.sortIndex=z,n(c,E),t(s)===null&&E===t(c)&&(k?(f(N),N=-1):k=!0,gl(v,z-W))):(E.sortIndex=G,n(s,E),w||g||(w=!0,yl(x))),E},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(E){var P=p;return function(){var z=p;p=P;try{return E.apply(this,arguments)}finally{p=z}}}})(ts);ns.exports=ts;var Cc=ns.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _c=Fe,ye=Cc;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Nc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Fi={},Ui={};function Pc(e){return Kl.call(Ui,e)?!0:Kl.call(Fi,e)?!1:Nc.test(e)?Ui[e]=!0:(Fi[e]=!0,!1)}function zc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lc(e,n,t,r){if(n===null||typeof n>"u"||zc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function se(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ee[n]=new se(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ee[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ho=/[\-:]([a-z])/g;function Wo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ho,Wo);ee[n]=new se(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ho,Wo);ee[n]=new se(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ho,Wo);ee[n]=new se(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qo(e,n,t,r){var l=ee.hasOwnProperty(n)?ee[n]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{xl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?gt(e):""}function Tc(e){switch(e.tag){case 5:return gt(e.type);case 16:return gt("Lazy");case 13:return gt("Suspense");case 19:return gt("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Zl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case In:return"Fragment";case On:return"Portal";case Yl:return"Profiler";case Ko:return"StrictMode";case Xl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case os:return(e.displayName||"Context")+".Consumer";case ls:return(e._context.displayName||"Context")+".Provider";case Yo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xo:return n=e.displayName||null,n!==null?n:Zl(e.type)||"Memo";case Je:n=e._payload,e=e._init;try{return Zl(e(n))}catch{}}return null}function Rc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(n);case 8:return n===Ko?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function us(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function jc(e){var n=us(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function rr(e){e._valueTracker||(e._valueTracker=jc(e))}function ss(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=us(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Tr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ai(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=dn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function as(e,n){n=n.checked,n!=null&&Qo(e,"checked",n,!1)}function ql(e,n){as(e,n);var t=dn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?bl(e,n.type,t):n.hasOwnProperty("defaultValue")&&bl(e,n.type,dn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Vi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function bl(e,n,t){(n!=="number"||Tr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var wt=Array.isArray;function Kn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=lr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function jt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var xt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mc=["Webkit","ms","Moz","O"];Object.keys(xt).forEach(function(e){Mc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),xt[n]=xt[e]})});function ps(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||xt.hasOwnProperty(e)&&xt[e]?(""+n).trim():n+"px"}function ms(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ps(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Oc=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function to(e,n){if(n){if(Oc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function ro(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lo=null;function Go(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oo=null,Yn=null,Xn=null;function Wi(e){if(e=Jt(e)){if(typeof oo!="function")throw Error(y(280));var n=e.stateNode;n&&(n=ol(n),oo(e.stateNode,e.type,n))}}function hs(e){Yn?Xn?Xn.push(e):Xn=[e]:Yn=e}function vs(){if(Yn){var e=Yn,n=Xn;if(Xn=Yn=null,Wi(e),n)for(e=0;e>>=0,e===0?32:31-(Qc(e)/Kc|0)|0}var or=64,ir=4194304;function kt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Or(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=kt(u):(o&=i,o!==0&&(r=kt(o)))}else i=t&~l,i!==0?r=kt(i):o!==0&&(r=kt(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Gt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Re(n),e[n]=t}function Zc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ct),bi=" ",eu=!1;function Ds(e,n){switch(e){case"keyup":return _f.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Pf(e,n){switch(e){case"compositionend":return Fs(n);case"keypress":return n.which!==32?null:(eu=!0,bi);case"textInput":return e=n.data,e===bi&&eu?null:e;default:return null}}function zf(e,n){if(Dn)return e==="compositionend"||!ri&&Ds(e,n)?(e=Os(),Sr=ei=nn=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=lu(t)}}function Vs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Bs(){for(var e=window,n=Tr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Tr(e.document)}return n}function li(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ff(e){var n=Bs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Vs(t.ownerDocument.documentElement,t)){if(r!==null&&li(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ou(t,o);var i=ou(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Fn=null,fo=null,Nt=null,po=!1;function iu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;po||Fn==null||Fn!==Tr(r)||(r=Fn,"selectionStart"in r&&li(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Nt&&Ut(Nt,r)||(Nt=r,r=Fr(fo,"onSelect"),0An||(e.current=wo[An],wo[An]=null,An--)}function O(e,n){An++,wo[An]=e.current,e.current=n}var pn={},le=hn(pn),fe=hn(!1),Nn=pn;function bn(e,n){var t=e.type.contextTypes;if(!t)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function de(e){return e=e.childContextTypes,e!=null}function $r(){D(fe),D(le)}function pu(e,n,t){if(le.current!==pn)throw Error(y(168));O(le,n),O(fe,t)}function Js(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Rc(e)||"Unknown",l));return V({},t,r)}function Ar(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Nn=le.current,O(le,e),O(fe,fe.current),!0}function mu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Js(e,n,Nn),r.__reactInternalMemoizedMergedChildContext=e,D(fe),D(le),O(le,e)):D(fe),O(fe,t)}var Ve=null,il=!1,Fl=!1;function qs(e){Ve===null?Ve=[e]:Ve.push(e)}function Gf(e){il=!0,qs(e)}function vn(){if(!Fl&&Ve!==null){Fl=!0;var e=0,n=M;try{var t=Ve;for(M=1;e>=i,l-=i,Be=1<<32-Re(n)+l|t<N?(H=_,_=null):H=_.sibling;var T=p(f,_,d[N],v);if(T===null){_===null&&(_=H);break}e&&_&&T.alternate===null&&n(f,_),a=o(T,a,N),C===null?x=T:C.sibling=T,C=T,_=H}if(N===d.length)return t(f,_),U&&wn(f,N),x;if(_===null){for(;NN?(H=_,_=null):H=_.sibling;var Ne=p(f,_,T.value,v);if(Ne===null){_===null&&(_=H);break}e&&_&&Ne.alternate===null&&n(f,_),a=o(Ne,a,N),C===null?x=Ne:C.sibling=Ne,C=Ne,_=H}if(T.done)return t(f,_),U&&wn(f,N),x;if(_===null){for(;!T.done;N++,T=d.next())T=m(f,T.value,v),T!==null&&(a=o(T,a,N),C===null?x=T:C.sibling=T,C=T);return U&&wn(f,N),x}for(_=r(f,_);!T.done;N++,T=d.next())T=g(_,f,N,T.value,v),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?N:T.key),a=o(T,a,N),C===null?x=T:C.sibling=T,C=T);return e&&_.forEach(function(st){return n(f,st)}),U&&wn(f,N),x}function F(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===In&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case tr:e:{for(var x=d.key,C=a;C!==null;){if(C.key===x){if(x=d.type,x===In){if(C.tag===7){t(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Je&&yu(x)===C.type){t(f,C.sibling),a=l(C,d.props),a.ref=ht(f,C,d),a.return=f,f=a;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===In?(a=_n(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Lr(d.type,d.key,d.props,null,f.mode,v),v.ref=ht(f,a,d),v.return=f,f=v)}return i(f);case On:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Ql(d,f.mode,v),a.return=f,f=a}return i(f);case Je:return C=d._init,F(f,a,C(d._payload),v)}if(wt(d))return w(f,a,d,v);if(ct(d))return k(f,a,d,v);pr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Wl(d,f.mode,v),a.return=f,f=a),i(f)):t(f,a)}return F}var nt=ta(!0),ra=ta(!1),Hr=hn(null),Wr=null,Hn=null,si=null;function ai(){si=Hn=Wr=null}function ci(e){var n=Hr.current;D(Hr),e._currentValue=n}function xo(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Zn(e,n){Wr=e,si=Hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(ce=!0),e.firstContext=null)}function Ce(e){var n=e._currentValue;if(si!==e)if(e={context:e,memoizedValue:n,next:null},Hn===null){if(Wr===null)throw Error(y(308));Hn=e,Wr.dependencies={lanes:0,firstContext:e}}else Hn=Hn.next=e;return n}var xn=null;function fi(e){xn===null?xn=[e]:xn.push(e)}function la(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,fi(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ye(e,r)}function Ye(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var qe=!1;function di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oa(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function sn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ye(e,t)}return l=r.interleaved,l===null?(n.next=n,fi(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ye(e,t)}function Er(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Jo(e,t)}}function gu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var i={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?l=o=i:o=o.next=i,t=t.next}while(t!==null);o===null?l=o=n:o=o.next=n}else l=o=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Qr(e,n,t,r){var l=e.updateQueue;qe=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,i===null?o=c:i.next=c,i=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==i&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(o!==null){var m=l.baseState;i=0,h=c=s=null,u=o;do{var p=u.lane,g=u.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,k=u;switch(p=n,g=t,k.tag){case 1:if(w=k.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=V({},m,p);break e;case 2:qe=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else g={eventTime:g,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=g,s=m):h=h.next=g,i|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(h===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,n=l.shared.interleaved,n!==null){l=n;do i|=l.lane,l=l.next;while(l!==n)}else o===null&&(l.shared.lanes=0);Ln|=i,e.lanes=i,e.memoizedState=m}}function wu(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),n()}finally{M=t,$l.transition=r}}function xa(){return _e().memoizedState}function bf(e,n,t){var r=cn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ea(e))Ca(n,t);else if(t=la(e,n,t,r),t!==null){var l=ie();je(t,e,r,l),_a(t,n,r)}}function ed(e,n,t){var r=cn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ea(e))Ca(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Me(u,i)){var s=n.interleaved;s===null?(l.next=l,fi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=la(e,n,l,r),t!==null&&(l=ie(),je(t,e,r,l),_a(t,n,r))}}function Ea(e){var n=e.alternate;return e===A||n!==null&&n===A}function Ca(e,n){Pt=Yr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function _a(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Jo(e,t)}}var Xr={readContext:Ce,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},nd={readContext:Ce,useCallback:function(e,n){return Ie().memoizedState=[e,n===void 0?null:n],e},useContext:Ce,useEffect:Su,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,_r(4194308,4,ya.bind(null,n,e),t)},useLayoutEffect:function(e,n){return _r(4194308,4,e,n)},useInsertionEffect:function(e,n){return _r(4,2,e,n)},useMemo:function(e,n){var t=Ie();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ie();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=bf.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var n=Ie();return e={current:e},n.memoizedState=e},useState:ku,useDebugValue:ki,useDeferredValue:function(e){return Ie().memoizedState=e},useTransition:function(){var e=ku(!1),n=e[0];return e=qf.bind(null,e[1]),Ie().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=A,l=Ie();if(U){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),J===null)throw Error(y(349));zn&30||aa(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Su(fa.bind(null,r,o,e),[e]),r.flags|=2048,Kt(9,ca.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Ie(),n=J.identifierPrefix;if(U){var t=He,r=Be;t=(r&~(1<<32-Re(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Wt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[De]=n,e[Vt]=r,Ia(e,n,!1,!1),n.stateNode=e;e:{switch(i=ro(t,r),t){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;llt&&(n.flags|=128,r=!0,vt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Kr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),vt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return te(n),null}else 2*Q()-o.renderingStartTime>lt&&t!==1073741824&&(n.flags|=128,r=!0,vt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Q(),n.sibling=null,t=$.current,O($,r?t&1|2:t&1),n):(te(n),null);case 22:case 23:return Ni(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?me&1073741824&&(te(n),n.subtreeFlags&6&&(n.flags|=8192)):te(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function ad(e,n){switch(ii(n),n.tag){case 1:return de(n.type)&&$r(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return tt(),D(fe),D(le),hi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return mi(n),null;case 13:if(D($),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));et()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return D($),null;case 4:return tt(),null;case 10:return ci(n.type._context),null;case 22:case 23:return Ni(),null;case 24:return null;default:return null}}var hr=!1,re=!1,cd=typeof WeakSet=="function"?WeakSet:Set,S=null;function Wn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){B(e,n,r)}else t.current=null}function Ro(e,n,t){try{t()}catch(r){B(e,n,r)}}var ju=!1;function fd(e,n){if(mo=Ir,e=Bs(),li(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,c=0,h=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++c===l&&(u=i),p===o&&++h===r&&(s=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ho={focusedElem:e,selectionRange:t},Ir=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:ze(n.type,k),F);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){B(n,n.return,v)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=ju,ju=!1,w}function zt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(n,t,o)}l=l.next}while(l!==r)}}function al(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function jo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Ua(e){var n=e.alternate;n!==null&&(e.alternate=null,Ua(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[De],delete n[Vt],delete n[go],delete n[Yf],delete n[Xf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $a(e){return e.tag===5||e.tag===3||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$a(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,n,t),e=e.sibling;e!==null;)Mo(e,n,t),e=e.sibling}function Oo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Oo(e,n,t),e=e.sibling;e!==null;)Oo(e,n,t),e=e.sibling}var q=null,Le=!1;function Ze(e,n,t){for(t=t.child;t!==null;)Aa(e,n,t),t=t.sibling}function Aa(e,n,t){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(nl,t)}catch{}switch(t.tag){case 5:re||Wn(t,n);case 6:var r=q,l=Le;q=null,Ze(e,n,t),q=r,Le=l,q!==null&&(Le?(e=q,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):q.removeChild(t.stateNode));break;case 18:q!==null&&(Le?(e=q,t=t.stateNode,e.nodeType===8?Dl(e.parentNode,t):e.nodeType===1&&Dl(e,t),Dt(e)):Dl(q,t.stateNode));break;case 4:r=q,l=Le,q=t.stateNode.containerInfo,Le=!0,Ze(e,n,t),q=r,Le=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ro(t,n,i),l=l.next}while(l!==r)}Ze(e,n,t);break;case 1:if(!re&&(Wn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){B(t,n,u)}Ze(e,n,t);break;case 21:Ze(e,n,t);break;case 22:t.mode&1?(re=(r=re)||t.memoizedState!==null,Ze(e,n,t),re=r):Ze(e,n,t);break;default:Ze(e,n,t)}}function Ou(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new cd),n.forEach(function(r){var l=kd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Pe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pd(r/1960))-r,10e?16:e,tn===null)var r=!1;else{if(e=tn,tn=null,Jr=0,R&6)throw Error(y(331));var l=R;for(R|=4,S=e.current;S!==null;){var o=S,i=o.child;if(S.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sQ()-Ci?Cn(e,0):Ei|=t),pe(e,n)}function Xa(e,n){n===0&&(e.mode&1?(n=ir,ir<<=1,!(ir&130023424)&&(ir=4194304)):n=1);var t=ie();e=Ye(e,n),e!==null&&(Gt(e,n,t),pe(e,t))}function wd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Xa(e,t)}function kd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Xa(e,t)}var Ga;Ga=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||fe.current)ce=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ce=!1,ud(e,n,t);ce=!!(e.flags&131072)}else ce=!1,U&&n.flags&1048576&&bs(n,Br,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Nr(e,n),e=n.pendingProps;var l=bn(n,le.current);Zn(n,t),l=yi(null,n,r,e,l,t);var o=gi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,de(r)?(o=!0,Ar(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,di(n),l.updater=sl,n.stateNode=l,l._reactInternals=n,Co(n,r,e,t),n=Po(null,n,r,!0,o,t)):(n.tag=0,U&&o&&oi(n),oe(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Nr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=xd(r),e=ze(r,e),l){case 0:n=No(null,n,r,e,t);break e;case 1:n=Lu(null,n,r,e,t);break e;case 11:n=Pu(null,n,r,e,t);break e;case 14:n=zu(null,n,r,ze(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),No(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Lu(e,n,r,l,t);case 3:e:{if(ja(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,oa(e,n),Qr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=rt(Error(y(423)),n),n=Tu(e,n,r,t,l);break e}else if(r!==l){l=rt(Error(y(424)),n),n=Tu(e,n,r,t,l);break e}else for(he=un(n.stateNode.containerInfo.firstChild),ve=n,U=!0,Te=null,t=ra(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(et(),r===l){n=Xe(e,n,t);break e}oe(e,n,r,t)}n=n.child}return n;case 5:return ia(n),e===null&&So(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,vo(r,l)?i=null:o!==null&&vo(r,o)&&(n.flags|=32),Ra(e,n),oe(e,n,i,t),n.child;case 6:return e===null&&So(n),null;case 13:return Ma(e,n,t);case 4:return pi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=nt(n,null,r,t):oe(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Pu(e,n,r,l,t);case 7:return oe(e,n,n.pendingProps,t),n.child;case 8:return oe(e,n,n.pendingProps.children,t),n.child;case 12:return oe(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,O(Hr,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!fe.current){n=Xe(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=We(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),xo(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(y(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),xo(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}oe(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Zn(n,t),l=Ce(l),r=r(l),n.flags|=1,oe(e,n,r,t),n.child;case 14:return r=n.type,l=ze(r,n.pendingProps),l=ze(r.type,l),zu(e,n,r,l,t);case 15:return La(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ze(r,l),Nr(e,n),n.tag=1,de(r)?(e=!0,Ar(n)):e=!1,Zn(n,t),Na(n,r,l),Co(n,r,l,t),Po(null,n,r,!0,e,t);case 19:return Oa(e,n,t);case 22:return Ta(e,n,t)}throw Error(y(156,n.tag))};function Za(e,n){return Es(e,n)}function Sd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(e,n,t,r){return new Sd(e,n,t,r)}function zi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xd(e){if(typeof e=="function")return zi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yo)return 11;if(e===Xo)return 14}return 2}function fn(e,n){var t=e.alternate;return t===null?(t=xe(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Lr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")zi(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case In:return _n(t.children,l,o,n);case Ko:i=8,l|=8;break;case Yl:return e=xe(12,t,n,l|2),e.elementType=Yl,e.lanes=o,e;case Xl:return e=xe(13,t,n,l),e.elementType=Xl,e.lanes=o,e;case Gl:return e=xe(19,t,n,l),e.elementType=Gl,e.lanes=o,e;case is:return fl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ls:i=10;break e;case os:i=9;break e;case Yo:i=11;break e;case Xo:i=14;break e;case Je:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=xe(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function _n(e,n,t,r){return e=xe(7,e,r,n),e.lanes=t,e}function fl(e,n,t,r){return e=xe(22,e,r,n),e.elementType=is,e.lanes=t,e.stateNode={isHidden:!1},e}function Wl(e,n,t){return e=xe(6,e,null,n),e.lanes=t,e}function Ql(e,n,t){return n=xe(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ed(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Li(e,n,t,r,l,o,i,u,s){return e=new Ed(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=xe(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},di(o),e}function Cd(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ec)}catch(e){console.error(e)}}ec(),es.exports=ge;var Ld=es.exports,nc,Bu=Ld;nc=Bu.createRoot,Bu.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Td={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),vl=(e,n)=>{const t=Fe.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:u="",children:s,...c},h)=>Fe.createElement("svg",{ref:h,...Td,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${Rd(e)}`,u].join(" "),...c},[...n.map(([m,p])=>Fe.createElement(m,p)),...Array.isArray(s)?s:[s]]));return t.displayName=`${e}`,t};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jd=vl("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Md=vl("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Od=vl("ServerCrash",[["path",{d:"M6 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2",key:"4b9dqc"}],["path",{d:"M6 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-2",key:"22nnkd"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m13 6-4 6h6l-4 6",key:"14hqih"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Id=vl("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);function Dd(){const[e,n]=Fe.useState(300),[t,r]=Fe.useState("..."),[l]=Fe.useState(()=>{const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=Math.floor(Math.random()*17)+32;return Array.from({length:s},()=>u[Math.floor(Math.random()*u.length)]).join("")});Fe.useEffect(()=>{fetch("https://api.ipify.org?format=json").then(s=>s.json()).then(s=>r(s.ip)).catch(()=>r("не определен"));const u=setInterval(()=>{n(s=>s<=1?(window.location.reload(),0):s-1)},1e3);return()=>clearInterval(u)},[]);const o=Math.floor(e/60),i=e%60;return j.jsx("div",{className:"min-h-screen bg-slate-900 text-white flex items-center justify-center p-4",children:j.jsxs("div",{className:"max-w-2xl w-full space-y-8",children:[j.jsxs("div",{className:"text-center space-y-4",children:[j.jsx("div",{className:"flex justify-center",children:j.jsx(Od,{className:"h-24 w-24 text-red-500 animate-pulse"})}),j.jsx("h1",{className:"text-4xl font-bold text-red-500",children:"Сервер перегружен"}),j.jsx("p",{className:"text-xl text-gray-400",children:"Код ошибки: 503"}),j.jsxs("div",{className:"bg-slate-800 p-6 rounded-lg shadow-xl space-y-4 mt-8",children:[j.jsx("p",{className:"text-gray-300",children:"Приносим извинения, но в данный момент наши серверы испытывают повышенную нагрузку и не могут обработать ваш запрос."}),j.jsxs("div",{className:"bg-slate-700 p-4 rounded-md",children:[j.jsx("p",{className:"text-sm text-gray-400",children:"Детали вашего запроса:"}),j.jsxs("p",{className:"font-mono text-sm",children:["IP адрес: ",t]}),j.jsxs("p",{className:"font-mono text-sm",children:["Код инцидента: ",l]})]}),j.jsxs("div",{className:"flex items-center justify-center space-x-2 text-yellow-400",children:[j.jsx(Id,{className:"h-5 w-5"}),j.jsxs("p",{className:"font-mono text-xl",children:[String(o).padStart(2,"0"),":",String(i).padStart(2,"0")]})]}),j.jsxs("div",{className:"mt-4 bg-slate-700/50 border border-yellow-500/20 rounded-lg p-4",children:[j.jsxs("div",{className:"flex items-center justify-center space-x-2 text-yellow-400 mb-2",children:[j.jsx(jd,{className:"h-5 w-5"}),j.jsx("p",{className:"font-semibold",children:"Важно!"})]}),j.jsx("p",{className:"text-sm text-gray-300",children:"Пожалуйста, не закрывайте эту страницу. По истечении таймера система попытается перенаправить вас на менее загруженный сервер."})]})]}),j.jsxs("div",{className:"mt-8 flex items-center justify-center space-x-2 text-sm text-gray-400",children:[j.jsx(Md,{className:"h-4 w-4 animate-spin"}),j.jsx("p",{children:"Страница обновится автоматически, когда появится свободная мощность серверов"})]}),j.jsx("div",{className:"mt-4 text-sm text-gray-500",children:j.jsx("p",{children:"Если проблема сохраняется, пожалуйста, обратитесь в службу поддержки, указав код инцидента выше."})})]}),j.jsx("div",{className:"absolute bottom-4 left-0 right-0 flex justify-center",children:j.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[j.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse"}),j.jsx("p",{children:"Статус системы: Высокая нагрузка"})]})})]})})}nc(document.getElementById("root")).render(j.jsx(Fe.StrictMode,{children:j.jsx(Dd,{})})); diff --git a/sni-templates/503-1/assets/style.css b/sni-templates/503-1/assets/style.css new file mode 100644 index 0000000..66620cf --- /dev/null +++ b/sni-templates/503-1/assets/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.absolute{position:absolute}.bottom-4{bottom:1rem}.left-0{left:0}.right-0{right:0}.mb-2{margin-bottom:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.flex{display:flex}.h-2{height:.5rem}.h-24{height:6rem}.h-4{height:1rem}.h-5{height:1.25rem}.min-h-screen{min-height:100vh}.w-2{width:.5rem}.w-24{width:6rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-yellow-500\/20{border-color:#eab30833}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity))}.bg-slate-700\/50{background-color:#33415580}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-6{padding:1.5rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)} diff --git a/sni-templates/503-1/index.html b/sni-templates/503-1/index.html new file mode 100644 index 0000000..d4a94d2 --- /dev/null +++ b/sni-templates/503-1/index.html @@ -0,0 +1,14 @@ + + + + + + + Ошибка 503. Попробуйте позже. + + + + +
+ + diff --git a/sni-templates/503-2/assets/main.js b/sni-templates/503-2/assets/main.js new file mode 100644 index 0000000..0761414 --- /dev/null +++ b/sni-templates/503-2/assets/main.js @@ -0,0 +1,90 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Hu={exports:{}},tl={},Wu={exports:{}},T={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gn=Symbol.for("react.element"),rc=Symbol.for("react.portal"),lc=Symbol.for("react.fragment"),ic=Symbol.for("react.strict_mode"),oc=Symbol.for("react.profiler"),uc=Symbol.for("react.provider"),sc=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),cc=Symbol.for("react.suspense"),fc=Symbol.for("react.memo"),dc=Symbol.for("react.lazy"),Oo=Symbol.iterator;function pc(e){return e===null||typeof e!="object"?null:(e=Oo&&e[Oo]||e["@@iterator"],typeof e=="function"?e:null)}var Qu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ku=Object.assign,Yu={};function on(e,t,n){this.props=e,this.context=t,this.refs=Yu,this.updater=n||Qu}on.prototype.isReactComponent={};on.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};on.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xu(){}Xu.prototype=on.prototype;function Ui(e,t,n){this.props=e,this.context=t,this.refs=Yu,this.updater=n||Qu}var $i=Ui.prototype=new Xu;$i.constructor=Ui;Ku($i,on.prototype);$i.isPureReactComponent=!0;var Do=Array.isArray,Gu=Object.prototype.hasOwnProperty,Ai={current:null},Zu={key:!0,ref:!0,__self:!0,__source:!0};function Ju(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Gu.call(t,r)&&!Zu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,G=E[W];if(0>>1;Wl(wl,L))gtl(tr,wl)?(E[W]=tr,E[gt]=L,W=gt):(E[W]=wl,E[yt]=L,W=yt);else if(gtl(tr,L))E[W]=tr,E[gt]=L,W=gt;else break e}}return z}function l(E,z){var L=E.sortIndex-z.sortIndex;return L!==0?L:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],h=1,p=null,m=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=E)r(c),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(c)}}function v(E){if(k=!1,d(E),!w)if(n(s)!==null)w=!0,yl(x);else{var z=n(c);z!==null&&gl(v,z.startTime-E)}}function x(E,z){w=!1,k&&(k=!1,f(N),N=-1),g=!0;var L=m;try{for(d(z),p=n(s);p!==null&&(!(p.expirationTime>z)||E&&!Ne());){var W=p.callback;if(typeof W=="function"){p.callback=null,m=p.priorityLevel;var G=W(p.expirationTime<=z);z=e.unstable_now(),typeof G=="function"?p.callback=G:p===n(s)&&r(s),d(z)}else r(s);p=n(s)}if(p!==null)var er=!0;else{var yt=n(c);yt!==null&&gl(v,yt.startTime-z),er=!1}return er}finally{p=null,m=L,g=!1}}var C=!1,_=null,N=-1,H=5,j=-1;function Ne(){return!(e.unstable_now()-jE||125W?(E.sortIndex=L,t(c,E),n(s)===null&&E===n(c)&&(k?(f(N),N=-1):k=!0,gl(v,L-W))):(E.sortIndex=G,t(s,E),w||g||(w=!0,yl(x))),E},e.unstable_shouldYield=Ne,e.unstable_wrapCallback=function(E){var z=m;return function(){var L=m;m=z;try{return E.apply(this,arguments)}finally{m=L}}}})(ns);ts.exports=ns;var Cc=ts.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _c=je,ye=Cc;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Nc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Fo={},Uo={};function Pc(e){return Kl.call(Uo,e)?!0:Kl.call(Fo,e)?!1:Nc.test(e)?Uo[e]=!0:(Fo[e]=!0,!1)}function zc(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lc(e,t,n,r){if(t===null||typeof t>"u"||zc(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function se(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ee[e]=new se(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ee[t]=new se(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ee[e]=new se(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ee[e]=new se(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ee[e]=new se(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ee[e]=new se(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ee[e]=new se(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ee[e]=new se(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ee[e]=new se(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bi=/[\-:]([a-z])/g;function Hi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Bi,Hi);ee[t]=new se(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Bi,Hi);ee[t]=new se(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Bi,Hi);ee[t]=new se(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!1,!1)});ee.xlinkHref=new se("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ee[e]=new se(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wi(e,t,n,r){var l=ee.hasOwnProperty(t)?ee[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{xl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wn(e):""}function Tc(e){switch(e.tag){case 5:return wn(e.type);case 16:return wn("Lazy");case 13:return wn("Suspense");case 19:return wn("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Zl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dt:return"Fragment";case Ot:return"Portal";case Yl:return"Profiler";case Qi:return"StrictMode";case Xl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case is:return(e.displayName||"Context")+".Consumer";case ls:return(e._context.displayName||"Context")+".Provider";case Ki:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yi:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case Je:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function jc(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(t);case 8:return t===Qi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function us(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mc(e){var t=us(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lr(e){e._valueTracker||(e._valueTracker=Mc(e))}function ss(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=us(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ao(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function as(e,t){t=t.checked,t!=null&&Wi(e,"checked",t,!1)}function ql(e,t){as(e,t);var n=ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bl(e,t.type,n):t.hasOwnProperty("defaultValue")&&bl(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bl(e,t,n){(t!=="number"||jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kn=Array.isArray;function Kt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var En={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rc=["Webkit","ms","Moz","O"];Object.keys(En).forEach(function(e){Rc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),En[t]=En[e]})});function ps(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||En.hasOwnProperty(e)&&En[e]?(""+t).trim():t+"px"}function ms(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ps(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Oc=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ni(e,t){if(t){if(Oc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function ri(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var li=null;function Xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ii=null,Yt=null,Xt=null;function Wo(e){if(e=qn(e)){if(typeof ii!="function")throw Error(y(280));var t=e.stateNode;t&&(t=ol(t),ii(e.stateNode,e.type,t))}}function hs(e){Yt?Xt?Xt.push(e):Xt=[e]:Yt=e}function vs(){if(Yt){var e=Yt,t=Xt;if(Xt=Yt=null,Wo(e),t)for(e=0;e>>=0,e===0?32:31-(Qc(e)/Kc|0)|0}var or=64,ur=4194304;function Sn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Sn(u):(i&=o,i!==0&&(r=Sn(i)))}else o=n&~l,o!==0?r=Sn(o):i!==0&&(r=Sn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Zn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function Zc(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_n),bo=" ",eu=!1;function Is(e,t){switch(e){case"keyup":return _f.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var It=!1;function Pf(e,t){switch(e){case"compositionend":return Fs(t);case"keypress":return t.which!==32?null:(eu=!0,bo);case"textInput":return e=t.data,e===bo&&eu?null:e;default:return null}}function zf(e,t){if(It)return e==="compositionend"||!no&&Is(e,t)?(e=Os(),xr=bi=tt=null,It=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lu(n)}}function Vs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bs(){for(var e=window,t=jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jr(e.document)}return t}function ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ff(e){var t=Bs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vs(n.ownerDocument.documentElement,n)){if(r!==null&&ro(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=iu(n,i);var o=iu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ft=null,fi=null,Pn=null,di=!1;function ou(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;di||Ft==null||Ft!==jr(r)||(r=Ft,"selectionStart"in r&&ro(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pn&&$n(Pn,r)||(Pn=r,r=Ur(fi,"onSelect"),0At||(e.current=gi[At],gi[At]=null,At--)}function O(e,t){At++,gi[At]=e.current,e.current=t}var dt={},le=mt(dt),fe=mt(!1),Nt=dt;function bt(e,t){var n=e.type.contextTypes;if(!n)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function de(e){return e=e.childContextTypes,e!=null}function Ar(){I(fe),I(le)}function pu(e,t,n){if(le.current!==dt)throw Error(y(168));O(le,t),O(fe,n)}function Js(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,jc(e)||"Unknown",l));return V({},n,r)}function Vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Nt=le.current,O(le,e),O(fe,fe.current),!0}function mu(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=Js(e,t,Nt),r.__reactInternalMemoizedMergedChildContext=e,I(fe),I(le),O(le,e)):I(fe),O(fe,n)}var Ve=null,ul=!1,Fl=!1;function qs(e){Ve===null?Ve=[e]:Ve.push(e)}function Gf(e){ul=!0,qs(e)}function ht(){if(!Fl&&Ve!==null){Fl=!0;var e=0,t=R;try{var n=Ve;for(R=1;e>=o,l-=o,Be=1<<32-Me(t)+l|n<N?(H=_,_=null):H=_.sibling;var j=m(f,_,d[N],v);if(j===null){_===null&&(_=H);break}e&&_&&j.alternate===null&&t(f,_),a=i(j,a,N),C===null?x=j:C.sibling=j,C=j,_=H}if(N===d.length)return n(f,_),U&&wt(f,N),x;if(_===null){for(;NN?(H=_,_=null):H=_.sibling;var Ne=m(f,_,j.value,v);if(Ne===null){_===null&&(_=H);break}e&&_&&Ne.alternate===null&&t(f,_),a=i(Ne,a,N),C===null?x=Ne:C.sibling=Ne,C=Ne,_=H}if(j.done)return n(f,_),U&&wt(f,N),x;if(_===null){for(;!j.done;N++,j=d.next())j=p(f,j.value,v),j!==null&&(a=i(j,a,N),C===null?x=j:C.sibling=j,C=j);return U&&wt(f,N),x}for(_=r(f,_);!j.done;N++,j=d.next())j=g(_,f,N,j.value,v),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?N:j.key),a=i(j,a,N),C===null?x=j:C.sibling=j,C=j);return e&&_.forEach(function(an){return t(f,an)}),U&&wt(f,N),x}function F(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Dt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var x=d.key,C=a;C!==null;){if(C.key===x){if(x=d.type,x===Dt){if(C.tag===7){n(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Je&&yu(x)===C.type){n(f,C.sibling),a=l(C,d.props),a.ref=vn(f,C,d),a.return=f,f=a;break e}n(f,C);break}else t(f,C);C=C.sibling}d.type===Dt?(a=_t(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=Tr(d.type,d.key,d.props,null,f.mode,v),v.ref=vn(f,a,d),v.return=f,f=v)}return o(f);case Ot:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Ql(d,f.mode,v),a.return=f,f=a}return o(f);case Je:return C=d._init,F(f,a,C(d._payload),v)}if(kn(d))return w(f,a,d,v);if(fn(d))return k(f,a,d,v);mr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Wl(d,f.mode,v),a.return=f,f=a),o(f)):n(f,a)}return F}var tn=na(!0),ra=na(!1),Wr=mt(null),Qr=null,Ht=null,uo=null;function so(){uo=Ht=Qr=null}function ao(e){var t=Wr.current;I(Wr),e._currentValue=t}function Si(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zt(e,t){Qr=e,uo=Ht=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ce=!0),e.firstContext=null)}function Ce(e){var t=e._currentValue;if(uo!==e)if(e={context:e,memoizedValue:t,next:null},Ht===null){if(Qr===null)throw Error(y(308));Ht=e,Qr.dependencies={lanes:0,firstContext:e}}else Ht=Ht.next=e;return t}var xt=null;function co(e){xt===null?xt=[e]:xt.push(e)}function la(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,co(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ye(e,r)}function Ye(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qe=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ye(e,n)}return l=r.interleaved,l===null?(t.next=t,co(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ye(e,n)}function Cr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zi(e,n)}}function gu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kr(e,t,n,r){var l=e.updateQueue;qe=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==o&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(i!==null){var p=l.baseState;o=0,h=c=s=null,u=i;do{var m=u.lane,g=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var w=e,k=u;switch(m=t,g=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){p=w.call(g,p,m);break e}p=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,m=typeof w=="function"?w.call(g,p,m):w,m==null)break e;p=V({},p,m);break e;case 2:qe=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else g={eventTime:g,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=g,s=p):h=h.next=g,o|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(s=p),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Lt|=o,e.lanes=o,e.memoizedState=p}}function wu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=$l.transition;$l.transition={};try{e(!1),t()}finally{R=n,$l.transition=r}}function xa(){return _e().memoizedState}function bf(e,t,n){var r=at(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ea(e))Ca(t,n);else if(n=la(e,t,n,r),n!==null){var l=oe();Re(n,e,r,l),_a(n,t,r)}}function ed(e,t,n){var r=at(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ea(e))Ca(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Oe(u,o)){var s=t.interleaved;s===null?(l.next=l,co(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=la(e,t,l,r),n!==null&&(l=oe(),Re(n,e,r,l),_a(n,t,r))}}function Ea(e){var t=e.alternate;return e===A||t!==null&&t===A}function Ca(e,t){zn=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _a(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zi(e,n)}}var Gr={readContext:Ce,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},td={readContext:Ce,useCallback:function(e,t){return Ie().memoizedState=[e,t===void 0?null:t],e},useContext:Ce,useEffect:Su,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Nr(4194308,4,ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nr(4,2,e,t)},useMemo:function(e,t){var n=Ie();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ie();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bf.bind(null,A,e),[r.memoizedState,e]},useRef:function(e){var t=Ie();return e={current:e},t.memoizedState=e},useState:ku,useDebugValue:ko,useDeferredValue:function(e){return Ie().memoizedState=e},useTransition:function(){var e=ku(!1),t=e[0];return e=qf.bind(null,e[1]),Ie().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=A,l=Ie();if(U){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),J===null)throw Error(y(349));zt&30||aa(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Su(fa.bind(null,r,i,e),[e]),r.flags|=2048,Yn(9,ca.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ie(),t=J.identifierPrefix;if(U){var n=He,r=Be;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Fe]=t,e[Bn]=r,Da(e,t,!1,!1),t.stateNode=e;e:{switch(o=ri(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lln&&(t.flags|=128,r=!0,yn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!U)return ne(t),null}else 2*Q()-i.renderingStartTime>ln&&n!==1073741824&&(t.flags|=128,r=!0,yn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Q(),t.sibling=null,n=$.current,O($,r?n&1|2:n&1),t):(ne(t),null);case 22:case 23:return No(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?me&1073741824&&(ne(t),t.subtreeFlags&6&&(t.flags|=8192)):ne(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function ad(e,t){switch(io(t),t.tag){case 1:return de(t.type)&&Ar(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nn(),I(fe),I(le),ho(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mo(t),null;case 13:if(I($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));en()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I($),null;case 4:return nn(),null;case 10:return ao(t.type._context),null;case 22:case 23:return No(),null;case 24:return null;default:return null}}var vr=!1,re=!1,cd=typeof WeakSet=="function"?WeakSet:Set,S=null;function Wt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function Ti(e,t,n){try{n()}catch(r){B(e,t,r)}}var Mu=!1;function fd(e,t){if(pi=Ir,e=Bs(),ro(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,c=0,h=0,p=e,m=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(u=o+l),p!==i||r!==0&&p.nodeType!==3||(s=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)m=p,p=g;for(;;){if(p===e)break t;if(m===n&&++c===l&&(u=o),m===i&&++h===r&&(s=o),(g=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(mi={focusedElem:e,selectionRange:n},Ir=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:ze(t.type,k),F);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){B(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return w=Mu,Mu=!1,w}function Ln(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ti(t,n,i)}l=l.next}while(l!==r)}}function cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ji(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ua(e){var t=e.alternate;t!==null&&(e.alternate=null,Ua(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fe],delete t[Bn],delete t[yi],delete t[Yf],delete t[Xf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $a(e){return e.tag===5||e.tag===3||e.tag===4}function Ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$a(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$r));else if(r!==4&&(e=e.child,e!==null))for(Mi(e,t,n),e=e.sibling;e!==null;)Mi(e,t,n),e=e.sibling}function Ri(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ri(e,t,n),e=e.sibling;e!==null;)Ri(e,t,n),e=e.sibling}var q=null,Le=!1;function Ze(e,t,n){for(n=n.child;n!==null;)Aa(e,t,n),n=n.sibling}function Aa(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 5:re||Wt(n,t);case 6:var r=q,l=Le;q=null,Ze(e,t,n),q=r,Le=l,q!==null&&(Le?(e=q,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):q.removeChild(n.stateNode));break;case 18:q!==null&&(Le?(e=q,n=n.stateNode,e.nodeType===8?Il(e.parentNode,n):e.nodeType===1&&Il(e,n),Fn(e)):Il(q,n.stateNode));break;case 4:r=q,l=Le,q=n.stateNode.containerInfo,Le=!0,Ze(e,t,n),q=r,Le=l;break;case 0:case 11:case 14:case 15:if(!re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ti(n,t,o),l=l.next}while(l!==r)}Ze(e,t,n);break;case 1:if(!re&&(Wt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){B(n,t,u)}Ze(e,t,n);break;case 21:Ze(e,t,n);break;case 22:n.mode&1?(re=(r=re)||n.memoizedState!==null,Ze(e,t,n),re=r):Ze(e,t,n);break;default:Ze(e,t,n)}}function Ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cd),t.forEach(function(r){var l=kd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pd(r/1960))-r,10e?16:e,nt===null)var r=!1;else{if(e=nt,nt=null,qr=0,M&6)throw Error(y(331));var l=M;for(M|=4,S=e.current;S!==null;){var i=S,o=i.child;if(S.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sQ()-Co?Ct(e,0):Eo|=n),pe(e,t)}function Xa(e,t){t===0&&(e.mode&1?(t=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):t=1);var n=oe();e=Ye(e,t),e!==null&&(Zn(e,t,n),pe(e,n))}function wd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xa(e,n)}function kd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Xa(e,n)}var Ga;Ga=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ce=!1,ud(e,t,n);ce=!!(e.flags&131072)}else ce=!1,U&&t.flags&1048576&&bs(t,Hr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pr(e,t),e=t.pendingProps;var l=bt(t,le.current);Zt(t,n),l=yo(null,t,r,e,l,n);var i=go();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,de(r)?(i=!0,Vr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,fo(t),l.updater=al,t.stateNode=l,l._reactInternals=t,Ei(t,r,e,n),t=Ni(null,t,r,!0,i,n)):(t.tag=0,U&&i&&lo(t),ie(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xd(r),e=ze(r,e),l){case 0:t=_i(null,t,r,e,n);break e;case 1:t=Lu(null,t,r,e,n);break e;case 11:t=Pu(null,t,r,e,n);break e;case 14:t=zu(null,t,r,ze(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),_i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Lu(e,t,r,l,n);case 3:e:{if(Ma(t),e===null)throw Error(y(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ia(e,t),Kr(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=rn(Error(y(423)),t),t=Tu(e,t,r,n,l);break e}else if(r!==l){l=rn(Error(y(424)),t),t=Tu(e,t,r,n,l);break e}else for(he=ot(t.stateNode.containerInfo.firstChild),ve=t,U=!0,Te=null,n=ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(en(),r===l){t=Xe(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return oa(t),e===null&&ki(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,hi(r,l)?o=null:i!==null&&hi(r,i)&&(t.flags|=32),ja(e,t),ie(e,t,o,n),t.child;case 6:return e===null&&ki(t),null;case 13:return Ra(e,t,n);case 4:return po(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tn(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Pu(e,t,r,l,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,O(Wr,r._currentValue),r._currentValue=o,i!==null)if(Oe(i.value,o)){if(i.children===l.children&&!fe.current){t=Xe(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=We(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Si(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(y(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Si(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ie(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Zt(t,n),l=Ce(l),r=r(l),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,l=ze(r,t.pendingProps),l=ze(r.type,l),zu(e,t,r,l,n);case 15:return La(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ze(r,l),Pr(e,t),t.tag=1,de(r)?(e=!0,Vr(t)):e=!1,Zt(t,n),Na(t,r,l),Ei(t,r,l,n),Ni(null,t,r,!0,e,n);case 19:return Oa(e,t,n);case 22:return Ta(e,t,n)}throw Error(y(156,t.tag))};function Za(e,t){return Es(e,t)}function Sd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xe(e,t,n,r){return new Sd(e,t,n,r)}function zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xd(e){if(typeof e=="function")return zo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ki)return 11;if(e===Yi)return 14}return 2}function ct(e,t){var n=e.alternate;return n===null?(n=xe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")zo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Dt:return _t(n.children,l,i,t);case Qi:o=8,l|=8;break;case Yl:return e=xe(12,n,t,l|2),e.elementType=Yl,e.lanes=i,e;case Xl:return e=xe(13,n,t,l),e.elementType=Xl,e.lanes=i,e;case Gl:return e=xe(19,n,t,l),e.elementType=Gl,e.lanes=i,e;case os:return dl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ls:o=10;break e;case is:o=9;break e;case Ki:o=11;break e;case Yi:o=14;break e;case Je:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=xe(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function _t(e,t,n,r){return e=xe(7,e,r,t),e.lanes=n,e}function dl(e,t,n,r){return e=xe(22,e,r,t),e.elementType=os,e.lanes=n,e.stateNode={isHidden:!1},e}function Wl(e,t,n){return e=xe(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=xe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ed(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Lo(e,t,n,r,l,i,o,u,s){return e=new Ed(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=xe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fo(i),e}function Cd(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ec)}catch(e){console.error(e)}}ec(),es.exports=ge;var Ld=es.exports,tc,Bu=Ld;tc=Bu.createRoot,Bu.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Td={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),vt=(e,t)=>{const n=je.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:s,...c},h)=>je.createElement("svg",{ref:h,...Td,width:l,height:l,stroke:r,strokeWidth:o?Number(i)*24/Number(l):i,className:["lucide",`lucide-${jd(e)}`,u].join(" "),...c},[...t.map(([p,m])=>je.createElement(p,m)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Md=vt("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rd=vt("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Od=vt("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Dd=vt("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Id=vt("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fd=vt("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ud=vt("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $d=vt("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);function Ad(){const[e,t]=je.useState(300),[n,r]=je.useState("..."),[l]=je.useState(()=>{const c="0123456789ABCDEF",h=Date.now().toString(16).toUpperCase(),p=Array.from({length:32},()=>c[Math.floor(Math.random()*c.length)]).join("");return`${h}-${p}`}),[i,o]=je.useState("");je.useEffect(()=>{fetch("https://api.ipify.org?format=json").then(p=>p.json()).then(p=>r(p.ip)).catch(()=>r("недоступен"));const c=setInterval(()=>{t(p=>p<=1?(window.location.reload(),0):p-1)},1e3),h=setInterval(()=>{o(p=>p.length>=3?"":p+".")},500);return()=>{clearInterval(c),clearInterval(h)}},[]);const u=Math.floor(e/60),s=e%60;return P.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-slate-800 text-white",children:[P.jsx("div",{className:"absolute inset-0 bg-[url('https://images.unsplash.com/photo-1528818955841-a7f1425131b5?auto=format&fit=crop&q=80')] opacity-[0.03] bg-cover bg-center mix-blend-overlay"}),P.jsx("div",{className:"relative z-10 min-h-screen flex items-center justify-center p-4",children:P.jsx("div",{className:"max-w-3xl w-full space-y-8",children:P.jsxs("div",{className:"text-center space-y-6",children:[P.jsxs("div",{className:"relative",children:[P.jsx("div",{className:"absolute -top-24 left-1/2 -translate-x-1/2 w-48 h-48 bg-red-500/10 rounded-full blur-3xl animate-pulse"}),P.jsxs("div",{className:"relative flex justify-center items-center space-x-4",children:[P.jsx(Od,{className:"h-12 w-12 text-red-500"}),P.jsx(Md,{className:"h-10 w-10 text-orange-500 animate-pulse"}),P.jsx(Rd,{className:"h-12 w-12 text-red-500"})]})]}),P.jsxs("div",{className:"space-y-2",children:[P.jsx("h1",{className:"text-4xl font-bold text-white",children:"Критическая нагрузка"}),P.jsxs("div",{className:"flex justify-center items-center space-x-2 text-red-400",children:[P.jsx(Fd,{className:"h-5 w-5"}),P.jsx("span",{className:"text-lg font-medium",children:"Код состояния: 503"})]})]}),P.jsxs("div",{className:"bg-slate-900/40 backdrop-blur border border-slate-800/50 rounded-xl p-6 space-y-6",children:[P.jsxs("div",{className:"flex items-center justify-center space-x-3",children:[P.jsx("div",{className:"h-2.5 w-2.5 bg-red-500 rounded-full animate-ping"}),P.jsxs("p",{className:"text-lg text-gray-300",children:["Система испытывает экстремальную нагрузку",i]})]}),P.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[P.jsxs("div",{className:"bg-slate-950/30 rounded-lg p-4 border border-slate-800/30",children:[P.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[P.jsx(Ud,{className:"h-5 w-5 text-emerald-400"}),P.jsx("span",{className:"text-emerald-400 font-medium",children:"Технические данные"})]}),P.jsxs("div",{className:"space-y-2 font-mono text-sm",children:[P.jsxs("p",{children:["IP: ",P.jsx("span",{className:"text-emerald-300",children:n})]}),P.jsxs("p",{className:"break-all",children:["ID: ",P.jsx("span",{className:"text-emerald-300",children:l})]})]})]}),P.jsxs("div",{className:"bg-slate-950/30 rounded-lg p-4 border border-slate-800/30",children:[P.jsxs("div",{className:"flex items-center space-x-2 mb-3",children:[P.jsx(Id,{className:"h-5 w-5 text-blue-400"}),P.jsx("span",{className:"text-blue-400 font-medium",children:"Автоматическое восстановление"})]}),P.jsxs("div",{className:"font-mono text-2xl text-center text-blue-300",children:[String(u).padStart(2,"0"),":",String(s).padStart(2,"0")]})]})]}),P.jsxs("div",{className:"bg-gradient-to-r from-yellow-500/5 via-yellow-500/10 to-yellow-500/5 rounded-lg p-5 border border-yellow-500/10",children:[P.jsxs("div",{className:"flex items-center justify-center space-x-2 mb-3",children:[P.jsx(Dd,{className:"h-5 w-5 text-yellow-400"}),P.jsx("span",{className:"text-yellow-400 font-medium",children:"Важное уведомление"})]}),P.jsx("p",{className:"text-gray-300 text-center text-sm",children:"Пожалуйста, не закрывайте эту страницу. Система автоматически попытается перенаправить вас на резервный сервер по истечении таймера."})]})]}),P.jsxs("div",{className:"flex items-center justify-center space-x-3 text-gray-400",children:[P.jsx($d,{className:"h-4 w-4 animate-pulse"}),P.jsx("p",{className:"text-sm",children:"Выполняется поиск доступных серверов для перенаправления запроса"})]}),P.jsx("p",{className:"text-sm text-gray-500",children:"Если проблема сохраняется после автоматической попытки восстановления, обратитесь в техническую поддержку, указав ID инцидента."})]})})}),P.jsx("div",{className:"fixed bottom-4 left-0 right-0",children:P.jsx("div",{className:"flex justify-center items-center space-x-3",children:P.jsxs("div",{className:"flex items-center space-x-2 bg-slate-950/60 backdrop-blur px-4 py-2 rounded-full border border-slate-800/40",children:[P.jsx("span",{className:"inline-block w-2 h-2 bg-red-500 rounded-full animate-pulse"}),P.jsx("span",{className:"text-sm text-gray-400",children:"Статус системы: Критическая нагрузка"})]})})})]})}tc(document.getElementById("root")).render(P.jsx(je.StrictMode,{children:P.jsx(Ad,{})})); diff --git a/sni-templates/503-2/assets/style.css b/sni-templates/503-2/assets/style.css new file mode 100644 index 0000000..0c919fb --- /dev/null +++ b/sni-templates/503-2/assets/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-top-24{top:-6rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-full{width:100%}.max-w-3xl{max-width:48rem}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-slate-800\/30{border-color:#1e293b4d}.border-slate-800\/40{border-color:#1e293b66}.border-slate-800\/50{border-color:#1e293b80}.border-yellow-500\/10{border-color:#eab3081a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-500\/10{background-color:#ef44441a}.bg-slate-900\/40{background-color:#0f172a66}.bg-slate-950\/30{background-color:#0206174d}.bg-slate-950\/60{background-color:#02061799}.bg-\[url\(\'https\:\/\/images\.unsplash\.com\/photo-1528818955841-a7f1425131b5\?auto\=format\&fit\=crop\&q\=80\'\)\]{background-image:url(https://images.unsplash.com/photo-1528818955841-a7f1425131b5?auto=format&fit=crop&q=80)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-yellow-500\/5{--tw-gradient-from: rgb(234 179 8 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-yellow-500\/10{--tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(234 179 8 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-slate-800{--tw-gradient-to: #1e293b var(--tw-gradient-to-position)}.to-yellow-500\/5{--tw-gradient-to: rgb(234 179 8 / .05) var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.opacity-\[0\.03\]{opacity:.03}.mix-blend-overlay{mix-blend-mode:overlay}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}} diff --git a/sni-templates/503-2/index.html b/sni-templates/503-2/index.html new file mode 100644 index 0000000..ef1178a --- /dev/null +++ b/sni-templates/503-2/index.html @@ -0,0 +1,14 @@ + + + + + + + 503 - Критическая нагрузка системы + + + + +
+ + \ No newline at end of file diff --git a/sni-templates/YouTube/apple-touch-icon.png b/sni-templates/YouTube/apple-touch-icon.png new file mode 100644 index 0000000..4cf6906 Binary files /dev/null and b/sni-templates/YouTube/apple-touch-icon.png differ diff --git a/sni-templates/YouTube/assets/v1/script.js b/sni-templates/YouTube/assets/v1/script.js new file mode 100644 index 0000000..9286035 --- /dev/null +++ b/sni-templates/YouTube/assets/v1/script.js @@ -0,0 +1,170 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qu={exports:{}},tl={},Wu={exports:{}},M={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Gn=Symbol.for("react.element"),oc=Symbol.for("react.portal"),uc=Symbol.for("react.fragment"),sc=Symbol.for("react.strict_mode"),ac=Symbol.for("react.profiler"),cc=Symbol.for("react.provider"),dc=Symbol.for("react.context"),fc=Symbol.for("react.forward_ref"),pc=Symbol.for("react.suspense"),mc=Symbol.for("react.memo"),hc=Symbol.for("react.lazy"),Ro=Symbol.iterator;function vc(e){return e===null||typeof e!="object"?null:(e=Ro&&e[Ro]||e["@@iterator"],typeof e=="function"?e:null)}var Ku={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yu=Object.assign,Zu={};function on(e,t,n){this.props=e,this.context=t,this.refs=Zu,this.updater=n||Ku}on.prototype.isReactComponent={};on.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};on.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gu(){}Gu.prototype=on.prototype;function Ai(e,t,n){this.props=e,this.context=t,this.refs=Zu,this.updater=n||Ku}var Fi=Ai.prototype=new Gu;Fi.constructor=Ai;Yu(Fi,on.prototype);Fi.isPureReactComponent=!0;var Io=Array.isArray,Xu=Object.prototype.hasOwnProperty,$i={current:null},Ju={key:!0,ref:!0,__self:!0,__source:!0};function qu(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Xu.call(t,r)&&!Ju.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,J=E[K];if(0>>1;Kl(xl,P))ytl(tr,xl)?(E[K]=tr,E[yt]=P,K=yt):(E[K]=xl,E[gt]=P,K=gt);else if(ytl(tr,P))E[K]=tr,E[yt]=P,K=yt;else break e}}return z}function l(E,z){var P=E.sortIndex-z.sortIndex;return P!==0?P:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],c=[],v=1,h=null,m=3,x=!1,k=!1,w=!1,L=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(E){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=E)r(c),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(c)}}function g(E){if(w=!1,f(E),!k)if(n(s)!==null)k=!0,gl(N);else{var z=n(c);z!==null&&yl(g,z.startTime-E)}}function N(E,z){k=!1,w&&(w=!1,d(_),_=-1),x=!0;var P=m;try{for(f(z),h=n(s);h!==null&&(!(h.expirationTime>z)||E&&!ze());){var K=h.callback;if(typeof K=="function"){h.callback=null,m=h.priorityLevel;var J=K(h.expirationTime<=z);z=e.unstable_now(),typeof J=="function"?h.callback=J:h===n(s)&&r(s),f(z)}else r(s);h=n(s)}if(h!==null)var er=!0;else{var gt=n(c);gt!==null&&yl(g,gt.startTime-z),er=!1}return er}finally{h=null,m=P,x=!1}}var j=!1,C=null,_=-1,W=5,T=-1;function ze(){return!(e.unstable_now()-TE||125K?(E.sortIndex=P,t(c,E),n(s)===null&&E===n(c)&&(w?(d(_),_=-1):w=!0,yl(g,P-K))):(E.sortIndex=J,t(s,E),k||x||(k=!0,gl(N))),E},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(E){var z=m;return function(){var P=m;m=z;try{return E.apply(this,arguments)}finally{m=P}}}})(rs);ns.exports=rs;var zc=ns.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Pc=Q,xe=zc;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,Mc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oo={},Ao={};function Lc(e){return Kl.call(Ao,e)?!0:Kl.call(Oo,e)?!1:Mc.test(e)?Ao[e]=!0:(Oo[e]=!0,!1)}function Tc(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Uc(e,t,n,r){if(t===null||typeof t>"u"||Tc(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ce(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ne[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ne[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hi=/[\-:]([a-z])/g;function Bi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hi,Bi);ne[t]=new ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hi,Bi);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hi,Bi);ne[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});ne.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ne[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Qi(e,t,n,r){var l=ne.hasOwnProperty(t)?ne[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{Sl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xn(e):""}function Rc(e){switch(e.tag){case 5:return xn(e.type);case 16:return xn("Lazy");case 13:return xn("Suspense");case 19:return xn("SuspenseList");case 0:case 2:case 15:return e=Nl(e.type,!1),e;case 11:return e=Nl(e.type.render,!1),e;case 1:return e=Nl(e.type,!0),e;default:return""}}function Xl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case It:return"Fragment";case Rt:return"Portal";case Yl:return"Profiler";case Wi:return"StrictMode";case Zl:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case os:return(e.displayName||"Context")+".Consumer";case is:return(e._context.displayName||"Context")+".Provider";case Ki:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yi:return t=e.displayName||null,t!==null?t:Xl(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return Xl(e(t))}catch{}}return null}function Ic(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xl(t);case 8:return t===Wi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ss(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dc(e){var t=ss(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lr(e){e._valueTracker||(e._valueTracker=Dc(e))}function as(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ss(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $o(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cs(e,t){t=t.checked,t!=null&&Qi(e,"checked",t,!1)}function ql(e,t){cs(e,t);var n=ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bl(e,t.type,n):t.hasOwnProperty("defaultValue")&&bl(e,t.type,ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Vo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bl(e,t,n){(t!=="number"||Lr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wn=Array.isArray;function Kt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oc=["Webkit","ms","Moz","O"];Object.keys(Nn).forEach(function(e){Oc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]})});function ms(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function hs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ms(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ac=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ni(e,t){if(t){if(Ac[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function ri(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var li=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ii=null,Yt=null,Zt=null;function Qo(e){if(e=qn(e)){if(typeof ii!="function")throw Error(y(280));var t=e.stateNode;t&&(t=ol(t),ii(e.stateNode,e.type,t))}}function vs(e){Yt?Zt?Zt.push(e):Zt=[e]:Yt=e}function gs(){if(Yt){var e=Yt,t=Zt;if(Zt=Yt=null,Qo(e),t)for(e=0;e>>=0,e===0?32:31-(Gc(e)/Xc|0)|0}var or=64,ur=4194304;function kn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ir(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=kn(u):(i&=o,i!==0&&(r=kn(i)))}else o=n&~l,o!==0?r=kn(o):i!==0&&(r=kn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Xn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function ed(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=jn),bo=" ",eu=!1;function Os(e,t){switch(e){case"keyup":return zd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function As(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dt=!1;function Md(e,t){switch(e){case"compositionend":return As(t);case"keypress":return t.which!==32?null:(eu=!0,bo);case"textInput":return e=t.data,e===bo&&eu?null:e;default:return null}}function Ld(e,t){if(Dt)return e==="compositionend"||!no&&Os(e,t)?(e=Is(),Sr=bi=nt=null,Dt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lu(n)}}function Hs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bs(){for(var e=window,t=Lr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lr(e.document)}return t}function ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $d(e){var t=Bs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hs(n.ownerDocument.documentElement,n)){if(r!==null&&ro(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=iu(n,i);var o=iu(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ot=null,di=null,_n=null,fi=!1;function ou(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fi||Ot==null||Ot!==Lr(r)||(r=Ot,"selectionStart"in r&&ro(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_n&&Fn(_n,r)||(_n=r,r=Ar(di,"onSelect"),0$t||(e.current=yi[$t],yi[$t]=null,$t--)}function I(e,t){$t++,yi[$t]=e.current,e.current=t}var pt={},oe=ht(pt),pe=ht(!1),Ct=pt;function bt(e,t){var n=e.type.contextTypes;if(!n)return pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function $r(){O(pe),O(oe)}function pu(e,t,n){if(oe.current!==pt)throw Error(y(168));I(oe,t),I(pe,n)}function qs(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,Ic(e)||"Unknown",l));return H({},n,r)}function Vr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pt,Ct=oe.current,I(oe,e),I(pe,pe.current),!0}function mu(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=qs(e,t,Ct),r.__reactInternalMemoizedMergedChildContext=e,O(pe),O(oe),I(oe,e)):O(pe),I(pe,n)}var He=null,ul=!1,Ol=!1;function bs(e){He===null?He=[e]:He.push(e)}function qd(e){ul=!0,bs(e)}function vt(){if(!Ol&&He!==null){Ol=!0;var e=0,t=R;try{var n=He;for(R=1;e>=o,l-=o,Be=1<<32-Ue(t)+l|n<_?(W=C,C=null):W=C.sibling;var T=m(d,C,f[_],g);if(T===null){C===null&&(C=W);break}e&&C&&T.alternate===null&&t(d,C),a=i(T,a,_),j===null?N=T:j.sibling=T,j=T,C=W}if(_===f.length)return n(d,C),A&&xt(d,_),N;if(C===null){for(;__?(W=C,C=null):W=C.sibling;var ze=m(d,C,T.value,g);if(ze===null){C===null&&(C=W);break}e&&C&&ze.alternate===null&&t(d,C),a=i(ze,a,_),j===null?N=ze:j.sibling=ze,j=ze,C=W}if(T.done)return n(d,C),A&&xt(d,_),N;if(C===null){for(;!T.done;_++,T=f.next())T=h(d,T.value,g),T!==null&&(a=i(T,a,_),j===null?N=T:j.sibling=T,j=T);return A&&xt(d,_),N}for(C=r(d,C);!T.done;_++,T=f.next())T=x(C,d,_,T.value,g),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?_:T.key),a=i(T,a,_),j===null?N=T:j.sibling=T,j=T);return e&&C.forEach(function(an){return t(d,an)}),A&&xt(d,_),N}function L(d,a,f,g){if(typeof f=="object"&&f!==null&&f.type===It&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case rr:e:{for(var N=f.key,j=a;j!==null;){if(j.key===N){if(N=f.type,N===It){if(j.tag===7){n(d,j.sibling),a=l(j,f.props.children),a.return=d,d=a;break e}}else if(j.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===qe&&gu(N)===j.type){n(d,j.sibling),a=l(j,f.props),a.ref=vn(d,j,f),a.return=d,d=a;break e}n(d,j);break}else t(d,j);j=j.sibling}f.type===It?(a=jt(f.props.children,d.mode,g,f.key),a.return=d,d=a):(g=Mr(f.type,f.key,f.props,null,d.mode,g),g.ref=vn(d,a,f),g.return=d,d=g)}return o(d);case Rt:e:{for(j=f.key;a!==null;){if(a.key===j)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){n(d,a.sibling),a=l(a,f.children||[]),a.return=d,d=a;break e}else{n(d,a);break}else t(d,a);a=a.sibling}a=Wl(f,d.mode,g),a.return=d,d=a}return o(d);case qe:return j=f._init,L(d,a,j(f._payload),g)}if(wn(f))return k(d,a,f,g);if(dn(f))return w(d,a,f,g);mr(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(n(d,a.sibling),a=l(a,f),a.return=d,d=a):(n(d,a),a=Ql(f,d.mode,g),a.return=d,d=a),o(d)):n(d,a)}return L}var tn=ra(!0),la=ra(!1),Qr=ht(null),Wr=null,Bt=null,uo=null;function so(){uo=Bt=Wr=null}function ao(e){var t=Qr.current;O(Qr),e._currentValue=t}function ki(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Xt(e,t){Wr=e,uo=Bt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fe=!0),e.firstContext=null)}function Ce(e){var t=e._currentValue;if(uo!==e)if(e={context:e,memoizedValue:t,next:null},Bt===null){if(Wr===null)throw Error(y(308));Bt=e,Wr.dependencies={lanes:0,firstContext:e}}else Bt=Bt.next=e;return t}var St=null;function co(e){St===null?St=[e]:St.push(e)}function ia(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,co(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ze(e,r)}function Ze(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var be=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function We(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function st(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ze(e,n)}return l=r.interleaved,l===null?(t.next=t,co(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ze(e,n)}function Er(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xi(e,n)}}function yu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kr(e,t,n,r){var l=e.updateQueue;be=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,o===null?i=c:o.next=c,o=s;var v=e.alternate;v!==null&&(v=v.updateQueue,u=v.lastBaseUpdate,u!==o&&(u===null?v.firstBaseUpdate=c:u.next=c,v.lastBaseUpdate=s))}if(i!==null){var h=l.baseState;o=0,v=c=s=null,u=i;do{var m=u.lane,x=u.eventTime;if((r&m)===m){v!==null&&(v=v.next={eventTime:x,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var k=e,w=u;switch(m=t,x=n,w.tag){case 1:if(k=w.payload,typeof k=="function"){h=k.call(x,h,m);break e}h=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=w.payload,m=typeof k=="function"?k.call(x,h,m):k,m==null)break e;h=H({},h,m);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else x={eventTime:x,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},v===null?(c=v=x,s=h):v=v.next=x,o|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(v===null&&(s=h),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=v,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Pt|=o,e.lanes=o,e.memoizedState=h}}function xu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Fl.transition;Fl.transition={};try{e(!1),t()}finally{R=n,Fl.transition=r}}function Na(){return _e().memoizedState}function nf(e,t,n){var r=ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ea(e))ja(t,n);else if(n=ia(e,t,n,r),n!==null){var l=se();Re(n,e,r,l),Ca(n,t,r)}}function rf(e,t,n){var r=ct(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ea(e))ja(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Ie(u,o)){var s=t.interleaved;s===null?(l.next=l,co(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=ia(e,t,l,r),n!==null&&(l=se(),Re(n,e,r,l),Ca(n,t,r))}}function Ea(e){var t=e.alternate;return e===V||t!==null&&t===V}function ja(e,t){zn=Zr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ca(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xi(e,n)}}var Gr={readContext:Ce,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},lf={readContext:Ce,useCallback:function(e,t){return Oe().memoizedState=[e,t===void 0?null:t],e},useContext:Ce,useEffect:ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cr(4194308,4,ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cr(4,2,e,t)},useMemo:function(e,t){var n=Oe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nf.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Oe();return e={current:e},t.memoizedState=e},useState:wu,useDebugValue:wo,useDeferredValue:function(e){return Oe().memoizedState=e},useTransition:function(){var e=wu(!1),t=e[0];return e=tf.bind(null,e[1]),Oe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=Oe();if(A){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),b===null)throw Error(y(349));zt&30||ca(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ku(fa.bind(null,r,i,e),[e]),r.flags|=2048,Yn(9,da.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oe(),t=b.identifierPrefix;if(A){var n=Qe,r=Be;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ae]=t,e[Hn]=r,Da(e,t,!1,!1),t.stateNode=e;e:{switch(o=ri(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;lln&&(t.flags|=128,r=!0,gn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yr(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!A)return le(t),null}else 2*Y()-i.renderingStartTime>ln&&n!==1073741824&&(t.flags|=128,r=!0,gn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Y(),t.sibling=null,n=$.current,I($,r?n&1|2:n&1),t):(le(t),null);case 22:case 23:return Co(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(le(t),t.subtreeFlags&6&&(t.flags|=8192)):le(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function pf(e,t){switch(io(t),t.tag){case 1:return me(t.type)&&$r(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nn(),O(pe),O(oe),ho(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mo(t),null;case 13:if(O($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));en()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O($),null;case 4:return nn(),null;case 10:return ao(t.type._context),null;case 22:case 23:return Co(),null;case 24:return null;default:return null}}var vr=!1,ie=!1,mf=typeof WeakSet=="function"?WeakSet:Set,S=null;function Qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){B(e,t,r)}else n.current=null}function Mi(e,t,n){try{n()}catch(r){B(e,t,r)}}var Tu=!1;function hf(e,t){if(pi=Dr,e=Bs(),ro(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,c=0,v=0,h=e,m=null;t:for(;;){for(var x;h!==n||l!==0&&h.nodeType!==3||(u=o+l),h!==i||r!==0&&h.nodeType!==3||(s=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(x=h.firstChild)!==null;)m=h,h=x;for(;;){if(h===e)break t;if(m===n&&++c===l&&(u=o),m===i&&++v===r&&(s=o),(x=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=x}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(mi={focusedElem:e,selectionRange:n},Dr=!1,S=t;S!==null;)if(t=S,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,S=e;else for(;S!==null;){t=S;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var w=k.memoizedProps,L=k.memoizedState,d=t.stateNode,a=d.getSnapshotBeforeUpdate(t.elementType===t.type?w:Me(t.type,w),L);d.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(g){B(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,S=e;break}S=t.return}return k=Tu,Tu=!1,k}function Pn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Mi(t,n,i)}l=l.next}while(l!==r)}}function cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Li(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Fa(e){var t=e.alternate;t!==null&&(e.alternate=null,Fa(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Hn],delete t[gi],delete t[Xd],delete t[Jd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $a(e){return e.tag===5||e.tag===3||e.tag===4}function Uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$a(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ti(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fr));else if(r!==4&&(e=e.child,e!==null))for(Ti(e,t,n),e=e.sibling;e!==null;)Ti(e,t,n),e=e.sibling}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}var ee=null,Le=!1;function Je(e,t,n){for(n=n.child;n!==null;)Va(e,t,n),n=n.sibling}function Va(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(nl,n)}catch{}switch(n.tag){case 5:ie||Qt(n,t);case 6:var r=ee,l=Le;ee=null,Je(e,t,n),ee=r,Le=l,ee!==null&&(Le?(e=ee,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ee.removeChild(n.stateNode));break;case 18:ee!==null&&(Le?(e=ee,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),On(e)):Dl(ee,n.stateNode));break;case 4:r=ee,l=Le,ee=n.stateNode.containerInfo,Le=!0,Je(e,t,n),ee=r,Le=l;break;case 0:case 11:case 14:case 15:if(!ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Mi(n,t,o),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!ie&&(Qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){B(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(ie=(r=ie)||n.memoizedState!==null,Je(e,t,n),ie=r):Je(e,t,n);break;default:Je(e,t,n)}}function Ru(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mf),t.forEach(function(r){var l=Ef.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Pe(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gf(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,qr=0,U&6)throw Error(y(331));var l=U;for(U|=4,S=e.current;S!==null;){var i=S,o=i.child;if(S.flags&16){var u=i.deletions;if(u!==null){for(var s=0;sY()-Eo?Et(e,0):No|=n),he(e,t)}function Ga(e,t){t===0&&(e.mode&1?(t=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):t=1);var n=se();e=Ze(e,t),e!==null&&(Xn(e,t,n),he(e,n))}function Nf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ga(e,n)}function Ef(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),Ga(e,n)}var Xa;Xa=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,df(e,t,n);fe=!!(e.flags&131072)}else fe=!1,A&&t.flags&1048576&&ea(t,Br,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_r(e,t),e=t.pendingProps;var l=bt(t,oe.current);Xt(t,n),l=go(null,t,r,e,l,n);var i=yo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(i=!0,Vr(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,fo(t),l.updater=al,t.stateNode=l,l._reactInternals=t,Ni(t,r,e,n),t=Ci(null,t,r,!0,i,n)):(t.tag=0,A&&i&&lo(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_r(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Cf(r),e=Me(r,e),l){case 0:t=ji(null,t,r,e,n);break e;case 1:t=Pu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=zu(null,t,r,Me(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),ji(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),Pu(e,t,r,l,n);case 3:e:{if(Ua(t),e===null)throw Error(y(387));r=t.pendingProps,i=t.memoizedState,l=i.element,oa(e,t),Kr(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=rn(Error(y(423)),t),t=Mu(e,t,r,n,l);break e}else if(r!==l){l=rn(Error(y(424)),t),t=Mu(e,t,r,n,l);break e}else for(ge=ut(t.stateNode.containerInfo.firstChild),ye=t,A=!0,Te=null,n=la(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(en(),r===l){t=Ge(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return ua(t),e===null&&wi(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,hi(r,l)?o=null:i!==null&&hi(r,i)&&(t.flags|=32),Ta(e,t),ue(e,t,o,n),t.child;case 6:return e===null&&wi(t),null;case 13:return Ra(e,t,n);case 4:return po(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tn(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),_u(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,I(Qr,r._currentValue),r._currentValue=o,i!==null)if(Ie(i.value,o)){if(i.children===l.children&&!pe.current){t=Ge(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=We(-1,n&-n),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?s.next=s:(s.next=v.next,v.next=s),c.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ki(i.return,n,t),u.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(y(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ki(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Xt(t,n),l=Ce(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=Me(r,t.pendingProps),l=Me(r.type,l),zu(e,t,r,l,n);case 15:return Ma(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),_r(e,t),t.tag=1,me(r)?(e=!0,Vr(t)):e=!1,Xt(t,n),_a(t,r,l),Ni(t,r,l,n),Ci(null,t,r,!0,e,n);case 19:return Ia(e,t,n);case 22:return La(e,t,n)}throw Error(y(156,t.tag))};function Ja(e,t){return Es(e,t)}function jf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new jf(e,t,n,r)}function zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cf(e){if(typeof e=="function")return zo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ki)return 11;if(e===Yi)return 14}return 2}function dt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")zo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case It:return jt(n.children,l,i,t);case Wi:o=8,l|=8;break;case Yl:return e=Ee(12,n,t,l|2),e.elementType=Yl,e.lanes=i,e;case Zl:return e=Ee(13,n,t,l),e.elementType=Zl,e.lanes=i,e;case Gl:return e=Ee(19,n,t,l),e.elementType=Gl,e.lanes=i,e;case us:return fl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case is:o=10;break e;case os:o=9;break e;case Ki:o=11;break e;case Yi:o=14;break e;case qe:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function jt(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function fl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=us,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _f(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Po(e,t,n,r,l,i,o,u,s){return e=new _f(e,t,n,u,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ee(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fo(i),e}function zf(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tc)}catch(e){console.error(e)}}tc(),ts.exports=we;var Uf=ts.exports,nc,Hu=Uf;nc=Hu.createRoot,Hu.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Rf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const If=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),F=(e,t)=>{const n=Q.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:u="",children:s,...c},v)=>Q.createElement("svg",{ref:v,...Rf,width:l,height:l,stroke:r,strokeWidth:o?Number(i)*24/Number(l):i,className:["lucide",`lucide-${If(e)}`,u].join(" "),...c},[...t.map(([h,m])=>Q.createElement(h,m)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Df=F("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Of=F("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Af=F("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ff=F("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $f=F("Clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vf=F("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hf=F("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bf=F("Dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qf=F("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wf=F("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kf=F("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yf=F("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zf=F("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gf=F("MousePointer2",[["path",{d:"m4 4 7.07 17 2.51-7.39L21 11.07z",key:"1vqm48"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xf=F("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jf=F("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qf=F("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bu=F("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bf=F("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ep=F("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tp=F("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z",key:"y3tblf"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const np=F("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rp=F("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lp=F("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),ip=({onClick:e})=>p.jsxs("a",{href:"/",className:"flex items-center group",onClick:t=>{t.preventDefault(),e()},children:[p.jsx("div",{className:"flex items-center justify-center mr-2",children:p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-600 to-blue-600 rounded-lg blur group-hover:blur-xl transition-all duration-300"}),p.jsx("div",{className:"relative bg-gradient-to-r from-purple-600 to-blue-600 text-white p-2 rounded-lg transform group-hover:scale-110 transition-all duration-300",children:p.jsx($f,{size:22})})]})}),p.jsx("div",{children:p.jsx("h1",{className:"text-xl font-bold bg-gradient-to-r from-purple-400 to-blue-400 bg-clip-text text-transparent",children:"Видеоландия"})})]}),op=({setShowModal:e})=>p.jsx("header",{className:"sticky top-0 z-10 bg-white/5 backdrop-blur-xl border-b border-white/10",children:p.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[p.jsxs("div",{className:"flex items-center",children:[p.jsx("button",{className:"p-2 mr-2 rounded-xl hover:bg-white/10 transition-all hover:scale-110",onClick:t=>{t.preventDefault(),e(!0)},children:p.jsx(Zf,{size:22,className:"text-gray-200"})}),p.jsx(ip,{onClick:()=>e(!0)})]}),p.jsx("div",{className:"hidden md:flex items-center flex-1 max-w-xl mx-4",children:p.jsxs("div",{className:"relative w-full group",children:[p.jsx("input",{type:"text",placeholder:"Найти видео...",className:"w-full bg-white/5 border border-white/10 rounded-xl py-2 px-4 pl-10 outline-none focus:border-purple-500 transition-all group-hover:border-white/20 text-white placeholder-gray-400",onClick:t=>{t.preventDefault(),e(!0)}}),p.jsx(Bu,{size:18,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),p.jsx("button",{className:"absolute right-2 top-1/2 transform -translate-y-1/2 bg-gradient-to-r from-purple-600 to-blue-600 text-white px-4 py-1 rounded-lg opacity-0 group-hover:opacity-100 transition-all duration-300 hover:shadow-lg hover:scale-105",onClick:t=>{t.preventDefault(),e(!0)},children:p.jsx(ep,{size:16})})]})}),p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx("button",{className:"p-2 rounded-xl hover:bg-white/10 md:mr-2 transition-all hover:scale-110",onClick:t=>{t.preventDefault(),e(!0)},children:p.jsx(Bu,{size:22,className:"md:hidden text-gray-200"})}),p.jsx("button",{className:"p-2 rounded-xl hover:bg-white/10 transition-all hover:scale-110",onClick:t=>{t.preventDefault(),e(!0)},children:p.jsx(rp,{size:22,className:"text-gray-200"})}),p.jsxs("button",{className:"p-2 rounded-xl hover:bg-white/10 transition-all hover:scale-110 relative",onClick:t=>{t.preventDefault(),e(!0)},children:[p.jsx(Af,{size:22,className:"text-gray-200"}),p.jsx("span",{className:"absolute top-1 right-1 w-2 h-2 bg-purple-500 rounded-full"})]}),p.jsxs("button",{className:"w-9 h-9 rounded-xl bg-gradient-to-r from-purple-600 to-blue-600 text-white flex items-center justify-center transition-all hover:scale-110 hover:shadow-lg relative group",onClick:t=>{t.preventDefault(),e(!0)},children:[p.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-600 to-blue-600 rounded-xl blur-lg opacity-0 group-hover:opacity-100 transition-all duration-300"}),p.jsx(lp,{size:20,className:"relative z-10"})]})]})]})}),up=({setShowModal:e})=>{const t=[{icon:p.jsx(Kf,{size:20}),text:"Главная",gradient:"from-pink-500 to-rose-500",emoji:"🏠"},{icon:p.jsx(Hf,{size:20}),text:"Навигация",gradient:"from-purple-500 to-indigo-500",emoji:"🧭"},{icon:p.jsx(Ff,{size:20}),text:"Подписки",gradient:"from-blue-500 to-cyan-500",emoji:"📚"}],n=[{icon:p.jsx(Vf,{size:20}),text:"История",gradient:"from-teal-500 to-emerald-500",emoji:"⏰"},{icon:p.jsx(tp,{size:20}),text:"Понравившиеся",gradient:"from-red-500 to-orange-500",emoji:"❤️"},{icon:p.jsx(Of,{size:20}),text:"Смотреть позже",gradient:"from-amber-500 to-yellow-500",emoji:"🕒"}],r=[{icon:p.jsx(Qf,{size:20}),text:"В тренде",gradient:"from-orange-500 to-red-500",emoji:"🔥"},{icon:p.jsx(Xf,{size:20}),text:"Музыка",gradient:"from-violet-500 to-purple-500",emoji:"🎵"},{icon:p.jsx(Wf,{size:20}),text:"Игры",gradient:"from-blue-500 to-indigo-500",emoji:"🎮"},{icon:p.jsx(np,{size:20}),text:"Спорт",gradient:"from-emerald-500 to-green-500",emoji:"🏆"},{icon:p.jsx(Jf,{size:20}),text:"Новости",gradient:"from-cyan-500 to-blue-500",emoji:"📰"},{icon:p.jsx(Yf,{size:20}),text:"Обучение",gradient:"from-yellow-500 to-amber-500",emoji:"💡"}],l=(i,o,u,s)=>p.jsxs("a",{href:"#",className:"flex items-center p-3 rounded-xl hover:bg-white/10 backdrop-blur-lg transition-all hover:scale-105 group relative overflow-hidden",onClick:c=>{c.preventDefault(),e(!0)},children:[p.jsx("div",{className:`absolute inset-0 bg-gradient-to-r ${u} opacity-0 group-hover:opacity-10 transition-opacity`}),p.jsxs("div",{className:"flex items-center space-x-3 relative z-10",children:[p.jsx("span",{className:"w-8 h-8 flex items-center justify-center rounded-lg bg-white/10 backdrop-blur-lg group-hover:bg-white/20 transition-colors",children:i}),p.jsx("span",{className:"text-sm font-medium",children:o}),p.jsx("span",{className:"text-base opacity-0 group-hover:opacity-100 transition-opacity",children:s})]})]});return p.jsx("aside",{className:"w-72 hidden md:block overflow-y-auto border-r border-white/10 pt-2 bg-white/5 backdrop-blur-xl",children:p.jsxs("div",{className:"p-3 space-y-6",children:[p.jsx("div",{className:"space-y-1",children:t.map((i,o)=>p.jsx("div",{children:l(i.icon,i.text,i.gradient,i.emoji)},`main-${o}`))}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("h3",{className:"text-sm font-semibold px-3 pb-2 text-white/60",children:"Библиотека"}),n.map((i,o)=>p.jsx("div",{children:l(i.icon,i.text,i.gradient,i.emoji)},`library-${o}`))]}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("h3",{className:"text-sm font-semibold px-3 pb-2 text-white/60",children:"Категории"}),r.map((i,o)=>p.jsx("div",{children:l(i.icon,i.text,i.gradient,i.emoji)},`explore-${o}`))]})]})})},sp=({video:e,setShowModal:t})=>{const[n,r]=Q.useState(!1),l=u=>{const s=u.replace(/[KM]/g,"");switch(u.slice(-1)){case"K":return`${s} тыс.`;case"M":return`${s} млн`;default:return u}},i=u=>{const s=u.split(" ")[0],c=u.split(" ")[1],v={days:["день","дня","дней"],week:["неделя","недели","недель"],weeks:["неделя","недели","недель"],month:["месяц","месяца","месяцев"],months:["месяц","месяца","месяцев"],ago:"назад"},h=(k,w)=>{const L=[2,0,1,1,1,2];return w[k%100>4&&k%100<20?2:L[Math.min(k%10,5)]]},m=parseInt(s);c.replace("s","");const x=v[c]?h(m,v[c]):c;return`${m} ${x} ${v.ago}`},o=u=>u.replace("/giphy.gif","/200w_s.gif");return p.jsxs("div",{className:"cursor-pointer group transform transition-all duration-300 hover:scale-105",onClick:()=>t(!0),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[p.jsxs("div",{className:"relative rounded-xl overflow-hidden mb-3 shadow-lg",children:[p.jsx("img",{src:n?e.gifUrl:o(e.gifUrl),alt:e.title,className:"w-full aspect-video object-cover transition-transform duration-300 group-hover:scale-110"}),p.jsx("div",{className:"absolute bottom-2 right-2 bg-black bg-opacity-80 px-2 py-1 rounded text-xs font-medium",children:e.duration}),p.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-20 transition-all duration-300"})]}),p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"mr-3 flex-shrink-0",children:p.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden ring-2 ring-purple-500 ring-offset-2 ring-offset-[#0f0f0f]",children:p.jsx("img",{src:`https://i.pravatar.cc/150?u=${e.channelName}`,alt:e.channelName,className:"w-full h-full object-cover"})})}),p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-medium line-clamp-2 mb-1 group-hover:text-purple-400 transition-colors",children:e.title}),p.jsx("p",{className:"text-xs text-gray-400 hover:text-gray-300 transition-colors",children:e.channelName}),p.jsxs("p",{className:"text-xs text-gray-400",children:[l(e.views)," просмотров • ",i(e.postedAt)]})]})]})]})},ap=[{id:"vid1",title:"Как создать современный сайт за 10 минут",gifUrl:"https://media.giphy.com/media/26tn33aiTi1jkl6H6/giphy.gif",channelName:"Веб-Мастер",channelAvatarUrl:"https://images.pexels.com/photos/1036623/pexels-photo-1036623.jpeg",views:"1.2M",postedAt:"3 days ago",duration:"10:42"},{id:"vid2",title:"Эпическое путешествие на велосипеде через Альпы",gifUrl:"https://media.giphy.com/media/3oKIPEqDGUULpEU0aQ/giphy.gif",channelName:"Экстрим Спорт",channelAvatarUrl:"https://images.pexels.com/photos/1681010/pexels-photo-1681010.jpeg",views:"850K",postedAt:"1 week ago",duration:"18:24"},{id:"vid3",title:"Готовим идеальный хлеб на закваске: пошаговый рецепт",gifUrl:"https://media.giphy.com/media/Z8k3qSS4PiYGk/giphy.gif",channelName:"Кулинарные Мастера",channelAvatarUrl:"https://images.pexels.com/photos/887827/pexels-photo-887827.jpeg",views:"2.4M",postedAt:"2 months ago",duration:"24:15"},{id:"vid4",title:"Продвинутые методы машинного обучения",gifUrl:"https://media.giphy.com/media/xT9C25UNTwfZuk85WP/giphy.gif",channelName:"Технологии Будущего",channelAvatarUrl:"https://images.pexels.com/photos/2589653/pexels-photo-2589653.jpeg",views:"375K",postedAt:"5 days ago",duration:"42:18"},{id:"vid5",title:"Секреты ночной фотографии",gifUrl:"https://media.giphy.com/media/26DN0U3SqKDG2fTFe/giphy.gif",channelName:"Фото Мастер",channelAvatarUrl:"https://images.pexels.com/photos/1559487/pexels-photo-1559487.jpeg",views:"1.1M",postedAt:"2 weeks ago",duration:"15:33"},{id:"vid6",title:"Как начать инвестировать: руководство для начинающих",gifUrl:"https://media.giphy.com/media/67ThRZlYBvibtdF9JH/giphy.gif",channelName:"Финансовая Академия",channelAvatarUrl:"https://images.pexels.com/photos/937481/pexels-photo-937481.jpeg",views:"3.2M",postedAt:"1 month ago",duration:"28:05"},{id:"vid7",title:"Удивительные встречи с дикой природой в Африке",gifUrl:"https://media.giphy.com/media/JIX9t2j0ZTN9S/giphy.gif",channelName:"Дикая Природа",channelAvatarUrl:"https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg",views:"4.5M",postedAt:"3 months ago",duration:"32:47"},{id:"vid8",title:"Учимся играть на пианино: первые 5 песен",gifUrl:"https://media.giphy.com/media/3o6Zt7NPnoGorOryHC/giphy.gif",channelName:"Музыкальный Наставник",channelAvatarUrl:"https://images.pexels.com/photos/1300402/pexels-photo-1300402.jpeg",views:"980K",postedAt:"2 weeks ago",duration:"19:58"},{id:"vid9",title:"Современный ремонт квартиры: до и после",gifUrl:"https://media.giphy.com/media/l0HlTy9x8FZo0XO1i/giphy.gif",channelName:"Дизайн Интерьера",channelAvatarUrl:"https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg",views:"1.7M",postedAt:"1 month ago",duration:"22:14"},{id:"vid10",title:"10 самых красивых мест для путешествий в 2025",gifUrl:"https://media.giphy.com/media/3og0IFrHkIglEOg8Ba/giphy.gif",channelName:"Путешествия",channelAvatarUrl:"https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg",views:"5.8M",postedAt:"4 weeks ago",duration:"26:39"},{id:"vid11",title:"Мастерство уличной фотографии",gifUrl:"https://media.giphy.com/media/3o7rc0qU6m5hneMsuc/giphy.gif",channelName:"Городской Объектив",channelAvatarUrl:"https://images.pexels.com/photos/1516680/pexels-photo-1516680.jpeg",views:"2.1M",postedAt:"6 days ago",duration:"17:25"},{id:"vid12",title:"Наука приготовления идеального кофе",gifUrl:"https://media.giphy.com/media/3oriO04qxVReM5rJEA/giphy.gif",channelName:"Кофейная Культура",channelAvatarUrl:"https://images.pexels.com/photos/1858175/pexels-photo-1858175.jpeg",views:"890K",postedAt:"2 days ago",duration:"14:52"},{id:"vid13",title:"Набор мышечной массы: 12-недельная программа",gifUrl:"https://media.giphy.com/media/3oriNKQe0D6uQVjcIM/giphy.gif",channelName:"Фитнес Про",channelAvatarUrl:"https://images.pexels.com/photos/1181686/pexels-photo-1181686.jpeg",views:"3.4M",postedAt:"1 week ago",duration:"28:15"},{id:"vid14",title:"Съемка с дрона: продвинутые техники",gifUrl:"https://media.giphy.com/media/xT9IgzoKnwFNmISR8I/giphy.gif",channelName:"Аэросъемка",channelAvatarUrl:"https://images.pexels.com/photos/2379005/pexels-photo-2379005.jpeg",views:"1.5M",postedAt:"3 days ago",duration:"21:33"},{id:"vid15",title:"Исследование древних руин Юго-Восточной Азии",gifUrl:"https://media.giphy.com/media/l0HlvtIPzPdt2usKs/giphy.gif",channelName:"Время Приключений",channelAvatarUrl:"https://images.pexels.com/photos/1222271/pexels-photo-1222271.jpeg",views:"2.8M",postedAt:"5 days ago",duration:"34:17"},{id:"vid16",title:"Жизнь без отходов: советы по экологичному быту",gifUrl:"https://media.giphy.com/media/26gsspfbt1HfVQ9va/giphy.gif",channelName:"Эко Жизнь",channelAvatarUrl:"https://images.pexels.com/photos/1239291/pexels-photo-1239291.jpeg",views:"925K",postedAt:"1 week ago",duration:"19:45"},{id:"vid17",title:"Искусство бонсай: полное руководство",gifUrl:"https://media.giphy.com/media/3o7TKMf5HQQlZvv9Cg/giphy.gif",channelName:"Садовый Мастер",channelAvatarUrl:"https://images.pexels.com/photos/1222271/pexels-photo-1222271.jpeg",views:"1.1M",postedAt:"2 weeks ago",duration:"25:18"},{id:"vid18",title:"Мастер-класс по цифровому искусству",gifUrl:"https://media.giphy.com/media/l0HlPtBCscbYiLfR6/giphy.gif",channelName:"Цифровой Художник",channelAvatarUrl:"https://images.pexels.com/photos/1758144/pexels-photo-1758144.jpeg",views:"750K",postedAt:"4 days ago",duration:"42:55"},{id:"vid19",title:"Традиционная японская кухня",gifUrl:"https://media.giphy.com/media/3o85xGocUH8RYoDKKs/giphy.gif",channelName:"Азиатская Кухня",channelAvatarUrl:"https://images.pexels.com/photos/1499327/pexels-photo-1499327.jpeg",views:"2.2M",postedAt:"1 week ago",duration:"31:42"},{id:"vid20",title:"Космические исследования: открытия 2025 года",gifUrl:"https://media.giphy.com/media/3og0IFrHkIglEOg8Ba/giphy.gif",channelName:"Космическая Наука",channelAvatarUrl:"https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg",views:"4.7M",postedAt:"2 days ago",duration:"38:29"},{id:"vid21",title:"Городское садоводство: выращивание овощей на балконе",gifUrl:"https://media.giphy.com/media/26ufcVAp3AiJJsrIs/giphy.gif",channelName:"Городской Фермер",channelAvatarUrl:"https://images.pexels.com/photos/1181519/pexels-photo-1181519.jpeg",views:"892K",postedAt:"1 week ago",duration:"15:22"},{id:"vid22",title:"Продвинутые техники игры на гитаре",gifUrl:"https://media.giphy.com/media/3oEduLvxnhDan5FQu4/giphy.gif",channelName:"Гитарный Мастер",channelAvatarUrl:"https://images.pexels.com/photos/1181695/pexels-photo-1181695.jpeg",views:"1.3M",postedAt:"5 days ago",duration:"28:45"},{id:"vid23",title:"Медитация для начинающих",gifUrl:"https://media.giphy.com/media/l4HnKwiJJaJQB04Zq/giphy.gif",channelName:"Осознанная Жизнь",channelAvatarUrl:"https://images.pexels.com/photos/1181686/pexels-photo-1181686.jpeg",views:"2.1M",postedAt:"3 days ago",duration:"20:15"},{id:"vid24",title:"Техники акварельной живописи",gifUrl:"https://media.giphy.com/media/3o6Zt7aSSZLX6U5WqQ/giphy.gif",channelName:"Арт Студия",channelAvatarUrl:"https://images.pexels.com/photos/1758144/pexels-photo-1758144.jpeg",views:"756K",postedAt:"1 week ago",duration:"32:18"},{id:"vid25",title:"Современная архитектура мира",gifUrl:"https://media.giphy.com/media/3o7btNa0RUYa5E7iiQ/giphy.gif",channelName:"Архитектура Сегодня",channelAvatarUrl:"https://images.pexels.com/photos/1516680/pexels-photo-1516680.jpeg",views:"1.8M",postedAt:"4 days ago",duration:"25:40"}],cp=({setShowModal:e})=>{const[t,n]=Q.useState([]),[r,l]=Q.useState([]);Q.useEffect(()=>{const o=[...ap].sort(()=>Math.random()-.5);n(o),l(o.slice(0,16))},[]);const i=[{name:"Все",emoji:"🌟"},{name:"Игры",emoji:"🎮"},{name:"Музыка",emoji:"🎵"},{name:"Подкасты",emoji:"🎙️"},{name:"Прямой эфир",emoji:"📡"},{name:"Кулинария",emoji:"👨‍🍳"},{name:"Новые",emoji:"🆕"},{name:"Просмотренные",emoji:"👁️"},{name:"Рекомендации",emoji:"🎯"}];return p.jsxs("div",{children:[p.jsx("div",{className:"flex overflow-x-auto pb-4 mb-4 whitespace-nowrap scrollbar-hide",children:i.map((o,u)=>p.jsxs("a",{href:"#",className:`px-4 py-2 mr-2 rounded-full text-sm font-medium flex items-center gap-2 transition-all transform hover:scale-105 ${u===0?"bg-gradient-to-r from-purple-600 to-blue-600 text-white shadow-lg":"bg-[#272727] hover:bg-[#3d3d3d] text-white hover:shadow-md"}`,onClick:s=>{s.preventDefault(),e(!0)},children:[p.jsx("span",{className:"text-base",children:o.emoji}),p.jsx("span",{children:o.name})]},u))}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:r.map(o=>p.jsx(sp,{video:o,setShowModal:e},o.id))})]})},dp=({step:e,onComplete:t})=>{const[n,r]=Q.useState(""),[l,i]=Q.useState(0),[o,u]=Q.useState([]);Q.useEffect(()=>{i(Math.floor(Math.random()*5));const h=["2014422","3052361","1123567","3889855","2382325","2341290","2280547","1738434","1834399"],m=Array(9).fill(null).map(()=>{if(Math.random()<.3)return null;const x=h[Math.floor(Math.random()*h.length)];return`https://images.pexels.com/photos/${x}/pexels-photo-${x}.jpeg`});u(m)},[e]);const s=()=>{const h=Math.floor(Math.random()*10)+1,m=Math.floor(Math.random()*10)+1,x=["+","-","×"],k=x[Math.floor(Math.random()*x.length)];return{num1:h,num2:m,operator:k}},c=()=>{const h=["■","●","▲","◆"];return Array(5).fill(0).map(()=>h[Math.floor(Math.random()*h.length)])},v=()=>{switch(l){case 0:return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"bg-gray-800 p-3 rounded-lg relative overflow-hidden",children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-30",children:p.jsx("div",{className:"text-5xl font-extrabold tracking-widest transform rotate-30 text-white",children:Array(5).fill(0).map((w,L)=>p.jsx("span",{className:"inline-block transform rotate-1",children:String.fromCharCode(65+Math.floor(Math.random()*26))},L))})}),p.jsx("div",{className:"relative bg-blue-900 bg-opacity-20 p-4 rounded-md",children:p.jsx("p",{className:"font-mono text-xl tracking-wide text-center",children:["A","7","X","2","K"].map((w,L)=>p.jsx("span",{className:`inline-block mx-0.5 ${L%2===0?"transform rotate-2":"transform -rotate-3"}`,children:w},L))})}),p.jsx("button",{className:"absolute top-2 right-2 p-1 text-gray-400 hover:text-white",onClick:t,children:p.jsx(qf,{size:16})})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium text-gray-300 mb-1",children:"Enter the characters shown above:"}),p.jsx("input",{type:"text",value:n,onChange:w=>r(w.target.value),className:"w-full px-3 py-2 bg-[#2a2a2a] border border-gray-700 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"Enter captcha"})]}),p.jsx("button",{onClick:t,className:"w-full py-2 px-4 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md transition-colors",children:"Verify"})]});case 1:return p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm font-medium text-gray-300",children:"Select all squares with traffic lights:"}),p.jsx("div",{className:"grid grid-cols-3 gap-1",children:o.map((w,L)=>p.jsx("div",{className:"aspect-square bg-gray-800 rounded-sm cursor-pointer hover:bg-gray-700 transition-colors relative overflow-hidden",onClick:t,children:w&&p.jsx("img",{src:w,alt:"",className:"w-full h-full object-cover opacity-50"})},L))}),p.jsxs("div",{className:"flex justify-between",children:[p.jsx("button",{onClick:t,className:"py-2 px-4 text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Skip"}),p.jsx("button",{onClick:t,className:"py-2 px-4 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md transition-colors",children:"Verify"})]})]});case 2:return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"p-4 bg-gray-800 rounded-lg",children:[p.jsx("p",{className:"text-center text-sm mb-2",children:"Drag the slider to solve the puzzle"}),p.jsxs("div",{className:"relative h-10 bg-gray-900 rounded-full overflow-hidden mb-4",children:[p.jsx("div",{className:"absolute inset-y-0 left-0 bg-blue-600 w-1/4 rounded-l-full"}),p.jsx("div",{className:"absolute inset-y-0 left-[25%] w-8 h-8 bg-white rounded-full shadow-lg transform -translate-x-1/2 -translate-y-1/2 top-1/2 cursor-grab",onClick:t})]}),p.jsx("p",{className:"text-xs text-center text-gray-400",children:"Slide to complete verification"})]}),p.jsx("button",{onClick:t,className:"w-full py-2 px-4 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md transition-colors",children:"Try Again"})]});case 3:const{num1:h,num2:m,operator:x}=s();return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"bg-gray-800 p-4 rounded-lg",children:[p.jsx("div",{className:"flex items-center justify-center mb-4",children:p.jsx(Bf,{className:"text-blue-400 mr-2",size:24})}),p.jsx("p",{className:"text-lg font-medium text-center mb-4",children:"Solve the math problem:"}),p.jsxs("p",{className:"text-2xl text-center font-mono mb-4",children:[h," ",x," ",m," = ?"]}),p.jsx("input",{type:"number",value:n,onChange:w=>r(w.target.value),className:"w-full px-3 py-2 bg-[#2a2a2a] border border-gray-700 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"Enter your answer"})]}),p.jsx("button",{onClick:t,className:"w-full py-2 px-4 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md transition-colors",children:"Verify"})]});case 4:const k=c();return p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"bg-gray-800 p-4 rounded-lg",children:[p.jsx("div",{className:"flex items-center justify-center mb-4",children:p.jsx(Gf,{className:"text-blue-400 mr-2",size:24})}),p.jsx("p",{className:"text-sm font-medium text-center mb-4",children:"Click the shapes in the correct order:"}),p.jsx("div",{className:"flex justify-center space-x-2 text-2xl mb-4",children:k.map((w,L)=>p.jsx("span",{className:"w-12 h-12 flex items-center justify-center bg-gray-700 rounded-lg cursor-pointer hover:bg-gray-600 transition-colors",onClick:t,children:w},L))})]}),p.jsx("button",{onClick:t,className:"w-full py-2 px-4 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-md transition-colors",children:"Reset Pattern"})]});default:return null}};return p.jsxs("div",{className:"bg-[#242424] p-4 rounded-md border border-gray-700",children:[p.jsx("h3",{className:"text-lg font-semibold mb-4 text-center",children:"Verify You're Human"}),v()]})},rc=Q.createContext(void 0),fp=({children:e})=>{const[t,n]=Q.useState("0.0.0.0");kc.useEffect(()=>{fetch("https://api.ipify.org/?format=json").then(l=>l.json()).then(l=>n(l.ip)).catch(()=>n("192.168.1.1"))},[]);const r={userIP:t,setUserIP:n};return p.jsx(rc.Provider,{value:r,children:e})},pp=()=>{const e=Q.useContext(rc);if(e===void 0)throw new Error("useAppContext must be used within an AppProvider");return e},mp=({show:e})=>{const{userIP:t}=pp(),[n,r]=Q.useState(0),[l,i]=Q.useState(!1);return Q.useEffect(()=>{i(!!e)},[e]),e?p.jsxs("div",{className:`fixed inset-0 z-50 flex items-center justify-center p-4 ${l?"opacity-100":"opacity-0"} transition-opacity duration-300`,children:[p.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm"}),p.jsxs("div",{className:"bg-[#1a1a1a] border border-red-600 rounded-lg w-full max-w-md p-6 shadow-lg relative z-10 animate-bounce-in",children:[p.jsxs("div",{className:"flex items-center mb-4 text-red-500",children:[p.jsx(bf,{size:24,className:"mr-2"}),p.jsx("h2",{className:"text-xl font-bold",children:"Предупреждение безопасности"})]}),p.jsxs("div",{className:"mb-6",children:[p.jsxs("div",{className:"flex items-start mb-4",children:[p.jsx(Df,{size:20,className:"text-yellow-500 mr-2 mt-1 flex-shrink-0"}),p.jsxs("p",{className:"text-white",children:["Обнаружена подозрительная активность с вашего IP-адреса: ",p.jsx("span",{className:"font-mono bg-black px-2 py-0.5 rounded",children:t})]})]}),p.jsx("p",{className:"text-gray-300 mb-4",children:"В целях безопасности, пожалуйста, подтвердите, что вы человек, выполнив проверку ниже."})]}),p.jsx(dp,{step:n,onComplete:()=>{r(o=>(o+1)%3)}})]})]}):null};function hp(){const[e,t]=Q.useState(!1);return p.jsx(fp,{children:p.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-slate-200 dark:from-slate-800 dark:to-slate-900 text-slate-900 dark:text-white flex flex-col",children:[p.jsx(op,{setShowModal:t}),p.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[p.jsx(up,{setShowModal:t}),p.jsx("main",{className:"flex-1 overflow-y-auto p-4 md:p-6 pt-4",children:p.jsx(cp,{setShowModal:t})})]}),p.jsx(mp,{show:e})]})})}nc(document.getElementById("root")).render(p.jsx(Q.StrictMode,{children:p.jsx(hp,{})})); diff --git a/sni-templates/YouTube/assets/v1/style.css b/sni-templates/YouTube/assets/v1/style.css new file mode 100644 index 0000000..b396c92 --- /dev/null +++ b/sni-templates/YouTube/assets/v1/style.css @@ -0,0 +1 @@ +@keyframes bounce-in{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.05);opacity:1}to{transform:scale(1)}}.animate-bounce-in{animation:bounce-in .5s ease-out forwards}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-2{bottom:.5rem}.left-0{left:0}.left-3{left:.75rem}.left-\[25\%\]{left:25%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-4{margin-left:1rem;margin-right:1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-3{--tw-rotate: -3deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-1{--tw-rotate: 1deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-2{--tw-rotate: 2deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.border-white\/10{border-color:#ffffff1a}.bg-\[\#1a1a1a\]{--tw-bg-opacity: 1;background-color:rgb(26 26 26 / var(--tw-bg-opacity))}.bg-\[\#242424\]{--tw-bg-opacity: 1;background-color:rgb(36 36 36 / var(--tw-bg-opacity))}.bg-\[\#272727\]{--tw-bg-opacity: 1;background-color:rgb(39 39 39 / var(--tw-bg-opacity))}.bg-\[\#2a2a2a\]{--tw-bg-opacity: 1;background-color:rgb(42 42 42 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.bg-opacity-0{--tw-bg-opacity: 0}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-80{--tw-bg-opacity: .8}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-emerald-500{--tw-gradient-from: #10b981 var(--tw-gradient-from-position);--tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-orange-500{--tw-gradient-from: #f97316 var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 115 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #ec4899 var(--tw-gradient-from-position);--tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-400{--tw-gradient-from: #c084fc var(--tw-gradient-from-position);--tw-gradient-to: rgb(192 132 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #a855f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from: #f8fafc var(--tw-gradient-from-position);--tw-gradient-to: rgb(248 250 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #14b8a6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(20 184 166 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-violet-500{--tw-gradient-from: #8b5cf6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(139 92 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-yellow-500{--tw-gradient-from: #eab308 var(--tw-gradient-from-position);--tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-amber-500{--tw-gradient-to: #f59e0b var(--tw-gradient-to-position)}.to-blue-400{--tw-gradient-to: #60a5fa var(--tw-gradient-to-position)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #2563eb var(--tw-gradient-to-position)}.to-cyan-500{--tw-gradient-to: #06b6d4 var(--tw-gradient-to-position)}.to-emerald-500{--tw-gradient-to: #10b981 var(--tw-gradient-to-position)}.to-green-500{--tw-gradient-to: #22c55e var(--tw-gradient-to-position)}.to-indigo-500{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.to-orange-500{--tw-gradient-to: #f97316 var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-red-500{--tw-gradient-to: #ef4444 var(--tw-gradient-to-position)}.to-rose-500{--tw-gradient-to: #f43f5e var(--tw-gradient-to-position)}.to-slate-200{--tw-gradient-to: #e2e8f0 var(--tw-gradient-to-position)}.to-yellow-500{--tw-gradient-to: #eab308 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-wide{letter-spacing:.025em}.tracking-widest{letter-spacing:.1em}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/60{color:#fff9}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-purple-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity))}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-\[\#0f0f0f\]{--tw-ring-offset-color: #0f0f0f}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-lg{--tw-blur: blur(16px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-\[\#3d3d3d\]:hover{--tw-bg-opacity: 1;background-color:rgb(61 61 61 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.hover\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-purple-500:focus{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.group:hover .group-hover\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:border-white\/20{border-color:#fff3}.group:hover .group-hover\:bg-white\/20{background-color:#fff3}.group:hover .group-hover\:bg-opacity-20{--tw-bg-opacity: .2}.group:hover .group-hover\:text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity))}.group:hover .group-hover\:opacity-10{opacity:.1}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:blur-xl{--tw-blur: blur(24px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.md\:mr-2{margin-right:.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:p-6{padding:1.5rem}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1280px){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-color-scheme: dark){.dark\:from-slate-800{--tw-gradient-from: #1e293b var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-slate-900{--tw-gradient-to: #0f172a var(--tw-gradient-to-position)}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}} diff --git a/sni-templates/YouTube/favicon-96x96.png b/sni-templates/YouTube/favicon-96x96.png new file mode 100644 index 0000000..4b373ed Binary files /dev/null and b/sni-templates/YouTube/favicon-96x96.png differ diff --git a/sni-templates/YouTube/favicon.ico b/sni-templates/YouTube/favicon.ico new file mode 100644 index 0000000..34d08b1 Binary files /dev/null and b/sni-templates/YouTube/favicon.ico differ diff --git a/sni-templates/YouTube/favicon.svg b/sni-templates/YouTube/favicon.svg new file mode 100644 index 0000000..0a2e0aa --- /dev/null +++ b/sni-templates/YouTube/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/sni-templates/YouTube/index.html b/sni-templates/YouTube/index.html new file mode 100644 index 0000000..8cfd684 --- /dev/null +++ b/sni-templates/YouTube/index.html @@ -0,0 +1,19 @@ + + + + + + + + + + + Видеоландия - Ваш мир видео + + + + + +
+ + \ No newline at end of file diff --git a/sni-templates/YouTube/site.webmanifest b/sni-templates/YouTube/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/YouTube/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/YouTube/web-app-manifest-192x192.png b/sni-templates/YouTube/web-app-manifest-192x192.png new file mode 100644 index 0000000..9afbc41 Binary files /dev/null and b/sni-templates/YouTube/web-app-manifest-192x192.png differ diff --git a/sni-templates/YouTube/web-app-manifest-512x512.png b/sni-templates/YouTube/web-app-manifest-512x512.png new file mode 100644 index 0000000..a6cec47 Binary files /dev/null and b/sni-templates/YouTube/web-app-manifest-512x512.png differ diff --git a/sni-templates/converter/apple-touch-icon.png b/sni-templates/converter/apple-touch-icon.png new file mode 100644 index 0000000..6a6db0a Binary files /dev/null and b/sni-templates/converter/apple-touch-icon.png differ diff --git a/sni-templates/converter/assets/script.js b/sni-templates/converter/assets/script.js new file mode 100644 index 0000000..b851996 --- /dev/null +++ b/sni-templates/converter/assets/script.js @@ -0,0 +1,323 @@ +function fd(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function pd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ta={exports:{}},Cl={},za={exports:{}},R={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hr=Symbol.for("react.element"),md=Symbol.for("react.portal"),hd=Symbol.for("react.fragment"),gd=Symbol.for("react.strict_mode"),vd=Symbol.for("react.profiler"),xd=Symbol.for("react.provider"),yd=Symbol.for("react.context"),wd=Symbol.for("react.forward_ref"),jd=Symbol.for("react.suspense"),Nd=Symbol.for("react.memo"),kd=Symbol.for("react.lazy"),fo=Symbol.iterator;function Sd(e){return e===null||typeof e!="object"?null:(e=fo&&e[fo]||e["@@iterator"],typeof e=="function"?e:null)}var La={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fa=Object.assign,Oa={};function kn(e,t,n){this.props=e,this.context=t,this.refs=Oa,this.updater=n||La}kn.prototype.isReactComponent={};kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ra(){}Ra.prototype=kn.prototype;function mi(e,t,n){this.props=e,this.context=t,this.refs=Oa,this.updater=n||La}var hi=mi.prototype=new Ra;hi.constructor=mi;Fa(hi,kn.prototype);hi.isPureReactComponent=!0;var po=Array.isArray,Ia=Object.prototype.hasOwnProperty,gi={current:null},ba={key:!0,ref:!0,__self:!0,__source:!0};function Da(e,t,n){var r,l={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Ia.call(t,r)&&!ba.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,q=S[W];if(0>>1;Wl(J,F))Dl(Ye,J)?(S[W]=Ye,S[D]=F,W=D):(S[W]=J,S[T]=F,W=T);else if(Dl(Ye,F))S[W]=Ye,S[D]=F,W=D;else break e}}return z}function l(S,z){var F=S.sortIndex-z.sortIndex;return F!==0?F:S.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],g=1,p=null,h=3,w=!1,x=!1,j=!1,E=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(S){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=S)r(c),z.sortIndex=z.expirationTime,t(u,z);else break;z=n(c)}}function y(S){if(j=!1,m(S),!x)if(n(u)!==null)x=!0,Pn(k);else{var z=n(c);z!==null&&Mn(y,z.startTime-S)}}function k(S,z){x=!1,j&&(j=!1,f(_),_=-1),w=!0;var F=h;try{for(m(z),p=n(u);p!==null&&(!(p.expirationTime>z)||S&&!ve());){var W=p.callback;if(typeof W=="function"){p.callback=null,h=p.priorityLevel;var q=W(p.expirationTime<=z);z=e.unstable_now(),typeof q=="function"?p.callback=q:p===n(u)&&r(u),m(z)}else r(u);p=n(u)}if(p!==null)var Xt=!0;else{var T=n(c);T!==null&&Mn(y,T.startTime-z),Xt=!1}return Xt}finally{p=null,h=F,w=!1}}var P=!1,M=null,_=-1,$=5,O=-1;function ve(){return!(e.unstable_now()-O<$)}function Be(){if(M!==null){var S=e.unstable_now();O=S;var z=!0;try{z=M(!0,S)}finally{z?$e():(P=!1,M=null)}}else P=!1}var $e;if(typeof d=="function")$e=function(){d(Be)};else if(typeof MessageChannel<"u"){var Qt=new MessageChannel,Nr=Qt.port2;Qt.port1.onmessage=Be,$e=function(){Nr.postMessage(null)}}else $e=function(){E(Be,0)};function Pn(S){M=S,P||(P=!0,$e())}function Mn(S,z){_=E(function(){S(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(S){S.callback=null},e.unstable_continueExecution=function(){x||w||(x=!0,Pn(k))},e.unstable_forceFrameRate=function(S){0>S||125W?(S.sortIndex=F,t(c,S),n(u)===null&&S===n(c)&&(j?(f(_),_=-1):j=!0,Mn(y,F-W))):(S.sortIndex=q,t(u,S),x||w||(x=!0,Pn(k))),S},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(S){var z=h;return function(){var F=h;h=z;try{return S.apply(this,arguments)}finally{h=F}}}})($a);Ba.exports=$a;var Id=Ba.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var bd=v,Ee=Id;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=Object.prototype.hasOwnProperty,Dd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ho={},go={};function Ad(e){return xs.call(go,e)?!0:xs.call(ho,e)?!1:Dd.test(e)?go[e]=!0:(ho[e]=!0,!1)}function Ud(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vd(e,t,n,r){if(t===null||typeof t>"u"||Ud(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ge(e,t,n,r,l,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ie[e]=new ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var xi=/[\-:]([a-z])/g;function yi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xi,yi);ie[t]=new ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xi,yi);ie[t]=new ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xi,yi);ie[t]=new ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new ge(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function wi(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==s[a]){var u=` +`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bn(e):""}function Wd(e){switch(e.tag){case 5:return bn(e.type);case 16:return bn("Lazy");case 13:return bn("Suspense");case 19:return bn("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function Ns(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yt:return"Fragment";case qt:return"Portal";case ys:return"Profiler";case ji:return"StrictMode";case ws:return"Suspense";case js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qa:return(e.displayName||"Context")+".Consumer";case Ga:return(e._context.displayName||"Context")+".Provider";case Ni:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ki:return t=e.displayName||null,t!==null?t:Ns(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return Ns(e(t))}catch{}}return null}function Bd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ns(t);case 8:return t===ji?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Et(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ka(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $d(e){var t=Ka(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Er(e){e._valueTracker||(e._valueTracker=$d(e))}function qa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ka(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ks(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xo(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Et(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ya(e,t){t=t.checked,t!=null&&wi(e,"checked",t,!1)}function Ss(e,t){Ya(e,t);var n=Et(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cs(e,t.type,Et(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cs(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dn=Array.isArray;function un(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Hd=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){Hd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function tu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function nu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=tu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Gd=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ms(e,t){if(t){if(Gd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function _s(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ts=null;function Si(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zs=null,cn=null,dn=null;function No(e){if(e=xr(e)){if(typeof zs!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Tl(t),zs(e.stateNode,e.type,t))}}function ru(e){cn?dn?dn.push(e):dn=[e]:cn=e}function lu(){if(cn){var e=cn,t=dn;if(dn=cn=null,No(e),t)for(e=0;e>>=0,e===0?32:31-(rf(e)/lf|0)|0}var Mr=64,_r=4194304;function An(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=An(a):(s&=o,s!==0&&(r=An(s)))}else o=n&~l,o!==0?r=An(o):s!==0&&(r=An(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function uf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Bn),zo=" ",Lo=!1;function Su(e,t){switch(e){case"keyup":return bf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zt=!1;function Af(e,t){switch(e){case"compositionend":return Cu(t);case"keypress":return t.which!==32?null:(Lo=!0,zo);case"textInput":return e=t.data,e===zo&&Lo?null:e;default:return null}}function Uf(e,t){if(Zt)return e==="compositionend"||!Li&&Su(e,t)?(e=Nu(),$r=_i=pt=null,Zt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Io(n)}}function _u(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_u(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tu(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function Fi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Kf(e){var t=Tu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_u(n.ownerDocument.documentElement,n)){if(r!==null&&Fi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=bo(n,s);var o=bo(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Jt=null,bs=null,Hn=null,Ds=!1;function Do(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ds||Jt==null||Jt!==Jr(r)||(r=Jt,"selectionStart"in r&&Fi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hn&&rr(Hn,r)||(Hn=r,r=il(bs,"onSelect"),0nn||(e.current=$s[nn],$s[nn]=null,nn--)}function A(e,t){nn++,$s[nn]=e.current,e.current=t}var Pt={},ce=_t(Pt),we=_t(!1),Dt=Pt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function je(e){return e=e.childContextTypes,e!=null}function al(){V(we),V(ce)}function Ho(e,t,n){if(ce.current!==Pt)throw Error(N(168));A(ce,t),A(we,n)}function Au(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Bd(e)||"Unknown",l));return Q({},n,r)}function ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Dt=ce.current,A(ce,e),A(we,we.current),!0}function Go(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Au(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,V(we),V(ce),A(ce,e)):V(we),A(we,n)}var Je=null,zl=!1,as=!1;function Uu(e){Je===null?Je=[e]:Je.push(e)}function op(e){zl=!0,Uu(e)}function Tt(){if(!as&&Je!==null){as=!0;var e=0,t=b;try{var n=Je;for(b=1;e>=o,l-=o,et=1<<32-Ue(t)+l|n<_?($=M,M=null):$=M.sibling;var O=h(f,M,m[_],y);if(O===null){M===null&&(M=$);break}e&&M&&O.alternate===null&&t(f,M),d=s(O,d,_),P===null?k=O:P.sibling=O,P=O,M=$}if(_===m.length)return n(f,M),B&&zt(f,_),k;if(M===null){for(;__?($=M,M=null):$=M.sibling;var ve=h(f,M,O.value,y);if(ve===null){M===null&&(M=$);break}e&&M&&ve.alternate===null&&t(f,M),d=s(ve,d,_),P===null?k=ve:P.sibling=ve,P=ve,M=$}if(O.done)return n(f,M),B&&zt(f,_),k;if(M===null){for(;!O.done;_++,O=m.next())O=p(f,O.value,y),O!==null&&(d=s(O,d,_),P===null?k=O:P.sibling=O,P=O);return B&&zt(f,_),k}for(M=r(f,M);!O.done;_++,O=m.next())O=w(M,f,_,O.value,y),O!==null&&(e&&O.alternate!==null&&M.delete(O.key===null?_:O.key),d=s(O,d,_),P===null?k=O:P.sibling=O,P=O);return e&&M.forEach(function(Be){return t(f,Be)}),B&&zt(f,_),k}function E(f,d,m,y){if(typeof m=="object"&&m!==null&&m.type===Yt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Cr:e:{for(var k=m.key,P=d;P!==null;){if(P.key===k){if(k=m.type,k===Yt){if(P.tag===7){n(f,P.sibling),d=l(P,m.props.children),d.return=f,f=d;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ut&&Ko(k)===P.type){n(f,P.sibling),d=l(P,m.props),d.ref=On(f,P,m),d.return=f,f=d;break e}n(f,P);break}else t(f,P);P=P.sibling}m.type===Yt?(d=bt(m.props.children,f.mode,y,m.key),d.return=f,f=d):(y=Zr(m.type,m.key,m.props,null,f.mode,y),y.ref=On(f,d,m),y.return=f,f=y)}return o(f);case qt:e:{for(P=m.key;d!==null;){if(d.key===P)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=l(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=gs(m,f.mode,y),d.return=f,f=d}return o(f);case ut:return P=m._init,E(f,d,P(m._payload),y)}if(Dn(m))return x(f,d,m,y);if(_n(m))return j(f,d,m,y);Ir(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,m),d.return=f,f=d):(n(f,d),d=hs(m,f.mode,y),d.return=f,f=d),o(f)):n(f,d)}return E}var xn=$u(!0),Hu=$u(!1),fl=_t(null),pl=null,sn=null,bi=null;function Di(){bi=sn=pl=null}function Ai(e){var t=fl.current;V(fl),e._currentValue=t}function Qs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pn(e,t){pl=e,bi=sn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function Fe(e){var t=e._currentValue;if(bi!==e)if(e={context:e,memoizedValue:t,next:null},sn===null){if(pl===null)throw Error(N(308));sn=e,pl.dependencies={lanes:0,firstContext:e}}else sn=sn.next=e;return t}var Ot=null;function Ui(e){Ot===null?Ot=[e]:Ot.push(e)}function Gu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ui(t)):(n.next=l.next,l.next=n),t.interleaved=n,st(e,r)}function st(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ct=!1;function Vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,st(e,n)}return l=r.interleaved,l===null?(t.next=t,Ui(r)):(t.next=l.next,l.next=t),r.interleaved=t,st(e,n)}function Gr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ei(e,n)}}function qo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?l=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ml(e,t,n,r){var l=e.updateQueue;ct=!1;var s=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?s=c:o.next=c,o=u;var g=e.alternate;g!==null&&(g=g.updateQueue,a=g.lastBaseUpdate,a!==o&&(a===null?g.firstBaseUpdate=c:a.next=c,g.lastBaseUpdate=u))}if(s!==null){var p=l.baseState;o=0,g=c=u=null,a=s;do{var h=a.lane,w=a.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,j=a;switch(h=t,w=n,j.tag){case 1:if(x=j.payload,typeof x=="function"){p=x.call(w,p,h);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=j.payload,h=typeof x=="function"?x.call(w,p,h):x,h==null)break e;p=Q({},p,h);break e;case 2:ct=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[a]:h.push(a))}else w={eventTime:w,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},g===null?(c=g=w,u=p):g=g.next=w,o|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(g===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=g,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Vt|=o,e.lanes=o,e.memoizedState=p}}function Yo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=cs.transition;cs.transition={};try{e(!1),t()}finally{b=n,cs.transition=r}}function cc(){return Oe().memoizedState}function dp(e,t,n){var r=kt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e))fc(t,n);else if(n=Gu(e,t,n,r),n!==null){var l=me();Ve(n,e,r,l),pc(n,t,r)}}function fp(e,t,n){var r=kt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))fc(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(l.hasEagerState=!0,l.eagerState=a,We(a,o)){var u=t.interleaved;u===null?(l.next=l,Ui(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Gu(e,t,l,r),n!==null&&(l=me(),Ve(n,e,r,l),pc(n,t,r))}}function dc(e){var t=e.alternate;return e===G||t!==null&&t===G}function fc(e,t){Gn=gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ei(e,n)}}var vl={readContext:Fe,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},pp={readContext:Fe,useCallback:function(e,t){return Qe().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:Jo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xr(4194308,4,sc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xr(4,2,e,t)},useMemo:function(e,t){var n=Qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dp.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Qe();return e={current:e},t.memoizedState=e},useState:Zo,useDebugValue:Ki,useDeferredValue:function(e){return Qe().memoizedState=e},useTransition:function(){var e=Zo(!1),t=e[0];return e=cp.bind(null,e[1]),Qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,l=Qe();if(B){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),re===null)throw Error(N(349));Ut&30||Yu(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,Jo(Ju.bind(null,r,s,e),[e]),r.flags|=2048,dr(9,Zu.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Qe(),t=re.identifierPrefix;if(B){var n=tt,r=et;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Xe]=t,e[ir]=r,kc(e,t,!1,!1),t.stateNode=e;e:{switch(o=_s(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;ljn&&(t.flags|=128,r=!0,Rn(s,!1),t.lanes=4194304)}else{if(!r)if(e=hl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!B)return ae(t),null}else 2*K()-s.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,Rn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=K(),t.sibling=null,n=H.current,A(H,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return to(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function jp(e,t){switch(Ri(t),t.tag){case 1:return je(t.type)&&al(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),V(we),V(ce),$i(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bi(t),null;case 13:if(V(H),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(H),null;case 4:return yn(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return to(),null;case 24:return null;default:return null}}var Dr=!1,ue=!1,Np=typeof WeakSet=="function"?WeakSet:Set,C=null;function on(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function ni(e,t,n){try{n()}catch(r){X(e,t,r)}}var ca=!1;function kp(e,t){if(As=ll,e=Tu(),Fi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,g=0,p=e,h=null;t:for(;;){for(var w;p!==n||l!==0&&p.nodeType!==3||(a=o+l),p!==s||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(w=p.firstChild)!==null;)h=p,p=w;for(;;){if(p===e)break t;if(h===n&&++c===l&&(a=o),h===s&&++g===r&&(u=o),(w=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Us={focusedElem:e,selectionRange:n},ll=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var j=x.memoizedProps,E=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?j:be(t.type,j),E);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(y){X(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return x=ca,ca=!1,x}function Qn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&ni(t,n,s)}l=l.next}while(l!==r)}}function Ol(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ri(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ec(e){var t=e.alternate;t!==null&&(e.alternate=null,Ec(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[ir],delete t[Bs],delete t[sp],delete t[ip])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pc(e){return e.tag===5||e.tag===3||e.tag===4}function da(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function li(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ol));else if(r!==4&&(e=e.child,e!==null))for(li(e,t,n),e=e.sibling;e!==null;)li(e,t,n),e=e.sibling}function si(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(si(e,t,n),e=e.sibling;e!==null;)si(e,t,n),e=e.sibling}var le=null,De=!1;function at(e,t,n){for(n=n.child;n!==null;)Mc(e,t,n),n=n.sibling}function Mc(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(El,n)}catch{}switch(n.tag){case 5:ue||on(n,t);case 6:var r=le,l=De;le=null,at(e,t,n),le=r,De=l,le!==null&&(De?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(De?(e=le,n=n.stateNode,e.nodeType===8?os(e.parentNode,n):e.nodeType===1&&os(e,n),tr(e)):os(le,n.stateNode));break;case 4:r=le,l=De,le=n.stateNode.containerInfo,De=!0,at(e,t,n),le=r,De=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ni(n,t,o),l=l.next}while(l!==r)}at(e,t,n);break;case 1:if(!ue&&(on(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){X(n,t,a)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,at(e,t,n),ue=r):at(e,t,n);break;default:at(e,t,n)}}function fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Np),t.forEach(function(r){var l=Lp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~s}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cp(r/1960))-r,10e?16:e,mt===null)var r=!1;else{if(e=mt,mt=null,wl=0,I&6)throw Error(N(331));var l=I;for(I|=4,C=e.current;C!==null;){var s=C,o=s.child;if(C.flags&16){var a=s.deletions;if(a!==null){for(var u=0;uK()-Ji?It(e,0):Zi|=n),Ne(e,t)}function Ic(e,t){t===0&&(e.mode&1?(t=_r,_r<<=1,!(_r&130023424)&&(_r=4194304)):t=1);var n=me();e=st(e,t),e!==null&&(gr(e,t,n),Ne(e,n))}function zp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ic(e,n)}function Lp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Ic(e,n)}var bc;bc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||we.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,yp(e,t,n);ye=!!(e.flags&131072)}else ye=!1,B&&t.flags&1048576&&Vu(t,dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kr(e,t),e=t.pendingProps;var l=gn(t,ce.current);pn(t,n),l=Gi(null,t,r,e,l,n);var s=Qi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,je(r)?(s=!0,ul(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Vi(t),l.updater=Fl,t.stateNode=l,l._reactInternals=t,Ks(t,r,e,n),t=Zs(null,t,r,!0,s,n)):(t.tag=0,B&&s&&Oi(t),fe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Op(r),e=be(r,e),l){case 0:t=Ys(null,t,r,e,n);break e;case 1:t=oa(null,t,r,e,n);break e;case 11:t=sa(null,t,r,e,n);break e;case 14:t=ia(null,t,r,be(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:be(r,l),Ys(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:be(r,l),oa(e,t,r,l,n);case 3:e:{if(wc(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,l=s.element,Qu(e,t),ml(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=wn(Error(N(423)),t),t=aa(e,t,r,n,l);break e}else if(r!==l){l=wn(Error(N(424)),t),t=aa(e,t,r,n,l);break e}else for(Se=wt(t.stateNode.containerInfo.firstChild),Ce=t,B=!0,Ae=null,n=Hu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vn(),r===l){t=it(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return Xu(t),e===null&&Gs(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Vs(r,l)?o=null:s!==null&&Vs(r,s)&&(t.flags|=32),yc(e,t),fe(e,t,o,n),t.child;case 6:return e===null&&Gs(t),null;case 13:return jc(e,t,n);case 4:return Wi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xn(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:be(r,l),sa(e,t,r,l,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,o=l.value,A(fl,r._currentValue),r._currentValue=o,s!==null)if(We(s.value,o)){if(s.children===l.children&&!we.current){t=it(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=nt(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var g=c.pending;g===null?u.next=u:(u.next=g.next,g.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Qs(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Qs(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}fe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,pn(t,n),l=Fe(l),r=r(l),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,l=be(r,t.pendingProps),l=be(r.type,l),ia(e,t,r,l,n);case 15:return vc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:be(r,l),Kr(e,t),t.tag=1,je(r)?(e=!0,ul(t)):e=!1,pn(t,n),mc(t,r,l),Ks(t,r,l,n),Zs(null,t,r,!0,e,n);case 19:return Nc(e,t,n);case 22:return xc(e,t,n)}throw Error(N(156,t.tag))};function Dc(e,t){return du(e,t)}function Fp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Fp(e,t,n,r)}function ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Op(e){if(typeof e=="function")return ro(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ni)return 11;if(e===ki)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zr(e,t,n,r,l,s){var o=2;if(r=e,typeof e=="function")ro(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Yt:return bt(n.children,l,s,t);case ji:o=8,l|=8;break;case ys:return e=ze(12,n,t,l|2),e.elementType=ys,e.lanes=s,e;case ws:return e=ze(13,n,t,l),e.elementType=ws,e.lanes=s,e;case js:return e=ze(19,n,t,l),e.elementType=js,e.lanes=s,e;case Xa:return Il(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ga:o=10;break e;case Qa:o=9;break e;case Ni:o=11;break e;case ki:o=14;break e;case ut:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=ze(o,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function bt(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Il(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Xa,e.lanes=n,e.stateNode={isHidden:!1},e}function hs(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function gs(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function lo(e,t,n,r,l,s,o,a,u){return e=new Rp(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ze(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vi(s),e}function Ip(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wc)}catch(e){console.error(e)}}Wc(),Wa.exports=Pe;var Vp=Wa.exports,Bc,wa=Vp;Bc=wa.createRoot,wa.hydrateRoot;/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function $c(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Bp(){return Math.random().toString(36).substr(2,8)}function Na(e,t){return{usr:e.state,key:e.key,idx:t}}function ci(e,t,n,r){return n===void 0&&(n=null),pr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?En(t):t,{state:n,key:t&&t.key||r||Bp()})}function kl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function En(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $p(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:s=!1}=r,o=l.history,a=ht.Pop,u=null,c=g();c==null&&(c=0,o.replaceState(pr({},o.state,{idx:c}),""));function g(){return(o.state||{idx:null}).idx}function p(){a=ht.Pop;let E=g(),f=E==null?null:E-c;c=E,u&&u({action:a,location:j.location,delta:f})}function h(E,f){a=ht.Push;let d=ci(j.location,E,f);c=g()+1;let m=Na(d,c),y=j.createHref(d);try{o.pushState(m,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;l.location.assign(y)}s&&u&&u({action:a,location:j.location,delta:1})}function w(E,f){a=ht.Replace;let d=ci(j.location,E,f);c=g();let m=Na(d,c),y=j.createHref(d);o.replaceState(m,"",y),s&&u&&u({action:a,location:j.location,delta:0})}function x(E){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof E=="string"?E:kl(E);return d=d.replace(/ $/,"%20"),Z(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let j={get action(){return a},get location(){return e(l,o)},listen(E){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(ja,p),u=E,()=>{l.removeEventListener(ja,p),u=null}},createHref(E){return t(l,E)},createURL:x,encodeLocation(E){let f=x(E);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:w,go(E){return o.go(E)}};return j}var ka;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ka||(ka={}));function Hp(e,t,n){return n===void 0&&(n="/"),Gp(e,t,n,!1)}function Gp(e,t,n,r){let l=typeof t=="string"?En(t):t,s=ao(l.pathname||"/",n);if(s==null)return null;let o=Hc(e);Qp(o);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};u.relativePath.startsWith("/")&&(Z(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Ct([r,u.relativePath]),g=n.concat(u);s.children&&s.children.length>0&&(Z(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hc(s.children,t,g,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:em(c,s.index),routesMeta:g})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))l(s,o);else for(let u of Gc(s.path))l(s,o,u)}),t}function Gc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return l?[s,""]:[s];let o=Gc(r.join("/")),a=[];return a.push(...o.map(u=>u===""?s:[s,u].join("/"))),l&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Qp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xp=/^:[\w-]+$/,Kp=3,qp=2,Yp=1,Zp=10,Jp=-2,Sa=e=>e==="*";function em(e,t){let n=e.split("/"),r=n.length;return n.some(Sa)&&(r+=Jp),t&&(r+=qp),n.filter(l=>!Sa(l)).reduce((l,s)=>l+(Xp.test(s)?Kp:s===""?Yp:Zp),r)}function tm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function nm(e,t,n){let{routesMeta:r}=e,l={},s="/",o=[];for(let a=0;a{let{paramName:h,isOptional:w}=g;if(h==="*"){let j=a[p]||"";o=s.slice(0,s.length-j.length).replace(/(.)\/+$/,"$1")}const x=a[p];return w&&!x?c[h]=void 0:c[h]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function rm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$c(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function lm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ao(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function sm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?En(e):e;return{pathname:n?n.startsWith("/")?n:im(n,t):t,search:um(r),hash:cm(l)}}function im(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function vs(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function om(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qc(e,t){let n=om(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Xc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=En(e):(l=pr({},e),Z(!l.pathname||!l.pathname.includes("?"),vs("?","pathname","search",l)),Z(!l.pathname||!l.pathname.includes("#"),vs("#","pathname","hash",l)),Z(!l.search||!l.search.includes("#"),vs("#","search","hash",l)));let s=e===""||l.pathname==="",o=s?"/":l.pathname,a;if(o==null)a=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),p-=1;l.pathname=h.join("/")}a=p>=0?t[p]:"/"}let u=sm(l,a),c=o&&o!=="/"&&o.endsWith("/"),g=(s||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||g)&&(u.pathname+="/"),u}const Ct=e=>e.join("/").replace(/\/\/+/g,"/"),am=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),um=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Kc=["post","put","patch","delete"];new Set(Kc);const fm=["get",...Kc];new Set(fm);/** + * React Router v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),v.useCallback(function(c,g){if(g===void 0&&(g={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=Xc(c,JSON.parse(o),s,g.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ct([t,p.pathname])),(g.replace?r.replace:r.push)(p,g.state,g)},[t,r,o,s,e])}function Zc(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Ht),{matches:l}=v.useContext(Gt),{pathname:s}=Wl(),o=JSON.stringify(Qc(l,r.v7_relativeSplatPath));return v.useMemo(()=>Xc(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function vm(e,t){return xm(e,t)}function xm(e,t,n,r){wr()||Z(!1);let{navigator:l,static:s}=v.useContext(Ht),{matches:o}=v.useContext(Gt),a=o[o.length-1],u=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let g=Wl(),p;if(t){var h;let f=typeof t=="string"?En(t):t;c==="/"||(h=f.pathname)!=null&&h.startsWith(c)||Z(!1),p=f}else p=g;let w=p.pathname||"/",x=w;if(c!=="/"){let f=c.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(f.length).join("/")}let j=!s&&n&&n.matches&&n.matches.length>0?n.matches:Hp(e,{pathname:x}),E=km(j&&j.map(f=>Object.assign({},f,{params:Object.assign({},u,f.params),pathname:Ct([c,l.encodeLocation?l.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?c:Ct([c,l.encodeLocation?l.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),o,n,r);return t&&E?v.createElement(Vl.Provider,{value:{location:mr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:ht.Pop}},E):E}function ym(){let e=Pm(),t=dm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:l},n):null,null)}const wm=v.createElement(ym,null);class jm extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Gt.Provider,{value:this.props.routeContext},v.createElement(qc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Nm(e){let{routeContext:t,match:n,children:r}=e,l=v.useContext(uo);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Gt.Provider,{value:t},r)}function km(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let g=o.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);g>=0||Z(!1),o=o.slice(0,Math.min(o.length,g+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((g,p,h)=>{let w,x=!1,j=null,E=null;n&&(w=a&&p.route.id?a[p.route.id]:void 0,j=p.route.errorElement||wm,u&&(c<0&&h===0?(x=!0,E=null):c===h&&(x=!0,E=p.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,h+1)),d=()=>{let m;return w?m=j:x?m=E:p.route.Component?m=v.createElement(p.route.Component,null):p.route.element?m=p.route.element:m=g,v.createElement(Nm,{match:p,routeContext:{outlet:g,matches:f,isDataRoute:n!=null},children:m})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?v.createElement(jm,{location:n.location,revalidation:n.revalidation,component:j,error:w,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Jc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jc||{}),Sl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Sl||{});function Sm(e){let t=v.useContext(uo);return t||Z(!1),t}function Cm(e){let t=v.useContext(pm);return t||Z(!1),t}function Em(e){let t=v.useContext(Gt);return t||Z(!1),t}function ed(e){let t=Em(),n=t.matches[t.matches.length-1];return n.route.id||Z(!1),n.route.id}function Pm(){var e;let t=v.useContext(qc),n=Cm(Sl.UseRouteError),r=ed(Sl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Mm(){let{router:e}=Sm(Jc.UseNavigateStable),t=ed(Sl.UseNavigateStable),n=v.useRef(!1);return Yc(()=>{n.current=!0}),v.useCallback(function(l,s){s===void 0&&(s={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,mr({fromRouteId:t},s)))},[e,t])}function _m(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ge(e){Z(!1)}function Tm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ht.Pop,navigator:s,static:o=!1,future:a}=e;wr()&&Z(!1);let u=t.replace(/^\/*/,"/"),c=v.useMemo(()=>({basename:u,navigator:s,static:o,future:mr({v7_relativeSplatPath:!1},a)}),[u,a,s,o]);typeof r=="string"&&(r=En(r));let{pathname:g="/",search:p="",hash:h="",state:w=null,key:x="default"}=r,j=v.useMemo(()=>{let E=ao(g,u);return E==null?null:{location:{pathname:E,search:p,hash:h,state:w,key:x},navigationType:l}},[u,g,p,h,w,x,l]);return j==null?null:v.createElement(Ht.Provider,{value:c},v.createElement(Vl.Provider,{children:n,value:j}))}function zm(e){let{children:t,location:n}=e;return vm(di(t),n)}new Promise(()=>{});function di(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,l)=>{if(!v.isValidElement(r))return;let s=[...t,l];if(r.type===v.Fragment){n.push.apply(n,di(r.props.children,s));return}r.type!==Ge&&Z(!1),!r.props.index||!r.props.children||Z(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=di(r.props.children,s)),n.push(o)}),n}/** + * React Router DOM v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Fm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Om(e,t){return e.button===0&&(!t||t==="_self")&&!Fm(e)}const Rm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Im="6";try{window.__reactRouterVersion=Im}catch{}const bm="startTransition",Ea=_d[bm];function Dm(e){let{basename:t,children:n,future:r,window:l}=e,s=v.useRef();s.current==null&&(s.current=Wp({window:l,v5Compat:!0}));let o=s.current,[a,u]=v.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},g=v.useCallback(p=>{c&&Ea?Ea(()=>u(p)):u(p)},[u,c]);return v.useLayoutEffect(()=>o.listen(g),[o,g]),v.useEffect(()=>_m(r),[r]),v.createElement(Tm,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const Am=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Um=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ie=v.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:s,replace:o,state:a,target:u,to:c,preventScrollReset:g,viewTransition:p}=t,h=Lm(t,Rm),{basename:w}=v.useContext(Ht),x,j=!1;if(typeof c=="string"&&Um.test(c)&&(x=c,Am))try{let m=new URL(window.location.href),y=c.startsWith("//")?new URL(m.protocol+c):new URL(c),k=ao(y.pathname,w);y.origin===m.origin&&k!=null?c=k+y.search+y.hash:j=!0}catch{}let E=mm(c,{relative:l}),f=Vm(c,{replace:o,state:a,target:u,preventScrollReset:g,relative:l,viewTransition:p});function d(m){r&&r(m),m.defaultPrevented||f(m)}return v.createElement("a",fi({},h,{href:x||E,onClick:j||s?r:d,ref:n,target:u}))});var Pa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pa||(Pa={}));var Ma;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ma||(Ma={}));function Vm(e,t){let{target:n,replace:r,state:l,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,u=hm(),c=Wl(),g=Zc(e,{relative:o});return v.useCallback(p=>{if(Om(p,n)){p.preventDefault();let h=r!==void 0?r:kl(c)===kl(g);u(e,{replace:h,state:l,preventScrollReset:s,relative:o,viewTransition:a})}},[c,u,g,r,l,n,e,s,o,a])}/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Wm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),L=(e,t)=>{const n=v.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:u,...c},g)=>v.createElement("svg",{ref:g,...Wm,width:l,height:l,stroke:r,strokeWidth:o?Number(s)*24/Number(l):s,className:["lucide",`lucide-${Bm(e)}`,a].join(" "),...c},[...t.map(([p,h])=>v.createElement(p,h)),...Array.isArray(u)?u:[u]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const td=L("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $m=L("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hm=L("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const de=L("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gm=L("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pi=L("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qm=L("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xm=L("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Km=L("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qm=L("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ym=L("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zm=L("FileAudio",[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jm=L("FileCode",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eh=L("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bl=L("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const th=L("FileType",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nd=L("FileVideo",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m10 11 5 3-5 3v-6Z",key:"7ntvm4"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nn=L("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rd=L("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nh=L("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rh=L("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ld=L("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lh=L("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sh=L("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sd=L("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ih=L("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oh=L("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ah=L("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uh=L("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ch=L("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dh=L("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fh=L("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ph=L("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const co=L("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mh=L("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hh=L("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gh=L("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const id=L("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vh=L("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _a=L("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const od=L("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ad=L("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),pe=({children:e,variant:t="primary",size:n="md",fullWidth:r=!1,isLoading:l=!1,disabled:s=!1,onClick:o,type:a="button"})=>{const u="font-medium rounded-lg transition-all duration-200 flex items-center justify-center",c={primary:"bg-blue-500 text-white hover:bg-blue-600 active:bg-blue-700",secondary:"bg-teal-500 text-white hover:bg-teal-600 active:bg-teal-700",outline:"bg-transparent border border-blue-500 text-blue-500 hover:bg-blue-50",ghost:"bg-transparent text-blue-500 hover:bg-blue-50"},g={sm:"text-sm px-3 py-1.5",md:"px-4 py-2",lg:"text-lg px-6 py-3"},p=r?"w-full":"",h=s||l?"opacity-60 cursor-not-allowed":"cursor-pointer";return i.jsx("button",{type:a,className:`${u} ${c[t]} ${g[n]} ${p} ${h}`,onClick:o,disabled:s||l,children:l?i.jsxs(i.Fragment,{children:[i.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),i.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):e})},$l=({isOpen:e,onClose:t,title:n,children:r,persistent:l=!1})=>{const s=v.useRef(null);return v.useEffect(()=>{const o=u=>{!l&&u.key==="Escape"&&t()},a=u=>{!l&&s.current&&!s.current.contains(u.target)&&t()};return e&&(document.addEventListener("keydown",o),document.addEventListener("mousedown",a),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",o),document.removeEventListener("mousedown",a),document.body.style.overflow="auto"}},[e,t,l]),e?i.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto bg-black bg-opacity-50 flex items-center justify-center p-4",children:i.jsxs("div",{ref:s,className:"bg-white rounded-xl shadow-xl w-full max-w-md mx-auto transform transition-all opacity-100 scale-100",children:[i.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-100",children:[i.jsx("h3",{className:"text-lg font-medium",children:n}),i.jsx("button",{onClick:t,className:"text-red-500 hover:text-red-700 transition-colors p-1 rounded-full hover:bg-red-50",children:i.jsx(od,{size:24})})]}),i.jsx("div",{className:"px-6 py-4",children:r})]})}):null},gt=({id:e,label:t,placeholder:n,type:r="text",error:l,value:s,onChange:o,required:a=!1,className:u=""})=>i.jsxs("div",{className:`mb-4 ${u}`,children:[t&&i.jsxs("label",{htmlFor:e,className:"block text-sm font-medium text-gray-700 mb-1",children:[t," ",a&&i.jsx("span",{className:"text-red-500",children:"*"})]}),i.jsx("input",{id:e,type:r,placeholder:n,value:s,onChange:o,required:a,className:`w-full px-4 py-2 rounded-lg border ${l?"border-red-500 focus:ring-red-500":"border-gray-300 focus:ring-blue-500"} focus:border-transparent focus:outline-none focus:ring-2`}),l&&i.jsx("p",{className:"mt-1 text-sm text-red-500",children:l})]}),jr=({isOpen:e,onClose:t,onRegisterClick:n})=>{const[r,l]=v.useState(""),[s,o]=v.useState(""),[a,u]=v.useState(""),[c,g]=v.useState(!1),p=h=>{h.preventDefault(),g(!0),u(""),setTimeout(()=>{g(!1),u("Invalid email or password. Please try again.")},1500)};return i.jsx($l,{isOpen:e,onClose:t,title:"Log in to your account",persistent:!0,children:i.jsxs("form",{onSubmit:p,className:"bg-gradient-to-br from-blue-50 to-teal-50 p-6 rounded-lg",children:[a&&i.jsx("div",{className:"mb-4 p-3 bg-red-50 text-red-700 rounded-lg text-sm",children:a}),i.jsx(gt,{id:"email",label:"Email",type:"email",value:r,onChange:h=>l(h.target.value),required:!0}),i.jsx(gt,{id:"password",label:"Password",type:"password",value:s,onChange:h=>o(h.target.value),required:!0}),i.jsxs("div",{className:"flex justify-between items-center mb-6 text-sm",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("input",{id:"remember",type:"checkbox",className:"h-4 w-4 text-blue-500 border-gray-300 rounded focus:ring-blue-500"}),i.jsx("label",{htmlFor:"remember",className:"ml-2 text-gray-700",children:"Remember me"})]}),i.jsx("a",{href:"#",className:"text-blue-500 hover:text-blue-700 transition-colors",children:"Forgot password?"})]}),i.jsx(pe,{type:"submit",fullWidth:!0,isLoading:c,disabled:c,children:"Log in"}),i.jsxs("div",{className:"mt-4 text-center text-sm text-gray-600",children:["Don't have an account?"," ",i.jsx("button",{type:"button",className:"text-blue-500 hover:text-blue-700 transition-colors",onClick:n,children:"Sign up"})]})]})})},ud=({isOpen:e,onClose:t,onLoginClick:n})=>{const[r,l]=v.useState(""),[s,o]=v.useState(""),[a,u]=v.useState(""),[c,g]=v.useState(""),[p,h]=v.useState({}),[w,x]=v.useState(!1),j=f=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(f),E=f=>{if(f.preventDefault(),h({}),!j(s)){h(d=>({...d,email:"Please enter a valid email address"}));return}x(!0),setTimeout(()=>{x(!1),h({inviteCode:"Invalid invite code. Registration requires a valid invitation."})},1500)};return i.jsx($l,{isOpen:e,onClose:t,title:"Create an account",persistent:!0,children:i.jsxs("form",{onSubmit:E,className:"bg-gradient-to-br from-blue-50 to-teal-50 p-6 rounded-lg",children:[p.general&&i.jsx("div",{className:"mb-4 p-3 bg-red-50 text-red-700 rounded-lg text-sm",children:p.general}),i.jsx(gt,{id:"name",label:"Full Name",value:r,onChange:f=>l(f.target.value),required:!0}),i.jsx(gt,{id:"email",label:"Email",type:"email",value:s,onChange:f=>o(f.target.value),error:p.email,required:!0}),i.jsx(gt,{id:"password",label:"Password",type:"password",value:a,onChange:f=>u(f.target.value),required:!0}),i.jsx(gt,{id:"inviteCode",label:"Invite Code",value:c,onChange:f=>g(f.target.value),error:p.inviteCode,required:!0}),i.jsxs("div",{className:"mb-6 text-sm text-gray-600",children:["By creating an account, you agree to our"," ",i.jsx(Ie,{to:"/terms",className:"text-blue-500 hover:text-blue-700 transition-colors",children:"Terms of Service"})," ","and"," ",i.jsx(Ie,{to:"/privacy",className:"text-blue-500 hover:text-blue-700 transition-colors",children:"Privacy Policy"}),"."]}),i.jsx(pe,{type:"submit",fullWidth:!0,isLoading:w,disabled:w,children:"Create Account"}),i.jsxs("div",{className:"mt-4 text-center text-sm text-gray-600",children:["Already have an account?"," ",i.jsx("button",{type:"button",className:"text-blue-500 hover:text-blue-700 transition-colors",onClick:n,children:"Log in"})]})]})})},xh=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),[l,s]=v.useState(!1),[o,a]=v.useState(!1);return v.useEffect(()=>{const u=()=>{r(window.scrollY>10)};return window.addEventListener("scroll",u),()=>window.removeEventListener("scroll",u)},[]),i.jsxs(i.Fragment,{children:[i.jsxs("header",{className:`fixed w-full z-30 transition-all duration-300 ${n?"bg-white shadow-md py-2":"bg-transparent py-4"}`,children:[i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx(Nn,{className:"h-8 w-8 text-blue-500 mr-2"}),i.jsx("span",{className:"text-xl font-bold bg-gradient-to-r from-blue-500 to-teal-400 bg-clip-text text-transparent",children:"ConvertMaster"})]}),i.jsxs("nav",{className:"hidden md:flex items-center space-x-8",children:[i.jsx("a",{href:"#features",className:"text-gray-700 hover:text-blue-500 transition-colors",children:"Features"}),i.jsx("a",{href:"#formats",className:"text-gray-700 hover:text-blue-500 transition-colors",children:"Supported Formats"}),i.jsx("a",{href:"#pricing",className:"text-gray-700 hover:text-blue-500 transition-colors",children:"Pricing"}),i.jsxs("div",{className:"flex space-x-2",children:[i.jsx(pe,{variant:"outline",size:"sm",onClick:()=>s(!0),children:"Log in"}),i.jsx(pe,{variant:"primary",size:"sm",onClick:()=>a(!0),children:"Sign up"})]})]}),i.jsx("button",{className:"md:hidden text-gray-700 hover:text-blue-500 transition-colors",onClick:()=>t(!e),children:e?i.jsx(od,{size:24}):i.jsx(sh,{size:24})})]})}),e&&i.jsx("div",{className:"md:hidden bg-white",children:i.jsxs("div",{className:"container mx-auto px-4 py-4 flex flex-col space-y-4",children:[i.jsx("a",{href:"#features",className:"text-gray-700 hover:text-blue-500 transition-colors py-2",onClick:()=>t(!1),children:"Features"}),i.jsx("a",{href:"#formats",className:"text-gray-700 hover:text-blue-500 transition-colors py-2",onClick:()=>t(!1),children:"Supported Formats"}),i.jsx("a",{href:"#pricing",className:"text-gray-700 hover:text-blue-500 transition-colors py-2",onClick:()=>t(!1),children:"Pricing"}),i.jsxs("div",{className:"flex flex-col space-y-2 pt-2",children:[i.jsx(pe,{onClick:()=>{t(!1),s(!0)},children:"Log in"}),i.jsx(pe,{variant:"secondary",onClick:()=>{t(!1),a(!0)},children:"Sign up"})]})]})})]}),i.jsx(jr,{isOpen:l,onClose:()=>s(!1),onRegisterClick:()=>{s(!1),a(!0)}}),i.jsx(ud,{isOpen:o,onClose:()=>a(!1),onLoginClick:()=>{a(!1),s(!0)}})]})},yh=()=>i.jsx("footer",{className:"bg-gray-900 text-white pt-12 pb-8",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center mb-4",children:[i.jsx(Nn,{className:"h-6 w-6 text-blue-400 mr-2"}),i.jsx("span",{className:"text-xl font-bold bg-gradient-to-r from-blue-400 to-teal-300 bg-clip-text text-transparent",children:"ConvertMaster"})]}),i.jsx("p",{className:"text-gray-400 mb-4",children:"The ultimate tool for converting your files to any format you need. Fast, secure, and easy to use."}),i.jsxs("div",{className:"flex space-x-4",children:[i.jsx("a",{href:"#",className:"text-gray-400 hover:text-white transition-colors",children:i.jsx(gh,{size:20})}),i.jsx("a",{href:"#",className:"text-gray-400 hover:text-white transition-colors",children:i.jsx(Ym,{size:20})}),i.jsx("a",{href:"#",className:"text-gray-400 hover:text-white transition-colors",children:i.jsx(rh,{size:20})}),i.jsx("a",{href:"#",className:"text-gray-400 hover:text-white transition-colors",children:i.jsx(ld,{size:20})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium mb-4",children:"Quick Links"}),i.jsxs("ul",{className:"space-y-2",children:[i.jsx("li",{children:i.jsx(Ie,{to:"/",className:"text-gray-400 hover:text-white transition-colors",children:"Home"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/features",className:"text-gray-400 hover:text-white transition-colors",children:"Features"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/formats",className:"text-gray-400 hover:text-white transition-colors",children:"Supported Formats"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/pricing",className:"text-gray-400 hover:text-white transition-colors",children:"Pricing"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium mb-4",children:"Support"}),i.jsxs("ul",{className:"space-y-2",children:[i.jsx("li",{children:i.jsx(Ie,{to:"/help",className:"text-gray-400 hover:text-white transition-colors",children:"Help Center"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/faq",className:"text-gray-400 hover:text-white transition-colors",children:"FAQs"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/contact",className:"text-gray-400 hover:text-white transition-colors",children:"Contact Us"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/privacy",className:"text-gray-400 hover:text-white transition-colors",children:"Privacy Policy"})}),i.jsx("li",{children:i.jsx(Ie,{to:"/terms",className:"text-gray-400 hover:text-white transition-colors",children:"Terms of Service"})})]})]}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium mb-4",children:"Newsletter"}),i.jsx("p",{className:"text-gray-400 mb-4",children:"Subscribe to our newsletter for updates and tips."}),i.jsxs("form",{className:"flex",children:[i.jsx("input",{type:"email",placeholder:"Your email",className:"px-4 py-2 rounded-l-lg w-full focus:outline-none text-gray-800"}),i.jsx("button",{type:"submit",className:"bg-blue-500 text-white px-4 py-2 rounded-r-lg hover:bg-blue-600 transition-colors",children:"Subscribe"})]})]})]}),i.jsx("div",{className:"border-t border-gray-800 mt-8 pt-8 text-center text-gray-400",children:i.jsxs("p",{children:["© ",new Date().getFullYear()," ConvertMaster. All rights reserved."]})})]})}),wh=({onClose:e})=>{const[t,n]=v.useState(!1),[r,l]=v.useState(null),[s,o]=v.useState(""),[a,u]=v.useState(!1),[c,g]=v.useState(!1),[p,h]=v.useState(0),[w,x]=v.useState(0),[j,E]=v.useState(""),[f,d]=v.useState(""),[m,y]=v.useState(!1),[k,P]=v.useState(!1),[M,_]=v.useState(""),[$,O]=v.useState(!1),ve=v.useRef(null),Be=v.useRef(null),$e=v.useRef(null),Qt={video:["MP4","AVI","MOV","MKV","WEBM"],image:["JPG","PNG","WEBP","GIF","SVG"],document:["PDF","DOCX","PPTX","XLSX","TXT"],audio:["MP3","WAV","FLAC","OGG","M4A"]},Nr={video:["MP4","AVI","MOV","MKV","WEBM","GIF"],image:["JPG","PNG","WEBP","GIF","TIFF","BMP"],document:["PDF","DOCX","TXT","EPUB","HTML","RTF"],audio:["MP3","WAV","FLAC","OGG","AAC","M4A"]},Pn=T=>{var D;const J=((D=T.name.split(".").pop())==null?void 0:D.toUpperCase())||"";return Object.values(Qt).flat().includes(J)},Mn=T=>{var D;const J=((D=T.name.split(".").pop())==null?void 0:D.toUpperCase())||"";for(const[Ye,kr]of Object.entries(Qt))if(kr.includes(J))return Ye;return"unknown"},S=T=>{T.preventDefault(),T.stopPropagation(),T.type==="dragenter"||T.type==="dragover"?n(!0):T.type==="dragleave"&&n(!1)},z=T=>{T.preventDefault(),T.stopPropagation(),n(!1),T.dataTransfer.files&&T.dataTransfer.files[0]&&W(T.dataTransfer.files[0])},F=T=>{T.preventDefault(),T.target.files&&T.target.files[0]&&W(T.target.files[0])},W=T=>{var Ye;if(_(""),!Pn(T)){_("Unsupported file format. Please select a file with a supported format."),l(null),o(""),E(""),d("");return}l(T),o(T.name);const J=Mn(T),D=((Ye=T.name.split(".").pop())==null?void 0:Ye.toUpperCase())||"";if(J!=="unknown"){E(D);const kr=Nr[J].filter(dd=>dd!==D);kr.length>0&&d(kr[0])}else E(""),d("")},q=()=>{if(!r||!j||!f){_("Please select a file and conversion formats.");return}_(""),u(!0);let T=0;Be.current=setInterval(()=>{T+=Math.random()*5,T>=100&&(T=100,clearInterval(Be.current),h(100),setTimeout(()=>{g(!0),Xt()},500)),h(Math.min(T,100))},100)},Xt=()=>{const T=Math.floor(Math.random()*60)+1;let J=0;$e.current=setInterval(()=>{J+=100/T*.1,J>=100&&(J=100,clearInterval($e.current),setTimeout(()=>{g(!1),O(!0)},500)),x(Math.min(J,100))},100)};return v.useEffect(()=>()=>{Be.current&&clearInterval(Be.current),$e.current&&clearInterval($e.current)},[]),i.jsxs(i.Fragment,{children:[i.jsx($l,{isOpen:!0,onClose:e,title:"Convert Your File",children:!a&&!c?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`border-2 border-dashed rounded-lg p-6 mb-4 text-center transition-colors ${t?"border-blue-500 bg-blue-50":r?"border-green-500 bg-green-50":"border-gray-300 hover:border-gray-400"}`,onDragEnter:S,onDragOver:S,onDragLeave:S,onDrop:z,onClick:()=>{var T;return(T=ve.current)==null?void 0:T.click()},children:[i.jsx("input",{type:"file",className:"hidden",ref:ve,onChange:F}),r?i.jsxs("div",{className:"flex flex-col items-center",children:[i.jsx(de,{className:"h-12 w-12 text-green-500 mb-3"}),i.jsxs("p",{className:"font-medium mb-1",children:["File selected: ",s]}),i.jsx("p",{className:"text-sm text-gray-500",children:"Click to change file"})]}):i.jsxs("div",{className:"flex flex-col items-center",children:[i.jsx(id,{className:"h-12 w-12 text-gray-400 mb-3"}),i.jsx("p",{className:"font-medium mb-1",children:"Drag & drop your file here"}),i.jsx("p",{className:"text-sm text-gray-500",children:"or click to browse"})]})]}),r&&i.jsxs("div",{className:"space-y-3 mb-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Input Format"}),i.jsxs("div",{className:"relative",children:[i.jsxs("button",{type:"button",className:"w-full flex items-center justify-between bg-white border border-gray-300 rounded-md px-4 py-2 text-left text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",onClick:()=>y(!m),children:[j||"Select input format",i.jsx(pi,{className:"h-4 w-4 text-gray-500"})]}),m&&i.jsx("div",{className:"absolute z-10 mt-1 w-full rounded-md bg-white shadow-lg max-h-48 overflow-auto",children:i.jsx("div",{className:"py-1",children:Object.entries(Qt).flatMap(([T,J])=>J.map(D=>i.jsx("button",{className:`block w-full text-left px-4 py-2 text-sm hover:bg-gray-100 ${j===D?"bg-blue-50 text-blue-700":"text-gray-700"}`,onClick:()=>{E(D),y(!1)},children:D},D)))})})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Output Format"}),i.jsxs("div",{className:"relative",children:[i.jsxs("button",{type:"button",className:"w-full flex items-center justify-between bg-white border border-gray-300 rounded-md px-4 py-2 text-left text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",onClick:()=>P(!k),children:[f||"Select output format",i.jsx(pi,{className:"h-4 w-4 text-gray-500"})]}),k&&i.jsx("div",{className:"absolute z-10 mt-1 w-full rounded-md bg-white shadow-lg max-h-48 overflow-auto",children:i.jsx("div",{className:"py-1",children:Object.entries(Nr).flatMap(([T,J])=>J.filter(D=>D!==j).map(D=>i.jsx("button",{className:`block w-full text-left px-4 py-2 text-sm hover:bg-gray-100 ${f===D?"bg-blue-50 text-blue-700":"text-gray-700"}`,onClick:()=>{d(D),P(!1)},children:D},D)))})})]})]})]}),M&&i.jsxs("div",{className:"mb-4 p-3 bg-red-50 text-red-700 rounded-lg text-sm flex items-center",children:[i.jsx(td,{className:"h-5 w-5 mr-2 flex-shrink-0"}),M]}),i.jsxs("div",{className:"flex justify-end space-x-3",children:[i.jsx(pe,{variant:"outline",onClick:e,children:"Cancel"}),i.jsx(pe,{disabled:!r||!j||!f,onClick:q,children:"Convert Now"})]})]}):i.jsxs("div",{className:"py-4",children:[a&&!c&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx(Nn,{className:"h-5 w-5 text-blue-500 mr-2"}),i.jsxs("span",{className:"font-medium",children:["Uploading ",s]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mb-4",children:i.jsx("div",{className:"bg-blue-500 h-2.5 rounded-full transition-all duration-300",style:{width:`${p}%`}})}),i.jsxs("p",{className:"text-sm text-gray-500 text-center",children:["Uploading file... ",Math.round(p),"%"]})]}),c&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center mb-2",children:[i.jsx(Nn,{className:"h-5 w-5 text-teal-500 mr-2"}),i.jsxs("span",{className:"font-medium",children:["Converting ",s," from ",j," to ",f]})]}),i.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mb-4",children:i.jsx("div",{className:"bg-teal-500 h-2.5 rounded-full transition-all duration-300",style:{width:`${w}%`}})}),i.jsxs("p",{className:"text-sm text-gray-500 text-center",children:["Converting file... ",Math.round(w),"%"]}),i.jsx("p",{className:"text-xs text-gray-400 text-center mt-2",children:"This may take several minutes depending on the file size and format."})]})]})}),$&&i.jsx(ud,{isOpen:!0,onClose:()=>{O(!1),e()},onLoginClick:()=>{O(!1),e()}})]})},jh=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1);return i.jsxs("div",{className:"relative min-h-screen flex items-center pt-16 pb-16",children:[i.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-50 to-teal-50 -z-10"}),i.jsxs("div",{className:"absolute inset-0 overflow-hidden -z-10",children:[i.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 bg-blue-400 rounded-full opacity-10 blur-3xl"}),i.jsx("div",{className:"absolute top-40 -left-20 w-60 h-60 bg-teal-400 rounded-full opacity-10 blur-3xl"}),i.jsx("div",{className:"absolute bottom-40 right-20 w-40 h-40 bg-indigo-400 rounded-full opacity-10 blur-3xl"})]}),i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"max-w-4xl mx-auto text-center mb-12",children:[i.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 bg-gradient-to-r from-blue-600 to-teal-500 bg-clip-text text-transparent",children:"Convert Any File Format with Ease"}),i.jsx("p",{className:"text-xl text-gray-600 mb-8",children:"Fast, secure, and high-quality file conversion for all your needs. Support for videos, images, documents, and more - all in one place."}),i.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-4",children:[i.jsxs(pe,{size:"lg",onClick:()=>t(!0),children:[i.jsx(id,{className:"mr-2 h-5 w-5"}),"Convert Files Now"]}),i.jsxs(pe,{variant:"outline",size:"lg",onClick:()=>r(!0),children:[i.jsx(th,{className:"mr-2 h-5 w-5"}),"View Supported Formats"]})]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-4xl mx-auto",children:[i.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-shadow",children:[i.jsx("div",{className:"w-12 h-12 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(Nn,{size:24})}),i.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Any File Format"}),i.jsx("p",{className:"text-gray-600",children:"Convert between hundreds of different file formats with perfect quality."})]}),i.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-shadow",children:[i.jsx("div",{className:"w-12 h-12 bg-green-100 text-green-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(de,{size:24})}),i.jsx("h3",{className:"text-lg font-semibold mb-2",children:"High Quality"}),i.jsx("p",{className:"text-gray-600",children:"Industry-leading conversion algorithms to maintain quality and accuracy."})]}),i.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-md hover:shadow-lg transition-shadow",children:[i.jsx("div",{className:"w-12 h-12 bg-orange-100 text-orange-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(td,{size:24})}),i.jsx("h3",{className:"text-lg font-semibold mb-2",children:"100% Secure"}),i.jsx("p",{className:"text-gray-600",children:"Your files are encrypted and automatically deleted after conversion."})]})]})]}),e&&i.jsx(wh,{onClose:()=>t(!1)}),i.jsx(jr,{isOpen:n,onClose:()=>r(!1),onRegisterClick:()=>r(!1)})]})},Nh=()=>{const[e,t]=v.useState(!1);return i.jsxs("section",{id:"features",className:"py-16 bg-white",children:[i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Why Choose ConvertMaster?"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"We offer the most advanced file conversion platform with features that set us apart from the competition."})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10",children:[i.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl transition-all duration-300 hover:shadow-md hover:transform hover:-translate-y-1",children:[i.jsx("div",{className:"w-12 h-12 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(ad,{size:24})}),i.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Lightning Fast"}),i.jsx("p",{className:"text-gray-600",children:"Our optimized conversion engine processes your files at incredible speeds, saving you valuable time."})]}),i.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl transition-all duration-300 hover:shadow-md hover:transform hover:-translate-y-1",children:[i.jsx("div",{className:"w-12 h-12 bg-green-100 text-green-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(co,{size:24})}),i.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Privacy First"}),i.jsx("p",{className:"text-gray-600",children:"Your files are encrypted during transit and automatically deleted after conversion to ensure privacy."})]}),i.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl transition-all duration-300 hover:shadow-md hover:transform hover:-translate-y-1",children:[i.jsx("div",{className:"w-12 h-12 bg-purple-100 text-purple-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(mh,{size:24})}),i.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Mobile Friendly"}),i.jsx("p",{className:"text-gray-600",children:"Convert your files on any device with our fully responsive and user-friendly interface."})]}),i.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl transition-all duration-300 hover:shadow-md hover:transform hover:-translate-y-1",children:[i.jsx("div",{className:"w-12 h-12 bg-yellow-100 text-yellow-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(uh,{size:24})}),i.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Batch Processing"}),i.jsx("p",{className:"text-gray-600",children:"Convert multiple files at once with our powerful batch processing feature for maximum efficiency."})]}),i.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl transition-all duration-300 hover:shadow-md hover:transform hover:-translate-y-1",children:[i.jsx("div",{className:"w-12 h-12 bg-red-100 text-red-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(fh,{size:24})}),i.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Cloud Processing"}),i.jsx("p",{className:"text-gray-600",children:"All conversions happen in our cloud servers, without using your device's resources or battery."})]}),i.jsxs("div",{className:"p-6 bg-gray-50 rounded-xl transition-all duration-300 hover:shadow-md hover:transform hover:-translate-y-1",children:[i.jsx("div",{className:"w-12 h-12 bg-indigo-100 text-indigo-600 rounded-full flex items-center justify-center mb-4",children:i.jsx(rd,{size:24})}),i.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Global Access"}),i.jsx("p",{className:"text-gray-600",children:"Access your converted files from anywhere with our cloud storage and sharing options."})]})]}),i.jsxs("div",{className:"mt-20 text-center",children:[i.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:"Ready to Get Started?"}),i.jsx("button",{onClick:()=>t(!0),className:"bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Sign Up Free"})]})]}),i.jsx(jr,{isOpen:e,onClose:()=>t(!1),onRegisterClick:()=>t(!1)})]})},kh=()=>{const[e,t]=v.useState("video"),n=[{id:"video",label:"Video",icon:i.jsx(nd,{size:20})},{id:"image",label:"Image",icon:i.jsx(eh,{size:20})},{id:"document",label:"Document",icon:i.jsx(Bl,{size:20})},{id:"audio",label:"Audio",icon:i.jsx(Zm,{size:20})},{id:"other",label:"Other",icon:i.jsx(Jm,{size:20})}],r={video:[{from:"MP4",to:["AVI","MOV","MKV","WMV","WEBM","FLV"]},{from:"AVI",to:["MP4","MOV","MKV","WMV","WEBM"]},{from:"MOV",to:["MP4","AVI","MKV","WMV","WEBM"]},{from:"MKV",to:["MP4","AVI","MOV","WMV","WEBM"]},{from:"WEBM",to:["MP4","AVI","MOV","MKV","WMV"]}],image:[{from:"JPG",to:["PNG","WEBP","GIF","TIFF","BMP","SVG"]},{from:"PNG",to:["JPG","WEBP","GIF","TIFF","BMP"]},{from:"WEBP",to:["JPG","PNG","GIF","TIFF","BMP"]},{from:"GIF",to:["JPG","PNG","WEBP","MP4"]},{from:"SVG",to:["PNG","JPG","WEBP"]}],document:[{from:"PDF",to:["DOCX","DOC","TXT","EPUB","HTML","RTF"]},{from:"DOCX",to:["PDF","DOC","TXT","RTF","HTML"]},{from:"PPTX",to:["PDF","PPT","JPG","PNG"]},{from:"XLSX",to:["PDF","XLS","CSV","TXT","HTML"]},{from:"EPUB",to:["PDF","MOBI","TXT","HTML"]}],audio:[{from:"MP3",to:["WAV","OGG","FLAC","AAC","M4A"]},{from:"WAV",to:["MP3","OGG","FLAC","AAC","M4A"]},{from:"FLAC",to:["MP3","WAV","OGG","AAC","M4A"]},{from:"OGG",to:["MP3","WAV","FLAC","AAC"]},{from:"M4A",to:["MP3","WAV","FLAC","OGG"]}],other:[{from:"ZIP",to:["RAR","7Z","TAR","GZ"]},{from:"JSON",to:["XML","CSV","YAML","TXT"]},{from:"HTML",to:["PDF","TXT","DOCX","PNG","JPG"]},{from:"SRT",to:["VTT","TXT","CSV"]},{from:"STL",to:["OBJ","FBX","GLTF","USDZ"]}]};return i.jsx("section",{id:"formats",className:"py-16 bg-gradient-to-br from-gray-50 to-gray-100",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Supported File Formats"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Convert between hundreds of file formats with just a few clicks. Here are some of the most popular conversion options."})]}),i.jsxs("div",{className:"max-w-5xl mx-auto",children:[i.jsx("div",{className:"flex flex-wrap justify-center mb-8",children:n.map(l=>i.jsxs("button",{onClick:()=>t(l.id),className:`flex items-center px-6 py-3 m-2 rounded-lg transition-all ${e===l.id?"bg-blue-500 text-white shadow-md":"bg-white text-gray-700 hover:bg-gray-100"}`,children:[i.jsx("span",{className:"mr-2",children:l.icon}),l.label]},l.id))}),i.jsx("div",{className:"bg-white rounded-xl shadow-md overflow-hidden",children:i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-gray-200",children:r[e].map((l,s)=>i.jsxs("div",{className:"p-6",children:[i.jsxs("div",{className:"flex items-center mb-4",children:[i.jsx(Nn,{className:"mr-2 text-blue-500",size:24}),i.jsx("h3",{className:"text-lg font-semibold",children:l.from})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-500 mb-2",children:"Convert to:"}),i.jsx("div",{className:"flex flex-wrap gap-2",children:l.to.map(o=>i.jsx("span",{className:"bg-gray-100 text-gray-800 text-xs font-medium px-2.5 py-1 rounded",children:o},o))})]})]},s))})}),i.jsx("div",{className:"text-center mt-8 text-gray-600",children:i.jsxs("p",{children:["Can't find the format you need? ",i.jsx("a",{href:"#",className:"text-blue-500 hover:underline",children:"View our full list of supported formats"})]})})]})]})})},cd=({isOpen:e,onClose:t})=>{const[n,r]=v.useState(""),[l,s]=v.useState(""),[o,a]=v.useState(!1),[u,c]=v.useState(null),[g,p]=v.useState(!1),h=x=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(x),w=x=>{if(x.preventDefault(),c(null),!n.trim()){c("Please enter your name");return}if(!h(l)){c("Please enter a valid email address");return}a(!0),setTimeout(()=>{a(!1),p(!0)},1500)};return i.jsx($l,{isOpen:e,onClose:t,title:"Contact Sales Team",persistent:!0,children:g?i.jsxs("div",{className:"text-center py-8 bg-gradient-to-br from-blue-50 to-teal-50 rounded-lg",children:[i.jsx("div",{className:"animate-bounce mb-6",children:i.jsx(ih,{className:"w-12 h-12 text-blue-500 mx-auto"})}),i.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Connecting to Sales Team"}),i.jsx("p",{className:"text-gray-600",children:"Please wait while we connect you with our sales representative..."}),i.jsx("div",{className:"mt-6",children:i.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[i.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse",style:{animationDelay:"0s"}}),i.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse",style:{animationDelay:"0.2s"}}),i.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse",style:{animationDelay:"0.4s"}})]})})]}):i.jsxs("form",{onSubmit:w,className:"bg-gradient-to-br from-blue-50 to-teal-50 p-6 rounded-lg",children:[u&&i.jsx("div",{className:"mb-4 p-3 bg-red-50 text-red-700 rounded-lg text-sm",children:u}),i.jsx(gt,{id:"name",label:"Full Name",value:n,onChange:x=>r(x.target.value),required:!0}),i.jsx(gt,{id:"email",label:"Work Email",type:"email",value:l,onChange:x=>s(x.target.value),required:!0}),i.jsx(pe,{type:"submit",fullWidth:!0,isLoading:o,disabled:o,children:"Start Chat"})]})})},Sh=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),l=s=>{s==="Business"?t(!0):r(!0)};return i.jsxs("section",{id:"pricing",className:"py-16 bg-white",children:[i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Simple, Transparent Pricing"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Choose the plan that works for your needs. All plans include our core features."})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:[i.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden transition-all hover:shadow-md",children:[i.jsxs("div",{className:"p-6 border-b border-gray-200",children:[i.jsx("h3",{className:"text-xl font-bold mb-2",children:"Free"}),i.jsxs("div",{className:"mb-4",children:[i.jsx("span",{className:"text-4xl font-bold",children:"$0"}),i.jsx("span",{className:"text-gray-500",children:"/month"})]}),i.jsx("p",{className:"text-gray-600",children:"Perfect for occasional use and basic conversions."})]}),i.jsxs("div",{className:"p-6",children:[i.jsxs("ul",{className:"space-y-4",children:[i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"5 conversions per day"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Files up to 100MB"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Basic conversion options"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(_a,{className:"h-5 w-5 text-gray-400 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-gray-500",children:"No batch processing"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(_a,{className:"h-5 w-5 text-gray-400 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-gray-500",children:"Standard quality"})]})]}),i.jsx(pe,{variant:"outline",fullWidth:!0,className:"mt-6",onClick:()=>l("Free"),children:"Sign Up Free"})]})]}),i.jsxs("div",{className:"bg-white border-2 border-blue-500 rounded-xl shadow-md overflow-hidden transform scale-105 z-10",children:[i.jsx("div",{className:"bg-blue-500 text-white text-center py-1 text-sm font-medium",children:"MOST POPULAR"}),i.jsxs("div",{className:"p-6 border-b border-gray-200",children:[i.jsx("h3",{className:"text-xl font-bold mb-2",children:"Pro"}),i.jsxs("div",{className:"mb-4",children:[i.jsx("span",{className:"text-4xl font-bold",children:"$9.99"}),i.jsx("span",{className:"text-gray-500",children:"/month"})]}),i.jsx("p",{className:"text-gray-600",children:"For professionals who need regular conversions."})]}),i.jsxs("div",{className:"p-6",children:[i.jsxs("ul",{className:"space-y-4",children:[i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Unlimited conversions"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Files up to 2GB"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Advanced conversion options"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Batch processing (up to 10 files)"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"High quality output"})]})]}),i.jsx(pe,{fullWidth:!0,className:"mt-6",onClick:()=>l("Pro"),children:"Get Started"})]})]}),i.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden transition-all hover:shadow-md",children:[i.jsxs("div",{className:"p-6 border-b border-gray-200",children:[i.jsx("h3",{className:"text-xl font-bold mb-2",children:"Business"}),i.jsxs("div",{className:"mb-4",children:[i.jsx("span",{className:"text-4xl font-bold",children:"$29.99"}),i.jsx("span",{className:"text-gray-500",children:"/month"})]}),i.jsx("p",{className:"text-gray-600",children:"For teams and businesses with high-volume needs."})]}),i.jsxs("div",{className:"p-6",children:[i.jsxs("ul",{className:"space-y-4",children:[i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Unlimited conversions"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Files up to 10GB"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Premium conversion options"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Unlimited batch processing"})]}),i.jsxs("li",{className:"flex items-start",children:[i.jsx(de,{className:"h-5 w-5 text-green-500 mr-2 flex-shrink-0 mt-0.5"}),i.jsx("span",{children:"Premium quality with lossless option"})]})]}),i.jsx(pe,{variant:"secondary",fullWidth:!0,className:"mt-6",onClick:()=>l("Business"),children:"Contact Sales"})]})]})]}),i.jsxs("div",{className:"text-center mt-12 max-w-xl mx-auto",children:[i.jsx("h3",{className:"text-xl font-semibold mb-4",children:"Enterprise Solutions"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"Need a custom solution for your organization? We offer tailored plans with dedicated support, API access, and more."}),i.jsx(pe,{variant:"outline",onClick:()=>t(!0),children:"Contact Our Sales Team"})]})]}),i.jsx(cd,{isOpen:e,onClose:()=>t(!1)}),i.jsx(jr,{isOpen:n,onClose:()=>r(!1),onRegisterClick:()=>r(!1)})]})},Ch=[{id:1,name:"Sarah Johnson",role:"Marketing Director",company:"CreativeCloud Inc.",avatar:"https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg?auto=compress&cs=tinysrgb&w=150",quote:"ConvertMaster has been a game-changer for our team. We can quickly convert files for our clients without compromising on quality. The batch processing feature saves us hours every week!",rating:5},{id:2,name:"David Chen",role:"Video Editor",company:"FrameWorks Studios",avatar:"https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg?auto=compress&cs=tinysrgb&w=150",quote:"I work with different video formats daily, and ConvertMaster handles everything I throw at it. The conversion quality is top-notch, and the speed is impressive even with large files.",rating:5},{id:3,name:"Emma Rodriguez",role:"Graphic Designer",company:"Artistry Design Co.",avatar:"https://images.pexels.com/photos/2169434/pexels-photo-2169434.jpeg?auto=compress&cs=tinysrgb&w=150",quote:"As a designer, I need reliable tools that don't compromise quality. ConvertMaster converts my design files perfectly every time. The intuitive interface makes it easy to use.",rating:4}],Eh=()=>i.jsx("section",{className:"py-16 bg-gray-50",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h2",{className:"text-3xl font-bold mb-4",children:"What Our Users Say"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Thousands of professionals and businesses trust ConvertMaster for their file conversion needs."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:Ch.map(e=>i.jsxs("div",{className:"bg-white rounded-xl shadow-md p-6 transition-all duration-300 hover:shadow-lg",children:[i.jsx("div",{className:"flex items-center mb-4",children:[...Array(5)].map((t,n)=>i.jsx(hh,{size:16,className:ni.jsxs("div",{className:"w-full",children:[i.jsx(jh,{}),i.jsx(Nh,{}),i.jsx(kh,{}),i.jsx(Sh,{}),i.jsx(Eh,{})]}),Mh=()=>{const e=[{icon:i.jsx(ad,{className:"w-8 h-8 text-blue-500"}),title:"Lightning Fast",description:"Process your files at incredible speeds with our optimized engine"},{icon:i.jsx(co,{className:"w-8 h-8 text-blue-500"}),title:"Secure Processing",description:"Enterprise-grade security for all your sensitive documents"},{icon:i.jsx(ch,{className:"w-8 h-8 text-blue-500"}),title:"Advanced Features",description:"Access powerful tools and customization options"},{icon:i.jsx(rd,{className:"w-8 h-8 text-blue-500"}),title:"Global Access",description:"Access your files from anywhere in the world"},{icon:i.jsx(Xm,{className:"w-8 h-8 text-blue-500"}),title:"24/7 Availability",description:"Our services are available round the clock"},{icon:i.jsx(Km,{className:"w-8 h-8 text-blue-500"}),title:"API Integration",description:"Seamlessly integrate with your existing workflow"}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Powerful Features for Your Needs"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Discover all the powerful features that make our platform the perfect choice for your document processing needs."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>i.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8 hover:shadow-xl transition-shadow duration-300",children:[i.jsx("div",{className:"mb-4",children:t.icon}),i.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:t.title}),i.jsx("p",{className:"text-gray-600",children:t.description})]},n))}),i.jsxs("div",{className:"mt-20 text-center",children:[i.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-8",children:"Ready to Get Started?"}),i.jsx("button",{className:"bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Try it Free"})]})]})},_h=()=>{const e=[{icon:i.jsx(Bl,{className:"w-12 h-12 text-blue-500"}),title:"Documents",formats:["PDF","DOC","DOCX","TXT","RTF","ODT"],description:"Support for all major document formats"},{icon:i.jsx(nh,{className:"w-12 h-12 text-green-500"}),title:"Images",formats:["JPG","PNG","SVG","WebP","TIFF","GIF"],description:"Handle various image formats with ease"},{icon:i.jsx(nd,{className:"w-12 h-12 text-purple-500"}),title:"Videos",formats:["MP4","AVI","MOV","WMV","MKV","WebM"],description:"Process popular video formats"},{icon:i.jsx(oh,{className:"w-12 h-12 text-red-500"}),title:"Audio",formats:["MP3","WAV","AAC","FLAC","OGG","M4A"],description:"Support for common audio formats"},{icon:i.jsx(qm,{className:"w-12 h-12 text-yellow-500"}),title:"Data Files",formats:["CSV","XML","JSON","XLS","XLSX","SQL"],description:"Work with various data formats"},{icon:i.jsx($m,{className:"w-12 h-12 text-gray-500"}),title:"Archives",formats:["ZIP","RAR","7Z","TAR","GZ","ISO"],description:"Handle compressed file formats"}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Supported File Formats"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Our platform supports a wide range of file formats to meet all your processing needs."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>i.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8 hover:shadow-xl transition-shadow duration-300",children:[i.jsx("div",{className:"flex justify-center mb-6",children:t.icon}),i.jsx("h3",{className:"text-2xl font-semibold text-gray-900 mb-4 text-center",children:t.title}),i.jsx("p",{className:"text-gray-600 mb-4 text-center",children:t.description}),i.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:t.formats.map((r,l)=>i.jsx("span",{className:"bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm font-medium",children:r},l))})]},n))})]})},Th=()=>{const[e,t]=v.useState(!1),[n,r]=v.useState(!1),l=[{name:"Basic",price:"Free",description:"Perfect for getting started",features:["Up to 100 files per month","Basic file formats","Standard processing speed","Email support","1GB storage"]},{name:"Pro",price:"$29",description:"For growing businesses",features:["Up to 1000 files per month","Advanced file formats","Priority processing","Priority support","10GB storage","API access"],popular:!0},{name:"Enterprise",price:"Custom",description:"For large organizations",features:["Unlimited files","All file formats","Maximum processing speed","24/7 dedicated support","Unlimited storage","Custom API integration","SLA guarantee"]}],s=o=>{o==="Enterprise"?t(!0):r(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Simple, Transparent Pricing"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Choose the plan that best fits your needs. All plans include our core features."})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-7xl mx-auto",children:l.map((o,a)=>i.jsxs("div",{className:`relative bg-white rounded-2xl shadow-lg p-8 ${o.popular?"ring-2 ring-blue-500":""}`,children:[o.popular&&i.jsx("span",{className:"absolute top-0 right-8 -translate-y-1/2 bg-blue-500 text-white px-3 py-1 rounded-full text-sm font-medium",children:"Most Popular"}),i.jsxs("div",{className:"text-center mb-8",children:[i.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:o.name}),i.jsxs("div",{className:"flex items-baseline justify-center mb-2",children:[i.jsx("span",{className:"text-4xl font-bold text-gray-900",children:o.price}),o.price!=="Custom"&&i.jsx("span",{className:"text-gray-600 ml-2",children:"/month"})]}),i.jsx("p",{className:"text-gray-600",children:o.description})]}),i.jsx("ul",{className:"space-y-4 mb-8",children:o.features.map((u,c)=>i.jsxs("li",{className:"flex items-center",children:[i.jsx(Gm,{className:"w-5 h-5 text-green-500 mr-3"}),i.jsx("span",{className:"text-gray-700",children:u})]},c))}),i.jsx("button",{className:`w-full py-3 px-6 rounded-lg font-semibold transition-colors duration-300 ${o.popular?"bg-blue-600 text-white hover:bg-blue-700":"bg-gray-100 text-gray-900 hover:bg-gray-200"}`,onClick:()=>s(o.name),children:o.name==="Basic"?"Sign Up Free":o.name==="Enterprise"?"Contact Sales":"Get Started"})]},a))}),i.jsxs("div",{className:"mt-20 text-center bg-gray-50 rounded-xl p-8 max-w-3xl mx-auto",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Need a Custom Solution?"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"Contact our sales team for a customized plan that meets your specific requirements."}),i.jsx("button",{className:"bg-gray-900 text-white px-8 py-3 rounded-lg font-semibold hover:bg-gray-800 transition-colors duration-300",onClick:()=>t(!0),children:"Contact Sales"})]})]}),i.jsx(cd,{isOpen:e,onClose:()=>t(!1)}),i.jsx(jr,{isOpen:n,onClose:()=>r(!1),onRegisterClick:()=>r(!1)})]})},zh=()=>{const e=[{icon:i.jsx(Hm,{className:"w-8 h-8 text-blue-500"}),title:"Getting Started",description:"Learn the basics of our platform",articles:["Quick Start Guide","Platform Overview","Account Setup"]},{icon:i.jsx(Bl,{className:"w-8 h-8 text-green-500"}),title:"File Processing",description:"Everything about handling files",articles:["Supported Formats","Processing Options","Batch Processing"]},{icon:i.jsx(ph,{className:"w-8 h-8 text-purple-500"}),title:"Account Settings",description:"Manage your account and preferences",articles:["Profile Settings","Billing & Subscriptions","API Keys"]},{icon:i.jsx(vh,{className:"w-8 h-8 text-orange-500"}),title:"Team Management",description:"Collaborate with your team",articles:["Adding Team Members","Role Management","Team Permissions"]}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"How can we help you?"}),i.jsxs("div",{className:"max-w-2xl mx-auto relative",children:[i.jsx(dh,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400 w-5 h-5"}),i.jsx("input",{type:"text",placeholder:"Search for help articles...",className:"w-full pl-12 pr-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]})]}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-16",children:e.map((t,n)=>i.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8 hover:shadow-xl transition-shadow duration-300",children:[i.jsxs("div",{className:"flex items-center mb-6",children:[t.icon,i.jsx("h3",{className:"text-xl font-semibold text-gray-900 ml-4",children:t.title})]}),i.jsx("p",{className:"text-gray-600 mb-6",children:t.description}),i.jsx("ul",{className:"space-y-3",children:t.articles.map((r,l)=>i.jsx("li",{children:i.jsxs("a",{href:"#",className:"text-blue-600 hover:text-blue-800 flex items-center",children:[i.jsx("span",{className:"mr-2",children:"→"}),r]})},l))})]},n))}),i.jsx("div",{className:"bg-blue-50 rounded-xl p-8 text-center",children:i.jsxs("div",{className:"max-w-2xl mx-auto",children:[i.jsx(sd,{className:"w-12 h-12 text-blue-500 mx-auto mb-4"}),i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Still need help?"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"Our support team is available 24/7 to assist you with any questions or issues you may have."}),i.jsx("button",{className:"bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Contact Support"})]})})]})},Lh=()=>{const[e,t]=Ua.useState(null),n=[{question:"What file formats do you support?",answer:"We support a wide range of file formats including PDF, DOC, DOCX, JPG, PNG, MP4, and many more. Check our Formats page for a complete list of supported file types."},{question:"How secure is my data?",answer:"We take security seriously. All files are encrypted during transfer and storage. We use enterprise-grade security measures and regularly undergo security audits to ensure your data is protected."},{question:"What are the pricing plans?",answer:"We offer flexible pricing plans starting from our free tier up to enterprise solutions. Visit our Pricing page to find the plan that best suits your needs."},{question:"How fast is the processing speed?",answer:"Processing speed depends on the file size and type, but most files are processed within seconds. Premium plans get priority processing for even faster results."},{question:"Do you offer API access?",answer:"Yes, we provide API access for Pro and Enterprise plans. This allows you to integrate our services directly into your workflow."},{question:"What kind of support do you offer?",answer:"We offer email support for all users. Pro plans get priority support, while Enterprise plans receive 24/7 dedicated support with guaranteed response times."},{question:"Can I try before I buy?",answer:"Yes! We offer a free tier that lets you test our core features. You can upgrade to a paid plan anytime to access more features and higher usage limits."},{question:"How do I get started?",answer:"Getting started is easy! Simply sign up for a free account, verify your email, and you can begin processing files immediately."}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Frequently Asked Questions"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Find answers to common questions about our services."})]}),i.jsx("div",{className:"max-w-3xl mx-auto",children:n.map((r,l)=>i.jsxs("div",{className:"mb-4",children:[i.jsxs("button",{className:"w-full flex items-center justify-between p-6 bg-white rounded-lg shadow-sm hover:shadow-md transition-shadow duration-200",onClick:()=>t(e===l?null:l),children:[i.jsx("span",{className:"text-lg font-semibold text-gray-900 text-left",children:r.question}),e===l?i.jsx(Qm,{className:"w-5 h-5 text-gray-500"}):i.jsx(pi,{className:"w-5 h-5 text-gray-500"})]}),e===l&&i.jsx("div",{className:"p-6 bg-gray-50 rounded-b-lg",children:i.jsx("p",{className:"text-gray-700",children:r.answer})})]},l))}),i.jsxs("div",{className:"mt-16 text-center",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Still have questions?"}),i.jsx("p",{className:"text-gray-600 mb-8",children:"Can't find the answer you're looking for? Please chat to our friendly team."}),i.jsx("button",{className:"bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Get in Touch"})]})]})},Fh=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"?"convertmaster.com":e},Oh=(e="support")=>{const t=Fh();return`${e}@${t}`},Rh=()=>{const e=[{icon:i.jsx(ld,{className:"w-6 h-6 text-blue-500"}),title:"Email",description:"Our friendly team is here to help.",contact:Oh()},{icon:i.jsx(ah,{className:"w-6 h-6 text-green-500"}),title:"Phone",description:"Mon-Fri from 8am to 5pm.",contact:"+1 (855) 123-4567"},{icon:i.jsx(lh,{className:"w-6 h-6 text-red-500"}),title:"Office",description:"Come say hello at our office.",contact:"100 Tech Street, Silicon Valley, CA 94025"}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Get in Touch"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"We'd love to hear from you. Please fill out this form or use our contact information below."})]}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 max-w-7xl mx-auto",children:[i.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-8",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Send us a Message"}),i.jsxs("form",{className:"space-y-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Your Name"}),i.jsx("input",{type:"text",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"John Doe"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Address"}),i.jsx("input",{type:"email",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"john@example.com"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Subject"}),i.jsx("input",{type:"text",className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"How can we help?"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Message"}),i.jsx("textarea",{rows:4,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Your message..."})]}),i.jsx("button",{type:"submit",className:"w-full bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Send Message"})]})]}),i.jsxs("div",{children:[i.jsx("div",{className:"grid grid-cols-1 gap-8 mb-12",children:e.map((t,n)=>i.jsxs("div",{className:"flex items-start p-6 bg-white rounded-xl shadow-lg hover:shadow-xl transition-shadow duration-300",children:[i.jsx("div",{className:"flex-shrink-0",children:t.icon}),i.jsxs("div",{className:"ml-4",children:[i.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:t.title}),i.jsx("p",{className:"text-gray-600 mb-1",children:t.description}),i.jsx("p",{className:"text-blue-600 font-medium",children:t.contact})]})]},n))}),i.jsxs("div",{className:"bg-gray-50 rounded-xl p-8",children:[i.jsxs("div",{className:"flex items-center mb-6",children:[i.jsx(sd,{className:"w-6 h-6 text-blue-500 mr-3"}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Live Chat"})]}),i.jsx("p",{className:"text-gray-600 mb-4",children:"Our live chat is available 24/7 for quick responses to your questions."}),i.jsx("button",{className:"w-full bg-gray-900 text-white px-6 py-3 rounded-lg font-semibold hover:bg-gray-800 transition-colors duration-300",children:"Start Chat"})]})]})]})]})},Ih=()=>{const e=[{title:"Information We Collect",content:`We collect information that you provide directly to us, including: + • Account information (name, email, password) + • Usage data and preferences + • Payment information when you subscribe + • Files and content you upload for processing`},{title:"How We Use Your Information",content:`We use the information we collect to: + • Provide and maintain our services + • Process your file conversions + • Send you important updates and notifications + • Improve our services and develop new features + • Protect against fraud and abuse`},{title:"Data Security",content:`We implement appropriate technical and organizational measures to protect your data: + • End-to-end encryption for file transfers + • Secure data storage with regular backups + • Regular security audits and updates + • Access controls and authentication measures`},{title:"Data Sharing",content:`We do not sell your personal information. We may share your information only: + • With your consent + • With service providers who assist our operations + • To comply with legal obligations + • In connection with a business transfer or merger`},{title:"Your Rights",content:`You have the right to: + • Access your personal information + • Correct inaccurate data + • Request deletion of your data + • Object to processing of your data + • Export your data in a portable format`},{title:"Cookie Policy",content:`We use cookies and similar technologies to: + • Keep you logged in + • Remember your preferences + • Analyze site usage + • Improve our services + You can control cookie settings in your browser.`}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx(co,{className:"w-16 h-16 text-blue-500 mx-auto mb-4"}),i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Privacy Policy"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"We take your privacy seriously. This policy explains how we collect, use, and protect your personal information."}),i.jsx("p",{className:"text-gray-500 mt-2",children:"Last updated: January 1, 2025"})]}),i.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.map((t,n)=>i.jsxs("div",{className:"mb-12",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:t.title}),i.jsx("div",{className:"bg-white rounded-xl shadow-lg p-6",children:i.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:t.content})})]},n)),i.jsxs("div",{className:"mt-16 bg-gray-50 rounded-xl p-8 text-center",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Questions About Our Privacy Policy?"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"If you have any questions about our privacy practices or would like to exercise your rights, please contact our privacy team."}),i.jsx("button",{className:"bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Contact Privacy Team"})]})]})]})},bh=()=>{const e=[{title:"Acceptance of Terms",content:"By accessing and using our services, you agree to be bound by these Terms of Service and all applicable laws and regulations. If you do not agree with any of these terms, you are prohibited from using or accessing our services."},{title:"Use License",content:"We grant you a limited, non-exclusive, non-transferable license to access and use our services for your personal or business purposes, subject to these terms and conditions. This license is subject to your continued compliance with these terms."},{title:"User Obligations",content:`You agree to: + • Provide accurate account information + • Maintain the security of your account + • Use the services in compliance with all laws + • Not engage in any unauthorized or harmful activities + • Not infringe on others' intellectual property rights`},{title:"Service Availability",content:"We strive to maintain high availability of our services, but we do not guarantee uninterrupted access. We reserve the right to modify, suspend, or discontinue any part of our services at any time without notice."},{title:"Payment Terms",content:`For paid services: + • Payments are due in advance + • All fees are non-refundable unless required by law + • We may change pricing with 30 days notice + • You are responsible for all applicable taxes`},{title:"Intellectual Property",content:"All content, features, and functionality of our services are owned by us and protected by international copyright, trademark, and other intellectual property laws."},{title:"Limitation of Liability",content:"We shall not be liable for any indirect, incidental, special, consequential, or punitive damages resulting from your use or inability to use our services."},{title:"Termination",content:"We may terminate or suspend your account and access to our services immediately, without prior notice, for conduct that we believe violates these terms or is harmful to other users, us, or third parties."}];return i.jsxs("div",{className:"container mx-auto px-4 py-16",children:[i.jsxs("div",{className:"text-center mb-16",children:[i.jsx(Bl,{className:"w-16 h-16 text-blue-500 mx-auto mb-4"}),i.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Terms of Service"}),i.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Please read these terms carefully before using our services."}),i.jsx("p",{className:"text-gray-500 mt-2",children:"Last updated: January 1, 2025"})]}),i.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.map((t,n)=>i.jsxs("div",{className:"mb-12",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:t.title}),i.jsx("div",{className:"bg-white rounded-xl shadow-lg p-6",children:i.jsx("p",{className:"text-gray-700 whitespace-pre-line",children:t.content})})]},n)),i.jsxs("div",{className:"mt-16 bg-gray-50 rounded-xl p-8 text-center",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Questions About Our Terms?"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"If you have any questions about our terms of service, please contact our legal team."}),i.jsx("button",{className:"bg-blue-600 text-white px-8 py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors duration-300",children:"Contact Legal Team"})]})]})]})};function Dh(){return i.jsx(Dm,{children:i.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[i.jsx(xh,{}),i.jsx("main",{className:"flex-grow",children:i.jsxs(zm,{children:[i.jsx(Ge,{path:"/",element:i.jsx(Ph,{})}),i.jsx(Ge,{path:"/features",element:i.jsx(Mh,{})}),i.jsx(Ge,{path:"/formats",element:i.jsx(_h,{})}),i.jsx(Ge,{path:"/pricing",element:i.jsx(Th,{})}),i.jsx(Ge,{path:"/help",element:i.jsx(zh,{})}),i.jsx(Ge,{path:"/faq",element:i.jsx(Lh,{})}),i.jsx(Ge,{path:"/contact",element:i.jsx(Rh,{})}),i.jsx(Ge,{path:"/privacy",element:i.jsx(Ih,{})}),i.jsx(Ge,{path:"/terms",element:i.jsx(bh,{})})]})}),i.jsx(yh,{})]})})}Bc(document.getElementById("root")).render(i.jsx(v.StrictMode,{children:i.jsx(Dh,{})})); diff --git a/sni-templates/converter/assets/style.css b/sni-templates/converter/assets/style.css new file mode 100644 index 0000000..4b4c6c1 --- /dev/null +++ b/sni-templates/converter/assets/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-left-20{left:-5rem}.-right-40{right:-10rem}.-top-40{top:-10rem}.bottom-40{bottom:10rem}.left-4{left:1rem}.right-20{right:5rem}.right-8{right:2rem}.top-0{top:0}.top-1\/2{top:50%}.top-40{top:10rem}.-z-10{z-index:-10}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-ml-1{margin-left:-.25rem}.mb-1{margin-bottom:.25rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-8{height:2rem}.h-80{height:20rem}.max-h-48{max-height:12rem}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-8{width:2rem}.w-80{width:20rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-10{gap:2.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-pre-line{white-space:pre-line}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-400{--tw-gradient-from: #60a5fa var(--tw-gradient-from-position);--tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-50{--tw-gradient-from: #eff6ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-600{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-50{--tw-gradient-from: #f9fafb var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-gray-100{--tw-gradient-to: #f3f4f6 var(--tw-gradient-to-position)}.to-teal-300{--tw-gradient-to: #5eead4 var(--tw-gradient-to-position)}.to-teal-400{--tw-gradient-to: #2dd4bf var(--tw-gradient-to-position)}.to-teal-50{--tw-gradient-to: #f0fdfa var(--tw-gradient-to-position)}.to-teal-500{--tw-gradient-to: #14b8a6 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-yellow-400{fill:#facc15}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-16{padding-bottom:4rem}.pb-8{padding-bottom:2rem}.pl-12{padding-left:3rem}.pr-4{padding-right:1rem}.pt-12{padding-top:3rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgb(20 184 166 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.opacity-10{opacity:.1}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:transform:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-800:hover{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.hover\:bg-teal-600:hover{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity))}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.active\:bg-teal-700:active{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity))}@media (min-width: 640px){.sm\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.md\:divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.md\:text-5xl{font-size:3rem;line-height:1}}@media (min-width: 1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:text-6xl{font-size:3.75rem;line-height:1}} diff --git a/sni-templates/converter/favicon-96x96.png b/sni-templates/converter/favicon-96x96.png new file mode 100644 index 0000000..3616a2b Binary files /dev/null and b/sni-templates/converter/favicon-96x96.png differ diff --git a/sni-templates/converter/favicon.ico b/sni-templates/converter/favicon.ico new file mode 100644 index 0000000..89dad8d Binary files /dev/null and b/sni-templates/converter/favicon.ico differ diff --git a/sni-templates/converter/favicon.svg b/sni-templates/converter/favicon.svg new file mode 100644 index 0000000..a382362 --- /dev/null +++ b/sni-templates/converter/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/sni-templates/converter/index.html b/sni-templates/converter/index.html new file mode 100644 index 0000000..dd87c60 --- /dev/null +++ b/sni-templates/converter/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + ConvertMaster - The Ultimate File Conversion Tool + + + + +
+ + \ No newline at end of file diff --git a/sni-templates/converter/site.webmanifest b/sni-templates/converter/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/converter/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/converter/web-app-manifest-192x192.png b/sni-templates/converter/web-app-manifest-192x192.png new file mode 100644 index 0000000..83ce174 Binary files /dev/null and b/sni-templates/converter/web-app-manifest-192x192.png differ diff --git a/sni-templates/converter/web-app-manifest-512x512.png b/sni-templates/converter/web-app-manifest-512x512.png new file mode 100644 index 0000000..3fd76d4 Binary files /dev/null and b/sni-templates/converter/web-app-manifest-512x512.png differ diff --git a/sni-templates/convertit/apple-touch-icon.png b/sni-templates/convertit/apple-touch-icon.png new file mode 100644 index 0000000..5a78e5b Binary files /dev/null and b/sni-templates/convertit/apple-touch-icon.png differ diff --git a/sni-templates/convertit/assets/pexels-photo-2608517.jpeg b/sni-templates/convertit/assets/pexels-photo-2608517.jpeg new file mode 100644 index 0000000..9f07174 Binary files /dev/null and b/sni-templates/convertit/assets/pexels-photo-2608517.jpeg differ diff --git a/sni-templates/convertit/assets/pexels-photo-3062541.jpeg b/sni-templates/convertit/assets/pexels-photo-3062541.jpeg new file mode 100644 index 0000000..2b60145 Binary files /dev/null and b/sni-templates/convertit/assets/pexels-photo-3062541.jpeg differ diff --git a/sni-templates/convertit/assets/pexels-photo-3379943.jpeg b/sni-templates/convertit/assets/pexels-photo-3379943.jpeg new file mode 100644 index 0000000..b14a3f0 Binary files /dev/null and b/sni-templates/convertit/assets/pexels-photo-3379943.jpeg differ diff --git a/sni-templates/convertit/assets/pexels-photo-4144923.jpeg b/sni-templates/convertit/assets/pexels-photo-4144923.jpeg new file mode 100644 index 0000000..b76cc03 Binary files /dev/null and b/sni-templates/convertit/assets/pexels-photo-4144923.jpeg differ diff --git a/sni-templates/convertit/assets/script.js b/sni-templates/convertit/assets/script.js new file mode 100644 index 0000000..f802803 --- /dev/null +++ b/sni-templates/convertit/assets/script.js @@ -0,0 +1,147 @@ +var Hd=Object.defineProperty;var Wd=(e,t,n)=>t in e?Hd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fl=(e,t,n)=>Wd(e,typeof t!="symbol"?t+"":t,n);function Kd(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uu={exports:{}},zi={},cu={exports:{}},I={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sr=Symbol.for("react.element"),Yd=Symbol.for("react.portal"),Jd=Symbol.for("react.fragment"),Gd=Symbol.for("react.strict_mode"),qd=Symbol.for("react.profiler"),Xd=Symbol.for("react.provider"),Zd=Symbol.for("react.context"),ef=Symbol.for("react.forward_ref"),tf=Symbol.for("react.suspense"),nf=Symbol.for("react.memo"),rf=Symbol.for("react.lazy"),Pl=Symbol.iterator;function sf(e){return e===null||typeof e!="object"?null:(e=Pl&&e[Pl]||e["@@iterator"],typeof e=="function"?e:null)}var du={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fu=Object.assign,pu={};function jn(e,t,n){this.props=e,this.context=t,this.refs=pu,this.updater=n||du}jn.prototype.isReactComponent={};jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hu(){}hu.prototype=jn.prototype;function Oo(e,t,n){this.props=e,this.context=t,this.refs=pu,this.updater=n||du}var Ro=Oo.prototype=new hu;Ro.constructor=Oo;fu(Ro,jn.prototype);Ro.isPureReactComponent=!0;var Ll=Array.isArray,mu=Object.prototype.hasOwnProperty,To={current:null},gu={key:!0,ref:!0,__self:!0,__source:!0};function vu(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)mu.call(t,r)&&!gu.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,X=F[U];if(0>>1;Ui(ts,T))Oti(Pr,ts)?(F[U]=Pr,F[Ot]=T,U=Ot):(F[U]=ts,F[Lt]=T,U=Lt);else if(Oti(Pr,T))F[U]=Pr,F[Ot]=T,U=Ot;else break e}}return O}function i(F,O){var T=F.sortIndex-O.sortIndex;return T!==0?T:F.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],c=[],f=1,p=null,d=3,v=!1,x=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(F){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=F)r(c),O.sortIndex=O.expirationTime,t(a,O);else break;O=n(c)}}function y(F){if(w=!1,g(F),!x)if(n(a)!==null)x=!0,it(S);else{var O=n(c);O!==null&&Jt(y,O.startTime-F)}}function S(F,O){x=!1,w&&(w=!1,m(L),L=-1),v=!0;var T=d;try{for(g(O),p=n(a);p!==null&&(!(p.expirationTime>O)||F&&!te());){var U=p.callback;if(typeof U=="function"){p.callback=null,d=p.priorityLevel;var X=U(p.expirationTime<=O);O=e.unstable_now(),typeof X=="function"?p.callback=X:p===n(a)&&r(a),g(O)}else r(a);p=n(a)}if(p!==null)var Fr=!0;else{var Lt=n(c);Lt!==null&&Jt(y,Lt.startTime-O),Fr=!1}return Fr}finally{p=null,d=T,v=!1}}var C=!1,j=null,L=-1,V=5,b=-1;function te(){return!(e.unstable_now()-bF||125U?(F.sortIndex=T,t(c,F),n(a)===null&&F===n(c)&&(w?(m(L),L=-1):w=!0,Jt(y,T-U))):(F.sortIndex=X,t(a,F),x||v||(x=!0,it(S))),F},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(F){var O=d;return function(){var T=d;d=O;try{return F.apply(this,arguments)}finally{d=T}}}})(ku);Su.exports=ku;var yf=Su.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xf=E,Ee=yf;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rs=Object.prototype.hasOwnProperty,wf=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Rl={},Tl={};function Sf(e){return Rs.call(Tl,e)?!0:Rs.call(Rl,e)?!1:wf.test(e)?Tl[e]=!0:(Rl[e]=!0,!1)}function kf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Nf(e,t,n,r){if(t===null||typeof t>"u"||kf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pe(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new pe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ie[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Io=/[\-:]([a-z])/g;function zo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Io,zo);ie[t]=new pe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Io,zo);ie[t]=new pe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Io,zo);ie[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Do(e,t,n,r){var i=ie.hasOwnProperty(t)?ie[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` +`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function Ef(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=ss(e.type,!1),e;case 11:return e=ss(e.type.render,!1),e;case 1:return e=ss(e.type,!0),e;default:return""}}function zs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case en:return"Fragment";case Zt:return"Portal";case Ts:return"Profiler";case _o:return"StrictMode";case bs:return"Suspense";case Is:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ju:return(e.displayName||"Context")+".Consumer";case Eu:return(e._context.displayName||"Context")+".Provider";case Mo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $o:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case ot:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function jf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return zs(t);case 8:return t===_o?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cf(e){var t=Fu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=Cf(e))}function Pu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function si(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ds(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Il(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lu(e,t){t=t.checked,t!=null&&Do(e,"checked",t,!1)}function _s(e,t){Lu(e,t);var n=kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ms(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ms(e,t.type,kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ms(e,t,n){(t!=="number"||si(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function fn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ff=["Webkit","ms","Moz","O"];Object.keys(Hn).forEach(function(e){Ff.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hn[t]=Hn[e]})});function bu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hn.hasOwnProperty(e)&&Hn[e]?(""+t).trim():t+"px"}function Iu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Pf=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function As(e,t){if(t){if(Pf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Vs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Bs=null;function Uo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hs=null,pn=null,hn=null;function Ml(e){if(e=Er(e)){if(typeof Hs!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Ui(t),Hs(e.stateNode,e.type,t))}}function zu(e){pn?hn?hn.push(e):hn=[e]:pn=e}function Du(){if(pn){var e=pn,t=hn;if(hn=pn=null,Ml(e),t)for(e=0;e>>=0,e===0?32:31-($f(e)/Uf|0)|0}var br=64,Ir=4194304;function Vn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Vn(l):(s&=o,s!==0&&(r=Vn(s)))}else o=n&~i,o!==0?r=Vn(o):s!==0&&(r=Vn(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function Hf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Kn),Ql=" ",Yl=!1;function nc(e,t){switch(e){case"keyup":return yp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tn=!1;function wp(e,t){switch(e){case"compositionend":return rc(t);case"keypress":return t.which!==32?null:(Yl=!0,Ql);case"textInput":return e=t.data,e===Ql&&Yl?null:e;default:return null}}function Sp(e,t){if(tn)return e==="compositionend"||!Yo&&nc(e,t)?(e=ec(),Gr=Wo=ct=null,tn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xl(n)}}function lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ac(){for(var e=window,t=si();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=si(e.document)}return t}function Jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Op(e){var t=ac(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lc(n.ownerDocument.documentElement,n)){if(r!==null&&Jo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Zl(n,s);var o=Zl(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nn=null,Gs=null,Yn=null,qs=!1;function ea(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qs||nn==null||nn!==si(r)||(r=nn,"selectionStart"in r&&Jo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yn&&lr(Yn,r)||(Yn=r,r=fi(Gs,"onSelect"),0on||(e.current=ro[on],ro[on]=null,on--)}function _(e,t){on++,ro[on]=e.current,e.current=t}var Nt={},ae=jt(Nt),ve=jt(!1),$t=Nt;function xn(e,t){var n=e.type.contextTypes;if(!n)return Nt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ye(e){return e=e.childContextTypes,e!=null}function hi(){$(ve),$(ae)}function la(e,t,n){if(ae.current!==Nt)throw Error(k(168));_(ae,t),_(ve,n)}function vc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(k(108,jf(e)||"Unknown",i));return W({},n,r)}function mi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Nt,$t=ae.current,_(ae,e),_(ve,ve.current),!0}function aa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=vc(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,$(ve),$(ae),_(ae,e)):$(ve),_(ve,n)}var Ye=null,Ai=!1,xs=!1;function yc(e){Ye===null?Ye=[e]:Ye.push(e)}function Vp(e){Ai=!0,yc(e)}function Ct(){if(!xs&&Ye!==null){xs=!0;var e=0,t=D;try{var n=Ye;for(D=1;e>=o,i-=o,Je=1<<32-Me(t)+i|n<L?(V=j,j=null):V=j.sibling;var b=d(m,j,g[L],y);if(b===null){j===null&&(j=V);break}e&&j&&b.alternate===null&&t(m,j),h=s(b,h,L),C===null?S=b:C.sibling=b,C=b,j=V}if(L===g.length)return n(m,j),A&&Rt(m,L),S;if(j===null){for(;LL?(V=j,j=null):V=j.sibling;var te=d(m,j,b.value,y);if(te===null){j===null&&(j=V);break}e&&j&&te.alternate===null&&t(m,j),h=s(te,h,L),C===null?S=te:C.sibling=te,C=te,j=V}if(b.done)return n(m,j),A&&Rt(m,L),S;if(j===null){for(;!b.done;L++,b=g.next())b=p(m,b.value,y),b!==null&&(h=s(b,h,L),C===null?S=b:C.sibling=b,C=b);return A&&Rt(m,L),S}for(j=r(m,j);!b.done;L++,b=g.next())b=v(j,m,L,b.value,y),b!==null&&(e&&b.alternate!==null&&j.delete(b.key===null?L:b.key),h=s(b,h,L),C===null?S=b:C.sibling=b,C=b);return e&&j.forEach(function(Yt){return t(m,Yt)}),A&&Rt(m,L),S}function N(m,h,g,y){if(typeof g=="object"&&g!==null&&g.type===en&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Or:e:{for(var S=g.key,C=h;C!==null;){if(C.key===S){if(S=g.type,S===en){if(C.tag===7){n(m,C.sibling),h=i(C,g.props.children),h.return=m,m=h;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ot&&da(S)===C.type){n(m,C.sibling),h=i(C,g.props),h.ref=In(m,C,g),h.return=m,m=h;break e}n(m,C);break}else t(m,C);C=C.sibling}g.type===en?(h=_t(g.props.children,m.mode,y,g.key),h.return=m,m=h):(y=ii(g.type,g.key,g.props,null,m.mode,y),y.ref=In(m,h,g),y.return=m,m=y)}return o(m);case Zt:e:{for(C=g.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Fs(g,m.mode,y),h.return=m,m=h}return o(m);case ot:return C=g._init,N(m,h,C(g._payload),y)}if(An(g))return x(m,h,g,y);if(Ln(g))return w(m,h,g,y);Ar(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=Cs(g,m.mode,y),h.return=m,m=h),o(m)):n(m,h)}return N}var Sn=kc(!0),Nc=kc(!1),yi=jt(null),xi=null,un=null,Zo=null;function el(){Zo=un=xi=null}function tl(e){var t=yi.current;$(yi),e._currentValue=t}function oo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function gn(e,t){xi=e,Zo=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ge=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(Zo!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(xi===null)throw Error(k(308));un=e,xi.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var It=null;function nl(e){It===null?It=[e]:It.push(e)}function Ec(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,nl(t)):(n.next=i.next,i.next=n),t.interleaved=n,et(e,r)}function et(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var lt=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,et(e,n)}return i=r.interleaved,i===null?(t.next=t,nl(r)):(t.next=i.next,i.next=t),r.interleaved=t,et(e,n)}function Xr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vo(e,n)}}function fa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wi(e,t,n,r){var i=e.updateQueue;lt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,o===null?s=c:o.next=c,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=c:l.next=c,f.lastBaseUpdate=a))}if(s!==null){var p=i.baseState;o=0,f=c=a=null,l=s;do{var d=l.lane,v=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,w=l;switch(d=t,v=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){p=x.call(v,p,d);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,d=typeof x=="function"?x.call(v,p,d):x,d==null)break e;p=W({},p,d);break e;case 2:lt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else v={eventTime:v,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(c=f=v,a=p):f=f.next=v,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(a=p),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Vt|=o,e.lanes=o,e.memoizedState=p}}function pa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ss.transition;Ss.transition={};try{e(!1),t()}finally{D=n,Ss.transition=r}}function Vc(){return be().memoizedState}function Kp(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Bc(e))Hc(t,n);else if(n=Ec(e,t,n,r),n!==null){var i=de();$e(n,e,r,i),Wc(n,t,r)}}function Qp(e,t,n){var r=xt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bc(e))Hc(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ue(l,o)){var a=t.interleaved;a===null?(i.next=i,nl(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Ec(e,t,i,r),n!==null&&(i=de(),$e(n,e,r,i),Wc(n,t,r))}}function Bc(e){var t=e.alternate;return e===H||t!==null&&t===H}function Hc(e,t){Jn=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vo(e,n)}}var Ni={readContext:Te,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},Yp={readContext:Te,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:ma,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ei(4194308,4,_c.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ei(4194308,4,e,t)},useInsertionEffect:function(e,t){return ei(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Kp.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:ha,useDebugValue:dl,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=ha(!1),t=e[0];return e=Wp.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,i=Ve();if(A){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ee===null)throw Error(k(349));At&30||Lc(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,ma(Rc.bind(null,r,s,e),[e]),r.flags|=2048,mr(9,Oc.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ve(),t=ee.identifierPrefix;if(A){var n=Ge,r=Je;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Be]=t,e[cr]=r,td(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vs(n,r),n){case"dialog":M("cancel",e),M("close",e),i=r;break;case"iframe":case"object":case"embed":M("load",e),i=r;break;case"video":case"audio":for(i=0;iEn&&(t.flags|=128,r=!0,zn(s,!1),t.lanes=4194304)}else{if(!r)if(e=Si(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!A)return oe(t),null}else 2*Q()-s.renderingStartTime>En&&n!==1073741824&&(t.flags|=128,r=!0,zn(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Q(),t.sibling=null,n=B.current,_(B,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return vl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Se&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function nh(e,t){switch(qo(t),t.tag){case 1:return ye(t.type)&&hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(),$(ve),$(ae),ol(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sl(t),null;case 13:if($(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(B),null;case 4:return kn(),null;case 10:return tl(t.type._context),null;case 22:case 23:return vl(),null;case 24:return null;default:return null}}var Br=!1,le=!1,rh=typeof WeakSet=="function"?WeakSet:Set,P=null;function cn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function go(e,t,n){try{n()}catch(r){K(e,t,r)}}var Ca=!1;function ih(e,t){if(Xs=ci,e=ac(),Jo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,c=0,f=0,p=e,d=null;t:for(;;){for(var v;p!==n||i!==0&&p.nodeType!==3||(l=o+i),p!==s||r!==0&&p.nodeType!==3||(a=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(v=p.firstChild)!==null;)d=p,p=v;for(;;){if(p===e)break t;if(d===n&&++c===i&&(l=o),d===s&&++f===r&&(a=o),(v=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zs={focusedElem:e,selectionRange:n},ci=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,N=x.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:ze(t.type,w),N);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(y){K(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return x=Ca,Ca=!1,x}function Gn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&go(t,n,s)}i=i.next}while(i!==r)}}function Hi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function id(e){var t=e.alternate;t!==null&&(e.alternate=null,id(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Be],delete t[cr],delete t[no],delete t[Up],delete t[Ap])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sd(e){return e.tag===5||e.tag===3||e.tag===4}function Fa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pi));else if(r!==4&&(e=e.child,e!==null))for(yo(e,t,n),e=e.sibling;e!==null;)yo(e,t,n),e=e.sibling}function xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xo(e,t,n),e=e.sibling;e!==null;)xo(e,t,n),e=e.sibling}var ne=null,De=!1;function st(e,t,n){for(n=n.child;n!==null;)od(e,t,n),n=n.sibling}function od(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 5:le||cn(n,t);case 6:var r=ne,i=De;ne=null,st(e,t,n),ne=r,De=i,ne!==null&&(De?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(De?(e=ne,n=n.stateNode,e.nodeType===8?ys(e.parentNode,n):e.nodeType===1&&ys(e,n),sr(e)):ys(ne,n.stateNode));break;case 4:r=ne,i=De,ne=n.stateNode.containerInfo,De=!0,st(e,t,n),ne=r,De=i;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&go(n,t,o),i=i.next}while(i!==r)}st(e,t,n);break;case 1:if(!le&&(cn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){K(n,t,l)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,st(e,t,n),le=r):st(e,t,n);break;default:st(e,t,n)}}function Pa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rh),t.forEach(function(r){var i=ph.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oh(r/1960))-r,10e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,Ci=0,z&6)throw Error(k(331));var i=z;for(z|=4,P=e.current;P!==null;){var s=P,o=s.child;if(P.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aQ()-ml?Dt(e,0):hl|=n),xe(e,t)}function hd(e,t){t===0&&(e.mode&1?(t=Ir,Ir<<=1,!(Ir&130023424)&&(Ir=4194304)):t=1);var n=de();e=et(e,t),e!==null&&(kr(e,t,n),xe(e,n))}function fh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hd(e,n)}function ph(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),hd(e,n)}var md;md=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ge=!1,eh(e,t,n);ge=!!(e.flags&131072)}else ge=!1,A&&t.flags&1048576&&xc(t,vi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ti(e,t),e=t.pendingProps;var i=xn(t,ae.current);gn(t,n),i=al(null,t,r,e,i,n);var s=ul();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(s=!0,mi(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rl(t),i.updater=Bi,t.stateNode=i,i._reactInternals=t,ao(t,r,e,n),t=fo(null,t,r,!0,s,n)):(t.tag=0,A&&s&&Go(t),ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ti(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mh(r),e=ze(r,e),i){case 0:t=co(null,t,r,e,n);break e;case 1:t=Na(null,t,r,e,n);break e;case 11:t=Sa(null,t,r,e,n);break e;case 14:t=ka(null,t,r,ze(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),co(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Na(e,t,r,i,n);case 3:e:{if(Xc(t),e===null)throw Error(k(387));r=t.pendingProps,s=t.memoizedState,i=s.element,jc(e,t),wi(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Nn(Error(k(423)),t),t=Ea(e,t,r,n,i);break e}else if(r!==i){i=Nn(Error(k(424)),t),t=Ea(e,t,r,n,i);break e}else for(ke=gt(t.stateNode.containerInfo.firstChild),Ne=t,A=!0,_e=null,n=Nc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===i){t=tt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return Cc(t),e===null&&so(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,eo(r,i)?o=null:s!==null&&eo(r,s)&&(t.flags|=32),qc(e,t),ce(e,t,o,n),t.child;case 6:return e===null&&so(t),null;case 13:return Zc(e,t,n);case 4:return il(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Sa(e,t,r,i,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,_(yi,r._currentValue),r._currentValue=o,s!==null)if(Ue(s.value,o)){if(s.children===i.children&&!ve.current){t=tt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=qe(-1,n&-n),a.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),oo(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(k(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),oo(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,gn(t,n),i=Te(i),r=r(i),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,i=ze(r,t.pendingProps),i=ze(r.type,i),ka(e,t,r,i,n);case 15:return Jc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),ti(e,t),t.tag=1,ye(r)?(e=!0,mi(t)):e=!1,gn(t,n),Kc(t,r,i),ao(t,r,i,n),fo(null,t,r,!0,e,n);case 19:return ed(e,t,n);case 22:return Gc(e,t,n)}throw Error(k(156,t.tag))};function gd(e,t){return Bu(e,t)}function hh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(e,t,n,r){return new hh(e,t,n,r)}function xl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mh(e){if(typeof e=="function")return xl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mo)return 11;if(e===$o)return 14}return 2}function wt(e,t){var n=e.alternate;return n===null?(n=Oe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ii(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")xl(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case en:return _t(n.children,i,s,t);case _o:o=8,i|=8;break;case Ts:return e=Oe(12,n,t,i|2),e.elementType=Ts,e.lanes=s,e;case bs:return e=Oe(13,n,t,i),e.elementType=bs,e.lanes=s,e;case Is:return e=Oe(19,n,t,i),e.elementType=Is,e.lanes=s,e;case Cu:return Ki(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Eu:o=10;break e;case ju:o=9;break e;case Mo:o=11;break e;case $o:o=14;break e;case ot:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Oe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function _t(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function Ki(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=Cu,e.lanes=n,e.stateNode={isHidden:!1},e}function Cs(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function Fs(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gh(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wl(e,t,n,r,i,s,o,l,a){return e=new gh(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Oe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rl(s),e}function vh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wd)}catch(e){console.error(e)}}wd(),wu.exports=je;var kh=wu.exports,Sd,Da=kh;Sd=Da.createRoot,Da.hydrateRoot;/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function kd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Eh(){return Math.random().toString(36).substr(2,8)}function Ma(e,t){return{usr:e.state,key:e.key,idx:t}}function Eo(e,t,n,r){return n===void 0&&(n=null),vr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pn(t):t,{state:n,key:t&&t.key||r||Eh()})}function Li(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Pn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jh(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=ft.Pop,a=null,c=f();c==null&&(c=0,o.replaceState(vr({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function p(){l=ft.Pop;let N=f(),m=N==null?null:N-c;c=N,a&&a({action:l,location:w.location,delta:m})}function d(N,m){l=ft.Push;let h=Eo(w.location,N,m);c=f()+1;let g=Ma(h,c),y=w.createHref(h);try{o.pushState(g,"",y)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(y)}s&&a&&a({action:l,location:w.location,delta:1})}function v(N,m){l=ft.Replace;let h=Eo(w.location,N,m);c=f();let g=Ma(h,c),y=w.createHref(h);o.replaceState(g,"",y),s&&a&&a({action:l,location:w.location,delta:0})}function x(N){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof N=="string"?N:Li(N);return h=h.replace(/ $/,"%20"),J(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let w={get action(){return l},get location(){return e(i,o)},listen(N){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(_a,p),a=N,()=>{i.removeEventListener(_a,p),a=null}},createHref(N){return t(i,N)},createURL:x,encodeLocation(N){let m=x(N);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:v,go(N){return o.go(N)}};return w}var $a;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($a||($a={}));function Ch(e,t,n){return n===void 0&&(n="/"),Fh(e,t,n,!1)}function Fh(e,t,n,r){let i=typeof t=="string"?Pn(t):t,s=El(i.pathname||"/",n);if(s==null)return null;let o=Nd(e);Ph(o);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(J(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=St([r,a.relativePath]),f=n.concat(a);s.children&&s.children.length>0&&(J(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Nd(s.children,t,f,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:zh(c,s.index),routesMeta:f})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of Ed(s.path))i(s,o,a)}),t}function Ed(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Ed(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Ph(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Dh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lh=/^:[\w-]+$/,Oh=3,Rh=2,Th=1,bh=10,Ih=-2,Ua=e=>e==="*";function zh(e,t){let n=e.split("/"),r=n.length;return n.some(Ua)&&(r+=Ih),t&&(r+=Rh),n.filter(i=>!Ua(i)).reduce((i,s)=>i+(Lh.test(s)?Oh:s===""?Th:bh),r)}function Dh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function _h(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l{let{paramName:d,isOptional:v}=f;if(d==="*"){let w=l[p]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=l[p];return v&&!x?c[d]=void 0:c[d]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function Mh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function $h(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function El(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Uh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pn(e):e;return{pathname:n?n.startsWith("/")?n:Ah(n,t):t,search:Hh(r),hash:Wh(i)}}function Ah(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ps(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Vh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jd(e,t){let n=Vh(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Pn(e):(i=vr({},e),J(!i.pathname||!i.pathname.includes("?"),Ps("?","pathname","search",i)),J(!i.pathname||!i.pathname.includes("#"),Ps("#","pathname","hash",i)),J(!i.search||!i.search.includes("#"),Ps("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),p-=1;i.pathname=d.join("/")}l=p>=0?t[p]:"/"}let a=Uh(i,l),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||f)&&(a.pathname+="/"),a}const St=e=>e.join("/").replace(/\/\/+/g,"/"),Bh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Hh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Wh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Kh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fd=["post","put","patch","delete"];new Set(Fd);const Qh=["get",...Fd];new Set(Qh);/** + * React Router v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),E.useCallback(function(c,f){if(f===void 0&&(f={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let p=Cd(c,JSON.parse(o),s,f.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:St([t,p.pathname])),(f.replace?r.replace:r.push)(p,f.state,f)},[t,r,o,s,e])}function Od(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Kt),{matches:i}=E.useContext(Qt),{pathname:s}=Xi(),o=JSON.stringify(jd(i,r.v7_relativeSplatPath));return E.useMemo(()=>Cd(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function qh(e,t){return Xh(e,t)}function Xh(e,t,n,r){Cr()||J(!1);let{navigator:i,static:s}=E.useContext(Kt),{matches:o}=E.useContext(Qt),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let f=Xi(),p;if(t){var d;let m=typeof t=="string"?Pn(t):t;c==="/"||(d=m.pathname)!=null&&d.startsWith(c)||J(!1),p=m}else p=f;let v=p.pathname||"/",x=v;if(c!=="/"){let m=c.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(m.length).join("/")}let w=!s&&n&&n.matches&&n.matches.length>0?n.matches:Ch(e,{pathname:x}),N=rm(w&&w.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:St([c,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:St([c,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n,r);return t&&N?E.createElement(qi.Provider,{value:{location:yr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:ft.Pop}},N):N}function Zh(){let e=lm(),t=Kh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,null)}const em=E.createElement(Zh,null);class tm extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Qt.Provider,{value:this.props.routeContext},E.createElement(Pd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nm(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(jl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Qt.Provider,{value:t},r)}function rm(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=o.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);f>=0||J(!1),o=o.slice(0,Math.min(o.length,f+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,p,d)=>{let v,x=!1,w=null,N=null;n&&(v=l&&p.route.id?l[p.route.id]:void 0,w=p.route.errorElement||em,a&&(c<0&&d===0?(x=!0,N=null):c===d&&(x=!0,N=p.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),h=()=>{let g;return v?g=w:x?g=N:p.route.Component?g=E.createElement(p.route.Component,null):p.route.element?g=p.route.element:g=f,E.createElement(nm,{match:p,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:g})};return n&&(p.route.ErrorBoundary||p.route.errorElement||d===0)?E.createElement(tm,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Rd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Rd||{}),Oi=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Oi||{});function im(e){let t=E.useContext(jl);return t||J(!1),t}function sm(e){let t=E.useContext(Yh);return t||J(!1),t}function om(e){let t=E.useContext(Qt);return t||J(!1),t}function Td(e){let t=om(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function lm(){var e;let t=E.useContext(Pd),n=sm(Oi.UseRouteError),r=Td(Oi.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function am(){let{router:e}=im(Rd.UseNavigateStable),t=Td(Oi.UseNavigateStable),n=E.useRef(!1);return Ld(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,yr({fromRouteId:t},s)))},[e,t])}function um(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Fe(e){J(!1)}function cm(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ft.Pop,navigator:s,static:o=!1,future:l}=e;Cr()&&J(!1);let a=t.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:a,navigator:s,static:o,future:yr({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=Pn(r));let{pathname:f="/",search:p="",hash:d="",state:v=null,key:x="default"}=r,w=E.useMemo(()=>{let N=El(f,a);return N==null?null:{location:{pathname:N,search:p,hash:d,state:v,key:x},navigationType:i}},[a,f,p,d,v,x,i]);return w==null?null:E.createElement(Kt.Provider,{value:c},E.createElement(qi.Provider,{children:n,value:w}))}function dm(e){let{children:t,location:n}=e;return qh(jo(t),n)}new Promise(()=>{});function jo(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let s=[...t,i];if(r.type===E.Fragment){n.push.apply(n,jo(r.props.children,s));return}r.type!==Fe&&J(!1),!r.props.index||!r.props.children||J(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=jo(r.props.children,s)),n.push(o)}),n}/** + * React Router DOM v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function pm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hm(e,t){return e.button===0&&(!t||t==="_self")&&!pm(e)}const mm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gm="6";try{window.__reactRouterVersion=gm}catch{}const vm="startTransition",Va=df[vm];function ym(e){let{basename:t,children:n,future:r,window:i}=e,s=E.useRef();s.current==null&&(s.current=Nh({window:i,v5Compat:!0}));let o=s.current,[l,a]=E.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},f=E.useCallback(p=>{c&&Va?Va(()=>a(p)):a(p)},[a,c]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.useEffect(()=>um(r),[r]),E.createElement(cm,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const xm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,he=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:l,target:a,to:c,preventScrollReset:f,viewTransition:p}=t,d=fm(t,mm),{basename:v}=E.useContext(Kt),x,w=!1;if(typeof c=="string"&&wm.test(c)&&(x=c,xm))try{let g=new URL(window.location.href),y=c.startsWith("//")?new URL(g.protocol+c):new URL(c),S=El(y.pathname,v);y.origin===g.origin&&S!=null?c=S+y.search+y.hash:w=!0}catch{}let N=Jh(c,{relative:i}),m=Sm(c,{replace:o,state:l,target:a,preventScrollReset:f,relative:i,viewTransition:p});function h(g){r&&r(g),g.defaultPrevented||m(g)}return E.createElement("a",Co({},d,{href:x||N,onClick:w||s?r:h,ref:n,target:a}))});var Ba;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ba||(Ba={}));var Ha;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ha||(Ha={}));function Sm(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:l}=t===void 0?{}:t,a=Cl(),c=Xi(),f=Od(e,{relative:o});return E.useCallback(p=>{if(hm(p,n)){p.preventDefault();let d=r!==void 0?r:Li(c)===Li(f);a(e,{replace:d,state:i,preventScrollReset:s,relative:o,viewTransition:l})}},[c,a,f,r,i,n,e,s,o,l])}/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var km={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Nm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),we=(e,t)=>{const n=E.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:a,...c},f)=>E.createElement("svg",{ref:f,...km,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${Nm(e)}`,l].join(" "),...c},[...t.map(([p,d])=>E.createElement(p,d)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Em=we("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jm=we("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Cm=we("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fm=we("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Pm=we("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lm=we("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Om=we("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Rm=we("PenTool",[["path",{d:"m12 19 7-7 3 3-7 7-3-3z",key:"rklqx2"}],["path",{d:"m18 13-1.5-7.5L2 2l3.5 14.5L13 18l5-5z",key:"1et58u"}],["path",{d:"m2 2 7.586 7.586",key:"etlp93"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bd=we("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Tm=we("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const bm=we("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Im=we("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zm=we("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Dm=we("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function _m(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Ka=(e,t,n)=>{e.loadNamespaces(t,Id(e,n))},Qa=(e,t,n,r)=>{Mt(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Id(e,r))},Mm=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const c=t.services.backendConnector.state[`${l}|${a}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(s,e)))},$m=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Fo("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):Mm(e,t,n)},Mt=e=>typeof e=="string",Um=e=>typeof e=="object"&&e!==null,Am=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vm={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Bm=e=>Vm[e],Hm=e=>e.replace(Am,Bm);let Po={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Hm};const Wm=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Po={...Po,...e}},Km=()=>Po;let zd;const Qm=e=>{zd=e},Ym=()=>zd,Jm={type:"3rdParty",init(e){Wm(e.options.react),Qm(e)}},Gm=E.createContext();class qm{constructor(){Fl(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const Xm=(e,t)=>{const n=E.useRef();return E.useEffect(()=>{n.current=e},[e,t]),n.current},Dd=(e,t,n,r)=>e.getFixedT(t,n,r),Zm=(e,t,n,r)=>E.useCallback(Dd(e,t,n,r),[e,t,n,r]),Zi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=E.useContext(Gm)||{},s=n||r||Ym();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new qm),!s){Fo("You will need to pass in an i18next instance by using initReactI18next");const y=(C,j)=>Mt(j)?j:Um(j)&&Mt(j.defaultValue)?j.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[y,{},!1];return S.t=y,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&Fo("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Km(),...s.options.react,...t},{useSuspense:l,keyPrefix:a}=o;let c=i||s.options&&s.options.defaultNS;c=Mt(c)?[c]:c||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(c);const f=(s.isInitialized||s.initializedStoreOnce)&&c.every(y=>$m(y,s,o)),p=Zm(s,t.lng||null,o.nsMode==="fallback"?c:c[0],a),d=()=>p,v=()=>Dd(s,t.lng||null,o.nsMode==="fallback"?c:c[0],a),[x,w]=E.useState(d);let N=c.join();t.lng&&(N=`${t.lng}${N}`);const m=Xm(N),h=E.useRef(!0);E.useEffect(()=>{const{bindI18n:y,bindI18nStore:S}=o;h.current=!0,!f&&!l&&(t.lng?Qa(s,t.lng,c,()=>{h.current&&w(v)}):Ka(s,c,()=>{h.current&&w(v)})),f&&m&&m!==N&&h.current&&w(v);const C=()=>{h.current&&w(v)};return y&&s&&s.on(y,C),S&&s&&s.store.on(S,C),()=>{h.current=!1,y&&s&&y.split(" ").forEach(j=>s.off(j,C)),S&&s&&S.split(" ").forEach(j=>s.store.off(j,C))}},[s,N]),E.useEffect(()=>{h.current&&f&&w(d)},[s,a,f]);const g=[x,s,f];if(g.t=x,g.i18n=s,g.ready=f,f||!f&&!l)return g;throw new Promise(y=>{t.lng?Qa(s,t.lng,c,()=>y()):Ka(s,c,()=>y())})},eg=({onSignIn:e})=>{const{t}=Zi();return u.jsx("header",{className:"sticky top-0 z-50 backdrop-blur-md bg-[#0F0F1A]/80 border-b border-purple-900/20",children:u.jsxs("div",{className:"container mx-auto px-4 py-4 flex justify-between items-center",children:[u.jsxs(he,{to:"/",className:"flex items-center gap-2",children:[u.jsx(bd,{className:"h-8 w-8 text-[#FF2E93]"}),u.jsx("h1",{className:"text-2xl font-bold bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:"VidCraft"})]}),u.jsxs("nav",{className:"hidden md:flex gap-6",children:[u.jsx(he,{to:"/features",className:"hover:text-[#FF2E93] transition-colors duration-300",children:t("nav.features")}),u.jsx(he,{to:"/tutorials",className:"hover:text-[#FF2E93] transition-colors duration-300",children:t("nav.tutorials")})]}),u.jsx("button",{onClick:e,className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity duration-300 px-4 py-2 rounded-full font-medium",children:t("nav.signIn")})]})})},tg=()=>{const e=Cl(),{t}=Zi(),n=()=>{const r=document.getElementById("how-it-works");r?r.scrollIntoView({behavior:"smooth"}):e("/#how-it-works")};return u.jsxs("section",{className:"py-16 md:py-24 relative",children:[u.jsx("div",{className:"absolute -top-10 -right-24 w-64 h-64 bg-[#7E2EFF]/20 rounded-full blur-3xl"}),u.jsx("div",{className:"absolute -bottom-20 -left-20 w-72 h-72 bg-[#FF2E93]/20 rounded-full blur-3xl"}),u.jsxs("div",{className:"relative z-10 flex flex-col md:flex-row items-center gap-8 md:gap-12",children:[u.jsxs("div",{className:"md:w-1/2",children:[u.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight",children:t("hero.title")}),u.jsx("p",{className:"text-lg text-gray-300 mb-8",children:t("hero.description")}),u.jsx("div",{className:"flex flex-wrap gap-4",children:u.jsx("button",{onClick:n,className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity px-6 py-3 rounded-full font-medium",children:t("hero.startCreating")})})]}),u.jsx("div",{className:"md:w-1/2 flex justify-center",children:u.jsxs("div",{className:"relative w-full max-w-md",children:[u.jsx("img",{src:"assets/pexels-photo-4144923.jpeg",alt:"Video editing on smartphone",className:"rounded-lg shadow-2xl transform -rotate-2 hover:rotate-0 transition-transform duration-500 ease-out z-10 relative"}),u.jsx("img",{src:"assets/pexels-photo-3379943.jpeg",alt:"Content creator",className:"absolute -bottom-10 -right-10 w-32 h-32 md:w-40 md:h-40 object-cover rounded-lg shadow-xl transform rotate-6 hover:rotate-0 hover:scale-110 transition-all duration-500 ease-out z-20"}),u.jsx("img",{src:"assets/pexels-photo-3062541.jpeg",alt:"Smartphone with content",className:"absolute -top-8 -left-8 w-28 h-28 md:w-36 md:h-36 object-cover rounded-lg shadow-xl transform -rotate-6 hover:rotate-0 hover:scale-110 transition-all duration-500 ease-out z-0"})]})})]}),u.jsxs("div",{className:"mt-16 flex flex-wrap justify-center gap-6 opacity-70",children:[u.jsx("p",{className:"text-gray-400",children:t("hero.createFor")}),u.jsx("span",{className:"font-semibold",children:"YouTube"}),u.jsx("span",{className:"font-semibold",children:"TikTok"}),u.jsx("span",{className:"font-semibold",children:"Instagram"}),u.jsx("span",{className:"font-semibold",children:"Snapchat"}),u.jsx("span",{className:"font-semibold",children:"Facebook"}),u.jsx("span",{className:"font-semibold",children:"Twitter"})]})]})};function ng(e){if(!e)return null;try{const n=new URL(e).hostname.toLowerCase();return n.includes("youtube.com")||n.includes("youtu.be")?"YouTube":n.includes("tiktok.com")?"TikTok":n.includes("instagram.com")?"Instagram":n.includes("facebook.com")||n.includes("fb.com")?"Facebook":n.includes("twitter.com")||n.includes("x.com")?"Twitter":n.includes("vimeo.com")?"Vimeo":n.includes("snapchat.com")?"Snapchat":n.includes("twitch.tv")?"Twitch":null}catch{return null}}function rg(e){return e?`Start creating with your ${e} video`:"Enter a valid video link"}const ig=({onSubmit:e})=>{const[t,n]=E.useState(""),[r,i]=E.useState(null),[s,o]=E.useState(!1);E.useEffect(()=>{const a=ng(t);i(a),o(!!a)},[t]);const l=a=>{a.preventDefault(),s&&e(r)};return u.jsxs("section",{id:"how-it-works",className:"py-16 relative",children:[u.jsx("div",{className:"absolute top-1/2 left-1/4 w-64 h-64 bg-[#7E2EFF]/10 rounded-full blur-3xl -z-10"}),u.jsxs("div",{className:"text-center mb-10",children:[u.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Start Your Creation Journey"}),u.jsx("p",{className:"text-gray-300 max-w-2xl mx-auto",children:"Paste a link to your video from any popular platform, and we'll help you transform it into something amazing with our powerful editor."})]}),u.jsx("div",{className:"max-w-3xl mx-auto bg-[#1E1E32] p-8 rounded-2xl border border-purple-900/30 shadow-xl",children:u.jsxs("form",{onSubmit:l,className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx("label",{htmlFor:"video-link",className:"block text-sm font-medium text-gray-300 mb-2",children:"Paste your video link here"}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:u.jsx(Lm,{className:"h-5 w-5 text-gray-400"})}),u.jsx("input",{type:"url",id:"video-link",placeholder:"https://www.youtube.com/watch?v=...",value:t,onChange:a=>n(a.target.value),className:"block w-full pl-10 pr-12 py-3 bg-[#0F0F1A] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-purple-500"})]})]}),u.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center justify-between",children:[u.jsx("p",{className:`text-sm ${r?"text-[#FF2E93]":"text-gray-400"} font-medium transition-colors duration-300`,children:rg(r)}),u.jsx("button",{type:"submit",disabled:!s,className:`px-6 py-3 rounded-full font-medium transition-all duration-300 ${s?"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90":"bg-gray-700 cursor-not-allowed opacity-50"}`,children:"Start Creating"})]})]})}),u.jsx("div",{className:"mt-6 text-center text-sm text-gray-500",children:"Supports YouTube, TikTok, Instagram, Facebook, Twitter, and more"})]})},sg=({icon:e,title:t,description:n})=>u.jsxs("div",{className:"bg-[#1E1E32]/70 hover:bg-[#1E1E32] transition-colors duration-300 border border-purple-900/20 rounded-xl p-6 group",children:[u.jsx("div",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] w-12 h-12 rounded-lg flex items-center justify-center mb-4 transform group-hover:scale-110 transition-transform duration-300",children:e}),u.jsx("h3",{className:"text-xl font-bold mb-2",children:t}),u.jsx("p",{className:"text-gray-400",children:n})]}),_d=()=>{const e=Cl(),{t}=Zi(),n=[{icon:u.jsx(Rm,{className:"w-6 h-6 text-white"}),title:t("features.effects"),description:t("features.effectsDesc")},{icon:u.jsx(Fm,{className:"w-6 h-6 text-white"}),title:t("features.overlays"),description:t("features.overlaysDesc")},{icon:u.jsx(bm,{className:"w-6 h-6 text-white"}),title:t("features.subtitles"),description:t("features.subtitlesDesc")},{icon:u.jsx(Om,{className:"w-6 h-6 text-white"}),title:t("features.music"),description:t("features.musicDesc")},{icon:u.jsx(Im,{className:"w-6 h-6 text-white"}),title:t("features.format"),description:t("features.formatDesc")},{icon:u.jsx(Cm,{className:"w-6 h-6 text-white"}),title:t("features.export"),description:t("features.exportDesc")},{icon:u.jsx(Pm,{className:"w-6 h-6 text-white"}),title:t("features.mashups"),description:t("features.mashupsDesc")},{icon:u.jsx(Dm,{className:"w-6 h-6 text-white"}),title:t("features.processing"),description:t("features.processingDesc")}],r=()=>{const i=document.getElementById("how-it-works");i?i.scrollIntoView({behavior:"smooth"}):e("/#how-it-works")};return u.jsxs("section",{id:"features",className:"py-16 md:py-24 relative",children:[u.jsx("div",{className:"absolute top-1/3 right-1/4 w-80 h-80 bg-[#FF2E93]/10 rounded-full blur-3xl -z-10"}),u.jsxs("div",{className:"text-center mb-16",children:[u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:t("features.title")}),u.jsx("p",{className:"text-gray-300 max-w-2xl mx-auto",children:t("features.description")})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:n.map((i,s)=>u.jsx(sg,{icon:i.icon,title:i.title,description:i.description},s))}),u.jsx("div",{className:"mt-16 relative overflow-hidden rounded-2xl",children:u.jsxs("div",{className:"relative aspect-video",children:[u.jsx("img",{src:"assets/pexels-photo-2608517.jpeg",alt:"Content creators filming",className:"w-full h-full object-cover rounded-2xl transform hover:scale-105 transition-transform duration-700"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0F0F1A] via-transparent to-transparent"}),u.jsxs("div",{className:"absolute bottom-0 left-0 p-6 md:p-10",children:[u.jsx("h3",{className:"text-2xl md:text-3xl font-bold mb-2",children:t("features.createWithoutLimits")}),u.jsx("p",{className:"text-gray-300 max-w-md mb-4",children:t("features.createWithoutLimitsDesc")}),u.jsx("button",{onClick:r,className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity px-6 py-3 rounded-full font-medium",children:t("hero.startCreating")})]})]})}),u.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-2 gap-8",children:[u.jsxs("div",{className:"bg-[#1E1E32]/70 border border-purple-900/20 rounded-xl p-8",children:[u.jsx("h3",{className:"text-2xl font-bold mb-4",children:t("features.formatVersatility")}),u.jsx("p",{className:"text-gray-400 mb-6",children:t("features.formatVersatilityDesc")}),u.jsxs("ul",{className:"space-y-3",children:[u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.verticalVideos")})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.horizontalVideos")})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.squareFormat")})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.customAspectRatios")})]})]})]}),u.jsxs("div",{className:"bg-[#1E1E32]/70 border border-purple-900/20 rounded-xl p-8",children:[u.jsx("h3",{className:"text-2xl font-bold mb-4",children:t("features.highQualityOutput")}),u.jsx("p",{className:"text-gray-400 mb-6",children:t("features.highQualityOutputDesc")}),u.jsxs("ul",{className:"space-y-3",children:[u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.fullHD")})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.resolution4K")})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.optimizedFiles")})]}),u.jsxs("li",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full"}),u.jsx("span",{children:t("features.multipleFormats")})]})]})]})]})]})};function og(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}const lg=({platform:e,onClose:t})=>{const[n,r]=E.useState("login"),[i,s]=E.useState(""),[o,l]=E.useState(""),[a,c]=E.useState(""),[f,p]=E.useState(!1),[d,v]=E.useState(!1),x=m=>{m.preventDefault(),p(!0)},w=m=>{const h=m.target.value;c(h),v(og(h))},N=m=>{m.target===m.currentTarget&&t()};return u.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:N,children:u.jsxs("div",{className:"bg-[#1E1E32] rounded-2xl border border-purple-900/30 shadow-2xl w-full max-w-md overflow-hidden",onClick:m=>m.stopPropagation(),children:[u.jsxs("div",{className:"flex justify-between items-center p-5 border-b border-purple-900/30",children:[u.jsx("h3",{className:"text-xl font-bold",children:n==="login"?"Sign in to continue":"Request access"}),u.jsx("button",{onClick:t,className:"text-gray-400 hover:text-white transition-colors",children:u.jsx(zm,{className:"w-5 h-5"})})]}),u.jsx("div",{className:"p-6",children:n==="login"?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"mb-6",children:u.jsx("p",{className:"text-gray-300",children:e?`You're about to start creating with your ${e} video`:"You're about to start creating your video"})}),u.jsxs("form",{onSubmit:x,className:"space-y-5",children:[u.jsxs("div",{children:[u.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-300 mb-1",children:"Email"}),u.jsx("input",{type:"email",id:"email",value:i,onChange:m=>s(m.target.value),className:"block w-full px-4 py-3 bg-[#0F0F1A] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-purple-500",placeholder:"your@email.com",required:!0})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-300 mb-1",children:"Password"}),u.jsx("input",{type:"password",id:"password",value:o,onChange:m=>l(m.target.value),className:"block w-full px-4 py-3 bg-[#0F0F1A] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-purple-500",placeholder:"••••••••",required:!0})]}),f&&u.jsxs("div",{className:"bg-red-900/30 border border-red-500/30 rounded-lg p-3 flex items-start gap-3",children:[u.jsx(Em,{className:"w-5 h-5 text-red-400 flex-shrink-0 mt-0.5"}),u.jsx("p",{className:"text-sm text-red-200",children:"Error: User not found. Request access if you don't have an account yet."})]}),u.jsx("div",{children:u.jsx("button",{type:"submit",className:"w-full py-3 rounded-lg font-medium bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity",children:"Sign In"})}),u.jsx("div",{className:"text-center",children:u.jsx("button",{type:"button",onClick:()=>r("request"),className:"text-sm text-purple-400 hover:text-purple-300 transition-colors",children:"Don't have an account? Request access"})})]})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"mb-6",children:u.jsx("p",{className:"text-gray-300",children:"Enter your email to request access to VidCraft."})}),u.jsxs("div",{className:"space-y-5",children:[u.jsxs("div",{children:[u.jsx("label",{htmlFor:"request-email",className:"block text-sm font-medium text-gray-300 mb-1",children:"Email"}),u.jsx("input",{type:"email",id:"request-email",value:a,onChange:w,className:"block w-full px-4 py-3 bg-[#0F0F1A] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-purple-500",placeholder:"your@email.com"})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("button",{type:"button",onClick:()=>r("login"),className:"text-sm text-purple-400 hover:text-purple-300 transition-colors",children:"Back to sign in"}),u.jsxs("button",{type:"button",disabled:!d,className:`px-6 py-2 rounded-full font-medium flex items-center gap-2 ${d?"bg-gray-600 cursor-not-allowed":"bg-gray-700 cursor-not-allowed opacity-50"}`,title:d?"Address not found in database, request a new invitation from the user who sent you the link":"Please enter a valid email",children:["Request ",u.jsx(jm,{className:"w-4 h-4"})]})]}),d&&u.jsx("div",{className:"bg-gray-800/50 border border-gray-700 rounded-lg p-3 mt-4",children:u.jsx("p",{className:"text-sm text-gray-300",children:"Address not found in database. Please request a new invitation from the user who shared the link with you."})})]})]})})]})})},ag=()=>u.jsx("footer",{className:"bg-[#0A0A14] border-t border-purple-900/20 py-12 mt-16",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center md:items-start mb-8",children:[u.jsxs("div",{className:"mb-8 md:mb-0",children:[u.jsxs(he,{to:"/",className:"flex items-center gap-2 mb-4",children:[u.jsx(bd,{className:"h-6 w-6 text-[#FF2E93]"}),u.jsx("h2",{className:"text-xl font-bold bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:"VidCraft"})]}),u.jsx("p",{className:"text-gray-400 max-w-xs text-center md:text-left",children:"The ultimate video editing platform for creators who want to stand out on social media."})]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-8",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Product"}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx(he,{to:"/features",className:"text-gray-400 hover:text-white transition-colors",children:"Features"})}),u.jsx("li",{children:u.jsx(he,{to:"/tutorials",className:"text-gray-400 hover:text-white transition-colors",children:"Tutorials"})}),u.jsx("li",{children:u.jsx(he,{to:"/updates",className:"text-gray-400 hover:text-white transition-colors",children:"Updates"})})]})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Company"}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx(he,{to:"/about",className:"text-gray-400 hover:text-white transition-colors",children:"About"})}),u.jsx("li",{children:u.jsx(he,{to:"/blog",className:"text-gray-400 hover:text-white transition-colors",children:"Blog"})}),u.jsx("li",{children:u.jsx(he,{to:"/careers",className:"text-gray-400 hover:text-white transition-colors",children:"Careers"})}),u.jsx("li",{children:u.jsx(he,{to:"/contact",className:"text-gray-400 hover:text-white transition-colors",children:"Contact"})})]})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Support"}),u.jsxs("ul",{className:"space-y-3",children:[u.jsx("li",{children:u.jsx(he,{to:"/help",className:"text-gray-400 hover:text-white transition-colors",children:"Help Center"})}),u.jsx("li",{children:u.jsx(he,{to:"/community",className:"text-gray-400 hover:text-white transition-colors",children:"Community"})}),u.jsx("li",{children:u.jsx(he,{to:"/feedback",className:"text-gray-400 hover:text-white transition-colors",children:"Feedback"})})]})]})]})]}),u.jsx("div",{className:"pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center",children:u.jsx("p",{className:"text-gray-500 text-sm",children:"© 2025 VidCraft. All rights reserved."})})]})}),ug=()=>u.jsxs("main",{className:"container mx-auto px-4 py-16",children:[u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["Powerful Features for",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" Creative Minds"})]}),u.jsx("p",{className:"text-xl text-gray-300 mb-12",children:"Discover all the tools you need to create stunning videos that capture attention and drive engagement."})]}),u.jsx(_d,{})]}),cg=({title:e,description:t,image:n,duration:r})=>u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl overflow-hidden group",children:[u.jsxs("div",{className:"relative aspect-video overflow-hidden",children:[u.jsx("img",{src:n,alt:e,className:"w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-500"}),u.jsx("div",{className:"absolute bottom-2 right-2 bg-black/70 px-2 py-1 rounded text-sm",children:r})]}),u.jsxs("div",{className:"p-6",children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:e}),u.jsx("p",{className:"text-gray-400",children:t})]})]}),dg=()=>{const e=[{title:"Getting Started with VidCraft",description:"Learn the basics of video editing with our powerful tools",image:"https://images.pexels.com/photos/2773498/pexels-photo-2773498.jpeg",duration:"5:30"},{title:"Advanced Effects & Transitions",description:"Master professional transitions and effects",image:"https://images.pexels.com/photos/2544829/pexels-photo-2544829.jpeg",duration:"12:45"},{title:"Creating Viral Content",description:"Tips and tricks for engaging social media videos",image:"https://images.pexels.com/photos/2773498/pexels-photo-2773498.jpeg",duration:"8:15"}];return u.jsxs("main",{className:"container mx-auto px-4 py-16",children:[u.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["Learn & Master",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" VidCraft"})]}),u.jsx("p",{className:"text-xl text-gray-300",children:"Explore our comprehensive tutorials and become a video editing pro"})]}),u.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:e.map((t,n)=>u.jsx(cg,{...t},n))})]})},fg=({version:e,date:t,features:n})=>u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6 border border-purple-900/20",children:[u.jsxs("div",{className:"flex justify-between items-start mb-4",children:[u.jsxs("div",{children:[u.jsxs("h3",{className:"text-xl font-bold",children:["Version ",e]}),u.jsx("p",{className:"text-gray-400",children:t})]}),u.jsx("span",{className:"bg-[#FF2E93]/20 text-[#FF2E93] px-3 py-1 rounded-full text-sm",children:"New"})]}),u.jsx("ul",{className:"space-y-3",children:n.map((r,i)=>u.jsxs("li",{className:"flex items-start gap-2",children:[u.jsx("span",{className:"w-2 h-2 bg-[#FF2E93] rounded-full mt-2"}),u.jsx("span",{className:"text-gray-300",children:r})]},i))})]}),pg=()=>{const e=[{version:"2.1.0",date:"March 15, 2025",features:["New AI-powered auto-subtitles feature","Improved rendering speed by 50%","Added 20 new transition effects","Enhanced color grading tools"]},{version:"2.0.0",date:"February 28, 2025",features:["Complete UI redesign for better usability","New collaboration features for teams","Real-time preview rendering","Extended music library with 1000+ tracks"]}];return u.jsxs("main",{className:"container mx-auto px-4 py-16",children:[u.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["What's New in",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" VidCraft"})]}),u.jsx("p",{className:"text-xl text-gray-300",children:"Stay up to date with the latest features and improvements"})]}),u.jsx("div",{className:"space-y-8 max-w-3xl mx-auto",children:e.map((t,n)=>u.jsx(fg,{...t},n))})]})},hg=()=>u.jsx("main",{className:"container mx-auto px-4 py-16",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["About",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" VidCraft"})]}),u.jsxs("div",{className:"prose prose-invert max-w-none",children:[u.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"VidCraft was born from a simple idea: make professional video editing accessible to everyone. We believe that great stories deserve great tools to tell them."}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-8 mb-12",children:[u.jsxs("div",{className:"bg-[#1E1E32] p-6 rounded-xl",children:[u.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Our Mission"}),u.jsx("p",{className:"text-gray-300",children:"To empower creators with professional-grade video editing tools that are both powerful and easy to use."})]}),u.jsxs("div",{className:"bg-[#1E1E32] p-6 rounded-xl",children:[u.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Our Vision"}),u.jsx("p",{className:"text-gray-300",children:"To become the go-to platform for content creators worldwide, making professional video editing accessible to all."})]})]}),u.jsxs("div",{className:"mb-12",children:[u.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Our Story"}),u.jsx("p",{className:"text-gray-300 mb-4",children:"Founded in 2024 by a team of passionate creators and developers, VidCraft has grown from a simple editing tool to a comprehensive platform used by millions of content creators worldwide."}),u.jsx("p",{className:"text-gray-300",children:"We understand the challenges of creating engaging content for social media, which is why we've built a platform that combines powerful features with an intuitive interface."})]}),u.jsxs("div",{className:"bg-[#1E1E32] p-8 rounded-xl mb-12",children:[u.jsx("h2",{className:"text-3xl font-bold mb-6",children:"Our Values"}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Innovation"}),u.jsx("p",{className:"text-gray-300",children:"Constantly pushing the boundaries of what's possible in online video editing."})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Accessibility"}),u.jsx("p",{className:"text-gray-300",children:"Making professional tools available to creators of all skill levels."})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Community"}),u.jsx("p",{className:"text-gray-300",children:"Building and supporting a thriving community of creators."})]})]})]})]})]})}),mg=({title:e,excerpt:t,image:n,date:r,author:i,category:s})=>u.jsxs("article",{className:"bg-[#1E1E32] rounded-xl overflow-hidden group",children:[u.jsx("div",{className:"aspect-video overflow-hidden",children:u.jsx("img",{src:n,alt:e,className:"w-full h-full object-cover transform group-hover:scale-105 transition-transform duration-500"})}),u.jsxs("div",{className:"p-6",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[u.jsx("span",{className:"text-sm text-gray-400",children:r}),u.jsx("span",{className:"bg-[#FF2E93]/20 text-[#FF2E93] px-3 py-1 rounded-full text-sm",children:s})]}),u.jsx("h2",{className:"text-2xl font-bold mb-3",children:e}),u.jsx("p",{className:"text-gray-300 mb-4",children:t}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-gray-400",children:["By ",i]}),u.jsx("button",{className:"text-[#FF2E93] hover:text-[#7E2EFF] transition-colors",children:"Read More →"})]})]})]}),gg=()=>{const e=[{title:"10 Tips for Creating Viral TikTok Videos",excerpt:"Learn the secrets behind videos that get millions of views on TikTok...",image:"https://images.pexels.com/photos/2773498/pexels-photo-2773498.jpeg",date:"March 15, 2025",author:"Sarah Johnson",category:"Tips & Tricks"},{title:"The Future of Video Editing: AI and Automation",excerpt:"Discover how artificial intelligence is revolutionizing video editing...",image:"https://images.pexels.com/photos/2544829/pexels-photo-2544829.jpeg",date:"March 12, 2025",author:"Mike Chen",category:"Technology"},{title:"Making Money as a Content Creator in 2025",excerpt:"A comprehensive guide to monetizing your video content...",image:"assets/pexels-photo-3062541.jpeg",date:"March 10, 2025",author:"Alex Rivera",category:"Business"}];return u.jsxs("main",{className:"container mx-auto px-4 py-16",children:[u.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["VidCraft",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" Blog"})]}),u.jsx("p",{className:"text-xl text-gray-300",children:"Tips, tutorials, and insights for content creators"})]}),u.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map((t,n)=>u.jsx(mg,{...t},n))})]})},vg=({title:e,department:t,location:n,type:r})=>u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6 border border-purple-900/20 hover:border-[#FF2E93] transition-colors",children:[u.jsxs("div",{className:"flex justify-between items-start mb-4",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:e}),u.jsx("p",{className:"text-gray-400",children:t})]}),u.jsx("span",{className:"bg-[#FF2E93]/20 text-[#FF2E93] px-3 py-1 rounded-full text-sm",children:r})]}),u.jsx("div",{className:"flex items-center gap-4 mb-6",children:u.jsx("span",{className:"text-gray-300",children:n})}),u.jsx("button",{className:"text-[#FF2E93] hover:text-[#7E2EFF] transition-colors font-medium",children:"View Position →"})]}),yg=()=>{const e=[{title:"Senior Frontend Developer",department:"Engineering",location:"Remote",type:"Full-time"},{title:"Product Designer",department:"Design",location:"New York, USA",type:"Full-time"},{title:"Content Marketing Manager",department:"Marketing",location:"Remote",type:"Full-time"}];return u.jsx("main",{className:"container mx-auto px-4 py-16",children:u.jsxs("div",{className:"max-w-4xl mx-auto mb-16",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["Join the",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" VidCraft"}),"Team"]}),u.jsx("p",{className:"text-xl text-gray-300 mb-8",children:"Help us revolutionize video creation for the next generation of content creators"}),u.jsxs("div",{className:"bg-[#1E1E32] p-8 rounded-xl mb-16",children:[u.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Why VidCraft?"}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Impact"}),u.jsx("p",{className:"text-gray-300",children:"Shape the future of content creation and help millions of creators worldwide."})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Growth"}),u.jsx("p",{className:"text-gray-300",children:"Continuous learning opportunities and career development support."})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:"Benefits"}),u.jsx("p",{className:"text-gray-300",children:"Competitive salary, equity, health insurance, and flexible work options."})]})]})]}),u.jsx("h2",{className:"text-3xl font-bold mb-8",children:"Open Positions"}),u.jsx("div",{className:"space-y-6",children:e.map((t,n)=>u.jsx(vg,{...t},n))})]})})},xg=()=>{const t=`support@${window.location.hostname}`;return u.jsx("main",{className:"container mx-auto px-4 py-16",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["Get in",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" Touch"})]}),u.jsx("p",{className:"text-xl text-gray-300 mb-12",children:"Have questions? We're here to help you create amazing videos."}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[u.jsx("div",{children:u.jsxs("form",{className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-300 mb-1",children:"Name"}),u.jsx("input",{type:"text",id:"name",className:"block w-full px-4 py-3 bg-[#1E1E32] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#FF2E93]",placeholder:"Your name"})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-300 mb-1",children:"Email"}),u.jsx("input",{type:"email",id:"email",className:"block w-full px-4 py-3 bg-[#1E1E32] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#FF2E93]",placeholder:"your@email.com"})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"subject",className:"block text-sm font-medium text-gray-300 mb-1",children:"Subject"}),u.jsx("input",{type:"text",id:"subject",className:"block w-full px-4 py-3 bg-[#1E1E32] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#FF2E93]",placeholder:"How can we help?"})]}),u.jsxs("div",{children:[u.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-gray-300 mb-1",children:"Message"}),u.jsx("textarea",{id:"message",rows:6,className:"block w-full px-4 py-3 bg-[#1E1E32] border border-purple-900/30 rounded-lg text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#FF2E93]",placeholder:"Your message..."})]}),u.jsx("button",{type:"submit",className:"w-full py-3 rounded-lg font-medium bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity",children:"Send Message"})]})}),u.jsxs("div",{children:[u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6 mb-6",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Office"}),u.jsxs("p",{className:"text-gray-300",children:["123 Creator Street",u.jsx("br",{}),"New York, NY 10001",u.jsx("br",{}),"United States"]})]}),u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6 mb-6",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Contact Info"}),u.jsxs("p",{className:"text-gray-300",children:["Email: ",t,u.jsx("br",{}),"Phone: +1 (555) 123-4567"]})]}),u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6",children:[u.jsx("h2",{className:"text-xl font-bold mb-4",children:"Business Hours"}),u.jsxs("p",{className:"text-gray-300",children:["Monday - Friday: 9:00 AM - 6:00 PM EST",u.jsx("br",{}),"Saturday - Sunday: Closed"]})]})]})]})]})})},wg=({question:e,answer:t})=>u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6 border border-purple-900/20",children:[u.jsx("h3",{className:"text-lg font-bold mb-3",children:e}),u.jsx("p",{className:"text-gray-300",children:t})]}),Sg=()=>{const e=[{question:"How do I start editing my first video?",answer:"Simply paste your video link in the editor, choose your desired format, and start adding effects, transitions, and other elements to create your masterpiece."},{question:"What video formats are supported?",answer:"We support all major video formats including MP4, MOV, AVI, and more. You can also import directly from popular social media platforms."},{question:"Can I collaborate with other creators?",answer:"Yes! Our Pro plan includes team collaboration features that allow you to work together on projects in real-time."}];return u.jsx("main",{className:"container mx-auto px-4 py-16",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["How can we",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" help?"})]}),u.jsxs("div",{className:"relative mb-12",children:[u.jsx("input",{type:"text",placeholder:"Search for help...",className:"w-full px-12 py-4 bg-[#1E1E32] border border-purple-900/30 rounded-xl text-white placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-[#FF2E93]"}),u.jsx(Tm,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400 w-5 h-5"})]}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-12",children:[u.jsxs("div",{className:"bg-[#1E1E32] p-6 rounded-xl text-center",children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"Getting Started"}),u.jsx("p",{className:"text-gray-300",children:"New to VidCraft? Start here"})]}),u.jsxs("div",{className:"bg-[#1E1E32] p-6 rounded-xl text-center",children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"Video Tutorials"}),u.jsx("p",{className:"text-gray-300",children:"Learn from our guides"})]}),u.jsxs("div",{className:"bg-[#1E1E32] p-6 rounded-xl text-center",children:[u.jsx("h2",{className:"text-xl font-bold mb-2",children:"Community"}),u.jsx("p",{className:"text-gray-300",children:"Join the discussion"})]})]}),u.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Frequently Asked Questions"}),u.jsx("div",{className:"space-y-6",children:e.map((t,n)=>u.jsx(wg,{...t},n))})]})})},kg=({title:e,author:t,avatar:n,content:r,likes:i,comments:s})=>u.jsxs("div",{className:"bg-[#1E1E32] rounded-xl p-6 border border-purple-900/20",children:[u.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[u.jsx("img",{src:n,alt:t,className:"w-10 h-10 rounded-full"}),u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold",children:t}),u.jsx("p",{className:"text-sm text-gray-400",children:"Creator"})]})]}),u.jsx("h2",{className:"text-xl font-bold mb-3",children:e}),u.jsx("p",{className:"text-gray-300 mb-4",children:r}),u.jsxs("div",{className:"flex items-center gap-4 text-gray-400",children:[u.jsxs("span",{children:[i," likes"]}),u.jsxs("span",{children:[s," comments"]})]})]}),Ng=()=>{const e=[{title:"How I got 1M views on TikTok using VidCraft",author:"Sarah Chen",avatar:"https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg",content:"I wanted to share my experience using the new transition effects...",likes:234,comments:56},{title:"Best settings for YouTube Shorts",author:"Mike Johnson",avatar:"https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg",content:"After testing different export settings, I found the perfect combination...",likes:189,comments:42},{title:"Tutorial: Creating smooth transitions",author:"Alex Rivera",avatar:"https://images.pexels.com/photos/1222271/pexels-photo-1222271.jpeg",content:"In this tutorial, I'll show you how to create seamless transitions...",likes:312,comments:78}];return u.jsx("main",{className:"container mx-auto px-4 py-16",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["VidCraft",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" Community"})]}),u.jsx("p",{className:"text-xl text-gray-300 mb-12",children:"Connect with fellow creators, share your work, and learn from others"}),u.jsxs("div",{className:"flex gap-4 mb-8",children:[u.jsx("button",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity px-6 py-3 rounded-full font-medium",children:"Create Post"}),u.jsx("button",{className:"border border-purple-500 hover:bg-purple-500/20 transition-colors px-6 py-3 rounded-full font-medium",children:"Browse Categories"})]}),u.jsx("div",{className:"space-y-6",children:e.map((t,n)=>u.jsx(kg,{...t},n))})]})})},Eg=({title:e,description:t,votes:n,status:r})=>u.jsx("div",{className:"bg-[#1E1E32] rounded-xl p-6 border border-purple-900/20",children:u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsxs("div",{className:"bg-[#FF2E93]/10 px-4 py-2 rounded-lg text-center",children:[u.jsx("div",{className:"text-[#FF2E93] font-bold text-xl",children:n}),u.jsx("div",{className:"text-sm text-gray-400",children:"votes"})]}),u.jsxs("div",{children:[u.jsx("h3",{className:"text-xl font-bold mb-2",children:e}),u.jsx("p",{className:"text-gray-300 mb-4",children:t}),u.jsx("span",{className:`px-3 py-1 rounded-full text-sm ${r==="Planned"?"bg-blue-500/20 text-blue-400":r==="In Progress"?"bg-yellow-500/20 text-yellow-400":"bg-green-500/20 text-green-400"}`,children:r})]})]})}),jg=()=>{const e=[{title:"Add more transition effects",description:"Would love to see more creative transition effects for videos",votes:156,status:"Planned"},{title:"Collaborative editing features",description:"Enable multiple users to work on the same project simultaneously",votes:243,status:"In Progress"},{title:"Export directly to social media",description:"Add ability to export videos directly to various platforms",votes:189,status:"Completed"}];return u.jsx("main",{className:"container mx-auto px-4 py-16",children:u.jsxs("div",{className:"max-w-4xl mx-auto",children:[u.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-6",children:["Feature",u.jsx("span",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] text-transparent bg-clip-text",children:" Requests"})]}),u.jsx("p",{className:"text-xl text-gray-300 mb-12",children:"Help shape the future of VidCraft by sharing your ideas and voting on features"}),u.jsxs("div",{className:"flex gap-4 mb-8",children:[u.jsx("button",{className:"bg-gradient-to-r from-[#FF2E93] to-[#7E2EFF] hover:opacity-90 transition-opacity px-6 py-3 rounded-full font-medium",children:"Submit Idea"}),u.jsx("button",{className:"border border-purple-500 hover:bg-purple-500/20 transition-colors px-6 py-3 rounded-full font-medium",children:"View Roadmap"})]}),u.jsx("div",{className:"space-y-6",children:e.map((t,n)=>u.jsx(Eg,{...t},n))})]})})},Cg=()=>{const{t:e,i18n:t}=Zi(),[n,r]=E.useState(!1),i=[{code:"en",name:"English"},{code:"ru",name:"Русский"},{code:"de",name:"Deutsch"},{code:"hi",name:"हिन्दी"}],s=o=>{t.changeLanguage(o),r(!1)};return u.jsxs("div",{className:"fixed right-4 top-1/2 transform -translate-y-1/2 z-50",children:[u.jsxs("button",{onClick:()=>r(!n),className:"flex items-center gap-2 bg-[#1E1E32] px-4 py-2 rounded-lg shadow-lg hover:bg-[#2A2A42] transition-colors",children:[u.jsx("span",{className:"text-2xl",children:"🌍"}),u.jsx("span",{className:"hidden md:inline",children:e("language.select")})]}),n&&u.jsx("div",{className:"absolute right-0 mt-2 w-48 bg-[#1E1E32] rounded-lg shadow-xl border border-purple-900/20",children:i.map(o=>u.jsx("button",{onClick:()=>s(o.code),className:"block w-full text-left px-4 py-2 hover:bg-[#2A2A42] transition-colors first:rounded-t-lg last:rounded-b-lg",children:o.name},o.code))})]})};function Fg(){const[e,t]=E.useState(!1),[n,r]=E.useState(null),i=s=>{r(s),t(!0)};return u.jsx(ym,{children:u.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-[#0F0F1A] to-[#1A1A2E] text-white",children:[u.jsx(eg,{onSignIn:()=>t(!0)}),u.jsx(Cg,{}),u.jsxs(dm,{children:[u.jsx(Fe,{path:"/",element:u.jsxs("main",{className:"container mx-auto px-4 overflow-hidden",children:[u.jsx(tg,{}),u.jsx(ig,{onSubmit:i}),u.jsx(_d,{})]})}),u.jsx(Fe,{path:"/features",element:u.jsx(ug,{})}),u.jsx(Fe,{path:"/tutorials",element:u.jsx(dg,{})}),u.jsx(Fe,{path:"/updates",element:u.jsx(pg,{})}),u.jsx(Fe,{path:"/about",element:u.jsx(hg,{})}),u.jsx(Fe,{path:"/blog",element:u.jsx(gg,{})}),u.jsx(Fe,{path:"/careers",element:u.jsx(yg,{})}),u.jsx(Fe,{path:"/contact",element:u.jsx(xg,{})}),u.jsx(Fe,{path:"/help",element:u.jsx(Sg,{})}),u.jsx(Fe,{path:"/community",element:u.jsx(Ng,{})}),u.jsx(Fe,{path:"/feedback",element:u.jsx(jg,{})})]}),u.jsx(ag,{}),e&&u.jsx(lg,{platform:n,onClose:()=>t(!1)})]})})}const R=e=>typeof e=="string",_n=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},Ya=e=>e==null?"":""+e,Pg=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Lg=/###/g,Ja=e=>e&&e.indexOf("###")>-1?e.replace(Lg,"."):e,Ga=e=>!e||R(e),Zn=(e,t,n)=>{const r=R(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:i}=Zn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),l=Zn(e,o,Object);for(;l.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),l=Zn(e,o,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},Og=(e,t,n,r)=>{const{obj:i,k:s}=Zn(e,t,Object);i[s]=i[s]||[],i[s].push(n)},Ri=(e,t)=>{const{obj:n,k:r}=Zn(e,t);if(n)return n[r]},Rg=(e,t,n)=>{const r=Ri(e,n);return r!==void 0?r:Ri(t,n)},Md=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?R(e[r])||e[r]instanceof String||R(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Md(e[r],t[r],n):e[r]=t[r]);return e},qt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Tg={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const bg=e=>R(e)?e.replace(/[&<>"'\/]/g,t=>Tg[t]):e;class Ig{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const zg=[" ",",","?","!",";"],Dg=new Ig(20),_g=(e,t,n)=>{t=t||"",n=n||"";const r=zg.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=Dg.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},Lo=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let s=0;s-1&&ae&&e.replace("_","-"),Mg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class bi{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Mg,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,a]=o;for(let c=0;c{let[l,a]=o;for(let c=0;c1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):R(r)&&s?l.push(...r.split(s)):l.push(r)));const a=Ri(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!o||!R(r)?a:Lo(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),qa(this.data,l,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(R(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let a=Ri(this.data,l)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Md(a,r,s):a={...a,...r},qa(this.data,l,a),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var $d={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const Za={};class Ii extends es{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Pg(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=He.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!_g(t,r,i);if(o&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:R(s)?[s]:s};const c=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(i)}return{key:t,namespaces:R(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(f){const y=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${y}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${y}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:o}const p=this.resolve(t,n);let d=p&&p.res;const v=p&&p.usedKey||o,x=p&&p.exactUsedKey||o,w=Object.prototype.toString.apply(d),N=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,h=!this.i18nFormat||this.i18nFormat.handleAsObject,g=!R(d)&&typeof d!="boolean"&&typeof d!="number";if(h&&d&&g&&N.indexOf(w)<0&&!(R(m)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,d,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=y,p.usedParams=this.getUsedParamsDetails(n),p):y}if(s){const y=Array.isArray(d),S=y?[]:{},C=y?x:v;for(const j in d)if(Object.prototype.hasOwnProperty.call(d,j)){const L=`${C}${s}${j}`;S[j]=this.translate(L,{...n,joinArrays:!1,ns:l}),S[j]===L&&(S[j]=d[j])}d=S}}else if(h&&R(m)&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,t,n,r));else{let y=!1,S=!1;const C=n.count!==void 0&&!R(n.count),j=Ii.hasDefaultValue(n),L=C?this.pluralResolver.getSuffix(c,n.count,n):"",V=n.ordinal&&C?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",b=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),te=b&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${L}`]||n[`defaultValue${V}`]||n.defaultValue;!this.isValidLookup(d)&&j&&(y=!0,d=te),this.isValidLookup(d)||(S=!0,d=o);const Ft=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:d,rt=j&&te!==d&&this.options.updateMissing;if(S||y||rt){if(this.logger.log(rt?"updateKey":"missingKey",c,a,o,rt?te:d),s){const F=this.resolve(o,{...n,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Pt=[];const it=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&it&&it[0])for(let F=0;F{const U=j&&T!==d?T:Ft;this.options.missingKeyHandler?this.options.missingKeyHandler(F,a,O,U,rt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,a,O,U,rt,n),this.emit("missingKey",F,a,O,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Pt.forEach(F=>{const O=this.pluralResolver.getSuffixes(F,n);b&&n[`defaultValue${this.options.pluralSeparator}zero`]&&O.indexOf(`${this.options.pluralSeparator}zero`)<0&&O.push(`${this.options.pluralSeparator}zero`),O.forEach(T=>{Jt([F],o+T,n[`defaultValue${T}`]||te)})}):Jt(Pt,o,te))}d=this.extendTranslation(d,t,n,p,r),S&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(S||y)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,y?d:void 0):d=this.options.parseMissingKeyHandler(d))}return i?(p.res=d,p.usedParams=this.getUsedParamsDetails(n),p):d}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=R(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const d=t.match(this.interpolator.nestingRegexp);f=d&&d.length}let p=r.replace&&!R(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||i.usedLng,r),c){const d=t.match(this.interpolator.nestingRegexp),v=d&&d.length;f1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,o,l;return R(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(a,n),f=c.key;i=f;let p=c.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const d=n.count!==void 0&&!R(n.count),v=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(R(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(N=>{this.isValidLookup(r)||(l=N,!Za[`${w[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Za[`${w[0]}-${N}`]=!0,this.logger.warn(`key "${i}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(m=>{if(this.isValidLookup(r))return;o=m;const h=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(h,f,m,N,n);else{let y;d&&(y=this.pluralResolver.getSuffix(m,n.count,n));const S=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(h.push(f+y),n.ordinal&&y.indexOf(C)===0&&h.push(f+y.replace(C,this.options.pluralSeparator)),v&&h.push(f+S)),x){const j=`${f}${this.options.contextSeparator}${n.context}`;h.push(j),d&&(h.push(j+y),n.ordinal&&y.indexOf(C)===0&&h.push(j+y.replace(C,this.options.pluralSeparator)),v&&h.push(j+S))}}let g;for(;g=h.pop();)this.isValidLookup(r)||(s=g,r=this.getResource(m,N,g,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!R(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Ls=e=>e.charAt(0).toUpperCase()+e.slice(1);class eu{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=He.create("languageUtils")}getScriptPartFromCode(t){if(t=Ti(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ti(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(R(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ls(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ls(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ls(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),R(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return R(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):R(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let $g=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ug={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Ag=["v1","v2","v3"],Vg=["v4"],tu={zero:0,one:1,two:2,few:3,many:4,other:5},Bg=()=>{const e={};return $g.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Ug[t.fc]}})}),e};class Hg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=He.create("pluralResolver"),(!this.options.compatibilityJSON||Vg.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Bg(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Ti(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(a,n)}return this.pluralRulesCache[s]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>tu[i]-tu[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Ag.includes(this.options.compatibilityJSON)}}const nu=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Rg(e,t,n);return!s&&i&&R(n)&&(s=Lo(e,n,r),s===void 0&&(s=Lo(t,n,r))),s},Os=e=>e.replace(/\$/g,"$$$$");class Wg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=He.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:l,suffixEscaped:a,formatSeparator:c,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:d,nestingPrefixEscaped:v,nestingSuffix:x,nestingSuffixEscaped:w,nestingOptionsSeparator:N,maxReplaces:m,alwaysFormat:h}=t.interpolation;this.escape=n!==void 0?n:bg,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?qt(s):o||"{{",this.suffix=l?qt(l):a||"}}",this.formatSeparator=c||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=d?qt(d):v||qt("$t("),this.nestingSuffix=x?qt(x):w||qt(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=m||1e3,this.alwaysFormat=h!==void 0?h:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let s,o,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const m=nu(n,a,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...i,...n,interpolationkey:v}):m}const x=v.split(this.formatSeparator),w=x.shift().trim(),N=x.join(this.formatSeparator).trim();return this.format(nu(n,a,w,this.options.keySeparator,this.options.ignoreJSONStructure),N,r,{...i,...n,interpolationkey:w})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Os(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Os(this.escape(v)):Os(v)}].forEach(v=>{for(l=0;s=v.regex.exec(t);){const x=s[1].trim();if(o=c(x),o===void 0)if(typeof f=="function"){const N=f(t,s,i);o=R(N)?N:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))o="";else if(p){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),o="";else!R(o)&&!this.useRawValueToEscape&&(o=Ya(o));const w=v.safeValue(o);if(t=t.replace(s[0],w),p?(v.regex.lastIndex+=o.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,o;const l=(a,c)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const p=a.split(new RegExp(`${f}[ ]*{`));let d=`{${p[1]}`;a=p[0],d=this.interpolate(d,o);const v=d.match(/'/g),x=d.match(/"/g);(v&&v.length%2===0&&!x||x.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),c&&(o={...c,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${f}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,a};for(;i=this.nestingRegexp.exec(t);){let a=[];o={...r},o=o.replace&&!R(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(p=>p.trim());i[1]=f.shift(),a=f,c=!0}if(s=n(l.call(this,i[1].trim(),o),o),s&&i[0]===t&&!R(s))return s;R(s)||(s=Ya(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),c&&(s=a.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const Kg=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...a]=o.split(":"),c=a.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=c),c==="false"&&(n[f]=!1),c==="true"&&(n[f]=!0),isNaN(c)||(n[f]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},Xt=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let l=t[o];return l||(l=e(Ti(r),i),t[o]=l),l(n)}};class Qg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=He.create("formatter"),this.options=t,this.formats={number:Xt((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:Xt((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:Xt((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:Xt((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:Xt((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Xt(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(a=>a.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,a)=>{const{formatName:c,formatOptions:f}=Kg(a);if(this.formats[c]){let p=l;try{const d=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=d.locale||d.lng||i.locale||i.lng||r;p=this.formats[c](l,v,{...f,...i,...d})}catch(d){this.logger.warn(d)}return p}else this.logger.warn(`there was no format function for ${c}`);return l},t)}}const Yg=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Jg extends es{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=He.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},l={},a={};return t.forEach(c=>{let f=!0;n.forEach(p=>{const d=`${c}|${p}`;!r.reload&&this.store.hasResourceBundle(c,p)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,f=!1,o[d]===void 0&&(o[d]=!0),s[d]===void 0&&(s[d]=!0),a[p]===void 0&&(a[p]=!0)))}),f||(l[c]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{Og(a.loaded,[s],o),Yg(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(c=>{l[c]||(l[c]={});const f=a.loaded[c];f.length&&f.forEach(p=>{l[c][p]===void 0&&(l[c][p]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const l=(c,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(c&&f&&i{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(c,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const c=a(t,n);c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();R(t)&&(t=this.languageUtils.toResolveHierarchy(t)),R(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...o,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let f;c.length===5?f=c(t,n,r,i,a):f=c(t,n,r,i),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else c(t,n,r,i,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const ru=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),R(e[1])&&(t.defaultValue=e[1]),R(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),iu=e=>(R(e.ns)&&(e.ns=[e.ns]),R(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),R(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Kr=()=>{},Gg=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class xr extends es{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=iu(t),this.services={},this.logger=He,this.modules={external:[]},Gg(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(R(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=ru();this.options={...i,...this.options,...iu(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?He.init(s(this.modules.logger),this.options):He.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Qg);const p=new eu(this.options);this.store=new Xa(this.options.resources,this.options);const d=this.services;d.logger=He,d.resourceStore=this.store,d.languageUtils=p,d.pluralResolver=new Hg(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=s(f),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Wg(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Jg(s(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(v){for(var x=arguments.length,w=new Array(x>1?x-1:0),N=1;N1?x-1:0),N=1;N{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Kr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=_n(),c=()=>{const f=(p,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),r(p,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kr;const i=R(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=_n();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Kr),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&$d.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=_n();this.emit("languageChanging",t);const s=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const c=R(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,f=>{o(f,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const s=function(o,l){let a;if(typeof l!="object"){for(var c=arguments.length,f=new Array(c>2?c-2:0),p=2;p`${a.keyPrefix}${d}${x}`):v=a.keyPrefix?`${a.keyPrefix}${d}${o}`:o,i.t(v,a)};return R(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const c=this.services.backendConnector.state[`${l}|${a}`];return c===-1||c===0||c===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=_n();return this.options.ns?(R(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=_n();R(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new eu(ru());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new xr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Kr;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new xr(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new Xa(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ii(s.services,i),s.translator.on("*",function(l){for(var a=arguments.length,c=new Array(a>1?a-1:0),f=1;f0){var l=i.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(l))}if(i.domain){if(!su.test(i.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(i.domain)}if(i.path){if(!su.test(i.path))throw new TypeError("option path is invalid");o+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite){var a=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(a){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},ou={create:function(t,n,r,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+r*60*1e3)),i&&(s.domain=i),document.cookie=s0(t,encodeURIComponent(n),s)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),s=i.split("&"),o=0;o0){var a=s[o].substring(0,l);a===t.lookupQuerystring&&(n=s[o].substring(l+1))}}}return n}},Mn=null,lu=function(){if(Mn!==null)return Mn;try{Mn=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Mn=!1}return Mn},a0={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&lu()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&lu()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},$n=null,au=function(){if($n!==null)return $n;try{$n=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{$n=!1}return $n},u0={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&au()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&au()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},c0={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},d0={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},f0={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},p0={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},Ad=!1;try{document.cookie,Ad=!0}catch{}var Vd=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ad||Vd.splice(1,1);function h0(){return{order:Vd,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Bd=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};qg(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return t0(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=i0(r,this.options||{},h0()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(o0),this.addDetector(l0),this.addDetector(a0),this.addDetector(u0),this.addDetector(c0),this.addDetector(d0),this.addDetector(f0),this.addDetector(p0)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(s){if(r.detectors[s]){var o=r.detectors[s].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(i=i.concat(o))}}),i=i.map(function(s){return r.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(s){i.detectors[s]&&i.detectors[s].cacheUserLanguage(n,i.options)}))}}])}();Bd.type="languageDetector";const m0={features:"Features",tutorials:"Tutorials",signIn:"Sign In"},g0={title:"Create stunning videos for social media",description:"Transform your content with our powerful online editor. Add effects, subtitles, music, and more to create viral-worthy videos for TikTok, Instagram, YouTube, and other platforms. Always free, with support for up to 8K resolution!",startCreating:"Start Creating",createFor:"Create content for:"},v0={select:"Select Language"},y0={title:"Powerful Editing Tools",description:"Everything you need to create professional-quality videos that stand out on any social media platform.",effects:"Stunning Effects",effectsDesc:"Apply beautiful effects, filters, and transitions to make your videos pop.",overlays:"Image Overlays",overlaysDesc:"Add images, stickers, and GIFs to create engaging visual content.",subtitles:"Auto Subtitles",subtitlesDesc:"Generate and customize captions for accessibility and engagement.",music:"Music Library",musicDesc:"Add trending music and sound effects from our extensive library.",format:"Multi-format",formatDesc:"Create content for all platforms in vertical, horizontal, or square formats.",export:"HD Export",exportDesc:"Download your creations in high definition for professional quality.",mashups:"Video Mashups",mashupsDesc:"Create reactions, duets, and multi-video compositions easily.",processing:"Fast Processing",processingDesc:"Our cloud-based engine renders your creations quickly and efficiently.",createWithoutLimits:"Create Without Limits",createWithoutLimitsDesc:"Our intuitive editor makes it easy to create professional videos even if you have no experience.",formatVersatility:"Format Versatility",formatVersatilityDesc:"Create videos in any format required by today's top platforms:",verticalVideos:"Vertical videos for TikTok, Instagram Reels & Stories",horizontalVideos:"Horizontal videos for YouTube and Facebook",squareFormat:"Square format for Instagram posts",customAspectRatios:"Custom aspect ratios for any platform",highQualityOutput:"High-Quality Output",highQualityOutputDesc:"Download your creations in professional quality:",fullHD:"Full HD 1080p resolution",resolution4K:"4K and 8K resolution support",optimizedFiles:"Optimized file sizes for quick uploads",multipleFormats:"Multiple export formats (MP4, MOV, etc.)"},x0={nav:m0,hero:g0,language:v0,features:y0},w0={features:"Возможности",tutorials:"Уроки",signIn:"Войти"},S0={title:"Создавайте потрясающие видео для соцсетей",description:"Преобразите свой контент с помощью нашего мощного онлайн-редактора. Добавляйте эффекты, субтитры, музыку и многое другое для создания вирусных видео для TikTok, Instagram, YouTube и других платформ. Всегда бесплатно, с поддержкой разрешения до 8K!",startCreating:"Начать создание",createFor:"Создавайте контент для:"},k0={select:"Выбрать язык"},N0={title:"Мощные инструменты редактирования",description:"Всё необходимое для создания профессиональных видео, которые выделяются в социальных сетях.",effects:"Потрясающие эффекты",effectsDesc:"Применяйте красивые эффекты, фильтры и переходы, чтобы ваши видео выделялись.",overlays:"Наложение изображений",overlaysDesc:"Добавляйте изображения, стикеры и GIF для создания привлекательного контента.",subtitles:"Автоматические субтитры",subtitlesDesc:"Создавайте и настраивайте субтитры для доступности и вовлечения.",music:"Библиотека музыки",musicDesc:"Добавляйте популярную музыку и звуковые эффекты из нашей обширной библиотеки.",format:"Мультиформат",formatDesc:"Создавайте контент для всех платформ в вертикальном, горизонтальном или квадратном форматах.",export:"HD экспорт",exportDesc:"Скачивайте ваши работы в высоком качестве для профессионального результата.",mashups:"Видео-мэшапы",mashupsDesc:"Легко создавайте реакции, дуэты и многовидеокомпозиции.",processing:"Быстрая обработка",processingDesc:"Наш облачный движок быстро и эффективно обрабатывает ваши работы.",createWithoutLimits:"Творите без ограничений",createWithoutLimitsDesc:"Наш интуитивный редактор позволяет легко создавать профессиональные видео даже без опыта.",formatVersatility:"Гибкость форматов",formatVersatilityDesc:"Создавайте видео в любом формате для современных платформ:",verticalVideos:"Вертикальные видео для TikTok, Instagram Reels и Stories",horizontalVideos:"Горизонтальные видео для YouTube и Facebook",squareFormat:"Квадратный формат для постов в Instagram",customAspectRatios:"Пользовательские пропорции для любой платформы",highQualityOutput:"Высокое качество экспорта",highQualityOutputDesc:"Скачивайте ваши работы в профессиональном качестве:",fullHD:"Разрешение Full HD 1080p",resolution4K:"Поддержка разрешения 4K и 8K",optimizedFiles:"Оптимизированные размеры файлов для быстрой загрузки",multipleFormats:"Различные форматы экспорта (MP4, MOV и др.)"},E0={nav:w0,hero:S0,language:k0,features:N0},j0={features:"Funktionen",tutorials:"Tutorials",signIn:"Anmelden"},C0={title:"Erstellen Sie beeindruckende Videos für soziale Medien",description:"Transformieren Sie Ihren Content mit unserem leistungsstarken Online-Editor. Fügen Sie Effekte, Untertitel, Musik und mehr hinzu, um virale Videos für TikTok, Instagram, YouTube und andere Plattformen zu erstellen. Immer kostenlos, mit Unterstützung für bis zu 8K Auflösung!",startCreating:"Jetzt erstellen",createFor:"Erstellen Sie Inhalte für:"},F0={select:"Sprache wählen"},P0={title:"Leistungsstarke Bearbeitungswerkzeuge",description:"Alles, was Sie brauchen, um professionelle Videos zu erstellen, die sich in sozialen Medien abheben.",effects:"Beeindruckende Effekte",effectsDesc:"Wenden Sie schöne Effekte, Filter und Übergänge an, um Ihre Videos hervorzuheben.",overlays:"Bildüberlagerungen",overlaysDesc:"Fügen Sie Bilder, Sticker und GIFs hinzu, um ansprechende Inhalte zu erstellen.",subtitles:"Auto-Untertitel",subtitlesDesc:"Generieren und passen Sie Untertitel für Zugänglichkeit und Engagement an.",music:"Musikbibliothek",musicDesc:"Fügen Sie trendige Musik und Soundeffekte aus unserer umfangreichen Bibliothek hinzu.",format:"Multi-Format",formatDesc:"Erstellen Sie Inhalte für alle Plattformen in vertikalen, horizontalen oder quadratischen Formaten.",export:"HD-Export",exportDesc:"Laden Sie Ihre Kreationen in hoher Auflösung für professionelle Qualität herunter.",mashups:"Video-Mashups",mashupsDesc:"Erstellen Sie einfach Reaktionen, Duette und Multi-Video-Kompositionen.",processing:"Schnelle Verarbeitung",processingDesc:"Unsere Cloud-basierte Engine rendert Ihre Kreationen schnell und effizient.",createWithoutLimits:"Kreieren Sie ohne Grenzen",createWithoutLimitsDesc:"Unser intuitiver Editor macht es einfach, professionelle Videos zu erstellen, auch ohne Erfahrung.",formatVersatility:"Format-Vielseitigkeit",formatVersatilityDesc:"Erstellen Sie Videos in jedem Format für aktuelle Plattformen:",verticalVideos:"Vertikale Videos für TikTok, Instagram Reels & Stories",horizontalVideos:"Horizontale Videos für YouTube und Facebook",squareFormat:"Quadratisches Format für Instagram-Posts",customAspectRatios:"Benutzerdefinierte Seitenverhältnisse für jede Plattform",highQualityOutput:"Hochwertige Ausgabe",highQualityOutputDesc:"Laden Sie Ihre Kreationen in professioneller Qualität herunter:",fullHD:"Full HD 1080p Auflösung",resolution4K:"4K und 8K Auflösungsunterstützung",optimizedFiles:"Optimierte Dateigröße für schnelles Hochladen",multipleFormats:"Mehrere Exportformate (MP4, MOV, etc.)"},L0={nav:j0,hero:C0,language:F0,features:P0},O0={features:"विशेषताएं",tutorials:"ट्यूटोरियल",signIn:"साइन इन करें"},R0={title:"सोशल मीडिया के लिए आकर्षक वीडियो बनाएं",description:"हमारे शक्तिशाली ऑनलाइन एडिटर के साथ अपनी सामग्री को बदलें। TikTok, Instagram, YouTube और अन्य प्लेटफॉर्म के लिए वायरल वीडियो बनाने के लिए प्रभाव, उपशीर्षक, संगीत और बहुत कुछ जोड़ें। हमेशा मुफ्त, 8K रिज़ॉल्यूशन के साथ!",startCreating:"बनाना शुरू करें",createFor:"इनके लिए कंटेंट बनाएं:"},T0={select:"भाषा चुनें"},b0={title:"शक्तिशाली संपादन उपकरण",description:"सोशल मीडिया पर अलग दिखने वाले पेशेवर-गुणवत्ता वाले वीडियो बनाने के लिए आवश्यक सब कुछ।",effects:"आकर्षक प्रभाव",effectsDesc:"अपने वीडियो को आकर्षक बनाने के लिए सुंदर प्रभाव, फ़िल्टर और ट्रांज़िशन लागू करें।",overlays:"छवि ओवरले",overlaysDesc:"आकर्षक विजुअल कंटेंट बनाने के लिए छवियां, स्टिकर और GIF जोड़ें।",subtitles:"स्वचालित उपशीर्षक",subtitlesDesc:"पहुंच और जुड़ाव के लिए कैप्शन जनरेट और कस्टमाइज़ करें।",music:"संगीत लाइब्रेरी",musicDesc:"हमारी विस्तृत लाइब्रेरी से ट्रेंडिंग संगीत और ध्वनि प्रभाव जोड़ें।",format:"मल्टी-फॉर्मेट",formatDesc:"सभी प्लेटफ़ॉर्म के लिए वर्टिकल, हॉरिज़ॉन्टल या स्क्वायर फॉर्मेट में कंटेंट बनाएं।",export:"HD एक्सपोर्ट",exportDesc:"पेशेवर गुणवत्ता के लिए अपनी रचनाएं उच्च परिभाषा में डाउनलोड करें।",mashups:"वीडियो मैशअप",mashupsDesc:"आसानी से प्रतिक्रियाएं, डुएट और मल्टी-वीडियो कंपोजिशन बनाएं।",processing:"तेज प्रोसेसिंग",processingDesc:"हमारा क्लाउड-आधारित इंजन आपकी रचनाओं को तेजी और कुशलता से रेंडर करता है।",createWithoutLimits:"बिना सीमाओं के बनाएं",createWithoutLimitsDesc:"हमारा सहज एडिटर बिना किसी अनुभव के भी पेशेवर वीडियो बनाना आसान बनाता है।",formatVersatility:"फॉर्मेट बहुमुखी प्रतिभा",formatVersatilityDesc:"आज की सभी प्लेटफॉर्म के लिए किसी भी फॉर्मेट में वीडियो बनाएं:",verticalVideos:"TikTok, Instagram Reels और Stories के लिए वर्टिकल वीडियो",horizontalVideos:"YouTube और Facebook के लिए हॉरिज़ॉन्टल वीडियो",squareFormat:"Instagram पोस्ट के लिए स्क्वायर फॉर्मेट",customAspectRatios:"किसी भी प्लेटफॉर्म के लिए कस्टम आस्पेक्ट अनुपात",highQualityOutput:"उच्च गुणवत्ता आउटपुट",highQualityOutputDesc:"अपनी रचनाओं को पेशेवर गुणवत्ता में डाउनलोड करें:",fullHD:"फुल HD 1080p रिज़ॉल्यूशन",resolution4K:"4K और 8K रिज़ॉल्यूशन समर्थन",optimizedFiles:"त्वरित अपलोड के लिए अनुकूलित फ़ाइल आकार",multipleFormats:"कई एक्सपोर्ट फॉर्मेट (MP4, MOV, आदि)"},I0={nav:O0,hero:R0,language:T0,features:b0};ue.use(Bd).use(Jm).init({resources:{en:{translation:x0},ru:{translation:E0},de:{translation:L0},hi:{translation:I0}},fallbackLng:"en",debug:!0,interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});Sd(document.getElementById("root")).render(u.jsx(E.StrictMode,{children:u.jsx(Fg,{})})); diff --git a/sni-templates/convertit/assets/style.css b/sni-templates/convertit/assets/style.css new file mode 100644 index 0000000..7dbeeb0 --- /dev/null +++ b/sni-templates/convertit/assets/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.-bottom-10{bottom:-2.5rem}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-left-8{left:-2rem}.-right-10{right:-2.5rem}.-right-24{right:-6rem}.-top-10{top:-2.5rem}.-top-8{top:-2rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.left-0{left:0}.left-1\/4{left:25%}.left-4{left:1rem}.right-0{right:0}.right-1\/4{right:25%}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-1\/3{top:33.333333%}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-0\.5{margin-top:.125rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:16 / 9}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-28{height:7rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-72{height:18rem}.h-8{height:2rem}.h-80{height:20rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-28{width:7rem}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-xs{max-width:20rem}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-2{--tw-rotate: -2deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-6{--tw-rotate: -6deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-6{--tw-rotate: 6deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-\[\#FF2E93\]{--tw-border-opacity: 1;border-color:rgb(255 46 147 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity))}.border-purple-900\/20{border-color:#581c8733}.border-purple-900\/30{border-color:#581c874d}.border-red-500\/30{border-color:#ef44444d}.bg-\[\#0A0A14\]{--tw-bg-opacity: 1;background-color:rgb(10 10 20 / var(--tw-bg-opacity))}.bg-\[\#0F0F1A\]{--tw-bg-opacity: 1;background-color:rgb(15 15 26 / var(--tw-bg-opacity))}.bg-\[\#0F0F1A\]\/80{background-color:#0f0f1acc}.bg-\[\#1E1E32\]{--tw-bg-opacity: 1;background-color:rgb(30 30 50 / var(--tw-bg-opacity))}.bg-\[\#1E1E32\]\/70{background-color:#1e1e32b3}.bg-\[\#7E2EFF\]\/10{background-color:#7e2eff1a}.bg-\[\#7E2EFF\]\/20{background-color:#7e2eff33}.bg-\[\#FF2E93\]{--tw-bg-opacity: 1;background-color:rgb(255 46 147 / var(--tw-bg-opacity))}.bg-\[\#FF2E93\]\/10{background-color:#ff2e931a}.bg-\[\#FF2E93\]\/20{background-color:#ff2e9333}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-500\/20{background-color:#3b82f633}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800\/50{background-color:#1f293780}.bg-green-500\/20{background-color:#22c55e33}.bg-red-900\/30{background-color:#7f1d1d4d}.bg-white\/10{background-color:#ffffff1a}.bg-yellow-500\/20{background-color:#eab30833}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#0F0F1A\]{--tw-gradient-from: #0F0F1A var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 15 26 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-\[\#1E1E32\]{--tw-gradient-from: #1E1E32 var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 30 50 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-\[\#FF2E93\]{--tw-gradient-from: #FF2E93 var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 46 147 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-transparent{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\[\#1A1A2E\]{--tw-gradient-to: #1A1A2E var(--tw-gradient-to-position)}.to-\[\#2A1E32\]{--tw-gradient-to: #2A1E32 var(--tw-gradient-to-position)}.to-\[\#7E2EFF\]{--tw-gradient-to: #7E2EFF var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-12{padding-right:3rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-tight{line-height:1.25}.text-\[\#FF2E93\]{--tw-text-opacity: 1;color:rgb(255 46 147 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.first\:rounded-t-lg:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.last\:rounded-b-lg:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.hover\:rotate-0:hover{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[\#FF2E93\]:hover{--tw-border-opacity: 1;border-color:rgb(255 46 147 / var(--tw-border-opacity))}.hover\:bg-\[\#1E1E32\]:hover{--tw-bg-opacity: 1;background-color:rgb(30 30 50 / var(--tw-bg-opacity))}.hover\:bg-\[\#2A2A42\]:hover{--tw-bg-opacity: 1;background-color:rgb(42 42 66 / var(--tw-bg-opacity))}.hover\:bg-purple-500\/20:hover{background-color:#a855f733}.hover\:bg-white\/20:hover{background-color:#fff3}.hover\:text-\[\#7E2EFF\]:hover{--tw-text-opacity: 1;color:rgb(126 46 255 / var(--tw-text-opacity))}.hover\:text-\[\#FF2E93\]:hover{--tw-text-opacity: 1;color:rgb(255 46 147 / var(--tw-text-opacity))}.hover\:text-purple-300:hover{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:opacity-90:hover{opacity:.9}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#FF2E93\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 46 147 / var(--tw-ring-opacity))}.focus\:ring-purple-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity))}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\:mb-0{margin-bottom:0}.md\:inline{display:inline}.md\:flex{display:flex}.md\:h-36{height:9rem}.md\:h-40{height:10rem}.md\:w-1\/2{width:50%}.md\:w-36{width:9rem}.md\:w-40{width:10rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:gap-12{gap:3rem}.md\:p-10{padding:2.5rem}.md\:py-24{padding-top:6rem;padding-bottom:6rem}.md\:text-left{text-align:left}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:text-6xl{font-size:3.75rem;line-height:1}} diff --git a/sni-templates/convertit/favicon-96x96.png b/sni-templates/convertit/favicon-96x96.png new file mode 100644 index 0000000..29f4383 Binary files /dev/null and b/sni-templates/convertit/favicon-96x96.png differ diff --git a/sni-templates/convertit/favicon.ico b/sni-templates/convertit/favicon.ico new file mode 100644 index 0000000..8a6de75 Binary files /dev/null and b/sni-templates/convertit/favicon.ico differ diff --git a/sni-templates/convertit/favicon.svg b/sni-templates/convertit/favicon.svg new file mode 100644 index 0000000..0ab122a --- /dev/null +++ b/sni-templates/convertit/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/sni-templates/convertit/index.html b/sni-templates/convertit/index.html new file mode 100644 index 0000000..79fdc47 --- /dev/null +++ b/sni-templates/convertit/index.html @@ -0,0 +1,19 @@ + + + + + + VidCraft - Modern Video Editor for Social Media + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/sni-templates/convertit/site.webmanifest b/sni-templates/convertit/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/convertit/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/convertit/web-app-manifest-192x192.png b/sni-templates/convertit/web-app-manifest-192x192.png new file mode 100644 index 0000000..12540e3 Binary files /dev/null and b/sni-templates/convertit/web-app-manifest-192x192.png differ diff --git a/sni-templates/convertit/web-app-manifest-512x512.png b/sni-templates/convertit/web-app-manifest-512x512.png new file mode 100644 index 0000000..9447fb4 Binary files /dev/null and b/sni-templates/convertit/web-app-manifest-512x512.png differ diff --git a/sni-templates/downloader/apple-touch-icon.png b/sni-templates/downloader/apple-touch-icon.png new file mode 100644 index 0000000..f2a13b9 Binary files /dev/null and b/sni-templates/downloader/apple-touch-icon.png differ diff --git a/sni-templates/downloader/assets/v1/js.js b/sni-templates/downloader/assets/v1/js.js new file mode 100644 index 0000000..d6eabe8 --- /dev/null +++ b/sni-templates/downloader/assets/v1/js.js @@ -0,0 +1,135 @@ +var sd=Object.defineProperty;var ad=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ls=(e,t,n)=>ad(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Fa={exports:{}},Ni={},$a={exports:{}},D={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hr=Symbol.for("react.element"),ud=Symbol.for("react.portal"),cd=Symbol.for("react.fragment"),dd=Symbol.for("react.strict_mode"),fd=Symbol.for("react.profiler"),pd=Symbol.for("react.provider"),hd=Symbol.for("react.context"),gd=Symbol.for("react.forward_ref"),md=Symbol.for("react.suspense"),vd=Symbol.for("react.memo"),yd=Symbol.for("react.lazy"),os=Symbol.iterator;function xd(e){return e===null||typeof e!="object"?null:(e=os&&e[os]||e["@@iterator"],typeof e=="function"?e:null)}var Ma={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Aa=Object.assign,Ua={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=Ua,this.updater=n||Ma}Sn.prototype.isReactComponent={};Sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Va(){}Va.prototype=Sn.prototype;function co(e,t,n){this.props=e,this.context=t,this.refs=Ua,this.updater=n||Ma}var fo=co.prototype=new Va;fo.constructor=co;Aa(fo,Sn.prototype);fo.isPureReactComponent=!0;var ss=Array.isArray,Ha=Object.prototype.hasOwnProperty,po={current:null},Ba={key:!0,ref:!0,__self:!0,__source:!0};function Ka(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)Ha.call(t,r)&&!Ba.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,U=E[P];if(0>>1;Pi(Pt,R))Xei(Wt,Pt)?(E[P]=Wt,E[Xe]=R,P=Xe):(E[P]=Pt,E[K]=R,P=K);else if(Xei(Wt,R))E[P]=Wt,E[Xe]=R,P=Xe;else break e}}return z}function i(E,z){var R=E.sortIndex-z.sortIndex;return R!==0?R:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],f=1,h=null,c=3,y=!1,x=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=E)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function v(E){if(w=!1,m(E),!x)if(n(a)!==null)x=!0,_e(S);else{var z=n(u);z!==null&&st(v,z.startTime-E)}}function S(E,z){x=!1,w&&(w=!1,p(L),L=-1),y=!0;var R=c;try{for(m(z),h=n(a);h!==null&&(!(h.expirationTime>z)||E&&!Z());){var P=h.callback;if(typeof P=="function"){h.callback=null,c=h.priorityLevel;var U=P(h.expirationTime<=z);z=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(a)&&r(a),m(z)}else r(a);h=n(a)}if(h!==null)var Kt=!0;else{var K=n(u);K!==null&&st(v,K.startTime-z),Kt=!1}return Kt}finally{h=null,c=R,y=!1}}var C=!1,N=null,L=-1,A=5,_=-1;function Z(){return!(e.unstable_now()-_E||125P?(E.sortIndex=R,t(u,E),n(a)===null&&E===n(u)&&(w?(p(L),L=-1):w=!0,st(v,R-P))):(E.sortIndex=U,t(a,E),x||y||(x=!0,_e(S))),E},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(E){var z=c;return function(){var R=c;c=z;try{return E.apply(this,arguments)}finally{c=R}}}})(Ja);Ya.exports=Ja;var zd=Ya.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rd=F,Ne=zd;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gl=Object.prototype.hasOwnProperty,Td=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,us={},cs={};function _d(e){return gl.call(cs,e)?!0:gl.call(us,e)?!1:Td.test(e)?cs[e]=!0:(us[e]=!0,!1)}function Dd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Id(e,t,n,r){if(t===null||typeof t>"u"||Dd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function he(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new he(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ie[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var go=/[\-:]([a-z])/g;function mo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(go,mo);ie[t]=new he(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(go,mo);ie[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(go,mo);ie[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function vo(e,t,n,r){var i=ie.hasOwnProperty(t)?ie[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==l[s]){var a=` +`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Hi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function Fd(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=Bi(e.type,!1),e;case 11:return e=Bi(e.type.render,!1),e;case 1:return e=Bi(e.type,!0),e;default:return""}}function xl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xt:return"Fragment";case Jt:return"Portal";case ml:return"Profiler";case yo:return"StrictMode";case vl:return"Suspense";case yl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qa:return(e.displayName||"Context")+".Consumer";case Za:return(e._context.displayName||"Context")+".Provider";case xo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wo:return t=e.displayName||null,t!==null?t:xl(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return xl(e(t))}catch{}}return null}function $d(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xl(t);case 8:return t===yo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Nt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Md(e){var t=eu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=Md(e))}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wl(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nu(e,t){t=t.checked,t!=null&&vo(e,"checked",t,!1)}function Sl(e,t){nu(e,t);var n=Nt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kl(e,t.type,n):t.hasOwnProperty("defaultValue")&&kl(e,t.type,Nt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ps(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function kl(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function an(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var An={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ad=["Webkit","ms","Moz","O"];Object.keys(An).forEach(function(e){Ad.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),An[t]=An[e]})});function ou(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||An.hasOwnProperty(e)&&An[e]?(""+t).trim():t+"px"}function su(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ou(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ud=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function El(e,t){if(t){if(Ud[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function jl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ll=null;function So(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pl=null,un=null,cn=null;function ms(e){if(e=vr(e)){if(typeof Pl!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Pi(t),Pl(e.stateNode,e.type,t))}}function au(e){un?cn?cn.push(e):cn=[e]:un=e}function uu(){if(un){var e=un,t=cn;if(cn=un=null,ms(e),t)for(e=0;e>>=0,e===0?32:31-(Zd(e)/qd|0)|0}var Nr=64,Cr=4194304;function $n(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=$n(s):(l&=o,l!==0&&(r=$n(l)))}else o=n&~i,o!==0?r=$n(o):l!==0&&(r=$n(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function nf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vn),Es=" ",js=!1;function Ou(e,t){switch(e){case"keyup":return Rf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zt=!1;function _f(e,t){switch(e){case"compositionend":return zu(t);case"keypress":return t.which!==32?null:(js=!0,Es);case"textInput":return e=t.data,e===Es&&js?null:e;default:return null}}function Df(e,t){if(Zt)return e==="compositionend"||!Oo&&Ou(e,t)?(e=Lu(),Ur=jo=pt=null,Zt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zs(n)}}function Du(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Du(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Iu(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Bf(e){var t=Iu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Du(n.ownerDocument.documentElement,n)){if(r!==null&&zo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Rs(n,l);var o=Rs(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,qt=null,Dl=null,Bn=null,Il=!1;function Ts(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Il||qt==null||qt!==Jr(r)||(r=qt,"selectionStart"in r&&zo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bn&&nr(Bn,r)||(Bn=r,r=ni(Dl,"onSelect"),0tn||(e.current=Vl[tn],Vl[tn]=null,tn--)}function M(e,t){tn++,Vl[tn]=e.current,e.current=t}var Ct={},ue=jt(Ct),ve=jt(!1),$t=Ct;function gn(e,t){var n=e.type.contextTypes;if(!n)return Ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ye(e){return e=e.childContextTypes,e!=null}function ii(){H(ve),H(ue)}function As(e,t,n){if(ue.current!==Ct)throw Error(k(168));M(ue,t),M(ve,n)}function Ku(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(k(108,$d(e)||"Unknown",i));return G({},n,r)}function li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ct,$t=ue.current,M(ue,e),M(ve,ve.current),!0}function Us(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Ku(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,H(ve),H(ue),M(ue,e)):H(ve),M(ve,n)}var qe=null,Oi=!1,rl=!1;function Wu(e){qe===null?qe=[e]:qe.push(e)}function tp(e){Oi=!0,Wu(e)}function Lt(){if(!rl&&qe!==null){rl=!0;var e=0,t=$;try{var n=qe;for($=1;e>=o,i-=o,be=1<<32-Me(t)+i|n<L?(A=N,N=null):A=N.sibling;var _=c(p,N,m[L],v);if(_===null){N===null&&(N=A);break}e&&N&&_.alternate===null&&t(p,N),d=l(_,d,L),C===null?S=_:C.sibling=_,C=_,N=A}if(L===m.length)return n(p,N),B&&Ot(p,L),S;if(N===null){for(;LL?(A=N,N=null):A=N.sibling;var Z=c(p,N,_.value,v);if(Z===null){N===null&&(N=A);break}e&&N&&Z.alternate===null&&t(p,N),d=l(Z,d,L),C===null?S=Z:C.sibling=Z,C=Z,N=A}if(_.done)return n(p,N),B&&Ot(p,L),S;if(N===null){for(;!_.done;L++,_=m.next())_=h(p,_.value,v),_!==null&&(d=l(_,d,L),C===null?S=_:C.sibling=_,C=_);return B&&Ot(p,L),S}for(N=r(p,N);!_.done;L++,_=m.next())_=y(N,p,L,_.value,v),_!==null&&(e&&_.alternate!==null&&N.delete(_.key===null?L:_.key),d=l(_,d,L),C===null?S=_:C.sibling=_,C=_);return e&&N.forEach(function(Ye){return t(p,Ye)}),B&&Ot(p,L),S}function O(p,d,m,v){if(typeof m=="object"&&m!==null&&m.type===Xt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case wr:e:{for(var S=m.key,C=d;C!==null;){if(C.key===S){if(S=m.type,S===Xt){if(C.tag===7){n(p,C.sibling),d=i(C,m.props.children),d.return=p,p=d;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ut&&Bs(S)===C.type){n(p,C.sibling),d=i(C,m.props),d.ref=On(p,C,m),d.return=p,p=d;break e}n(p,C);break}else t(p,C);C=C.sibling}m.type===Xt?(d=It(m.props.children,p.mode,v,m.key),d.return=p,p=d):(v=Yr(m.type,m.key,m.props,null,p.mode,v),v.ref=On(p,d,m),v.return=p,p=v)}return o(p);case Jt:e:{for(C=m.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=i(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=dl(m,p.mode,v),d.return=p,p=d}return o(p);case ut:return C=m._init,O(p,d,C(m._payload),v)}if(Fn(m))return x(p,d,m,v);if(Cn(m))return w(p,d,m,v);Rr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=i(d,m),d.return=p,p=d):(n(p,d),d=cl(m,p.mode,v),d.return=p,p=d),o(p)):n(p,d)}return O}var vn=Ju(!0),Xu=Ju(!1),ai=jt(null),ui=null,ln=null,Do=null;function Io(){Do=ln=ui=null}function Fo(e){var t=ai.current;H(ai),e._currentValue=t}function Kl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fn(e,t){ui=e,Do=ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(Do!==e)if(e={context:e,memoizedValue:t,next:null},ln===null){if(ui===null)throw Error(k(308));ln=e,ui.dependencies={lanes:0,firstContext:e}}else ln=ln.next=e;return t}var Tt=null;function $o(e){Tt===null?Tt=[e]:Tt.push(e)}function Zu(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$o(t)):(n.next=i.next,i.next=n),t.interleaved=n,it(e,r)}function it(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ct=!1;function Mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,it(e,n)}return i=r.interleaved,i===null?(t.next=t,$o(r)):(t.next=i.next,i.next=t),r.interleaved=t,it(e,n)}function Hr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,No(e,n)}}function Ks(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;ct=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var h=i.baseState;o=0,f=u=a=null,s=l;do{var c=s.lane,y=s.eventTime;if((r&c)===c){f!==null&&(f=f.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,w=s;switch(c=t,y=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){h=x.call(y,h,c);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,c=typeof x=="function"?x.call(y,h,c):x,c==null)break e;h=G({},h,c);break e;case 2:ct=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,c=i.effects,c===null?i.effects=[s]:c.push(s))}else y={eventTime:y,lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=y,a=h):f=f.next=y,o|=c;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;c=s,s=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}while(!0);if(f===null&&(a=h),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Ut|=o,e.lanes=o,e.memoizedState=h}}function Ws(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{$=n,ll.transition=r}}function gc(){return Re().memoizedState}function lp(e,t,n){var r=St(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e))vc(t,n);else if(n=Zu(e,t,n,r),n!==null){var i=fe();Ae(n,e,r,i),yc(n,t,r)}}function op(e,t,n){var r=St(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))vc(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ue(s,o)){var a=t.interleaved;a===null?(i.next=i,$o(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Zu(e,t,i,r),n!==null&&(i=fe(),Ae(n,e,r,i),yc(n,t,r))}}function mc(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function vc(e,t){Kn=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,No(e,n)}}var pi={readContext:ze,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},sp={readContext:ze,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:Gs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kr(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kr(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lp.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:Qs,useDebugValue:Qo,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=Qs(!1),t=e[0];return e=ip.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=Be();if(B){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),te===null)throw Error(k(349));At&30||nc(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Gs(ic.bind(null,r,l,e),[e]),r.flags|=2048,cr(9,rc.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Be(),t=te.identifierPrefix;if(B){var n=et,r=be;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ar++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ke]=t,e[lr]=r,Pc(e,t,!1,!1),t.stateNode=e;e:{switch(o=jl(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;iwn&&(t.flags|=128,r=!0,zn(l,!1),t.lanes=4194304)}else{if(!r)if(e=di(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!B)return se(t),null}else 2*J()-l.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,zn(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=J(),t.sibling=null,n=W.current,M(W,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return qo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function gp(e,t){switch(To(t),t.tag){case 1:return ye(t.type)&&ii(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),H(ve),H(ue),Vo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Uo(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return yn(),null;case 10:return Fo(t.type._context),null;case 22:case 23:return qo(),null;case 24:return null;default:return null}}var _r=!1,ae=!1,mp=typeof WeakSet=="function"?WeakSet:Set,j=null;function on(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function bl(e,t,n){try{n()}catch(r){Y(e,t,r)}}var ia=!1;function vp(e,t){if(Fl=ei,e=Iu(),zo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,f=0,h=e,c=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(s=o+i),h!==l||r!==0&&h.nodeType!==3||(a=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(y=h.firstChild)!==null;)c=h,h=y;for(;;){if(h===e)break t;if(c===n&&++u===i&&(s=o),c===l&&++f===r&&(a=o),(y=h.nextSibling)!==null)break;h=c,c=h.parentNode}h=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for($l={focusedElem:e,selectionRange:n},ei=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,O=x.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ie(t.type,w),O);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(v){Y(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return x=ia,ia=!1,x}function Wn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&bl(t,n,l)}i=i.next}while(i!==r)}}function Ti(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function eo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rc(e){var t=e.alternate;t!==null&&(e.alternate=null,Rc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ke],delete t[lr],delete t[Ul],delete t[bf],delete t[ep])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tc(e){return e.tag===5||e.tag===3||e.tag===4}function la(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function to(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ri));else if(r!==4&&(e=e.child,e!==null))for(to(e,t,n),e=e.sibling;e!==null;)to(e,t,n),e=e.sibling}function no(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(no(e,t,n),e=e.sibling;e!==null;)no(e,t,n),e=e.sibling}var ne=null,Fe=!1;function at(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Ci,n)}catch{}switch(n.tag){case 5:ae||on(n,t);case 6:var r=ne,i=Fe;ne=null,at(e,t,n),ne=r,Fe=i,ne!==null&&(Fe?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Fe?(e=ne,n=n.stateNode,e.nodeType===8?nl(e.parentNode,n):e.nodeType===1&&nl(e,n),er(e)):nl(ne,n.stateNode));break;case 4:r=ne,i=Fe,ne=n.stateNode.containerInfo,Fe=!0,at(e,t,n),ne=r,Fe=i;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&bl(n,t,o),i=i.next}while(i!==r)}at(e,t,n);break;case 1:if(!ae&&(on(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Y(n,t,s)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,at(e,t,n),ae=r):at(e,t,n);break;default:at(e,t,n)}}function oa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mp),t.forEach(function(r){var i=jp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function De(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xp(r/1960))-r,10e?16:e,ht===null)var r=!1;else{if(e=ht,ht=null,mi=0,I&6)throw Error(k(331));var i=I;for(I|=4,j=e.current;j!==null;){var l=j,o=l.child;if(j.flags&16){var s=l.deletions;if(s!==null){for(var a=0;aJ()-Xo?Dt(e,0):Jo|=n),xe(e,t)}function Vc(e,t){t===0&&(e.mode&1?(t=Cr,Cr<<=1,!(Cr&130023424)&&(Cr=4194304)):t=1);var n=fe();e=it(e,t),e!==null&&(gr(e,t,n),xe(e,n))}function Ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vc(e,n)}function jp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Vc(e,n)}var Hc;Hc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,pp(e,t,n);me=!!(e.flags&131072)}else me=!1,B&&t.flags&1048576&&Qu(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wr(e,t),e=t.pendingProps;var i=gn(t,ue.current);fn(t,n),i=Bo(null,t,r,e,i,n);var l=Ko();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(l=!0,li(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Mo(t),i.updater=Ri,t.stateNode=i,i._reactInternals=t,Ql(t,r,e,n),t=Jl(null,t,r,!0,l,n)):(t.tag=0,B&&l&&Ro(t),de(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wr(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Pp(r),e=Ie(r,e),i){case 0:t=Yl(null,t,r,e,n);break e;case 1:t=ta(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=ea(null,t,r,Ie(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),Yl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),ta(e,t,r,i,n);case 3:e:{if(Ec(t),e===null)throw Error(k(387));r=t.pendingProps,l=t.memoizedState,i=l.element,qu(e,t),ci(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=xn(Error(k(423)),t),t=na(e,t,r,n,i);break e}else if(r!==i){i=xn(Error(k(424)),t),t=na(e,t,r,n,i);break e}else for(Se=yt(t.stateNode.containerInfo.firstChild),ke=t,B=!0,$e=null,n=Xu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mn(),r===i){t=lt(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return bu(t),e===null&&Bl(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Ml(r,i)?o=null:l!==null&&Ml(r,l)&&(t.flags|=32),Cc(e,t),de(e,t,o,n),t.child;case 6:return e===null&&Bl(t),null;case 13:return jc(e,t,n);case 4:return Ao(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),bs(e,t,r,i,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,M(ai,r._currentValue),r._currentValue=o,l!==null)if(Ue(l.value,o)){if(l.children===i.children&&!ve.current){t=lt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=tt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Kl(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(k(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Kl(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}de(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fn(t,n),i=ze(i),r=r(i),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,i=Ie(r,t.pendingProps),i=Ie(r.type,i),ea(e,t,r,i,n);case 15:return kc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),Wr(e,t),t.tag=1,ye(r)?(e=!0,li(t)):e=!1,fn(t,n),xc(t,r,i),Ql(t,r,i,n),Jl(null,t,r,!0,e,n);case 19:return Lc(e,t,n);case 22:return Nc(e,t,n)}throw Error(k(156,t.tag))};function Bc(e,t){return mu(e,t)}function Lp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pe(e,t,n,r){return new Lp(e,t,n,r)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pp(e){if(typeof e=="function")return es(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xo)return 11;if(e===wo)return 14}return 2}function kt(e,t){var n=e.alternate;return n===null?(n=Pe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Yr(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")es(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Xt:return It(n.children,i,l,t);case yo:o=8,i|=8;break;case ml:return e=Pe(12,n,t,i|2),e.elementType=ml,e.lanes=l,e;case vl:return e=Pe(13,n,t,i),e.elementType=vl,e.lanes=l,e;case yl:return e=Pe(19,n,t,i),e.elementType=yl,e.lanes=l,e;case ba:return Di(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Za:o=10;break e;case qa:o=9;break e;case xo:o=11;break e;case wo:o=14;break e;case ut:o=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Pe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function It(e,t,n,r){return e=Pe(7,e,r,t),e.lanes=n,e}function Di(e,t,n,r){return e=Pe(22,e,r,t),e.elementType=ba,e.lanes=n,e.stateNode={isHidden:!1},e}function cl(e,t,n){return e=Pe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=Pe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Op(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ts(e,t,n,r,i,l,o,s,a){return e=new Op(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Pe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mo(l),e}function zp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Gc)}catch(e){console.error(e)}}Gc(),Ga.exports=Ce;var Ip=Ga.exports,Yc,ha=Ip;Yc=ha.createRoot,ha.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Fp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $p=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),le=(e,t)=>{const n=F.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:s="",children:a,...u},f)=>F.createElement("svg",{ref:f,...Fp,width:i,height:i,stroke:r,strokeWidth:o?Number(l)*24/Number(i):l,className:["lucide",`lucide-${$p(e)}`,s].join(" "),...u},[...t.map(([h,c])=>F.createElement(h,c)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mp=le("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ap=le("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Up=le("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vp=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hp=le("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bp=le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ga=le("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3v0a2 2 0 0 1 2 2v0c0 1.1.9 2 2 2v0a2 2 0 0 0 2-2v0c0-1.1.9-2 2-2h3.17",key:"1fi5u6"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2v0a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"xsiumc"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kp=le("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wp=le("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qp=le("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gp=le("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yp=le("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jp=le("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fl=le("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xp=le("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zp=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ma=le("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function qp(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ya=(e,t,n)=>{e.loadNamespaces(t,Jc(e,n))},xa=(e,t,n,r)=>{Ft(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Jc(e,r))},bp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,l=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,a)=>{const u=t.services.backendConnector.state[`${s}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(l,e)))},eh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(so("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,l)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!l(i.isLanguageChangingTo,e))return!1}}):bp(e,t,n)},Ft=e=>typeof e=="string",th=e=>typeof e=="object"&&e!==null,nh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rh={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ih=e=>rh[e],lh=e=>e.replace(nh,ih);let ao={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:lh};const oh=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ao={...ao,...e}},sh=()=>ao;let Xc;const ah=e=>{Xc=e},uh=()=>Xc,ch={type:"3rdParty",init(e){oh(e.options.react),ah(e)}},dh=F.createContext();class fh{constructor(){ls(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const ph=(e,t)=>{const n=F.useRef();return F.useEffect(()=>{n.current=e},[e,t]),n.current},Zc=(e,t,n,r)=>e.getFixedT(t,n,r),hh=(e,t,n,r)=>F.useCallback(Zc(e,t,n,r),[e,t,n,r]),gh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=F.useContext(dh)||{},l=n||r||uh();if(l&&!l.reportNamespaces&&(l.reportNamespaces=new fh),!l){so("You will need to pass in an i18next instance by using initReactI18next");const v=(C,N)=>Ft(N)?N:th(N)&&Ft(N.defaultValue)?N.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[v,{},!1];return S.t=v,S.i18n={},S.ready=!1,S}l.options.react&&l.options.react.wait!==void 0&&so("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...sh(),...l.options.react,...t},{useSuspense:s,keyPrefix:a}=o;let u=i||l.options&&l.options.defaultNS;u=Ft(u)?[u]:u||["translation"],l.reportNamespaces.addUsedNamespaces&&l.reportNamespaces.addUsedNamespaces(u);const f=(l.isInitialized||l.initializedStoreOnce)&&u.every(v=>eh(v,l,o)),h=hh(l,t.lng||null,o.nsMode==="fallback"?u:u[0],a),c=()=>h,y=()=>Zc(l,t.lng||null,o.nsMode==="fallback"?u:u[0],a),[x,w]=F.useState(c);let O=u.join();t.lng&&(O=`${t.lng}${O}`);const p=ph(O),d=F.useRef(!0);F.useEffect(()=>{const{bindI18n:v,bindI18nStore:S}=o;d.current=!0,!f&&!s&&(t.lng?xa(l,t.lng,u,()=>{d.current&&w(y)}):ya(l,u,()=>{d.current&&w(y)})),f&&p&&p!==O&&d.current&&w(y);const C=()=>{d.current&&w(y)};return v&&l&&l.on(v,C),S&&l&&l.store.on(S,C),()=>{d.current=!1,v&&l&&v.split(" ").forEach(N=>l.off(N,C)),S&&l&&S.split(" ").forEach(N=>l.store.off(N,C))}},[l,O]),F.useEffect(()=>{d.current&&f&&w(c)},[l,a,f]);const m=[x,l,f];if(m.t=x,m.i18n=l,m.ready=f,f||!f&&!s)return m;throw new Promise(v=>{t.lng?xa(l,t.lng,u,()=>v()):ya(l,u,()=>v())})},T=e=>typeof e=="string",Tn=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},wa=e=>e==null?"":""+e,mh=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},vh=/###/g,Sa=e=>e&&e.indexOf("###")>-1?e.replace(vh,"."):e,ka=e=>!e||T(e),Yn=(e,t,n)=>{const r=T(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:i}=Yn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let l=t[t.length-1],o=t.slice(0,t.length-1),s=Yn(e,o,Object);for(;s.obj===void 0&&o.length;)l=`${o[o.length-1]}.${l}`,o=o.slice(0,o.length-1),s=Yn(e,o,Object),s&&s.obj&&typeof s.obj[`${s.k}.${l}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${l}`]=n},yh=(e,t,n,r)=>{const{obj:i,k:l}=Yn(e,t,Object);i[l]=i[l]||[],i[l].push(n)},xi=(e,t)=>{const{obj:n,k:r}=Yn(e,t);if(n)return n[r]},xh=(e,t,n)=>{const r=xi(e,n);return r!==void 0?r:xi(t,n)},qc=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?T(e[r])||e[r]instanceof String||T(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):qc(e[r],t[r],n):e[r]=t[r]);return e},Gt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var wh={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Sh=e=>T(e)?e.replace(/[&<>"'\/]/g,t=>wh[t]):e;class kh{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Nh=[" ",",","?","!",";"],Ch=new kh(20),Eh=(e,t,n)=>{t=t||"",n=n||"";const r=Nh.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=Ch.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let l=!i.test(e);if(!l){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(l=!0)}return l},uo=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let l=0;l-1&&ae&&e.replace("_","-"),jh={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Si{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||jh,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,a]=o;for(let u=0;u{let[s,a]=o;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):T(r)&&l?s.push(...r.split(l)):s.push(r)));const a=xi(this.data,s);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),a||!o||!T(r)?a:uo(this.data&&this.data[t]&&this.data[t][n],r,l)}addResource(t,n,r,i){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),Na(this.data,s,i),l.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const l in r)(T(r[l])||Array.isArray(r[l]))&&this.addResource(t,n,l,r[l],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,l){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let a=xi(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?qc(a,r,l):a={...a,...r},Na(this.data,s,a),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var bc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(l=>{this.processors[l]&&(t=this.processors[l].process(t,n,r,i))}),t}};const Ea={};class ki extends Ai{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),mh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=We.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Eh(t,r,i);if(o&&!s){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:T(l)?[l]:l};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(l=u.shift()),t=u.join(i)}return{key:t,namespaces:T(l)?[l]:l}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,l=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),a=s[s.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const v=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${v}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${v}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:o}const h=this.resolve(t,n);let c=h&&h.res;const y=h&&h.usedKey||o,x=h&&h.exactUsedKey||o,w=Object.prototype.toString.apply(c),O=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,d=!this.i18nFormat||this.i18nFormat.handleAsObject,m=!T(c)&&typeof c!="boolean"&&typeof c!="number";if(d&&c&&m&&O.indexOf(w)<0&&!(T(p)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const v=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,c,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=v,h.usedParams=this.getUsedParamsDetails(n),h):v}if(l){const v=Array.isArray(c),S=v?[]:{},C=v?x:y;for(const N in c)if(Object.prototype.hasOwnProperty.call(c,N)){const L=`${C}${l}${N}`;S[N]=this.translate(L,{...n,joinArrays:!1,ns:s}),S[N]===L&&(S[N]=c[N])}c=S}}else if(d&&T(p)&&Array.isArray(c))c=c.join(p),c&&(c=this.extendTranslation(c,t,n,r));else{let v=!1,S=!1;const C=n.count!==void 0&&!T(n.count),N=ki.hasDefaultValue(n),L=C?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Z=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${L}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(c)&&N&&(v=!0,c=Z),this.isValidLookup(c)||(S=!0,c=o);const Je=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:c,Te=N&&Z!==c&&this.options.updateMissing;if(S||v||Te){if(this.logger.log(Te?"updateKey":"missingKey",u,a,o,Te?Z:c),l){const E=this.resolve(o,{...n,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ve=[];const _e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&_e&&_e[0])for(let E=0;E<_e.length;E++)Ve.push(_e[E]);else this.options.saveMissingTo==="all"?Ve=this.languageUtils.toResolveHierarchy(n.lng||this.language):Ve.push(n.lng||this.language);const st=(E,z,R)=>{const P=N&&R!==c?R:Je;this.options.missingKeyHandler?this.options.missingKeyHandler(E,a,z,P,Te,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(E,a,z,P,Te,n),this.emit("missingKey",E,a,z,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Ve.forEach(E=>{const z=this.pluralResolver.getSuffixes(E,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(R=>{st([E],o+R,n[`defaultValue${R}`]||Z)})}):st(Ve,o,Z))}c=this.extendTranslation(c,t,n,h,r),S&&c===o&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${o}`),(S||v)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,v?c:void 0):c=this.options.parseMissingKeyHandler(c))}return i?(h.res=c,h.usedParams=this.getUsedParamsDetails(n),h):c}extendTranslation(t,n,r,i,l){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=T(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let h=r.replace&&!T(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||i.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),y=c&&c.length;f1&&arguments[1]!==void 0?arguments[1]:{},r,i,l,o,s;return T(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;i=f;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=n.count!==void 0&&!T(n.count),y=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(T(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(O=>{this.isValidLookup(r)||(s=O,!Ea[`${w[0]}-${O}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ea[`${w[0]}-${O}`]=!0,this.logger.warn(`key "${i}" for languages "${w.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(p=>{if(this.isValidLookup(r))return;o=p;const d=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(d,f,p,O,n);else{let v;c&&(v=this.pluralResolver.getSuffix(p,n.count,n));const S=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(d.push(f+v),n.ordinal&&v.indexOf(C)===0&&d.push(f+v.replace(C,this.options.pluralSeparator)),y&&d.push(f+S)),x){const N=`${f}${this.options.contextSeparator}${n.context}`;d.push(N),c&&(d.push(N+v),n.ordinal&&v.indexOf(C)===0&&d.push(N+v.replace(C,this.options.pluralSeparator)),y&&d.push(N+S))}}let m;for(;m=d.pop();)this.isValidLookup(r)||(l=m,r=this.getResource(p,O,m,n))}))})}),{res:r,usedKey:i,exactUsedKey:l,usedLng:o,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!T(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const l of n)delete i[l]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const pl=e=>e.charAt(0).toUpperCase()+e.slice(1);class ja{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=We.create("languageUtils")}getScriptPartFromCode(t){if(t=wi(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=wi(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(T(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=pl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(l=>{if(l===i)return l;if(!(l.indexOf("-")<0&&i.indexOf("-")<0)&&(l.indexOf("-")>0&&i.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===i||l.indexOf(i)===0&&i.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),T(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],l=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return T(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):T(t)&&l(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&l(this.formatLanguageCode(o))}),i}}let Lh=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ph={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Oh=["v1","v2","v3"],zh=["v4"],La={zero:0,one:1,two:2,few:3,many:4,other:5},Rh=()=>{const e={};return Lh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Ph[t.fc]}})}),e};class Th{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=We.create("pluralResolver"),(!this.options.compatibilityJSON||zh.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Rh(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=wi(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:r,type:i});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(a,n)}return this.pluralRulesCache[l]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,l)=>La[i]-La[l]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const l=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?l():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Oh.includes(this.options.compatibilityJSON)}}const Pa=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=xh(e,t,n);return!l&&i&&T(n)&&(l=uo(e,n,r),l===void 0&&(l=uo(t,n,r))),l},hl=e=>e.replace(/\$/g,"$$$$");class _h{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=We.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:l,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:y,nestingSuffix:x,nestingSuffixEscaped:w,nestingOptionsSeparator:O,maxReplaces:p,alwaysFormat:d}=t.interpolation;this.escape=n!==void 0?n:Sh,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=l?Gt(l):o||"{{",this.suffix=s?Gt(s):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?Gt(c):y||Gt("$t("),this.nestingSuffix=x?Gt(x):w||Gt(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=p||1e3,this.alwaysFormat=d!==void 0?d:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let l,o,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=y=>{if(y.indexOf(this.formatSeparator)<0){const p=Pa(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:y}):p}const x=y.split(this.formatSeparator),w=x.shift().trim(),O=x.join(this.formatSeparator).trim();return this.format(Pa(n,a,w,this.options.keySeparator,this.options.ignoreJSONStructure),O,r,{...i,...n,interpolationkey:w})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>hl(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?hl(this.escape(y)):hl(y)}].forEach(y=>{for(s=0;l=y.regex.exec(t);){const x=l[1].trim();if(o=u(x),o===void 0)if(typeof f=="function"){const O=f(t,l,i);o=T(O)?O:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))o="";else if(h){o=l[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),o="";else!T(o)&&!this.useRawValueToEscape&&(o=wa(o));const w=y.safeValue(o);if(t=t.replace(l[0],w),h?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=l[0].length):y.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,l,o;const s=(a,u)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const h=a.split(new RegExp(`${f}[ ]*{`));let c=`{${h[1]}`;a=h[0],c=this.interpolate(c,o);const y=c.match(/'/g),x=c.match(/"/g);(y&&y.length%2===0&&!x||x.length%2!==0)&&(c=c.replace(/'/g,'"'));try{o=JSON.parse(c),u&&(o={...u,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${f}${c}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,a};for(;i=this.nestingRegexp.exec(t);){let a=[];o={...r},o=o.replace&&!T(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=f.shift(),a=f,u=!0}if(l=n(s.call(this,i[1].trim(),o),o),l&&i[0]===t&&!T(l))return l;T(l)||(l=wa(l)),l||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),l=""),u&&(l=a.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:i[1].trim()}),l.trim())),t=t.replace(i[0],l),this.regexp.lastIndex=0}return t}}const Dh=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[s,...a]=o.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=s.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Yt=e=>{const t={};return(n,r,i)=>{let l=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(l={...l,[i.interpolationkey]:void 0});const o=r+JSON.stringify(l);let s=t[o];return s||(s=e(wi(r),i),t[o]=s),s(n)}};class Ih{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=We.create("formatter"),this.options=t,this.formats={number:Yt((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return l=>i.format(l)}),currency:Yt((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return l=>i.format(l)}),datetime:Yt((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return l=>i.format(l)}),relativetime:Yt((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return l=>i.format(l,r.range||"day")}),list:Yt((n,r)=>{const i=new Intl.ListFormat(n,{...r});return l=>i.format(l)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Yt(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(s=>s.indexOf(")")>-1)){const s=l.findIndex(a=>a.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,s)].join(this.formatSeparator)}return l.reduce((s,a)=>{const{formatName:u,formatOptions:f}=Dh(a);if(this.formats[u]){let h=s;try{const c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=c.locale||c.lng||i.locale||i.lng||r;h=this.formats[u](s,y,{...f,...i,...c})}catch(c){this.logger.warn(c)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Fh=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class $h extends Ai{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=We.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const l={},o={},s={},a={};return t.forEach(u=>{let f=!0;n.forEach(h=>{const c=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?o[c]===void 0&&(o[c]=!0):(this.state[c]=1,f=!1,o[c]===void 0&&(o[c]=!0),l[c]===void 0&&(l[c]=!0),a[h]===void 0&&(a[h]=!0)))}),f||(s[u]=!0)}),(Object.keys(l).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(l),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),l=i[0],o=i[1];n&&this.emit("failedLoading",l,o,n),!n&&r&&this.store.addResourceBundle(l,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(a=>{yh(a.loaded,[l],o),Fh(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{s[u]||(s[u]={});const f=a.loaded[u];f.length&&f.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:l,callback:o});return}this.readingCalls++;const s=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&f&&i{this.read.call(this,t,n,r,i+1,l*2,o)},l);return}o(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}return}return a(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();T(t)&&(t=this.languageUtils.toResolveHierarchy(t)),T(n)&&(n=[n]);const l=this.queueLoad(t,n,r,i);if(!l.toLoad.length)return l.pending.length||i(),null;l.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],l=r[1];this.read(i,l,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn(`${n}loading namespace ${l} for language ${i} failed`,o),!o&&s&&this.logger.log(`${n}loaded namespace ${l} for language ${i}`,s),this.loaded(t,o,s)})}saveMissing(t,n,r,i,l){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...o,isUpdate:l},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,i,a):f=u(t,n,r,i),f&&typeof f.then=="function"?f.then(h=>s(null,h)).catch(s):s(null,f)}catch(f){s(f)}else u(t,n,r,i,s,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Oa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),T(e[1])&&(t.defaultValue=e[1]),T(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),za=e=>(T(e.ns)&&(e.ns=[e.ns]),T(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),T(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fr=()=>{},Mh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class fr extends Ai{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=za(t),this.services={},this.logger=We,this.modules={external:[]},Mh(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(T(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Oa();this.options={...i,...this.options,...za(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const l=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?We.init(l(this.modules.logger),this.options):We.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Ih);const h=new ja(this.options);this.store=new Ca(this.options.resources,this.options);const c=this.services;c.logger=We,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new Th(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(c.formatter=l(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new _h(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new $h(l(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var x=arguments.length,w=new Array(x>1?x-1:0),O=1;O1?x-1:0),O=1;O{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=Tn(),u=()=>{const f=(h,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(h,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fr;const i=T(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const l=[],o=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&l.indexOf(u)<0&&l.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(s=>o(s)),this.services.backendConnector.load(l,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=Tn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Fr),this.services.backendConnector.reload(t,n,l=>{i.resolve(),r(l)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&bc.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Tn();this.emit("languageChanging",t);const l=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?(l(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},s=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=T(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||l(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{o(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const l=function(o,s){let a;if(typeof s!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),h=2;h`${a.keyPrefix}${c}${x}`):y=a.keyPrefix?`${a.keyPrefix}${c}${o}`:o,i.t(y,a)};return T(t)?l.lng=t:l.lngs=t,l.ns=n,l.keyPrefix=r,l}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(s,a)=>{const u=this.services.backendConnector.state[`${s}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(l,t)))}loadNamespaces(t,n){const r=Tn();return this.options.ns?(T(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Tn();T(t)&&(t=[t]);const i=this.options.preload||[],l=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return l.length?(this.options.preload=i.concat(l),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new ja(Oa());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new fr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fr;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},l=new fr(i);return(t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(s=>{l[s]=this[s]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},r&&(l.store=new Ca(this.store.data,i),l.services.resourceStore=l.store),l.translator=new ki(l.services,i),l.translator.on("*",function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!Ra.test(i.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(i.domain)}if(i.path){if(!Ra.test(i.path))throw new TypeError("option path is invalid");o+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite){var a=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(a){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},Ta={create:function(t,n,r,i){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(l.expires=new Date,l.expires.setTime(l.expires.getTime()+r*60*1e3)),i&&(l.domain=i),document.cookie=Gh(t,encodeURIComponent(n),l)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),l=i.split("&"),o=0;o0){var a=l[o].substring(0,s);a===t.lookupQuerystring&&(n=l[o].substring(s+1))}}}return n}},_n=null,_a=function(){if(_n!==null)return _n;try{_n=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{_n=!1}return _n},Xh={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&_a()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&_a()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},Dn=null,Da=function(){if(Dn!==null)return Dn;try{Dn=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Dn=!1}return Dn},Zh={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Da()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Da()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},qh={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},bh={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},eg={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},tg={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},td=!1;try{document.cookie,td=!0}catch{}var nd=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];td||nd.splice(1,1);function ng(){return{order:nd,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var rd=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ah(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Bh(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Qh(r,this.options||{},ng()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(l){return l.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Yh),this.addDetector(Jh),this.addDetector(Xh),this.addDetector(Zh),this.addDetector(qh),this.addDetector(bh),this.addDetector(eg),this.addDetector(tg)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(l){if(r.detectors[l]){var o=r.detectors[l].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(i=i.concat(o))}}),i=i.map(function(l){return r.options.convertDetectedLanguage(l)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(l){i.detectors[l]&&i.detectors[l].cacheUserLanguage(n,i.options)}))}}])}();rd.type="languageDetector";const rg="SecureFlow",ig="Advanced Download Management System with intelligent content detection, military-grade encryption, and distributed European network infrastructure.",lg="Beta Access Only - Invitation Required",og="Note: Our service strictly prohibits downloading copyrighted materials.",sg={servers:"Active Servers",uptime:"Uptime",speed:"Speed"},ag={title:"Select File Type",auto:"Auto-detect",video:"Video",audio:"Audio",document:"Document",archive:"Archive"},ug={url:"Enter Download URL",button:"Download"},cg={speed:{title:"Lightning Fast",description:"Advanced P2P technology with distributed nodes across Europe. Experience unlimited speeds with our optimized network infrastructure."},security:{title:"Secure Downloads",description:"Enterprise-grade encryption and secure peer verification. Your downloads are protected with military-grade security protocols."},network:{title:"Global Network",description:"Dynamic server pool that updates every 2 hours. Smart routing ensures optimal speeds from the nearest locations."}},dg={title:"Network Status",serversOnline:"Servers Online",version:"Beta v0.9.2"},fg={title:"Authentication Required",description:"You need to be authenticated to access our download system",email:"Email Address",emailPlaceholder:"Enter your email",button:"Request Access Key"},pg={rights:"All rights reserved.",developed:"Developed in the EU. GDPR Compliant.",copyright:"We respect intellectual property rights and prohibit downloading copyrighted content."},hg={title:rg,subtitle:ig,betaAccess:lg,copyrightNotice:og,stats:sg,fileTypes:ag,download:ug,features:cg,networkStatus:dg,auth:fg,footer:pg},gg="SecureFlow",mg="Fortschrittliches Download-Management-System mit intelligenter Inhaltserkennung, militärischer Verschlüsselung und verteilter europäischer Netzwerkinfrastruktur.",vg="Nur Beta-Zugang - Einladung erforderlich",yg="Hinweis: Unser Service verbietet strikt das Herunterladen urheberrechtlich geschützter Materialien.",xg={servers:"Aktive Server",uptime:"Verfügbarkeit",speed:"Geschwindigkeit"},wg={title:"Dateityp auswählen",auto:"Auto-Erkennung",video:"Video",audio:"Audio",document:"Dokument",archive:"Archiv"},Sg={url:"Download-URL eingeben",button:"Herunterladen"},kg={speed:{title:"Blitzschnell",description:"Fortschrittliche P2P-Technologie mit verteilten Knoten in ganz Europa. Erleben Sie unbegrenzte Geschwindigkeiten mit unserer optimierten Netzwerkinfrastruktur."},security:{title:"Sichere Downloads",description:"Unternehmenstaugliche Verschlüsselung und sichere Peer-Verifizierung. Ihre Downloads sind durch militärische Sicherheitsprotokolle geschützt."},network:{title:"Globales Netzwerk",description:"Dynamischer Server-Pool, der alle 2 Stunden aktualisiert wird. Intelligentes Routing gewährleistet optimale Geschwindigkeiten von den nächstgelegenen Standorten."}},Ng={title:"Netzwerkstatus",serversOnline:"Server Online",version:"Beta v0.9.2"},Cg={title:"Authentifizierung erforderlich",description:"Sie müssen sich authentifizieren, um unser Download-System zu nutzen",email:"E-Mail-Adresse",emailPlaceholder:"E-Mail eingeben",button:"Zugriffsschlüssel anfordern"},Eg={rights:"Alle Rechte vorbehalten.",developed:"Entwickelt in der EU. DSGVO-konform.",copyright:"Wir respektieren geistige Eigentumsrechte und verbieten das Herunterladen urheberrechtlich geschützter Inhalte."},jg={title:gg,subtitle:mg,betaAccess:vg,copyrightNotice:yg,stats:xg,fileTypes:wg,download:Sg,features:kg,networkStatus:Ng,auth:Cg,footer:Eg},Lg="SecureFlow",Pg="Продвинутая система управления загрузками с интеллектуальным определением контента, военным шифрованием и распределенной европейской сетевой инфраструктурой.",Og="Только бета-доступ - Требуется приглашение",zg="Примечание: Наш сервис строго запрещает загрузку материалов, защищенных авторским правом.",Rg={servers:"Активные серверы",uptime:"Время работы",speed:"Скорость"},Tg={title:"Выберите тип файла",auto:"Автоопределение",video:"Видео",audio:"Аудио",document:"Документ",archive:"Архив"},_g={url:"Введите URL для загрузки",button:"Загрузить"},Dg={speed:{title:"Молниеносная скорость",description:"Передовая P2P технология с распределенными узлами по всей Европе. Испытайте неограниченные скорости с нашей оптимизированной сетевой инфраструктурой."},security:{title:"Безопасные загрузки",description:"Корпоративное шифрование и безопасная верификация пиров. Ваши загрузки защищены протоколами военного уровня безопасности."},network:{title:"Глобальная сеть",description:"Динамический пул серверов, обновляющийся каждые 2 часа. Умная маршрутизация обеспечивает оптимальную скорость с ближайших локаций."}},Ig={title:"Статус сети",serversOnline:"Серверов онлайн",version:"Бета v0.9.2"},Fg={title:"Требуется аутентификация",description:"Для доступа к системе загрузки необходима аутентификация",email:"Email адрес",emailPlaceholder:"Введите email",button:"Запросить ключ доступа"},$g={rights:"Все права защищены.",developed:"Разработано в ЕС. Соответствует GDPR.",copyright:"Мы уважаем права интеллектуальной собственности и запрещаем загрузку контента, защищенного авторским правом."},Mg={title:Lg,subtitle:Pg,betaAccess:Og,copyrightNotice:zg,stats:Rg,fileTypes:Tg,download:_g,features:Dg,networkStatus:Ig,auth:Fg,footer:$g};ce.use(rd).use(ch).init({resources:{en:{translation:hg},de:{translation:jg},ru:{translation:Mg}},fallbackLng:"en",interpolation:{escapeValue:!1}});const Ag=[{country:"Germany",cities:["Frankfurt","Berlin","Munich","Hamburg","Düsseldorf"]},{country:"Netherlands",cities:["Amsterdam","Rotterdam","Utrecht","The Hague","Eindhoven"]},{country:"Estonia",cities:["Tallinn","Tartu","Narva"]},{country:"Romania",cities:["Bucharest","Cluj-Napoca","Timișoara","Iași"]},{country:"Finland",cities:["Helsinki","Tampere","Turku"]},{country:"Sweden",cities:["Stockholm","Gothenburg","Malmö"]},{country:"Norway",cities:["Oslo","Bergen","Trondheim"]},{country:"Denmark",cities:["Copenhagen","Aarhus","Odense"]},{country:"Poland",cities:["Warsaw","Kraków","Gdańsk","Wrocław"]},{country:"Czech Republic",cities:["Prague","Brno","Ostrava"]}],Ia=[{code:"en",name:"English",flag:"🇬🇧"},{code:"de",name:"Deutsch",flag:"🇩🇪"},{code:"ru",name:"Русский",flag:"🇷🇺"},{code:"fr",name:"Français",flag:"🇫🇷"}];function Ug(){var R;const{t:e,i18n:t}=gh(),[n,r]=F.useState(null),[i,l]=F.useState(""),[o,s]=F.useState("1080p"),[a,u]=F.useState("320"),[f,h]=F.useState("pdf"),[c,y]=F.useState("zip"),[x,w]=F.useState(!0),[O,p]=F.useState(!1),[d,m]=F.useState(""),[v,S]=F.useState(""),[C,N]=F.useState(""),[L,A]=F.useState(!1),[_,Z]=F.useState([]),[Ye,Je]=F.useState(0),[Te,Ve]=F.useState(!1);F.useEffect(()=>{_e();const P=setInterval(_e,2*60*60*1e3);return()=>clearInterval(P)},[]);const _e=()=>{const P=[],U=Math.floor(Math.random()*6)+5;[...Ag].sort(()=>Math.random()-.5).slice(0,U).forEach(({country:Pt,cities:Xe})=>{const Wt=[...Xe].sort(()=>Math.random()-.5),id=Math.floor(Math.random()*3)+1;Wt.slice(0,id).forEach(ld=>{const od={country:Pt,city:ld,status:Math.random()>.9?"degraded":"operational",uptime:99.5+Math.random()*.5,responseTime:20+Math.random()*80};P.push(od)})}),Je(P.length),Z(P)},st=()=>{if(!i.trim()){N(e("download.urlError"));return}p(!0)},E=()=>{if(!d){S(e("auth.emailRequired"));return}if(!d.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)){S(e("auth.invalidEmail"));return}S(e("auth.notFound"))},z=P=>{t.changeLanguage(P),Ve(!1)};return g.jsxs("div",{className:"min-h-screen bg-mesh text-white overflow-x-hidden",children:[g.jsx("div",{className:"fixed top-4 right-4 z-50",children:g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>Ve(!Te),className:"glass-card px-4 py-2 rounded-xl flex items-center gap-2 hover:bg-white/10 transition-all",children:[g.jsx(ga,{size:20}),g.jsx("span",{children:(R=Ia.find(P=>P.code===t.language))==null?void 0:R.flag})]}),Te&&g.jsx("div",{className:"absolute top-full right-0 mt-2 glass-card rounded-xl overflow-hidden w-40 animate-[slideDown_0.2s_ease-out]",children:Ia.map(P=>g.jsxs("button",{onClick:()=>z(P.code),className:`w-full px-4 py-2 flex items-center gap-2 hover:bg-white/10 transition-all ${t.language===P.code?"bg-white/10":""}`,children:[g.jsx("span",{children:P.flag}),g.jsx("span",{children:P.name})]},P.code))})]})}),g.jsx("div",{className:"bg-emerald-600/90 backdrop-blur-sm py-2 px-4 text-center sticky top-0 z-40 shimmer",children:g.jsxs("p",{className:"text-sm font-medium flex items-center justify-center gap-2",children:[g.jsx(fl,{size:16,className:"animate-pulse"})," ",e("betaAccess")]})}),g.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8 md:py-16",children:[g.jsxs("div",{className:"text-center mb-8 md:mb-12 relative",children:[g.jsx("div",{className:"absolute inset-0 -z-10 flex items-center justify-center opacity-10",children:g.jsx("div",{className:"w-48 md:w-64 h-48 md:h-64 bg-emerald-500 rounded-full blur-3xl animate-pulse"})}),g.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-4 flex items-center justify-center gap-3 text-gradient",children:[g.jsx(ma,{className:"text-emerald-400 w-8 h-8 md:w-10 md:h-10 animate-pulse"}),e("title")]}),g.jsxs("p",{className:"text-gray-300 text-base md:text-lg max-w-2xl mx-auto animate-[fadeIn_0.5s_ease-out]",children:[e("subtitle"),g.jsx("span",{className:"block mt-2 text-sm text-emerald-400",children:e("copyrightNotice")})]}),g.jsxs("div",{className:"mt-6 md:mt-8 grid grid-cols-1 sm:grid-cols-3 gap-3 md:gap-4 max-w-lg mx-auto stats-grid",children:[g.jsxs("div",{className:"glass-card rounded-xl p-3 stats-card",children:[g.jsx("div",{className:"text-xl md:text-2xl font-bold text-emerald-400",children:Ye}),g.jsx("div",{className:"text-sm text-gray-400",children:e("stats.servers")}),g.jsx("div",{className:"stats-emoji emoji-1",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-2",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-3",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-4",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-5",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-6",children:"👍"})]}),g.jsxs("div",{className:"glass-card rounded-xl p-3 stats-card",children:[g.jsx("div",{className:"text-xl md:text-2xl font-bold text-emerald-400",children:"99.9%"}),g.jsx("div",{className:"text-sm text-gray-400",children:e("stats.uptime")}),g.jsx("div",{className:"stats-emoji emoji-1",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-2",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-3",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-4",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-5",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-6",children:"⭐"})]}),g.jsxs("div",{className:"glass-card rounded-xl p-3 stats-card",children:[g.jsx("div",{className:"text-xl md:text-2xl font-bold text-emerald-400",children:"3TB/s"}),g.jsx("div",{className:"text-sm text-gray-400",children:e("stats.speed")}),g.jsx("div",{className:"stats-emoji emoji-1",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-2",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-3",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-4",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-5",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-6",children:"⚡"})]})]})]}),g.jsxs("div",{className:"glass-card rounded-xl p-6 relative overflow-hidden hover:border-emerald-500/20 transition-all duration-300",children:[g.jsx("div",{className:"absolute top-0 right-0 w-32 md:w-40 h-32 md:h-40 bg-emerald-500/10 rounded-full blur-2xl -z-10 animate-pulse"}),g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"text-lg font-medium text-gray-300 mb-4 flex items-center gap-2",children:[g.jsx(Jp,{size:20,className:"text-emerald-400"}),e("fileTypes.title")]}),g.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[g.jsxs("button",{onClick:()=>r("auto"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="auto"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Yp,{size:20}),e("fileTypes.auto")]}),g.jsxs("button",{onClick:()=>r("video"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="video"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Xp,{size:20}),e("fileTypes.video")]}),g.jsxs("button",{onClick:()=>r("audio"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="audio"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Gp,{size:20}),e("fileTypes.audio")]}),g.jsxs("button",{onClick:()=>r("document"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="document"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Kp,{size:20}),e("fileTypes.document")]}),g.jsxs("button",{onClick:()=>r("archive"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="archive"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Ap,{size:20}),e("fileTypes.archive")]})]})]}),n&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"relative",children:[g.jsxs("label",{className:"block text-sm font-medium text-gray-300 mb-2 flex items-center gap-2",children:[g.jsx(Wp,{size:16,className:"text-emerald-400"}),e("download.url")]}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[g.jsx("input",{type:"text",value:i,onChange:P=>{l(P.target.value),N("")},placeholder:"https://",className:"flex-1 glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500 text-white placeholder-gray-500"}),g.jsxs("button",{onClick:st,className:"bg-emerald-600 hover:bg-emerald-700 px-6 py-2 rounded-xl flex items-center justify-center gap-2 transition-colors shadow-lg hover:shadow-emerald-500/20 whitespace-nowrap hover-glow",children:[g.jsx(Bp,{size:20}),e("download.button")]})]}),C&&g.jsx("div",{className:"mt-2 text-red-400 text-sm bg-red-400/10 backdrop-blur-sm p-3 rounded-xl border border-red-400/20",children:C})]}),n==="auto"&&g.jsx("div",{className:"space-y-4",children:g.jsx("div",{className:"glass-card p-4 rounded-xl",children:g.jsx("p",{className:"text-sm text-gray-300",children:"Our AI will automatically detect the content type and optimize the download settings. This is the recommended option for most users."})})}),n==="video"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[g.jsx("input",{type:"checkbox",id:"autoDetect",checked:x,onChange:P=>w(P.target.checked),className:"w-4 h-4 text-emerald-600 border-gray-600 rounded focus:ring-emerald-500 bg-gray-700"}),g.jsx("label",{htmlFor:"autoDetect",className:"text-sm text-gray-300",children:"Auto-detect optimal quality (Recommended)"})]}),g.jsxs("select",{value:o,onChange:P=>{s(P.target.value),w(!1)},disabled:x,className:`w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500 ${x?"opacity-50 cursor-not-allowed":""}`,children:[g.jsx("option",{value:"4k",children:"4K Ultra HD (2160p)"}),g.jsx("option",{value:"1440p",children:"2K Quad HD (1440p)"}),g.jsx("option",{value:"1080p",children:"Full HD (1080p)"}),g.jsx("option",{value:"720p",children:"HD Ready (720p)"}),g.jsx("option",{value:"480p",children:"SD (480p)"})]})]}),n==="audio"&&g.jsx("div",{className:"space-y-2",children:g.jsxs("select",{value:a,onChange:P=>u(P.target.value),className:"w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500",children:[g.jsx("option",{value:"320",children:"High Quality (320 kbps)"}),g.jsx("option",{value:"256",children:"Premium (256 kbps)"}),g.jsx("option",{value:"192",children:"Standard (192 kbps)"}),g.jsx("option",{value:"128",children:"Basic (128 kbps)"})]})}),n==="document"&&g.jsx("div",{className:"space-y-2",children:g.jsxs("select",{value:f,onChange:P=>h(P.target.value),className:"w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500",children:[g.jsx("option",{value:"pdf",children:"PDF - Universal Format"}),g.jsx("option",{value:"doc",children:"DOC - Microsoft Word"}),g.jsx("option",{value:"docx",children:"DOCX - Modern Word Format"}),g.jsx("option",{value:"txt",children:"TXT - Plain Text"}),g.jsx("option",{value:"rtf",children:"RTF - Rich Text Format"})]})}),n==="archive"&&g.jsx("div",{className:"space-y-2",children:g.jsxs("select",{value:c,onChange:P=>y(P.target.value),className:"w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500",children:[g.jsx("option",{value:"zip",children:"ZIP - Universal Compression"}),g.jsx("option",{value:"rar",children:"RAR - Better Compression"}),g.jsx("option",{value:"7z",children:"7Z - Maximum Compression"}),g.jsx("option",{value:"tar",children:"TAR - Unix Archive"}),g.jsx("option",{value:"gz",children:"GZ - Fast Compression"})]})})]})]})]}),g.jsxs("div",{className:"mt-8 md:mt-12 grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6",children:[g.jsxs("div",{className:"feature-card glass-card rounded-xl p-6 hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"relative",children:[g.jsx(ma,{className:"feature-icon text-emerald-400 mb-4 transition-all duration-300",size:24}),g.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 blur-2xl -z-10"})]}),g.jsx("h3",{className:"text-lg font-semibold mb-2",children:e("features.speed.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("features.speed.description")})]}),g.jsxs("div",{className:"feature-card glass-card rounded-xl p-6 hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"relative",children:[g.jsx(fl,{className:"feature-icon text-emerald-400 mb-4 transition-all duration-300",size:24}),g.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 blur-2xl -z-10"})]}),g.jsx("h3",{className:"text-lg font-semibold mb-2",children:e("features.security.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("features.security.description")})]}),g.jsxs("div",{className:"feature-card glass-card rounded-xl p-6 hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"relative",children:[g.jsx(ga,{className:"feature-icon text-emerald-400 mb-4 transition-all duration-300",size:24}),g.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 blur-2xl -z-10"})]}),g.jsx("h3",{className:"text-lg font-semibold mb-2",children:e("features.network.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("features.network.description")})]})]}),g.jsxs("div",{className:"mt-6 md:mt-8",children:[g.jsxs("button",{onClick:()=>A(!L),className:"w-full glass-card rounded-xl p-4 flex items-center justify-between hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Up,{className:"text-green-500 status-indicator",size:20}),g.jsxs("span",{className:"text-sm text-gray-300",children:[e("networkStatus.title"),": ",Ye," ",e("networkStatus.serversOnline")]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Mp,{className:"text-yellow-500",size:20}),g.jsx("span",{className:"text-sm text-gray-300",children:e("networkStatus.version")})]}),L?g.jsx(Hp,{className:"text-gray-400",size:20}):g.jsx(Vp,{className:"text-gray-400",size:20})]})]}),L&&g.jsxs("div",{className:"mt-2 glass-card rounded-xl p-4 animate-[slideDown_0.3s_ease-out]",children:[g.jsx("h3",{className:"text-lg font-medium mb-4",children:"European Server Network Status"}),g.jsx("div",{className:"space-y-4",children:_.reduce((P,U)=>(P.find(K=>K.key===U.country)||P.push(g.jsxs("div",{children:[g.jsx("h4",{className:"font-medium text-gray-300 mb-2",children:U.country}),g.jsx("div",{className:"space-y-2",children:_.filter(K=>K.country===U.country).map((K,Pt)=>g.jsxs("div",{className:"glass-card rounded-xl p-3 flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("p",{className:"font-medium",children:K.city}),g.jsxs("p",{className:"text-sm text-gray-400",children:["Response Time: ",K.responseTime.toFixed(1),"ms"]})]}),g.jsxs("div",{className:"text-right",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${K.status==="operational"?"bg-green-500":K.status==="degraded"?"bg-yellow-500":"bg-red-500"}`}),g.jsx("span",{className:`text-sm ${K.status==="operational"?"text-green-500":K.status==="degraded"?"text-yellow-500":"text-red-500"}`,children:K.status==="operational"?"Operational":K.status==="degraded"?"Degraded":"Down"})]}),g.jsxs("p",{className:"text-sm text-gray-400",children:["Uptime: ",K.uptime.toFixed(2),"%"]})]})]},`${K.city}-${Pt}`))})]},U.country)),P),[])})]})]}),g.jsxs("div",{className:"mt-12 text-center text-sm text-gray-400 animate-[fadeIn_0.5s_ease-out]",children:[g.jsxs("p",{children:["© ",new Date().getFullYear()," ",e("title"),". ",e("footer.rights")]}),g.jsx("p",{className:"mt-1",children:e("footer.developed")}),g.jsx("p",{className:"mt-2 text-emerald-400/80",children:e("footer.copyright")})]})]}),O&&g.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4 z-50 modal-overlay",children:g.jsxs("div",{className:"glass-card rounded-xl p-6 max-w-md w-full relative modal-content",children:[g.jsx("button",{onClick:()=>p(!1),className:"absolute top-4 right-4 text-gray-400 hover:text-white",children:g.jsx(Zp,{size:20})}),g.jsxs("div",{className:"text-center mb-6",children:[g.jsx(fl,{className:"mx-auto mb-4 text-emerald-400",size:32}),g.jsx("h2",{className:"text-xl font-bold mb-2",children:e("auth.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("auth.description")})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-300 mb-2",children:e("auth.email")}),g.jsxs("div",{className:"relative",children:[g.jsx(Qp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",size:20}),g.jsx("input",{type:"email",id:"email",value:d,onChange:P=>{m(P.target.value),S("")},placeholder:e("auth.emailPlaceholder"),className:"w-full glass-card rounded-xl pl-10 pr-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500 text-white placeholder-gray-500"})]})]}),v&&g.jsx("div",{className:"text-red-400 text-sm bg-red-400/10 backdrop-blur-sm p-3 rounded-xl border border-red-400/20",children:v}),g.jsx("button",{onClick:E,className:"w-full bg-emerald-600 hover:bg-emerald-700 py-2 rounded-xl transition-colors hover-glow",children:e("auth.button")})]})]})})]})}Yc(document.getElementById("root")).render(g.jsx(F.StrictMode,{children:g.jsx(Ug,{})})); diff --git a/sni-templates/downloader/assets/v1/style.css b/sni-templates/downloader/assets/v1/style.css new file mode 100644 index 0000000..027b77d --- /dev/null +++ b/sni-templates/downloader/assets/v1/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-3{left:.75rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-4{top:1rem}.top-full{top:100%}.-z-10{z-index:-10}.z-40{z-index:40}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-2{height:.5rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-2{width:.5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-8{width:2rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[fadeIn_0\.5s_ease-out\]{animation:fadeIn .5s ease-out}.animate-\[slideDown_0\.2s_ease-out\]{animation:slideDown .2s ease-out}.animate-\[slideDown_0\.3s_ease-out\]{animation:slideDown .3s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-emerald-500\/50{border-color:#10b98180}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-red-400\/20{border-color:#f8717133}.bg-black\/80{background-color:#000c}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-600\/90{background-color:#059669e6}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-400\/10{background-color:#f871711a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white\/10{background-color:#ffffff1a}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-right{text-align:right}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity))}.text-emerald-400\/80{color:#34d399cc}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.opacity-10{opacity:.1}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur-2xl{--tw-blur: blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}@keyframes slideDown{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}@keyframes flyEmoji{0%{opacity:0;transform:translate(0) scale(.5)}25%{opacity:1;transform:translate(var(--tx),var(--ty)) scale(1.2)}to{opacity:0;transform:translate(calc(var(--tx) * 2),calc(var(--ty) * 2)) scale(.5)}}.stats-emoji{position:absolute;pointer-events:none;font-size:1.5rem;opacity:0}.stats-card{position:relative;overflow:hidden}.stats-card:hover .stats-emoji{animation:flyEmoji 1s ease-out forwards}.stats-card:hover .emoji-1{--tx: -20px;--ty: -20px;animation-delay:0s}.stats-card:hover .emoji-2{--tx: 20px;--ty: -20px;animation-delay:.1s}.stats-card:hover .emoji-3{--tx: -20px;--ty: 20px;animation-delay:.2s}.stats-card:hover .emoji-4{--tx: 20px;--ty: 20px;animation-delay:.3s}.stats-card:hover .emoji-5{--tx: 0px;--ty: -30px;animation-delay:.4s}.stats-card:hover .emoji-6{--tx: 0px;--ty: 30px;animation-delay:.5s}.bg-mesh{background-color:#1a1a1a;background-image:linear-gradient(to bottom,#1a1a1ad9,#1a1a1af2),url(https://images.unsplash.com/photo-1557683311-eac922347aa1?auto=format&fit=crop&q=80);background-size:cover;background-position:center;background-attachment:fixed;position:relative;overflow:hidden}@supports (-webkit-touch-callout: none){.bg-mesh{background-attachment:scroll}}.bg-mesh:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right,rgba(100,100,100,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(100,100,100,.05) 1px,transparent 1px);background-size:40px 40px;pointer-events:none;z-index:0;-webkit-mask-image:radial-gradient(circle at center,black,transparent);mask-image:radial-gradient(circle at center,black,transparent);animation:gridFloat 30s linear infinite}@media (max-width: 768px){.bg-mesh{background-attachment:scroll}}@media (max-width: 640px){h1{font-size:2rem!important}.stats-grid{grid-template-columns:1fr!important}}.glass-card{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#1a1a1a66;border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px #0000002e;animation:scaleIn .3s ease-out}.hover-glow{transition:all .3s cubic-bezier(.4,0,.2,1)}.hover-glow:hover{box-shadow:0 0 25px #64646466;transform:translateY(-2px);background:linear-gradient(45deg,#6464641a,#64646433)}.hover-glow:active{transform:translateY(0);box-shadow:0 0 15px #6464644d}.text-gradient{background:linear-gradient(45deg,#fff,#a0a0a0);-webkit-background-clip:text;background-clip:text;color:transparent;background-size:200% 200%;animation:gradientMove 4s ease infinite}@keyframes gradientMove{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.language-selector{position:fixed;top:1rem;right:1rem;z-index:100}.language-button{padding:.5rem;border-radius:.5rem;transition:all .2s}.language-button:hover{background:#ffffff1a}.language-button.active{background:#fff3}.dropdown-enter{opacity:0;transform:translateY(-10px)}.dropdown-enter-active{opacity:1;transform:translateY(0);transition:opacity .2s,transform .2s}.dropdown-exit{opacity:1;transform:translateY(0)}.dropdown-exit-active{opacity:0;transform:translateY(-10px);transition:opacity .2s,transform .2s}.stats-grid>div{animation:fadeIn .5s ease-out;animation-fill-mode:both}.stats-grid>div:nth-child(1){animation-delay:.1s}.stats-grid>div:nth-child(2){animation-delay:.2s}.stats-grid>div:nth-child(3){animation-delay:.3s}.feature-card{transition:transform .3s cubic-bezier(.4,0,.2,1)}.feature-card:hover{transform:translateY(-5px)}.feature-card:hover .feature-icon{transform:scale(1.1) rotate(5deg)}.shimmer{background:linear-gradient(90deg,#fff0,#ffffff1a,#fff0);background-size:200% 100%;animation:shimmer 2s infinite}.modal-overlay{animation:fadeIn .2s ease-out}.modal-content{animation:scaleIn .3s cubic-bezier(.34,1.56,.64,1)}.status-indicator{position:relative}.status-indicator:before{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border-radius:inherit;animation:pulse 2s infinite;opacity:.5}button,input,select,.glass-card{transition:all .2s cubic-bezier(.4,0,.2,1)}input:focus,select:focus{transform:translateY(-1px);box-shadow:0 0 0 2px #6464644d}.hover\:border-emerald-500\/20:hover{border-color:#10b98133}.hover\:border-emerald-500\/30:hover{border-color:#10b9814d}.hover\:border-emerald-500\/50:hover{border-color:#10b98180}.hover\:bg-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:shadow-emerald-500\/20:hover{--tw-shadow-color: rgb(16 185 129 / .2);--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-emerald-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\:mb-12{margin-bottom:3rem}.md\:mt-12{margin-top:3rem}.md\:mt-8{margin-top:2rem}.md\:h-10{height:2.5rem}.md\:h-40{height:10rem}.md\:h-64{height:16rem}.md\:w-10{width:2.5rem}.md\:w-40{width:10rem}.md\:w-64{width:16rem}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:gap-4{gap:1rem}.md\:gap-6{gap:1.5rem}.md\:py-16{padding-top:4rem;padding-bottom:4rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}} diff --git a/sni-templates/downloader/assets/v2/js.js b/sni-templates/downloader/assets/v2/js.js new file mode 100644 index 0000000..5c75589 --- /dev/null +++ b/sni-templates/downloader/assets/v2/js.js @@ -0,0 +1,135 @@ +var sd=Object.defineProperty;var ad=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var os=(e,t,n)=>ad(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Fa={exports:{}},Ni={},$a={exports:{}},I={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hr=Symbol.for("react.element"),ud=Symbol.for("react.portal"),cd=Symbol.for("react.fragment"),dd=Symbol.for("react.strict_mode"),fd=Symbol.for("react.profiler"),pd=Symbol.for("react.provider"),hd=Symbol.for("react.context"),gd=Symbol.for("react.forward_ref"),md=Symbol.for("react.suspense"),vd=Symbol.for("react.memo"),yd=Symbol.for("react.lazy"),ls=Symbol.iterator;function xd(e){return e===null||typeof e!="object"?null:(e=ls&&e[ls]||e["@@iterator"],typeof e=="function"?e:null)}var Ma={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Aa=Object.assign,Ua={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=Ua,this.updater=n||Ma}Sn.prototype.isReactComponent={};Sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Va(){}Va.prototype=Sn.prototype;function dl(e,t,n){this.props=e,this.context=t,this.refs=Ua,this.updater=n||Ma}var fl=dl.prototype=new Va;fl.constructor=dl;Aa(fl,Sn.prototype);fl.isPureReactComponent=!0;var ss=Array.isArray,Ha=Object.prototype.hasOwnProperty,pl={current:null},Ba={key:!0,ref:!0,__self:!0,__source:!0};function Ka(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Ha.call(t,r)&&!Ba.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,U=E[P];if(0>>1;Pi(Pt,R))Xei(Wt,Pt)?(E[P]=Wt,E[Xe]=R,P=Xe):(E[P]=Pt,E[K]=R,P=K);else if(Xei(Wt,R))E[P]=Wt,E[Xe]=R,P=Xe;else break e}}return z}function i(E,z){var R=E.sortIndex-z.sortIndex;return R!==0?R:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],f=1,h=null,c=3,y=!1,x=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=E)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function v(E){if(w=!1,m(E),!x)if(n(a)!==null)x=!0,_e(S);else{var z=n(u);z!==null&&st(v,z.startTime-E)}}function S(E,z){x=!1,w&&(w=!1,p(L),L=-1),y=!0;var R=c;try{for(m(z),h=n(a);h!==null&&(!(h.expirationTime>z)||E&&!Z());){var P=h.callback;if(typeof P=="function"){h.callback=null,c=h.priorityLevel;var U=P(h.expirationTime<=z);z=e.unstable_now(),typeof U=="function"?h.callback=U:h===n(a)&&r(a),m(z)}else r(a);h=n(a)}if(h!==null)var Kt=!0;else{var K=n(u);K!==null&&st(v,K.startTime-z),Kt=!1}return Kt}finally{h=null,c=R,y=!1}}var C=!1,N=null,L=-1,A=5,_=-1;function Z(){return!(e.unstable_now()-_E||125P?(E.sortIndex=R,t(u,E),n(a)===null&&E===n(u)&&(w?(p(L),L=-1):w=!0,st(v,R-P))):(E.sortIndex=U,t(a,E),x||y||(x=!0,_e(S))),E},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(E){var z=c;return function(){var R=c;c=z;try{return E.apply(this,arguments)}finally{c=R}}}})(Ja);Ga.exports=Ja;var zd=Ga.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rd=F,Ne=zd;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mo=Object.prototype.hasOwnProperty,Td=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,us={},cs={};function _d(e){return mo.call(cs,e)?!0:mo.call(us,e)?!1:Td.test(e)?cs[e]=!0:(us[e]=!0,!1)}function Id(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Dd(e,t,n,r){if(t===null||typeof t>"u"||Id(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function he(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new he(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ie[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var gl=/[\-:]([a-z])/g;function ml(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gl,ml);ie[t]=new he(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gl,ml);ie[t]=new he(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gl,ml);ie[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function vl(e,t,n,r){var i=ie.hasOwnProperty(t)?ie[t]:null;(i!==null?i.type!==0:r||!(2s||i[l]!==o[s]){var a=` +`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Hi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dn(e):""}function Fd(e){switch(e.tag){case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 2:case 15:return e=Bi(e.type,!1),e;case 11:return e=Bi(e.type.render,!1),e;case 1:return e=Bi(e.type,!0),e;default:return""}}function wo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xt:return"Fragment";case Jt:return"Portal";case vo:return"Profiler";case yl:return"StrictMode";case yo:return"Suspense";case xo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qa:return(e.displayName||"Context")+".Consumer";case Za:return(e._context.displayName||"Context")+".Provider";case xl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wl:return t=e.displayName||null,t!==null?t:wo(e.type)||"Memo";case ut:t=e._payload,e=e._init;try{return wo(e(t))}catch{}}return null}function $d(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wo(t);case 8:return t===yl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Nt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Md(e){var t=eu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=Md(e))}function tu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function So(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Nt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nu(e,t){t=t.checked,t!=null&&vl(e,"checked",t,!1)}function ko(e,t){nu(e,t);var n=Nt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?No(e,t.type,n):t.hasOwnProperty("defaultValue")&&No(e,t.type,Nt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ps(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function No(e,t,n){(t!=="number"||Jr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fn=Array.isArray;function an(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var An={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ad=["Webkit","ms","Moz","O"];Object.keys(An).forEach(function(e){Ad.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),An[t]=An[e]})});function lu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||An.hasOwnProperty(e)&&An[e]?(""+t).trim():t+"px"}function su(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=lu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ud=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jo(e,t){if(t){if(Ud[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Lo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Po=null;function Sl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oo=null,un=null,cn=null;function ms(e){if(e=vr(e)){if(typeof Oo!="function")throw Error(k(280));var t=e.stateNode;t&&(t=Pi(t),Oo(e.stateNode,e.type,t))}}function au(e){un?cn?cn.push(e):cn=[e]:un=e}function uu(){if(un){var e=un,t=cn;if(cn=un=null,ms(e),t)for(e=0;e>>=0,e===0?32:31-(Zd(e)/qd|0)|0}var Nr=64,Cr=4194304;function $n(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=$n(s):(o&=l,o!==0&&(r=$n(o)))}else l=n&~i,l!==0?r=$n(l):o!==0&&(r=$n(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function nf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vn),Es=" ",js=!1;function Ou(e,t){switch(e){case"keyup":return Rf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zt=!1;function _f(e,t){switch(e){case"compositionend":return zu(t);case"keypress":return t.which!==32?null:(js=!0,Es);case"textInput":return e=t.data,e===Es&&js?null:e;default:return null}}function If(e,t){if(Zt)return e==="compositionend"||!Ol&&Ou(e,t)?(e=Lu(),Ur=jl=pt=null,Zt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zs(n)}}function Iu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Iu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Du(){for(var e=window,t=Jr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function zl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Bf(e){var t=Du(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Iu(n.ownerDocument.documentElement,n)){if(r!==null&&zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Rs(n,o);var l=Rs(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,qt=null,Do=null,Bn=null,Fo=!1;function Ts(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fo||qt==null||qt!==Jr(r)||(r=qt,"selectionStart"in r&&zl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bn&&nr(Bn,r)||(Bn=r,r=ni(Do,"onSelect"),0tn||(e.current=Ho[tn],Ho[tn]=null,tn--)}function M(e,t){tn++,Ho[tn]=e.current,e.current=t}var Ct={},ue=jt(Ct),ve=jt(!1),$t=Ct;function gn(e,t){var n=e.type.contextTypes;if(!n)return Ct;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ye(e){return e=e.childContextTypes,e!=null}function ii(){H(ve),H(ue)}function As(e,t,n){if(ue.current!==Ct)throw Error(k(168));M(ue,t),M(ve,n)}function Ku(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(k(108,$d(e)||"Unknown",i));return Y({},n,r)}function oi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ct,$t=ue.current,M(ue,e),M(ve,ve.current),!0}function Us(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Ku(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,H(ve),H(ue),M(ue,e)):H(ve),M(ve,n)}var qe=null,Oi=!1,ro=!1;function Wu(e){qe===null?qe=[e]:qe.push(e)}function tp(e){Oi=!0,Wu(e)}function Lt(){if(!ro&&qe!==null){ro=!0;var e=0,t=$;try{var n=qe;for($=1;e>=l,i-=l,be=1<<32-Me(t)+i|n<L?(A=N,N=null):A=N.sibling;var _=c(p,N,m[L],v);if(_===null){N===null&&(N=A);break}e&&N&&_.alternate===null&&t(p,N),d=o(_,d,L),C===null?S=_:C.sibling=_,C=_,N=A}if(L===m.length)return n(p,N),B&&Ot(p,L),S;if(N===null){for(;LL?(A=N,N=null):A=N.sibling;var Z=c(p,N,_.value,v);if(Z===null){N===null&&(N=A);break}e&&N&&Z.alternate===null&&t(p,N),d=o(Z,d,L),C===null?S=Z:C.sibling=Z,C=Z,N=A}if(_.done)return n(p,N),B&&Ot(p,L),S;if(N===null){for(;!_.done;L++,_=m.next())_=h(p,_.value,v),_!==null&&(d=o(_,d,L),C===null?S=_:C.sibling=_,C=_);return B&&Ot(p,L),S}for(N=r(p,N);!_.done;L++,_=m.next())_=y(N,p,L,_.value,v),_!==null&&(e&&_.alternate!==null&&N.delete(_.key===null?L:_.key),d=o(_,d,L),C===null?S=_:C.sibling=_,C=_);return e&&N.forEach(function(Ge){return t(p,Ge)}),B&&Ot(p,L),S}function O(p,d,m,v){if(typeof m=="object"&&m!==null&&m.type===Xt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case wr:e:{for(var S=m.key,C=d;C!==null;){if(C.key===S){if(S=m.type,S===Xt){if(C.tag===7){n(p,C.sibling),d=i(C,m.props.children),d.return=p,p=d;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ut&&Bs(S)===C.type){n(p,C.sibling),d=i(C,m.props),d.ref=On(p,C,m),d.return=p,p=d;break e}n(p,C);break}else t(p,C);C=C.sibling}m.type===Xt?(d=Dt(m.props.children,p.mode,v,m.key),d.return=p,p=d):(v=Gr(m.type,m.key,m.props,null,p.mode,v),v.ref=On(p,d,m),v.return=p,p=v)}return l(p);case Jt:e:{for(C=m.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(p,d.sibling),d=i(d,m.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=fo(m,p.mode,v),d.return=p,p=d}return l(p);case ut:return C=m._init,O(p,d,C(m._payload),v)}if(Fn(m))return x(p,d,m,v);if(Cn(m))return w(p,d,m,v);Rr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(p,d.sibling),d=i(d,m),d.return=p,p=d):(n(p,d),d=co(m,p.mode,v),d.return=p,p=d),l(p)):n(p,d)}return O}var vn=Ju(!0),Xu=Ju(!1),ai=jt(null),ui=null,on=null,Il=null;function Dl(){Il=on=ui=null}function Fl(e){var t=ai.current;H(ai),e._currentValue=t}function Wo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function fn(e,t){ui=e,Il=on=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(me=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(Il!==e)if(e={context:e,memoizedValue:t,next:null},on===null){if(ui===null)throw Error(k(308));on=e,ui.dependencies={lanes:0,firstContext:e}}else on=on.next=e;return t}var Tt=null;function $l(e){Tt===null?Tt=[e]:Tt.push(e)}function Zu(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,$l(t)):(n.next=i.next,i.next=n),t.interleaved=n,it(e,r)}function it(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ct=!1;function Ml(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,it(e,n)}return i=r.interleaved,i===null?(t.next=t,$l(r)):(t.next=i.next,i.next=t),r.interleaved=t,it(e,n)}function Hr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Nl(e,n)}}function Ks(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;ct=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?o=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(o!==null){var h=i.baseState;l=0,f=u=a=null,s=o;do{var c=s.lane,y=s.eventTime;if((r&c)===c){f!==null&&(f=f.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var x=e,w=s;switch(c=t,y=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){h=x.call(y,h,c);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,c=typeof x=="function"?x.call(y,h,c):x,c==null)break e;h=Y({},h,c);break e;case 2:ct=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,c=i.effects,c===null?i.effects=[s]:c.push(s))}else y={eventTime:y,lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=y,a=h):f=f.next=y,l|=c;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;c=s,s=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}while(!0);if(f===null&&(a=h),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ut|=l,e.lanes=l,e.memoizedState=h}}function Ws(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=oo.transition;oo.transition={};try{e(!1),t()}finally{$=n,oo.transition=r}}function gc(){return Re().memoizedState}function op(e,t,n){var r=St(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e))vc(t,n);else if(n=Zu(e,t,n,r),n!==null){var i=fe();Ae(n,e,r,i),yc(n,t,r)}}function lp(e,t,n){var r=St(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))vc(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Ue(s,l)){var a=t.interleaved;a===null?(i.next=i,$l(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Zu(e,t,i,r),n!==null&&(i=fe(),Ae(n,e,r,i),yc(n,t,r))}}function mc(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function vc(e,t){Kn=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Nl(e,n)}}var pi={readContext:ze,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},sp={readContext:ze,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:Ys,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Kr(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Kr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Kr(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=op.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:Qs,useDebugValue:Ql,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=Qs(!1),t=e[0];return e=ip.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=Be();if(B){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),te===null)throw Error(k(349));At&30||nc(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ys(ic.bind(null,r,o,e),[e]),r.flags|=2048,cr(9,rc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Be(),t=te.identifierPrefix;if(B){var n=et,r=be;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ar++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ke]=t,e[or]=r,Pc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Lo(n,r),n){case"dialog":V("cancel",e),V("close",e),i=r;break;case"iframe":case"object":case"embed":V("load",e),i=r;break;case"video":case"audio":for(i=0;iwn&&(t.flags|=128,r=!0,zn(o,!1),t.lanes=4194304)}else{if(!r)if(e=di(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!B)return se(t),null}else 2*J()-o.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,zn(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=J(),t.sibling=null,n=W.current,M(W,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return ql(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?we&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function gp(e,t){switch(Tl(t),t.tag){case 1:return ye(t.type)&&ii(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),H(ve),H(ue),Vl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ul(t),null;case 13:if(H(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(W),null;case 4:return yn(),null;case 10:return Fl(t.type._context),null;case 22:case 23:return ql(),null;case 24:return null;default:return null}}var _r=!1,ae=!1,mp=typeof WeakSet=="function"?WeakSet:Set,j=null;function ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){G(e,t,r)}}var ia=!1;function vp(e,t){if($o=ei,e=Du(),zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,h=e,c=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(s=l+i),h!==o||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(y=h.firstChild)!==null;)c=h,h=y;for(;;){if(h===e)break t;if(c===n&&++u===i&&(s=l),c===o&&++f===r&&(a=l),(y=h.nextSibling)!==null)break;h=c,c=h.parentNode}h=y}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mo={focusedElem:e,selectionRange:n},ei=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,O=x.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:De(t.type,w),O);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(v){G(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return x=ia,ia=!1,x}function Wn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&el(t,n,o)}i=i.next}while(i!==r)}}function Ti(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rc(e){var t=e.alternate;t!==null&&(e.alternate=null,Rc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ke],delete t[or],delete t[Vo],delete t[bf],delete t[ep])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tc(e){return e.tag===5||e.tag===3||e.tag===4}function oa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ri));else if(r!==4&&(e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}var ne=null,Fe=!1;function at(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Ci,n)}catch{}switch(n.tag){case 5:ae||ln(n,t);case 6:var r=ne,i=Fe;ne=null,at(e,t,n),ne=r,Fe=i,ne!==null&&(Fe?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Fe?(e=ne,n=n.stateNode,e.nodeType===8?no(e.parentNode,n):e.nodeType===1&&no(e,n),er(e)):no(ne,n.stateNode));break;case 4:r=ne,i=Fe,ne=n.stateNode.containerInfo,Fe=!0,at(e,t,n),ne=r,Fe=i;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&el(n,t,l),i=i.next}while(i!==r)}at(e,t,n);break;case 1:if(!ae&&(ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){G(n,t,s)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,at(e,t,n),ae=r):at(e,t,n);break;default:at(e,t,n)}}function la(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mp),t.forEach(function(r){var i=jp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ie(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xp(r/1960))-r,10e?16:e,ht===null)var r=!1;else{if(e=ht,ht=null,mi=0,D&6)throw Error(k(331));var i=D;for(D|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var s=o.deletions;if(s!==null){for(var a=0;aJ()-Xl?It(e,0):Jl|=n),xe(e,t)}function Vc(e,t){t===0&&(e.mode&1?(t=Cr,Cr<<=1,!(Cr&130023424)&&(Cr=4194304)):t=1);var n=fe();e=it(e,t),e!==null&&(gr(e,t,n),xe(e,n))}function Ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vc(e,n)}function jp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Vc(e,n)}var Hc;Hc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,pp(e,t,n);me=!!(e.flags&131072)}else me=!1,B&&t.flags&1048576&&Qu(t,si,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wr(e,t),e=t.pendingProps;var i=gn(t,ue.current);fn(t,n),i=Bl(null,t,r,e,i,n);var o=Kl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(o=!0,oi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ml(t),i.updater=Ri,t.stateNode=i,i._reactInternals=t,Yo(t,r,e,n),t=Xo(null,t,r,!0,o,n)):(t.tag=0,B&&o&&Rl(t),de(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wr(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Pp(r),e=De(r,e),i){case 0:t=Jo(null,t,r,e,n);break e;case 1:t=ta(null,t,r,e,n);break e;case 11:t=bs(null,t,r,e,n);break e;case 14:t=ea(null,t,r,De(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),Jo(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),ta(e,t,r,i,n);case 3:e:{if(Ec(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qu(e,t),ci(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=xn(Error(k(423)),t),t=na(e,t,r,n,i);break e}else if(r!==i){i=xn(Error(k(424)),t),t=na(e,t,r,n,i);break e}else for(Se=yt(t.stateNode.containerInfo.firstChild),ke=t,B=!0,$e=null,n=Xu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mn(),r===i){t=ot(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return bu(t),e===null&&Ko(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Ao(r,i)?l=null:o!==null&&Ao(r,o)&&(t.flags|=32),Cc(e,t),de(e,t,l,n),t.child;case 6:return e===null&&Ko(t),null;case 13:return jc(e,t,n);case 4:return Al(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),bs(e,t,r,i,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,M(ai,r._currentValue),r._currentValue=l,o!==null)if(Ue(o.value,l)){if(o.children===i.children&&!ve.current){t=ot(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=tt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wo(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(k(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Wo(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}de(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,fn(t,n),i=ze(i),r=r(i),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,i=De(r,t.pendingProps),i=De(r.type,i),ea(e,t,r,i,n);case 15:return kc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:De(r,i),Wr(e,t),t.tag=1,ye(r)?(e=!0,oi(t)):e=!1,fn(t,n),xc(t,r,i),Yo(t,r,i,n),Xo(null,t,r,!0,e,n);case 19:return Lc(e,t,n);case 22:return Nc(e,t,n)}throw Error(k(156,t.tag))};function Bc(e,t){return mu(e,t)}function Lp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pe(e,t,n,r){return new Lp(e,t,n,r)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pp(e){if(typeof e=="function")return es(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xl)return 11;if(e===wl)return 14}return 2}function kt(e,t){var n=e.alternate;return n===null?(n=Pe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gr(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")es(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Xt:return Dt(n.children,i,o,t);case yl:l=8,i|=8;break;case vo:return e=Pe(12,n,t,i|2),e.elementType=vo,e.lanes=o,e;case yo:return e=Pe(13,n,t,i),e.elementType=yo,e.lanes=o,e;case xo:return e=Pe(19,n,t,i),e.elementType=xo,e.lanes=o,e;case ba:return Ii(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Za:l=10;break e;case qa:l=9;break e;case xl:l=11;break e;case wl:l=14;break e;case ut:l=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Pe(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Dt(e,t,n,r){return e=Pe(7,e,r,t),e.lanes=n,e}function Ii(e,t,n,r){return e=Pe(22,e,r,t),e.elementType=ba,e.lanes=n,e.stateNode={isHidden:!1},e}function co(e,t,n){return e=Pe(6,e,null,t),e.lanes=n,e}function fo(e,t,n){return t=Pe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Op(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ts(e,t,n,r,i,o,l,s,a){return e=new Op(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Pe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ml(o),e}function zp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yc)}catch(e){console.error(e)}}Yc(),Ya.exports=Ce;var Dp=Ya.exports,Gc,ha=Dp;Gc=ha.createRoot,ha.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Fp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $p=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),oe=(e,t)=>{const n=F.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:s="",children:a,...u},f)=>F.createElement("svg",{ref:f,...Fp,width:i,height:i,stroke:r,strokeWidth:l?Number(o)*24/Number(i):o,className:["lucide",`lucide-${$p(e)}`,s].join(" "),...u},[...t.map(([h,c])=>F.createElement(h,c)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Mp=oe("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ap=oe("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Up=oe("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vp=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Hp=oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bp=oe("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ga=oe("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3v0a2 2 0 0 1 2 2v0c0 1.1.9 2 2 2v0a2 2 0 0 0 2-2v0c0-1.1.9-2 2-2h3.17",key:"1fi5u6"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2v0a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"xsiumc"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kp=oe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Wp=oe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Qp=oe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Yp=oe("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Gp=oe("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Jp=oe("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const po=oe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Xp=oe("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zp=oe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ma=oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function qp(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},ya=(e,t,n)=>{e.loadNamespaces(t,Jc(e,n))},xa=(e,t,n,r)=>{Ft(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Jc(e,r))},bp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(s,a)=>{const u=t.services.backendConnector.state[`${s}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(r,e)&&(!i||l(o,e)))},eh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(al("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):bp(e,t,n)},Ft=e=>typeof e=="string",th=e=>typeof e=="object"&&e!==null,nh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rh={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ih=e=>rh[e],oh=e=>e.replace(nh,ih);let ul={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:oh};const lh=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ul={...ul,...e}},sh=()=>ul;let Xc;const ah=e=>{Xc=e},uh=()=>Xc,ch={type:"3rdParty",init(e){lh(e.options.react),ah(e)}},dh=F.createContext();class fh{constructor(){os(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const ph=(e,t)=>{const n=F.useRef();return F.useEffect(()=>{n.current=e},[e,t]),n.current},Zc=(e,t,n,r)=>e.getFixedT(t,n,r),hh=(e,t,n,r)=>F.useCallback(Zc(e,t,n,r),[e,t,n,r]),gh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=F.useContext(dh)||{},o=n||r||uh();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new fh),!o){al("You will need to pass in an i18next instance by using initReactI18next");const v=(C,N)=>Ft(N)?N:th(N)&&Ft(N.defaultValue)?N.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[v,{},!1];return S.t=v,S.i18n={},S.ready=!1,S}o.options.react&&o.options.react.wait!==void 0&&al("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...sh(),...o.options.react,...t},{useSuspense:s,keyPrefix:a}=l;let u=i||o.options&&o.options.defaultNS;u=Ft(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const f=(o.isInitialized||o.initializedStoreOnce)&&u.every(v=>eh(v,o,l)),h=hh(o,t.lng||null,l.nsMode==="fallback"?u:u[0],a),c=()=>h,y=()=>Zc(o,t.lng||null,l.nsMode==="fallback"?u:u[0],a),[x,w]=F.useState(c);let O=u.join();t.lng&&(O=`${t.lng}${O}`);const p=ph(O),d=F.useRef(!0);F.useEffect(()=>{const{bindI18n:v,bindI18nStore:S}=l;d.current=!0,!f&&!s&&(t.lng?xa(o,t.lng,u,()=>{d.current&&w(y)}):ya(o,u,()=>{d.current&&w(y)})),f&&p&&p!==O&&d.current&&w(y);const C=()=>{d.current&&w(y)};return v&&o&&o.on(v,C),S&&o&&o.store.on(S,C),()=>{d.current=!1,v&&o&&v.split(" ").forEach(N=>o.off(N,C)),S&&o&&S.split(" ").forEach(N=>o.store.off(N,C))}},[o,O]),F.useEffect(()=>{d.current&&f&&w(c)},[o,a,f]);const m=[x,o,f];if(m.t=x,m.i18n=o,m.ready=f,f||!f&&!s)return m;throw new Promise(v=>{t.lng?xa(o,t.lng,u,()=>v()):ya(o,u,()=>v())})},T=e=>typeof e=="string",Tn=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},wa=e=>e==null?"":""+e,mh=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},vh=/###/g,Sa=e=>e&&e.indexOf("###")>-1?e.replace(vh,"."):e,ka=e=>!e||T(e),Gn=(e,t,n)=>{const r=T(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:i}=Gn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],l=t.slice(0,t.length-1),s=Gn(e,l,Object);for(;s.obj===void 0&&l.length;)o=`${l[l.length-1]}.${o}`,l=l.slice(0,l.length-1),s=Gn(e,l,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},yh=(e,t,n,r)=>{const{obj:i,k:o}=Gn(e,t,Object);i[o]=i[o]||[],i[o].push(n)},xi=(e,t)=>{const{obj:n,k:r}=Gn(e,t);if(n)return n[r]},xh=(e,t,n)=>{const r=xi(e,n);return r!==void 0?r:xi(t,n)},qc=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?T(e[r])||e[r]instanceof String||T(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):qc(e[r],t[r],n):e[r]=t[r]);return e},Yt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var wh={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Sh=e=>T(e)?e.replace(/[&<>"'\/]/g,t=>wh[t]):e;class kh{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Nh=[" ",",","?","!",";"],Ch=new kh(20),Eh=(e,t,n)=>{t=t||"",n=n||"";const r=Nh.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=Ch.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!i.test(e);if(!o){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(o=!0)}return o},cl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&ae&&e.replace("_","-"),jh={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Si{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||jh,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,a]=l;for(let u=0;u{let[s,a]=l;for(let u=0;u1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):T(r)&&o?s.push(...r.split(o)):s.push(r)));const a=xi(this.data,s);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),a||!l||!T(r)?a:cl(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),Na(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(T(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let a=xi(this.data,s)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?qc(a,r,o):a={...a,...r},Na(this.data,s,a),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var bc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const Ea={};class ki extends Ai{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),mh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=We.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Eh(t,r,i);if(l&&!s){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:T(o)?[o]:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return{key:t,namespaces:T(o)?[o]:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:s}=this.extractFromKey(t[t.length-1],n),a=s[s.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){const v=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${v}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${v}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:l}const h=this.resolve(t,n);let c=h&&h.res;const y=h&&h.usedKey||l,x=h&&h.exactUsedKey||l,w=Object.prototype.toString.apply(c),O=["[object Number]","[object Function]","[object RegExp]"],p=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,d=!this.i18nFormat||this.i18nFormat.handleAsObject,m=!T(c)&&typeof c!="boolean"&&typeof c!="number";if(d&&c&&m&&O.indexOf(w)<0&&!(T(p)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const v=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,c,{...n,ns:s}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(h.res=v,h.usedParams=this.getUsedParamsDetails(n),h):v}if(o){const v=Array.isArray(c),S=v?[]:{},C=v?x:y;for(const N in c)if(Object.prototype.hasOwnProperty.call(c,N)){const L=`${C}${o}${N}`;S[N]=this.translate(L,{...n,joinArrays:!1,ns:s}),S[N]===L&&(S[N]=c[N])}c=S}}else if(d&&T(p)&&Array.isArray(c))c=c.join(p),c&&(c=this.extendTranslation(c,t,n,r));else{let v=!1,S=!1;const C=n.count!==void 0&&!T(n.count),N=ki.hasDefaultValue(n),L=C?this.pluralResolver.getSuffix(u,n.count,n):"",A=n.ordinal&&C?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=C&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Z=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${L}`]||n[`defaultValue${A}`]||n.defaultValue;!this.isValidLookup(c)&&N&&(v=!0,c=Z),this.isValidLookup(c)||(S=!0,c=l);const Je=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:c,Te=N&&Z!==c&&this.options.updateMissing;if(S||v||Te){if(this.logger.log(Te?"updateKey":"missingKey",u,a,l,Te?Z:c),o){const E=this.resolve(l,{...n,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ve=[];const _e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&_e&&_e[0])for(let E=0;E<_e.length;E++)Ve.push(_e[E]);else this.options.saveMissingTo==="all"?Ve=this.languageUtils.toResolveHierarchy(n.lng||this.language):Ve.push(n.lng||this.language);const st=(E,z,R)=>{const P=N&&R!==c?R:Je;this.options.missingKeyHandler?this.options.missingKeyHandler(E,a,z,P,Te,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(E,a,z,P,Te,n),this.emit("missingKey",E,a,z,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?Ve.forEach(E=>{const z=this.pluralResolver.getSuffixes(E,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(R=>{st([E],l+R,n[`defaultValue${R}`]||Z)})}):st(Ve,l,Z))}c=this.extendTranslation(c,t,n,h,r),S&&c===l&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${l}`),(S||v)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${l}`:l,v?c:void 0):c=this.options.parseMissingKeyHandler(c))}return i?(h.res=c,h.usedParams=this.getUsedParamsDetails(n),h):c}extendTranslation(t,n,r,i,o){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=T(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(u){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let h=r.replace&&!T(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||i.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),y=c&&c.length;f1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,l,s;return T(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),f=u.key;i=f;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const c=n.count!==void 0&&!T(n.count),y=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(T(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(O=>{this.isValidLookup(r)||(s=O,!Ea[`${w[0]}-${O}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ea[`${w[0]}-${O}`]=!0,this.logger.warn(`key "${i}" for languages "${w.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(p=>{if(this.isValidLookup(r))return;l=p;const d=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(d,f,p,O,n);else{let v;c&&(v=this.pluralResolver.getSuffix(p,n.count,n));const S=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(d.push(f+v),n.ordinal&&v.indexOf(C)===0&&d.push(f+v.replace(C,this.options.pluralSeparator)),y&&d.push(f+S)),x){const N=`${f}${this.options.contextSeparator}${n.context}`;d.push(N),c&&(d.push(N+v),n.ordinal&&v.indexOf(C)===0&&d.push(N+v.replace(C,this.options.pluralSeparator)),y&&d.push(N+S))}}let m;for(;m=d.pop();)this.isValidLookup(r)||(o=m,r=this.getResource(p,O,m,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:l,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!T(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const ho=e=>e.charAt(0).toUpperCase()+e.slice(1);class ja{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=We.create("languageUtils")}getScriptPartFromCode(t){if(t=wi(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=wi(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(T(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ho(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ho(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ho(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),T(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return T(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):T(t)&&o(this.formatLanguageCode(t)),r.forEach(l=>{i.indexOf(l)<0&&o(this.formatLanguageCode(l))}),i}}let Lh=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ph={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Oh=["v1","v2","v3"],zh=["v4"],La={zero:0,one:1,two:2,few:3,many:4,other:5},Rh=()=>{const e={};return Lh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Ph[t.fc]}})}),e};class Th{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=We.create("pluralResolver"),(!this.options.compatibilityJSON||zh.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Rh(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=wi(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let l;try{l=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(a,n)}return this.pluralRulesCache[o]=l,l}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>La[i]-La[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Oh.includes(this.options.compatibilityJSON)}}const Pa=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=xh(e,t,n);return!o&&i&&T(n)&&(o=cl(e,n,r),o===void 0&&(o=cl(t,n,r))),o},go=e=>e.replace(/\$/g,"$$$$");class _h{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=We.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:l,suffix:s,suffixEscaped:a,formatSeparator:u,unescapeSuffix:f,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:y,nestingSuffix:x,nestingSuffixEscaped:w,nestingOptionsSeparator:O,maxReplaces:p,alwaysFormat:d}=t.interpolation;this.escape=n!==void 0?n:Sh,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Yt(o):l||"{{",this.suffix=s?Yt(s):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?Yt(c):y||Yt("$t("),this.nestingSuffix=x?Yt(x):w||Yt(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=p||1e3,this.alwaysFormat=d!==void 0?d:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,l,s;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=y=>{if(y.indexOf(this.formatSeparator)<0){const p=Pa(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,r,{...i,...n,interpolationkey:y}):p}const x=y.split(this.formatSeparator),w=x.shift().trim(),O=x.join(this.formatSeparator).trim();return this.format(Pa(n,a,w,this.options.keySeparator,this.options.ignoreJSONStructure),O,r,{...i,...n,interpolationkey:w})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>go(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?go(this.escape(y)):go(y)}].forEach(y=>{for(s=0;o=y.regex.exec(t);){const x=o[1].trim();if(l=u(x),l===void 0)if(typeof f=="function"){const O=f(t,o,i);l=T(O)?O:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))l="";else if(h){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),l="";else!T(l)&&!this.useRawValueToEscape&&(l=wa(l));const w=y.safeValue(l);if(t=t.replace(o[0],w),h?(y.regex.lastIndex+=l.length,y.regex.lastIndex-=o[0].length):y.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l;const s=(a,u)=>{const f=this.nestingOptionsSeparator;if(a.indexOf(f)<0)return a;const h=a.split(new RegExp(`${f}[ ]*{`));let c=`{${h[1]}`;a=h[0],c=this.interpolate(c,l);const y=c.match(/'/g),x=c.match(/"/g);(y&&y.length%2===0&&!x||x.length%2!==0)&&(c=c.replace(/'/g,'"'));try{l=JSON.parse(c),u&&(l={...u,...l})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${f}${c}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,a};for(;i=this.nestingRegexp.exec(t);){let a=[];l={...r},l=l.replace&&!T(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=f.shift(),a=f,u=!0}if(o=n(s.call(this,i[1].trim(),l),l),o&&i[0]===t&&!T(o))return o;T(o)||(o=wa(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=a.reduce((f,h)=>this.format(f,h,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const Ih=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(l){const[s,...a]=l.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),f=s.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Gt=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const l=r+JSON.stringify(o);let s=t[l];return s||(s=e(wi(r),i),t[l]=s),s(n)}};class Dh{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=We.create("formatter"),this.options=t,this.formats={number:Gt((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:Gt((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:Gt((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:Gt((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:Gt((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Gt(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(a=>a.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,a)=>{const{formatName:u,formatOptions:f}=Ih(a);if(this.formats[u]){let h=s;try{const c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=c.locale||c.lng||i.locale||i.lng||r;h=this.formats[u](s,y,{...f,...i,...c})}catch(c){this.logger.warn(c)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},t)}}const Fh=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class $h extends Ai{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=We.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},l={},s={},a={};return t.forEach(u=>{let f=!0;n.forEach(h=>{const c=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?l[c]===void 0&&(l[c]=!0):(this.state[c]=1,f=!1,l[c]===void 0&&(l[c]=!0),o[c]===void 0&&(o[c]=!0),a[h]===void 0&&(a[h]=!0)))}),f||(s[u]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),o=i[0],l=i[1];n&&this.emit("failedLoading",o,l,n),!n&&r&&this.store.addResourceBundle(o,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const s={};this.queue.forEach(a=>{yh(a.loaded,[o],l),Fh(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{s[u]||(s[u]={});const f=a.loaded[u];f.length&&f.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:l});return}this.readingCalls++;const s=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&f&&i{this.read.call(this,t,n,r,i+1,o*2,l)},o);return}l(u,f)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}return}return a(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();T(t)&&(t=this.languageUtils.toResolveHierarchy(t)),T(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(l,s)=>{l&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,l),!l&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,l,s)})}saveMissing(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const a={...l,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,r,i,a):f=u(t,n,r,i),f&&typeof f.then=="function"?f.then(h=>s(null,h)).catch(s):s(null,f)}catch(f){s(f)}else u(t,n,r,i,s,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const Oa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),T(e[1])&&(t.defaultValue=e[1]),T(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),za=e=>(T(e.ns)&&(e.ns=[e.ns]),T(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),T(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Fr=()=>{},Mh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class fr extends Ai{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=za(t),this.services={},this.logger=We,this.modules={external:[]},Mh(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(T(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Oa();this.options={...i,...this.options,...za(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?We.init(o(this.modules.logger),this.options):We.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Dh);const h=new ja(this.options);this.store=new Ca(this.options.resources,this.options);const c=this.services;c.logger=We,c.resourceStore=this.store,c.languageUtils=h,c.pluralResolver=new Th(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new _h(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new $h(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var x=arguments.length,w=new Array(x>1?x-1:0),O=1;O1?x-1:0),O=1;O{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Fr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const a=Tn(),u=()=>{const f=(h,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(c),r(h,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fr;const i=T(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>l(a)),this.options.preload&&this.options.preload.forEach(s=>l(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=Tn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Fr),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&bc.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=Tn();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},l=(a,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},s=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=T(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{l(f,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const o=function(l,s){let a;if(typeof s!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),h=2;h`${a.keyPrefix}${c}${x}`):y=a.keyPrefix?`${a.keyPrefix}${c}${l}`:l,i.t(y,a)};return T(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(s,a)=>{const u=this.services.backendConnector.state[`${s}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,l);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!i||l(o,t)))}loadNamespaces(t,n){const r=Tn();return this.options.ns?(T(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Tn();T(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return o.length?(this.options.preload=i.concat(o),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new ja(Oa());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new fr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fr;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new fr(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Ca(this.store.data,i),o.services.resourceStore=o.store),o.translator=new ki(o.services,i),o.translator.on("*",function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),f=1;f0){var s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");l+="; Max-Age=".concat(Math.floor(s))}if(i.domain){if(!Ra.test(i.domain))throw new TypeError("option domain is invalid");l+="; Domain=".concat(i.domain)}if(i.path){if(!Ra.test(i.path))throw new TypeError("option path is invalid");l+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");l+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(l+="; HttpOnly"),i.secure&&(l+="; Secure"),i.sameSite){var a=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(a){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l},Ta={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=Yh(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),l=0;l0){var a=o[l].substring(0,s);a===t.lookupQuerystring&&(n=o[l].substring(s+1))}}}return n}},_n=null,_a=function(){if(_n!==null)return _n;try{_n=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{_n=!1}return _n},Xh={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&_a()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&_a()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},In=null,Ia=function(){if(In!==null)return In;try{In=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{In=!1}return In},Zh={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Ia()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Ia()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},qh={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r0?n:void 0}},bh={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},eg={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},tg={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},td=!1;try{document.cookie,td=!0}catch{}var nd=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];td||nd.splice(1,1);function ng(){return{order:nd,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var rd=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ah(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Bh(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=Qh(r,this.options||{},ng()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Gh),this.addDetector(Jh),this.addDetector(Xh),this.addDetector(Zh),this.addDetector(qh),this.addDetector(bh),this.addDetector(eg),this.addDetector(tg)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var l=r.detectors[o].lookup(r.options);l&&typeof l=="string"&&(l=[l]),l&&(i=i.concat(l))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();rd.type="languageDetector";const rg="DataVault",ig="Enterprise-grade secure data transfer platform with advanced encryption, real-time monitoring, and distributed server infrastructure.",og="Enterprise Beta Access - Verification Required",lg="Notice: Our platform enforces strict compliance with data protection and copyright regulations.",sg={servers:"Global Nodes",uptime:"Reliability",speed:"Bandwidth"},ag={title:"Transfer Protocol",auto:"Smart Transfer",video:"Video Stream",audio:"Audio Stream",document:"Document",archive:"Archive"},ug={url:"Resource URL",button:"Secure Transfer",urlError:"Please enter a valid URL"},cg={speed:{title:"Enterprise Speed",description:"Dedicated high-bandwidth channels with load balancing and smart routing technology. Experience unmatched transfer speeds through our optimized infrastructure."},security:{title:"Bank-Grade Security",description:"AES-256 encryption with real-time monitoring and threat detection. Your data is protected by the same security standards used by leading financial institutions."},network:{title:"Global Infrastructure",description:"Strategic server placement with automatic failover and redundancy. Our network updates every 2 hours to ensure optimal performance and reliability."}},dg={title:"Infrastructure Status",serversOnline:"Nodes Active",version:"Enterprise v1.2.0"},fg={title:"Enterprise Verification",description:"Access to our secure transfer infrastructure requires enterprise verification",email:"Corporate Email",emailPlaceholder:"Enter corporate email",button:"Request Enterprise Access",emailRequired:"Email is required",invalidEmail:"Please enter a valid corporate email",notFound:"Enterprise account not found. Please contact your administrator."},pg={rights:"All rights reserved.",developed:"Developed in compliance with ISO 27001 standards.",copyright:"We maintain strict compliance with international data protection regulations."},hg={title:rg,subtitle:ig,betaAccess:og,copyrightNotice:lg,stats:sg,fileTypes:ag,download:ug,features:cg,networkStatus:dg,auth:fg,footer:pg},gg="DataVault",mg="Enterprise-Plattform für sicheren Datentransfer mit fortschrittlicher Verschlüsselung, Echtzeitüberwachung und verteilter Serverinfrastruktur.",vg="Enterprise Beta-Zugang - Verifizierung erforderlich",yg="Hinweis: Unsere Plattform gewährleistet strikte Einhaltung von Datenschutz- und Urheberrechtsbestimmungen.",xg={servers:"Globale Knoten",uptime:"Zuverlässigkeit",speed:"Bandbreite"},wg={title:"Transferprotokoll",auto:"Smart Transfer",video:"Videostream",audio:"Audiostream",document:"Dokument",archive:"Archiv"},Sg={url:"Ressourcen-URL",button:"Sicherer Transfer"},kg={speed:{title:"Enterprise-Geschwindigkeit",description:"Dedizierte Hochgeschwindigkeitskanäle mit Lastausgleich und intelligenter Routing-Technologie. Erleben Sie unübertroffene Übertragungsgeschwindigkeiten durch unsere optimierte Infrastruktur."},security:{title:"Bankenstandard-Sicherheit",description:"AES-256-Verschlüsselung mit Echtzeitüberwachung und Bedrohungserkennung. Ihre Daten werden durch die gleichen Sicherheitsstandards geschützt wie führende Finanzinstitute."},network:{title:"Globale Infrastruktur",description:"Strategische Serverplatzierung mit automatischem Failover und Redundanz. Unser Netzwerk wird alle 2 Stunden aktualisiert, um optimale Leistung und Zuverlässigkeit zu gewährleisten."}},Ng={title:"Infrastrukturstatus",serversOnline:"Aktive Knoten",version:"Enterprise v1.2.0"},Cg={title:"Enterprise-Verifizierung",description:"Der Zugriff auf unsere sichere Transferinfrastruktur erfordert eine Enterprise-Verifizierung",email:"Firmen-E-Mail",emailPlaceholder:"Firmen-E-Mail eingeben",button:"Enterprise-Zugang anfordern"},Eg={rights:"Alle Rechte vorbehalten.",developed:"Entwickelt gemäß ISO 27001 Standards.",copyright:"Wir gewährleisten strikte Einhaltung internationaler Datenschutzbestimmungen."},jg={title:gg,subtitle:mg,betaAccess:vg,copyrightNotice:yg,stats:xg,fileTypes:wg,download:Sg,features:kg,networkStatus:Ng,auth:Cg,footer:Eg},Lg="DataVault",Pg="Корпоративная платформа безопасной передачи данных с продвинутым шифрованием, мониторингом в реальном времени и распределенной серверной инфраструктурой.",Og="Корпоративный Бета-доступ - Требуется верификация",zg="Примечание: Наша платформа обеспечивает строгое соблюдение правил защиты данных и авторских прав.",Rg={servers:"Глобальные узлы",uptime:"Надежность",speed:"Пропускная способность"},Tg={title:"Протокол передачи",auto:"Умная передача",video:"Видеопоток",audio:"Аудиопоток",document:"Документ",archive:"Архив"},_g={url:"URL ресурса",button:"Безопасная передача"},Ig={speed:{title:"Корпоративная скорость",description:"Выделенные высокоскоростные каналы с балансировкой нагрузки и умной маршрутизацией. Испытайте непревзойденную скорость передачи через нашу оптимизированную инфраструктуру."},security:{title:"Банковский уровень защиты",description:"Шифрование AES-256 с мониторингом в реальном времени и обнаружением угроз. Ваши данные защищены теми же стандартами безопасности, что используются ведущими финансовыми учреждениями."},network:{title:"Глобальная инфраструктура",description:"Стратегическое размещение серверов с автоматическим переключением и резервированием. Наша сеть обновляется каждые 2 часа для обеспечения оптимальной производительности и надежности."}},Dg={title:"Статус инфраструктуры",serversOnline:"Активных узлов",version:"Enterprise v1.2.0"},Fg={title:"Корпоративная верификация",description:"Доступ к нашей защищенной инфраструктуре передачи требует корпоративной верификации",email:"Корпоративная почта",emailPlaceholder:"Введите корпоративную почту",button:"Запросить корпоративный доступ"},$g={rights:"Все права защищены.",developed:"Разработано в соответствии со стандартами ISO 27001.",copyright:"Мы обеспечиваем строгое соответствие международным правилам защиты данных."},Mg={title:Lg,subtitle:Pg,betaAccess:Og,copyrightNotice:zg,stats:Rg,fileTypes:Tg,download:_g,features:Ig,networkStatus:Dg,auth:Fg,footer:$g};ce.use(rd).use(ch).init({resources:{en:{translation:hg},de:{translation:jg},ru:{translation:Mg}},fallbackLng:"en",interpolation:{escapeValue:!1}});const Ag=[{country:"Switzerland",cities:["Zurich","Geneva","Basel","Bern","Lausanne"]},{country:"Singapore",cities:["Singapore Central","Changi","Jurong"]},{country:"Japan",cities:["Tokyo","Osaka","Fukuoka","Sapporo"]},{country:"United Arab Emirates",cities:["Dubai","Abu Dhabi","Sharjah"]},{country:"Canada",cities:["Toronto","Vancouver","Montreal","Calgary"]},{country:"Australia",cities:["Sydney","Melbourne","Perth","Brisbane"]},{country:"United Kingdom",cities:["London","Manchester","Edinburgh","Cardiff"]},{country:"Brazil",cities:["São Paulo","Rio de Janeiro","Brasília"]},{country:"South Africa",cities:["Johannesburg","Cape Town","Durban"]},{country:"India",cities:["Mumbai","Bangalore","Delhi","Chennai"]}],Da=[{code:"en",name:"English",flag:"🇬🇧"},{code:"de",name:"Deutsch",flag:"🇩🇪"},{code:"ru",name:"Русский",flag:"🇷🇺"},{code:"fr",name:"Français",flag:"🇫🇷"}];function Ug(){var R;const{t:e,i18n:t}=gh(),[n,r]=F.useState(null),[i,o]=F.useState(""),[l,s]=F.useState("1080p"),[a,u]=F.useState("320"),[f,h]=F.useState("pdf"),[c,y]=F.useState("zip"),[x,w]=F.useState(!0),[O,p]=F.useState(!1),[d,m]=F.useState(""),[v,S]=F.useState(""),[C,N]=F.useState(""),[L,A]=F.useState(!1),[_,Z]=F.useState([]),[Ge,Je]=F.useState(0),[Te,Ve]=F.useState(!1);F.useEffect(()=>{_e();const P=setInterval(_e,2*60*60*1e3);return()=>clearInterval(P)},[]);const _e=()=>{const P=[],U=Math.floor(Math.random()*6)+5;[...Ag].sort(()=>Math.random()-.5).slice(0,U).forEach(({country:Pt,cities:Xe})=>{const Wt=[...Xe].sort(()=>Math.random()-.5),id=Math.floor(Math.random()*3)+1;Wt.slice(0,id).forEach(od=>{const ld={country:Pt,city:od,status:Math.random()>.9?"degraded":"operational",uptime:99.5+Math.random()*.5,responseTime:20+Math.random()*80};P.push(ld)})}),Je(P.length),Z(P)},st=()=>{if(!i.trim()){N(e("download.urlError"));return}p(!0)},E=()=>{if(!d){S(e("auth.emailRequired"));return}if(!d.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)){S(e("auth.invalidEmail"));return}S(e("auth.notFound"))},z=P=>{t.changeLanguage(P),Ve(!1)};return g.jsxs("div",{className:"min-h-screen bg-mesh text-white overflow-x-hidden",children:[g.jsx("div",{className:"fixed top-4 right-4 z-50",children:g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>Ve(!Te),className:"glass-card px-4 py-2 rounded-xl flex items-center gap-2 hover:bg-white/10 transition-all",children:[g.jsx(ga,{size:20}),g.jsx("span",{children:(R=Da.find(P=>P.code===t.language))==null?void 0:R.flag})]}),Te&&g.jsx("div",{className:"absolute top-full right-0 mt-2 glass-card rounded-xl overflow-hidden w-40 animate-[slideDown_0.2s_ease-out]",children:Da.map(P=>g.jsxs("button",{onClick:()=>z(P.code),className:`w-full px-4 py-2 flex items-center gap-2 hover:bg-white/10 transition-all ${t.language===P.code?"bg-white/10":""}`,children:[g.jsx("span",{children:P.flag}),g.jsx("span",{children:P.name})]},P.code))})]})}),g.jsx("div",{className:"bg-emerald-600/90 backdrop-blur-sm py-2 px-4 text-center sticky top-0 z-40 shimmer",children:g.jsxs("p",{className:"text-sm font-medium flex items-center justify-center gap-2",children:[g.jsx(po,{size:16,className:"animate-pulse"})," ",e("betaAccess")]})}),g.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8 md:py-16",children:[g.jsxs("div",{className:"text-center mb-8 md:mb-12 relative",children:[g.jsx("div",{className:"absolute inset-0 -z-10 flex items-center justify-center opacity-10",children:g.jsx("div",{className:"w-48 md:w-64 h-48 md:h-64 bg-emerald-500 rounded-full blur-3xl animate-pulse"})}),g.jsxs("h1",{className:"text-4xl md:text-5xl font-bold mb-4 flex items-center justify-center gap-3 text-gradient",children:[g.jsx(ma,{className:"text-emerald-400 w-8 h-8 md:w-10 md:h-10 animate-pulse"}),e("title")]}),g.jsxs("p",{className:"text-gray-300 text-base md:text-lg max-w-2xl mx-auto animate-[fadeIn_0.5s_ease-out]",children:[e("subtitle"),g.jsx("span",{className:"block mt-2 text-sm text-emerald-400",children:e("copyrightNotice")})]}),g.jsxs("div",{className:"mt-6 md:mt-8 grid grid-cols-1 sm:grid-cols-3 gap-3 md:gap-4 max-w-lg mx-auto stats-grid",children:[g.jsxs("div",{className:"glass-card rounded-xl p-3 stats-card",children:[g.jsx("div",{className:"text-xl md:text-2xl font-bold text-emerald-400",children:Ge}),g.jsx("div",{className:"text-sm text-gray-400",children:e("stats.servers")}),g.jsx("div",{className:"stats-emoji emoji-1",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-2",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-3",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-4",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-5",children:"👍"}),g.jsx("div",{className:"stats-emoji emoji-6",children:"👍"})]}),g.jsxs("div",{className:"glass-card rounded-xl p-3 stats-card",children:[g.jsx("div",{className:"text-xl md:text-2xl font-bold text-emerald-400",children:"99.9%"}),g.jsx("div",{className:"text-sm text-gray-400",children:e("stats.uptime")}),g.jsx("div",{className:"stats-emoji emoji-1",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-2",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-3",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-4",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-5",children:"⭐"}),g.jsx("div",{className:"stats-emoji emoji-6",children:"⭐"})]}),g.jsxs("div",{className:"glass-card rounded-xl p-3 stats-card",children:[g.jsx("div",{className:"text-xl md:text-2xl font-bold text-emerald-400",children:"3TB/s"}),g.jsx("div",{className:"text-sm text-gray-400",children:e("stats.speed")}),g.jsx("div",{className:"stats-emoji emoji-1",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-2",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-3",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-4",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-5",children:"⚡"}),g.jsx("div",{className:"stats-emoji emoji-6",children:"⚡"})]})]})]}),g.jsxs("div",{className:"glass-card rounded-xl p-6 relative overflow-hidden hover:border-emerald-500/20 transition-all duration-300",children:[g.jsx("div",{className:"absolute top-0 right-0 w-32 md:w-40 h-32 md:h-40 bg-emerald-500/10 rounded-full blur-2xl -z-10 animate-pulse"}),g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"text-lg font-medium text-gray-300 mb-4 flex items-center gap-2",children:[g.jsx(Jp,{size:20,className:"text-emerald-400"}),e("fileTypes.title")]}),g.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[g.jsxs("button",{onClick:()=>r("auto"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="auto"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Gp,{size:20}),e("fileTypes.auto")]}),g.jsxs("button",{onClick:()=>r("video"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="video"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Xp,{size:20}),e("fileTypes.video")]}),g.jsxs("button",{onClick:()=>r("audio"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="audio"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Yp,{size:20}),e("fileTypes.audio")]}),g.jsxs("button",{onClick:()=>r("document"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="document"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Kp,{size:20}),e("fileTypes.document")]}),g.jsxs("button",{onClick:()=>r("archive"),className:`flex items-center justify-center gap-2 px-4 py-3 rounded-xl transition-all hover-glow ${n==="archive"?"glass-card border-emerald-500/50 bg-emerald-600/20":"glass-card hover:border-emerald-500/30"}`,children:[g.jsx(Ap,{size:20}),e("fileTypes.archive")]})]})]}),n&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"relative",children:[g.jsxs("label",{className:"block text-sm font-medium text-gray-300 mb-2 flex items-center gap-2",children:[g.jsx(Wp,{size:16,className:"text-emerald-400"}),e("download.url")]}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[g.jsx("input",{type:"text",value:i,onChange:P=>{o(P.target.value),N("")},placeholder:"https://",className:"flex-1 glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500 text-white placeholder-gray-500"}),g.jsxs("button",{onClick:st,className:"bg-emerald-600 hover:bg-emerald-700 px-6 py-2 rounded-xl flex items-center justify-center gap-2 transition-colors shadow-lg hover:shadow-emerald-500/20 whitespace-nowrap hover-glow",children:[g.jsx(Bp,{size:20}),e("download.button")]})]}),C&&g.jsx("div",{className:"mt-2 text-red-400 text-sm bg-red-400/10 backdrop-blur-sm p-3 rounded-xl border border-red-400/20",children:C})]}),n==="auto"&&g.jsx("div",{className:"space-y-4",children:g.jsx("div",{className:"glass-card p-4 rounded-xl",children:g.jsx("p",{className:"text-sm text-gray-300",children:"Our AI will automatically detect the content type and optimize the download settings. This is the recommended option for most users."})})}),n==="video"&&g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[g.jsx("input",{type:"checkbox",id:"autoDetect",checked:x,onChange:P=>w(P.target.checked),className:"w-4 h-4 text-emerald-600 border-gray-600 rounded focus:ring-emerald-500 bg-gray-700"}),g.jsx("label",{htmlFor:"autoDetect",className:"text-sm text-gray-300",children:"Auto-detect optimal quality (Recommended)"})]}),g.jsxs("select",{value:l,onChange:P=>{s(P.target.value),w(!1)},disabled:x,className:`w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500 ${x?"opacity-50 cursor-not-allowed":""}`,children:[g.jsx("option",{value:"4k",children:"4K Ultra HD (2160p)"}),g.jsx("option",{value:"1440p",children:"2K Quad HD (1440p)"}),g.jsx("option",{value:"1080p",children:"Full HD (1080p)"}),g.jsx("option",{value:"720p",children:"HD Ready (720p)"}),g.jsx("option",{value:"480p",children:"SD (480p)"})]})]}),n==="audio"&&g.jsx("div",{className:"space-y-2",children:g.jsxs("select",{value:a,onChange:P=>u(P.target.value),className:"w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500",children:[g.jsx("option",{value:"320",children:"High Quality (320 kbps)"}),g.jsx("option",{value:"256",children:"Premium (256 kbps)"}),g.jsx("option",{value:"192",children:"Standard (192 kbps)"}),g.jsx("option",{value:"128",children:"Basic (128 kbps)"})]})}),n==="document"&&g.jsx("div",{className:"space-y-2",children:g.jsxs("select",{value:f,onChange:P=>h(P.target.value),className:"w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500",children:[g.jsx("option",{value:"pdf",children:"PDF - Universal Format"}),g.jsx("option",{value:"doc",children:"DOC - Microsoft Word"}),g.jsx("option",{value:"docx",children:"DOCX - Modern Word Format"}),g.jsx("option",{value:"txt",children:"TXT - Plain Text"}),g.jsx("option",{value:"rtf",children:"RTF - Rich Text Format"})]})}),n==="archive"&&g.jsx("div",{className:"space-y-2",children:g.jsxs("select",{value:c,onChange:P=>y(P.target.value),className:"w-full glass-card rounded-xl px-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500",children:[g.jsx("option",{value:"zip",children:"ZIP - Universal Compression"}),g.jsx("option",{value:"rar",children:"RAR - Better Compression"}),g.jsx("option",{value:"7z",children:"7Z - Maximum Compression"}),g.jsx("option",{value:"tar",children:"TAR - Unix Archive"}),g.jsx("option",{value:"gz",children:"GZ - Fast Compression"})]})})]})]})]}),g.jsxs("div",{className:"mt-8 md:mt-12 grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6",children:[g.jsxs("div",{className:"feature-card glass-card rounded-xl p-6 hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"relative",children:[g.jsx(ma,{className:"feature-icon text-emerald-400 mb-4 transition-all duration-300",size:24}),g.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 blur-2xl -z-10"})]}),g.jsx("h3",{className:"text-lg font-semibold mb-2",children:e("features.speed.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("features.speed.description")})]}),g.jsxs("div",{className:"feature-card glass-card rounded-xl p-6 hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"relative",children:[g.jsx(po,{className:"feature-icon text-emerald-400 mb-4 transition-all duration-300",size:24}),g.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 blur-2xl -z-10"})]}),g.jsx("h3",{className:"text-lg font-semibold mb-2",children:e("features.security.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("features.security.description")})]}),g.jsxs("div",{className:"feature-card glass-card rounded-xl p-6 hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"relative",children:[g.jsx(ga,{className:"feature-icon text-emerald-400 mb-4 transition-all duration-300",size:24}),g.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 blur-2xl -z-10"})]}),g.jsx("h3",{className:"text-lg font-semibold mb-2",children:e("features.network.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("features.network.description")})]})]}),g.jsxs("div",{className:"mt-6 md:mt-8",children:[g.jsxs("button",{onClick:()=>A(!L),className:"w-full glass-card rounded-xl p-4 flex items-center justify-between hover:border-emerald-500/50 transition-all duration-300",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Up,{className:"text-green-500 status-indicator",size:20}),g.jsxs("span",{className:"text-sm text-gray-300",children:[e("networkStatus.title"),": ",Ge," ",e("networkStatus.serversOnline")]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Mp,{className:"text-yellow-500",size:20}),g.jsx("span",{className:"text-sm text-gray-300",children:e("networkStatus.version")})]}),L?g.jsx(Hp,{className:"text-gray-400",size:20}):g.jsx(Vp,{className:"text-gray-400",size:20})]})]}),L&&g.jsxs("div",{className:"mt-2 glass-card rounded-xl p-4 animate-[slideDown_0.3s_ease-out]",children:[g.jsx("h3",{className:"text-lg font-medium mb-4",children:"European Server Network Status"}),g.jsx("div",{className:"space-y-4",children:_.reduce((P,U)=>(P.find(K=>K.key===U.country)||P.push(g.jsxs("div",{children:[g.jsx("h4",{className:"font-medium text-gray-300 mb-2",children:U.country}),g.jsx("div",{className:"space-y-2",children:_.filter(K=>K.country===U.country).map((K,Pt)=>g.jsxs("div",{className:"glass-card rounded-xl p-3 flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("p",{className:"font-medium",children:K.city}),g.jsxs("p",{className:"text-sm text-gray-400",children:["Response Time: ",K.responseTime.toFixed(1),"ms"]})]}),g.jsxs("div",{className:"text-right",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${K.status==="operational"?"bg-green-500":K.status==="degraded"?"bg-yellow-500":"bg-red-500"}`}),g.jsx("span",{className:`text-sm ${K.status==="operational"?"text-green-500":K.status==="degraded"?"text-yellow-500":"text-red-500"}`,children:K.status==="operational"?"Operational":K.status==="degraded"?"Degraded":"Down"})]}),g.jsxs("p",{className:"text-sm text-gray-400",children:["Uptime: ",K.uptime.toFixed(2),"%"]})]})]},`${K.city}-${Pt}`))})]},U.country)),P),[])})]})]}),g.jsxs("div",{className:"mt-12 text-center text-sm text-gray-400 animate-[fadeIn_0.5s_ease-out]",children:[g.jsxs("p",{children:["© ",new Date().getFullYear()," ",e("title"),". ",e("footer.rights")]}),g.jsx("p",{className:"mt-1",children:e("footer.developed")}),g.jsx("p",{className:"mt-2 text-emerald-400/80",children:e("footer.copyright")})]})]}),O&&g.jsx("div",{className:"fixed inset-0 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4 z-50 modal-overlay",children:g.jsxs("div",{className:"glass-card rounded-xl p-6 max-w-md w-full relative modal-content",children:[g.jsx("button",{onClick:()=>p(!1),className:"absolute top-4 right-4 text-gray-400 hover:text-white",children:g.jsx(Zp,{size:20})}),g.jsxs("div",{className:"text-center mb-6",children:[g.jsx(po,{className:"mx-auto mb-4 text-emerald-400",size:32}),g.jsx("h2",{className:"text-xl font-bold mb-2",children:e("auth.title")}),g.jsx("p",{className:"text-gray-400 text-sm",children:e("auth.description")})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-300 mb-2",children:e("auth.email")}),g.jsxs("div",{className:"relative",children:[g.jsx(Qp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400",size:20}),g.jsx("input",{type:"email",id:"email",value:d,onChange:P=>{m(P.target.value),S("")},placeholder:e("auth.emailPlaceholder"),className:"w-full glass-card rounded-xl pl-10 pr-4 py-2 focus:outline-none focus:ring-2 focus:ring-emerald-500 text-white placeholder-gray-500"})]})]}),v&&g.jsx("div",{className:"text-red-400 text-sm bg-red-400/10 backdrop-blur-sm p-3 rounded-xl border border-red-400/20",children:v}),g.jsx("button",{onClick:E,className:"w-full bg-emerald-600 hover:bg-emerald-700 py-2 rounded-xl transition-colors hover-glow",children:e("auth.button")})]})]})})]})}Gc(document.getElementById("root")).render(g.jsx(F.StrictMode,{children:g.jsx(Ug,{})})); diff --git a/sni-templates/downloader/assets/v2/style.css b/sni-templates/downloader/assets/v2/style.css new file mode 100644 index 0000000..e10b35d --- /dev/null +++ b/sni-templates/downloader/assets/v2/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.left-3{left:.75rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.top-4{top:1rem}.top-full{top:100%}.-z-10{z-index:-10}.z-40{z-index:40}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-2{height:.5rem}.h-32{height:8rem}.h-4{height:1rem}.h-48{height:12rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-2{width:.5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-8{width:2rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[fadeIn_0\.5s_ease-out\]{animation:fadeIn .5s ease-out}.animate-\[slideDown_0\.2s_ease-out\]{animation:slideDown .2s ease-out}.animate-\[slideDown_0\.3s_ease-out\]{animation:slideDown .3s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-emerald-500\/50{border-color:#10b98180}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-red-400\/20{border-color:#f8717133}.bg-black\/80{background-color:#000c}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-600\/90{background-color:#059669e6}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-red-400\/10{background-color:#f871711a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white\/10{background-color:#ffffff1a}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity))}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-right{text-align:right}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity))}.text-emerald-400\/80{color:#34d399cc}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity))}.opacity-10{opacity:.1}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur-2xl{--tw-blur: blur(40px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}@keyframes slideDown{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}@keyframes flyEmoji{0%{opacity:0;transform:translate(0) scale(.5)}25%{opacity:1;transform:translate(var(--tx),var(--ty)) scale(1.2)}to{opacity:0;transform:translate(calc(var(--tx) * 2),calc(var(--ty) * 2)) scale(.5)}}.stats-emoji{position:absolute;pointer-events:none;font-size:1.5rem;opacity:0}.stats-card{position:relative;overflow:hidden}.stats-card:hover .stats-emoji{animation:flyEmoji 1s ease-out forwards}.stats-card:hover .emoji-1{--tx: -20px;--ty: -20px;animation-delay:0s}.stats-card:hover .emoji-2{--tx: 20px;--ty: -20px;animation-delay:.1s}.stats-card:hover .emoji-3{--tx: -20px;--ty: 20px;animation-delay:.2s}.stats-card:hover .emoji-4{--tx: 20px;--ty: 20px;animation-delay:.3s}.stats-card:hover .emoji-5{--tx: 0px;--ty: -30px;animation-delay:.4s}.stats-card:hover .emoji-6{--tx: 0px;--ty: 30px;animation-delay:.5s}.bg-mesh{background-color:#0a192f;background-image:linear-gradient(to bottom,#0a192fd9,#0a192ff2),url(https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80);background-size:cover;background-position:center;background-attachment:fixed;position:relative;overflow:hidden}@supports (-webkit-touch-callout: none){.bg-mesh{background-attachment:scroll}}.bg-mesh:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right,rgba(100,100,100,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(100,100,100,.05) 1px,transparent 1px);background-size:40px 40px;pointer-events:none;z-index:0;-webkit-mask-image:radial-gradient(circle at center,black,transparent);mask-image:radial-gradient(circle at center,black,transparent);animation:gridFloat 30s linear infinite}@media (max-width: 768px){.bg-mesh{background-attachment:scroll}}@media (max-width: 640px){h1{font-size:2rem!important}.stats-grid{grid-template-columns:1fr!important}}.glass-card{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#11224066;border:1px solid rgba(100,255,255,.1);box-shadow:0 8px 32px #0000002e;animation:scaleIn .3s ease-out}.hover-glow{transition:all .3s cubic-bezier(.4,0,.2,1)}.hover-glow:hover{box-shadow:0 0 25px #64646466;transform:translateY(-2px);background:linear-gradient(45deg,#6464641a,#64646433)}.hover-glow:active{transform:translateY(0);box-shadow:0 0 15px #6464644d}.text-gradient{background:linear-gradient(45deg,#64ffda,#0a192f);-webkit-background-clip:text;background-clip:text;color:transparent;background-size:200% 200%;animation:gradientMove 4s ease infinite}@keyframes gradientMove{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.language-selector{position:fixed;top:1rem;right:1rem;z-index:100}.language-button{padding:.5rem;border-radius:.5rem;transition:all .2s}.language-button:hover{background:#ffffff1a}.language-button.active{background:#fff3}.dropdown-enter{opacity:0;transform:translateY(-10px)}.dropdown-enter-active{opacity:1;transform:translateY(0);transition:opacity .2s,transform .2s}.dropdown-exit{opacity:1;transform:translateY(0)}.dropdown-exit-active{opacity:0;transform:translateY(-10px);transition:opacity .2s,transform .2s}.stats-grid>div{animation:fadeIn .5s ease-out;animation-fill-mode:both}.stats-grid>div:nth-child(1){animation-delay:.1s}.stats-grid>div:nth-child(2){animation-delay:.2s}.stats-grid>div:nth-child(3){animation-delay:.3s}.feature-card{transition:transform .3s cubic-bezier(.4,0,.2,1)}.feature-card:hover{transform:translateY(-5px)}.feature-card:hover .feature-icon{transform:scale(1.1) rotate(5deg)}.shimmer{background:linear-gradient(90deg,#fff0,#ffffff1a,#fff0);background-size:200% 100%;animation:shimmer 2s infinite}.modal-overlay{animation:fadeIn .2s ease-out}.modal-content{animation:scaleIn .3s cubic-bezier(.34,1.56,.64,1)}.status-indicator{position:relative}.status-indicator:before{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border-radius:inherit;animation:pulse 2s infinite;opacity:.5}button,input,select,.glass-card{transition:all .2s cubic-bezier(.4,0,.2,1)}input:focus,select:focus{transform:translateY(-1px);box-shadow:0 0 0 2px #6464644d}.hover\:border-emerald-500\/20:hover{border-color:#10b98133}.hover\:border-emerald-500\/30:hover{border-color:#10b9814d}.hover\:border-emerald-500\/50:hover{border-color:#10b98180}.hover\:bg-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:shadow-emerald-500\/20:hover{--tw-shadow-color: rgb(16 185 129 / .2);--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-emerald-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(16 185 129 / var(--tw-ring-opacity))}@media (min-width: 640px){.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\:mb-12{margin-bottom:3rem}.md\:mt-12{margin-top:3rem}.md\:mt-8{margin-top:2rem}.md\:h-10{height:2.5rem}.md\:h-40{height:10rem}.md\:h-64{height:16rem}.md\:w-10{width:2.5rem}.md\:w-40{width:10rem}.md\:w-64{width:16rem}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:gap-4{gap:1rem}.md\:gap-6{gap:1.5rem}.md\:py-16{padding-top:4rem;padding-bottom:4rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}} diff --git a/sni-templates/downloader/favicon-96x96.png b/sni-templates/downloader/favicon-96x96.png new file mode 100644 index 0000000..38aaf2a Binary files /dev/null and b/sni-templates/downloader/favicon-96x96.png differ diff --git a/sni-templates/downloader/favicon.ico b/sni-templates/downloader/favicon.ico new file mode 100644 index 0000000..2b61320 Binary files /dev/null and b/sni-templates/downloader/favicon.ico differ diff --git a/sni-templates/downloader/favicon.svg b/sni-templates/downloader/favicon.svg new file mode 100644 index 0000000..51694ae --- /dev/null +++ b/sni-templates/downloader/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sni-templates/downloader/index.html b/sni-templates/downloader/index.html new file mode 100644 index 0000000..eed3c03 --- /dev/null +++ b/sni-templates/downloader/index.html @@ -0,0 +1,19 @@ + + + + + + + + + + + Powerful Browser Download Manager | Fast & Secure File Downloads + + + + + +
+ + diff --git a/sni-templates/downloader/site.webmanifest b/sni-templates/downloader/site.webmanifest new file mode 100644 index 0000000..05a7220 --- /dev/null +++ b/sni-templates/downloader/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/favicon.ico/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/favicon.ico/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/downloader/web-app-manifest-192x192.png b/sni-templates/downloader/web-app-manifest-192x192.png new file mode 100644 index 0000000..7323424 Binary files /dev/null and b/sni-templates/downloader/web-app-manifest-192x192.png differ diff --git a/sni-templates/downloader/web-app-manifest-512x512.png b/sni-templates/downloader/web-app-manifest-512x512.png new file mode 100644 index 0000000..884b52f Binary files /dev/null and b/sni-templates/downloader/web-app-manifest-512x512.png differ diff --git a/sni-templates/filecloud/apple-touch-icon.png b/sni-templates/filecloud/apple-touch-icon.png new file mode 100644 index 0000000..ea3e011 Binary files /dev/null and b/sni-templates/filecloud/apple-touch-icon.png differ diff --git a/sni-templates/filecloud/assets/v1/script.js b/sni-templates/filecloud/assets/v1/script.js new file mode 100644 index 0000000..6d94ad4 --- /dev/null +++ b/sni-templates/filecloud/assets/v1/script.js @@ -0,0 +1,326 @@ +var v1=Object.defineProperty;var x1=(t,e,n)=>e in t?v1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var R=(t,e,n)=>x1(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();function w1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Dg={exports:{}},Ha={},Rg={exports:{}},z={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Or=Symbol.for("react.element"),_1=Symbol.for("react.portal"),S1=Symbol.for("react.fragment"),b1=Symbol.for("react.strict_mode"),k1=Symbol.for("react.profiler"),P1=Symbol.for("react.provider"),C1=Symbol.for("react.context"),M1=Symbol.for("react.forward_ref"),T1=Symbol.for("react.suspense"),E1=Symbol.for("react.memo"),A1=Symbol.for("react.lazy"),Oh=Symbol.iterator;function D1(t){return t===null||typeof t!="object"?null:(t=Oh&&t[Oh]||t["@@iterator"],typeof t=="function"?t:null)}var Lg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Og=Object.assign,Ng={};function os(t,e,n){this.props=t,this.context=e,this.refs=Ng,this.updater=n||Lg}os.prototype.isReactComponent={};os.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};os.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function jg(){}jg.prototype=os.prototype;function zc(t,e,n){this.props=t,this.context=e,this.refs=Ng,this.updater=n||Lg}var Bc=zc.prototype=new jg;Bc.constructor=zc;Og(Bc,os.prototype);Bc.isPureReactComponent=!0;var Nh=Array.isArray,Ig=Object.prototype.hasOwnProperty,Hc={current:null},Fg={key:!0,ref:!0,__self:!0,__source:!0};function Vg(t,e,n){var i,s={},r=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(r=""+e.key),e)Ig.call(e,i)&&!Fg.hasOwnProperty(i)&&(s[i]=e[i]);var a=arguments.length-2;if(a===1)s.children=n;else if(1>>1,J=A[Q];if(0>>1;Qs(Ve,j))Its(Kr,Ve)?(A[Q]=Kr,A[It]=j,Q=It):(A[Q]=Ve,A[jt]=j,Q=jt);else if(Its(Kr,j))A[Q]=Kr,A[It]=j,Q=It;else break t}}return L}function s(A,L){var j=A.sortIndex-L.sortIndex;return j!==0?j:A.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,f=!1,g=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(A){for(var L=n(u);L!==null;){if(L.callback===null)i(u);else if(L.startTime<=A)i(u),L.sortIndex=L.expirationTime,e(l,L);else break;L=n(u)}}function _(A){if(y=!1,v(A),!g)if(n(l)!==null)g=!0,Y(w);else{var L=n(u);L!==null&&F(_,L.startTime-A)}}function w(A,L){g=!1,y&&(y=!1,p(b),b=-1),f=!0;var j=h;try{for(v(L),d=n(l);d!==null&&(!(d.expirationTime>L)||A&&!O());){var Q=d.callback;if(typeof Q=="function"){d.callback=null,h=d.priorityLevel;var J=Q(d.expirationTime<=L);L=t.unstable_now(),typeof J=="function"?d.callback=J:d===n(l)&&i(l),v(L)}else i(l);d=n(l)}if(d!==null)var Pe=!0;else{var jt=n(u);jt!==null&&F(_,jt.startTime-L),Pe=!1}return Pe}finally{d=null,h=j,f=!1}}var k=!1,P=null,b=-1,T=5,E=-1;function O(){return!(t.unstable_now()-EA||125Q?(A.sortIndex=j,e(u,A),n(l)===null&&A===n(u)&&(y?(p(b),b=-1):y=!0,F(_,j-Q))):(A.sortIndex=J,e(l,A),g||f||(g=!0,Y(w))),A},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(A){var L=h;return function(){var j=h;h=L;try{return A.apply(this,arguments)}finally{h=j}}}})(Ug);$g.exports=Ug;var H1=$g.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var W1=C,ee=H1;function M(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mu=Object.prototype.hasOwnProperty,$1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ih={},Fh={};function U1(t){return mu.call(Fh,t)?!0:mu.call(Ih,t)?!1:$1.test(t)?Fh[t]=!0:(Ih[t]=!0,!1)}function K1(t,e,n,i){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Y1(t,e,n,i){if(e===null||typeof e>"u"||K1(t,e,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Wt(t,e,n,i,s,r,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=r,this.removeEmptyString=o}var Ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ct[t]=new Wt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ct[e]=new Wt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ct[t]=new Wt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ct[t]=new Wt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ct[t]=new Wt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ct[t]=new Wt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ct[t]=new Wt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ct[t]=new Wt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ct[t]=new Wt(t,5,!1,t.toLowerCase(),null,!1,!1)});var $c=/[\-:]([a-z])/g;function Uc(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace($c,Uc);Ct[e]=new Wt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace($c,Uc);Ct[e]=new Wt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace($c,Uc);Ct[e]=new Wt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ct[t]=new Wt(t,1,!1,t.toLowerCase(),null,!1,!1)});Ct.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ct[t]=new Wt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Kc(t,e,n,i){var s=Ct.hasOwnProperty(e)?Ct[e]:null;(s!==null?s.type!==0:i||!(2a||s[o]!==r[a]){var l=` +`+s[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{yl=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ms(t):""}function X1(t){switch(t.tag){case 5:return Ms(t.type);case 16:return Ms("Lazy");case 13:return Ms("Suspense");case 19:return Ms("SuspenseList");case 0:case 2:case 15:return t=vl(t.type,!1),t;case 11:return t=vl(t.type.render,!1),t;case 1:return t=vl(t.type,!0),t;default:return""}}function xu(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Pi:return"Fragment";case ki:return"Portal";case gu:return"Profiler";case Yc:return"StrictMode";case yu:return"Suspense";case vu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Xg:return(t.displayName||"Context")+".Consumer";case Yg:return(t._context.displayName||"Context")+".Provider";case Xc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Gc:return e=t.displayName||null,e!==null?e:xu(t.type)||"Memo";case fn:e=t._payload,t=t._init;try{return xu(t(e))}catch{}}return null}function G1(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xu(e);case 8:return e===Yc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Rn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Qg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Q1(t){var e=Qg(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){i=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Gr(t){t._valueTracker||(t._valueTracker=Q1(t))}function qg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=Qg(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function na(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function wu(t,e){var n=e.checked;return at({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function zh(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Rn(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Zg(t,e){e=e.checked,e!=null&&Kc(t,"checked",e,!1)}function _u(t,e){Zg(t,e);var n=Rn(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Su(t,e.type,n):e.hasOwnProperty("defaultValue")&&Su(t,e.type,Rn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Bh(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Su(t,e,n){(e!=="number"||na(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Ts=Array.isArray;function Bi(t,e,n,i){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=Qr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function or(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var zs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q1=["Webkit","ms","Moz","O"];Object.keys(zs).forEach(function(t){q1.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),zs[e]=zs[t]})});function n0(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||zs.hasOwnProperty(t)&&zs[t]?(""+e).trim():e+"px"}function i0(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,s=n0(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,s):t[n]=s}}var Z1=at({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pu(t,e){if(e){if(Z1[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function Cu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mu=null;function Qc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Tu=null,Hi=null,Wi=null;function $h(t){if(t=Ir(t)){if(typeof Tu!="function")throw Error(M(280));var e=t.stateNode;e&&(e=Ya(e),Tu(t.stateNode,t.type,e))}}function s0(t){Hi?Wi?Wi.push(t):Wi=[t]:Hi=t}function r0(){if(Hi){var t=Hi,e=Wi;if(Wi=Hi=null,$h(t),e)for(t=0;t>>=0,t===0?32:31-(uw(t)/cw|0)|0}var qr=64,Zr=4194304;function Es(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function oa(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,s=t.suspendedLanes,r=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?i=Es(a):(r&=o,r!==0&&(i=Es(r)))}else o=n&~s,o!==0?i=Es(o):r!==0&&(i=Es(r));if(i===0)return 0;if(e!==0&&e!==i&&!(e&s)&&(s=i&-i,r=e&-e,s>=r||s===16&&(r&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function Nr(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Se(e),t[e]=n}function pw(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=Hs),Jh=" ",tf=!1;function P0(t,e){switch(t){case"keyup":return Hw.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function $w(t,e){switch(t){case"compositionend":return C0(e);case"keypress":return e.which!==32?null:(tf=!0,Jh);case"textInput":return t=e.data,t===Jh&&tf?null:t;default:return null}}function Uw(t,e){if(Ci)return t==="compositionend"||!sd&&P0(t,e)?(t=b0(),No=ed=vn=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=rf(n)}}function A0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?A0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function D0(){for(var t=window,e=na();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=na(t.document)}return e}function rd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function t_(t){var e=D0(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&A0(n.ownerDocument.documentElement,n)){if(i!==null&&rd(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,r=Math.min(i.start,s);i=i.end===void 0?r:Math.min(i.end,s),!t.extend&&r>i&&(s=i,i=r,r=s),s=of(n,r);var o=of(n,i);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),r>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Mi=null,Ou=null,$s=null,Nu=!1;function af(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nu||Mi==null||Mi!==na(i)||(i=Mi,"selectionStart"in i&&rd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),$s&&hr($s,i)||($s=i,i=ua(Ou,"onSelect"),0Ai||(t.current=Bu[Ai],Bu[Ai]=null,Ai--)}function q(t,e){Ai++,Bu[Ai]=t.current,t.current=e}var Ln={},Nt=In(Ln),Gt=In(!1),li=Ln;function Qi(t,e){var n=t.type.contextTypes;if(!n)return Ln;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var s={},r;for(r in n)s[r]=e[r];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function Qt(t){return t=t.childContextTypes,t!=null}function da(){nt(Gt),nt(Nt)}function pf(t,e,n){if(Nt.current!==Ln)throw Error(M(168));q(Nt,e),q(Gt,n)}function z0(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var s in i)if(!(s in e))throw Error(M(108,G1(t)||"Unknown",s));return at({},n,i)}function ha(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ln,li=Nt.current,q(Nt,t),q(Gt,Gt.current),!0}function mf(t,e,n){var i=t.stateNode;if(!i)throw Error(M(169));n?(t=z0(t,e,li),i.__reactInternalMemoizedMergedChildContext=t,nt(Gt),nt(Nt),q(Nt,t)):nt(Gt),q(Gt,n)}var Ue=null,Xa=!1,Rl=!1;function B0(t){Ue===null?Ue=[t]:Ue.push(t)}function h_(t){Xa=!0,B0(t)}function Fn(){if(!Rl&&Ue!==null){Rl=!0;var t=0,e=G;try{var n=Ue;for(G=1;t>=o,s-=o,Ye=1<<32-Se(e)+s|n<b?(T=P,P=null):T=P.sibling;var E=h(p,P,v[b],_);if(E===null){P===null&&(P=T);break}t&&P&&E.alternate===null&&e(p,P),m=r(E,m,b),k===null?w=E:k.sibling=E,k=E,P=T}if(b===v.length)return n(p,P),it&&Un(p,b),w;if(P===null){for(;bb?(T=P,P=null):T=P.sibling;var O=h(p,P,E.value,_);if(O===null){P===null&&(P=T);break}t&&P&&O.alternate===null&&e(p,P),m=r(O,m,b),k===null?w=O:k.sibling=O,k=O,P=T}if(E.done)return n(p,P),it&&Un(p,b),w;if(P===null){for(;!E.done;b++,E=v.next())E=d(p,E.value,_),E!==null&&(m=r(E,m,b),k===null?w=E:k.sibling=E,k=E);return it&&Un(p,b),w}for(P=i(p,P);!E.done;b++,E=v.next())E=f(P,p,b,E.value,_),E!==null&&(t&&E.alternate!==null&&P.delete(E.key===null?b:E.key),m=r(E,m,b),k===null?w=E:k.sibling=E,k=E);return t&&P.forEach(function(I){return e(p,I)}),it&&Un(p,b),w}function x(p,m,v,_){if(typeof v=="object"&&v!==null&&v.type===Pi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Xr:t:{for(var w=v.key,k=m;k!==null;){if(k.key===w){if(w=v.type,w===Pi){if(k.tag===7){n(p,k.sibling),m=s(k,v.props.children),m.return=p,p=m;break t}}else if(k.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===fn&&vf(w)===k.type){n(p,k.sibling),m=s(k,v.props),m.ref=ys(p,k,v),m.return=p,p=m;break t}n(p,k);break}else e(p,k);k=k.sibling}v.type===Pi?(m=si(v.props.children,p.mode,_,v.key),m.return=p,p=m):(_=Wo(v.type,v.key,v.props,null,p.mode,_),_.ref=ys(p,m,v),_.return=p,p=_)}return o(p);case ki:t:{for(k=v.key;m!==null;){if(m.key===k)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(p,m.sibling),m=s(m,v.children||[]),m.return=p,p=m;break t}else{n(p,m);break}else e(p,m);m=m.sibling}m=zl(v,p.mode,_),m.return=p,p=m}return o(p);case fn:return k=v._init,x(p,m,k(v._payload),_)}if(Ts(v))return g(p,m,v,_);if(hs(v))return y(p,m,v,_);ro(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=s(m,v),m.return=p,p=m):(n(p,m),m=Vl(v,p.mode,_),m.return=p,p=m),o(p)):n(p,m)}return x}var Zi=U0(!0),K0=U0(!1),ma=In(null),ga=null,Li=null,ud=null;function cd(){ud=Li=ga=null}function dd(t){var e=ma.current;nt(ma),t._currentValue=e}function $u(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Ui(t,e){ga=t,ud=Li=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Xt=!0),t.firstContext=null)}function fe(t){var e=t._currentValue;if(ud!==t)if(t={context:t,memoizedValue:e,next:null},Li===null){if(ga===null)throw Error(M(308));Li=t,ga.dependencies={lanes:0,firstContext:t}}else Li=Li.next=t;return e}var Zn=null;function hd(t){Zn===null?Zn=[t]:Zn.push(t)}function Y0(t,e,n,i){var s=e.interleaved;return s===null?(n.next=n,hd(e)):(n.next=s.next,s.next=n),e.interleaved=n,nn(t,i)}function nn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var pn=!1;function fd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X0(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function qe(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Mn(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,H&2){var s=i.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e,nn(t,n)}return s=i.interleaved,s===null?(e.next=e,hd(i)):(e.next=s.next,s.next=e),i.interleaved=e,nn(t,n)}function Io(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Zc(t,n)}}function xf(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};r===null?s=r=o:r=r.next=o,n=n.next}while(n!==null);r===null?s=r=e:r=r.next=e}else s=r=e;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:r,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function ya(t,e,n,i){var s=t.updateQueue;pn=!1;var r=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?r=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(r!==null){var d=s.baseState;o=0,c=u=l=null,a=r;do{var h=a.lane,f=a.eventTime;if((i&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var g=t,y=a;switch(h=e,f=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(f,d,h);break t}d=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,h=typeof g=="function"?g.call(f,d,h):g,h==null)break t;d=at({},d,h);break t;case 2:pn=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(!0);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else r===null&&(s.shared.lanes=0);di|=o,t.lanes=o,t.memoizedState=d}}function wf(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=Ol.transition;Ol.transition={};try{t(!1),e()}finally{G=n,Ol.transition=i}}function dy(){return pe().memoizedState}function g_(t,e,n){var i=En(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},hy(t))fy(e,n);else if(n=Y0(t,e,n,i),n!==null){var s=zt();be(n,t,i,s),py(n,e,i)}}function y_(t,e,n){var i=En(t),s={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(hy(t))fy(e,s);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,a=r(o,n);if(s.hasEagerState=!0,s.eagerState=a,ke(a,o)){var l=e.interleaved;l===null?(s.next=s,hd(e)):(s.next=l.next,l.next=s),e.interleaved=s;return}}catch{}finally{}n=Y0(t,e,s,i),n!==null&&(s=zt(),be(n,t,i,s),py(n,e,i))}}function hy(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function fy(t,e){Us=xa=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function py(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,Zc(t,n)}}var wa={readContext:fe,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useInsertionEffect:Mt,useLayoutEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useMutableSource:Mt,useSyncExternalStore:Mt,useId:Mt,unstable_isNewReconciler:!1},v_={readContext:fe,useCallback:function(t,e){return Ee().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Sf,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Vo(4194308,4,oy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Vo(4194308,4,t,e)},useInsertionEffect:function(t,e){return Vo(4,2,t,e)},useMemo:function(t,e){var n=Ee();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Ee();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=g_.bind(null,ot,t),[i.memoizedState,t]},useRef:function(t){var e=Ee();return t={current:t},e.memoizedState=t},useState:_f,useDebugValue:_d,useDeferredValue:function(t){return Ee().memoizedState=t},useTransition:function(){var t=_f(!1),e=t[0];return t=m_.bind(null,t[1]),Ee().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=ot,s=Ee();if(it){if(n===void 0)throw Error(M(407));n=n()}else{if(n=e(),bt===null)throw Error(M(349));ci&30||Z0(i,e,n)}s.memoizedState=n;var r={value:n,getSnapshot:e};return s.queue=r,Sf(ty.bind(null,i,r,t),[t]),i.flags|=2048,wr(9,J0.bind(null,i,r,n,e),void 0,null),n},useId:function(){var t=Ee(),e=bt.identifierPrefix;if(it){var n=Xe,i=Ye;n=(i&~(1<<32-Se(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=vr++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[De]=e,t[mr]=i,ky(t,e,!1,!1),e.stateNode=t;t:{switch(o=Cu(n,i),n){case"dialog":tt("cancel",t),tt("close",t),s=i;break;case"iframe":case"object":case"embed":tt("load",t),s=i;break;case"video":case"audio":for(s=0;ses&&(e.flags|=128,i=!0,vs(r,!1),e.lanes=4194304)}else{if(!i)if(t=va(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),vs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!it)return Tt(e),null}else 2*ft()-r.renderingStartTime>es&&n!==1073741824&&(e.flags|=128,i=!0,vs(r,!1),e.lanes=4194304);r.isBackwards?(o.sibling=e.child,e.child=o):(n=r.last,n!==null?n.sibling=o:e.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ft(),e.sibling=null,n=st.current,q(st,i?n&1|2:n&1),e):(Tt(e),null);case 22:case 23:return Md(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Zt&1073741824&&(Tt(e),e.subtreeFlags&6&&(e.flags|=8192)):Tt(e),null;case 24:return null;case 25:return null}throw Error(M(156,e.tag))}function C_(t,e){switch(ad(e),e.tag){case 1:return Qt(e.type)&&da(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ji(),nt(Gt),nt(Nt),gd(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return md(e),null;case 13:if(nt(st),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(M(340));qi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return nt(st),null;case 4:return Ji(),null;case 10:return dd(e.type._context),null;case 22:case 23:return Md(),null;case 24:return null;default:return null}}var ao=!1,Dt=!1,M_=typeof WeakSet=="function"?WeakSet:Set,D=null;function Oi(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){ut(t,e,i)}else n.current=null}function Ju(t,e,n){try{n()}catch(i){ut(t,e,i)}}var Lf=!1;function T_(t,e){if(ju=aa,t=D0(),rd(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var o=0,a=-1,l=-1,u=0,c=0,d=t,h=null;e:for(;;){for(var f;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==r||i!==0&&d.nodeType!==3||(l=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break e;if(h===n&&++u===s&&(a=o),h===r&&++c===i&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iu={focusedElem:t,selectionRange:n},aa=!1,D=e;D!==null;)if(e=D,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,D=t;else for(;D!==null;){e=D;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,x=g.memoizedState,p=e.stateNode,m=p.getSnapshotBeforeUpdate(e.elementType===e.type?y:xe(e.type,y),x);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(_){ut(e,e.return,_)}if(t=e.sibling,t!==null){t.return=e.return,D=t;break}D=e.return}return g=Lf,Lf=!1,g}function Ks(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&t)===t){var r=s.destroy;s.destroy=void 0,r!==void 0&&Ju(e,n,r)}s=s.next}while(s!==i)}}function qa(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function tc(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function My(t){var e=t.alternate;e!==null&&(t.alternate=null,My(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[De],delete e[mr],delete e[zu],delete e[c_],delete e[d_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ty(t){return t.tag===5||t.tag===3||t.tag===4}function Of(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ty(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ec(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ca));else if(i!==4&&(t=t.child,t!==null))for(ec(t,e,n),t=t.sibling;t!==null;)ec(t,e,n),t=t.sibling}function nc(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(nc(t,e,n),t=t.sibling;t!==null;)nc(t,e,n),t=t.sibling}var kt=null,we=!1;function ln(t,e,n){for(n=n.child;n!==null;)Ey(t,e,n),n=n.sibling}function Ey(t,e,n){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(Wa,n)}catch{}switch(n.tag){case 5:Dt||Oi(n,e);case 6:var i=kt,s=we;kt=null,ln(t,e,n),kt=i,we=s,kt!==null&&(we?(t=kt,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):kt.removeChild(n.stateNode));break;case 18:kt!==null&&(we?(t=kt,n=n.stateNode,t.nodeType===8?Dl(t.parentNode,n):t.nodeType===1&&Dl(t,n),cr(t)):Dl(kt,n.stateNode));break;case 4:i=kt,s=we,kt=n.stateNode.containerInfo,we=!0,ln(t,e,n),kt=i,we=s;break;case 0:case 11:case 14:case 15:if(!Dt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){s=i=i.next;do{var r=s,o=r.destroy;r=r.tag,o!==void 0&&(r&2||r&4)&&Ju(n,e,o),s=s.next}while(s!==i)}ln(t,e,n);break;case 1:if(!Dt&&(Oi(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){ut(n,e,a)}ln(t,e,n);break;case 21:ln(t,e,n);break;case 22:n.mode&1?(Dt=(i=Dt)||n.memoizedState!==null,ln(t,e,n),Dt=i):ln(t,e,n);break;default:ln(t,e,n)}}function Nf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new M_),e.forEach(function(i){var s=I_.bind(null,t,i);n.has(i)||(n.add(i),i.then(s,s))})}}function ye(t,e){var n=e.deletions;if(n!==null)for(var i=0;is&&(s=o),i&=~r}if(i=s,i=ft()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*A_(i/1960))-i,10t?16:t,xn===null)var i=!1;else{if(t=xn,xn=null,ba=0,H&6)throw Error(M(331));var s=H;for(H|=4,D=t.current;D!==null;){var r=D,o=r.child;if(D.flags&16){var a=r.deletions;if(a!==null){for(var l=0;lft()-Pd?ii(t,0):kd|=n),qt(t,e)}function Iy(t,e){e===0&&(t.mode&1?(e=Zr,Zr<<=1,!(Zr&130023424)&&(Zr=4194304)):e=1);var n=zt();t=nn(t,e),t!==null&&(Nr(t,e,n),qt(t,n))}function j_(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Iy(t,n)}function I_(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(M(314))}i!==null&&i.delete(e),Iy(t,n)}var Fy;Fy=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Gt.current)Xt=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Xt=!1,k_(t,e,n);Xt=!!(t.flags&131072)}else Xt=!1,it&&e.flags&1048576&&H0(e,pa,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;zo(t,e),t=e.pendingProps;var s=Qi(e,Nt.current);Ui(e,n),s=vd(null,e,i,t,s,n);var r=xd();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Qt(i)?(r=!0,ha(e)):r=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,fd(e),s.updater=Qa,e.stateNode=s,s._reactInternals=e,Ku(e,i,t,n),e=Gu(null,e,i,!0,r,n)):(e.tag=0,it&&r&&od(e),Ft(null,e,s,n),e=e.child),e;case 16:i=e.elementType;t:{switch(zo(t,e),t=e.pendingProps,s=i._init,i=s(i._payload),e.type=i,s=e.tag=V_(i),t=xe(i,t),s){case 0:e=Xu(null,e,i,t,n);break t;case 1:e=Af(null,e,i,t,n);break t;case 11:e=Tf(null,e,i,t,n);break t;case 14:e=Ef(null,e,i,xe(i.type,t),n);break t}throw Error(M(306,i,""))}return e;case 0:return i=e.type,s=e.pendingProps,s=e.elementType===i?s:xe(i,s),Xu(t,e,i,s,n);case 1:return i=e.type,s=e.pendingProps,s=e.elementType===i?s:xe(i,s),Af(t,e,i,s,n);case 3:t:{if(_y(e),t===null)throw Error(M(387));i=e.pendingProps,r=e.memoizedState,s=r.element,X0(t,e),ya(e,i,null,n);var o=e.memoizedState;if(i=o.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){s=ts(Error(M(423)),e),e=Df(t,e,i,n,s);break t}else if(i!==s){s=ts(Error(M(424)),e),e=Df(t,e,i,n,s);break t}else for(Jt=Cn(e.stateNode.containerInfo.firstChild),te=e,it=!0,_e=null,n=K0(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qi(),i===s){e=sn(t,e,n);break t}Ft(t,e,i,n)}e=e.child}return e;case 5:return G0(e),t===null&&Wu(e),i=e.type,s=e.pendingProps,r=t!==null?t.memoizedProps:null,o=s.children,Fu(i,s)?o=null:r!==null&&Fu(i,r)&&(e.flags|=32),wy(t,e),Ft(t,e,o,n),e.child;case 6:return t===null&&Wu(e),null;case 13:return Sy(t,e,n);case 4:return pd(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Zi(e,null,i,n):Ft(t,e,i,n),e.child;case 11:return i=e.type,s=e.pendingProps,s=e.elementType===i?s:xe(i,s),Tf(t,e,i,s,n);case 7:return Ft(t,e,e.pendingProps,n),e.child;case 8:return Ft(t,e,e.pendingProps.children,n),e.child;case 12:return Ft(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(i=e.type._context,s=e.pendingProps,r=e.memoizedProps,o=s.value,q(ma,i._currentValue),i._currentValue=o,r!==null)if(ke(r.value,o)){if(r.children===s.children&&!Gt.current){e=sn(t,e,n);break t}}else for(r=e.child,r!==null&&(r.return=e);r!==null;){var a=r.dependencies;if(a!==null){o=r.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(r.tag===1){l=qe(-1,n&-n),l.tag=2;var u=r.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),$u(r.return,n,e),a.lanes|=n;break}l=l.next}}else if(r.tag===10)o=r.type===e.type?null:r.child;else if(r.tag===18){if(o=r.return,o===null)throw Error(M(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),$u(o,n,e),o=r.sibling}else o=r.child;if(o!==null)o.return=r;else for(o=r;o!==null;){if(o===e){o=null;break}if(r=o.sibling,r!==null){r.return=o.return,o=r;break}o=o.return}r=o}Ft(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,i=e.pendingProps.children,Ui(e,n),s=fe(s),i=i(s),e.flags|=1,Ft(t,e,i,n),e.child;case 14:return i=e.type,s=xe(i,e.pendingProps),s=xe(i.type,s),Ef(t,e,i,s,n);case 15:return vy(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,s=e.pendingProps,s=e.elementType===i?s:xe(i,s),zo(t,e),e.tag=1,Qt(i)?(t=!0,ha(e)):t=!1,Ui(e,n),my(e,i,s),Ku(e,i,s,n),Gu(null,e,i,!0,t,n);case 19:return by(t,e,n);case 22:return xy(t,e,n)}throw Error(M(156,e.tag))};function Vy(t,e){return h0(t,e)}function F_(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ce(t,e,n,i){return new F_(t,e,n,i)}function Ed(t){return t=t.prototype,!(!t||!t.isReactComponent)}function V_(t){if(typeof t=="function")return Ed(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Xc)return 11;if(t===Gc)return 14}return 2}function An(t,e){var n=t.alternate;return n===null?(n=ce(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Wo(t,e,n,i,s,r){var o=2;if(i=t,typeof t=="function")Ed(t)&&(o=1);else if(typeof t=="string")o=5;else t:switch(t){case Pi:return si(n.children,s,r,e);case Yc:o=8,s|=8;break;case gu:return t=ce(12,n,e,s|2),t.elementType=gu,t.lanes=r,t;case yu:return t=ce(13,n,e,s),t.elementType=yu,t.lanes=r,t;case vu:return t=ce(19,n,e,s),t.elementType=vu,t.lanes=r,t;case Gg:return Ja(n,s,r,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Yg:o=10;break t;case Xg:o=9;break t;case Xc:o=11;break t;case Gc:o=14;break t;case fn:o=16,i=null;break t}throw Error(M(130,t==null?t:typeof t,""))}return e=ce(o,n,e,s),e.elementType=t,e.type=i,e.lanes=r,e}function si(t,e,n,i){return t=ce(7,t,i,e),t.lanes=n,t}function Ja(t,e,n,i){return t=ce(22,t,i,e),t.elementType=Gg,t.lanes=n,t.stateNode={isHidden:!1},t}function Vl(t,e,n){return t=ce(6,t,null,e),t.lanes=n,t}function zl(t,e,n){return e=ce(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function z_(t,e,n,i,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wl(0),this.expirationTimes=wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wl(0),this.identifierPrefix=i,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Ad(t,e,n,i,s,r,o,a,l){return t=new z_(t,e,n,a,l),e===1?(e=1,r===!0&&(e|=8)):e=0,r=ce(3,null,null,e),t.current=r,r.stateNode=t,r.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fd(r),t}function B_(t,e,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wy)}catch(t){console.error(t)}}Wy(),Wg.exports=ie;var K_=Wg.exports,$y,Wf=K_;$y=Wf.createRoot,Wf.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Y_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X_=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),$t=(t,e)=>{const n=C.forwardRef(({color:i="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:a="",children:l,...u},c)=>C.createElement("svg",{ref:c,...Y_,width:s,height:s,stroke:i,strokeWidth:o?Number(r)*24/Number(s):r,className:["lucide",`lucide-${X_(t)}`,a].join(" "),...u},[...e.map(([d,h])=>C.createElement(d,h)),...Array.isArray(l)?l:[l]]));return n.displayName=`${t}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G_=$t("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ac=$t("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q_=$t("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $f=$t("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q_=$t("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Z_=$t("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J_=$t("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tS=$t("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uf=$t("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eS=$t("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nS=$t("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iS=$t("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uy=$t("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Kf=$t("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sS=$t("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);/*! + * @kurkle/color v0.3.4 + * https://github.com/kurkle/color#readme + * (c) 2024 Jukka Kurkela + * Released under the MIT License + */function Vr(t){return t+.5|0}const wn=(t,e,n)=>Math.max(Math.min(t,n),e);function Ds(t){return wn(Vr(t*2.55),0,255)}function Dn(t){return wn(Vr(t*255),0,255)}function Ke(t){return wn(Vr(t/2.55)/100,0,1)}function Yf(t){return wn(Vr(t*100),0,100)}const re={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},lc=[..."0123456789ABCDEF"],rS=t=>lc[t&15],oS=t=>lc[(t&240)>>4]+lc[t&15],co=t=>(t&240)>>4===(t&15),aS=t=>co(t.r)&&co(t.g)&&co(t.b)&&co(t.a);function lS(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&re[t[1]]*17,g:255&re[t[2]]*17,b:255&re[t[3]]*17,a:e===5?re[t[4]]*17:255}:(e===7||e===9)&&(n={r:re[t[1]]<<4|re[t[2]],g:re[t[3]]<<4|re[t[4]],b:re[t[5]]<<4|re[t[6]],a:e===9?re[t[7]]<<4|re[t[8]]:255})),n}const uS=(t,e)=>t<255?e(t):"";function cS(t){var e=aS(t)?rS:oS;return t?"#"+e(t.r)+e(t.g)+e(t.b)+uS(t.a,e):void 0}const dS=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ky(t,e,n){const i=e*Math.min(n,1-n),s=(r,o=(r+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function hS(t,e,n){const i=(s,r=(s+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function fS(t,e,n){const i=Ky(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)i[s]*=1-e-n,i[s]+=e;return i}function pS(t,e,n,i,s){return t===s?(e-n)/i+(e.5?c/(2-r-o):c/(r+o),l=pS(n,i,s,c,r),l=l*60+.5),[l|0,u||0,a]}function Nd(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Dn)}function jd(t,e,n){return Nd(Ky,t,e,n)}function mS(t,e,n){return Nd(fS,t,e,n)}function gS(t,e,n){return Nd(hS,t,e,n)}function Yy(t){return(t%360+360)%360}function yS(t){const e=dS.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Ds(+e[5]):Dn(+e[5]));const s=Yy(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=mS(s,r,o):e[1]==="hsv"?i=gS(s,r,o):i=jd(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}function vS(t,e){var n=Od(t);n[0]=Yy(n[0]+e),n=jd(n),t.r=n[0],t.g=n[1],t.b=n[2]}function xS(t){if(!t)return;const e=Od(t),n=e[0],i=Yf(e[1]),s=Yf(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${s}%, ${Ke(t.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const Xf={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Gf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function wS(){const t={},e=Object.keys(Gf),n=Object.keys(Xf);let i,s,r,o,a;for(i=0;i>16&255,r>>8&255,r&255]}return t}let ho;function _S(t){ho||(ho=wS(),ho.transparent=[0,0,0,0]);const e=ho[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const SS=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function bS(t){const e=SS.exec(t);let n=255,i,s,r;if(e){if(e[7]!==i){const o=+e[7];n=e[8]?Ds(o):wn(o*255,0,255)}return i=+e[1],s=+e[3],r=+e[5],i=255&(e[2]?Ds(i):wn(i,0,255)),s=255&(e[4]?Ds(s):wn(s,0,255)),r=255&(e[6]?Ds(r):wn(r,0,255)),{r:i,g:s,b:r,a:n}}}function kS(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ke(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Bl=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Si=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function PS(t,e,n){const i=Si(Ke(t.r)),s=Si(Ke(t.g)),r=Si(Ke(t.b));return{r:Dn(Bl(i+n*(Si(Ke(e.r))-i))),g:Dn(Bl(s+n*(Si(Ke(e.g))-s))),b:Dn(Bl(r+n*(Si(Ke(e.b))-r))),a:t.a+n*(e.a-t.a)}}function fo(t,e,n){if(t){let i=Od(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=jd(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Xy(t,e){return t&&Object.assign(e||{},t)}function Qf(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Dn(t[3]))):(e=Xy(t,{r:0,g:0,b:0,a:1}),e.a=Dn(e.a)),e}function CS(t){return t.charAt(0)==="r"?bS(t):yS(t)}class Sr{constructor(e){if(e instanceof Sr)return e;const n=typeof e;let i;n==="object"?i=Qf(e):n==="string"&&(i=lS(e)||_S(e)||CS(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Xy(this._rgb);return e&&(e.a=Ke(e.a)),e}set rgb(e){this._rgb=Qf(e)}rgbString(){return this._valid?kS(this._rgb):void 0}hexString(){return this._valid?cS(this._rgb):void 0}hslString(){return this._valid?xS(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,s=e.rgb;let r;const o=n===r?.5:n,a=2*o-1,l=i.a-s.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-u,i.r=255&u*i.r+r*s.r+.5,i.g=255&u*i.g+r*s.g+.5,i.b=255&u*i.b+r*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=PS(this._rgb,e._rgb,n)),this}clone(){return new Sr(this.rgb)}alpha(e){return this._rgb.a=Dn(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Vr(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return fo(this._rgb,2,e),this}darken(e){return fo(this._rgb,2,-e),this}saturate(e){return fo(this._rgb,1,e),this}desaturate(e){return fo(this._rgb,1,-e),this}rotate(e){return vS(this._rgb,e),this}}/*! + * Chart.js v4.4.9 + * https://www.chartjs.org + * (c) 2025 Chart.js Contributors + * Released under the MIT License + */function ze(){}const MS=(()=>{let t=0;return()=>t++})();function U(t){return t==null}function vt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function W(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function me(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Me(t,e){return me(t)?t:e}function V(t,e){return typeof t>"u"?e:t}const TS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Gy=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function et(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function X(t,e,n,i){let s,r,o;if(vt(t))for(r=t.length,s=0;st,x:t=>t.x,y:t=>t.y};function DS(t){const e=t.split("."),n=[];let i="";for(const s of e)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function RS(t){const e=DS(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function fi(t,e){return(qf[e]||(qf[e]=RS(e)))(t)}function Id(t){return t.charAt(0).toUpperCase()+t.slice(1)}const kr=t=>typeof t<"u",On=t=>typeof t=="function",Zf=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function LS(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const dt=Math.PI,ct=2*dt,OS=ct+dt,Ta=Number.POSITIVE_INFINITY,NS=dt/180,wt=dt/2,Bn=dt/4,Jf=dt*2/3,uc=Math.log10,Oe=Math.sign;function Qs(t,e,n){return Math.abs(t-e)s-r).pop(),e}function IS(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Pr(t){return!IS(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function FS(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function VS(t,e,n){let i,s,r;for(i=0,s=t.length;il&&u=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Fd(t,e,n){n=n||(o=>t[o]1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const ti=(t,e,n,i)=>Fd(t,n,i?s=>{const r=t[s][e];return rt[s][e]Fd(t,n,i=>t[i][e]>=n);function $S(t,e,n){let i=0,s=t.length;for(;ii&&t[s-1]>n;)s--;return i>0||s{const i="_onData"+Id(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...r)}),o}})})}function np(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(e);s!==-1&&i.splice(s,1),!(i.length>0)&&(Zy.forEach(r=>{delete t[r]}),delete t._chartjs)}function Jy(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const tv=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function ev(t,e){let n=[],i=!1;return function(...s){n=s,i||(i=!0,tv.call(window,()=>{i=!1,t.apply(e,n)}))}}function KS(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const Vd=t=>t==="start"?"left":t==="end"?"right":"center",Et=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,YS=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function XS(t,e,n){const i=e.length;let s=0,r=i;if(t._sorted){const{iScale:o,vScale:a,_parsed:l}=t,u=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,c=o.axis,{min:d,max:h,minDefined:f,maxDefined:g}=o.getUserBounds();if(f){if(s=Math.min(ti(l,c,d).lo,n?i:ti(e,c,o.getPixelForValue(d)).lo),u){const y=l.slice(0,s+1).reverse().findIndex(x=>!U(x[a.axis]));s-=Math.max(0,y)}s=Rt(s,0,i-1)}if(g){let y=Math.max(ti(l,o.axis,h,!0).hi+1,n?0:ti(e,c,o.getPixelForValue(h),!0).hi+1);if(u){const x=l.slice(y-1).findIndex(p=>!U(p[a.axis]));y+=Math.max(0,x)}r=Rt(y,s,i)-s}else r=i-s}return{start:s,count:r}}function GS(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,s={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=s,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),r}const po=t=>t===0||t===1,ip=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ct/n)),sp=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ct/n)+1,qs={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*wt)+1,easeOutSine:t=>Math.sin(t*wt),easeInOutSine:t=>-.5*(Math.cos(dt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>po(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>po(t)?t:ip(t,.075,.3),easeOutElastic:t=>po(t)?t:sp(t,.075,.3),easeInOutElastic(t){return po(t)?t:t<.5?.5*ip(t*2,.1125,.45):.5+.5*sp(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-qs.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?qs.easeInBounce(t*2)*.5:qs.easeOutBounce(t*2-1)*.5+.5};function zd(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function rp(t){return zd(t)?t:new Sr(t)}function Hl(t){return zd(t)?t:new Sr(t).saturate(.5).darken(.1).hexString()}const QS=["x","y","borderWidth","radius","tension"],qS=["color","borderColor","backgroundColor"];function ZS(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:qS},numbers:{type:"number",properties:QS}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function JS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const op=new Map;function tb(t,e){e=e||{};const n=t+JSON.stringify(e);let i=op.get(n);return i||(i=new Intl.NumberFormat(t,e),op.set(n,i)),i}function Bd(t,e,n){return tb(e,n).format(t)}const nv={values(t){return vt(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let s,r=t;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(s="scientific"),r=eb(t,n)}const o=uc(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Bd(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(uc(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?nv.numeric.call(this,t,e,n):""}};function eb(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var iv={formatters:nv};function nb(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:iv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const pi=Object.create(null),dc=Object.create(null);function Zs(t,e){if(!e)return t;const n=e.split(".");for(let i=0,s=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>Hl(s.backgroundColor),this.hoverBorderColor=(i,s)=>Hl(s.borderColor),this.hoverColor=(i,s)=>Hl(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Wl(this,e,n)}get(e){return Zs(this,e)}describe(e,n){return Wl(dc,e,n)}override(e,n){return Wl(pi,e,n)}route(e,n,i,s){const r=Zs(this,e),o=Zs(this,i),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=o[s];return W(l)?Object.assign({},u,l):V(l,u)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var pt=new ib({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ZS,JS,nb]);function sb(t){return!t||U(t.size)||U(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ap(t,e,n,i,s){let r=e[s];return r||(r=e[s]=t.measureText(s).width,n.push(s)),r>i&&(i=r),i}function Hn(t,e,n){const i=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*i)/i+s}function lp(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function hc(t,e,n,i){sv(t,e,n,i,null)}function sv(t,e,n,i,s){let r,o,a,l,u,c,d,h;const f=e.pointStyle,g=e.rotation,y=e.radius;let x=(g||0)*NS;if(f&&typeof f=="object"&&(r=f.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(x),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),t.restore();return}if(!(isNaN(y)||y<=0)){switch(t.beginPath(),f){default:s?t.ellipse(n,i,s/2,y,0,0,ct):t.arc(n,i,y,0,ct),t.closePath();break;case"triangle":c=s?s/2:y,t.moveTo(n+Math.sin(x)*c,i-Math.cos(x)*y),x+=Jf,t.lineTo(n+Math.sin(x)*c,i-Math.cos(x)*y),x+=Jf,t.lineTo(n+Math.sin(x)*c,i-Math.cos(x)*y),t.closePath();break;case"rectRounded":u=y*.516,l=y-u,o=Math.cos(x+Bn)*l,d=Math.cos(x+Bn)*(s?s/2-u:l),a=Math.sin(x+Bn)*l,h=Math.sin(x+Bn)*(s?s/2-u:l),t.arc(n-d,i-a,u,x-dt,x-wt),t.arc(n+h,i-o,u,x-wt,x),t.arc(n+d,i+a,u,x,x+wt),t.arc(n-h,i+o,u,x+wt,x+dt),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*y,c=s?s/2:l,t.rect(n-c,i-l,2*c,2*l);break}x+=Bn;case"rectRot":d=Math.cos(x)*(s?s/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,h=Math.sin(x)*(s?s/2:y),t.moveTo(n-d,i-a),t.lineTo(n+h,i-o),t.lineTo(n+d,i+a),t.lineTo(n-h,i+o),t.closePath();break;case"crossRot":x+=Bn;case"cross":d=Math.cos(x)*(s?s/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,h=Math.sin(x)*(s?s/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-o),t.lineTo(n-h,i+o);break;case"star":d=Math.cos(x)*(s?s/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,h=Math.sin(x)*(s?s/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-o),t.lineTo(n-h,i+o),x+=Bn,d=Math.cos(x)*(s?s/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,h=Math.sin(x)*(s?s/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+h,i-o),t.lineTo(n-h,i+o);break;case"line":o=s?s/2:Math.cos(x)*y,a=Math.sin(x)*y,t.moveTo(n-o,i-a),t.lineTo(n+o,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(x)*(s?s/2:y),i+Math.sin(x)*y);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Mr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&r.strokeColor!=="";let l,u;for(t.save(),t.font=s.string,ab(t,r),l=0;l+t||0;function $d(t,e){const n={},i=W(e),s=i?Object.keys(e):e,r=W(t)?i?o=>V(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=fb(r(o));return n}function rv(t){return $d(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Yi(t){return $d(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ge(t){const e=rv(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Lt(t,e){t=t||{},e=e||pt.font;let n=V(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=V(t.style,e.style);i&&!(""+i).match(db)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:V(t.family,e.family),lineHeight:hb(V(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:V(t.weight,e.weight),string:""};return s.string=sb(s),s}function mo(t,e,n,i){let s,r,o;for(s=0,r=t.length;sn&&a===0?0:a+l;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function vi(t,e){return Object.assign(Object.create(t),e)}function Ud(t,e=[""],n,i,s=()=>t[0]){const r=n||t;typeof i>"u"&&(i=uv("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:i,_getTarget:s,override:a=>Ud([a,...t],e,r,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return av(a,l,()=>Sb(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return cp(a).includes(l)},ownKeys(a){return cp(a)},set(a,l,u){const c=a._storage||(a._storage=s());return a[l]=c[l]=u,delete a._keys,!0}})}function ns(t,e,n,i){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ov(t,i),setContext:r=>ns(t,r,n,i),override:r=>ns(t.override(r),e,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,a){return av(r,o,()=>gb(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,a){return t[o]=a,delete r[o],!0}})}function ov(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:i,isScriptable:On(n)?n:()=>n,isIndexable:On(i)?i:()=>i}}const mb=(t,e)=>t?t+Id(e):e,Kd=(t,e)=>W(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function av(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function gb(t,e,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=t;let a=i[e];return On(a)&&o.isScriptable(e)&&(a=yb(e,a,t,n)),vt(a)&&a.length&&(a=vb(e,a,t,o.isIndexable)),Kd(e,a)&&(a=ns(a,s,r&&r[e],o)),a}function yb(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,o||i);return a.delete(t),Kd(t,l)&&(l=Yd(s._scopes,s,t,l)),l}function vb(t,e,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:a}=n;if(typeof r.index<"u"&&i(t))return e[r.index%e.length];if(W(e[0])){const l=e,u=s._scopes.filter(c=>c!==l);e=[];for(const c of l){const d=Yd(u,s,t,c);e.push(ns(d,r,o&&o[t],a))}}return e}function lv(t,e,n){return On(t)?t(e,n):t}const xb=(t,e)=>t===!0?e:typeof t=="string"?fi(e,t):void 0;function wb(t,e,n,i,s){for(const r of e){const o=xb(n,r);if(o){t.add(o);const a=lv(o._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function Yd(t,e,n,i){const s=e._rootScopes,r=lv(e._fallback,n,i),o=[...t,...s],a=new Set;a.add(i);let l=up(a,o,n,r||n,i);return l===null||typeof r<"u"&&r!==n&&(l=up(a,o,r,l,i),l===null)?!1:Ud(Array.from(a),[""],s,r,()=>_b(e,n,i))}function up(t,e,n,i,s){for(;n;)n=wb(t,e,n,i,s);return n}function _b(t,e,n){const i=t._getTarget();e in i||(i[e]={});const s=i[e];return vt(s)&&W(n)?n:s||{}}function Sb(t,e,n,i){let s;for(const r of e)if(s=uv(mb(r,t),n),typeof s<"u")return Kd(t,s)?Yd(n,i,t,s):s}function uv(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function cp(t){let e=t._keys;return e||(e=t._keys=bb(t._scopes)),e}function bb(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(i);return Array.from(e)}const kb=Number.EPSILON||1e-14,is=(t,e)=>et==="x"?"y":"x";function Pb(t,e,n,i){const s=t.skip?e:t,r=e,o=n.skip?e:n,a=cc(r,s),l=cc(o,r);let u=a/(a+l),c=l/(a+l);u=isNaN(u)?0:u,c=isNaN(c)?0:c;const d=i*u,h=i*c;return{previous:{x:r.x-d*(o.x-s.x),y:r.y-d*(o.y-s.y)},next:{x:r.x+h*(o.x-s.x),y:r.y+h*(o.y-s.y)}}}function Cb(t,e,n){const i=t.length;let s,r,o,a,l,u=is(t,0);for(let c=0;c!u.skip)),e.cubicInterpolationMode==="monotone")Tb(t,s);else{let u=i?t[t.length-1]:t[0];for(r=0,o=t.length;rt.ownerDocument.defaultView.getComputedStyle(t,null);function Db(t,e){return sl(t).getPropertyValue(e)}const Rb=["top","right","bottom","left"];function ri(t,e,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=Rb[s];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Lb=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Ob(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:s,offsetY:r}=i;let o=!1,a,l;if(Lb(s,r,t.target))a=s,l=r;else{const u=e.getBoundingClientRect();a=i.clientX-u.left,l=i.clientY-u.top,o=!0}return{x:a,y:l,box:o}}function Yn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,s=sl(n),r=s.boxSizing==="border-box",o=ri(s,"padding"),a=ri(s,"border","width"),{x:l,y:u,box:c}=Ob(t,n),d=o.left+(c&&a.left),h=o.top+(c&&a.top);let{width:f,height:g}=e;return r&&(f-=o.width+a.width,g-=o.height+a.height),{x:Math.round((l-d)/f*n.width/i),y:Math.round((u-h)/g*n.height/i)}}function Nb(t,e,n){let i,s;if(e===void 0||n===void 0){const r=t&&Gd(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const o=r.getBoundingClientRect(),a=sl(r),l=ri(a,"border","width"),u=ri(a,"padding");e=o.width-u.width-l.width,n=o.height-u.height-l.height,i=Aa(a.maxWidth,r,"clientWidth"),s=Aa(a.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:i||Ta,maxHeight:s||Ta}}const yo=t=>Math.round(t*10)/10;function jb(t,e,n,i){const s=sl(t),r=ri(s,"margin"),o=Aa(s.maxWidth,t,"clientWidth")||Ta,a=Aa(s.maxHeight,t,"clientHeight")||Ta,l=Nb(t,e,n);let{width:u,height:c}=l;if(s.boxSizing==="content-box"){const h=ri(s,"border","width"),f=ri(s,"padding");u-=f.width+h.width,c-=f.height+h.height}return u=Math.max(0,u-r.width),c=Math.max(0,i?u/i:c-r.height),u=yo(Math.min(u,o,l.maxWidth)),c=yo(Math.min(c,a,l.maxHeight)),u&&!c&&(c=yo(u/2)),(e!==void 0||n!==void 0)&&i&&l.height&&c>l.height&&(c=l.height,u=yo(Math.floor(c*i))),{width:u,height:c}}function dp(t,e,n){const i=e||1,s=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(t.currentDevicePixelRatio=i,o.height=s,o.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Ib=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Xd()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function hp(t,e){const n=Db(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Xn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Fb(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function Vb(t,e,n,i){const s={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=Xn(t,s,n),a=Xn(s,r,n),l=Xn(r,e,n),u=Xn(o,a,n),c=Xn(a,l,n);return Xn(u,c,n)}const zb=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Bb=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Xi(t,e,n){return t?zb(e,n):Bb()}function dv(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function hv(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fv(t){return t==="angle"?{between:Cr,compare:BS,normalize:cn}:{between:_n,compare:(e,n)=>e-n,normalize:e=>e}}function fp({start:t,end:e,count:n,loop:i,style:s}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:s}}function Hb(t,e,n){const{property:i,start:s,end:r}=n,{between:o,normalize:a}=fv(i),l=e.length;let{start:u,end:c,loop:d}=t,h,f;if(d){for(u+=l,c+=l,h=0,f=l;hl(s,v,p)&&a(s,v)!==0,w=()=>a(r,p)===0||l(r,v,p),k=()=>y||_(),P=()=>!y||w();for(let b=c,T=c;b<=d;++b)m=e[b%o],!m.skip&&(p=u(m[i]),p!==v&&(y=l(p,s,r),x===null&&k()&&(x=a(p,s)===0?b:T),x!==null&&P()&&(g.push(fp({start:x,end:b,loop:h,count:o,style:f})),x=null),T=b,v=p));return x!==null&&g.push(fp({start:x,end:d,loop:h,count:o,style:f})),g}function $b(t,e){const n=[],i=t.segments;for(let s=0;ss&&t[r%e].skip;)r--;return r%=e,{start:s,end:r}}function Kb(t,e,n,i){const s=t.length,r=[];let o=e,a=t[e],l;for(l=e+1;l<=n;++l){const u=t[l%s];u.skip||u.stop?a.skip||(i=!1,r.push({start:e%s,end:(l-1)%s,loop:i}),e=o=u.stop?l:null):(o=l,a.skip&&(e=l)),a=u}return o!==null&&r.push({start:e%s,end:o%s,loop:i}),r}function Yb(t,e){const n=t.points,i=t.options.spanGaps,s=n.length;if(!s)return[];const r=!!t._loop,{start:o,end:a}=Ub(n,s,r,i);if(i===!0)return pp(t,[{start:o,end:a,loop:r}],n,e);const l=aa({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=tv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(s.draw(),this._notify(s,i,e,"progress")),r.length||(i.running=!1,this._notify(s,i,e,"complete"),i.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var He=new Zb;const gp="transparent",Jb={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=rp(t||gp),s=i.valid&&rp(e||gp);return s&&s.valid?s.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class tk{constructor(e,n,i,s){const r=n[i];s=mo([e.to,s,r,e.from]);const o=mo([e.from,r,s]);this._active=!0,this._fn=e.fn||Jb[e.type||typeof o],this._easing=qs[e.easing]||qs.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=mo([e.to,n,s,e.from]),this._from=mo([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let s=0;s{const r=e[s];if(!W(r))return;const o={};for(const a of n)o[a]=r[a];(vt(r.properties)&&r.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,s=nk(e,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&ek(e.options.$animations,i).then(()=>{e.options=i},()=>{}),r}_createAnimations(e,n){const i=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){s.push(...this._animateOptions(e,n));continue}const c=n[u];let d=r[u];const h=i.get(u);if(d)if(h&&d.active()){d.update(h,c,a);continue}else d.cancel();if(!h||!h.duration){e[u]=c;continue}r[u]=d=new tk(h,e,u,c),s.push(d)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return He.add(this._chart,i),!0}}function ek(t,e){const n=[],i=Object.keys(e);for(let s=0;s0||!n&&r<0)return s.index}return null}function wp(t,e){const{chart:n,_cachedMeta:i}=t,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:a}=i,l=r.axis,u=o.axis,c=ok(r,o,i),d=e.length;let h;for(let f=0;fn[i].axis===e).shift()}function uk(t,e){return vi(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function ck(t,e,n){return vi(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function ws(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const s of e){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const Kl=t=>t==="reset"||t==="none",_p=(t,e)=>e?t:Object.assign({},t),dk=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:mv(n,!0),values:null};class oi{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=$l(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ws(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(d,h,f,g)=>d==="x"?h:d==="r"?g:f,r=n.xAxisID=V(i.xAxisID,Ul(e,"x")),o=n.yAxisID=V(i.yAxisID,Ul(e,"y")),a=n.rAxisID=V(i.rAxisID,Ul(e,"r")),l=n.indexAxis,u=n.iAxisID=s(l,r,o,a),c=n.vAxisID=s(l,o,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&np(this._data,this),e._stacked&&ws(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(W(n)){const s=this._cachedMeta;this._data=rk(n,s)}else if(i!==n){if(i){np(i,this);const s=this._cachedMeta;ws(s),s._parsed=[]}n&&Object.isExtensible(n)&&US(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=$l(n.vScale,n),n.stack!==i.stack&&(s=!0,ws(n),n.stack=i.stack),this._resyncElements(e),(s||r!==n._stacked)&&(wp(this,n._parsed),n._stacked=$l(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,a=r.axis;let l=e===0&&n===s.length?!0:i._sorted,u=e>0&&i._parsed[e-1],c,d,h;if(this._parsing===!1)i._parsed=s,i._sorted=!0,h=s;else{vt(s[e])?h=this.parseArrayData(i,s,e,n):W(s[e])?h=this.parseObjectData(i,s,e,n):h=this.parsePrimitiveData(i,s,e,n);const f=()=>d[a]===null||u&&d[a]y||d=0;--h)if(!g()){this.updateRangeFromParsed(u,e,f,l);break}}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s=0&&ethis.getContext(i,s,n),y=u.resolveNamedOptions(h,f,g,d);return y.$shared&&(y.$shared=l,r[o]=Object.freeze(_p(y,l))),y}_resolveAnimations(e,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,a=r[o];if(a)return a;let l;if(s.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),h=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(h,this.getContext(e,i,n))}const u=new pv(s,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Kl(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(e,n,i,s){Kl(s)?Object.assign(e,i):this._resolveAnimations(n,s).update(e,i)}updateSharedOptions(e,n,i){e&&!Kl(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,a=u.length-1;a>=o;a--)u[a]=u[a-n]};for(l(r),a=e;as-r))}return t._cache.$bar}function fk(t){const e=t.iScale,n=hk(e,t.type);let i=e._length,s,r,o,a;const l=()=>{o===32767||o===-32768||(kr(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(s=0,r=n.length;s0?s[t-1]:null,a=tMath.abs(a)&&(l=a,u=o),e[n.axis]=u,e._custom={barStart:l,barEnd:u,start:s,end:r,min:o,max:a}}function gv(t,e,n,i){return vt(t)?gk(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Sp(t,e,n,i){const s=t.iScale,r=t.vScale,o=s.getLabels(),a=s===r,l=[];let u,c,d,h;for(u=n,c=n+i;u=n?1:-1)}function vk(t){let e,n,i,s,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.basec.controller.options.grouped),r=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],u=c=>{const d=c._parsed.find(f=>f[i.axis]===l),h=d&&d[c.vScale.axis];if(U(h)||isNaN(h))return!0};for(const c of s)if(!(n!==void 0&&u(c))&&((r===!1||o.indexOf(c.stack)===-1||r===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const s=this._getStacks(e,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;rCr(v,a,l,!0)?1:Math.max(_,_*n,w,w*n),g=(v,_,w)=>Cr(v,a,l,!0)?-1:Math.min(_,_*n,w,w*n),y=f(0,u,d),x=f(wt,c,h),p=g(dt,u,d),m=g(dt+wt,c,h);i=(y-p)/2,s=(x-m)/2,r=-(y+p)/2,o=-(x+m)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class Rs extends oi{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=l=>+i[l];if(W(i[e])){const{key:l="value"}=this._parsing;r=u=>+fi(i[u],l)}let o,a;for(o=e,a=e+n;o0&&!isNaN(e)?ct*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=Bd(n._parsed[e],i.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const i=this.chart;let s,r,o,a,l;if(!e){for(s=0,r=i.data.datasets.length;se!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),R(Rs,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:i,color:s}}=e.legend.options;return n.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:i,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});class Uo extends oi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=XS(n,s,o);this._drawStart=a,this._drawCount=l,GS(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!r._decimated,i.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:u},e),this.updateElements(s,a,l,e)}updateElements(e,n,i,s){const r=s==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:u}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(n,s),h=o.axis,f=a.axis,{spanGaps:g,segment:y}=this.options,x=Pr(g)?g:Number.POSITIVE_INFINITY,p=this.chart._animationsDisabled||r||s==="none",m=n+i,v=e.length;let _=n>0&&this.getParsed(n-1);for(let w=0;w=m){P.skip=!0;continue}const b=this.getParsed(w),T=U(b[f]),E=P[h]=o.getPixelForValue(b[h],w),O=P[f]=r||T?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,b,l):b[f],w);P.skip=isNaN(E)||isNaN(O)||T,P.stop=w>0&&Math.abs(b[h]-_[h])>x,y&&(P.parsed=b,P.raw=u.data[w]),d&&(P.options=c||this.resolveDataElementOptions(w,k.active?"active":s)),p||this.updateElement(k,w,P,s),_=b}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return i;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}R(Uo,"id","line"),R(Uo,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(Uo,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class fc extends Rs{}R(fc,"id","pie"),R(fc,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function Wn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Qd{constructor(e){R(this,"options");this.options=e||{}}static override(e){Object.assign(Qd.prototype,e)}init(){}formats(){return Wn()}parse(){return Wn()}format(){return Wn()}add(){return Wn()}diff(){return Wn()}startOf(){return Wn()}endOf(){return Wn()}}var bk={_date:Qd};function kk(t,e,n,i){const{controller:s,data:r,_sorted:o}=t,a=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const u=a._reversePixels?WS:ti;if(i){if(s._sharedOptions){const c=r[0],d=typeof c.getRange=="function"&&c.getRange(e);if(d){const h=u(r,e,n-d),f=u(r,e,n+d);return{lo:h.lo,hi:f.hi}}}}else{const c=u(r,e,n);if(l){const{vScale:d}=s._cachedMeta,{_parsed:h}=t,f=h.slice(0,c.lo+1).reverse().findIndex(y=>!U(y[d.axis]));c.lo-=Math.max(0,f);const g=h.slice(c.hi).findIndex(y=>!U(y[d.axis]));c.hi+=Math.max(0,g)}return c}}return{lo:0,hi:r.length-1}}function zr(t,e,n,i,s){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=r.length;a{l[o]&&l[o](e[n],s)&&(r.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(e.x,e.y,s))}),i&&!a?[]:r}var Tk={evaluateInteractionItems:zr,modes:{index(t,e,n,i){const s=Yn(e,t),r=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?Xl(t,s,r,i,o):Gl(t,s,r,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(u=>{const c=a[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(t,e,n,i){const s=Yn(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?Xl(t,s,r,i,o):Gl(t,s,r,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,u=t.getDatasetMeta(l).data;a=[];for(let c=0;cn.pos===e)}function Cp(t,e){return t.filter(n=>yv.indexOf(n.pos)===-1&&n.box.axis===e)}function Ss(t,e){return t.sort((n,i)=>{const s=e?i:n,r=e?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function Ek(t){const e=[];let n,i,s,r,o,a;for(n=0,i=(t||[]).length;nu.box.fullSize),!0),i=Ss(_s(e,"left"),!0),s=Ss(_s(e,"right")),r=Ss(_s(e,"top"),!0),o=Ss(_s(e,"bottom")),a=Cp(e,"x"),l=Cp(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(l).concat(o).concat(a),chartArea:_s(e,"chartArea"),vertical:i.concat(s).concat(l),horizontal:r.concat(o).concat(a)}}function Mp(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function vv(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Lk(t,e,n,i){const{pos:s,box:r}=n,o=t.maxPadding;if(!W(s)){n.size&&(t[s]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?r.height:r.width),n.size=d.size/d.count,t[s]+=n.size}r.getPadding&&vv(o,r.getPadding());const a=Math.max(0,e.outerWidth-Mp(o,t,"left","right")),l=Math.max(0,e.outerHeight-Mp(o,t,"top","bottom")),u=a!==t.w,c=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function Ok(t){const e=t.maxPadding;function n(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Nk(t,e){const n=e.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return i(t?["left","right"]:["top","bottom"])}function Ls(t,e,n,i){const s=[];let r,o,a,l,u,c;for(r=0,o=t.length,u=0;r{typeof y.beforeLayout=="function"&&y.beforeLayout()});const c=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/c,hBoxMaxHeight:o/2}),h=Object.assign({},s);vv(h,ge(i));const f=Object.assign({maxPadding:h,w:r,h:o,x:s.left,y:s.top},s),g=Dk(l.concat(u),d);Ls(a.fullSize,f,d,g),Ls(l,f,d,g),Ls(u,f,d,g)&&Ls(l,f,d,g),Ok(f),Tp(a.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,Tp(a.rightAndBottom,f,d,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},X(a.chartArea,y=>{const x=y.box;Object.assign(x,t.chartArea),x.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class xv{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,s){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(e){return!0}updateConfig(e){}}class jk extends xv{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Ko="$chartjs",Ik={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ep=t=>t===null||t==="";function Fk(t,e){const n=t.style,i=t.getAttribute("height"),s=t.getAttribute("width");if(t[Ko]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ep(s)){const r=hp(t,"width");r!==void 0&&(t.width=r)}if(Ep(i))if(t.style.height==="")t.height=t.width/(e||2);else{const r=hp(t,"height");r!==void 0&&(t.height=r)}return t}const wv=Ib?{passive:!0}:!1;function Vk(t,e,n){t&&t.addEventListener(e,n,wv)}function zk(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,wv)}function Bk(t,e){const n=Ik[t.type]||t.type,{x:i,y:s}=Yn(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Da(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Hk(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Da(a.addedNodes,i),o=o&&!Da(a.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Wk(t,e,n){const i=t.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Da(a.removedNodes,i),o=o&&!Da(a.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const Er=new Map;let Ap=0;function _v(){const t=window.devicePixelRatio;t!==Ap&&(Ap=t,Er.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function $k(t,e){Er.size||window.addEventListener("resize",_v),Er.set(t,e)}function Uk(t){Er.delete(t),Er.size||window.removeEventListener("resize",_v)}function Kk(t,e,n){const i=t.canvas,s=i&&Gd(i);if(!s)return;const r=ev((a,l)=>{const u=s.clientWidth;n(a,l),u{const l=a[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||r(u,c)});return o.observe(s),$k(t,r),o}function Ql(t,e,n){n&&n.disconnect(),e==="resize"&&Uk(t)}function Yk(t,e,n){const i=t.canvas,s=ev(r=>{t.ctx!==null&&n(Bk(r,t))},t);return Vk(i,e,s),s}class Xk extends xv{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Fk(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[Ko])return!1;const i=n[Ko].initial;["height","width"].forEach(r=>{const o=i[r];U(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[Ko],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:Hk,detach:Wk,resize:Kk}[n]||Yk;s[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),s=i[n];if(!s)return;({attach:Ql,detach:Ql,resize:Ql}[n]||zk)(e,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,s){return jb(e,n,i,s)}isAttached(e){const n=e&&Gd(e);return!!(n&&n.isConnected)}}function Gk(t){return!Xd()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?jk:Xk}var Do;let an=(Do=class{constructor(){R(this,"x");R(this,"y");R(this,"active",!1);R(this,"options");R(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Pr(this.x)&&Pr(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const s={};return e.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}},R(Do,"defaults",{}),R(Do,"defaultRoutes"),Do);function Qk(t,e){const n=t.options.ticks,i=qk(t),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?Jk(e):[],o=r.length,a=r[0],l=r[o-1],u=[];if(o>s)return t2(e,u,r,o/s),u;const c=Zk(r,e,s);if(o>0){let d,h;const f=o>1?Math.round((l-a)/(o-1)):null;for(wo(e,u,c,U(f)?0:a-f,a),d=0,h=o-1;ds)return l}return Math.max(s,1)}function Jk(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,Dp=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Rp=(t,e)=>Math.min(e||t,t);function Lp(t,e){const n=[],i=t.length/e,s=t.length;let r=0;for(;ro+a)))return l}function s2(t,e){X(t,n=>{const i=n.gc,s=i.length/2;let r;if(s>e){for(r=0;ri?i:n,i=s&&n>i?n:i,{min:Me(n,Me(i,n)),max:Me(i,Me(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){et(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=pb(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,f=Rt(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:f/(i-1),d+6>a&&(a=f/(i-(e.offset?.5:1)),l=this.maxHeight-bs(e.grid)-n.padding-Op(e.title,this.chart.options.font),u=Math.sqrt(d*d+h*h),o=zS(Math.min(Math.asin(Rt((c.highest.height+6)/a,-1,1)),Math.asin(Rt(l/u,-1,1))-Math.asin(Rt(h/u,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){et(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){et(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=Op(s,n.options.font);if(a?(e.width=this.maxWidth,e.height=bs(r)+l):(e.height=this.maxHeight,e.width=bs(r)+l),i.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:h}=this._getLabelSizes(),f=i.padding*2,g=Ge(this.labelRotation),y=Math.cos(g),x=Math.sin(g);if(a){const p=i.mirror?0:x*d.width+y*h.height;e.height=Math.min(this.maxHeight,e.height+p+f)}else{const p=i.mirror?0:y*d.width+x*h.height;e.width=Math.min(this.maxWidth,e.width+p+f)}this._calculatePadding(u,c,x,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,s){const{ticks:{align:r,padding:o},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?u?(h=s*e.width,f=i*n.height):(h=i*e.height,f=s*n.width):r==="start"?f=n.width:r==="end"?h=e.width:r!=="inner"&&(h=e.width/2,f=n.width/2),this.paddingLeft=Math.max((h-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=e.height/2;r==="start"?(c=0,d=e.height):r==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){et(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:o[T]||0,height:a[T]||0});return{first:b(0),last:b(n-1),widest:b(k),highest:b(P),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return HS(this._alignToPixels?Hn(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*s?a/i:l/s:l*s0}_computeGridLineItems(e){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:a}=s,l=r.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=bs(r),f=[],g=a.setContext(this.getContext()),y=g.display?g.width:0,x=y/2,p=function(Y){return Hn(i,Y,y)};let m,v,_,w,k,P,b,T,E,O,I,Z;if(o==="top")m=p(this.bottom),P=this.bottom-h,T=m-x,O=p(e.top)+x,Z=e.bottom;else if(o==="bottom")m=p(this.top),O=e.top,Z=p(e.bottom)-x,P=m+x,T=this.top+h;else if(o==="left")m=p(this.right),k=this.right-h,b=m-x,E=p(e.left)+x,I=e.right;else if(o==="right")m=p(this.left),E=e.left,I=p(e.right)-x,k=m+x,b=this.left+h;else if(n==="x"){if(o==="center")m=p((e.top+e.bottom)/2+.5);else if(W(o)){const Y=Object.keys(o)[0],F=o[Y];m=p(this.chart.scales[Y].getPixelForValue(F))}O=e.top,Z=e.bottom,P=m+x,T=P+h}else if(n==="y"){if(o==="center")m=p((e.left+e.right)/2);else if(W(o)){const Y=Object.keys(o)[0],F=o[Y];m=p(this.chart.scales[Y].getPixelForValue(F))}k=m-x,b=k-h,E=e.left,I=e.right}const gt=V(s.ticks.maxTicksLimit,d),$=Math.max(1,Math.ceil(d/gt));for(v=0;v0&&(It-=jt/2);break}Q={left:It,top:Ve,width:jt+J.width,height:Pe+J.height,color:$.backdropColor}}x.push({label:_,font:T,textOffset:I,options:{rotation:y,color:F,strokeColor:A,strokeWidth:L,textAlign:j,textBaseline:Z,translation:[w,k],backdrop:Q}})}return x}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ge(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,l=o.widest.width;let u,c;return n==="left"?s?(c=this.right+r,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-a,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?s?(c=this.left+r,i==="near"?u="right":i==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+a,i==="near"?u="left":i==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,s,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(l,u,c)=>{!c.width||!c.color||(i.save(),i.lineWidth=c.width,i.strokeStyle=c.color,i.setLineDash(c.borderDash||[]),i.lineDashOffset=c.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(u.x,u.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r{const i=n.split("."),s=i.pop(),r=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");pt.route(r,s,l,a)})}function d2(t){return"id"in t&&"defaults"in t}class h2{constructor(){this.controllers=new _o(oi,"datasets",!0),this.elements=new _o(an,"elements"),this.plugins=new _o(Object,"plugins"),this.scales=new _o(us,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):X(s,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,i){const s=Id(e);et(i["before"+s],[],i),n[e](i),et(i["after"+s],[],i)}_getRegistryForType(e){for(let n=0;nr.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),e,"stop"),this._notify(s(i,n),e,"start")}}function p2(t){const e={},n=[],i=Object.keys(Ae.plugins.items);for(let r=0;r1&&Np(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function jp(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function _2(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return jp(t,"x",n[0])||jp(t,"y",n[0])}return{}}function S2(t,e){const n=pi[t.type]||{scales:{}},i=e.scales||{},s=pc(t.type,e),r=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!W(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=mc(o,a,_2(o,t),pt.scales[a.type]),u=x2(l,s),c=n.scales||{};r[o]=Gs(Object.create(null),[{axis:l},a,c[l],c[u]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||pc(a,e),c=(pi[a]||{}).scales||{};Object.keys(c).forEach(d=>{const h=v2(d,l),f=o[h+"AxisID"]||h;r[f]=r[f]||Object.create(null),Gs(r[f],[{axis:h},i[f],c[d]])})}),Object.keys(r).forEach(o=>{const a=r[o];Gs(a,[pt.scales[a.type],pt.scale])}),r}function Sv(t){const e=t.options||(t.options={});e.plugins=V(e.plugins,{}),e.scales=S2(t,e)}function bv(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function b2(t){return t=t||{},t.data=bv(t.data),Sv(t),t}const Ip=new Map,kv=new Set;function So(t,e){let n=Ip.get(t);return n||(n=e(),Ip.set(t,n),kv.add(n)),n}const ks=(t,e,n)=>{const i=fi(e,n);i!==void 0&&t.add(i)};class k2{constructor(e){this._config=b2(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=bv(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Sv(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return So(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return So(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return So(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return So(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let s=i.get(e);return(!s||n)&&(s=new Map,i.set(e,s)),s}getOptionScopes(e,n,i){const{options:s,type:r}=this,o=this._cachedScopes(e,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(c=>{e&&(l.add(e),c.forEach(d=>ks(l,e,d))),c.forEach(d=>ks(l,s,d)),c.forEach(d=>ks(l,pi[r]||{},d)),c.forEach(d=>ks(l,pt,d)),c.forEach(d=>ks(l,dc,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),kv.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:e,type:n}=this;return[e,pi[n]||{},pt.datasets[n]||{},{type:n},pt,dc]}resolveNamedOptions(e,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=Fp(this._resolverCache,e,s);let l=o;if(C2(o,n)){r.$shared=!1,i=On(i)?i():i;const u=this.createResolver(e,i,a);l=ns(o,i,u)}for(const u of n)r[u]=l[u];return r}createResolver(e,n,i=[""],s){const{resolver:r}=Fp(this._resolverCache,e,i);return W(n)?ns(r,n,void 0,s):r}}function Fp(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const s=n.join();let r=i.get(s);return r||(r={resolver:Ud(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,r)),r}const P2=t=>W(t)&&Object.getOwnPropertyNames(t).some(e=>On(t[e]));function C2(t,e){const{isScriptable:n,isIndexable:i}=ov(t);for(const s of e){const r=n(s),o=i(s),a=(o||r)&&t[s];if(r&&(On(a)||P2(a))||o&&vt(a))return!0}return!1}var M2="4.4.9";const T2=["top","bottom","left","right","chartArea"];function Vp(t,e){return t==="top"||t==="bottom"||T2.indexOf(t)===-1&&e==="x"}function zp(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Bp(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),et(n&&n.onComplete,[t],e)}function E2(t){const e=t.chart,n=e.options.animation;et(n&&n.onProgress,[t],e)}function Pv(t){return Xd()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Yo={},Hp=t=>{const e=Pv(t);return Object.values(Yo).filter(n=>n.canvas===e).pop()};function A2(t,e,n){const i=Object.keys(t);for(const s of i){const r=+s;if(r>=e){const o=t[s];delete t[s],(n>0||r>e)&&(t[r+n]=o)}}}function D2(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}var un;let rl=(un=class{static register(...e){Ae.add(...e),Wp()}static unregister(...e){Ae.remove(...e),Wp()}constructor(e,n){const i=this.config=new k2(n),s=Pv(e),r=Hp(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Gk(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,o.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;if(this.id=MS(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new f2,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=KS(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Yo[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}He.listen(this,"complete",Bp),He.listen(this,"progress",E2),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return U(e)?n&&r?r:s?i/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Ae}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():dp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return lp(this.canvas,this.ctx),this}stop(){return He.stop(this),this}resize(e,n){He.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,r),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,dp(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),et(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};X(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,s=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const a=n[o],l=mc(o,a),u=l==="r",c=l==="x";return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),X(r,o=>{const a=o.options,l=a.id,u=mc(l,a),c=V(a.type,o.dtype);(a.position===void 0||Vp(a.position,u)!==Vp(o.dposition))&&(a.position=o.dposition),s[l]=!0;let d=null;if(l in i&&i[l].type===c)d=i[l];else{const h=Ae.getScale(c);d=new h({id:l,type:c,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),X(s,(o,a)=>{o||delete i[a]}),X(i,o=>{de.configure(this,o,o.options),de.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((s,r)=>s.index-r.index),i>n){for(let s=n;sn.length&&delete this._stacks,e.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u{u.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(zp("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){X(this.scales,e=>{de.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!Zf(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;A2(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),s=i(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;de.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],X(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i={meta:e,index:e.index,cancelable:!0},s=qb(this,e);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(s&&Hd(n,s),e.controller.draw(),s&&Wd(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Mr(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,s){const r=Tk.modes[n];return typeof r=="function"?r(this,e,i,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=vi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);kr(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(r,{visible:i}),this.update(a=>a.datasetIndex===e?s:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),He.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,r,o),e[r]=o},s=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};X(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,u)=>{n.addEventListener(this,l,u),e[l]=u},s=(l,u)=>{e[l]&&(n.removeEventListener(this,l,u),delete e[l])},r=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){X(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},X(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const s=i?"set":"remove";let r,o,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!Ca(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const s=this.options.hover,r=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=r(n,e),a=i?e:r(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:s=[],options:r}=this,o=n,a=this._getActiveElements(e,s,i,o),l=LS(e),u=D2(e,this._lastEvent,i,l);i&&(this._lastEvent=null,et(r.onHover,[e,a,this],this),l&&et(r.onClick,[e,a,this],this));const c=!Ca(a,s);return(c||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=u,c}_getActiveElements(e,n,i,s){if(e.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}},R(un,"defaults",pt),R(un,"instances",Yo),R(un,"overrides",pi),R(un,"registry",Ae),R(un,"version",M2),R(un,"getChart",Hp),un);function Wp(){return X(rl.instances,t=>t._plugins.invalidate())}function R2(t,e,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:a,innerRadius:l}=e;let u=s/a;t.beginPath(),t.arc(r,o,a,i-u,n+u),l>s?(u=s/l,t.arc(r,o,l,n+u,i-u,!0)):t.arc(r,o,s,n+wt,i-wt),t.closePath(),t.clip()}function L2(t){return $d(t,["outerStart","outerEnd","innerStart","innerEnd"])}function O2(t,e,n,i){const s=L2(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,i*e/2),a=l=>{const u=(n-Math.min(r,l))*i/2;return Rt(l,0,Math.min(r,u))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Rt(s.innerStart,0,o),innerEnd:Rt(s.innerEnd,0,o)}}function bi(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Ra(t,e,n,i,s,r){const{x:o,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=e,d=Math.max(e.outerRadius+i+n-u,0),h=c>0?c+i+n+u:0;let f=0;const g=s-l;if(i){const $=c>0?c-i:0,Y=d>0?d-i:0,F=($+Y)/2,A=F!==0?g*F/(F+i):g;f=(g-A)/2}const y=Math.max(.001,g*d-n/dt)/d,x=(g-y)/2,p=l+x+f,m=s-x-f,{outerStart:v,outerEnd:_,innerStart:w,innerEnd:k}=O2(e,h,d,m-p),P=d-v,b=d-_,T=p+v/P,E=m-_/b,O=h+w,I=h+k,Z=p+w/O,gt=m-k/I;if(t.beginPath(),r){const $=(T+E)/2;if(t.arc(o,a,d,T,$),t.arc(o,a,d,$,E),_>0){const L=bi(b,E,o,a);t.arc(L.x,L.y,_,E,m+wt)}const Y=bi(I,m,o,a);if(t.lineTo(Y.x,Y.y),k>0){const L=bi(I,gt,o,a);t.arc(L.x,L.y,k,m+wt,gt+Math.PI)}const F=(m-k/h+(p+w/h))/2;if(t.arc(o,a,h,m-k/h,F,!0),t.arc(o,a,h,F,p+w/h,!0),w>0){const L=bi(O,Z,o,a);t.arc(L.x,L.y,w,Z+Math.PI,p-wt)}const A=bi(P,p,o,a);if(t.lineTo(A.x,A.y),v>0){const L=bi(P,T,o,a);t.arc(L.x,L.y,v,p-wt,T)}}else{t.moveTo(o,a);const $=Math.cos(T)*d+o,Y=Math.sin(T)*d+a;t.lineTo($,Y);const F=Math.cos(E)*d+o,A=Math.sin(E)*d+a;t.lineTo(F,A)}t.closePath()}function N2(t,e,n,i,s){const{fullCircles:r,startAngle:o,circumference:a}=e;let l=e.endAngle;if(r){Ra(t,e,n,i,l,s);for(let u=0;u=ct||y,p=_n(a,c+f,d+f);return x&&p}getCenterPoint(n){const{x:i,y:s,startAngle:r,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(r+o)/2,h=(a+l+c+u)/2;return{x:i+Math.cos(d)*h,y:s+Math.sin(d)*h}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,r=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>ct?Math.floor(s/ct):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*r,Math.sin(l)*r);const u=1-Math.sin(Math.min(dt,s||0)),c=r*u;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,N2(n,this,c,o,a),j2(n,this,c,o,a),n.restore()}}R(Os,"id","arc"),R(Os,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(Os,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(Os,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Cv(t,e,n=e){t.lineCap=V(n.borderCapStyle,e.borderCapStyle),t.setLineDash(V(n.borderDash,e.borderDash)),t.lineDashOffset=V(n.borderDashOffset,e.borderDashOffset),t.lineJoin=V(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=V(n.borderWidth,e.borderWidth),t.strokeStyle=V(n.borderColor,e.borderColor)}function I2(t,e,n){t.lineTo(n.x,n.y)}function F2(t){return t.stepped?rb:t.tension||t.cubicInterpolationMode==="monotone"?ob:I2}function Mv(t,e,n={}){const i=t.length,{start:s=0,end:r=i-1}=n,{start:o,end:a}=e,l=Math.max(s,o),u=Math.min(r,a),c=sa&&r>a;return{count:i,start:l,loop:e.loop,ilen:u(o+(u?a-_:_))%r,v=()=>{y!==x&&(t.lineTo(c,x),t.lineTo(c,y),t.lineTo(c,p))};for(l&&(f=s[m(0)],t.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=s[m(h)],f.skip)continue;const _=f.x,w=f.y,k=_|0;k===g?(wx&&(x=w),c=(d*c+_)/++d):(v(),t.lineTo(_,w),g=k,d=0,y=x=w),p=w}v()}function gc(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?z2:V2}function B2(t){return t.stepped?Fb:t.tension||t.cubicInterpolationMode==="monotone"?Vb:Xn}function H2(t,e,n,i){let s=e._path;s||(s=e._path=new Path2D,e.path(s,n,i)&&s.closePath()),Cv(t,e.options),t.stroke(s)}function W2(t,e,n,i){const{segments:s,options:r}=e,o=gc(e);for(const a of s)Cv(t,r,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}const $2=typeof Path2D=="function";function U2(t,e,n,i){$2&&!e.options.segment?H2(t,e,n,i):W2(t,e,n,i)}class Ns extends an{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Ab(this._points,i,e,s,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Yb(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,i=e.length;return i&&n[e[i-1].end]}interpolate(e,n){const i=this.options,s=e[n],r=this.points,o=$b(this,{property:n,start:s,end:s});if(!o.length)return;const a=[],l=B2(i);let u,c;for(u=0,c=o.length;ue!=="borderDash"&&e!=="fill"});function $p(t,e,n,i){const s=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r){let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},q2=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Kp extends an{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=et(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,s)=>e.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,s=Lt(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Up(i,r);let u,c;n.font=s.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,r,a,l)+10):(c=this.maxHeight,u=this._fitCols(o,s,a,l)+10),this.width=Math.min(u,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=s+a;let d=e;r.textAlign="left",r.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach((g,y)=>{const x=i+n/2+r.measureText(g.text).width;(y===0||u[u.length-1]+x+2*a>o)&&(d+=c,u[u.length-(y>0?0:1)]=0,f+=c,h++),l[y]={left:0,top:f,row:h,width:x,height:s},u[u.length-1]+=x+a}),d}_fitCols(e,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-e;let d=a,h=0,f=0,g=0,y=0;return this.legendItems.forEach((x,p)=>{const{itemWidth:m,itemHeight:v}=Z2(i,n,r,x,s);p>0&&f+v+2*a>c&&(d+=h+a,u.push({width:h,height:f}),g+=h+a,y++,h=f=0),l[p]={left:g,top:f,col:y,width:m,height:v},h=Math.max(h,m),f+=v+a}),d+=h,u.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=Xi(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=Et(i,this.left+s,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=Et(i,this.left+s,this.right-this.lineWidths[a])),u.top+=this.top+e+s,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+s}else{let a=0,l=Et(i,this.top+e+s,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=Et(i,this.top+e+s,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+s,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Hd(e,this),this._draw(),Wd(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=e,a=pt.color,l=Xi(e.rtl,this.left,this.width),u=Lt(o.font),{padding:c}=o,d=u.size,h=d/2;let f;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=u.string;const{boxWidth:g,boxHeight:y,itemHeight:x}=Up(o,d),p=function(k,P,b){if(isNaN(g)||g<=0||isNaN(y)||y<0)return;s.save();const T=V(b.lineWidth,1);if(s.fillStyle=V(b.fillStyle,a),s.lineCap=V(b.lineCap,"butt"),s.lineDashOffset=V(b.lineDashOffset,0),s.lineJoin=V(b.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=V(b.strokeStyle,a),s.setLineDash(V(b.lineDash,[])),o.usePointStyle){const E={radius:y*Math.SQRT2/2,pointStyle:b.pointStyle,rotation:b.rotation,borderWidth:T},O=l.xPlus(k,g/2),I=P+h;sv(s,E,O,I,o.pointStyleWidth&&g)}else{const E=P+Math.max((d-y)/2,0),O=l.leftForLtr(k,g),I=Yi(b.borderRadius);s.beginPath(),Object.values(I).some(Z=>Z!==0)?Ea(s,{x:O,y:E,w:g,h:y,radius:I}):s.rect(O,E,g,y),s.fill(),T!==0&&s.stroke()}s.restore()},m=function(k,P,b){Tr(s,b.text,k,P+x/2,u,{strikethrough:b.hidden,textAlign:l.textAlign(b.textAlign)})},v=this.isHorizontal(),_=this._computeTitleHeight();v?f={x:Et(r,this.left+c,this.right-i[0]),y:this.top+c+_,line:0}:f={x:this.left+c,y:Et(r,this.top+_+c,this.bottom-n[0].height),line:0},dv(this.ctx,e.textDirection);const w=x+c;this.legendItems.forEach((k,P)=>{s.strokeStyle=k.fontColor,s.fillStyle=k.fontColor;const b=s.measureText(k.text).width,T=l.textAlign(k.textAlign||(k.textAlign=o.textAlign)),E=g+h+b;let O=f.x,I=f.y;l.setWidth(this.width),v?P>0&&O+E+c>this.right&&(I=f.y+=w,f.line++,O=f.x=Et(r,this.left+c,this.right-i[f.line])):P>0&&I+w>this.bottom&&(O=f.x=O+n[f.line].width+c,f.line++,I=f.y=Et(r,this.top+_+c,this.bottom-n[f.line].height));const Z=l.x(O);if(p(Z,I,k),O=YS(T,O+g+h,v?O+E:this.right,e.rtl),m(l.x(O),I,k),v)f.x+=E+c;else if(typeof k.text!="string"){const gt=u.lineHeight;f.y+=Ev(k,gt)+c}else f.y+=w}),hv(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=Lt(n.font),s=ge(n.padding);if(!n.display)return;const r=Xi(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,u=s.top+l;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+u,d=Et(e.align,d,this.right-h);else{const g=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);c=u+Et(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const f=Et(a,d,d+h);o.textAlign=r.textAlign(Vd(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,Tr(o,n.text,f,c,i)}_computeTitleHeight(){const e=this.options.title,n=Lt(e.font),i=ge(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,s,r;if(_n(e,this.left,this.right)&&_n(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;ir.length>o.length?r:o)),e+n.size/2+i.measureText(s).width}function tP(t,e,n){let i=t;return typeof e.text!="string"&&(i=Ev(e,n)),i}function Ev(t,e){const n=t.text?t.text.length:0;return e*n}function eP(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var nP={id:"legend",_element:Kp,start(t,e,n){const i=t.legend=new Kp({ctx:t.ctx,options:n,chart:t});de.configure(t,i,n),de.addBox(t,i)},stop(t){de.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;de.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),e.hidden=!0):(s.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=ge(u.borderWidth);return{text:e[l.index].label,fillStyle:u.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:i||u.pointStyle,rotation:u.rotation,textAlign:s||u.textAlign,borderRadius:o&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Av extends an{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const s=vt(i.text)?i.text.length:1;this._padding=ge(i.padding);const r=s*Lt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:s,right:r,options:o}=this,a=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=Et(a,i,r),d=n+e,u=r-i):(o.position==="left"?(c=i+e,d=Et(a,s,n),l=dt*-.5):(c=r-e,d=Et(a,n,s),l=dt*.5),u=s-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=Lt(n.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(r);Tr(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:u,textAlign:Vd(n.align),textBaseline:"middle",translation:[o,a]})}}function iP(t,e){const n=new Av({ctx:t.ctx,options:e,chart:t});de.configure(t,n,e),de.addBox(t,n),t.titleBlock=n}var sP={id:"title",_element:Av,start(t,e,n){iP(t,n)},stop(t){const e=t.titleBlock;de.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;de.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const js={average(t){if(!t.length)return!1;let e,n,i=new Set,s=0,r=0;for(e=0,n=t.length;ea+l)/i.size,y:s/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,s=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=t.length;r-1?t.split(` +`):t}function rP(t,e){const{element:n,datasetIndex:i,index:s}=e,r=t.getDatasetMeta(i).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:t,label:o,parsed:r.getParsed(s),raw:t.data.datasets[i].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Yp(t,e){const n=t.chart.ctx,{body:i,footer:s,title:r}=t,{boxWidth:o,boxHeight:a}=e,l=Lt(e.bodyFont),u=Lt(e.titleFont),c=Lt(e.footerFont),d=r.length,h=s.length,f=i.length,g=ge(e.padding);let y=g.height,x=0,p=i.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(p+=t.beforeBody.length+t.afterBody.length,d&&(y+=d*u.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),p){const _=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=f*_+(p-f)*l.lineHeight+(p-1)*e.bodySpacing}h&&(y+=e.footerMarginTop+h*c.lineHeight+(h-1)*e.footerSpacing);let m=0;const v=function(_){x=Math.max(x,n.measureText(_).width+m)};return n.save(),n.font=u.string,X(t.title,v),n.font=l.string,X(t.beforeBody.concat(t.afterBody),v),m=e.displayColors?o+2+e.boxPadding:0,X(i,_=>{X(_.before,v),X(_.lines,v),X(_.after,v)}),m=0,n.font=c.string,X(t.footer,v),n.restore(),x+=g.width,{width:x,height:y}}function oP(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function aP(t,e,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&s+r+o>e.width||t==="right"&&s-r-o<0)return!0}function lP(t,e,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:a,right:l}}=t;let u="center";return i==="center"?u=s<=(a+l)/2?"left":"right":s<=r/2?u="left":s>=o-r/2&&(u="right"),aP(u,t,e,n)&&(u="center"),u}function Xp(t,e,n){const i=n.yAlign||e.yAlign||oP(t,n);return{xAlign:n.xAlign||e.xAlign||lP(t,e,n,i),yAlign:i}}function uP(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function cP(t,e,n){let{y:i,height:s}=t;return e==="top"?i+=n:e==="bottom"?i-=s+n:i-=s/2,i}function Gp(t,e,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,u=s+r,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:f}=Yi(o);let g=uP(e,a);const y=cP(e,l,u);return l==="center"?a==="left"?g+=u:a==="right"&&(g-=u):a==="left"?g-=Math.max(c,h)+s:a==="right"&&(g+=Math.max(d,f)+s),{x:Rt(g,0,i.width-e.width),y:Rt(y,0,i.height-e.height)}}function bo(t,e,n){const i=ge(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function Qp(t){return Te([],We(t))}function dP(t,e,n){return vi(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function qp(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Dv={beforeTitle:ze,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex"u"?Dv[e].call(n,i):s}class yc extends an{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new pv(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=dP(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:i}=n,s=Ut(i,"beforeTitle",this,e),r=Ut(i,"title",this,e),o=Ut(i,"afterTitle",this,e);let a=[];return a=Te(a,We(s)),a=Te(a,We(r)),a=Te(a,We(o)),a}getBeforeBody(e,n){return Qp(Ut(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:i}=n,s=[];return X(e,r=>{const o={before:[],lines:[],after:[]},a=qp(i,r);Te(o.before,We(Ut(a,"beforeLabel",this,r))),Te(o.lines,Ut(a,"label",this,r)),Te(o.after,We(Ut(a,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,n){return Qp(Ut(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,s=Ut(i,"beforeFooter",this,e),r=Ut(i,"footer",this,e),o=Ut(i,"afterFooter",this,e);let a=[];return a=Te(a,We(s)),a=Te(a,We(r)),a=Te(a,We(o)),a}_createItems(e){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let a=[],l,u;for(l=0,u=n.length;le.filter(c,d,h,i))),e.itemSort&&(a=a.sort((c,d)=>e.itemSort(c,d,i))),X(a,c=>{const d=qp(e.callbacks,c);s.push(Ut(d,"labelColor",this,c)),r.push(Ut(d,"labelPointStyle",this,c)),o.push(Ut(d,"labelTextColor",this,c))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const a=js[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=Yp(this,i),u=Object.assign({},a,l),c=Xp(this.chart,i,u),d=Gp(i,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,s){const r=this.getCaretPosition(e,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=Yi(a),{x:h,y:f}=e,{width:g,height:y}=n;let x,p,m,v,_,w;return r==="center"?(_=f+y/2,s==="left"?(x=h,p=x-o,v=_+o,w=_-o):(x=h+g,p=x+o,v=_-o,w=_+o),m=x):(s==="left"?p=h+Math.max(l,c)+o:s==="right"?p=h+g-Math.max(u,d)-o:p=this.caretX,r==="top"?(v=f,_=v-o,x=p-o,m=p+o):(v=f+y,_=v+o,x=p+o,m=p-o),w=v),{x1:x,x2:p,x3:m,y1:v,y2:_,y3:w}}drawTitle(e,n,i){const s=this.title,r=s.length;let o,a,l;if(r){const u=Xi(i.rtl,this.x,this.width);for(e.x=bo(this,i.titleAlign,i),n.textAlign=u.textAlign(i.titleAlign),n.textBaseline="middle",o=Lt(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;lm!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Ea(e,{x:y,y:g,w:u,h:l,radius:p}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Ea(e,{x,y:g+1,w:u-2,h:l-2,radius:p}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(y,g,u,l),e.strokeRect(y,g,u,l),e.fillStyle=o.backgroundColor,e.fillRect(x,g+1,u-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:c}=i,d=Lt(i.bodyFont);let h=d.lineHeight,f=0;const g=Xi(i.rtl,this.x,this.width),y=function(b){n.fillText(b,g.x(e.x+f),e.y+h/2),e.y+=h+r},x=g.textAlign(o);let p,m,v,_,w,k,P;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=bo(this,x,i),n.fillStyle=i.bodyColor,X(this.beforeBody,y),f=a&&x!=="right"?o==="center"?u/2+c:u+2+c:0,_=0,k=s.length;_0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=js[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=Yp(this,e),l=Object.assign({},o,this._size),u=Xp(n,e,l),c=Gp(e,l,u,n);(s._to!==c.x||r._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=ge(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(r,e,s,n),dv(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),hv(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,s=e.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),r=!Ca(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,i),a=this._positionChanged(o,e),l=n||!Ca(o,r)||a;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:s,options:r}=this,o=js[r.position].call(this,e,n);return o!==!1&&(i!==o.x||s!==o.y)}}R(yc,"positioners",js);var hP={id:"tooltip",_element:yc,positioners:js,afterInit(t,e,n){n&&(t.tooltip=new yc({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Dv},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const fP=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function pP(t,e,n,i){const s=t.indexOf(e);if(s===-1)return fP(t,e,n,i);const r=t.lastIndexOf(e);return s!==r?n:s}const mP=(t,e)=>t===null?null:Rt(Math.round(t),0,e);function Zp(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}R(vc,"id","category"),R(vc,"defaults",{ticks:{callback:Zp}});function gP(t,e){const n=[],{bounds:s,step:r,min:o,max:a,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:h}=t,f=r||1,g=c-1,{min:y,max:x}=e,p=!U(o),m=!U(a),v=!U(u),_=(x-y)/(d+1);let w=tp((x-y)/g/f)*f,k,P,b,T;if(w<1e-14&&!p&&!m)return[{value:y},{value:x}];T=Math.ceil(x/w)-Math.floor(y/w),T>g&&(w=tp(T*w/g/f)*f),U(l)||(k=Math.pow(10,l),w=Math.ceil(w*k)/k),s==="ticks"?(P=Math.floor(y/w)*w,b=Math.ceil(x/w)*w):(P=y,b=x),p&&m&&r&&FS((a-o)/r,w/1e3)?(T=Math.round(Math.min((a-o)/w,c)),w=(a-o)/T,P=o,b=a):v?(P=p?o:P,b=m?a:b,T=u-1,w=(b-P)/T):(T=(b-P)/w,Qs(T,Math.round(T),w/1e3)?T=Math.round(T):T=Math.ceil(T));const E=Math.max(ep(w),ep(P));k=Math.pow(10,U(l)?E:l),P=Math.round(P*k)/k,b=Math.round(b*k)/k;let O=0;for(p&&(h&&P!==o?(n.push({value:o}),Pa)break;n.push({value:I})}return m&&h&&b!==a?n.length&&Qs(n[n.length-1].value,a,Jp(a,_,t))?n[n.length-1].value=a:n.push({value:a}):(!m||b===a)&&n.push({value:b}),n}function Jp(t,e,{horizontal:n,minRotation:i}){const s=Ge(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class yP extends us{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return U(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=l=>s=n?s:l,a=l=>r=i?r:l;if(e){const l=Oe(s),u=Oe(r);l<0&&u<0?a(0):l>0&&u>0&&o(0)}if(s===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||o(s-l)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=gP(s,r);return e.bounds==="ticks"&&VS(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const s=(i-n)/Math.max(e.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return Bd(e,this.chart.options.locale,this.options.ticks.format)}}class xc extends yP{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=me(e)?e:0,this.max=me(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=Ge(this.options.ticks.minRotation),s=(e?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}R(xc,"id","linear"),R(xc,"defaults",{ticks:{callback:iv.formatters.numeric}});const ol={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yt=Object.keys(ol);function tm(t,e){return t-e}function em(t,e){if(U(e))return null;const n=t._adapter,{parser:i,round:s,isoWeekday:r}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),me(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(Pr(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function nm(t,e,n,i){const s=Yt.length;for(let r=Yt.indexOf(t);r=Yt.indexOf(n);r--){const o=Yt[r];if(ol[o].common&&t._adapter.diff(s,i,o)>=e-1)return o}return Yt[n?Yt.indexOf(n):0]}function xP(t){for(let e=Yt.indexOf(t)+1,n=Yt.length;e=e?n[i]:n[s];t[r]=!0}}function wP(t,e,n,i){const s=t._adapter,r=+s.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=r;a<=o;a=+s.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function sm(t,e,n){const i=[],s={},r=e.length;let o,a;for(o=0;o+e.value))}initOffsets(e=[]){let n=0,i=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?i=r:i=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Rt(n,0,o),i=Rt(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||nm(r.minUnit,n,i,this._getLabelCapacity(n)),a=V(s.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,u=Pr(l)||l===!0,c={};let d=n,h,f;if(u&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,u?"day":o),e.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h+y)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return et(o,[e,n,i],this);const a=r.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&a[l],d=u&&a[u],h=i[n],f=u&&d&&h&&h.major;return this._adapter.format(e,s||(f?d:c))}generateTickLabels(e){let n,i,s;for(n=0,i=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n=t[i].pos&&e<=t[s].pos&&({lo:i,hi:s}=ti(t,"pos",e)),{pos:r,time:a}=t[i],{pos:o,time:l}=t[s]):(e>=t[i].time&&e<=t[s].time&&({lo:i,hi:s}=ti(t,"time",e)),{time:r,pos:a}=t[i],{time:o,pos:l}=t[s]);const u=o-r;return u?a+(l-a)*(e-r)/u:a}class rm extends La{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=ko(n,this.min),this._tableRange=ko(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,s=[],r=[];let o,a,l,u,c;for(o=0,a=e.length;o=n&&u<=i&&s.push(u);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=s.length;os-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(ko(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return ko(this._table,i*this._tableRange+this._minPos,!0)}}R(rm,"id","timeseries"),R(rm,"defaults",La.defaults);const Rv="label";function om(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function _P(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Lv(t,e){t.labels=e}function Ov(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rv;const i=[];t.datasets=e.map(s=>{const r=t.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function SP(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rv;const n={labels:[],datasets:[]};return Lv(n,t.labels),Ov(n,t.datasets,e),n}function bP(t,e){const{height:n=150,width:i=300,redraw:s=!1,datasetIdKey:r,type:o,data:a,options:l,plugins:u=[],fallbackContent:c,updateMode:d,...h}=t,f=C.useRef(null),g=C.useRef(null),y=()=>{f.current&&(g.current=new rl(f.current,{type:o,data:SP(a,r),options:l&&{...l},plugins:u}),om(e,g.current))},x=()=>{om(e,null),g.current&&(g.current.destroy(),g.current=null)};return C.useEffect(()=>{!s&&g.current&&l&&_P(g.current,l)},[s,l]),C.useEffect(()=>{!s&&g.current&&Lv(g.current.config.data,a.labels)},[s,a.labels]),C.useEffect(()=>{!s&&g.current&&a.datasets&&Ov(g.current.config.data,a.datasets,r)},[s,a.datasets]),C.useEffect(()=>{g.current&&(s?(x(),setTimeout(y)):g.current.update(d))},[s,l,a.labels,a.datasets,d]),C.useEffect(()=>{g.current&&(x(),setTimeout(y))},[o]),C.useEffect(()=>(y(),()=>x()),[]),Bg.createElement("canvas",{ref:f,role:"img",height:n,width:i,...h},c)}const kP=C.forwardRef(bP);function qd(t,e){return rl.register(e),C.forwardRef((n,i)=>Bg.createElement(kP,{...n,ref:i,type:t}))}const PP=qd("line",Uo),CP=qd("bar",$o),MP=qd("pie",fc),Zd=C.createContext({});function al(t){const e=C.useRef(null);return e.current===null&&(e.current=t()),e.current}const ll=C.createContext(null),Jd=C.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class TP extends C.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function EP({children:t,isPresent:e}){const n=C.useId(),i=C.useRef(null),s=C.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=C.useContext(Jd);return C.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=s.current;if(e||!i.current||!o||!a)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return r&&(c.nonce=r),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${o}px !important; + height: ${a}px !important; + top: ${l}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(c)}},[e]),S.jsx(TP,{isPresent:e,childRef:i,sizeRef:s,children:C.cloneElement(t,{ref:i})})}const AP=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:s,presenceAffectsLayout:r,mode:o})=>{const a=al(DP),l=C.useId(),u=C.useCallback(d=>{a.set(d,!0);for(const h of a.values())if(!h)return;i&&i()},[a,i]),c=C.useMemo(()=>({id:l,initial:e,isPresent:n,custom:s,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),r?[Math.random(),u]:[n,u]);return C.useMemo(()=>{a.forEach((d,h)=>a.set(h,!1))},[n]),C.useEffect(()=>{!n&&!a.size&&i&&i()},[n]),o==="popLayout"&&(t=S.jsx(EP,{isPresent:n,children:t})),S.jsx(ll.Provider,{value:c,children:t})};function DP(){return new Map}function Nv(t=!0){const e=C.useContext(ll);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=e,r=C.useId();C.useEffect(()=>{t&&s(r)},[t]);const o=C.useCallback(()=>t&&i&&i(r),[r,i,t]);return!n&&i?[!1,o]:[!0]}const Po=t=>t.key||"";function am(t){const e=[];return C.Children.forEach(t,n=>{C.isValidElement(n)&&e.push(n)}),e}const th=typeof window<"u",eh=th?C.useLayoutEffect:C.useEffect,lm=({children:t,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1})=>{const[a,l]=Nv(o),u=C.useMemo(()=>am(t),[t]),c=o&&!a?[]:u.map(Po),d=C.useRef(!0),h=C.useRef(u),f=al(()=>new Map),[g,y]=C.useState(u),[x,p]=C.useState(u);eh(()=>{d.current=!1,h.current=u;for(let _=0;_{const w=Po(_),k=o&&!a?!1:u===x||c.includes(w),P=()=>{if(f.has(w))f.set(w,!0);else return;let b=!0;f.forEach(T=>{T||(b=!1)}),b&&(v==null||v(),p(h.current),o&&(l==null||l()),i&&i())};return S.jsx(AP,{isPresent:k,initial:!d.current||n?void 0:!1,custom:k?void 0:e,presenceAffectsLayout:s,mode:r,onExitComplete:k?void 0:P,children:_},w)})})},Bt=t=>t;let RP=Bt,wc=Bt;function nh(t){let e;return()=>(e===void 0&&(e=t()),e)}const mi=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Ze=t=>t*1e3,Je=t=>t/1e3,LP={skipAnimations:!1,useManualTiming:!1};function OP(t){let e=new Set,n=new Set,i=!1,s=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const f=d&&i?e:n;return c&&r.add(u),f.has(u)||f.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,i){s=!0;return}i=!0,[e,n]=[n,e],e.forEach(a),e.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const Co=["read","resolveKeyframes","update","preRender","render","postRender"],NP=40;function jv(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Co.reduce((p,m)=>(p[m]=OP(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=o,f=()=>{const p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,NP),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))},g=()=>{n=!0,i=!0,s.isProcessing||t(f)};return{schedule:Co.reduce((p,m)=>{const v=o[m];return p[m]=(_,w=!1,k=!1)=>(n||g(),v.schedule(_,w,k)),p},{}),cancel:p=>{for(let m=0;mum[t].some(n=>!!e[n])};function jP(t){for(const e in t)ss[e]={...ss[e],...t[e]}}const IP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Oa(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||IP.has(t)}let Fv=t=>!Oa(t);function FP(t){t&&(Fv=e=>e.startsWith("on")?!Oa(e):t(e))}try{FP(require("@emotion/is-prop-valid").default)}catch{}function VP(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(Fv(s)||n===!0&&Oa(s)||!e&&!Oa(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function zP(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,s)=>s==="create"?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}const ul=C.createContext({});function Ar(t){return typeof t=="string"||Array.isArray(t)}function cl(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ih=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sh=["initial",...ih];function dl(t){return cl(t.animate)||sh.some(e=>Ar(t[e]))}function Vv(t){return!!(dl(t)||t.variants)}function BP(t,e){if(dl(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Ar(n)?n:void 0,animate:Ar(i)?i:void 0}}return t.inherit!==!1?e:{}}function HP(t){const{initial:e,animate:n}=BP(t,C.useContext(ul));return C.useMemo(()=>({initial:e,animate:n}),[cm(e),cm(n)])}function cm(t){return Array.isArray(t)?t.join(" "):t}const WP=Symbol.for("motionComponentSymbol");function ji(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function $P(t,e,n){return C.useCallback(i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ji(n)&&(n.current=i))},[e])}const rh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),UP="framerAppearId",zv="data-"+rh(UP),{schedule:oh,cancel:MD}=jv(queueMicrotask,!1),Bv=C.createContext({});function KP(t,e,n,i,s){var r,o;const{visualElement:a}=C.useContext(ul),l=C.useContext(Iv),u=C.useContext(ll),c=C.useContext(Jd).reducedMotion,d=C.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const h=d.current,f=C.useContext(Bv);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&YP(d.current,n,s,f);const g=C.useRef(!1);C.useInsertionEffect(()=>{h&&g.current&&h.update(n,u)});const y=n[zv],x=C.useRef(!!y&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return eh(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),oh.render(h.render),x.current&&h.animationState&&h.animationState.animateChanges())}),C.useEffect(()=>{h&&(!x.current&&h.animationState&&h.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),x.current=!1))}),h}function YP(t,e,n,i){const{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Hv(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&ji(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function Hv(t){if(t)return t.options.allowProjection!==!1?t.projection:Hv(t.parent)}function XP({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){var r,o;t&&jP(t);function a(u,c){let d;const h={...C.useContext(Jd),...u,layoutId:GP(u)},{isStatic:f}=h,g=HP(u),y=i(u,f);if(!f&&th){QP();const x=qP(h);d=x.MeasureLayout,g.visualElement=KP(s,y,h,e,x.ProjectionNode)}return S.jsxs(ul.Provider,{value:g,children:[d&&g.visualElement?S.jsx(d,{visualElement:g.visualElement,...h}):null,n(s,u,$P(y,g.visualElement,c),y,f,g.visualElement)]})}a.displayName=`motion.${typeof s=="string"?s:`create(${(o=(r=s.displayName)!==null&&r!==void 0?r:s.name)!==null&&o!==void 0?o:""})`}`;const l=C.forwardRef(a);return l[WP]=s,l}function GP({layoutId:t}){const e=C.useContext(Zd).id;return e&&t!==void 0?e+"-"+t:t}function QP(t,e){C.useContext(Iv).strict}function qP(t){const{drag:e,layout:n}=ss;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const ZP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ah(t){return typeof t!="string"||t.includes("-")?!1:!!(ZP.indexOf(t)>-1||/[A-Z]/u.test(t))}function dm(t){const e=[{},{}];return t==null||t.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function lh(t,e,n,i){if(typeof e=="function"){const[s,r]=dm(i);e=e(n!==void 0?n:t.custom,s,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,r]=dm(i);e=e(n!==void 0?n:t.custom,s,r)}return e}const _c=t=>Array.isArray(t),JP=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),tC=t=>_c(t)?t[t.length-1]||0:t,Ot=t=>!!(t&&t.getVelocity);function Qo(t){const e=Ot(t)?t.get():t;return JP(e)?e.toValue():e}function eC({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},i,s,r){const o={latestValues:nC(i,s,r,t),renderState:e()};return n&&(o.onMount=a=>n({props:i,current:a,...o}),o.onUpdate=a=>n(a)),o}const Wv=t=>(e,n)=>{const i=C.useContext(ul),s=C.useContext(ll),r=()=>eC(t,e,i,s);return n?r():al(r)};function nC(t,e,n,i){const s={},r=i(t,{});for(const h in r)s[h]=Qo(r[h]);let{initial:o,animate:a}=t;const l=dl(t),u=Vv(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!cl(d)){const h=Array.isArray(d)?d:[d];for(let f=0;fe=>typeof e=="string"&&e.startsWith(t),Uv=$v("--"),iC=$v("var(--"),uh=t=>iC(t)?sC.test(t.split("/*")[0].trim()):!1,sC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Kv=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Fe=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},Dr={...ds,transform:t=>Fe(0,1,t)},Mo={...ds,default:1},Br=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),dn=Br("deg"),Ne=Br("%"),N=Br("px"),rC=Br("vh"),oC=Br("vw"),hm={...Ne,parse:t=>Ne.parse(t)/100,transform:t=>Ne.transform(t*100)},aC={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,radius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,backgroundPositionX:N,backgroundPositionY:N},lC={rotate:dn,rotateX:dn,rotateY:dn,rotateZ:dn,scale:Mo,scaleX:Mo,scaleY:Mo,scaleZ:Mo,skew:dn,skewX:dn,skewY:dn,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:Dr,originX:hm,originY:hm,originZ:N},fm={...ds,transform:Math.round},ch={...aC,...lC,zIndex:fm,size:N,fillOpacity:Dr,strokeOpacity:Dr,numOctaves:fm},uC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cC=cs.length;function dC(t,e,n){let i="",s=!0;for(let r=0;r({style:{},transform:{},transformOrigin:{},vars:{}}),Yv=()=>({...fh(),attrs:{}}),ph=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Xv(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const r in n)t.style.setProperty(r,n[r])}const Gv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qv(t,e,n,i){Xv(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(Gv.has(s)?s:rh(s),e.attrs[s])}const Na={};function gC(t){Object.assign(Na,t)}function qv(t,{layout:e,layoutId:n}){return xi.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Na[t]||t==="opacity")}function mh(t,e,n){var i;const{style:s}=t,r={};for(const o in s)(Ot(s[o])||e.style&&Ot(e.style[o])||qv(o,t)||((i=n==null?void 0:n.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function Zv(t,e,n){const i=mh(t,e,n);for(const s in t)if(Ot(t[s])||Ot(e[s])){const r=cs.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=t[s]}return i}function yC(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const mm=["x","y","width","height","cx","cy","r"],vC={useVisualState:Wv({scrapeMotionValuesFromProps:Zv,createRenderState:Yv,onUpdate:({props:t,prevProps:e,current:n,renderState:i,latestValues:s})=>{if(!n)return;let r=!!t.drag;if(!r){for(const a in s)if(xi.has(a)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let a=0;a{yC(n,i),K.render(()=>{hh(i,s,ph(n.tagName),t.transformTemplate),Qv(n,i)})})}})},xC={useVisualState:Wv({scrapeMotionValuesFromProps:mh,createRenderState:fh})};function Jv(t,e,n){for(const i in e)!Ot(e[i])&&!qv(i,n)&&(t[i]=e[i])}function wC({transformTemplate:t},e){return C.useMemo(()=>{const n=fh();return dh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function _C(t,e){const n=t.style||{},i={};return Jv(i,n,t),Object.assign(i,wC(t,e)),i}function SC(t,e){const n={},i=_C(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}function bC(t,e,n,i){const s=C.useMemo(()=>{const r=Yv();return hh(r,e,ph(i),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Jv(r,t.style,t),s.style={...r,...s.style}}return s}function kC(t=!1){return(n,i,s,{latestValues:r},o)=>{const l=(ah(n)?bC:SC)(i,r,o,n),u=VP(i,typeof n=="string",t),c=n!==C.Fragment?{...u,...l,ref:s}:{},{children:d}=i,h=C.useMemo(()=>Ot(d)?d.get():d,[d]);return C.createElement(n,{...c,children:h})}}function PC(t,e){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...ah(i)?vC:xC,preloadedFeatures:t,useRender:kC(s),createVisualElement:e,Component:i};return XP(o)}}function tx(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;iwindow.ScrollTimeline!==void 0);class CC{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i{if(ex()&&s.attachTimeline)return s.attachTimeline(e);if(typeof n=="function")return n(s)});return()=>{i.forEach((s,r)=>{s&&s(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class MC extends CC{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function gh(t,e){return t?t[e]||t.default||t:void 0}const Sc=2e4;function nx(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e=Sc?1/0:e}function yh(t){return typeof t=="function"}function gm(t,e){t.timeline=e,t.onfinish=null}const vh=t=>Array.isArray(t)&&typeof t[0]=="number",TC={linearEasing:void 0};function EC(t,e){const n=nh(t);return()=>{var i;return(i=TC[e])!==null&&i!==void 0?i:n()}}const ja=EC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ix=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let r=0;r`cubic-bezier(${t}, ${e}, ${n}, ${i})`,bc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Is([0,.65,.55,1]),circOut:Is([.55,0,1,.45]),backIn:Is([.31,.01,.66,-.59]),backOut:Is([.33,1.53,.69,.99])};function rx(t,e){if(t)return typeof t=="function"&&ja()?ix(t,e):vh(t)?Is(t):Array.isArray(t)?t.map(n=>rx(n,e)||bc.easeOut):bc[t]}const ve={x:!1,y:!1};function ox(){return ve.x||ve.y}function ax(t,e,n){var i;if(t instanceof Element)return[t];if(typeof t=="string"){let s=document;const r=(i=void 0)!==null&&i!==void 0?i:s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function lx(t,e){const n=ax(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function ym(t){return e=>{e.pointerType==="touch"||ox()||t(e)}}function AC(t,e,n={}){const[i,s,r]=lx(t,n),o=ym(a=>{const{target:l}=a,u=e(a);if(typeof u!="function"||!l)return;const c=ym(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,s)});return i.forEach(a=>{a.addEventListener("pointerenter",o,s)}),r}const ux=(t,e)=>e?t===e?!0:ux(t,e.parentElement):!1,xh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,DC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function RC(t){return DC.has(t.tagName)||t.tabIndex!==-1}const Fs=new WeakSet;function vm(t){return e=>{e.key==="Enter"&&t(e)}}function tu(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const LC=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=vm(()=>{if(Fs.has(n))return;tu(n,"down");const s=vm(()=>{tu(n,"up")}),r=()=>tu(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function xm(t){return xh(t)&&!ox()}function OC(t,e,n={}){const[i,s,r]=lx(t,n),o=a=>{const l=a.currentTarget;if(!xm(a)||Fs.has(l))return;Fs.add(l);const u=e(a),c=(f,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!xm(f)||!Fs.has(l))&&(Fs.delete(l),typeof u=="function"&&u(f,{success:g}))},d=f=>{c(f,n.useGlobalTarget||ux(l,f.target))},h=f=>{c(f,!1)};window.addEventListener("pointerup",d,s),window.addEventListener("pointercancel",h,s)};return i.forEach(a=>{!RC(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",u=>LC(u,s),s)}),r}function NC(t){return t==="x"||t==="y"?ve[t]?null:(ve[t]=!0,()=>{ve[t]=!1}):ve.x||ve.y?null:(ve.x=ve.y=!0,()=>{ve.x=ve.y=!1})}const cx=new Set(["width","height","top","left","right","bottom",...cs]);let qo;function jC(){qo=void 0}const je={now:()=>(qo===void 0&&je.set(_t.isProcessing||LP.useManualTiming?_t.timestamp:performance.now()),qo),set:t=>{qo=t,queueMicrotask(jC)}};function wh(t,e){t.indexOf(e)===-1&&t.push(e)}function _h(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Sh{constructor(){this.subscriptions=[]}add(e){return wh(this.subscriptions,e),()=>_h(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let r=0;r!isNaN(parseFloat(t));class FC{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,s=!0)=>{const r=je.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=je.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=IC(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sh);const i=this.events[e].add(n);return e==="change"?()=>{i(),K.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>wm)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wm);return bh(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qe(t,e){return new FC(t,e)}function VC(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Qe(n))}function zC(t,e){const n=hl(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const a=tC(r[o]);VC(t,o,a)}}function BC(t){return!!(Ot(t)&&t.add)}function kc(t,e){const n=t.getValue("willChange");if(BC(n))return n.add(e)}function dx(t){return t.props[zv]}const hx=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,HC=1e-7,WC=12;function $C(t,e,n,i,s){let r,o,a=0;do o=e+(n-e)/2,r=hx(o,i,s)-t,r>0?n=o:e=o;while(Math.abs(r)>HC&&++a$C(r,0,1,t,n);return r=>r===0||r===1?r:hx(s(r),e,i)}const fx=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,px=t=>e=>1-t(1-e),mx=Hr(.33,1.53,.69,.99),kh=px(mx),gx=fx(kh),yx=t=>(t*=2)<1?.5*kh(t):.5*(2-Math.pow(2,-10*(t-1))),Ph=t=>1-Math.sin(Math.acos(t)),vx=px(Ph),xx=fx(Ph),wx=t=>/^0[^.\s]+$/u.test(t);function UC(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||wx(t):!0}const Js=t=>Math.round(t*1e5)/1e5,Ch=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KC(t){return t==null}const YC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mh=(t,e)=>n=>!!(typeof n=="string"&&YC.test(n)&&n.startsWith(t)||e&&!KC(n)&&Object.prototype.hasOwnProperty.call(n,e)),_x=(t,e,n)=>i=>{if(typeof i!="string")return i;const[s,r,o,a]=i.match(Ch);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},XC=t=>Fe(0,255,t),eu={...ds,transform:t=>Math.round(XC(t))},ei={test:Mh("rgb","red"),parse:_x("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+eu.transform(t)+", "+eu.transform(e)+", "+eu.transform(n)+", "+Js(Dr.transform(i))+")"};function GC(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Pc={test:Mh("#"),parse:GC,transform:ei.transform},Ii={test:Mh("hsl","hue"),parse:_x("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+Ne.transform(Js(e))+", "+Ne.transform(Js(n))+", "+Js(Dr.transform(i))+")"},At={test:t=>ei.test(t)||Pc.test(t)||Ii.test(t),parse:t=>ei.test(t)?ei.parse(t):Ii.test(t)?Ii.parse(t):Pc.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ei.transform(t):Ii.transform(t)},QC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qC(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ch))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(QC))===null||n===void 0?void 0:n.length)||0)>0}const Sx="number",bx="color",ZC="var",JC="var(",_m="${}",tM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rr(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},s=[];let r=0;const a=e.replace(tM,l=>(At.test(l)?(i.color.push(r),s.push(bx),n.push(At.parse(l))):l.startsWith(JC)?(i.var.push(r),s.push(ZC),n.push(l)):(i.number.push(r),s.push(Sx),n.push(parseFloat(l))),++r,_m)).split(_m);return{values:n,split:a,indexes:i,types:s}}function kx(t){return Rr(t).values}function Px(t){const{split:e,types:n}=Rr(t),i=e.length;return s=>{let r="";for(let o=0;otypeof t=="number"?0:t;function nM(t){const e=kx(t);return Px(t)(e.map(eM))}const Nn={test:qC,parse:kx,createTransformer:Px,getAnimatableNone:nM},iM=new Set(["brightness","contrast","saturate","opacity"]);function sM(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Ch)||[];if(!i)return t;const s=n.replace(i,"");let r=iM.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+s+")"}const rM=/\b([a-z-]*)\(.*?\)/gu,Cc={...Nn,getAnimatableNone:t=>{const e=t.match(rM);return e?e.map(sM).join(" "):t}},oM={...ch,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:Cc,WebkitFilter:Cc},Th=t=>oM[t];function Cx(t,e){let n=Th(t);return n!==Cc&&(n=Nn),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const aM=new Set(["auto","none","0"]);function lM(t,e,n){let i=0,s;for(;it===ds||t===N,bm=(t,e)=>parseFloat(t.split(", ")[e]),km=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return bm(s[1],e);{const r=i.match(/^matrix\((.+)\)$/u);return r?bm(r[1],t):0}},uM=new Set(["x","y","z"]),cM=cs.filter(t=>!uM.has(t));function dM(t){const e=[];return cM.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const rs={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:km(4,13),y:km(5,14)};rs.translateX=rs.x;rs.translateY=rs.y;const ai=new Set;let Mc=!1,Tc=!1;function Mx(){if(Tc){const t=Array.from(ai).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const s=dM(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Tc=!1,Mc=!1,ai.forEach(t=>t.complete()),ai.clear()}function Tx(){ai.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Tc=!0)})}function hM(){Tx(),Mx()}class Eh{constructor(e,n,i,s,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ai.add(this),Mc||(Mc=!0,K.read(Tx),K.resolveKeyframes(Mx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;for(let r=0;r/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),fM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pM(t){const e=fM.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function Ax(t,e,n=1){const[i,s]=pM(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const o=r.trim();return Ex(o)?parseFloat(o):o}return uh(s)?Ax(s,e,n+1):s}const Dx=t=>e=>e.test(t),mM={test:t=>t==="auto",parse:t=>t},Rx=[ds,N,Ne,dn,oC,rC,mM],Pm=t=>Rx.find(Dx(t));class Lx extends Eh{constructor(e,n,i,s,r){super(e,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Cm=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nn.test(t)||t==="0")&&!t.startsWith("url("));function gM(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function fl(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(vM),r=e&&n!=="loop"&&e%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}const xM=40;class Ox{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=je.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>xM?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hM(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=je.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!yM(e,i,s,r))if(o)this.options.duration=0;else{l&&l(fl(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const rt=(t,e,n)=>t+(e-t)*n;function nu(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function wM({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,r=0,o=0;if(!e)s=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=nu(l,a,t+1/3),r=nu(l,a,t),o=nu(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function Ia(t,e){return n=>n>0?e:t}const iu=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},_M=[Pc,ei,Ii],SM=t=>_M.find(e=>e.test(t));function Mm(t){const e=SM(t);if(!e)return!1;let n=e.parse(t);return e===Ii&&(n=wM(n)),n}const Tm=(t,e)=>{const n=Mm(t),i=Mm(e);if(!n||!i)return Ia(t,e);const s={...n};return r=>(s.red=iu(n.red,i.red,r),s.green=iu(n.green,i.green,r),s.blue=iu(n.blue,i.blue,r),s.alpha=rt(n.alpha,i.alpha,r),ei.transform(s))},bM=(t,e)=>n=>e(t(n)),Wr=(...t)=>t.reduce(bM),Ec=new Set(["none","hidden"]);function kM(t,e){return Ec.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function PM(t,e){return n=>rt(t,e,n)}function Ah(t){return typeof t=="number"?PM:typeof t=="string"?uh(t)?Ia:At.test(t)?Tm:TM:Array.isArray(t)?Nx:typeof t=="object"?At.test(t)?Tm:CM:Ia}function Nx(t,e){const n=[...t],i=n.length,s=t.map((r,o)=>Ah(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in i)n[r]=i[r](s);return n}}function MM(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let r=0;r{const n=Nn.createTransformer(e),i=Rr(t),s=Rr(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Ec.has(t)&&!s.values.length||Ec.has(e)&&!i.values.length?kM(t,e):Wr(Nx(MM(i,s),s.values),n):Ia(t,e)};function jx(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?rt(t,e,n):Ah(t)(t,e)}const EM=5;function Ix(t,e,n){const i=Math.max(e-EM,0);return bh(n-t(i),e-i)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},su=.001;function AM({duration:t=lt.duration,bounce:e=lt.bounce,velocity:n=lt.velocity,mass:i=lt.mass}){let s,r,o=1-e;o=Fe(lt.minDamping,lt.maxDamping,o),t=Fe(lt.minDuration,lt.maxDuration,Je(t)),o<1?(s=u=>{const c=u*o,d=c*t,h=c-n,f=Ac(u,o),g=Math.exp(-d);return su-h/f*g},r=u=>{const d=u*o*t,h=d*n+n,f=Math.pow(o,2)*Math.pow(u,2)*t,g=Math.exp(-d),y=Ac(Math.pow(u,2),o);return(-s(u)+su>0?-1:1)*((h-f)*g)/y}):(s=u=>{const c=Math.exp(-u*t),d=(u-n)*t+1;return-su+c*d},r=u=>{const c=Math.exp(-u*t),d=(n-u)*(t*t);return c*d});const a=5/t,l=RM(s,r,a);if(t=Ze(t),isNaN(l))return{stiffness:lt.stiffness,damping:lt.damping,duration:t};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:t}}}const DM=12;function RM(t,e,n){let i=n;for(let s=1;st[n]!==void 0)}function NM(t){let e={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...t};if(!Em(t,OM)&&Em(t,LM))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*Fe(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:lt.mass,stiffness:s,damping:r}}else{const n=AM(t);e={...e,...n,mass:lt.mass},e.isResolvedFromDuration=!0}return e}function Fx(t=lt.visualDuration,e=lt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:f}=NM({...n,velocity:-Je(n.velocity||0)}),g=h||0,y=u/(2*Math.sqrt(l*c)),x=o-r,p=Je(Math.sqrt(l/c)),m=Math.abs(x)<5;i||(i=m?lt.restSpeed.granular:lt.restSpeed.default),s||(s=m?lt.restDelta.granular:lt.restDelta.default);let v;if(y<1){const w=Ac(p,y);v=k=>{const P=Math.exp(-y*p*k);return o-P*((g+y*p*x)/w*Math.sin(w*k)+x*Math.cos(w*k))}}else if(y===1)v=w=>o-Math.exp(-p*w)*(x+(g+p*x)*w);else{const w=p*Math.sqrt(y*y-1);v=k=>{const P=Math.exp(-y*p*k),b=Math.min(w*k,300);return o-P*((g+y*p*x)*Math.sinh(b)+w*x*Math.cosh(b))/w}}const _={calculatedDuration:f&&d||null,next:w=>{const k=v(w);if(f)a.done=w>=d;else{let P=0;y<1&&(P=w===0?Ze(g):Ix(v,w,k));const b=Math.abs(P)<=i,T=Math.abs(o-k)<=s;a.done=b&&T}return a.value=a.done?o:k,a},toString:()=>{const w=Math.min(nx(_),Sc),k=ix(P=>_.next(w*P).value,w,30);return w+"ms "+k}};return _}function Am({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=t[0],h={done:!1,value:d},f=b=>a!==void 0&&bl,g=b=>a===void 0?l:l===void 0||Math.abs(a-b)-y*Math.exp(-b/i),v=b=>p+m(b),_=b=>{const T=m(b),E=v(b);h.done=Math.abs(T)<=u,h.value=h.done?p:E};let w,k;const P=b=>{f(h.value)&&(w=b,k=Fx({keyframes:[h.value,g(h.value)],velocity:Ix(v,b,h.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:b=>{let T=!1;return!k&&w===void 0&&(T=!0,_(b),P(b)),w!==void 0&&b>=w?k.next(b-w):(!T&&_(b),h)}}}const jM=Hr(.42,0,1,1),IM=Hr(0,0,.58,1),Vx=Hr(.42,0,.58,1),FM=t=>Array.isArray(t)&&typeof t[0]!="number",Dm={linear:Bt,easeIn:jM,easeInOut:Vx,easeOut:IM,circIn:Ph,circInOut:xx,circOut:vx,backIn:kh,backInOut:gx,backOut:mx,anticipate:yx},Rm=t=>{if(vh(t)){wc(t.length===4);const[e,n,i,s]=t;return Hr(e,n,i,s)}else if(typeof t=="string")return wc(Dm[t]!==void 0),Dm[t];return t};function VM(t,e,n){const i=[],s=n||jx,r=t.length-1;for(let o=0;oe[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=VM(e,i,s),l=a.length,u=c=>{if(o&&c1)for(;du(Fe(t[0],t[r-1],c)):u}function zM(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=mi(0,e,i);t.push(rt(n,1,s))}}function Bx(t){const e=[0];return zM(e,t.length-1),e}function BM(t,e){return t.map(n=>n*e)}function HM(t,e){return t.map(()=>e||Vx).splice(0,t.length-1)}function Fa({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=FM(i)?i.map(Rm):Rm(i),r={done:!1,value:e[0]},o=BM(n&&n.length===e.length?n:Bx(e),t),a=zx(o,e,{ease:Array.isArray(s)?s:HM(e,s)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const WM=t=>{const e=({timestamp:n})=>t(n);return{start:()=>K.update(e,!0),stop:()=>Ie(e),now:()=>_t.isProcessing?_t.timestamp:je.now()}},$M={decay:Am,inertia:Am,tween:Fa,keyframes:Fa,spring:Fx},UM=t=>t/100;class Dh extends Ox{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:s,keyframes:r}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Eh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=this.options,a=yh(n)?n:$M[n]||Fa;let l,u;a!==Fa&&typeof e[0]!="number"&&(l=Wr(UM,jx(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=nx(c));const{calculatedDuration:d}=c,h=d+s,f=h*(i+1)-s;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:b}=this.options;return{done:!0,value:b[b.length-1]}}const{finalKeyframe:s,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return r.next(0);const{delay:h,repeat:f,repeatType:g,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const p=this.currentTime-h*(this.speed>=0?1:-1),m=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,_=r;if(f){const b=Math.min(this.currentTime,c)/d;let T=Math.floor(b),E=b%1;!E&&b>=1&&(E=1),E===1&&T--,T=Math.min(T,f+1),!!(T%2)&&(g==="reverse"?(E=1-E,y&&(E-=y/d)):g==="mirror"&&(_=o)),v=Fe(0,1,E)*d}const w=m?{done:!1,value:l[0]}:_.next(v);a&&(w.value=a(w.value));let{done:k}=w;!m&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&s!==void 0&&(w.value=fl(l,this.options,s)),x&&x(w.value),P&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Je(e.calculatedDuration):0}get time(){return Je(this.currentTime)}set time(e){e=Ze(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Je(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=WM,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const KM=new Set(["opacity","clipPath","filter","transform"]);function YM(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=rx(a,s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const XM=nh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Va=10,GM=2e4;function QM(t){return yh(t.type)||t.type==="spring"||!sx(t.ease)}function qM(t,e){const n=new Dh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let r=0;for(;!i.done&&rthis.onKeyframesResolved(o,a),n,i,s),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&ja()&&ZM(r)&&(r=Hx[r]),QM(this.options)){const{onComplete:d,onUpdate:h,motionValue:f,element:g,...y}=this.options,x=qM(e,y);e=x.keyframes,e.length===1&&(e[1]=e[0]),i=x.duration,s=x.times,r=x.ease,o="keyframes"}const c=YM(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(gm(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;a.set(fl(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Je(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Je(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Ze(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Bt;const{animation:i}=n;gm(i,e)}return Bt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:s,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:h,...f}=this.options,g=new Dh({...f,keyframes:i,duration:s,type:r,ease:o,times:a,isGenerator:!0}),y=Ze(this.time);u.setWithVelocity(g.sample(y-Va).value,g.sample(y).value,Va)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:s,repeatType:r,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return XM()&&i&&KM.has(i)&&!l&&!u&&!s&&r!=="mirror"&&o!==0&&a!=="inertia"}}const JM={type:"spring",stiffness:500,damping:25,restSpeed:10},tT=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eT={type:"keyframes",duration:.8},nT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iT=(t,{keyframes:e})=>e.length>2?eT:xi.has(t)?t.startsWith("scale")?tT(e[1]):JM:nT;function sT({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Rh=(t,e,n,i={},s,r)=>o=>{const a=gh(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Ze(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};sT(a)||(c={...c,...iT(t,c)}),c.duration&&(c.duration=Ze(c.duration)),c.repeatDelay&&(c.repeatDelay=Ze(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!r&&e.get()!==void 0){const h=fl(c.keyframes,a);if(h!==void 0)return K.update(()=>{c.onUpdate(h),c.onComplete()}),new MC([])}return!r&&Lm.supports(c)?new Lm(c):new Dh(c)};function rT({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Wx(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(o=i);const u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(const d in l){const h=t.getValue(d,(r=t.latestValues[d])!==null&&r!==void 0?r:null),f=l[d];if(f===void 0||c&&rT(c,d))continue;const g={delay:n,...gh(o||{},d)};let y=!1;if(window.MotionHandoffAnimation){const p=dx(t);if(p){const m=window.MotionHandoffAnimation(p,d,K);m!==null&&(g.startTime=m,y=!0)}}kc(t,d),h.start(Rh(d,h,f,t.shouldReduceMotion&&cx.has(d)?{type:!1}:g,t,y));const x=h.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{K.update(()=>{a&&zC(t,a)})}),u}function Dc(t,e,n={}){var i;const s=hl(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(Wx(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:h}=r;return oT(t,e,c+u,d,h,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function oT(t,e,n=0,i=0,s=1,r){const o=[],a=(t.variantChildren.size-1)*i,l=s===1?(u=0)=>u*i:(u=0)=>a-u*i;return Array.from(t.variantChildren).sort(aT).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Dc(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function aT(t,e){return t.sortNodePosition(e)}function lT(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(r=>Dc(t,r,n));i=Promise.all(s)}else if(typeof e=="string")i=Dc(t,e,n);else{const s=typeof e=="function"?hl(t,e,n.custom):e;i=Promise.all(Wx(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const uT=sh.length;function $x(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?$x(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:i})=>lT(t,n,i)))}function fT(t){let e=hT(t),n=Om(),i=!0;const s=l=>(u,c)=>{var d;const h=hl(t,c,l==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:f,transitionEnd:g,...y}=h;u={...u,...y,...g}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=$x(t.parent)||{},d=[],h=new Set;let f={},g=1/0;for(let x=0;xg&&_,T=!1;const E=Array.isArray(v)?v:[v];let O=E.reduce(s(p),{});w===!1&&(O={});const{prevResolvedValues:I={}}=m,Z={...I,...O},gt=F=>{b=!0,h.has(F)&&(T=!0,h.delete(F)),m.needsAnimating[F]=!0;const A=t.getValue(F);A&&(A.liveStyle=!1)};for(const F in Z){const A=O[F],L=I[F];if(f.hasOwnProperty(F))continue;let j=!1;_c(A)&&_c(L)?j=!tx(A,L):j=A!==L,j?A!=null?gt(F):h.add(F):A!==void 0&&h.has(F)?gt(F):m.protectedKeys[F]=!0}m.prevProp=v,m.prevResolvedValues=O,m.isActive&&(f={...f,...O}),i&&t.blockInitialAnimation&&(b=!1),b&&(!(k&&P)||T)&&d.push(...E.map(F=>({animation:F,options:{type:p}})))}if(h.size){const x={};h.forEach(p=>{const m=t.getBaseTarget(p),v=t.getValue(p);v&&(v.liveStyle=!0),x[p]=m??null}),d.push({animation:x})}let y=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,y?e(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(h=>{var f;return(f=h.animationState)===null||f===void 0?void 0:f.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Om(),i=!0}}}function pT(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!tx(e,t):!1}function $n(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Om(){return{animate:$n(!0),whileInView:$n(),whileHover:$n(),whileTap:$n(),whileDrag:$n(),whileFocus:$n(),exit:$n()}}class Vn{constructor(e){this.isMounted=!1,this.node=e}update(){}}class mT extends Vn{constructor(e){super(e),e.animationState||(e.animationState=fT(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();cl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let gT=0;class yT extends Vn{constructor(){super(...arguments),this.id=gT++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const vT={animation:{Feature:mT},exit:{Feature:yT}};function Lr(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function $r(t){return{point:{x:t.pageX,y:t.pageY}}}const xT=t=>e=>xh(e)&&t(e,$r(e));function tr(t,e,n,i){return Lr(t,e,xT(n),i)}const Nm=(t,e)=>Math.abs(t-e);function wT(t,e){const n=Nm(t.x,e.x),i=Nm(t.y,e.y);return Math.sqrt(n**2+i**2)}class Ux{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=ou(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,f=wT(d.offset,{x:0,y:0})>=3;if(!h&&!f)return;const{point:g}=d,{timestamp:y}=_t;this.history.push({...g,timestamp:y});const{onStart:x,onMove:p}=this.handlers;h||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ru(h,this.transformPagePoint),K.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:f,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=ou(d.type==="pointercancel"?this.lastMoveEventInfo:ru(h,this.transformPagePoint),this.history);this.startEvent&&f&&f(d,x),g&&g(d,x)},!xh(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const o=$r(e),a=ru(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=_t;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ou(a,this.history)),this.removeListeners=Wr(tr(this.contextWindow,"pointermove",this.handlePointerMove),tr(this.contextWindow,"pointerup",this.handlePointerUp),tr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ie(this.updatePoint)}}function ru(t,e){return e?{point:e(t.point)}:t}function jm(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ou({point:t},e){return{point:t,delta:jm(t,Kx(e)),offset:jm(t,_T(e)),velocity:ST(e,.1)}}function _T(t){return t[0]}function Kx(t){return t[t.length-1]}function ST(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Kx(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>Ze(e)));)n--;if(!i)return{x:0,y:0};const r=Je(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Yx=1e-4,bT=1-Yx,kT=1+Yx,Xx=.01,PT=0-Xx,CT=0+Xx;function ne(t){return t.max-t.min}function MT(t,e,n){return Math.abs(t-e)<=n}function Im(t,e,n,i=.5){t.origin=i,t.originPoint=rt(e.min,e.max,t.origin),t.scale=ne(n)/ne(e),t.translate=rt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=bT&&t.scale<=kT||isNaN(t.scale))&&(t.scale=1),(t.translate>=PT&&t.translate<=CT||isNaN(t.translate))&&(t.translate=0)}function er(t,e,n,i){Im(t.x,e.x,n.x,i?i.originX:void 0),Im(t.y,e.y,n.y,i?i.originY:void 0)}function Fm(t,e,n){t.min=n.min+e.min,t.max=t.min+ne(e)}function TT(t,e,n){Fm(t.x,e.x,n.x),Fm(t.y,e.y,n.y)}function Vm(t,e,n){t.min=e.min-n.min,t.max=t.min+ne(e)}function nr(t,e,n){Vm(t.x,e.x,n.x),Vm(t.y,e.y,n.y)}function ET(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?rt(n,t,i.max):Math.min(t,n)),t}function zm(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function AT(t,{top:e,left:n,bottom:i,right:s}){return{x:zm(t.x,n,s),y:zm(t.y,e,i)}}function Bm(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=mi(e.min,e.max-i,t.min):i>s&&(n=mi(t.min,t.max-s,e.min)),Fe(0,1,n)}function LT(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Rc=.35;function OT(t=Rc){return t===!1?t=0:t===!0&&(t=Rc),{x:Hm(t,"left","right"),y:Hm(t,"top","bottom")}}function Hm(t,e,n){return{min:Wm(t,e),max:Wm(t,n)}}function Wm(t,e){return typeof t=="number"?t:t[e]||0}const $m=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fi=()=>({x:$m(),y:$m()}),Um=()=>({min:0,max:0}),ht=()=>({x:Um(),y:Um()});function ae(t){return[t("x"),t("y")]}function Gx({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function NT({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function jT(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function au(t){return t===void 0||t===1}function Lc({scale:t,scaleX:e,scaleY:n}){return!au(t)||!au(e)||!au(n)}function Gn(t){return Lc(t)||Qx(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qx(t){return Km(t.x)||Km(t.y)}function Km(t){return t&&t!=="0%"}function za(t,e,n){const i=t-n,s=e*i;return n+s}function Ym(t,e,n,i,s){return s!==void 0&&(t=za(t,s,i)),za(t,n,i)+e}function Oc(t,e=0,n=1,i,s){t.min=Ym(t.min,e,n,i,s),t.max=Ym(t.max,e,n,i,s)}function qx(t,{x:e,y:n}){Oc(t.x,e.translate,e.scale,e.originPoint),Oc(t.y,n.translate,n.scale,n.originPoint)}const Xm=.999999999999,Gm=1.0000000000001;function IT(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let r,o;for(let a=0;aXm&&(e.x=1),e.yXm&&(e.y=1)}function Vi(t,e){t.min=t.min+e,t.max=t.max+e}function Qm(t,e,n,i,s=.5){const r=rt(t.min,t.max,s);Oc(t,e,n,r,i)}function zi(t,e){Qm(t.x,e.x,e.scaleX,e.scale,e.originX),Qm(t.y,e.y,e.scaleY,e.scale,e.originY)}function Zx(t,e){return Gx(jT(t.getBoundingClientRect(),e))}function FT(t,e,n){const i=Zx(t,n),{scroll:s}=e;return s&&(Vi(i.x,s.offset.x),Vi(i.y,s.offset.y)),i}const Jx=({current:t})=>t?t.ownerDocument.defaultView:null,VT=new WeakMap;class zT{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ht(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor($r(c).point)},r=(c,d)=>{const{drag:h,dragPropagation:f,onDragStart:g}=this.getProps();if(h&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=NC(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ae(x=>{let p=this.getAxisMotionValue(x).get()||0;if(Ne.test(p)){const{projection:m}=this.visualElement;if(m&&m.layout){const v=m.layout.layoutBox[x];v&&(p=ne(v)*(parseFloat(p)/100))}}this.originPoint[x]=p}),g&&K.postRender(()=>g(c,d)),kc(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:h,dragDirectionLock:f,onDirectionLock:g,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:x}=d;if(f&&this.currentDirection===null){this.currentDirection=BT(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>ae(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ux(e,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Jx(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&K.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!To(e,s,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=ET(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&ji(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=AT(s.layoutBox,n):this.constraints=!1,this.elastic=OT(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ae(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=LT(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ji(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const r=FT(i,s.root,this.visualElement.getTransformPagePoint());let o=DT(s.layout.layoutBox,r);if(n){const a=n(NT(o));this.hasMutatedConstraints=!!a,a&&(o=Gx(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ae(c=>{if(!To(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,g={type:"inertia",velocity:i?e[c]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return kc(this.visualElement,e),i.start(Rh(e,i,0,n,this.visualElement,!1))}stopAnimation(){ae(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ae(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){ae(n=>{const{drag:i}=this.getProps();if(!To(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];r.set(e[n]-rt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ji(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ae(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=RT({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ae(o=>{if(!To(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(rt(l,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;VT.set(this.visualElement,this);const e=this.visualElement.current,n=tr(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();ji(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,r=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),K.read(i);const o=Lr(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ae(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=Rc,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function To(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function BT(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class HT extends Vn{constructor(e){super(e),this.removeGroupControls=Bt,this.removeListeners=Bt,this.controls=new zT(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const qm=t=>(e,n)=>{t&&K.postRender(()=>t(e,n))};class WT extends Vn{constructor(){super(...arguments),this.removePointerDownListener=Bt}onPointerDown(e){this.session=new Ux(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jx(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:qm(e),onStart:qm(n),onMove:i,onEnd:(r,o)=>{delete this.session,s&&K.postRender(()=>s(r,o))}}}mount(){this.removePointerDownListener=tr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zm(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ps={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(N.test(t))t=parseFloat(t);else return t;const n=Zm(t,e.target.x),i=Zm(t,e.target.y);return`${n}% ${i}%`}},$T={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=Nn.parse(t);if(s.length>5)return i;const r=Nn.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const u=rt(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),r(s)}};class UT extends C.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;gC(KT),r&&(n.group&&n.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Zo.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:r}=this.props,o=i.projection;return o&&(o.isPresent=r,s||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||K.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),oh.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function t1(t){const[e,n]=Nv(),i=C.useContext(Zd);return S.jsx(UT,{...t,layoutGroup:i,switchLayoutGroup:C.useContext(Bv),isPresent:e,safeToRemove:n})}const KT={borderRadius:{...Ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ps,borderTopRightRadius:Ps,borderBottomLeftRadius:Ps,borderBottomRightRadius:Ps,boxShadow:$T};function YT(t,e,n){const i=Ot(t)?t:Qe(t);return i.start(Rh("",i,e,n)),i.animation}function XT(t){return t instanceof SVGElement&&t.tagName!=="svg"}const GT=(t,e)=>t.depth-e.depth;class QT{constructor(){this.children=[],this.isDirty=!1}add(e){wh(this.children,e),this.isDirty=!0}remove(e){_h(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(GT),this.isDirty=!1,this.children.forEach(e)}}function qT(t,e){const n=je.now(),i=({timestamp:s})=>{const r=s-n;r>=e&&(Ie(i),t(r-e))};return K.read(i,!0),()=>Ie(i)}const e1=["TopLeft","TopRight","BottomLeft","BottomRight"],ZT=e1.length,Jm=t=>typeof t=="string"?parseFloat(t):t,tg=t=>typeof t=="number"||N.test(t);function JT(t,e,n,i,s,r){s?(t.opacity=rt(0,n.opacity!==void 0?n.opacity:1,tE(i)),t.opacityExit=rt(e.opacity!==void 0?e.opacity:1,0,eE(i))):r&&(t.opacity=rt(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;oie?1:n(mi(t,e,i))}function ng(t,e){t.min=e.min,t.max=e.max}function oe(t,e){ng(t.x,e.x),ng(t.y,e.y)}function ig(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sg(t,e,n,i,s){return t-=e,t=za(t,1/n,i),s!==void 0&&(t=za(t,1/s,i)),t}function nE(t,e=0,n=1,i=.5,s,r=t,o=t){if(Ne.test(e)&&(e=parseFloat(e),e=rt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=rt(r.min,r.max,i);t===r&&(a-=e),t.min=sg(t.min,e,n,a,s),t.max=sg(t.max,e,n,a,s)}function rg(t,e,[n,i,s],r,o){nE(t,e[n],e[i],e[s],e.scale,r,o)}const iE=["x","scaleX","originX"],sE=["y","scaleY","originY"];function og(t,e,n,i){rg(t.x,e,iE,n?n.x:void 0,i?i.x:void 0),rg(t.y,e,sE,n?n.y:void 0,i?i.y:void 0)}function ag(t){return t.translate===0&&t.scale===1}function i1(t){return ag(t.x)&&ag(t.y)}function lg(t,e){return t.min===e.min&&t.max===e.max}function rE(t,e){return lg(t.x,e.x)&&lg(t.y,e.y)}function ug(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function s1(t,e){return ug(t.x,e.x)&&ug(t.y,e.y)}function cg(t){return ne(t.x)/ne(t.y)}function dg(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class oE{constructor(){this.members=[]}add(e){wh(this.members,e),e.scheduleRender()}remove(e){if(_h(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const r=this.members[s];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aE(t,e,n){let i="";const s=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:h,skewX:f,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),h&&(i+=`rotateY(${h}deg) `),f&&(i+=`skewX(${f}deg) `),g&&(i+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const Qn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vs=typeof window<"u"&&window.MotionDebug!==void 0,lu=["","X","Y","Z"],lE={visibility:"hidden"},hg=1e3;let uE=0;function uu(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function r1(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=dx(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",K,!(s||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&r1(i)}function o1({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=e==null?void 0:e()){this.id=uE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vs&&(Qn.totalNodes=Qn.resolvedTargetDeltas=Qn.recalculatedProjection=0),this.nodes.forEach(hE),this.nodes.forEach(yE),this.nodes.forEach(vE),this.nodes.forEach(fE),Vs&&window.MotionDebug.record(Qn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=qT(h,250),Zo.hasAnimatedSinceResize&&(Zo.hasAnimatedSinceResize=!1,this.nodes.forEach(pg))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:f,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||bE,{onLayoutAnimationStart:x,onLayoutAnimationComplete:p}=c.getProps(),m=!this.targetLayout||!s1(this.targetLayout,g)||f,v=!h&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const _={...gh(y,"layout"),onPlay:x,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else h||pg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ie(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xE),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&r1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const w=_/1e3;mg(d.x,o.x,w),mg(d.y,o.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_E(this.relativeTarget,this.relativeTargetOrigin,h,w),v&&rE(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ht()),oe(v,this.relativeTarget)),y&&(this.animationValues=c,JT(c,u,this.latestValues,w,m,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ie(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.update(()=>{Zo.hasAnimatedSinceResize=!0,this.currentAnimation=YT(0,hg,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&a1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ht();const d=ne(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=ne(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}oe(a,l),zi(a,c),er(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oE),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&uu("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(fg),this.root.sharedNodes.clear()}}}function cE(t){t.updateLayout()}function dE(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?ae(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],f=ne(h);h.min=i[d].min,h.max=h.min+f}):a1(r,n.layoutBox,i)&&ae(d=>{const h=o?n.measuredBox[d]:n.layoutBox[d],f=ne(i[d]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+f)});const a=Fi();er(a,i,n.layoutBox);const l=Fi();o?er(l,t.applyTransform(s,!0),n.measuredBox):er(l,i,n.layoutBox);const u=!i1(a);let c=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:f}=d;if(h&&f){const g=ht();nr(g,n.layoutBox,h.layoutBox);const y=ht();nr(y,i,f.layoutBox),s1(g,y)||(c=!0),d.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function hE(t){Vs&&Qn.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function fE(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function pE(t){t.clearSnapshot()}function fg(t){t.clearMeasurements()}function mE(t){t.isLayoutDirty=!1}function gE(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function pg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function yE(t){t.resolveTargetDelta()}function vE(t){t.calcProjection()}function xE(t){t.resetSkewAndRotation()}function wE(t){t.removeLeadSnapshot()}function mg(t,e,n){t.translate=rt(e.translate,0,n),t.scale=rt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function gg(t,e,n,i){t.min=rt(e.min,n.min,i),t.max=rt(e.max,n.max,i)}function _E(t,e,n,i){gg(t.x,e.x,n.x,i),gg(t.y,e.y,n.y,i)}function SE(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bE={duration:.45,ease:[.4,0,.1,1]},yg=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vg=yg("applewebkit/")&&!yg("chrome/")?Math.round:Bt;function xg(t){t.min=vg(t.min),t.max=vg(t.max)}function kE(t){xg(t.x),xg(t.y)}function a1(t,e,n){return t==="position"||t==="preserve-aspect"&&!MT(cg(e),cg(n),.2)}function PE(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const CE=o1({attachResizeListener:(t,e)=>Lr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cu={current:void 0},l1=o1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!cu.current){const t=new CE({});t.mount(window),t.setOptions({layoutScroll:!0}),cu.current=t}return cu.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ME={pan:{Feature:WT},drag:{Feature:HT,ProjectionNode:l1,MeasureLayout:t1}};function wg(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,r=i[s];r&&K.postRender(()=>r(e,$r(e)))}class TE extends Vn{mount(){const{current:e}=this.node;e&&(this.unmount=AC(e,n=>(wg(this.node,n,"Start"),i=>wg(this.node,i,"End"))))}unmount(){}}class EE extends Vn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wr(Lr(this.node.current,"focus",()=>this.onFocus()),Lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _g(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),r=i[s];r&&K.postRender(()=>r(e,$r(e)))}class AE extends Vn{mount(){const{current:e}=this.node;e&&(this.unmount=OC(e,n=>(_g(this.node,n,"Start"),(i,{success:s})=>_g(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Nc=new WeakMap,du=new WeakMap,DE=t=>{const e=Nc.get(t.target);e&&e(t)},RE=t=>{t.forEach(DE)};function LE({root:t,...e}){const n=t||document;du.has(n)||du.set(n,{});const i=du.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(RE,{root:t,...e})),i[s]}function OE(t,e,n){const i=LE(e);return Nc.set(t,n),i.observe(t),()=>{Nc.delete(t),i.unobserve(t)}}const NE={some:0,all:1};class jE extends Vn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:NE[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),h=u?c:d;h&&h(l)};return OE(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(IE(e,n))&&this.startObserver()}unmount(){}}function IE({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const FE={inView:{Feature:jE},tap:{Feature:AE},focus:{Feature:EE},hover:{Feature:TE}},VE={layout:{ProjectionNode:l1,MeasureLayout:t1}},jc={current:null},u1={current:!1};function zE(){if(u1.current=!0,!!th)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>jc.current=t.matches;t.addListener(e),e()}else jc.current=!1}const BE=[...Rx,At,Nn],HE=t=>BE.find(Dx(t)),Sg=new WeakMap;function WE(t,e,n){for(const i in e){const s=e[i],r=n[i];if(Ot(s))t.addValue(i,s);else if(Ot(r))t.addValue(i,Qe(s,{owner:t}));else if(r!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,Qe(o!==void 0?o:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const bg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $E{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=je.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),u1.current||zE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Sg.delete(this.current),this.projection&&this.projection.unmount(),Ie(this.notifyUpdate),Ie(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=xi.has(e),s=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&K.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ss){const n=ss[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Qe(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Ex(s)||wx(s))?s=parseFloat(s):!HE(s)&&Nn.test(n)&&(s=Cx(e,n)),this.setBaseTarget(e,Ot(s)?s.get():s)),Ot(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=lh(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[e])}if(i&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Ot(r)?r:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class c1 extends $E{constructor(){super(...arguments),this.KeyframeResolver=Lx}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ot(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function UE(t){return window.getComputedStyle(t)}class KE extends c1{constructor(){super(...arguments),this.type="html",this.renderInstance=Xv}readValueFromInstance(e,n){if(xi.has(n)){const i=Th(n);return i&&i.default||0}else{const i=UE(e),s=(Uv(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Zx(e,n)}build(e,n,i){dh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return mh(e,n,i)}}class YE extends c1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(xi.has(n)){const i=Th(n);return i&&i.default||0}return n=Gv.has(n)?n:rh(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Zv(e,n,i)}build(e,n,i){hh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,s){Qv(e,n,i,s)}mount(e){this.isSVGTag=ph(e.tagName),super.mount(e)}}const XE=(t,e)=>ah(t)?new YE(e):new KE(e,{allowProjection:t!==C.Fragment}),GE=PC({...vT,...FE,...ME,...VE},XE),B=zP(GE);function QE(t,e,n){C.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function d1(t,e){let n;const i=()=>{const{currentTime:s}=e,o=(s===null?0:s.value)/100;n!==o&&t(o),n=o};return K.update(i,!0),()=>Ie(i)}const Jo=new WeakMap;let hn;function qE(t,e){if(e){const{inlineSize:n,blockSize:i}=e[0];return{width:n,height:i}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function ZE({target:t,contentRect:e,borderBoxSize:n}){var i;(i=Jo.get(t))===null||i===void 0||i.forEach(s=>{s({target:t,contentSize:e,get size(){return qE(t,n)}})})}function JE(t){t.forEach(ZE)}function tA(){typeof ResizeObserver>"u"||(hn=new ResizeObserver(JE))}function eA(t,e){hn||tA();const n=ax(t);return n.forEach(i=>{let s=Jo.get(i);s||(s=new Set,Jo.set(i,s)),s.add(e),hn==null||hn.observe(i)}),()=>{n.forEach(i=>{const s=Jo.get(i);s==null||s.delete(e),s!=null&&s.size||hn==null||hn.unobserve(i)})}}const ta=new Set;let ir;function nA(){ir=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};ta.forEach(n=>n(e))},window.addEventListener("resize",ir)}function iA(t){return ta.add(t),ir||nA(),()=>{ta.delete(t),!ta.size&&ir&&(ir=void 0)}}function sA(t,e){return typeof t=="function"?iA(t):eA(t,e)}const rA=50,kg=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),oA=()=>({time:0,x:kg(),y:kg()}),aA={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Pg(t,e,n,i){const s=n[e],{length:r,position:o}=aA[e],a=s.current,l=n.time;s.current=t[`scroll${o}`],s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=mi(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>rA?0:bh(s.current-a,u)}function lA(t,e,n){Pg(t,"x",e,n),Pg(t,"y",e,n),e.time=n}function uA(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const r=i.getBoundingClientRect();n.x+=s.left-r.left,n.y+=s.top-r.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:r}=i.getBBox();n.x+=s,n.y+=r;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const Ic={start:0,center:.5,end:1};function Cg(t,e,n=0){let i=0;if(t in Ic&&(t=Ic[t]),typeof t=="string"){const s=parseFloat(t);t.endsWith("px")?i=s:t.endsWith("%")?t=s/100:t.endsWith("vw")?i=s/100*document.documentElement.clientWidth:t.endsWith("vh")?i=s/100*document.documentElement.clientHeight:t=s}return typeof t=="number"&&(i=e*t),n+i}const cA=[0,0];function dA(t,e,n,i){let s=Array.isArray(t)?t:cA,r=0,o=0;return typeof t=="number"?s=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?s=t.split(" "):s=[t,Ic[t]?t:"0"]),r=Cg(s[0],n,i),o=Cg(s[1],e),r-o}const hA={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},fA={x:0,y:0};function pA(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function mA(t,e,n){const{offset:i=hA.All}=n,{target:s=t,axis:r="y"}=n,o=r==="y"?"height":"width",a=s!==t?uA(s,t):fA,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:pA(s),u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let c=!e[r].interpolate;const d=i.length;for(let h=0;hgA(t,i.target,n),update:s=>{lA(t,n,s),(i.offset||i.target)&&mA(t,n,i)},notify:()=>e(n)}}const Cs=new WeakMap,Mg=new WeakMap,hu=new WeakMap,Tg=t=>t===document.documentElement?window:t;function Lh(t,{container:e=document.documentElement,...n}={}){let i=hu.get(e);i||(i=new Set,hu.set(e,i));const s=oA(),r=yA(e,t,s,n);if(i.add(r),!Cs.has(e)){const a=()=>{for(const h of i)h.measure()},l=()=>{for(const h of i)h.update(_t.timestamp)},u=()=>{for(const h of i)h.notify()},c=()=>{K.read(a,!1,!0),K.read(l,!1,!0),K.update(u,!1,!0)};Cs.set(e,c);const d=Tg(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&Mg.set(e,sA(e,c)),d.addEventListener("scroll",c,{passive:!0})}const o=Cs.get(e);return K.read(o,!1,!0),()=>{var a;Ie(o);const l=hu.get(e);if(!l||(l.delete(r),l.size))return;const u=Cs.get(e);Cs.delete(e),u&&(Tg(e).removeEventListener("scroll",u),(a=Mg.get(e))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function vA({source:t,container:e,axis:n="y"}){t&&(e=t);const i={value:0},s=Lh(r=>{i.value=r[n].progress*100},{container:e,axis:n});return{currentTime:i,cancel:s}}const fu=new Map;function h1({source:t,container:e=document.documentElement,axis:n="y"}={}){t&&(e=t),fu.has(e)||fu.set(e,{});const i=fu.get(e);return i[n]||(i[n]=ex()?new ScrollTimeline({source:e,axis:n}):vA({source:e,axis:n})),i[n]}function xA(t){return t.length===2}function f1(t){return t&&(t.target||t.offset)}function wA(t,e){return xA(t)||f1(e)?Lh(n=>{t(n[e.axis].progress,n)},e):d1(t,h1(e))}function _A(t,e){if(t.flatten(),f1(e))return t.pause(),Lh(n=>{t.time=t.duration*n[e.axis].progress},e);{const n=h1(e);return t.attachTimeline?t.attachTimeline(n,i=>(i.pause(),d1(s=>{i.time=i.duration*s},n))):Bt}}function SA(t,{axis:e="y",...n}={}){const i={axis:e,...n};return typeof t=="function"?wA(t,i):_A(t,i)}function Eg(t,e){RP(!!(!e||e.current))}const bA=()=>({scrollX:Qe(0),scrollY:Qe(0),scrollXProgress:Qe(0),scrollYProgress:Qe(0)});function kA({container:t,target:e,layoutEffect:n=!0,...i}={}){const s=al(bA);return(n?eh:C.useEffect)(()=>(Eg("target",e),Eg("container",t),SA((o,{x:a,y:l})=>{s.scrollX.set(a.current),s.scrollXProgress.set(a.progress),s.scrollY.set(l.current),s.scrollYProgress.set(l.progress)},{...i,container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0})),[t,e,JSON.stringify(i.offset)]),s}let PA={data:""},CA=t=>typeof window=="object"?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||PA,MA=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,TA=/\/\*[^]*?\*\/| +/g,Ag=/\n+/g,yn=(t,e)=>{let n="",i="",s="";for(let r in t){let o=t[r];r[0]=="@"?r[1]=="i"?n=r+" "+o+";":i+=r[1]=="f"?yn(o,r):r+"{"+yn(o,r[1]=="k"?"":e)+"}":typeof o=="object"?i+=yn(o,e?e.replace(/([^,])+/g,a=>r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):r):o!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=yn.p?yn.p(r,o):r+":"+o+";")}return n+(e&&s?e+"{"+s+"}":s)+i},Be={},p1=t=>{if(typeof t=="object"){let e="";for(let n in t)e+=n+p1(t[n]);return e}return t},EA=(t,e,n,i,s)=>{let r=p1(t),o=Be[r]||(Be[r]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(r));if(!Be[o]){let l=r!==t?t:(u=>{let c,d,h=[{}];for(;c=MA.exec(u.replace(TA,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Ag," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Ag," ").trim();return h[0]})(t);Be[o]=yn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Be.g?Be.g:null;return n&&(Be.g=Be[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Be[o],e,i,a),o},AA=(t,e,n)=>t.reduce((i,s,r)=>{let o=e[r];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":yn(a,""):a===!1?"":a}return i+s+(o??"")},"");function pl(t){let e=this||{},n=t.call?t(e.p):t;return EA(n.unshift?n.raw?AA(n,[].slice.call(arguments,1),e.p):n.reduce((i,s)=>Object.assign(i,s&&s.call?s(e.p):s),{}):n,CA(e.target),e.g,e.o,e.k)}let m1,Fc,Vc;pl.bind({g:1});let rn=pl.bind({k:1});function DA(t,e,n,i){yn.p=e,m1=t,Fc=n,Vc=i}function zn(t,e){let n=this||{};return function(){let i=arguments;function s(r,o){let a=Object.assign({},r),l=a.className||s.className;n.p=Object.assign({theme:Fc&&Fc()},a),n.o=/ *go\d+/.test(l),a.className=pl.apply(n,i)+(l?" "+l:"");let u=t;return t[0]&&(u=a.as||t,delete a.as),Vc&&u[0]&&Vc(a),m1(u,a)}return s}}var RA=t=>typeof t=="function",Ba=(t,e)=>RA(t)?t(e):t,LA=(()=>{let t=0;return()=>(++t).toString()})(),g1=(()=>{let t;return()=>{if(t===void 0&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),OA=20,y1=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,OA)};case 1:return{...t,toasts:t.toasts.map(r=>r.id===e.toast.id?{...r,...e.toast}:r)};case 2:let{toast:n}=e;return y1(t,{type:t.toasts.find(r=>r.id===n.id)?1:0,toast:n});case 3:let{toastId:i}=e;return{...t,toasts:t.toasts.map(r=>r.id===i||i===void 0?{...r,dismissed:!0,visible:!1}:r)};case 4:return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(r=>r.id!==e.toastId)};case 5:return{...t,pausedAt:e.time};case 6:let s=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map(r=>({...r,pauseDuration:r.pauseDuration+s}))}}},ea=[],ni={toasts:[],pausedAt:void 0},wi=t=>{ni=y1(ni,t),ea.forEach(e=>{e(ni)})},NA={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},jA=(t={})=>{let[e,n]=C.useState(ni),i=C.useRef(ni);C.useEffect(()=>(i.current!==ni&&n(ni),ea.push(n),()=>{let r=ea.indexOf(n);r>-1&&ea.splice(r,1)}),[]);let s=e.toasts.map(r=>{var o,a,l;return{...t,...t[r.type],...r,removeDelay:r.removeDelay||((o=t[r.type])==null?void 0:o.removeDelay)||(t==null?void 0:t.removeDelay),duration:r.duration||((a=t[r.type])==null?void 0:a.duration)||(t==null?void 0:t.duration)||NA[r.type],style:{...t.style,...(l=t[r.type])==null?void 0:l.style,...r.style}}});return{...e,toasts:s}},IA=(t,e="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(n==null?void 0:n.id)||LA()}),Ur=t=>(e,n)=>{let i=IA(e,t,n);return wi({type:2,toast:i}),i.id},Vt=(t,e)=>Ur("blank")(t,e);Vt.error=Ur("error");Vt.success=Ur("success");Vt.loading=Ur("loading");Vt.custom=Ur("custom");Vt.dismiss=t=>{wi({type:3,toastId:t})};Vt.remove=t=>wi({type:4,toastId:t});Vt.promise=(t,e,n)=>{let i=Vt.loading(e.loading,{...n,...n==null?void 0:n.loading});return typeof t=="function"&&(t=t()),t.then(s=>{let r=e.success?Ba(e.success,s):void 0;return r?Vt.success(r,{id:i,...n,...n==null?void 0:n.success}):Vt.dismiss(i),s}).catch(s=>{let r=e.error?Ba(e.error,s):void 0;r?Vt.error(r,{id:i,...n,...n==null?void 0:n.error}):Vt.dismiss(i)}),t};var FA=(t,e)=>{wi({type:1,toast:{id:t,height:e}})},VA=()=>{wi({type:5,time:Date.now()})},sr=new Map,zA=1e3,BA=(t,e=zA)=>{if(sr.has(t))return;let n=setTimeout(()=>{sr.delete(t),wi({type:4,toastId:t})},e);sr.set(t,n)},HA=t=>{let{toasts:e,pausedAt:n}=jA(t);C.useEffect(()=>{if(n)return;let r=Date.now(),o=e.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(r-a.createdAt);if(l<0){a.visible&&Vt.dismiss(a.id);return}return setTimeout(()=>Vt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[e,n]);let i=C.useCallback(()=>{n&&wi({type:6,time:Date.now()})},[n]),s=C.useCallback((r,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=e.filter(f=>(f.position||u)===(r.position||u)&&f.height),d=c.findIndex(f=>f.id===r.id),h=c.filter((f,g)=>gf.visible).slice(...a?[h+1]:[0,h]).reduce((f,g)=>f+(g.height||0)+l,0)},[e]);return C.useEffect(()=>{e.forEach(r=>{if(r.dismissed)BA(r.id,r.removeDelay);else{let o=sr.get(r.id);o&&(clearTimeout(o),sr.delete(r.id))}})},[e]),{toasts:e,handlers:{updateHeight:FA,startPause:VA,endPause:i,calculateOffset:s}}},WA=rn` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,$A=rn` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,UA=rn` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,KA=zn("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${t=>t.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${WA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${$A} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${t=>t.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${UA} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,YA=rn` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,XA=zn("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${t=>t.secondary||"#e0e0e0"}; + border-right-color: ${t=>t.primary||"#616161"}; + animation: ${YA} 1s linear infinite; +`,GA=rn` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,QA=rn` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,qA=zn("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${t=>t.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${GA} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${QA} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${t=>t.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,ZA=zn("div")` + position: absolute; +`,JA=zn("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,tD=rn` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,eD=zn("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${tD} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,nD=({toast:t})=>{let{icon:e,type:n,iconTheme:i}=t;return e!==void 0?typeof e=="string"?C.createElement(eD,null,e):e:n==="blank"?null:C.createElement(JA,null,C.createElement(XA,{...i}),n!=="loading"&&C.createElement(ZA,null,n==="error"?C.createElement(KA,{...i}):C.createElement(qA,{...i})))},iD=t=>` +0% {transform: translate3d(0,${t*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,sD=t=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${t*-150}%,-1px) scale(.6); opacity:0;} +`,rD="0%{opacity:0;} 100%{opacity:1;}",oD="0%{opacity:1;} 100%{opacity:0;}",aD=zn("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,lD=zn("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,uD=(t,e)=>{let n=t.includes("top")?1:-1,[i,s]=g1()?[rD,oD]:[iD(n),sD(n)];return{animation:e?`${rn(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${rn(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},cD=C.memo(({toast:t,position:e,style:n,children:i})=>{let s=t.height?uD(t.position||e||"top-center",t.visible):{opacity:0},r=C.createElement(nD,{toast:t}),o=C.createElement(lD,{...t.ariaProps},Ba(t.message,t));return C.createElement(aD,{className:t.className,style:{...s,...n,...t.style}},typeof i=="function"?i({icon:r,message:o}):C.createElement(C.Fragment,null,r,o))});DA(C.createElement);var dD=({id:t,className:e,style:n,onHeightUpdate:i,children:s})=>{let r=C.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;i(t,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[t,i]);return C.createElement("div",{ref:r,className:e,style:n},s)},hD=(t,e)=>{let n=t.includes("top"),i=n?{top:0}:{bottom:0},s=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:g1()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...i,...s}},fD=pl` + z-index: 9999; + > * { + pointer-events: auto; + } +`,Eo=16,pD=({reverseOrder:t,position:e="top-center",toastOptions:n,gutter:i,children:s,containerStyle:r,containerClassName:o})=>{let{toasts:a,handlers:l}=HA(n);return C.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Eo,left:Eo,right:Eo,bottom:Eo,pointerEvents:"none",...r},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||e,d=l.calculateOffset(u,{reverseOrder:t,gutter:i,defaultPosition:e}),h=hD(c,d);return C.createElement(dD,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?fD:"",style:h},u.type==="custom"?Ba(u.message,u):s?s(u):C.createElement(cD,{toast:u,position:c}))}))},Ao=Vt;rl.register(vc,xc,Xo,Ns,Go,Os,sP,hP,nP);const mD={en:{hero:{title:"Next Generation Cloud Storage",subtitle:"Secure, Fast, and Reliable",cta:"Get Started"},features:{storage:"2TB Storage",speed:"Up to 1Gb/s",servers:"European Servers",access:"Global Access"},interface:{title:"Powerful File Management",subtitle:"Intuitive Interface & Desktop App",features:{sync:"Real-time synchronization",share:"Easy file sharing",organize:"Smart organization",desktop:"Native desktop app"}},status:{title:"Server Status",uptime:"Uptime"},comparison:{title:"Why Choose Us",speed:"Speed Comparison",reliability:"Reliability Score"},stats:{title:"Platform Statistics",users:"Active Users",files:"Files Stored",bandwidth:"Daily Bandwidth"},auth:{login:"Login",register:"Register",email:"Email",password:"Password",phone:"Phone",invite:"Invite Code"},chat:{waiting:"All operators are currently busy. Please wait for the next available operator."}},fr:{hero:{title:"Stockage Cloud Nouvelle Génération",subtitle:"Sécurisé, Rapide et Fiable",cta:"Commencer"},features:{storage:"2To de Stockage",speed:"Jusqu'à 1Gb/s",servers:"Serveurs Européens",access:"Accès Mondial"},interface:{title:"Gestion de Fichiers Puissante",subtitle:"Interface Intuitive & Application Bureau",features:{sync:"Synchronisation en temps réel",share:"Partage facile",organize:"Organisation intelligente",desktop:"Application native"}},status:{title:"État des Serveurs",uptime:"Disponibilité"},comparison:{title:"Pourquoi Nous Choisir",speed:"Comparaison de Vitesse",reliability:"Score de Fiabilité"},stats:{title:"Statistiques de la Plateforme",users:"Utilisateurs Actifs",files:"Fichiers Stockés",bandwidth:"Bande Passante Quotidienne"},auth:{login:"Connexion",register:"S'inscrire",email:"Email",password:"Mot de passe",phone:"Téléphone",invite:"Code d'invitation"},chat:{waiting:"Tous nos opérateurs sont actuellement occupés. Veuillez patienter jusqu'à ce qu'un opérateur soit disponible."}}},gD=[{city:"Frankfurt",country:"Germany",uptime:99.99},{city:"Berlin",country:"Germany",uptime:99.98},{city:"Amsterdam",country:"Netherlands",uptime:99.99},{city:"Rotterdam",country:"Netherlands",uptime:99.97}],yD=[{name:"John D.",rating:5,text:"Best cloud storage I've ever used. Lightning fast!"},{name:"Marie L.",rating:5,text:"The security features are outstanding."},{name:"Alex K.",rating:5,text:"Incredible speeds and reliable service."}],vD={labels:["Upload","Download"],datasets:[{label:"CloudStore",data:[1e3,1e3],backgroundColor:"rgba(79, 70, 229, 0.5)",borderColor:"rgb(79, 70, 229)",borderWidth:1},{label:"Others",data:[500,450],backgroundColor:"rgba(209, 213, 219, 0.5)",borderColor:"rgb(209, 213, 219)",borderWidth:1}]},xD={labels:["Uptime","Speed Consistency","Global Availability"],datasets:[{label:"CloudStore",data:[99.99,99.8,99.9],borderColor:"rgb(79, 70, 229)",backgroundColor:"rgba(79, 70, 229, 0.1)",tension:.4},{label:"Others",data:[98.5,95.2,96.8],borderColor:"rgb(209, 213, 219)",backgroundColor:"rgba(209, 213, 219, 0.1)",tension:.4}]},wD={labels:["Documents","Media","Backups"],datasets:[{data:[35,45,20],backgroundColor:["rgba(79, 70, 229, 0.8)","rgba(129, 140, 248, 0.8)","rgba(199, 210, 254, 0.8)"],borderColor:["rgb(79, 70, 229)","rgb(129, 140, 248)","rgb(199, 210, 254)"],borderWidth:1}]},pu={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"}}},_D=[{icon:Uy,value:"100K+",label:"Active Users"},{icon:ac,value:"2PB+",label:"Data Stored"},{icon:sS,value:"5TB+",label:"Daily Transfer"}],SD=[{icon:tS,title:"Intuitive Interface",description:"Modern and easy-to-use dashboard for managing your files"},{icon:eS,title:"Quick Sharing",description:"Share files and folders with just a few clicks"},{icon:Q_,title:"Smart Organization",description:"Automatic file categorization and powerful search"},{icon:Z_,title:"Desktop App",description:"Native application for Windows, macOS, and Linux"}];function bD(){const[t,e]=C.useState("en"),n=mD[t],[i,s]=C.useState(!0),[r,o]=C.useState(!0),[a,l]=C.useState(0),{scrollY:u}=kA(),[c,d]=C.useState(!1);QE(u,"change",x=>{l(x)});const h=x=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x),f=x=>/^\+[1-9]\d{1,14}$/.test(x),g=x=>{x.preventDefault();const p=x.target,m=p.email.value;if(p.password.value,!h(m)){Ao.error("Invalid email format");return}if(!i){const v=p.phone.value;if(!f(v)){Ao.error("Invalid phone format (use international format: +XXXXXXXXXXX)");return}}i?Ao.error("User not found"):Ao.error("Invalid invite code")},y={hidden:{opacity:0,y:10},visible:{opacity:[0,1,0],y:[-10,-20,-10],transition:{duration:2,repeat:1/0,repeatType:"reverse"}}};return S.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-indigo-100 to-white",children:[S.jsx(pD,{position:"top-center"}),S.jsx(B.nav,{initial:{y:-100},animate:{y:0},className:"fixed w-full bg-white/80 backdrop-blur-sm z-50",children:S.jsxs("div",{className:"container mx-auto px-6 py-4 flex justify-between items-center",children:[S.jsxs(B.div,{className:"flex items-center space-x-2",whileHover:{scale:1.05},children:[S.jsx(ac,{className:"h-8 w-8 text-indigo-600"}),S.jsx("span",{className:"text-xl font-bold",children:"CloudStore"})]}),S.jsx(B.div,{className:"flex items-center space-x-4",whileHover:{scale:1.05},children:S.jsxs("button",{onClick:()=>e(t==="en"?"fr":"en"),className:"flex items-center space-x-1 text-gray-600 hover:text-indigo-600",children:[S.jsx($f,{className:"h-5 w-5"}),S.jsx("span",{children:t.toUpperCase()}),S.jsx(G_,{className:"h-4 w-4"})]})})]})}),S.jsxs(B.section,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},className:"pt-32 pb-20 text-center relative overflow-hidden",children:[S.jsx("div",{className:"absolute inset-0 z-0",children:S.jsx("img",{src:"https://images.unsplash.com/photo-1528158830489-3ba27c0c9325?auto=format&fit=crop&w=2000&q=80",alt:"Background",className:"w-full h-full object-cover opacity-10"})}),S.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[S.jsx("h1",{className:"text-5xl font-bold text-gray-900 mb-6",children:n.hero.title}),S.jsx("p",{className:"text-xl text-gray-600 mb-8",children:n.hero.subtitle}),S.jsxs("div",{className:"flex justify-center space-x-8",children:[S.jsxs("div",{className:"flex items-center space-x-2 bg-white/80 backdrop-blur-sm p-4 rounded-lg shadow-lg",children:[S.jsx(ac,{className:"h-6 w-6 text-indigo-600"}),S.jsx("span",{children:n.features.storage})]}),S.jsxs("div",{className:"flex items-center space-x-2 bg-white/80 backdrop-blur-sm p-4 rounded-lg shadow-lg",children:[S.jsx(iS,{className:"h-6 w-6 text-indigo-600"}),S.jsx("span",{children:n.features.speed})]}),S.jsxs("div",{className:"flex items-center space-x-2 bg-white/80 backdrop-blur-sm p-4 rounded-lg shadow-lg",children:[S.jsx(Uf,{className:"h-6 w-6 text-indigo-600"}),S.jsx("span",{children:n.features.servers})]}),S.jsxs("div",{className:"flex items-center space-x-2 bg-white/80 backdrop-blur-sm p-4 rounded-lg shadow-lg",children:[S.jsx($f,{className:"h-6 w-6 text-indigo-600"}),S.jsx("span",{children:n.features.access})]})]})]})]}),S.jsxs(B.section,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"py-20 bg-gradient-to-br from-indigo-600 to-indigo-800 text-white relative overflow-hidden",children:[S.jsx("div",{className:"absolute inset-0 z-0",children:S.jsx("img",{src:"https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=2000&q=80",alt:"Interface Background",className:"w-full h-full object-cover opacity-10"})}),S.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[S.jsxs("div",{className:"text-center mb-16",children:[S.jsx("h2",{className:"text-4xl font-bold mb-4",children:n.interface.title}),S.jsx("p",{className:"text-xl text-indigo-200",children:n.interface.subtitle})]}),S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:SD.map((x,p)=>S.jsxs(B.div,{whileHover:{scale:1.05,boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},className:"bg-white/10 backdrop-blur-sm rounded-lg p-6",children:[S.jsxs(B.div,{initial:"hidden",whileHover:"visible",className:"relative",children:[S.jsx(x.icon,{className:"h-12 w-12 text-indigo-300 mb-4"}),S.jsx(B.span,{variants:y,className:"absolute -top-4 -right-4",children:["✨","🚀","💫","⚡"][p]})]}),S.jsx("h3",{className:"text-xl font-semibold mb-2",children:x.title}),S.jsx("p",{className:"text-indigo-200",children:x.description})]},p))}),S.jsx("div",{className:"mt-16 text-center",children:S.jsx("img",{src:"https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1200&q=80",alt:"Dashboard Preview",className:"rounded-lg shadow-2xl mx-auto max-w-4xl"})})]})]}),S.jsx(B.section,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"py-20 bg-white",children:S.jsx("div",{className:"container mx-auto px-6",children:S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:_D.map((x,p)=>S.jsxs(B.div,{whileHover:{scale:1.05},className:"text-center",children:[S.jsx(B.div,{whileHover:{rotate:360},transition:{duration:.5},children:S.jsx(x.icon,{className:"h-12 w-12 mx-auto mb-4 text-indigo-600"})}),S.jsx(B.div,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"text-4xl font-bold mb-2 text-gray-900",children:x.value}),S.jsx("div",{className:"text-gray-600",children:x.label})]},p))})})}),S.jsx("section",{className:"py-20 bg-gray-50",children:S.jsxs("div",{className:"container mx-auto px-6",children:[S.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:n.status.title}),S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:gD.map((x,p)=>S.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6 transform hover:scale-105 transition-transform duration-300",children:[S.jsx(Uf,{className:"h-8 w-8 text-green-500 mb-4"}),S.jsx("h3",{className:"text-xl font-semibold mb-2",children:x.city}),S.jsx("p",{className:"text-gray-600",children:x.country}),S.jsxs("div",{className:"mt-4",children:[S.jsxs("div",{className:"flex justify-between items-center",children:[S.jsx("span",{className:"text-sm text-gray-500",children:n.status.uptime}),S.jsxs("span",{className:"text-sm font-semibold text-green-500",children:[x.uptime,"%"]})]}),S.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2 mt-2",children:S.jsx("div",{className:"bg-green-500 rounded-full h-2",style:{width:`${x.uptime}%`}})})]})]},p))})]})}),S.jsx("section",{className:"py-20 bg-white",children:S.jsxs("div",{className:"container mx-auto px-6",children:[S.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:n.comparison.title}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[S.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6",children:[S.jsx("h3",{className:"text-xl font-semibold mb-6",children:n.comparison.speed}),S.jsx("div",{className:"h-[300px]",children:S.jsx(CP,{data:vD,options:pu})})]}),S.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6",children:[S.jsx("h3",{className:"text-xl font-semibold mb-6",children:n.comparison.reliability}),S.jsx("div",{className:"h-[300px]",children:S.jsx(PP,{data:xD,options:pu})})]}),S.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-6",children:[S.jsx("h3",{className:"text-xl font-semibold mb-6",children:"Storage Distribution"}),S.jsx("div",{className:"h-[300px]",children:S.jsx(MP,{data:wD,options:pu})})]})]})]})}),S.jsx("section",{className:"py-20 bg-gray-50",children:S.jsx("div",{className:"container mx-auto px-6",children:S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:yD.map((x,p)=>S.jsxs(B.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},whileHover:{scale:1.05,boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"},className:"bg-gradient-to-br from-indigo-50 to-white rounded-lg p-6 shadow-lg",children:[S.jsx(B.div,{className:"flex items-center mb-4",whileHover:{scale:1.1},children:[...Array(x.rating)].map((m,v)=>S.jsx(B.div,{initial:{rotate:0},whileHover:{rotate:360,scale:1.2},transition:{duration:.3},children:S.jsx(nS,{className:"h-5 w-5 text-yellow-400 fill-current"},v)},v))}),S.jsxs(B.p,{className:"text-gray-600 mb-4 italic",whileHover:{scale:1.02},children:['"',x.text,'"']}),S.jsx(B.p,{className:"font-semibold text-indigo-600",whileHover:{x:10},children:x.name})]},p))})})}),S.jsx(lm,{children:r&&S.jsx(B.div,{initial:{x:400},animate:{x:0,y:Math.min(Math.max(a-100,0),window.innerHeight-600)},exit:{x:400},className:"fixed top-20 right-6 z-50 w-96",children:S.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-8",children:[S.jsxs("div",{className:"flex justify-between items-center mb-6",children:[S.jsxs("div",{className:"flex space-x-4",children:[S.jsx(B.button,{whileHover:{scale:1.05},onClick:()=>s(!0),className:`px-4 py-2 rounded-lg transition-colors duration-300 ${i?"bg-indigo-600 text-white":"bg-gray-100 text-gray-600 hover:bg-gray-200"}`,children:n.auth.login}),S.jsx(B.button,{whileHover:{scale:1.05},onClick:()=>s(!1),className:`px-4 py-2 rounded-lg transition-colors duration-300 ${i?"bg-gray-100 text-gray-600 hover:bg-gray-200":"bg-indigo-600 text-white"}`,children:n.auth.register})]}),S.jsx(B.button,{whileHover:{scale:1.1,rotate:90},onClick:()=>o(!1),className:"text-gray-500 hover:text-gray-700",children:S.jsx(Kf,{className:"h-5 w-5"})})]}),S.jsxs("form",{onSubmit:g,className:"space-y-4",children:[S.jsxs("div",{children:[S.jsx("label",{className:"block text-sm font-medium text-gray-700",children:n.auth.email}),S.jsx("input",{type:"email",name:"email",className:"mt-1 block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500",required:!0})]}),S.jsxs("div",{children:[S.jsx("label",{className:"block text-sm font-medium text-gray-700",children:n.auth.password}),S.jsx("input",{type:"password",name:"password",className:"mt-1 block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500",required:!0})]}),!i&&S.jsxs(S.Fragment,{children:[S.jsxs("div",{children:[S.jsx("label",{className:"block text-sm font-medium text-gray-700",children:n.auth.phone}),S.jsx("input",{type:"tel",name:"phone",placeholder:"+XXXXXXXXXXX",className:"mt-1 block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500",required:!0})]}),S.jsxs("div",{children:[S.jsx("label",{className:"block text-sm font-medium text-gray-700",children:n.auth.invite}),S.jsx("input",{type:"text",name:"invite",className:"mt-1 block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500",required:!0})]})]}),S.jsx("button",{type:"submit",className:"w-full bg-indigo-600 text-white py-3 px-4 rounded-lg hover:bg-indigo-700 transition-colors duration-300 font-medium",children:i?n.auth.login:n.auth.register})]})]})})}),!r&&S.jsx(B.button,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},whileHover:{scale:1.1},onClick:()=>o(!0),className:"fixed top-24 right-6 z-50 bg-indigo-600 text-white p-4 rounded-full shadow-lg",children:S.jsx(Uy,{className:"h-6 w-6"})}),S.jsx(lm,{children:c&&S.jsxs(B.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed bottom-4 right-4 bg-white rounded-lg shadow-2xl p-6 w-96 z-50",children:[S.jsxs("div",{className:"flex justify-between items-center mb-4",children:[S.jsxs("div",{className:"flex items-center space-x-2",children:[S.jsx(J_,{className:"h-6 w-6 text-indigo-600"}),S.jsx("h3",{className:"text-lg font-semibold",children:"Live Chat"})]}),S.jsx(B.button,{whileHover:{scale:1.1,rotate:90},onClick:()=>d(!1),className:"text-gray-500 hover:text-gray-700",children:S.jsx(Kf,{className:"h-5 w-5"})})]}),S.jsx("div",{className:"bg-gray-50 rounded-lg p-4",children:S.jsxs(B.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},className:"flex items-center space-x-2 text-gray-600",children:[S.jsx(B.div,{animate:{scale:[1,1.2,1],transition:{duration:1,repeat:1/0}},className:"w-2 h-2 bg-indigo-600 rounded-full"}),S.jsx("p",{children:n.chat.waiting})]})})]})}),S.jsx(B.footer,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},className:"bg-indigo-900 text-white py-12",children:S.jsxs("div",{className:"container mx-auto px-6",children:[S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-8",children:[S.jsxs(B.div,{whileHover:{scale:1.05},children:[S.jsx("h3",{className:"text-xl font-bold mb-4",children:"CloudStore"}),S.jsx("p",{className:"text-indigo-200",children:"Next generation cloud storage for everyone."})]}),S.jsxs(B.div,{whileHover:{scale:1.05},children:[S.jsx("h3",{className:"text-xl font-bold mb-4",children:"Features"}),S.jsxs("ul",{className:"space-y-2 text-indigo-200",children:[S.jsx("li",{children:"2TB Storage"}),S.jsx("li",{children:"Fast Upload Speed"}),S.jsx("li",{children:"European Servers"}),S.jsx("li",{children:"Global Access"})]})]}),S.jsxs(B.div,{whileHover:{scale:1.05},children:[S.jsx("h3",{className:"text-xl font-bold mb-4",children:"Security"}),S.jsxs("ul",{className:"space-y-2 text-indigo-200",children:[S.jsx("li",{children:"End-to-end Encryption"}),S.jsx("li",{children:"Two-factor Auth"}),S.jsx("li",{children:"Regular Backups"}),S.jsx("li",{children:"24/7 Monitoring"})]})]}),S.jsxs(B.div,{whileHover:{scale:1.05},children:[S.jsx("h3",{className:"text-xl font-bold mb-4",children:"Contact"}),S.jsxs("ul",{className:"space-y-2 text-indigo-200",children:[S.jsx("li",{children:"support@cloudstore.com"}),S.jsx("li",{children:"+1 (555) 123-4567"}),S.jsx("li",{children:S.jsx("button",{onClick:()=>d(!0),className:"text-indigo-200 hover:text-white transition-colors",children:"Live Chat Support"})})]})]})]}),S.jsxs(B.div,{className:"border-t border-indigo-800 pt-8 text-center text-indigo-200",whileHover:{scale:1.02},children:[S.jsxs("p",{className:"flex items-center justify-center gap-2",children:["Made with ",S.jsx(B.div,{whileHover:{scale:1.2},animate:{scale:[1,1.2,1],transition:{duration:1,repeat:1/0}},children:S.jsx(q_,{className:"h-5 w-5 text-red-400 fill-current"})})," by CloudStore"]}),S.jsx("p",{className:"mt-2",children:"© 2025 CloudStore. All rights reserved."})]})]})})]})}$y(document.getElementById("root")).render(S.jsx(C.StrictMode,{children:S.jsx(bD,{})})); diff --git a/sni-templates/filecloud/assets/v1/style.css b/sni-templates/filecloud/assets/v1/style.css new file mode 100644 index 0000000..20c05f7 --- /dev/null +++ b/sni-templates/filecloud/assets/v1/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}input{border-radius:.375rem;border-width:1px;padding:.5rem .75rem}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.-right-4{right:-1rem}.-top-4{top:-1rem}.bottom-4{bottom:1rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-20{top:5rem}.top-24{top:6rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-2{height:.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[300px\]{height:300px}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-2{width:.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-96{width:24rem}.w-full{width:100%}.max-w-4xl{max-width:56rem}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-8{gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border-t{border-top-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-800{--tw-border-opacity: 1;border-color:rgb(55 48 163 / var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-indigo-900{--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/80{background-color:#fffc}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-indigo-100{--tw-gradient-from: #e0e7ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(224 231 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-50{--tw-gradient-from: #eef2ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(238 242 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-indigo-800{--tw-gradient-to: #3730a3 var(--tw-gradient-to-position)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-20{padding-bottom:5rem}.pt-32{padding-top:8rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.italic{font-style:italic}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity))}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity))}.opacity-10{opacity:.1}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-indigo-600:hover{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}} diff --git a/sni-templates/filecloud/favicon-96x96.png b/sni-templates/filecloud/favicon-96x96.png new file mode 100644 index 0000000..4243288 Binary files /dev/null and b/sni-templates/filecloud/favicon-96x96.png differ diff --git a/sni-templates/filecloud/favicon.ico b/sni-templates/filecloud/favicon.ico new file mode 100644 index 0000000..fab3b24 Binary files /dev/null and b/sni-templates/filecloud/favicon.ico differ diff --git a/sni-templates/filecloud/favicon.svg b/sni-templates/filecloud/favicon.svg new file mode 100644 index 0000000..d945fb3 --- /dev/null +++ b/sni-templates/filecloud/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/sni-templates/filecloud/index.html b/sni-templates/filecloud/index.html new file mode 100644 index 0000000..9920292 --- /dev/null +++ b/sni-templates/filecloud/index.html @@ -0,0 +1,20 @@ + + + + + + Modern Cloud Storage – Fast, Secure & Easy File Access + + + + + + + + + + + +
+ + diff --git a/sni-templates/filecloud/site.webmanifest b/sni-templates/filecloud/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/filecloud/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/filecloud/web-app-manifest-192x192.png b/sni-templates/filecloud/web-app-manifest-192x192.png new file mode 100644 index 0000000..7e63476 Binary files /dev/null and b/sni-templates/filecloud/web-app-manifest-192x192.png differ diff --git a/sni-templates/filecloud/web-app-manifest-512x512.png b/sni-templates/filecloud/web-app-manifest-512x512.png new file mode 100644 index 0000000..9f9e31a Binary files /dev/null and b/sni-templates/filecloud/web-app-manifest-512x512.png differ diff --git a/sni-templates/games-site/apple-touch-icon.png b/sni-templates/games-site/apple-touch-icon.png new file mode 100644 index 0000000..08e45d5 Binary files /dev/null and b/sni-templates/games-site/apple-touch-icon.png differ diff --git a/sni-templates/games-site/assets/images/avatar_1.jpg b/sni-templates/games-site/assets/images/avatar_1.jpg new file mode 100644 index 0000000..7fe7241 Binary files /dev/null and b/sni-templates/games-site/assets/images/avatar_1.jpg differ diff --git a/sni-templates/games-site/assets/images/bg_1.jpg b/sni-templates/games-site/assets/images/bg_1.jpg new file mode 100644 index 0000000..59ad9b3 Binary files /dev/null and b/sni-templates/games-site/assets/images/bg_1.jpg differ diff --git a/sni-templates/games-site/assets/images/bg_2.jpg b/sni-templates/games-site/assets/images/bg_2.jpg new file mode 100644 index 0000000..cc3c1e0 Binary files /dev/null and b/sni-templates/games-site/assets/images/bg_2.jpg differ diff --git a/sni-templates/games-site/assets/images/bg_3.jpg b/sni-templates/games-site/assets/images/bg_3.jpg new file mode 100644 index 0000000..ccf609c Binary files /dev/null and b/sni-templates/games-site/assets/images/bg_3.jpg differ diff --git a/sni-templates/games-site/assets/images/bg_4.jpg b/sni-templates/games-site/assets/images/bg_4.jpg new file mode 100644 index 0000000..09a4a8c Binary files /dev/null and b/sni-templates/games-site/assets/images/bg_4.jpg differ diff --git a/sni-templates/games-site/assets/images/image_1.jpg b/sni-templates/games-site/assets/images/image_1.jpg new file mode 100644 index 0000000..7fe0395 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_1.jpg differ diff --git a/sni-templates/games-site/assets/images/image_10.jpg b/sni-templates/games-site/assets/images/image_10.jpg new file mode 100644 index 0000000..a2bbc7a Binary files /dev/null and b/sni-templates/games-site/assets/images/image_10.jpg differ diff --git a/sni-templates/games-site/assets/images/image_11.jpg b/sni-templates/games-site/assets/images/image_11.jpg new file mode 100644 index 0000000..36eefd5 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_11.jpg differ diff --git a/sni-templates/games-site/assets/images/image_12.jpg b/sni-templates/games-site/assets/images/image_12.jpg new file mode 100644 index 0000000..e791cec Binary files /dev/null and b/sni-templates/games-site/assets/images/image_12.jpg differ diff --git a/sni-templates/games-site/assets/images/image_13.jpg b/sni-templates/games-site/assets/images/image_13.jpg new file mode 100644 index 0000000..e329d93 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_13.jpg differ diff --git a/sni-templates/games-site/assets/images/image_14.jpg b/sni-templates/games-site/assets/images/image_14.jpg new file mode 100644 index 0000000..cb4bda7 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_14.jpg differ diff --git a/sni-templates/games-site/assets/images/image_15.jpg b/sni-templates/games-site/assets/images/image_15.jpg new file mode 100644 index 0000000..0e4318a Binary files /dev/null and b/sni-templates/games-site/assets/images/image_15.jpg differ diff --git a/sni-templates/games-site/assets/images/image_16.jpg b/sni-templates/games-site/assets/images/image_16.jpg new file mode 100644 index 0000000..4e915e0 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_16.jpg differ diff --git a/sni-templates/games-site/assets/images/image_17.jpg b/sni-templates/games-site/assets/images/image_17.jpg new file mode 100644 index 0000000..fce9f67 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_17.jpg differ diff --git a/sni-templates/games-site/assets/images/image_18.jpg b/sni-templates/games-site/assets/images/image_18.jpg new file mode 100644 index 0000000..2c84731 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_18.jpg differ diff --git a/sni-templates/games-site/assets/images/image_19.jpg b/sni-templates/games-site/assets/images/image_19.jpg new file mode 100644 index 0000000..643a41d Binary files /dev/null and b/sni-templates/games-site/assets/images/image_19.jpg differ diff --git a/sni-templates/games-site/assets/images/image_2.jpg b/sni-templates/games-site/assets/images/image_2.jpg new file mode 100644 index 0000000..b52fd68 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_2.jpg differ diff --git a/sni-templates/games-site/assets/images/image_20.jpg b/sni-templates/games-site/assets/images/image_20.jpg new file mode 100644 index 0000000..9d594ff Binary files /dev/null and b/sni-templates/games-site/assets/images/image_20.jpg differ diff --git a/sni-templates/games-site/assets/images/image_3.jpg b/sni-templates/games-site/assets/images/image_3.jpg new file mode 100644 index 0000000..2f7f48d Binary files /dev/null and b/sni-templates/games-site/assets/images/image_3.jpg differ diff --git a/sni-templates/games-site/assets/images/image_4.jpg b/sni-templates/games-site/assets/images/image_4.jpg new file mode 100644 index 0000000..383bce6 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_4.jpg differ diff --git a/sni-templates/games-site/assets/images/image_5.jpg b/sni-templates/games-site/assets/images/image_5.jpg new file mode 100644 index 0000000..6b6e268 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_5.jpg differ diff --git a/sni-templates/games-site/assets/images/image_6.jpg b/sni-templates/games-site/assets/images/image_6.jpg new file mode 100644 index 0000000..0858184 Binary files /dev/null and b/sni-templates/games-site/assets/images/image_6.jpg differ diff --git a/sni-templates/games-site/assets/images/image_7.jpg b/sni-templates/games-site/assets/images/image_7.jpg new file mode 100644 index 0000000..c8ffcba Binary files /dev/null and b/sni-templates/games-site/assets/images/image_7.jpg differ diff --git a/sni-templates/games-site/assets/images/image_8.jpg b/sni-templates/games-site/assets/images/image_8.jpg new file mode 100644 index 0000000..483236e Binary files /dev/null and b/sni-templates/games-site/assets/images/image_8.jpg differ diff --git a/sni-templates/games-site/assets/images/image_9.jpg b/sni-templates/games-site/assets/images/image_9.jpg new file mode 100644 index 0000000..ef2c20e Binary files /dev/null and b/sni-templates/games-site/assets/images/image_9.jpg differ diff --git a/sni-templates/games-site/assets/images/no-avatar.jpg b/sni-templates/games-site/assets/images/no-avatar.jpg new file mode 100644 index 0000000..125ed39 Binary files /dev/null and b/sni-templates/games-site/assets/images/no-avatar.jpg differ diff --git a/sni-templates/games-site/assets/script.js b/sni-templates/games-site/assets/script.js new file mode 100644 index 0000000..cb96076 --- /dev/null +++ b/sni-templates/games-site/assets/script.js @@ -0,0 +1,8135 @@ +(function polyfill() { + const relList = document.createElement("link").relList; + if (relList && relList.supports && relList.supports("modulepreload")) { + return; + } + for (const link of document.querySelectorAll('link[rel="modulepreload"]')) { + processPreload(link); + } + new MutationObserver((mutations) => { + for (const mutation of mutations) { + if (mutation.type !== "childList") { + continue; + } + for (const node of mutation.addedNodes) { + if (node.tagName === "LINK" && node.rel === "modulepreload") + processPreload(node); + } + } + }).observe(document, { childList: true, subtree: true }); + function getFetchOpts(link) { + const fetchOpts = {}; + if (link.integrity) fetchOpts.integrity = link.integrity; + if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy; + if (link.crossOrigin === "use-credentials") + fetchOpts.credentials = "include"; + else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit"; + else fetchOpts.credentials = "same-origin"; + return fetchOpts; + } + function processPreload(link) { + if (link.ep) + return; + link.ep = true; + const fetchOpts = getFetchOpts(link); + fetch(link.href, fetchOpts); + } +})(); +function getDefaultExportFromCjs(x2) { + return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; +} +var jsxRuntime = { exports: {} }; +var reactJsxRuntime_production_min = {}; +var react = { exports: {} }; +var react_production_min = {}; +/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var l$1 = Symbol.for("react.element"), n$1 = Symbol.for("react.portal"), p$2 = Symbol.for("react.fragment"), q$1 = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v$1 = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z$1 = Symbol.iterator; +function A$1(a) { + if (null === a || "object" !== typeof a) return null; + a = z$1 && a[z$1] || a["@@iterator"]; + return "function" === typeof a ? a : null; +} +var B$1 = { isMounted: function() { + return false; +}, enqueueForceUpdate: function() { +}, enqueueReplaceState: function() { +}, enqueueSetState: function() { +} }, C$1 = Object.assign, D$1 = {}; +function E$1(a, b, e) { + this.props = a; + this.context = b; + this.refs = D$1; + this.updater = e || B$1; +} +E$1.prototype.isReactComponent = {}; +E$1.prototype.setState = function(a, b) { + if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, a, b, "setState"); +}; +E$1.prototype.forceUpdate = function(a) { + this.updater.enqueueForceUpdate(this, a, "forceUpdate"); +}; +function F() { +} +F.prototype = E$1.prototype; +function G$1(a, b, e) { + this.props = a; + this.context = b; + this.refs = D$1; + this.updater = e || B$1; +} +var H$1 = G$1.prototype = new F(); +H$1.constructor = G$1; +C$1(H$1, E$1.prototype); +H$1.isPureReactComponent = true; +var I$1 = Array.isArray, J = Object.prototype.hasOwnProperty, K$1 = { current: null }, L$1 = { key: true, ref: true, __self: true, __source: true }; +function M$1(a, b, e) { + var d, c = {}, k2 = null, h = null; + if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k2 = "" + b.key), b) J.call(b, d) && !L$1.hasOwnProperty(d) && (c[d] = b[d]); + var g = arguments.length - 2; + if (1 === g) c.children = e; + else if (1 < g) { + for (var f2 = Array(g), m2 = 0; m2 < g; m2++) f2[m2] = arguments[m2 + 2]; + c.children = f2; + } + if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]); + return { $$typeof: l$1, type: a, key: k2, ref: h, props: c, _owner: K$1.current }; +} +function N$1(a, b) { + return { $$typeof: l$1, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner }; +} +function O$1(a) { + return "object" === typeof a && null !== a && a.$$typeof === l$1; +} +function escape(a) { + var b = { "=": "=0", ":": "=2" }; + return "$" + a.replace(/[=:]/g, function(a2) { + return b[a2]; + }); +} +var P$1 = /\/+/g; +function Q$1(a, b) { + return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36); +} +function R$1(a, b, e, d, c) { + var k2 = typeof a; + if ("undefined" === k2 || "boolean" === k2) a = null; + var h = false; + if (null === a) h = true; + else switch (k2) { + case "string": + case "number": + h = true; + break; + case "object": + switch (a.$$typeof) { + case l$1: + case n$1: + h = true; + } + } + if (h) return h = a, c = c(h), a = "" === d ? "." + Q$1(h, 0) : d, I$1(c) ? (e = "", null != a && (e = a.replace(P$1, "$&/") + "/"), R$1(c, b, e, "", function(a2) { + return a2; + })) : null != c && (O$1(c) && (c = N$1(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P$1, "$&/") + "/") + a)), b.push(c)), 1; + h = 0; + d = "" === d ? "." : d + ":"; + if (I$1(a)) for (var g = 0; g < a.length; g++) { + k2 = a[g]; + var f2 = d + Q$1(k2, g); + h += R$1(k2, b, e, f2, c); + } + else if (f2 = A$1(a), "function" === typeof f2) for (a = f2.call(a), g = 0; !(k2 = a.next()).done; ) k2 = k2.value, f2 = d + Q$1(k2, g++), h += R$1(k2, b, e, f2, c); + else if ("object" === k2) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead."); + return h; +} +function S$1(a, b, e) { + if (null == a) return a; + var d = [], c = 0; + R$1(a, d, "", "", function(a2) { + return b.call(e, a2, c++); + }); + return d; +} +function T$1(a) { + if (-1 === a._status) { + var b = a._result; + b = b(); + b.then(function(b2) { + if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2; + }, function(b2) { + if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2; + }); + -1 === a._status && (a._status = 0, a._result = b); + } + if (1 === a._status) return a._result.default; + throw a._result; +} +var U$1 = { current: null }, V$1 = { transition: null }, W$1 = { ReactCurrentDispatcher: U$1, ReactCurrentBatchConfig: V$1, ReactCurrentOwner: K$1 }; +function X$2() { + throw Error("act(...) is not supported in production builds of React."); +} +react_production_min.Children = { map: S$1, forEach: function(a, b, e) { + S$1(a, function() { + b.apply(this, arguments); + }, e); +}, count: function(a) { + var b = 0; + S$1(a, function() { + b++; + }); + return b; +}, toArray: function(a) { + return S$1(a, function(a2) { + return a2; + }) || []; +}, only: function(a) { + if (!O$1(a)) throw Error("React.Children.only expected to receive a single React element child."); + return a; +} }; +react_production_min.Component = E$1; +react_production_min.Fragment = p$2; +react_production_min.Profiler = r; +react_production_min.PureComponent = G$1; +react_production_min.StrictMode = q$1; +react_production_min.Suspense = w; +react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$1; +react_production_min.act = X$2; +react_production_min.cloneElement = function(a, b, e) { + if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + "."); + var d = C$1({}, a.props), c = a.key, k2 = a.ref, h = a._owner; + if (null != b) { + void 0 !== b.ref && (k2 = b.ref, h = K$1.current); + void 0 !== b.key && (c = "" + b.key); + if (a.type && a.type.defaultProps) var g = a.type.defaultProps; + for (f2 in b) J.call(b, f2) && !L$1.hasOwnProperty(f2) && (d[f2] = void 0 === b[f2] && void 0 !== g ? g[f2] : b[f2]); + } + var f2 = arguments.length - 2; + if (1 === f2) d.children = e; + else if (1 < f2) { + g = Array(f2); + for (var m2 = 0; m2 < f2; m2++) g[m2] = arguments[m2 + 2]; + d.children = g; + } + return { $$typeof: l$1, type: a.type, key: c, ref: k2, props: d, _owner: h }; +}; +react_production_min.createContext = function(a) { + a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; + a.Provider = { $$typeof: t, _context: a }; + return a.Consumer = a; +}; +react_production_min.createElement = M$1; +react_production_min.createFactory = function(a) { + var b = M$1.bind(null, a); + b.type = a; + return b; +}; +react_production_min.createRef = function() { + return { current: null }; +}; +react_production_min.forwardRef = function(a) { + return { $$typeof: v$1, render: a }; +}; +react_production_min.isValidElement = O$1; +react_production_min.lazy = function(a) { + return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T$1 }; +}; +react_production_min.memo = function(a, b) { + return { $$typeof: x, type: a, compare: void 0 === b ? null : b }; +}; +react_production_min.startTransition = function(a) { + var b = V$1.transition; + V$1.transition = {}; + try { + a(); + } finally { + V$1.transition = b; + } +}; +react_production_min.unstable_act = X$2; +react_production_min.useCallback = function(a, b) { + return U$1.current.useCallback(a, b); +}; +react_production_min.useContext = function(a) { + return U$1.current.useContext(a); +}; +react_production_min.useDebugValue = function() { +}; +react_production_min.useDeferredValue = function(a) { + return U$1.current.useDeferredValue(a); +}; +react_production_min.useEffect = function(a, b) { + return U$1.current.useEffect(a, b); +}; +react_production_min.useId = function() { + return U$1.current.useId(); +}; +react_production_min.useImperativeHandle = function(a, b, e) { + return U$1.current.useImperativeHandle(a, b, e); +}; +react_production_min.useInsertionEffect = function(a, b) { + return U$1.current.useInsertionEffect(a, b); +}; +react_production_min.useLayoutEffect = function(a, b) { + return U$1.current.useLayoutEffect(a, b); +}; +react_production_min.useMemo = function(a, b) { + return U$1.current.useMemo(a, b); +}; +react_production_min.useReducer = function(a, b, e) { + return U$1.current.useReducer(a, b, e); +}; +react_production_min.useRef = function(a) { + return U$1.current.useRef(a); +}; +react_production_min.useState = function(a) { + return U$1.current.useState(a); +}; +react_production_min.useSyncExternalStore = function(a, b, e) { + return U$1.current.useSyncExternalStore(a, b, e); +}; +react_production_min.useTransition = function() { + return U$1.current.useTransition(); +}; +react_production_min.version = "18.3.1"; +{ + react.exports = react_production_min; +} +var reactExports = react.exports; +const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports); +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var f = reactExports, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m$1 = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$1 = { key: true, ref: true, __self: true, __source: true }; +function q(c, a, g) { + var b, d = {}, e = null, h = null; + void 0 !== g && (e = "" + g); + void 0 !== a.key && (e = "" + a.key); + void 0 !== a.ref && (h = a.ref); + for (b in a) m$1.call(a, b) && !p$1.hasOwnProperty(b) && (d[b] = a[b]); + if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]); + return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current }; +} +reactJsxRuntime_production_min.Fragment = l; +reactJsxRuntime_production_min.jsx = q; +reactJsxRuntime_production_min.jsxs = q; +{ + jsxRuntime.exports = reactJsxRuntime_production_min; +} +var jsxRuntimeExports = jsxRuntime.exports; +var reactDom = { exports: {} }; +var reactDom_production_min = {}; +var scheduler = { exports: {} }; +var scheduler_production_min = {}; +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +(function(exports) { + function f2(a, b) { + var c = a.length; + a.push(b); + a: for (; 0 < c; ) { + var d = c - 1 >>> 1, e = a[d]; + if (0 < g(e, b)) a[d] = b, a[c] = e, c = d; + else break a; + } + } + function h(a) { + return 0 === a.length ? null : a[0]; + } + function k2(a) { + if (0 === a.length) return null; + var b = a[0], c = a.pop(); + if (c !== b) { + a[0] = c; + a: for (var d = 0, e = a.length, w2 = e >>> 1; d < w2; ) { + var m2 = 2 * (d + 1) - 1, C2 = a[m2], n2 = m2 + 1, x2 = a[n2]; + if (0 > g(C2, c)) n2 < e && 0 > g(x2, C2) ? (a[d] = x2, a[n2] = c, d = n2) : (a[d] = C2, a[m2] = c, d = m2); + else if (n2 < e && 0 > g(x2, c)) a[d] = x2, a[n2] = c, d = n2; + else break a; + } + } + return b; + } + function g(a, b) { + var c = a.sortIndex - b.sortIndex; + return 0 !== c ? c : a.id - b.id; + } + if ("object" === typeof performance && "function" === typeof performance.now) { + var l2 = performance; + exports.unstable_now = function() { + return l2.now(); + }; + } else { + var p2 = Date, q2 = p2.now(); + exports.unstable_now = function() { + return p2.now() - q2; + }; + } + var r2 = [], t2 = [], u2 = 1, v2 = null, y2 = 3, z2 = false, A2 = false, B2 = false, D2 = "function" === typeof setTimeout ? setTimeout : null, E2 = "function" === typeof clearTimeout ? clearTimeout : null, F2 = "undefined" !== typeof setImmediate ? setImmediate : null; + "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); + function G2(a) { + for (var b = h(t2); null !== b; ) { + if (null === b.callback) k2(t2); + else if (b.startTime <= a) k2(t2), b.sortIndex = b.expirationTime, f2(r2, b); + else break; + b = h(t2); + } + } + function H2(a) { + B2 = false; + G2(a); + if (!A2) if (null !== h(r2)) A2 = true, I2(J2); + else { + var b = h(t2); + null !== b && K2(H2, b.startTime - a); + } + } + function J2(a, b) { + A2 = false; + B2 && (B2 = false, E2(L2), L2 = -1); + z2 = true; + var c = y2; + try { + G2(b); + for (v2 = h(r2); null !== v2 && (!(v2.expirationTime > b) || a && !M2()); ) { + var d = v2.callback; + if ("function" === typeof d) { + v2.callback = null; + y2 = v2.priorityLevel; + var e = d(v2.expirationTime <= b); + b = exports.unstable_now(); + "function" === typeof e ? v2.callback = e : v2 === h(r2) && k2(r2); + G2(b); + } else k2(r2); + v2 = h(r2); + } + if (null !== v2) var w2 = true; + else { + var m2 = h(t2); + null !== m2 && K2(H2, m2.startTime - b); + w2 = false; + } + return w2; + } finally { + v2 = null, y2 = c, z2 = false; + } + } + var N2 = false, O2 = null, L2 = -1, P2 = 5, Q2 = -1; + function M2() { + return exports.unstable_now() - Q2 < P2 ? false : true; + } + function R2() { + if (null !== O2) { + var a = exports.unstable_now(); + Q2 = a; + var b = true; + try { + b = O2(true, a); + } finally { + b ? S2() : (N2 = false, O2 = null); + } + } else N2 = false; + } + var S2; + if ("function" === typeof F2) S2 = function() { + F2(R2); + }; + else if ("undefined" !== typeof MessageChannel) { + var T2 = new MessageChannel(), U2 = T2.port2; + T2.port1.onmessage = R2; + S2 = function() { + U2.postMessage(null); + }; + } else S2 = function() { + D2(R2, 0); + }; + function I2(a) { + O2 = a; + N2 || (N2 = true, S2()); + } + function K2(a, b) { + L2 = D2(function() { + a(exports.unstable_now()); + }, b); + } + exports.unstable_IdlePriority = 5; + exports.unstable_ImmediatePriority = 1; + exports.unstable_LowPriority = 4; + exports.unstable_NormalPriority = 3; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = 2; + exports.unstable_cancelCallback = function(a) { + a.callback = null; + }; + exports.unstable_continueExecution = function() { + A2 || z2 || (A2 = true, I2(J2)); + }; + exports.unstable_forceFrameRate = function(a) { + 0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P2 = 0 < a ? Math.floor(1e3 / a) : 5; + }; + exports.unstable_getCurrentPriorityLevel = function() { + return y2; + }; + exports.unstable_getFirstCallbackNode = function() { + return h(r2); + }; + exports.unstable_next = function(a) { + switch (y2) { + case 1: + case 2: + case 3: + var b = 3; + break; + default: + b = y2; + } + var c = y2; + y2 = b; + try { + return a(); + } finally { + y2 = c; + } + }; + exports.unstable_pauseExecution = function() { + }; + exports.unstable_requestPaint = function() { + }; + exports.unstable_runWithPriority = function(a, b) { + switch (a) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + a = 3; + } + var c = y2; + y2 = a; + try { + return b(); + } finally { + y2 = c; + } + }; + exports.unstable_scheduleCallback = function(a, b, c) { + var d = exports.unstable_now(); + "object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d; + switch (a) { + case 1: + var e = -1; + break; + case 2: + e = 250; + break; + case 5: + e = 1073741823; + break; + case 4: + e = 1e4; + break; + default: + e = 5e3; + } + e = c + e; + a = { id: u2++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 }; + c > d ? (a.sortIndex = c, f2(t2, a), null === h(r2) && a === h(t2) && (B2 ? (E2(L2), L2 = -1) : B2 = true, K2(H2, c - d))) : (a.sortIndex = e, f2(r2, a), A2 || z2 || (A2 = true, I2(J2))); + return a; + }; + exports.unstable_shouldYield = M2; + exports.unstable_wrapCallback = function(a) { + var b = y2; + return function() { + var c = y2; + y2 = b; + try { + return a.apply(this, arguments); + } finally { + y2 = c; + } + }; + }; +})(scheduler_production_min); +{ + scheduler.exports = scheduler_production_min; +} +var schedulerExports = scheduler.exports; +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var aa = reactExports, ca = schedulerExports; +function p(a) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]); + return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; +} +var da = /* @__PURE__ */ new Set(), ea = {}; +function fa(a, b) { + ha(a, b); + ha(a + "Capture", b); +} +function ha(a, b) { + ea[a] = b; + for (a = 0; a < b.length; a++) da.add(b[a]); +} +var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {}; +function oa(a) { + if (ja.call(ma, a)) return true; + if (ja.call(la, a)) return false; + if (ka.test(a)) return ma[a] = true; + la[a] = true; + return false; +} +function pa(a, b, c, d) { + if (null !== c && 0 === c.type) return false; + switch (typeof b) { + case "function": + case "symbol": + return true; + case "boolean": + if (d) return false; + if (null !== c) return !c.acceptsBooleans; + a = a.toLowerCase().slice(0, 5); + return "data-" !== a && "aria-" !== a; + default: + return false; + } +} +function qa(a, b, c, d) { + if (null === b || "undefined" === typeof b || pa(a, b, c, d)) return true; + if (d) return false; + if (null !== c) switch (c.type) { + case 3: + return !b; + case 4: + return false === b; + case 5: + return isNaN(b); + case 6: + return isNaN(b) || 1 > b; + } + return false; +} +function v(a, b, c, d, e, f2, g) { + this.acceptsBooleans = 2 === b || 3 === b || 4 === b; + this.attributeName = d; + this.attributeNamespace = e; + this.mustUseProperty = c; + this.propertyName = a; + this.type = b; + this.sanitizeURL = f2; + this.removeEmptyString = g; +} +var z = {}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) { + z[a] = new v(a, 0, false, a, null, false, false); +}); +[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) { + var b = a[0]; + z[b] = new v(b, 1, false, a[1], null, false, false); +}); +["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) { + z[a] = new v(a, 2, false, a.toLowerCase(), null, false, false); +}); +["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) { + z[a] = new v(a, 2, false, a, null, false, false); +}); +"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) { + z[a] = new v(a, 3, false, a.toLowerCase(), null, false, false); +}); +["checked", "multiple", "muted", "selected"].forEach(function(a) { + z[a] = new v(a, 3, true, a, null, false, false); +}); +["capture", "download"].forEach(function(a) { + z[a] = new v(a, 4, false, a, null, false, false); +}); +["cols", "rows", "size", "span"].forEach(function(a) { + z[a] = new v(a, 6, false, a, null, false, false); +}); +["rowSpan", "start"].forEach(function(a) { + z[a] = new v(a, 5, false, a.toLowerCase(), null, false, false); +}); +var ra = /[\-:]([a-z])/g; +function sa(a) { + return a[1].toUpperCase(); +} +"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) { + var b = a.replace( + ra, + sa + ); + z[b] = new v(b, 1, false, a, null, false, false); +}); +"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, false, a, "http://www.w3.org/1999/xlink", false, false); +}); +["xml:base", "xml:lang", "xml:space"].forEach(function(a) { + var b = a.replace(ra, sa); + z[b] = new v(b, 1, false, a, "http://www.w3.org/XML/1998/namespace", false, false); +}); +["tabIndex", "crossOrigin"].forEach(function(a) { + z[a] = new v(a, 1, false, a.toLowerCase(), null, false, false); +}); +z.xlinkHref = new v("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); +["src", "href", "action", "formAction"].forEach(function(a) { + z[a] = new v(a, 1, false, a.toLowerCase(), null, true, true); +}); +function ta(a, b, c, d) { + var e = z.hasOwnProperty(b) ? z[b] : null; + if (null !== e ? 0 !== e.type : d || !(2 < b.length) || "o" !== b[0] && "O" !== b[0] || "n" !== b[1] && "N" !== b[1]) qa(b, c, e, d) && (c = null), d || null === e ? oa(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, "" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? false : "" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && true === c ? "" : "" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))); +} +var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for("react.element"), wa = Symbol.for("react.portal"), ya = Symbol.for("react.fragment"), za = Symbol.for("react.strict_mode"), Aa = Symbol.for("react.profiler"), Ba = Symbol.for("react.provider"), Ca = Symbol.for("react.context"), Da = Symbol.for("react.forward_ref"), Ea = Symbol.for("react.suspense"), Fa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ha = Symbol.for("react.lazy"); +var Ia = Symbol.for("react.offscreen"); +var Ja = Symbol.iterator; +function Ka(a) { + if (null === a || "object" !== typeof a) return null; + a = Ja && a[Ja] || a["@@iterator"]; + return "function" === typeof a ? a : null; +} +var A = Object.assign, La; +function Ma(a) { + if (void 0 === La) try { + throw Error(); + } catch (c) { + var b = c.stack.trim().match(/\n( *(at )?)/); + La = b && b[1] || ""; + } + return "\n" + La + a; +} +var Na = false; +function Oa(a, b) { + if (!a || Na) return ""; + Na = true; + var c = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (b) if (b = function() { + throw Error(); + }, Object.defineProperty(b.prototype, "props", { set: function() { + throw Error(); + } }), "object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(b, []); + } catch (l2) { + var d = l2; + } + Reflect.construct(a, [], b); + } else { + try { + b.call(); + } catch (l2) { + d = l2; + } + a.call(b.prototype); + } + else { + try { + throw Error(); + } catch (l2) { + d = l2; + } + a(); + } + } catch (l2) { + if (l2 && d && "string" === typeof l2.stack) { + for (var e = l2.stack.split("\n"), f2 = d.stack.split("\n"), g = e.length - 1, h = f2.length - 1; 1 <= g && 0 <= h && e[g] !== f2[h]; ) h--; + for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f2[h]) { + if (1 !== g || 1 !== h) { + do + if (g--, h--, 0 > h || e[g] !== f2[h]) { + var k2 = "\n" + e[g].replace(" at new ", " at "); + a.displayName && k2.includes("") && (k2 = k2.replace("", a.displayName)); + return k2; + } + while (1 <= g && 0 <= h); + } + break; + } + } + } finally { + Na = false, Error.prepareStackTrace = c; + } + return (a = a ? a.displayName || a.name : "") ? Ma(a) : ""; +} +function Pa(a) { + switch (a.tag) { + case 5: + return Ma(a.type); + case 16: + return Ma("Lazy"); + case 13: + return Ma("Suspense"); + case 19: + return Ma("SuspenseList"); + case 0: + case 2: + case 15: + return a = Oa(a.type, false), a; + case 11: + return a = Oa(a.type.render, false), a; + case 1: + return a = Oa(a.type, true), a; + default: + return ""; + } +} +function Qa(a) { + if (null == a) return null; + if ("function" === typeof a) return a.displayName || a.name || null; + if ("string" === typeof a) return a; + switch (a) { + case ya: + return "Fragment"; + case wa: + return "Portal"; + case Aa: + return "Profiler"; + case za: + return "StrictMode"; + case Ea: + return "Suspense"; + case Fa: + return "SuspenseList"; + } + if ("object" === typeof a) switch (a.$$typeof) { + case Ca: + return (a.displayName || "Context") + ".Consumer"; + case Ba: + return (a._context.displayName || "Context") + ".Provider"; + case Da: + var b = a.render; + a = a.displayName; + a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + return a; + case Ga: + return b = a.displayName || null, null !== b ? b : Qa(a.type) || "Memo"; + case Ha: + b = a._payload; + a = a._init; + try { + return Qa(a(b)); + } catch (c) { + } + } + return null; +} +function Ra(a) { + var b = a.type; + switch (a.tag) { + case 24: + return "Cache"; + case 9: + return (b.displayName || "Context") + ".Consumer"; + case 10: + return (b._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return b; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return Qa(b); + case 8: + return b === za ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof b) return b.displayName || b.name || null; + if ("string" === typeof b) return b; + } + return null; +} +function Sa(a) { + switch (typeof a) { + case "boolean": + case "number": + case "string": + case "undefined": + return a; + case "object": + return a; + default: + return ""; + } +} +function Ta(a) { + var b = a.type; + return (a = a.nodeName) && "input" === a.toLowerCase() && ("checkbox" === b || "radio" === b); +} +function Ua(a) { + var b = Ta(a) ? "checked" : "value", c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b), d = "" + a[b]; + if (!a.hasOwnProperty(b) && "undefined" !== typeof c && "function" === typeof c.get && "function" === typeof c.set) { + var e = c.get, f2 = c.set; + Object.defineProperty(a, b, { configurable: true, get: function() { + return e.call(this); + }, set: function(a2) { + d = "" + a2; + f2.call(this, a2); + } }); + Object.defineProperty(a, b, { enumerable: c.enumerable }); + return { getValue: function() { + return d; + }, setValue: function(a2) { + d = "" + a2; + }, stopTracking: function() { + a._valueTracker = null; + delete a[b]; + } }; + } +} +function Va(a) { + a._valueTracker || (a._valueTracker = Ua(a)); +} +function Wa(a) { + if (!a) return false; + var b = a._valueTracker; + if (!b) return true; + var c = b.getValue(); + var d = ""; + a && (d = Ta(a) ? a.checked ? "true" : "false" : a.value); + a = d; + return a !== c ? (b.setValue(a), true) : false; +} +function Xa(a) { + a = a || ("undefined" !== typeof document ? document : void 0); + if ("undefined" === typeof a) return null; + try { + return a.activeElement || a.body; + } catch (b) { + return a.body; + } +} +function Ya(a, b) { + var c = b.checked; + return A({}, b, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c ? c : a._wrapperState.initialChecked }); +} +function Za(a, b) { + var c = null == b.defaultValue ? "" : b.defaultValue, d = null != b.checked ? b.checked : b.defaultChecked; + c = Sa(null != b.value ? b.value : c); + a._wrapperState = { initialChecked: d, initialValue: c, controlled: "checkbox" === b.type || "radio" === b.type ? null != b.checked : null != b.value }; +} +function ab(a, b) { + b = b.checked; + null != b && ta(a, "checked", b, false); +} +function bb(a, b) { + ab(a, b); + var c = Sa(b.value), d = b.type; + if (null != c) if ("number" === d) { + if (0 === c && "" === a.value || a.value != c) a.value = "" + c; + } else a.value !== "" + c && (a.value = "" + c); + else if ("submit" === d || "reset" === d) { + a.removeAttribute("value"); + return; + } + b.hasOwnProperty("value") ? cb(a, b.type, c) : b.hasOwnProperty("defaultValue") && cb(a, b.type, Sa(b.defaultValue)); + null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked); +} +function db(a, b, c) { + if (b.hasOwnProperty("value") || b.hasOwnProperty("defaultValue")) { + var d = b.type; + if (!("submit" !== d && "reset" !== d || void 0 !== b.value && null !== b.value)) return; + b = "" + a._wrapperState.initialValue; + c || b === a.value || (a.value = b); + a.defaultValue = b; + } + c = a.name; + "" !== c && (a.name = ""); + a.defaultChecked = !!a._wrapperState.initialChecked; + "" !== c && (a.name = c); +} +function cb(a, b, c) { + if ("number" !== b || Xa(a.ownerDocument) !== a) null == c ? a.defaultValue = "" + a._wrapperState.initialValue : a.defaultValue !== "" + c && (a.defaultValue = "" + c); +} +var eb = Array.isArray; +function fb(a, b, c, d) { + a = a.options; + if (b) { + b = {}; + for (var e = 0; e < c.length; e++) b["$" + c[e]] = true; + for (c = 0; c < a.length; c++) e = b.hasOwnProperty("$" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = true); + } else { + c = "" + Sa(c); + b = null; + for (e = 0; e < a.length; e++) { + if (a[e].value === c) { + a[e].selected = true; + d && (a[e].defaultSelected = true); + return; + } + null !== b || a[e].disabled || (b = a[e]); + } + null !== b && (b.selected = true); + } +} +function gb(a, b) { + if (null != b.dangerouslySetInnerHTML) throw Error(p(91)); + return A({}, b, { value: void 0, defaultValue: void 0, children: "" + a._wrapperState.initialValue }); +} +function hb(a, b) { + var c = b.value; + if (null == c) { + c = b.children; + b = b.defaultValue; + if (null != c) { + if (null != b) throw Error(p(92)); + if (eb(c)) { + if (1 < c.length) throw Error(p(93)); + c = c[0]; + } + b = c; + } + null == b && (b = ""); + c = b; + } + a._wrapperState = { initialValue: Sa(c) }; +} +function ib(a, b) { + var c = Sa(b.value), d = Sa(b.defaultValue); + null != c && (c = "" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c)); + null != d && (a.defaultValue = "" + d); +} +function jb(a) { + var b = a.textContent; + b === a._wrapperState.initialValue && "" !== b && null !== b && (a.value = b); +} +function kb(a) { + switch (a) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml"; + } +} +function lb(a, b) { + return null == a || "http://www.w3.org/1999/xhtml" === a ? kb(b) : "http://www.w3.org/2000/svg" === a && "foreignObject" === b ? "http://www.w3.org/1999/xhtml" : a; +} +var mb, nb = function(a) { + return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b, c, d, e) { + MSApp.execUnsafeLocalFunction(function() { + return a(b, c, d, e); + }); + } : a; +}(function(a, b) { + if ("http://www.w3.org/2000/svg" !== a.namespaceURI || "innerHTML" in a) a.innerHTML = b; + else { + mb = mb || document.createElement("div"); + mb.innerHTML = "" + b.valueOf().toString() + ""; + for (b = mb.firstChild; a.firstChild; ) a.removeChild(a.firstChild); + for (; b.firstChild; ) a.appendChild(b.firstChild); + } +}); +function ob(a, b) { + if (b) { + var c = a.firstChild; + if (c && c === a.lastChild && 3 === c.nodeType) { + c.nodeValue = b; + return; + } + } + a.textContent = b; +} +var pb = { + animationIterationCount: true, + aspectRatio: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, + boxFlex: true, + boxFlexGroup: true, + boxOrdinalGroup: true, + columnCount: true, + columns: true, + flex: true, + flexGrow: true, + flexPositive: true, + flexShrink: true, + flexNegative: true, + flexOrder: true, + gridArea: true, + gridRow: true, + gridRowEnd: true, + gridRowSpan: true, + gridRowStart: true, + gridColumn: true, + gridColumnEnd: true, + gridColumnSpan: true, + gridColumnStart: true, + fontWeight: true, + lineClamp: true, + lineHeight: true, + opacity: true, + order: true, + orphans: true, + tabSize: true, + widows: true, + zIndex: true, + zoom: true, + fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, + strokeDashoffset: true, + strokeMiterlimit: true, + strokeOpacity: true, + strokeWidth: true +}, qb = ["Webkit", "ms", "Moz", "O"]; +Object.keys(pb).forEach(function(a) { + qb.forEach(function(b) { + b = b + a.charAt(0).toUpperCase() + a.substring(1); + pb[b] = pb[a]; + }); +}); +function rb(a, b, c) { + return null == b || "boolean" === typeof b || "" === b ? "" : c || "number" !== typeof b || 0 === b || pb.hasOwnProperty(a) && pb[a] ? ("" + b).trim() : b + "px"; +} +function sb(a, b) { + a = a.style; + for (var c in b) if (b.hasOwnProperty(c)) { + var d = 0 === c.indexOf("--"), e = rb(c, b[c], d); + "float" === c && (c = "cssFloat"); + d ? a.setProperty(c, e) : a[c] = e; + } +} +var tb = A({ menuitem: true }, { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true }); +function ub(a, b) { + if (b) { + if (tb[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(p(137, a)); + if (null != b.dangerouslySetInnerHTML) { + if (null != b.children) throw Error(p(60)); + if ("object" !== typeof b.dangerouslySetInnerHTML || !("__html" in b.dangerouslySetInnerHTML)) throw Error(p(61)); + } + if (null != b.style && "object" !== typeof b.style) throw Error(p(62)); + } +} +function vb(a, b) { + if (-1 === a.indexOf("-")) return "string" === typeof b.is; + switch (a) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + return false; + default: + return true; + } +} +var wb = null; +function xb(a) { + a = a.target || a.srcElement || window; + a.correspondingUseElement && (a = a.correspondingUseElement); + return 3 === a.nodeType ? a.parentNode : a; +} +var yb = null, zb = null, Ab = null; +function Bb(a) { + if (a = Cb(a)) { + if ("function" !== typeof yb) throw Error(p(280)); + var b = a.stateNode; + b && (b = Db(b), yb(a.stateNode, a.type, b)); + } +} +function Eb(a) { + zb ? Ab ? Ab.push(a) : Ab = [a] : zb = a; +} +function Fb() { + if (zb) { + var a = zb, b = Ab; + Ab = zb = null; + Bb(a); + if (b) for (a = 0; a < b.length; a++) Bb(b[a]); + } +} +function Gb(a, b) { + return a(b); +} +function Hb() { +} +var Ib = false; +function Jb(a, b, c) { + if (Ib) return a(b, c); + Ib = true; + try { + return Gb(a, b, c); + } finally { + if (Ib = false, null !== zb || null !== Ab) Hb(), Fb(); + } +} +function Kb(a, b) { + var c = a.stateNode; + if (null === c) return null; + var d = Db(c); + if (null === d) return null; + c = d[b]; + a: switch (b) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (d = !d.disabled) || (a = a.type, d = !("button" === a || "input" === a || "select" === a || "textarea" === a)); + a = !d; + break a; + default: + a = false; + } + if (a) return null; + if (c && "function" !== typeof c) throw Error(p(231, b, typeof c)); + return c; +} +var Lb = false; +if (ia) try { + var Mb = {}; + Object.defineProperty(Mb, "passive", { get: function() { + Lb = true; + } }); + window.addEventListener("test", Mb, Mb); + window.removeEventListener("test", Mb, Mb); +} catch (a) { + Lb = false; +} +function Nb(a, b, c, d, e, f2, g, h, k2) { + var l2 = Array.prototype.slice.call(arguments, 3); + try { + b.apply(c, l2); + } catch (m2) { + this.onError(m2); + } +} +var Ob = false, Pb = null, Qb = false, Rb = null, Sb = { onError: function(a) { + Ob = true; + Pb = a; +} }; +function Tb(a, b, c, d, e, f2, g, h, k2) { + Ob = false; + Pb = null; + Nb.apply(Sb, arguments); +} +function Ub(a, b, c, d, e, f2, g, h, k2) { + Tb.apply(this, arguments); + if (Ob) { + if (Ob) { + var l2 = Pb; + Ob = false; + Pb = null; + } else throw Error(p(198)); + Qb || (Qb = true, Rb = l2); + } +} +function Vb(a) { + var b = a, c = a; + if (a.alternate) for (; b.return; ) b = b.return; + else { + a = b; + do + b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return; + while (a); + } + return 3 === b.tag ? c : null; +} +function Wb(a) { + if (13 === a.tag) { + var b = a.memoizedState; + null === b && (a = a.alternate, null !== a && (b = a.memoizedState)); + if (null !== b) return b.dehydrated; + } + return null; +} +function Xb(a) { + if (Vb(a) !== a) throw Error(p(188)); +} +function Yb(a) { + var b = a.alternate; + if (!b) { + b = Vb(a); + if (null === b) throw Error(p(188)); + return b !== a ? null : a; + } + for (var c = a, d = b; ; ) { + var e = c.return; + if (null === e) break; + var f2 = e.alternate; + if (null === f2) { + d = e.return; + if (null !== d) { + c = d; + continue; + } + break; + } + if (e.child === f2.child) { + for (f2 = e.child; f2; ) { + if (f2 === c) return Xb(e), a; + if (f2 === d) return Xb(e), b; + f2 = f2.sibling; + } + throw Error(p(188)); + } + if (c.return !== d.return) c = e, d = f2; + else { + for (var g = false, h = e.child; h; ) { + if (h === c) { + g = true; + c = e; + d = f2; + break; + } + if (h === d) { + g = true; + d = e; + c = f2; + break; + } + h = h.sibling; + } + if (!g) { + for (h = f2.child; h; ) { + if (h === c) { + g = true; + c = f2; + d = e; + break; + } + if (h === d) { + g = true; + d = f2; + c = e; + break; + } + h = h.sibling; + } + if (!g) throw Error(p(189)); + } + } + if (c.alternate !== d) throw Error(p(190)); + } + if (3 !== c.tag) throw Error(p(188)); + return c.stateNode.current === c ? a : b; +} +function Zb(a) { + a = Yb(a); + return null !== a ? $b(a) : null; +} +function $b(a) { + if (5 === a.tag || 6 === a.tag) return a; + for (a = a.child; null !== a; ) { + var b = $b(a); + if (null !== b) return b; + a = a.sibling; + } + return null; +} +var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null; +function mc(a) { + if (lc && "function" === typeof lc.onCommitFiberRoot) try { + lc.onCommitFiberRoot(kc, a, void 0, 128 === (a.current.flags & 128)); + } catch (b) { + } +} +var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2; +function nc(a) { + a >>>= 0; + return 0 === a ? 32 : 31 - (pc(a) / qc | 0) | 0; +} +var rc = 64, sc = 4194304; +function tc(a) { + switch (a & -a) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return a & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return a & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return a; + } +} +function uc(a, b) { + var c = a.pendingLanes; + if (0 === c) return 0; + var d = 0, e = a.suspendedLanes, f2 = a.pingedLanes, g = c & 268435455; + if (0 !== g) { + var h = g & ~e; + 0 !== h ? d = tc(h) : (f2 &= g, 0 !== f2 && (d = tc(f2))); + } else g = c & ~e, 0 !== g ? d = tc(g) : 0 !== f2 && (d = tc(f2)); + if (0 === d) return 0; + if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f2 = b & -b, e >= f2 || 16 === e && 0 !== (f2 & 4194240))) return b; + 0 !== (d & 4) && (d |= c & 16); + b = a.entangledLanes; + if (0 !== b) for (a = a.entanglements, b &= d; 0 < b; ) c = 31 - oc(b), e = 1 << c, d |= a[c], b &= ~e; + return d; +} +function vc(a, b) { + switch (a) { + case 1: + case 2: + case 4: + return b + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return b + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } +} +function wc(a, b) { + for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f2 = a.pendingLanes; 0 < f2; ) { + var g = 31 - oc(f2), h = 1 << g, k2 = e[g]; + if (-1 === k2) { + if (0 === (h & c) || 0 !== (h & d)) e[g] = vc(h, b); + } else k2 <= b && (a.expiredLanes |= h); + f2 &= ~h; + } +} +function xc(a) { + a = a.pendingLanes & -1073741825; + return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0; +} +function yc() { + var a = rc; + rc <<= 1; + 0 === (rc & 4194240) && (rc = 64); + return a; +} +function zc(a) { + for (var b = [], c = 0; 31 > c; c++) b.push(a); + return b; +} +function Ac(a, b, c) { + a.pendingLanes |= b; + 536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0); + a = a.eventTimes; + b = 31 - oc(b); + a[b] = c; +} +function Bc(a, b) { + var c = a.pendingLanes & ~b; + a.pendingLanes = b; + a.suspendedLanes = 0; + a.pingedLanes = 0; + a.expiredLanes &= b; + a.mutableReadLanes &= b; + a.entangledLanes &= b; + b = a.entanglements; + var d = a.eventTimes; + for (a = a.expirationTimes; 0 < c; ) { + var e = 31 - oc(c), f2 = 1 << e; + b[e] = 0; + d[e] = -1; + a[e] = -1; + c &= ~f2; + } +} +function Cc(a, b) { + var c = a.entangledLanes |= b; + for (a = a.entanglements; c; ) { + var d = 31 - oc(c), e = 1 << d; + e & b | a[d] & b && (a[d] |= b); + c &= ~e; + } +} +var C = 0; +function Dc(a) { + a &= -a; + return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1; +} +var Ec, Fc, Gc, Hc, Ic, Jc = false, Kc = [], Lc = null, Mc = null, Nc = null, Oc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Qc = [], Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +function Sc(a, b) { + switch (a) { + case "focusin": + case "focusout": + Lc = null; + break; + case "dragenter": + case "dragleave": + Mc = null; + break; + case "mouseover": + case "mouseout": + Nc = null; + break; + case "pointerover": + case "pointerout": + Oc.delete(b.pointerId); + break; + case "gotpointercapture": + case "lostpointercapture": + Pc.delete(b.pointerId); + } +} +function Tc(a, b, c, d, e, f2) { + if (null === a || a.nativeEvent !== f2) return a = { blockedOn: b, domEventName: c, eventSystemFlags: d, nativeEvent: f2, targetContainers: [e] }, null !== b && (b = Cb(b), null !== b && Fc(b)), a; + a.eventSystemFlags |= d; + b = a.targetContainers; + null !== e && -1 === b.indexOf(e) && b.push(e); + return a; +} +function Uc(a, b, c, d, e) { + switch (b) { + case "focusin": + return Lc = Tc(Lc, a, b, c, d, e), true; + case "dragenter": + return Mc = Tc(Mc, a, b, c, d, e), true; + case "mouseover": + return Nc = Tc(Nc, a, b, c, d, e), true; + case "pointerover": + var f2 = e.pointerId; + Oc.set(f2, Tc(Oc.get(f2) || null, a, b, c, d, e)); + return true; + case "gotpointercapture": + return f2 = e.pointerId, Pc.set(f2, Tc(Pc.get(f2) || null, a, b, c, d, e)), true; + } + return false; +} +function Vc(a) { + var b = Wc(a.target); + if (null !== b) { + var c = Vb(b); + if (null !== c) { + if (b = c.tag, 13 === b) { + if (b = Wb(c), null !== b) { + a.blockedOn = b; + Ic(a.priority, function() { + Gc(c); + }); + return; + } + } else if (3 === b && c.stateNode.current.memoizedState.isDehydrated) { + a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null; + return; + } + } + } + a.blockedOn = null; +} +function Xc(a) { + if (null !== a.blockedOn) return false; + for (var b = a.targetContainers; 0 < b.length; ) { + var c = Yc(a.domEventName, a.eventSystemFlags, b[0], a.nativeEvent); + if (null === c) { + c = a.nativeEvent; + var d = new c.constructor(c.type, c); + wb = d; + c.target.dispatchEvent(d); + wb = null; + } else return b = Cb(c), null !== b && Fc(b), a.blockedOn = c, false; + b.shift(); + } + return true; +} +function Zc(a, b, c) { + Xc(a) && c.delete(b); +} +function $c() { + Jc = false; + null !== Lc && Xc(Lc) && (Lc = null); + null !== Mc && Xc(Mc) && (Mc = null); + null !== Nc && Xc(Nc) && (Nc = null); + Oc.forEach(Zc); + Pc.forEach(Zc); +} +function ad(a, b) { + a.blockedOn === b && (a.blockedOn = null, Jc || (Jc = true, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); +} +function bd(a) { + function b(b2) { + return ad(b2, a); + } + if (0 < Kc.length) { + ad(Kc[0], a); + for (var c = 1; c < Kc.length; c++) { + var d = Kc[c]; + d.blockedOn === a && (d.blockedOn = null); + } + } + null !== Lc && ad(Lc, a); + null !== Mc && ad(Mc, a); + null !== Nc && ad(Nc, a); + Oc.forEach(b); + Pc.forEach(b); + for (c = 0; c < Qc.length; c++) d = Qc[c], d.blockedOn === a && (d.blockedOn = null); + for (; 0 < Qc.length && (c = Qc[0], null === c.blockedOn); ) Vc(c), null === c.blockedOn && Qc.shift(); +} +var cd = ua.ReactCurrentBatchConfig, dd = true; +function ed(a, b, c, d) { + var e = C, f2 = cd.transition; + cd.transition = null; + try { + C = 1, fd(a, b, c, d); + } finally { + C = e, cd.transition = f2; + } +} +function gd(a, b, c, d) { + var e = C, f2 = cd.transition; + cd.transition = null; + try { + C = 4, fd(a, b, c, d); + } finally { + C = e, cd.transition = f2; + } +} +function fd(a, b, c, d) { + if (dd) { + var e = Yc(a, b, c, d); + if (null === e) hd(a, b, d, id, c), Sc(a, d); + else if (Uc(e, a, b, c, d)) d.stopPropagation(); + else if (Sc(a, d), b & 4 && -1 < Rc.indexOf(a)) { + for (; null !== e; ) { + var f2 = Cb(e); + null !== f2 && Ec(f2); + f2 = Yc(a, b, c, d); + null === f2 && hd(a, b, d, id, c); + if (f2 === e) break; + e = f2; + } + null !== e && d.stopPropagation(); + } else hd(a, b, d, null, c); + } +} +var id = null; +function Yc(a, b, c, d) { + id = null; + a = xb(d); + a = Wc(a); + if (null !== a) if (b = Vb(a), null === b) a = null; + else if (c = b.tag, 13 === c) { + a = Wb(b); + if (null !== a) return a; + a = null; + } else if (3 === c) { + if (b.stateNode.current.memoizedState.isDehydrated) return 3 === b.tag ? b.stateNode.containerInfo : null; + a = null; + } else b !== a && (a = null); + id = a; + return null; +} +function jd(a) { + switch (a) { + case "cancel": + case "click": + case "close": + case "contextmenu": + case "copy": + case "cut": + case "auxclick": + case "dblclick": + case "dragend": + case "dragstart": + case "drop": + case "focusin": + case "focusout": + case "input": + case "invalid": + case "keydown": + case "keypress": + case "keyup": + case "mousedown": + case "mouseup": + case "paste": + case "pause": + case "play": + case "pointercancel": + case "pointerdown": + case "pointerup": + case "ratechange": + case "reset": + case "resize": + case "seeked": + case "submit": + case "touchcancel": + case "touchend": + case "touchstart": + case "volumechange": + case "change": + case "selectionchange": + case "textInput": + case "compositionstart": + case "compositionend": + case "compositionupdate": + case "beforeblur": + case "afterblur": + case "beforeinput": + case "blur": + case "fullscreenchange": + case "focus": + case "hashchange": + case "popstate": + case "select": + case "selectstart": + return 1; + case "drag": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "mousemove": + case "mouseout": + case "mouseover": + case "pointermove": + case "pointerout": + case "pointerover": + case "scroll": + case "toggle": + case "touchmove": + case "wheel": + case "mouseenter": + case "mouseleave": + case "pointerenter": + case "pointerleave": + return 4; + case "message": + switch (ec()) { + case fc: + return 1; + case gc: + return 4; + case hc: + case ic: + return 16; + case jc: + return 536870912; + default: + return 16; + } + default: + return 16; + } +} +var kd = null, ld = null, md = null; +function nd() { + if (md) return md; + var a, b = ld, c = b.length, d, e = "value" in kd ? kd.value : kd.textContent, f2 = e.length; + for (a = 0; a < c && b[a] === e[a]; a++) ; + var g = c - a; + for (d = 1; d <= g && b[c - d] === e[f2 - d]; d++) ; + return md = e.slice(a, 1 < d ? 1 - d : void 0); +} +function od(a) { + var b = a.keyCode; + "charCode" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b; + 10 === a && (a = 13); + return 32 <= a || 13 === a ? a : 0; +} +function pd() { + return true; +} +function qd() { + return false; +} +function rd(a) { + function b(b2, d, e, f2, g) { + this._reactName = b2; + this._targetInst = e; + this.type = d; + this.nativeEvent = f2; + this.target = g; + this.currentTarget = null; + for (var c in a) a.hasOwnProperty(c) && (b2 = a[c], this[c] = b2 ? b2(f2) : f2[c]); + this.isDefaultPrevented = (null != f2.defaultPrevented ? f2.defaultPrevented : false === f2.returnValue) ? pd : qd; + this.isPropagationStopped = qd; + return this; + } + A(b.prototype, { preventDefault: function() { + this.defaultPrevented = true; + var a2 = this.nativeEvent; + a2 && (a2.preventDefault ? a2.preventDefault() : "unknown" !== typeof a2.returnValue && (a2.returnValue = false), this.isDefaultPrevented = pd); + }, stopPropagation: function() { + var a2 = this.nativeEvent; + a2 && (a2.stopPropagation ? a2.stopPropagation() : "unknown" !== typeof a2.cancelBubble && (a2.cancelBubble = true), this.isPropagationStopped = pd); + }, persist: function() { + }, isPersistent: pd }); + return b; +} +var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a) { + return a.timeStamp || Date.now(); +}, defaultPrevented: 0, isTrusted: 0 }, td = rd(sd), ud = A({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a) { + return void 0 === a.relatedTarget ? a.fromElement === a.srcElement ? a.toElement : a.fromElement : a.relatedTarget; +}, movementX: function(a) { + if ("movementX" in a) return a.movementX; + a !== yd && (yd && "mousemove" === a.type ? (wd = a.screenX - yd.screenX, xd = a.screenY - yd.screenY) : xd = wd = 0, yd = a); + return wd; +}, movementY: function(a) { + return "movementY" in a ? a.movementY : xd; +} }), Bd = rd(Ad), Cd = A({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A({}, sd, { clipboardData: function(a) { + return "clipboardData" in a ? a.clipboardData : window.clipboardData; +} }), Jd = rd(Id), Kd = A({}, sd, { data: 0 }), Ld = rd(Kd), Md = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" +}, Nd = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" +}, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; +function Pd(a) { + var b = this.nativeEvent; + return b.getModifierState ? b.getModifierState(a) : (a = Od[a]) ? !!b[a] : false; +} +function zd() { + return Pd; +} +var Qd = A({}, ud, { key: function(a) { + if (a.key) { + var b = Md[a.key] || a.key; + if ("Unidentified" !== b) return b; + } + return "keypress" === a.type ? (a = od(a), 13 === a ? "Enter" : String.fromCharCode(a)) : "keydown" === a.type || "keyup" === a.type ? Nd[a.keyCode] || "Unidentified" : ""; +}, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a) { + return "keypress" === a.type ? od(a) : 0; +}, keyCode: function(a) { + return "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; +}, which: function(a) { + return "keypress" === a.type ? od(a) : "keydown" === a.type || "keyup" === a.type ? a.keyCode : 0; +} }), Rd = rd(Qd), Sd = A({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Td = rd(Sd), Ud = A({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }), Vd = rd(Ud), Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A({}, Ad, { + deltaX: function(a) { + return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0; + }, + deltaY: function(a) { + return "deltaY" in a ? a.deltaY : "wheelDeltaY" in a ? -a.wheelDeltaY : "wheelDelta" in a ? -a.wheelDelta : 0; + }, + deltaZ: 0, + deltaMode: 0 +}), Zd = rd(Yd), $d = [9, 13, 27, 32], ae = ia && "CompositionEvent" in window, be = null; +ia && "documentMode" in document && (be = document.documentMode); +var ce = ia && "TextEvent" in window && !be, de = ia && (!ae || be && 8 < be && 11 >= be), ee = String.fromCharCode(32), fe = false; +function ge(a, b) { + switch (a) { + case "keyup": + return -1 !== $d.indexOf(b.keyCode); + case "keydown": + return 229 !== b.keyCode; + case "keypress": + case "mousedown": + case "focusout": + return true; + default: + return false; + } +} +function he(a) { + a = a.detail; + return "object" === typeof a && "data" in a ? a.data : null; +} +var ie = false; +function je(a, b) { + switch (a) { + case "compositionend": + return he(b); + case "keypress": + if (32 !== b.which) return null; + fe = true; + return ee; + case "textInput": + return a = b.data, a === ee && fe ? null : a; + default: + return null; + } +} +function ke(a, b) { + if (ie) return "compositionend" === a || !ae && ge(a, b) ? (a = nd(), md = ld = kd = null, ie = false, a) : null; + switch (a) { + case "paste": + return null; + case "keypress": + if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) { + if (b.char && 1 < b.char.length) return b.char; + if (b.which) return String.fromCharCode(b.which); + } + return null; + case "compositionend": + return de && "ko" !== b.locale ? null : b.data; + default: + return null; + } +} +var le = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true }; +function me(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return "input" === b ? !!le[a.type] : "textarea" === b ? true : false; +} +function ne(a, b, c, d) { + Eb(d); + b = oe(b, "onChange"); + 0 < b.length && (c = new td("onChange", "change", null, c, d), a.push({ event: c, listeners: b })); +} +var pe = null, qe = null; +function re(a) { + se(a, 0); +} +function te(a) { + var b = ue(a); + if (Wa(b)) return a; +} +function ve(a, b) { + if ("change" === a) return b; +} +var we = false; +if (ia) { + var xe; + if (ia) { + var ye = "oninput" in document; + if (!ye) { + var ze = document.createElement("div"); + ze.setAttribute("oninput", "return;"); + ye = "function" === typeof ze.oninput; + } + xe = ye; + } else xe = false; + we = xe && (!document.documentMode || 9 < document.documentMode); +} +function Ae() { + pe && (pe.detachEvent("onpropertychange", Be), qe = pe = null); +} +function Be(a) { + if ("value" === a.propertyName && te(qe)) { + var b = []; + ne(b, qe, a, xb(a)); + Jb(re, b); + } +} +function Ce(a, b, c) { + "focusin" === a ? (Ae(), pe = b, qe = c, pe.attachEvent("onpropertychange", Be)) : "focusout" === a && Ae(); +} +function De(a) { + if ("selectionchange" === a || "keyup" === a || "keydown" === a) return te(qe); +} +function Ee(a, b) { + if ("click" === a) return te(b); +} +function Fe(a, b) { + if ("input" === a || "change" === a) return te(b); +} +function Ge(a, b) { + return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b; +} +var He = "function" === typeof Object.is ? Object.is : Ge; +function Ie(a, b) { + if (He(a, b)) return true; + if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return false; + var c = Object.keys(a), d = Object.keys(b); + if (c.length !== d.length) return false; + for (d = 0; d < c.length; d++) { + var e = c[d]; + if (!ja.call(b, e) || !He(a[e], b[e])) return false; + } + return true; +} +function Je(a) { + for (; a && a.firstChild; ) a = a.firstChild; + return a; +} +function Ke(a, b) { + var c = Je(a); + a = 0; + for (var d; c; ) { + if (3 === c.nodeType) { + d = a + c.textContent.length; + if (a <= b && d >= b) return { node: c, offset: b - a }; + a = d; + } + a: { + for (; c; ) { + if (c.nextSibling) { + c = c.nextSibling; + break a; + } + c = c.parentNode; + } + c = void 0; + } + c = Je(c); + } +} +function Le(a, b) { + return a && b ? a === b ? true : a && 3 === a.nodeType ? false : b && 3 === b.nodeType ? Le(a, b.parentNode) : "contains" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : false : false; +} +function Me() { + for (var a = window, b = Xa(); b instanceof a.HTMLIFrameElement; ) { + try { + var c = "string" === typeof b.contentWindow.location.href; + } catch (d) { + c = false; + } + if (c) a = b.contentWindow; + else break; + b = Xa(a.document); + } + return b; +} +function Ne(a) { + var b = a && a.nodeName && a.nodeName.toLowerCase(); + return b && ("input" === b && ("text" === a.type || "search" === a.type || "tel" === a.type || "url" === a.type || "password" === a.type) || "textarea" === b || "true" === a.contentEditable); +} +function Oe(a) { + var b = Me(), c = a.focusedElem, d = a.selectionRange; + if (b !== c && c && c.ownerDocument && Le(c.ownerDocument.documentElement, c)) { + if (null !== d && Ne(c)) { + if (b = d.start, a = d.end, void 0 === a && (a = b), "selectionStart" in c) c.selectionStart = b, c.selectionEnd = Math.min(a, c.value.length); + else if (a = (b = c.ownerDocument || document) && b.defaultView || window, a.getSelection) { + a = a.getSelection(); + var e = c.textContent.length, f2 = Math.min(d.start, e); + d = void 0 === d.end ? f2 : Math.min(d.end, e); + !a.extend && f2 > d && (e = d, d = f2, f2 = e); + e = Ke(c, f2); + var g = Ke( + c, + d + ); + e && g && (1 !== a.rangeCount || a.anchorNode !== e.node || a.anchorOffset !== e.offset || a.focusNode !== g.node || a.focusOffset !== g.offset) && (b = b.createRange(), b.setStart(e.node, e.offset), a.removeAllRanges(), f2 > d ? (a.addRange(b), a.extend(g.node, g.offset)) : (b.setEnd(g.node, g.offset), a.addRange(b))); + } + } + b = []; + for (a = c; a = a.parentNode; ) 1 === a.nodeType && b.push({ element: a, left: a.scrollLeft, top: a.scrollTop }); + "function" === typeof c.focus && c.focus(); + for (c = 0; c < b.length; c++) a = b[c], a.element.scrollLeft = a.left, a.element.scrollTop = a.top; + } +} +var Pe = ia && "documentMode" in document && 11 >= document.documentMode, Qe = null, Re = null, Se = null, Te = false; +function Ue(a, b, c) { + var d = c.window === c ? c.document : 9 === c.nodeType ? c : c.ownerDocument; + Te || null == Qe || Qe !== Xa(d) || (d = Qe, "selectionStart" in d && Ne(d) ? d = { start: d.selectionStart, end: d.selectionEnd } : (d = (d.ownerDocument && d.ownerDocument.defaultView || window).getSelection(), d = { anchorNode: d.anchorNode, anchorOffset: d.anchorOffset, focusNode: d.focusNode, focusOffset: d.focusOffset }), Se && Ie(Se, d) || (Se = d, d = oe(Re, "onSelect"), 0 < d.length && (b = new td("onSelect", "select", null, b, c), a.push({ event: b, listeners: d }), b.target = Qe))); +} +function Ve(a, b) { + var c = {}; + c[a.toLowerCase()] = b.toLowerCase(); + c["Webkit" + a] = "webkit" + b; + c["Moz" + a] = "moz" + b; + return c; +} +var We = { animationend: Ve("Animation", "AnimationEnd"), animationiteration: Ve("Animation", "AnimationIteration"), animationstart: Ve("Animation", "AnimationStart"), transitionend: Ve("Transition", "TransitionEnd") }, Xe = {}, Ye = {}; +ia && (Ye = document.createElement("div").style, "AnimationEvent" in window || (delete We.animationend.animation, delete We.animationiteration.animation, delete We.animationstart.animation), "TransitionEvent" in window || delete We.transitionend.transition); +function Ze(a) { + if (Xe[a]) return Xe[a]; + if (!We[a]) return a; + var b = We[a], c; + for (c in b) if (b.hasOwnProperty(c) && c in Ye) return Xe[a] = b[c]; + return a; +} +var $e = Ze("animationend"), af = Ze("animationiteration"), bf = Ze("animationstart"), cf = Ze("transitionend"), df = /* @__PURE__ */ new Map(), ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); +function ff(a, b) { + df.set(a, b); + fa(b, [a]); +} +for (var gf = 0; gf < ef.length; gf++) { + var hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1); + ff(jf, "on" + kf); +} +ff($e, "onAnimationEnd"); +ff(af, "onAnimationIteration"); +ff(bf, "onAnimationStart"); +ff("dblclick", "onDoubleClick"); +ff("focusin", "onFocus"); +ff("focusout", "onBlur"); +ff(cf, "onTransitionEnd"); +ha("onMouseEnter", ["mouseout", "mouseover"]); +ha("onMouseLeave", ["mouseout", "mouseover"]); +ha("onPointerEnter", ["pointerout", "pointerover"]); +ha("onPointerLeave", ["pointerout", "pointerover"]); +fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); +fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); +fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); +fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf)); +function nf(a, b, c) { + var d = a.type || "unknown-event"; + a.currentTarget = c; + Ub(d, b, void 0, a); + a.currentTarget = null; +} +function se(a, b) { + b = 0 !== (b & 4); + for (var c = 0; c < a.length; c++) { + var d = a[c], e = d.event; + d = d.listeners; + a: { + var f2 = void 0; + if (b) for (var g = d.length - 1; 0 <= g; g--) { + var h = d[g], k2 = h.instance, l2 = h.currentTarget; + h = h.listener; + if (k2 !== f2 && e.isPropagationStopped()) break a; + nf(e, h, l2); + f2 = k2; + } + else for (g = 0; g < d.length; g++) { + h = d[g]; + k2 = h.instance; + l2 = h.currentTarget; + h = h.listener; + if (k2 !== f2 && e.isPropagationStopped()) break a; + nf(e, h, l2); + f2 = k2; + } + } + } + if (Qb) throw a = Rb, Qb = false, Rb = null, a; +} +function D(a, b) { + var c = b[of]; + void 0 === c && (c = b[of] = /* @__PURE__ */ new Set()); + var d = a + "__bubble"; + c.has(d) || (pf(b, a, 2, false), c.add(d)); +} +function qf(a, b, c) { + var d = 0; + b && (d |= 4); + pf(c, a, d, b); +} +var rf = "_reactListening" + Math.random().toString(36).slice(2); +function sf(a) { + if (!a[rf]) { + a[rf] = true; + da.forEach(function(b2) { + "selectionchange" !== b2 && (mf.has(b2) || qf(b2, false, a), qf(b2, true, a)); + }); + var b = 9 === a.nodeType ? a : a.ownerDocument; + null === b || b[rf] || (b[rf] = true, qf("selectionchange", false, b)); + } +} +function pf(a, b, c, d) { + switch (jd(b)) { + case 1: + var e = ed; + break; + case 4: + e = gd; + break; + default: + e = fd; + } + c = e.bind(null, b, c, a); + e = void 0; + !Lb || "touchstart" !== b && "touchmove" !== b && "wheel" !== b || (e = true); + d ? void 0 !== e ? a.addEventListener(b, c, { capture: true, passive: e }) : a.addEventListener(b, c, true) : void 0 !== e ? a.addEventListener(b, c, { passive: e }) : a.addEventListener(b, c, false); +} +function hd(a, b, c, d, e) { + var f2 = d; + if (0 === (b & 1) && 0 === (b & 2) && null !== d) a: for (; ; ) { + if (null === d) return; + var g = d.tag; + if (3 === g || 4 === g) { + var h = d.stateNode.containerInfo; + if (h === e || 8 === h.nodeType && h.parentNode === e) break; + if (4 === g) for (g = d.return; null !== g; ) { + var k2 = g.tag; + if (3 === k2 || 4 === k2) { + if (k2 = g.stateNode.containerInfo, k2 === e || 8 === k2.nodeType && k2.parentNode === e) return; + } + g = g.return; + } + for (; null !== h; ) { + g = Wc(h); + if (null === g) return; + k2 = g.tag; + if (5 === k2 || 6 === k2) { + d = f2 = g; + continue a; + } + h = h.parentNode; + } + } + d = d.return; + } + Jb(function() { + var d2 = f2, e2 = xb(c), g2 = []; + a: { + var h2 = df.get(a); + if (void 0 !== h2) { + var k3 = td, n2 = a; + switch (a) { + case "keypress": + if (0 === od(c)) break a; + case "keydown": + case "keyup": + k3 = Rd; + break; + case "focusin": + n2 = "focus"; + k3 = Fd; + break; + case "focusout": + n2 = "blur"; + k3 = Fd; + break; + case "beforeblur": + case "afterblur": + k3 = Fd; + break; + case "click": + if (2 === c.button) break a; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + k3 = Bd; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + k3 = Dd; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + k3 = Vd; + break; + case $e: + case af: + case bf: + k3 = Hd; + break; + case cf: + k3 = Xd; + break; + case "scroll": + k3 = vd; + break; + case "wheel": + k3 = Zd; + break; + case "copy": + case "cut": + case "paste": + k3 = Jd; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + k3 = Td; + } + var t2 = 0 !== (b & 4), J2 = !t2 && "scroll" === a, x2 = t2 ? null !== h2 ? h2 + "Capture" : null : h2; + t2 = []; + for (var w2 = d2, u2; null !== w2; ) { + u2 = w2; + var F2 = u2.stateNode; + 5 === u2.tag && null !== F2 && (u2 = F2, null !== x2 && (F2 = Kb(w2, x2), null != F2 && t2.push(tf(w2, F2, u2)))); + if (J2) break; + w2 = w2.return; + } + 0 < t2.length && (h2 = new k3(h2, n2, null, c, e2), g2.push({ event: h2, listeners: t2 })); + } + } + if (0 === (b & 7)) { + a: { + h2 = "mouseover" === a || "pointerover" === a; + k3 = "mouseout" === a || "pointerout" === a; + if (h2 && c !== wb && (n2 = c.relatedTarget || c.fromElement) && (Wc(n2) || n2[uf])) break a; + if (k3 || h2) { + h2 = e2.window === e2 ? e2 : (h2 = e2.ownerDocument) ? h2.defaultView || h2.parentWindow : window; + if (k3) { + if (n2 = c.relatedTarget || c.toElement, k3 = d2, n2 = n2 ? Wc(n2) : null, null !== n2 && (J2 = Vb(n2), n2 !== J2 || 5 !== n2.tag && 6 !== n2.tag)) n2 = null; + } else k3 = null, n2 = d2; + if (k3 !== n2) { + t2 = Bd; + F2 = "onMouseLeave"; + x2 = "onMouseEnter"; + w2 = "mouse"; + if ("pointerout" === a || "pointerover" === a) t2 = Td, F2 = "onPointerLeave", x2 = "onPointerEnter", w2 = "pointer"; + J2 = null == k3 ? h2 : ue(k3); + u2 = null == n2 ? h2 : ue(n2); + h2 = new t2(F2, w2 + "leave", k3, c, e2); + h2.target = J2; + h2.relatedTarget = u2; + F2 = null; + Wc(e2) === d2 && (t2 = new t2(x2, w2 + "enter", n2, c, e2), t2.target = u2, t2.relatedTarget = J2, F2 = t2); + J2 = F2; + if (k3 && n2) b: { + t2 = k3; + x2 = n2; + w2 = 0; + for (u2 = t2; u2; u2 = vf(u2)) w2++; + u2 = 0; + for (F2 = x2; F2; F2 = vf(F2)) u2++; + for (; 0 < w2 - u2; ) t2 = vf(t2), w2--; + for (; 0 < u2 - w2; ) x2 = vf(x2), u2--; + for (; w2--; ) { + if (t2 === x2 || null !== x2 && t2 === x2.alternate) break b; + t2 = vf(t2); + x2 = vf(x2); + } + t2 = null; + } + else t2 = null; + null !== k3 && wf(g2, h2, k3, t2, false); + null !== n2 && null !== J2 && wf(g2, J2, n2, t2, true); + } + } + } + a: { + h2 = d2 ? ue(d2) : window; + k3 = h2.nodeName && h2.nodeName.toLowerCase(); + if ("select" === k3 || "input" === k3 && "file" === h2.type) var na = ve; + else if (me(h2)) if (we) na = Fe; + else { + na = De; + var xa = Ce; + } + else (k3 = h2.nodeName) && "input" === k3.toLowerCase() && ("checkbox" === h2.type || "radio" === h2.type) && (na = Ee); + if (na && (na = na(a, d2))) { + ne(g2, na, c, e2); + break a; + } + xa && xa(a, h2, d2); + "focusout" === a && (xa = h2._wrapperState) && xa.controlled && "number" === h2.type && cb(h2, "number", h2.value); + } + xa = d2 ? ue(d2) : window; + switch (a) { + case "focusin": + if (me(xa) || "true" === xa.contentEditable) Qe = xa, Re = d2, Se = null; + break; + case "focusout": + Se = Re = Qe = null; + break; + case "mousedown": + Te = true; + break; + case "contextmenu": + case "mouseup": + case "dragend": + Te = false; + Ue(g2, c, e2); + break; + case "selectionchange": + if (Pe) break; + case "keydown": + case "keyup": + Ue(g2, c, e2); + } + var $a; + if (ae) b: { + switch (a) { + case "compositionstart": + var ba = "onCompositionStart"; + break b; + case "compositionend": + ba = "onCompositionEnd"; + break b; + case "compositionupdate": + ba = "onCompositionUpdate"; + break b; + } + ba = void 0; + } + else ie ? ge(a, c) && (ba = "onCompositionEnd") : "keydown" === a && 229 === c.keyCode && (ba = "onCompositionStart"); + ba && (de && "ko" !== c.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e2, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe(d2, ba), 0 < xa.length && (ba = new Ld(ba, a, null, c, e2), g2.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he(c), null !== $a && (ba.data = $a)))); + if ($a = ce ? je(a, c) : ke(a, c)) d2 = oe(d2, "onBeforeInput"), 0 < d2.length && (e2 = new Ld("onBeforeInput", "beforeinput", null, c, e2), g2.push({ event: e2, listeners: d2 }), e2.data = $a); + } + se(g2, b); + }); +} +function tf(a, b, c) { + return { instance: a, listener: b, currentTarget: c }; +} +function oe(a, b) { + for (var c = b + "Capture", d = []; null !== a; ) { + var e = a, f2 = e.stateNode; + 5 === e.tag && null !== f2 && (e = f2, f2 = Kb(a, c), null != f2 && d.unshift(tf(a, f2, e)), f2 = Kb(a, b), null != f2 && d.push(tf(a, f2, e))); + a = a.return; + } + return d; +} +function vf(a) { + if (null === a) return null; + do + a = a.return; + while (a && 5 !== a.tag); + return a ? a : null; +} +function wf(a, b, c, d, e) { + for (var f2 = b._reactName, g = []; null !== c && c !== d; ) { + var h = c, k2 = h.alternate, l2 = h.stateNode; + if (null !== k2 && k2 === d) break; + 5 === h.tag && null !== l2 && (h = l2, e ? (k2 = Kb(c, f2), null != k2 && g.unshift(tf(c, k2, h))) : e || (k2 = Kb(c, f2), null != k2 && g.push(tf(c, k2, h)))); + c = c.return; + } + 0 !== g.length && a.push({ event: b, listeners: g }); +} +var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g; +function zf(a) { + return ("string" === typeof a ? a : "" + a).replace(xf, "\n").replace(yf, ""); +} +function Af(a, b, c) { + b = zf(b); + if (zf(a) !== b && c) throw Error(p(425)); +} +function Bf() { +} +var Cf = null, Df = null; +function Ef(a, b) { + return "textarea" === a || "noscript" === a || "string" === typeof b.children || "number" === typeof b.children || "object" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html; +} +var Ff = "function" === typeof setTimeout ? setTimeout : void 0, Gf = "function" === typeof clearTimeout ? clearTimeout : void 0, Hf = "function" === typeof Promise ? Promise : void 0, Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function(a) { + return Hf.resolve(null).then(a).catch(If); +} : Ff; +function If(a) { + setTimeout(function() { + throw a; + }); +} +function Kf(a, b) { + var c = b, d = 0; + do { + var e = c.nextSibling; + a.removeChild(c); + if (e && 8 === e.nodeType) if (c = e.data, "/$" === c) { + if (0 === d) { + a.removeChild(e); + bd(b); + return; + } + d--; + } else "$" !== c && "$?" !== c && "$!" !== c || d++; + c = e; + } while (c); + bd(b); +} +function Lf(a) { + for (; null != a; a = a.nextSibling) { + var b = a.nodeType; + if (1 === b || 3 === b) break; + if (8 === b) { + b = a.data; + if ("$" === b || "$!" === b || "$?" === b) break; + if ("/$" === b) return null; + } + } + return a; +} +function Mf(a) { + a = a.previousSibling; + for (var b = 0; a; ) { + if (8 === a.nodeType) { + var c = a.data; + if ("$" === c || "$!" === c || "$?" === c) { + if (0 === b) return a; + b--; + } else "/$" === c && b++; + } + a = a.previousSibling; + } + return null; +} +var Nf = Math.random().toString(36).slice(2), Of = "__reactFiber$" + Nf, Pf = "__reactProps$" + Nf, uf = "__reactContainer$" + Nf, of = "__reactEvents$" + Nf, Qf = "__reactListeners$" + Nf, Rf = "__reactHandles$" + Nf; +function Wc(a) { + var b = a[Of]; + if (b) return b; + for (var c = a.parentNode; c; ) { + if (b = c[uf] || c[Of]) { + c = b.alternate; + if (null !== b.child || null !== c && null !== c.child) for (a = Mf(a); null !== a; ) { + if (c = a[Of]) return c; + a = Mf(a); + } + return b; + } + a = c; + c = a.parentNode; + } + return null; +} +function Cb(a) { + a = a[Of] || a[uf]; + return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a; +} +function ue(a) { + if (5 === a.tag || 6 === a.tag) return a.stateNode; + throw Error(p(33)); +} +function Db(a) { + return a[Pf] || null; +} +var Sf = [], Tf = -1; +function Uf(a) { + return { current: a }; +} +function E(a) { + 0 > Tf || (a.current = Sf[Tf], Sf[Tf] = null, Tf--); +} +function G(a, b) { + Tf++; + Sf[Tf] = a.current; + a.current = b; +} +var Vf = {}, H = Uf(Vf), Wf = Uf(false), Xf = Vf; +function Yf(a, b) { + var c = a.type.contextTypes; + if (!c) return Vf; + var d = a.stateNode; + if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext; + var e = {}, f2; + for (f2 in c) e[f2] = b[f2]; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e); + return e; +} +function Zf(a) { + a = a.childContextTypes; + return null !== a && void 0 !== a; +} +function $f() { + E(Wf); + E(H); +} +function ag(a, b, c) { + if (H.current !== Vf) throw Error(p(168)); + G(H, b); + G(Wf, c); +} +function bg(a, b, c) { + var d = a.stateNode; + b = b.childContextTypes; + if ("function" !== typeof d.getChildContext) return c; + d = d.getChildContext(); + for (var e in d) if (!(e in b)) throw Error(p(108, Ra(a) || "Unknown", e)); + return A({}, c, d); +} +function cg(a) { + a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Vf; + Xf = H.current; + G(H, a); + G(Wf, Wf.current); + return true; +} +function dg(a, b, c) { + var d = a.stateNode; + if (!d) throw Error(p(169)); + c ? (a = bg(a, b, Xf), d.__reactInternalMemoizedMergedChildContext = a, E(Wf), E(H), G(H, a)) : E(Wf); + G(Wf, c); +} +var eg = null, fg = false, gg = false; +function hg(a) { + null === eg ? eg = [a] : eg.push(a); +} +function ig(a) { + fg = true; + hg(a); +} +function jg() { + if (!gg && null !== eg) { + gg = true; + var a = 0, b = C; + try { + var c = eg; + for (C = 1; a < c.length; a++) { + var d = c[a]; + do + d = d(true); + while (null !== d); + } + eg = null; + fg = false; + } catch (e) { + throw null !== eg && (eg = eg.slice(a + 1)), ac(fc, jg), e; + } finally { + C = b, gg = false; + } + } + return null; +} +var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = ""; +function tg(a, b) { + kg[lg++] = ng; + kg[lg++] = mg; + mg = a; + ng = b; +} +function ug(a, b, c) { + og[pg++] = rg; + og[pg++] = sg; + og[pg++] = qg; + qg = a; + var d = rg; + a = sg; + var e = 32 - oc(d) - 1; + d &= ~(1 << e); + c += 1; + var f2 = 32 - oc(b) + e; + if (30 < f2) { + var g = e - e % 5; + f2 = (d & (1 << g) - 1).toString(32); + d >>= g; + e -= g; + rg = 1 << 32 - oc(b) + e | c << e | d; + sg = f2 + a; + } else rg = 1 << f2 | c << e | d, sg = a; +} +function vg(a) { + null !== a.return && (tg(a, 1), ug(a, 1, 0)); +} +function wg(a) { + for (; a === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null; + for (; a === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null; +} +var xg = null, yg = null, I = false, zg = null; +function Ag(a, b) { + var c = Bg(5, null, null, 0); + c.elementType = "DELETED"; + c.stateNode = b; + c.return = a; + b = a.deletions; + null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c); +} +function Cg(a, b) { + switch (a.tag) { + case 5: + var c = a.type; + b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b; + return null !== b ? (a.stateNode = b, xg = a, yg = Lf(b.firstChild), true) : false; + case 6: + return b = "" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, xg = a, yg = null, true) : false; + case 13: + return b = 8 !== b.nodeType ? null : b, null !== b ? (c = null !== qg ? { id: rg, overflow: sg } : null, a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 }, c = Bg(18, null, null, 0), c.stateNode = b, c.return = a, a.child = c, xg = a, yg = null, true) : false; + default: + return false; + } +} +function Dg(a) { + return 0 !== (a.mode & 1) && 0 === (a.flags & 128); +} +function Eg(a) { + if (I) { + var b = yg; + if (b) { + var c = b; + if (!Cg(a, b)) { + if (Dg(a)) throw Error(p(418)); + b = Lf(c.nextSibling); + var d = xg; + b && Cg(a, b) ? Ag(d, c) : (a.flags = a.flags & -4097 | 2, I = false, xg = a); + } + } else { + if (Dg(a)) throw Error(p(418)); + a.flags = a.flags & -4097 | 2; + I = false; + xg = a; + } + } +} +function Fg(a) { + for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return; + xg = a; +} +function Gg(a) { + if (a !== xg) return false; + if (!I) return Fg(a), I = true, false; + var b; + (b = 3 !== a.tag) && !(b = 5 !== a.tag) && (b = a.type, b = "head" !== b && "body" !== b && !Ef(a.type, a.memoizedProps)); + if (b && (b = yg)) { + if (Dg(a)) throw Hg(), Error(p(418)); + for (; b; ) Ag(a, b), b = Lf(b.nextSibling); + } + Fg(a); + if (13 === a.tag) { + a = a.memoizedState; + a = null !== a ? a.dehydrated : null; + if (!a) throw Error(p(317)); + a: { + a = a.nextSibling; + for (b = 0; a; ) { + if (8 === a.nodeType) { + var c = a.data; + if ("/$" === c) { + if (0 === b) { + yg = Lf(a.nextSibling); + break a; + } + b--; + } else "$" !== c && "$!" !== c && "$?" !== c || b++; + } + a = a.nextSibling; + } + yg = null; + } + } else yg = xg ? Lf(a.stateNode.nextSibling) : null; + return true; +} +function Hg() { + for (var a = yg; a; ) a = Lf(a.nextSibling); +} +function Ig() { + yg = xg = null; + I = false; +} +function Jg(a) { + null === zg ? zg = [a] : zg.push(a); +} +var Kg = ua.ReactCurrentBatchConfig; +function Lg(a, b, c) { + a = c.ref; + if (null !== a && "function" !== typeof a && "object" !== typeof a) { + if (c._owner) { + c = c._owner; + if (c) { + if (1 !== c.tag) throw Error(p(309)); + var d = c.stateNode; + } + if (!d) throw Error(p(147, a)); + var e = d, f2 = "" + a; + if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === f2) return b.ref; + b = function(a2) { + var b2 = e.refs; + null === a2 ? delete b2[f2] : b2[f2] = a2; + }; + b._stringRef = f2; + return b; + } + if ("string" !== typeof a) throw Error(p(284)); + if (!c._owner) throw Error(p(290, a)); + } + return a; +} +function Mg(a, b) { + a = Object.prototype.toString.call(b); + throw Error(p(31, "[object Object]" === a ? "object with keys {" + Object.keys(b).join(", ") + "}" : a)); +} +function Ng(a) { + var b = a._init; + return b(a._payload); +} +function Og(a) { + function b(b2, c2) { + if (a) { + var d2 = b2.deletions; + null === d2 ? (b2.deletions = [c2], b2.flags |= 16) : d2.push(c2); + } + } + function c(c2, d2) { + if (!a) return null; + for (; null !== d2; ) b(c2, d2), d2 = d2.sibling; + return null; + } + function d(a2, b2) { + for (a2 = /* @__PURE__ */ new Map(); null !== b2; ) null !== b2.key ? a2.set(b2.key, b2) : a2.set(b2.index, b2), b2 = b2.sibling; + return a2; + } + function e(a2, b2) { + a2 = Pg(a2, b2); + a2.index = 0; + a2.sibling = null; + return a2; + } + function f2(b2, c2, d2) { + b2.index = d2; + if (!a) return b2.flags |= 1048576, c2; + d2 = b2.alternate; + if (null !== d2) return d2 = d2.index, d2 < c2 ? (b2.flags |= 2, c2) : d2; + b2.flags |= 2; + return c2; + } + function g(b2) { + a && null === b2.alternate && (b2.flags |= 2); + return b2; + } + function h(a2, b2, c2, d2) { + if (null === b2 || 6 !== b2.tag) return b2 = Qg(c2, a2.mode, d2), b2.return = a2, b2; + b2 = e(b2, c2); + b2.return = a2; + return b2; + } + function k2(a2, b2, c2, d2) { + var f3 = c2.type; + if (f3 === ya) return m2(a2, b2, c2.props.children, d2, c2.key); + if (null !== b2 && (b2.elementType === f3 || "object" === typeof f3 && null !== f3 && f3.$$typeof === Ha && Ng(f3) === b2.type)) return d2 = e(b2, c2.props), d2.ref = Lg(a2, b2, c2), d2.return = a2, d2; + d2 = Rg(c2.type, c2.key, c2.props, null, a2.mode, d2); + d2.ref = Lg(a2, b2, c2); + d2.return = a2; + return d2; + } + function l2(a2, b2, c2, d2) { + if (null === b2 || 4 !== b2.tag || b2.stateNode.containerInfo !== c2.containerInfo || b2.stateNode.implementation !== c2.implementation) return b2 = Sg(c2, a2.mode, d2), b2.return = a2, b2; + b2 = e(b2, c2.children || []); + b2.return = a2; + return b2; + } + function m2(a2, b2, c2, d2, f3) { + if (null === b2 || 7 !== b2.tag) return b2 = Tg(c2, a2.mode, d2, f3), b2.return = a2, b2; + b2 = e(b2, c2); + b2.return = a2; + return b2; + } + function q2(a2, b2, c2) { + if ("string" === typeof b2 && "" !== b2 || "number" === typeof b2) return b2 = Qg("" + b2, a2.mode, c2), b2.return = a2, b2; + if ("object" === typeof b2 && null !== b2) { + switch (b2.$$typeof) { + case va: + return c2 = Rg(b2.type, b2.key, b2.props, null, a2.mode, c2), c2.ref = Lg(a2, null, b2), c2.return = a2, c2; + case wa: + return b2 = Sg(b2, a2.mode, c2), b2.return = a2, b2; + case Ha: + var d2 = b2._init; + return q2(a2, d2(b2._payload), c2); + } + if (eb(b2) || Ka(b2)) return b2 = Tg(b2, a2.mode, c2, null), b2.return = a2, b2; + Mg(a2, b2); + } + return null; + } + function r2(a2, b2, c2, d2) { + var e2 = null !== b2 ? b2.key : null; + if ("string" === typeof c2 && "" !== c2 || "number" === typeof c2) return null !== e2 ? null : h(a2, b2, "" + c2, d2); + if ("object" === typeof c2 && null !== c2) { + switch (c2.$$typeof) { + case va: + return c2.key === e2 ? k2(a2, b2, c2, d2) : null; + case wa: + return c2.key === e2 ? l2(a2, b2, c2, d2) : null; + case Ha: + return e2 = c2._init, r2( + a2, + b2, + e2(c2._payload), + d2 + ); + } + if (eb(c2) || Ka(c2)) return null !== e2 ? null : m2(a2, b2, c2, d2, null); + Mg(a2, c2); + } + return null; + } + function y2(a2, b2, c2, d2, e2) { + if ("string" === typeof d2 && "" !== d2 || "number" === typeof d2) return a2 = a2.get(c2) || null, h(b2, a2, "" + d2, e2); + if ("object" === typeof d2 && null !== d2) { + switch (d2.$$typeof) { + case va: + return a2 = a2.get(null === d2.key ? c2 : d2.key) || null, k2(b2, a2, d2, e2); + case wa: + return a2 = a2.get(null === d2.key ? c2 : d2.key) || null, l2(b2, a2, d2, e2); + case Ha: + var f3 = d2._init; + return y2(a2, b2, c2, f3(d2._payload), e2); + } + if (eb(d2) || Ka(d2)) return a2 = a2.get(c2) || null, m2(b2, a2, d2, e2, null); + Mg(b2, d2); + } + return null; + } + function n2(e2, g2, h2, k3) { + for (var l3 = null, m3 = null, u2 = g2, w2 = g2 = 0, x2 = null; null !== u2 && w2 < h2.length; w2++) { + u2.index > w2 ? (x2 = u2, u2 = null) : x2 = u2.sibling; + var n3 = r2(e2, u2, h2[w2], k3); + if (null === n3) { + null === u2 && (u2 = x2); + break; + } + a && u2 && null === n3.alternate && b(e2, u2); + g2 = f2(n3, g2, w2); + null === m3 ? l3 = n3 : m3.sibling = n3; + m3 = n3; + u2 = x2; + } + if (w2 === h2.length) return c(e2, u2), I && tg(e2, w2), l3; + if (null === u2) { + for (; w2 < h2.length; w2++) u2 = q2(e2, h2[w2], k3), null !== u2 && (g2 = f2(u2, g2, w2), null === m3 ? l3 = u2 : m3.sibling = u2, m3 = u2); + I && tg(e2, w2); + return l3; + } + for (u2 = d(e2, u2); w2 < h2.length; w2++) x2 = y2(u2, e2, w2, h2[w2], k3), null !== x2 && (a && null !== x2.alternate && u2.delete(null === x2.key ? w2 : x2.key), g2 = f2(x2, g2, w2), null === m3 ? l3 = x2 : m3.sibling = x2, m3 = x2); + a && u2.forEach(function(a2) { + return b(e2, a2); + }); + I && tg(e2, w2); + return l3; + } + function t2(e2, g2, h2, k3) { + var l3 = Ka(h2); + if ("function" !== typeof l3) throw Error(p(150)); + h2 = l3.call(h2); + if (null == h2) throw Error(p(151)); + for (var u2 = l3 = null, m3 = g2, w2 = g2 = 0, x2 = null, n3 = h2.next(); null !== m3 && !n3.done; w2++, n3 = h2.next()) { + m3.index > w2 ? (x2 = m3, m3 = null) : x2 = m3.sibling; + var t3 = r2(e2, m3, n3.value, k3); + if (null === t3) { + null === m3 && (m3 = x2); + break; + } + a && m3 && null === t3.alternate && b(e2, m3); + g2 = f2(t3, g2, w2); + null === u2 ? l3 = t3 : u2.sibling = t3; + u2 = t3; + m3 = x2; + } + if (n3.done) return c( + e2, + m3 + ), I && tg(e2, w2), l3; + if (null === m3) { + for (; !n3.done; w2++, n3 = h2.next()) n3 = q2(e2, n3.value, k3), null !== n3 && (g2 = f2(n3, g2, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3); + I && tg(e2, w2); + return l3; + } + for (m3 = d(e2, m3); !n3.done; w2++, n3 = h2.next()) n3 = y2(m3, e2, w2, n3.value, k3), null !== n3 && (a && null !== n3.alternate && m3.delete(null === n3.key ? w2 : n3.key), g2 = f2(n3, g2, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3); + a && m3.forEach(function(a2) { + return b(e2, a2); + }); + I && tg(e2, w2); + return l3; + } + function J2(a2, d2, f3, h2) { + "object" === typeof f3 && null !== f3 && f3.type === ya && null === f3.key && (f3 = f3.props.children); + if ("object" === typeof f3 && null !== f3) { + switch (f3.$$typeof) { + case va: + a: { + for (var k3 = f3.key, l3 = d2; null !== l3; ) { + if (l3.key === k3) { + k3 = f3.type; + if (k3 === ya) { + if (7 === l3.tag) { + c(a2, l3.sibling); + d2 = e(l3, f3.props.children); + d2.return = a2; + a2 = d2; + break a; + } + } else if (l3.elementType === k3 || "object" === typeof k3 && null !== k3 && k3.$$typeof === Ha && Ng(k3) === l3.type) { + c(a2, l3.sibling); + d2 = e(l3, f3.props); + d2.ref = Lg(a2, l3, f3); + d2.return = a2; + a2 = d2; + break a; + } + c(a2, l3); + break; + } else b(a2, l3); + l3 = l3.sibling; + } + f3.type === ya ? (d2 = Tg(f3.props.children, a2.mode, h2, f3.key), d2.return = a2, a2 = d2) : (h2 = Rg(f3.type, f3.key, f3.props, null, a2.mode, h2), h2.ref = Lg(a2, d2, f3), h2.return = a2, a2 = h2); + } + return g(a2); + case wa: + a: { + for (l3 = f3.key; null !== d2; ) { + if (d2.key === l3) if (4 === d2.tag && d2.stateNode.containerInfo === f3.containerInfo && d2.stateNode.implementation === f3.implementation) { + c(a2, d2.sibling); + d2 = e(d2, f3.children || []); + d2.return = a2; + a2 = d2; + break a; + } else { + c(a2, d2); + break; + } + else b(a2, d2); + d2 = d2.sibling; + } + d2 = Sg(f3, a2.mode, h2); + d2.return = a2; + a2 = d2; + } + return g(a2); + case Ha: + return l3 = f3._init, J2(a2, d2, l3(f3._payload), h2); + } + if (eb(f3)) return n2(a2, d2, f3, h2); + if (Ka(f3)) return t2(a2, d2, f3, h2); + Mg(a2, f3); + } + return "string" === typeof f3 && "" !== f3 || "number" === typeof f3 ? (f3 = "" + f3, null !== d2 && 6 === d2.tag ? (c(a2, d2.sibling), d2 = e(d2, f3), d2.return = a2, a2 = d2) : (c(a2, d2), d2 = Qg(f3, a2.mode, h2), d2.return = a2, a2 = d2), g(a2)) : c(a2, d2); + } + return J2; +} +var Ug = Og(true), Vg = Og(false), Wg = Uf(null), Xg = null, Yg = null, Zg = null; +function $g() { + Zg = Yg = Xg = null; +} +function ah(a) { + var b = Wg.current; + E(Wg); + a._currentValue = b; +} +function bh(a, b, c) { + for (; null !== a; ) { + var d = a.alternate; + (a.childLanes & b) !== b ? (a.childLanes |= b, null !== d && (d.childLanes |= b)) : null !== d && (d.childLanes & b) !== b && (d.childLanes |= b); + if (a === c) break; + a = a.return; + } +} +function ch(a, b) { + Xg = a; + Zg = Yg = null; + a = a.dependencies; + null !== a && null !== a.firstContext && (0 !== (a.lanes & b) && (dh = true), a.firstContext = null); +} +function eh(a) { + var b = a._currentValue; + if (Zg !== a) if (a = { context: a, memoizedValue: b, next: null }, null === Yg) { + if (null === Xg) throw Error(p(308)); + Yg = a; + Xg.dependencies = { lanes: 0, firstContext: a }; + } else Yg = Yg.next = a; + return b; +} +var fh = null; +function gh(a) { + null === fh ? fh = [a] : fh.push(a); +} +function hh(a, b, c, d) { + var e = b.interleaved; + null === e ? (c.next = c, gh(b)) : (c.next = e.next, e.next = c); + b.interleaved = c; + return ih(a, d); +} +function ih(a, b) { + a.lanes |= b; + var c = a.alternate; + null !== c && (c.lanes |= b); + c = a; + for (a = a.return; null !== a; ) a.childLanes |= b, c = a.alternate, null !== c && (c.childLanes |= b), c = a, a = a.return; + return 3 === c.tag ? c.stateNode : null; +} +var jh = false; +function kh(a) { + a.updateQueue = { baseState: a.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; +} +function lh(a, b) { + a = a.updateQueue; + b.updateQueue === a && (b.updateQueue = { baseState: a.baseState, firstBaseUpdate: a.firstBaseUpdate, lastBaseUpdate: a.lastBaseUpdate, shared: a.shared, effects: a.effects }); +} +function mh(a, b) { + return { eventTime: a, lane: b, tag: 0, payload: null, callback: null, next: null }; +} +function nh(a, b, c) { + var d = a.updateQueue; + if (null === d) return null; + d = d.shared; + if (0 !== (K & 2)) { + var e = d.pending; + null === e ? b.next = b : (b.next = e.next, e.next = b); + d.pending = b; + return ih(a, c); + } + e = d.interleaved; + null === e ? (b.next = b, gh(d)) : (b.next = e.next, e.next = b); + d.interleaved = b; + return ih(a, c); +} +function oh(a, b, c) { + b = b.updateQueue; + if (null !== b && (b = b.shared, 0 !== (c & 4194240))) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } +} +function ph(a, b) { + var c = a.updateQueue, d = a.alternate; + if (null !== d && (d = d.updateQueue, c === d)) { + var e = null, f2 = null; + c = c.firstBaseUpdate; + if (null !== c) { + do { + var g = { eventTime: c.eventTime, lane: c.lane, tag: c.tag, payload: c.payload, callback: c.callback, next: null }; + null === f2 ? e = f2 = g : f2 = f2.next = g; + c = c.next; + } while (null !== c); + null === f2 ? e = f2 = b : f2 = f2.next = b; + } else e = f2 = b; + c = { baseState: d.baseState, firstBaseUpdate: e, lastBaseUpdate: f2, shared: d.shared, effects: d.effects }; + a.updateQueue = c; + return; + } + a = c.lastBaseUpdate; + null === a ? c.firstBaseUpdate = b : a.next = b; + c.lastBaseUpdate = b; +} +function qh(a, b, c, d) { + var e = a.updateQueue; + jh = false; + var f2 = e.firstBaseUpdate, g = e.lastBaseUpdate, h = e.shared.pending; + if (null !== h) { + e.shared.pending = null; + var k2 = h, l2 = k2.next; + k2.next = null; + null === g ? f2 = l2 : g.next = l2; + g = k2; + var m2 = a.alternate; + null !== m2 && (m2 = m2.updateQueue, h = m2.lastBaseUpdate, h !== g && (null === h ? m2.firstBaseUpdate = l2 : h.next = l2, m2.lastBaseUpdate = k2)); + } + if (null !== f2) { + var q2 = e.baseState; + g = 0; + m2 = l2 = k2 = null; + h = f2; + do { + var r2 = h.lane, y2 = h.eventTime; + if ((d & r2) === r2) { + null !== m2 && (m2 = m2.next = { + eventTime: y2, + lane: 0, + tag: h.tag, + payload: h.payload, + callback: h.callback, + next: null + }); + a: { + var n2 = a, t2 = h; + r2 = b; + y2 = c; + switch (t2.tag) { + case 1: + n2 = t2.payload; + if ("function" === typeof n2) { + q2 = n2.call(y2, q2, r2); + break a; + } + q2 = n2; + break a; + case 3: + n2.flags = n2.flags & -65537 | 128; + case 0: + n2 = t2.payload; + r2 = "function" === typeof n2 ? n2.call(y2, q2, r2) : n2; + if (null === r2 || void 0 === r2) break a; + q2 = A({}, q2, r2); + break a; + case 2: + jh = true; + } + } + null !== h.callback && 0 !== h.lane && (a.flags |= 64, r2 = e.effects, null === r2 ? e.effects = [h] : r2.push(h)); + } else y2 = { eventTime: y2, lane: r2, tag: h.tag, payload: h.payload, callback: h.callback, next: null }, null === m2 ? (l2 = m2 = y2, k2 = q2) : m2 = m2.next = y2, g |= r2; + h = h.next; + if (null === h) if (h = e.shared.pending, null === h) break; + else r2 = h, h = r2.next, r2.next = null, e.lastBaseUpdate = r2, e.shared.pending = null; + } while (1); + null === m2 && (k2 = q2); + e.baseState = k2; + e.firstBaseUpdate = l2; + e.lastBaseUpdate = m2; + b = e.shared.interleaved; + if (null !== b) { + e = b; + do + g |= e.lane, e = e.next; + while (e !== b); + } else null === f2 && (e.shared.lanes = 0); + rh |= g; + a.lanes = g; + a.memoizedState = q2; + } +} +function sh(a, b, c) { + a = b.effects; + b.effects = null; + if (null !== a) for (b = 0; b < a.length; b++) { + var d = a[b], e = d.callback; + if (null !== e) { + d.callback = null; + d = c; + if ("function" !== typeof e) throw Error(p(191, e)); + e.call(d); + } + } +} +var th = {}, uh = Uf(th), vh = Uf(th), wh = Uf(th); +function xh(a) { + if (a === th) throw Error(p(174)); + return a; +} +function yh(a, b) { + G(wh, b); + G(vh, a); + G(uh, th); + a = b.nodeType; + switch (a) { + case 9: + case 11: + b = (b = b.documentElement) ? b.namespaceURI : lb(null, ""); + break; + default: + a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = lb(b, a); + } + E(uh); + G(uh, b); +} +function zh() { + E(uh); + E(vh); + E(wh); +} +function Ah(a) { + xh(wh.current); + var b = xh(uh.current); + var c = lb(b, a.type); + b !== c && (G(vh, a), G(uh, c)); +} +function Bh(a) { + vh.current === a && (E(uh), E(vh)); +} +var L = Uf(0); +function Ch(a) { + for (var b = a; null !== b; ) { + if (13 === b.tag) { + var c = b.memoizedState; + if (null !== c && (c = c.dehydrated, null === c || "$?" === c.data || "$!" === c.data)) return b; + } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) { + if (0 !== (b.flags & 128)) return b; + } else if (null !== b.child) { + b.child.return = b; + b = b.child; + continue; + } + if (b === a) break; + for (; null === b.sibling; ) { + if (null === b.return || b.return === a) return null; + b = b.return; + } + b.sibling.return = b.return; + b = b.sibling; + } + return null; +} +var Dh = []; +function Eh() { + for (var a = 0; a < Dh.length; a++) Dh[a]._workInProgressVersionPrimary = null; + Dh.length = 0; +} +var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M = null, N = null, O = null, Ih = false, Jh = false, Kh = 0, Lh = 0; +function P() { + throw Error(p(321)); +} +function Mh(a, b) { + if (null === b) return false; + for (var c = 0; c < b.length && c < a.length; c++) if (!He(a[c], b[c])) return false; + return true; +} +function Nh(a, b, c, d, e, f2) { + Hh = f2; + M = b; + b.memoizedState = null; + b.updateQueue = null; + b.lanes = 0; + Fh.current = null === a || null === a.memoizedState ? Oh : Ph; + a = c(d, e); + if (Jh) { + f2 = 0; + do { + Jh = false; + Kh = 0; + if (25 <= f2) throw Error(p(301)); + f2 += 1; + O = N = null; + b.updateQueue = null; + Fh.current = Qh; + a = c(d, e); + } while (Jh); + } + Fh.current = Rh; + b = null !== N && null !== N.next; + Hh = 0; + O = N = M = null; + Ih = false; + if (b) throw Error(p(300)); + return a; +} +function Sh() { + var a = 0 !== Kh; + Kh = 0; + return a; +} +function Th() { + var a = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; + null === O ? M.memoizedState = O = a : O = O.next = a; + return O; +} +function Uh() { + if (null === N) { + var a = M.alternate; + a = null !== a ? a.memoizedState : null; + } else a = N.next; + var b = null === O ? M.memoizedState : O.next; + if (null !== b) O = b, N = a; + else { + if (null === a) throw Error(p(310)); + N = a; + a = { memoizedState: N.memoizedState, baseState: N.baseState, baseQueue: N.baseQueue, queue: N.queue, next: null }; + null === O ? M.memoizedState = O = a : O = O.next = a; + } + return O; +} +function Vh(a, b) { + return "function" === typeof b ? b(a) : b; +} +function Wh(a) { + var b = Uh(), c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = N, e = d.baseQueue, f2 = c.pending; + if (null !== f2) { + if (null !== e) { + var g = e.next; + e.next = f2.next; + f2.next = g; + } + d.baseQueue = e = f2; + c.pending = null; + } + if (null !== e) { + f2 = e.next; + d = d.baseState; + var h = g = null, k2 = null, l2 = f2; + do { + var m2 = l2.lane; + if ((Hh & m2) === m2) null !== k2 && (k2 = k2.next = { lane: 0, action: l2.action, hasEagerState: l2.hasEagerState, eagerState: l2.eagerState, next: null }), d = l2.hasEagerState ? l2.eagerState : a(d, l2.action); + else { + var q2 = { + lane: m2, + action: l2.action, + hasEagerState: l2.hasEagerState, + eagerState: l2.eagerState, + next: null + }; + null === k2 ? (h = k2 = q2, g = d) : k2 = k2.next = q2; + M.lanes |= m2; + rh |= m2; + } + l2 = l2.next; + } while (null !== l2 && l2 !== f2); + null === k2 ? g = d : k2.next = h; + He(d, b.memoizedState) || (dh = true); + b.memoizedState = d; + b.baseState = g; + b.baseQueue = k2; + c.lastRenderedState = d; + } + a = c.interleaved; + if (null !== a) { + e = a; + do + f2 = e.lane, M.lanes |= f2, rh |= f2, e = e.next; + while (e !== a); + } else null === e && (c.lanes = 0); + return [b.memoizedState, c.dispatch]; +} +function Xh(a) { + var b = Uh(), c = b.queue; + if (null === c) throw Error(p(311)); + c.lastRenderedReducer = a; + var d = c.dispatch, e = c.pending, f2 = b.memoizedState; + if (null !== e) { + c.pending = null; + var g = e = e.next; + do + f2 = a(f2, g.action), g = g.next; + while (g !== e); + He(f2, b.memoizedState) || (dh = true); + b.memoizedState = f2; + null === b.baseQueue && (b.baseState = f2); + c.lastRenderedState = f2; + } + return [f2, d]; +} +function Yh() { +} +function Zh(a, b) { + var c = M, d = Uh(), e = b(), f2 = !He(d.memoizedState, e); + f2 && (d.memoizedState = e, dh = true); + d = d.queue; + $h(ai.bind(null, c, d, a), [a]); + if (d.getSnapshot !== b || f2 || null !== O && O.memoizedState.tag & 1) { + c.flags |= 2048; + bi(9, ci.bind(null, c, d, e, b), void 0, null); + if (null === Q) throw Error(p(349)); + 0 !== (Hh & 30) || di(c, b, e); + } + return e; +} +function di(a, b, c) { + a.flags |= 16384; + a = { getSnapshot: b, value: c }; + b = M.updateQueue; + null === b ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.stores = [a]) : (c = b.stores, null === c ? b.stores = [a] : c.push(a)); +} +function ci(a, b, c, d) { + b.value = c; + b.getSnapshot = d; + ei(b) && fi(a); +} +function ai(a, b, c) { + return c(function() { + ei(b) && fi(a); + }); +} +function ei(a) { + var b = a.getSnapshot; + a = a.value; + try { + var c = b(); + return !He(a, c); + } catch (d) { + return true; + } +} +function fi(a) { + var b = ih(a, 1); + null !== b && gi(b, a, 1, -1); +} +function hi(a) { + var b = Th(); + "function" === typeof a && (a = a()); + b.memoizedState = b.baseState = a; + a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a }; + b.queue = a; + a = a.dispatch = ii.bind(null, M, a); + return [b.memoizedState, a]; +} +function bi(a, b, c, d) { + a = { tag: a, create: b, destroy: c, deps: d, next: null }; + b = M.updateQueue; + null === b ? (b = { lastEffect: null, stores: null }, M.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a)); + return a; +} +function ji() { + return Uh().memoizedState; +} +function ki(a, b, c, d) { + var e = Th(); + M.flags |= a; + e.memoizedState = bi(1 | b, c, void 0, void 0 === d ? null : d); +} +function li(a, b, c, d) { + var e = Uh(); + d = void 0 === d ? null : d; + var f2 = void 0; + if (null !== N) { + var g = N.memoizedState; + f2 = g.destroy; + if (null !== d && Mh(d, g.deps)) { + e.memoizedState = bi(b, c, f2, d); + return; + } + } + M.flags |= a; + e.memoizedState = bi(1 | b, c, f2, d); +} +function mi(a, b) { + return ki(8390656, 8, a, b); +} +function $h(a, b) { + return li(2048, 8, a, b); +} +function ni(a, b) { + return li(4, 2, a, b); +} +function oi(a, b) { + return li(4, 4, a, b); +} +function pi(a, b) { + if ("function" === typeof b) return a = a(), b(a), function() { + b(null); + }; + if (null !== b && void 0 !== b) return a = a(), b.current = a, function() { + b.current = null; + }; +} +function qi(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return li(4, 4, pi.bind(null, b, a), c); +} +function ri() { +} +function si(a, b) { + var c = Uh(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Mh(b, d[1])) return d[0]; + c.memoizedState = [a, b]; + return a; +} +function ti(a, b) { + var c = Uh(); + b = void 0 === b ? null : b; + var d = c.memoizedState; + if (null !== d && null !== b && Mh(b, d[1])) return d[0]; + a = a(); + c.memoizedState = [a, b]; + return a; +} +function ui(a, b, c) { + if (0 === (Hh & 21)) return a.baseState && (a.baseState = false, dh = true), a.memoizedState = c; + He(c, b) || (c = yc(), M.lanes |= c, rh |= c, a.baseState = true); + return b; +} +function vi(a, b) { + var c = C; + C = 0 !== c && 4 > c ? c : 4; + a(true); + var d = Gh.transition; + Gh.transition = {}; + try { + a(false), b(); + } finally { + C = c, Gh.transition = d; + } +} +function wi() { + return Uh().memoizedState; +} +function xi(a, b, c) { + var d = yi(a); + c = { lane: d, action: c, hasEagerState: false, eagerState: null, next: null }; + if (zi(a)) Ai(b, c); + else if (c = hh(a, b, c, d), null !== c) { + var e = R(); + gi(c, a, d, e); + Bi(c, b, d); + } +} +function ii(a, b, c) { + var d = yi(a), e = { lane: d, action: c, hasEagerState: false, eagerState: null, next: null }; + if (zi(a)) Ai(b, e); + else { + var f2 = a.alternate; + if (0 === a.lanes && (null === f2 || 0 === f2.lanes) && (f2 = b.lastRenderedReducer, null !== f2)) try { + var g = b.lastRenderedState, h = f2(g, c); + e.hasEagerState = true; + e.eagerState = h; + if (He(h, g)) { + var k2 = b.interleaved; + null === k2 ? (e.next = e, gh(b)) : (e.next = k2.next, k2.next = e); + b.interleaved = e; + return; + } + } catch (l2) { + } finally { + } + c = hh(a, b, e, d); + null !== c && (e = R(), gi(c, a, d, e), Bi(c, b, d)); + } +} +function zi(a) { + var b = a.alternate; + return a === M || null !== b && b === M; +} +function Ai(a, b) { + Jh = Ih = true; + var c = a.pending; + null === c ? b.next = b : (b.next = c.next, c.next = b); + a.pending = b; +} +function Bi(a, b, c) { + if (0 !== (c & 4194240)) { + var d = b.lanes; + d &= a.pendingLanes; + c |= d; + b.lanes = c; + Cc(a, c); + } +} +var Rh = { readContext: eh, useCallback: P, useContext: P, useEffect: P, useImperativeHandle: P, useInsertionEffect: P, useLayoutEffect: P, useMemo: P, useReducer: P, useRef: P, useState: P, useDebugValue: P, useDeferredValue: P, useTransition: P, useMutableSource: P, useSyncExternalStore: P, useId: P, unstable_isNewReconciler: false }, Oh = { readContext: eh, useCallback: function(a, b) { + Th().memoizedState = [a, void 0 === b ? null : b]; + return a; +}, useContext: eh, useEffect: mi, useImperativeHandle: function(a, b, c) { + c = null !== c && void 0 !== c ? c.concat([a]) : null; + return ki( + 4194308, + 4, + pi.bind(null, b, a), + c + ); +}, useLayoutEffect: function(a, b) { + return ki(4194308, 4, a, b); +}, useInsertionEffect: function(a, b) { + return ki(4, 2, a, b); +}, useMemo: function(a, b) { + var c = Th(); + b = void 0 === b ? null : b; + a = a(); + c.memoizedState = [a, b]; + return a; +}, useReducer: function(a, b, c) { + var d = Th(); + b = void 0 !== c ? c(b) : b; + d.memoizedState = d.baseState = b; + a = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a, lastRenderedState: b }; + d.queue = a; + a = a.dispatch = xi.bind(null, M, a); + return [d.memoizedState, a]; +}, useRef: function(a) { + var b = Th(); + a = { current: a }; + return b.memoizedState = a; +}, useState: hi, useDebugValue: ri, useDeferredValue: function(a) { + return Th().memoizedState = a; +}, useTransition: function() { + var a = hi(false), b = a[0]; + a = vi.bind(null, a[1]); + Th().memoizedState = a; + return [b, a]; +}, useMutableSource: function() { +}, useSyncExternalStore: function(a, b, c) { + var d = M, e = Th(); + if (I) { + if (void 0 === c) throw Error(p(407)); + c = c(); + } else { + c = b(); + if (null === Q) throw Error(p(349)); + 0 !== (Hh & 30) || di(d, b, c); + } + e.memoizedState = c; + var f2 = { value: c, getSnapshot: b }; + e.queue = f2; + mi(ai.bind( + null, + d, + f2, + a + ), [a]); + d.flags |= 2048; + bi(9, ci.bind(null, d, f2, c, b), void 0, null); + return c; +}, useId: function() { + var a = Th(), b = Q.identifierPrefix; + if (I) { + var c = sg; + var d = rg; + c = (d & ~(1 << 32 - oc(d) - 1)).toString(32) + c; + b = ":" + b + "R" + c; + c = Kh++; + 0 < c && (b += "H" + c.toString(32)); + b += ":"; + } else c = Lh++, b = ":" + b + "r" + c.toString(32) + ":"; + return a.memoizedState = b; +}, unstable_isNewReconciler: false }, Ph = { + readContext: eh, + useCallback: si, + useContext: eh, + useEffect: $h, + useImperativeHandle: qi, + useInsertionEffect: ni, + useLayoutEffect: oi, + useMemo: ti, + useReducer: Wh, + useRef: ji, + useState: function() { + return Wh(Vh); + }, + useDebugValue: ri, + useDeferredValue: function(a) { + var b = Uh(); + return ui(b, N.memoizedState, a); + }, + useTransition: function() { + var a = Wh(Vh)[0], b = Uh().memoizedState; + return [a, b]; + }, + useMutableSource: Yh, + useSyncExternalStore: Zh, + useId: wi, + unstable_isNewReconciler: false +}, Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() { + return Xh(Vh); +}, useDebugValue: ri, useDeferredValue: function(a) { + var b = Uh(); + return null === N ? b.memoizedState = a : ui(b, N.memoizedState, a); +}, useTransition: function() { + var a = Xh(Vh)[0], b = Uh().memoizedState; + return [a, b]; +}, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: false }; +function Ci(a, b) { + if (a && a.defaultProps) { + b = A({}, b); + a = a.defaultProps; + for (var c in a) void 0 === b[c] && (b[c] = a[c]); + return b; + } + return b; +} +function Di(a, b, c, d) { + b = a.memoizedState; + c = c(d, b); + c = null === c || void 0 === c ? b : A({}, b, c); + a.memoizedState = c; + 0 === a.lanes && (a.updateQueue.baseState = c); +} +var Ei = { isMounted: function(a) { + return (a = a._reactInternals) ? Vb(a) === a : false; +}, enqueueSetState: function(a, b, c) { + a = a._reactInternals; + var d = R(), e = yi(a), f2 = mh(d, e); + f2.payload = b; + void 0 !== c && null !== c && (f2.callback = c); + b = nh(a, f2, e); + null !== b && (gi(b, a, e, d), oh(b, a, e)); +}, enqueueReplaceState: function(a, b, c) { + a = a._reactInternals; + var d = R(), e = yi(a), f2 = mh(d, e); + f2.tag = 1; + f2.payload = b; + void 0 !== c && null !== c && (f2.callback = c); + b = nh(a, f2, e); + null !== b && (gi(b, a, e, d), oh(b, a, e)); +}, enqueueForceUpdate: function(a, b) { + a = a._reactInternals; + var c = R(), d = yi(a), e = mh(c, d); + e.tag = 2; + void 0 !== b && null !== b && (e.callback = b); + b = nh(a, e, d); + null !== b && (gi(b, a, d, c), oh(b, a, d)); +} }; +function Fi(a, b, c, d, e, f2, g) { + a = a.stateNode; + return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f2, g) : b.prototype && b.prototype.isPureReactComponent ? !Ie(c, d) || !Ie(e, f2) : true; +} +function Gi(a, b, c) { + var d = false, e = Vf; + var f2 = b.contextType; + "object" === typeof f2 && null !== f2 ? f2 = eh(f2) : (e = Zf(b) ? Xf : H.current, d = b.contextTypes, f2 = (d = null !== d && void 0 !== d) ? Yf(a, e) : Vf); + b = new b(c, f2); + a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null; + b.updater = Ei; + a.stateNode = b; + b._reactInternals = a; + d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f2); + return b; +} +function Hi(a, b, c, d) { + a = b.state; + "function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d); + "function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d); + b.state !== a && Ei.enqueueReplaceState(b, b.state, null); +} +function Ii(a, b, c, d) { + var e = a.stateNode; + e.props = c; + e.state = a.memoizedState; + e.refs = {}; + kh(a); + var f2 = b.contextType; + "object" === typeof f2 && null !== f2 ? e.context = eh(f2) : (f2 = Zf(b) ? Xf : H.current, e.context = Yf(a, f2)); + e.state = a.memoizedState; + f2 = b.getDerivedStateFromProps; + "function" === typeof f2 && (Di(a, b, f2, c), e.state = a.memoizedState); + "function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Ei.enqueueReplaceState(e, e.state, null), qh(a, c, e, d), e.state = a.memoizedState); + "function" === typeof e.componentDidMount && (a.flags |= 4194308); +} +function Ji(a, b) { + try { + var c = "", d = b; + do + c += Pa(d), d = d.return; + while (d); + var e = c; + } catch (f2) { + e = "\nError generating stack: " + f2.message + "\n" + f2.stack; + } + return { value: a, source: b, stack: e, digest: null }; +} +function Ki(a, b, c) { + return { value: a, source: null, stack: null != c ? c : null, digest: null != b ? b : null }; +} +function Li(a, b) { + try { + console.error(b.value); + } catch (c) { + setTimeout(function() { + throw c; + }); + } +} +var Mi = "function" === typeof WeakMap ? WeakMap : Map; +function Ni(a, b, c) { + c = mh(-1, c); + c.tag = 3; + c.payload = { element: null }; + var d = b.value; + c.callback = function() { + Oi || (Oi = true, Pi = d); + Li(a, b); + }; + return c; +} +function Qi(a, b, c) { + c = mh(-1, c); + c.tag = 3; + var d = a.type.getDerivedStateFromError; + if ("function" === typeof d) { + var e = b.value; + c.payload = function() { + return d(e); + }; + c.callback = function() { + Li(a, b); + }; + } + var f2 = a.stateNode; + null !== f2 && "function" === typeof f2.componentDidCatch && (c.callback = function() { + Li(a, b); + "function" !== typeof d && (null === Ri ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this)); + var c2 = b.stack; + this.componentDidCatch(b.value, { componentStack: null !== c2 ? c2 : "" }); + }); + return c; +} +function Si(a, b, c) { + var d = a.pingCache; + if (null === d) { + d = a.pingCache = new Mi(); + var e = /* @__PURE__ */ new Set(); + d.set(b, e); + } else e = d.get(b), void 0 === e && (e = /* @__PURE__ */ new Set(), d.set(b, e)); + e.has(c) || (e.add(c), a = Ti.bind(null, a, b, c), b.then(a, a)); +} +function Ui(a) { + do { + var b; + if (b = 13 === a.tag) b = a.memoizedState, b = null !== b ? null !== b.dehydrated ? true : false : true; + if (b) return a; + a = a.return; + } while (null !== a); + return null; +} +function Vi(a, b, c, d, e) { + if (0 === (a.mode & 1)) return a === b ? a.flags |= 65536 : (a.flags |= 128, c.flags |= 131072, c.flags &= -52805, 1 === c.tag && (null === c.alternate ? c.tag = 17 : (b = mh(-1, 1), b.tag = 2, nh(c, b, 1))), c.lanes |= 1), a; + a.flags |= 65536; + a.lanes = e; + return a; +} +var Wi = ua.ReactCurrentOwner, dh = false; +function Xi(a, b, c, d) { + b.child = null === a ? Vg(b, null, c, d) : Ug(b, a.child, c, d); +} +function Yi(a, b, c, d, e) { + c = c.render; + var f2 = b.ref; + ch(b, e); + d = Nh(a, b, c, d, f2, e); + c = Sh(); + if (null !== a && !dh) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, Zi(a, b, e); + I && c && vg(b); + b.flags |= 1; + Xi(a, b, d, e); + return b.child; +} +function $i(a, b, c, d, e) { + if (null === a) { + var f2 = c.type; + if ("function" === typeof f2 && !aj(f2) && void 0 === f2.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = f2, bj(a, b, f2, d, e); + a = Rg(c.type, null, d, b, b.mode, e); + a.ref = b.ref; + a.return = b; + return b.child = a; + } + f2 = a.child; + if (0 === (a.lanes & e)) { + var g = f2.memoizedProps; + c = c.compare; + c = null !== c ? c : Ie; + if (c(g, d) && a.ref === b.ref) return Zi(a, b, e); + } + b.flags |= 1; + a = Pg(f2, d); + a.ref = b.ref; + a.return = b; + return b.child = a; +} +function bj(a, b, c, d, e) { + if (null !== a) { + var f2 = a.memoizedProps; + if (Ie(f2, d) && a.ref === b.ref) if (dh = false, b.pendingProps = d = f2, 0 !== (a.lanes & e)) 0 !== (a.flags & 131072) && (dh = true); + else return b.lanes = a.lanes, Zi(a, b, e); + } + return cj(a, b, c, d, e); +} +function dj(a, b, c) { + var d = b.pendingProps, e = d.children, f2 = null !== a ? a.memoizedState : null; + if ("hidden" === d.mode) if (0 === (b.mode & 1)) b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G(ej, fj), fj |= c; + else { + if (0 === (c & 1073741824)) return a = null !== f2 ? f2.baseLanes | c : c, b.lanes = b.childLanes = 1073741824, b.memoizedState = { baseLanes: a, cachePool: null, transitions: null }, b.updateQueue = null, G(ej, fj), fj |= a, null; + b.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }; + d = null !== f2 ? f2.baseLanes : c; + G(ej, fj); + fj |= d; + } + else null !== f2 ? (d = f2.baseLanes | c, b.memoizedState = null) : d = c, G(ej, fj), fj |= d; + Xi(a, b, e, c); + return b.child; +} +function gj(a, b) { + var c = b.ref; + if (null === a && null !== c || null !== a && a.ref !== c) b.flags |= 512, b.flags |= 2097152; +} +function cj(a, b, c, d, e) { + var f2 = Zf(c) ? Xf : H.current; + f2 = Yf(b, f2); + ch(b, e); + c = Nh(a, b, c, d, f2, e); + d = Sh(); + if (null !== a && !dh) return b.updateQueue = a.updateQueue, b.flags &= -2053, a.lanes &= ~e, Zi(a, b, e); + I && d && vg(b); + b.flags |= 1; + Xi(a, b, c, e); + return b.child; +} +function hj(a, b, c, d, e) { + if (Zf(c)) { + var f2 = true; + cg(b); + } else f2 = false; + ch(b, e); + if (null === b.stateNode) ij(a, b), Gi(b, c, d), Ii(b, c, d, e), d = true; + else if (null === a) { + var g = b.stateNode, h = b.memoizedProps; + g.props = h; + var k2 = g.context, l2 = c.contextType; + "object" === typeof l2 && null !== l2 ? l2 = eh(l2) : (l2 = Zf(c) ? Xf : H.current, l2 = Yf(b, l2)); + var m2 = c.getDerivedStateFromProps, q2 = "function" === typeof m2 || "function" === typeof g.getSnapshotBeforeUpdate; + q2 || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== d || k2 !== l2) && Hi(b, g, d, l2); + jh = false; + var r2 = b.memoizedState; + g.state = r2; + qh(b, d, g, e); + k2 = b.memoizedState; + h !== d || r2 !== k2 || Wf.current || jh ? ("function" === typeof m2 && (Di(b, c, m2, d), k2 = b.memoizedState), (h = jh || Fi(b, c, h, d, r2, k2, l2)) ? (q2 || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.flags |= 4194308)) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), b.memoizedProps = d, b.memoizedState = k2), g.props = d, g.state = k2, g.context = l2, d = h) : ("function" === typeof g.componentDidMount && (b.flags |= 4194308), d = false); + } else { + g = b.stateNode; + lh(a, b); + h = b.memoizedProps; + l2 = b.type === b.elementType ? h : Ci(b.type, h); + g.props = l2; + q2 = b.pendingProps; + r2 = g.context; + k2 = c.contextType; + "object" === typeof k2 && null !== k2 ? k2 = eh(k2) : (k2 = Zf(c) ? Xf : H.current, k2 = Yf(b, k2)); + var y2 = c.getDerivedStateFromProps; + (m2 = "function" === typeof y2 || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (h !== q2 || r2 !== k2) && Hi(b, g, d, k2); + jh = false; + r2 = b.memoizedState; + g.state = r2; + qh(b, d, g, e); + var n2 = b.memoizedState; + h !== q2 || r2 !== n2 || Wf.current || jh ? ("function" === typeof y2 && (Di(b, c, y2, d), n2 = b.memoizedState), (l2 = jh || Fi(b, c, l2, d, r2, n2, k2) || false) ? (m2 || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, n2, k2), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, n2, k2)), "function" === typeof g.componentDidUpdate && (b.flags |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.flags |= 1024)) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r2 === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r2 === a.memoizedState || (b.flags |= 1024), b.memoizedProps = d, b.memoizedState = n2), g.props = d, g.state = n2, g.context = k2, d = l2) : ("function" !== typeof g.componentDidUpdate || h === a.memoizedProps && r2 === a.memoizedState || (b.flags |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && r2 === a.memoizedState || (b.flags |= 1024), d = false); + } + return jj(a, b, c, d, f2, e); +} +function jj(a, b, c, d, e, f2) { + gj(a, b); + var g = 0 !== (b.flags & 128); + if (!d && !g) return e && dg(b, c, false), Zi(a, b, f2); + d = b.stateNode; + Wi.current = b; + var h = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render(); + b.flags |= 1; + null !== a && g ? (b.child = Ug(b, a.child, null, f2), b.child = Ug(b, null, h, f2)) : Xi(a, b, h, f2); + b.memoizedState = d.state; + e && dg(b, c, true); + return b.child; +} +function kj(a) { + var b = a.stateNode; + b.pendingContext ? ag(a, b.pendingContext, b.pendingContext !== b.context) : b.context && ag(a, b.context, false); + yh(a, b.containerInfo); +} +function lj(a, b, c, d, e) { + Ig(); + Jg(e); + b.flags |= 256; + Xi(a, b, c, d); + return b.child; +} +var mj = { dehydrated: null, treeContext: null, retryLane: 0 }; +function nj(a) { + return { baseLanes: a, cachePool: null, transitions: null }; +} +function oj(a, b, c) { + var d = b.pendingProps, e = L.current, f2 = false, g = 0 !== (b.flags & 128), h; + (h = g) || (h = null !== a && null === a.memoizedState ? false : 0 !== (e & 2)); + if (h) f2 = true, b.flags &= -129; + else if (null === a || null !== a.memoizedState) e |= 1; + G(L, e & 1); + if (null === a) { + Eg(b); + a = b.memoizedState; + if (null !== a && (a = a.dehydrated, null !== a)) return 0 === (b.mode & 1) ? b.lanes = 1 : "$!" === a.data ? b.lanes = 8 : b.lanes = 1073741824, null; + g = d.children; + a = d.fallback; + return f2 ? (d = b.mode, f2 = b.child, g = { mode: "hidden", children: g }, 0 === (d & 1) && null !== f2 ? (f2.childLanes = 0, f2.pendingProps = g) : f2 = pj(g, d, 0, null), a = Tg(a, d, c, null), f2.return = b, a.return = b, f2.sibling = a, b.child = f2, b.child.memoizedState = nj(c), b.memoizedState = mj, a) : qj(b, g); + } + e = a.memoizedState; + if (null !== e && (h = e.dehydrated, null !== h)) return rj(a, b, g, d, h, e, c); + if (f2) { + f2 = d.fallback; + g = b.mode; + e = a.child; + h = e.sibling; + var k2 = { mode: "hidden", children: d.children }; + 0 === (g & 1) && b.child !== e ? (d = b.child, d.childLanes = 0, d.pendingProps = k2, b.deletions = null) : (d = Pg(e, k2), d.subtreeFlags = e.subtreeFlags & 14680064); + null !== h ? f2 = Pg(h, f2) : (f2 = Tg(f2, g, c, null), f2.flags |= 2); + f2.return = b; + d.return = b; + d.sibling = f2; + b.child = d; + d = f2; + f2 = b.child; + g = a.child.memoizedState; + g = null === g ? nj(c) : { baseLanes: g.baseLanes | c, cachePool: null, transitions: g.transitions }; + f2.memoizedState = g; + f2.childLanes = a.childLanes & ~c; + b.memoizedState = mj; + return d; + } + f2 = a.child; + a = f2.sibling; + d = Pg(f2, { mode: "visible", children: d.children }); + 0 === (b.mode & 1) && (d.lanes = c); + d.return = b; + d.sibling = null; + null !== a && (c = b.deletions, null === c ? (b.deletions = [a], b.flags |= 16) : c.push(a)); + b.child = d; + b.memoizedState = null; + return d; +} +function qj(a, b) { + b = pj({ mode: "visible", children: b }, a.mode, 0, null); + b.return = a; + return a.child = b; +} +function sj(a, b, c, d) { + null !== d && Jg(d); + Ug(b, a.child, null, c); + a = qj(b, b.pendingProps.children); + a.flags |= 2; + b.memoizedState = null; + return a; +} +function rj(a, b, c, d, e, f2, g) { + if (c) { + if (b.flags & 256) return b.flags &= -257, d = Ki(Error(p(422))), sj(a, b, g, d); + if (null !== b.memoizedState) return b.child = a.child, b.flags |= 128, null; + f2 = d.fallback; + e = b.mode; + d = pj({ mode: "visible", children: d.children }, e, 0, null); + f2 = Tg(f2, e, g, null); + f2.flags |= 2; + d.return = b; + f2.return = b; + d.sibling = f2; + b.child = d; + 0 !== (b.mode & 1) && Ug(b, a.child, null, g); + b.child.memoizedState = nj(g); + b.memoizedState = mj; + return f2; + } + if (0 === (b.mode & 1)) return sj(a, b, g, null); + if ("$!" === e.data) { + d = e.nextSibling && e.nextSibling.dataset; + if (d) var h = d.dgst; + d = h; + f2 = Error(p(419)); + d = Ki(f2, d, void 0); + return sj(a, b, g, d); + } + h = 0 !== (g & a.childLanes); + if (dh || h) { + d = Q; + if (null !== d) { + switch (g & -g) { + case 4: + e = 2; + break; + case 16: + e = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + e = 32; + break; + case 536870912: + e = 268435456; + break; + default: + e = 0; + } + e = 0 !== (e & (d.suspendedLanes | g)) ? 0 : e; + 0 !== e && e !== f2.retryLane && (f2.retryLane = e, ih(a, e), gi(d, a, e, -1)); + } + tj(); + d = Ki(Error(p(421))); + return sj(a, b, g, d); + } + if ("$?" === e.data) return b.flags |= 128, b.child = a.child, b = uj.bind(null, a), e._reactRetry = b, null; + a = f2.treeContext; + yg = Lf(e.nextSibling); + xg = b; + I = true; + zg = null; + null !== a && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a.id, sg = a.overflow, qg = b); + b = qj(b, d.children); + b.flags |= 4096; + return b; +} +function vj(a, b, c) { + a.lanes |= b; + var d = a.alternate; + null !== d && (d.lanes |= b); + bh(a.return, b, c); +} +function wj(a, b, c, d, e) { + var f2 = a.memoizedState; + null === f2 ? a.memoizedState = { isBackwards: b, rendering: null, renderingStartTime: 0, last: d, tail: c, tailMode: e } : (f2.isBackwards = b, f2.rendering = null, f2.renderingStartTime = 0, f2.last = d, f2.tail = c, f2.tailMode = e); +} +function xj(a, b, c) { + var d = b.pendingProps, e = d.revealOrder, f2 = d.tail; + Xi(a, b, d.children, c); + d = L.current; + if (0 !== (d & 2)) d = d & 1 | 2, b.flags |= 128; + else { + if (null !== a && 0 !== (a.flags & 128)) a: for (a = b.child; null !== a; ) { + if (13 === a.tag) null !== a.memoizedState && vj(a, c, b); + else if (19 === a.tag) vj(a, c, b); + else if (null !== a.child) { + a.child.return = a; + a = a.child; + continue; + } + if (a === b) break a; + for (; null === a.sibling; ) { + if (null === a.return || a.return === b) break a; + a = a.return; + } + a.sibling.return = a.return; + a = a.sibling; + } + d &= 1; + } + G(L, d); + if (0 === (b.mode & 1)) b.memoizedState = null; + else switch (e) { + case "forwards": + c = b.child; + for (e = null; null !== c; ) a = c.alternate, null !== a && null === Ch(a) && (e = c), c = c.sibling; + c = e; + null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null); + wj(b, false, e, c, f2); + break; + case "backwards": + c = null; + e = b.child; + for (b.child = null; null !== e; ) { + a = e.alternate; + if (null !== a && null === Ch(a)) { + b.child = e; + break; + } + a = e.sibling; + e.sibling = c; + c = e; + e = a; + } + wj(b, true, c, null, f2); + break; + case "together": + wj(b, false, null, null, void 0); + break; + default: + b.memoizedState = null; + } + return b.child; +} +function ij(a, b) { + 0 === (b.mode & 1) && null !== a && (a.alternate = null, b.alternate = null, b.flags |= 2); +} +function Zi(a, b, c) { + null !== a && (b.dependencies = a.dependencies); + rh |= b.lanes; + if (0 === (c & b.childLanes)) return null; + if (null !== a && b.child !== a.child) throw Error(p(153)); + if (null !== b.child) { + a = b.child; + c = Pg(a, a.pendingProps); + b.child = c; + for (c.return = b; null !== a.sibling; ) a = a.sibling, c = c.sibling = Pg(a, a.pendingProps), c.return = b; + c.sibling = null; + } + return b.child; +} +function yj(a, b, c) { + switch (b.tag) { + case 3: + kj(b); + Ig(); + break; + case 5: + Ah(b); + break; + case 1: + Zf(b.type) && cg(b); + break; + case 4: + yh(b, b.stateNode.containerInfo); + break; + case 10: + var d = b.type._context, e = b.memoizedProps.value; + G(Wg, d._currentValue); + d._currentValue = e; + break; + case 13: + d = b.memoizedState; + if (null !== d) { + if (null !== d.dehydrated) return G(L, L.current & 1), b.flags |= 128, null; + if (0 !== (c & b.child.childLanes)) return oj(a, b, c); + G(L, L.current & 1); + a = Zi(a, b, c); + return null !== a ? a.sibling : null; + } + G(L, L.current & 1); + break; + case 19: + d = 0 !== (c & b.childLanes); + if (0 !== (a.flags & 128)) { + if (d) return xj(a, b, c); + b.flags |= 128; + } + e = b.memoizedState; + null !== e && (e.rendering = null, e.tail = null, e.lastEffect = null); + G(L, L.current); + if (d) break; + else return null; + case 22: + case 23: + return b.lanes = 0, dj(a, b, c); + } + return Zi(a, b, c); +} +var zj, Aj, Bj, Cj; +zj = function(a, b) { + for (var c = b.child; null !== c; ) { + if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode); + else if (4 !== c.tag && null !== c.child) { + c.child.return = c; + c = c.child; + continue; + } + if (c === b) break; + for (; null === c.sibling; ) { + if (null === c.return || c.return === b) return; + c = c.return; + } + c.sibling.return = c.return; + c = c.sibling; + } +}; +Aj = function() { +}; +Bj = function(a, b, c, d) { + var e = a.memoizedProps; + if (e !== d) { + a = b.stateNode; + xh(uh.current); + var f2 = null; + switch (c) { + case "input": + e = Ya(a, e); + d = Ya(a, d); + f2 = []; + break; + case "select": + e = A({}, e, { value: void 0 }); + d = A({}, d, { value: void 0 }); + f2 = []; + break; + case "textarea": + e = gb(a, e); + d = gb(a, d); + f2 = []; + break; + default: + "function" !== typeof e.onClick && "function" === typeof d.onClick && (a.onclick = Bf); + } + ub(c, d); + var g; + c = null; + for (l2 in e) if (!d.hasOwnProperty(l2) && e.hasOwnProperty(l2) && null != e[l2]) if ("style" === l2) { + var h = e[l2]; + for (g in h) h.hasOwnProperty(g) && (c || (c = {}), c[g] = ""); + } else "dangerouslySetInnerHTML" !== l2 && "children" !== l2 && "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && "autoFocus" !== l2 && (ea.hasOwnProperty(l2) ? f2 || (f2 = []) : (f2 = f2 || []).push(l2, null)); + for (l2 in d) { + var k2 = d[l2]; + h = null != e ? e[l2] : void 0; + if (d.hasOwnProperty(l2) && k2 !== h && (null != k2 || null != h)) if ("style" === l2) if (h) { + for (g in h) !h.hasOwnProperty(g) || k2 && k2.hasOwnProperty(g) || (c || (c = {}), c[g] = ""); + for (g in k2) k2.hasOwnProperty(g) && h[g] !== k2[g] && (c || (c = {}), c[g] = k2[g]); + } else c || (f2 || (f2 = []), f2.push( + l2, + c + )), c = k2; + else "dangerouslySetInnerHTML" === l2 ? (k2 = k2 ? k2.__html : void 0, h = h ? h.__html : void 0, null != k2 && h !== k2 && (f2 = f2 || []).push(l2, k2)) : "children" === l2 ? "string" !== typeof k2 && "number" !== typeof k2 || (f2 = f2 || []).push(l2, "" + k2) : "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && (ea.hasOwnProperty(l2) ? (null != k2 && "onScroll" === l2 && D("scroll", a), f2 || h === k2 || (f2 = [])) : (f2 = f2 || []).push(l2, k2)); + } + c && (f2 = f2 || []).push("style", c); + var l2 = f2; + if (b.updateQueue = l2) b.flags |= 4; + } +}; +Cj = function(a, b, c, d) { + c !== d && (b.flags |= 4); +}; +function Dj(a, b) { + if (!I) switch (a.tailMode) { + case "hidden": + b = a.tail; + for (var c = null; null !== b; ) null !== b.alternate && (c = b), b = b.sibling; + null === c ? a.tail = null : c.sibling = null; + break; + case "collapsed": + c = a.tail; + for (var d = null; null !== c; ) null !== c.alternate && (d = c), c = c.sibling; + null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null; + } +} +function S(a) { + var b = null !== a.alternate && a.alternate.child === a.child, c = 0, d = 0; + if (b) for (var e = a.child; null !== e; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags & 14680064, d |= e.flags & 14680064, e.return = a, e = e.sibling; + else for (e = a.child; null !== e; ) c |= e.lanes | e.childLanes, d |= e.subtreeFlags, d |= e.flags, e.return = a, e = e.sibling; + a.subtreeFlags |= d; + a.childLanes = c; + return b; +} +function Ej(a, b, c) { + var d = b.pendingProps; + wg(b); + switch (b.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return S(b), null; + case 1: + return Zf(b.type) && $f(), S(b), null; + case 3: + d = b.stateNode; + zh(); + E(Wf); + E(H); + Eh(); + d.pendingContext && (d.context = d.pendingContext, d.pendingContext = null); + if (null === a || null === a.child) Gg(b) ? b.flags |= 4 : null === a || a.memoizedState.isDehydrated && 0 === (b.flags & 256) || (b.flags |= 1024, null !== zg && (Fj(zg), zg = null)); + Aj(a, b); + S(b); + return null; + case 5: + Bh(b); + var e = xh(wh.current); + c = b.type; + if (null !== a && null != b.stateNode) Bj(a, b, c, d, e), a.ref !== b.ref && (b.flags |= 512, b.flags |= 2097152); + else { + if (!d) { + if (null === b.stateNode) throw Error(p(166)); + S(b); + return null; + } + a = xh(uh.current); + if (Gg(b)) { + d = b.stateNode; + c = b.type; + var f2 = b.memoizedProps; + d[Of] = b; + d[Pf] = f2; + a = 0 !== (b.mode & 1); + switch (c) { + case "dialog": + D("cancel", d); + D("close", d); + break; + case "iframe": + case "object": + case "embed": + D("load", d); + break; + case "video": + case "audio": + for (e = 0; e < lf.length; e++) D(lf[e], d); + break; + case "source": + D("error", d); + break; + case "img": + case "image": + case "link": + D( + "error", + d + ); + D("load", d); + break; + case "details": + D("toggle", d); + break; + case "input": + Za(d, f2); + D("invalid", d); + break; + case "select": + d._wrapperState = { wasMultiple: !!f2.multiple }; + D("invalid", d); + break; + case "textarea": + hb(d, f2), D("invalid", d); + } + ub(c, f2); + e = null; + for (var g in f2) if (f2.hasOwnProperty(g)) { + var h = f2[g]; + "children" === g ? "string" === typeof h ? d.textContent !== h && (true !== f2.suppressHydrationWarning && Af(d.textContent, h, a), e = ["children", h]) : "number" === typeof h && d.textContent !== "" + h && (true !== f2.suppressHydrationWarning && Af( + d.textContent, + h, + a + ), e = ["children", "" + h]) : ea.hasOwnProperty(g) && null != h && "onScroll" === g && D("scroll", d); + } + switch (c) { + case "input": + Va(d); + db(d, f2, true); + break; + case "textarea": + Va(d); + jb(d); + break; + case "select": + case "option": + break; + default: + "function" === typeof f2.onClick && (d.onclick = Bf); + } + d = e; + b.updateQueue = d; + null !== d && (b.flags |= 4); + } else { + g = 9 === e.nodeType ? e : e.ownerDocument; + "http://www.w3.org/1999/xhtml" === a && (a = kb(c)); + "http://www.w3.org/1999/xhtml" === a ? "script" === c ? (a = g.createElement("div"), a.innerHTML = " + + + +
+ + \ No newline at end of file diff --git a/sni-templates/games-site/site.webmanifest b/sni-templates/games-site/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/games-site/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/games-site/web-app-manifest-192x192.png b/sni-templates/games-site/web-app-manifest-192x192.png new file mode 100644 index 0000000..6b4474f Binary files /dev/null and b/sni-templates/games-site/web-app-manifest-192x192.png differ diff --git a/sni-templates/games-site/web-app-manifest-512x512.png b/sni-templates/games-site/web-app-manifest-512x512.png new file mode 100644 index 0000000..4bd9e3c Binary files /dev/null and b/sni-templates/games-site/web-app-manifest-512x512.png differ diff --git a/sni-templates/modmanager/apple-touch-icon.png b/sni-templates/modmanager/apple-touch-icon.png new file mode 100644 index 0000000..d2ccea0 Binary files /dev/null and b/sni-templates/modmanager/apple-touch-icon.png differ diff --git a/sni-templates/modmanager/assets/index-16g14u43.js b/sni-templates/modmanager/assets/index-16g14u43.js new file mode 100644 index 0000000..051c710 --- /dev/null +++ b/sni-templates/modmanager/assets/index-16g14u43.js @@ -0,0 +1,9737 @@ +function _mergeNamespaces(n2, m2) { + for (var i2 = 0; i2 < m2.length; i2++) { + const e2 = m2[i2]; + if (typeof e2 !== "string" && !Array.isArray(e2)) { + for (const k2 in e2) { + if (k2 !== "default" && !(k2 in n2)) { + const d2 = Object.getOwnPropertyDescriptor(e2, k2); + if (d2) { + Object.defineProperty(n2, k2, d2.get ? d2 : { + enumerable: true, + get: () => e2[k2] + }); + } + } + } + } + } + return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" })); +} +(function polyfill() { + const relList = document.createElement("link").relList; + if (relList && relList.supports && relList.supports("modulepreload")) { + return; + } + for (const link of document.querySelectorAll('link[rel="modulepreload"]')) { + processPreload(link); + } + new MutationObserver((mutations) => { + for (const mutation of mutations) { + if (mutation.type !== "childList") { + continue; + } + for (const node of mutation.addedNodes) { + if (node.tagName === "LINK" && node.rel === "modulepreload") + processPreload(node); + } + } + }).observe(document, { childList: true, subtree: true }); + function getFetchOpts(link) { + const fetchOpts = {}; + if (link.integrity) fetchOpts.integrity = link.integrity; + if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy; + if (link.crossOrigin === "use-credentials") + fetchOpts.credentials = "include"; + else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit"; + else fetchOpts.credentials = "same-origin"; + return fetchOpts; + } + function processPreload(link) { + if (link.ep) + return; + link.ep = true; + const fetchOpts = getFetchOpts(link); + fetch(link.href, fetchOpts); + } +})(); +function getDefaultExportFromCjs(x2) { + return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; +} +var jsxRuntime = { exports: {} }; +var reactJsxRuntime_production_min = {}; +var react = { exports: {} }; +var react_production_min = {}; +/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var l$8 = Symbol.for("react.element"), n$6 = Symbol.for("react.portal"), p$7 = Symbol.for("react.fragment"), q$3 = Symbol.for("react.strict_mode"), r$4 = Symbol.for("react.profiler"), t$8 = Symbol.for("react.provider"), u$8 = Symbol.for("react.context"), v$3 = Symbol.for("react.forward_ref"), w$2 = Symbol.for("react.suspense"), x$3 = Symbol.for("react.memo"), y$5 = Symbol.for("react.lazy"), z$2 = Symbol.iterator; +function A$2(a2) { + if (null === a2 || "object" !== typeof a2) return null; + a2 = z$2 && a2[z$2] || a2["@@iterator"]; + return "function" === typeof a2 ? a2 : null; +} +var B$1 = { isMounted: function() { + return false; +}, enqueueForceUpdate: function() { +}, enqueueReplaceState: function() { +}, enqueueSetState: function() { +} }, C$3 = Object.assign, D$5 = {}; +function E$2(a2, b2, e2) { + this.props = a2; + this.context = b2; + this.refs = D$5; + this.updater = e2 || B$1; +} +E$2.prototype.isReactComponent = {}; +E$2.prototype.setState = function(a2, b2) { + if ("object" !== typeof a2 && "function" !== typeof a2 && null != a2) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + this.updater.enqueueSetState(this, a2, b2, "setState"); +}; +E$2.prototype.forceUpdate = function(a2) { + this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); +}; +function F$4() { +} +F$4.prototype = E$2.prototype; +function G$2(a2, b2, e2) { + this.props = a2; + this.context = b2; + this.refs = D$5; + this.updater = e2 || B$1; +} +var H$2 = G$2.prototype = new F$4(); +H$2.constructor = G$2; +C$3(H$2, E$2.prototype); +H$2.isPureReactComponent = true; +var I$7 = Array.isArray, J$1 = Object.prototype.hasOwnProperty, K$2 = { current: null }, L$1 = { key: true, ref: true, __self: true, __source: true }; +function M$5(a2, b2, e2) { + var d2, c2 = {}, k2 = null, h2 = null; + if (null != b2) for (d2 in void 0 !== b2.ref && (h2 = b2.ref), void 0 !== b2.key && (k2 = "" + b2.key), b2) J$1.call(b2, d2) && !L$1.hasOwnProperty(d2) && (c2[d2] = b2[d2]); + var g2 = arguments.length - 2; + if (1 === g2) c2.children = e2; + else if (1 < g2) { + for (var f2 = Array(g2), m2 = 0; m2 < g2; m2++) f2[m2] = arguments[m2 + 2]; + c2.children = f2; + } + if (a2 && a2.defaultProps) for (d2 in g2 = a2.defaultProps, g2) void 0 === c2[d2] && (c2[d2] = g2[d2]); + return { $$typeof: l$8, type: a2, key: k2, ref: h2, props: c2, _owner: K$2.current }; +} +function N$4(a2, b2) { + return { $$typeof: l$8, type: a2.type, key: b2, ref: a2.ref, props: a2.props, _owner: a2._owner }; +} +function O$4(a2) { + return "object" === typeof a2 && null !== a2 && a2.$$typeof === l$8; +} +function escape(a2) { + var b2 = { "=": "=0", ":": "=2" }; + return "$" + a2.replace(/[=:]/g, function(a3) { + return b2[a3]; + }); +} +var P$3 = /\/+/g; +function Q$2(a2, b2) { + return "object" === typeof a2 && null !== a2 && null != a2.key ? escape("" + a2.key) : b2.toString(36); +} +function R$3(a2, b2, e2, d2, c2) { + var k2 = typeof a2; + if ("undefined" === k2 || "boolean" === k2) a2 = null; + var h2 = false; + if (null === a2) h2 = true; + else switch (k2) { + case "string": + case "number": + h2 = true; + break; + case "object": + switch (a2.$$typeof) { + case l$8: + case n$6: + h2 = true; + } + } + if (h2) return h2 = a2, c2 = c2(h2), a2 = "" === d2 ? "." + Q$2(h2, 0) : d2, I$7(c2) ? (e2 = "", null != a2 && (e2 = a2.replace(P$3, "$&/") + "/"), R$3(c2, b2, e2, "", function(a3) { + return a3; + })) : null != c2 && (O$4(c2) && (c2 = N$4(c2, e2 + (!c2.key || h2 && h2.key === c2.key ? "" : ("" + c2.key).replace(P$3, "$&/") + "/") + a2)), b2.push(c2)), 1; + h2 = 0; + d2 = "" === d2 ? "." : d2 + ":"; + if (I$7(a2)) for (var g2 = 0; g2 < a2.length; g2++) { + k2 = a2[g2]; + var f2 = d2 + Q$2(k2, g2); + h2 += R$3(k2, b2, e2, f2, c2); + } + else if (f2 = A$2(a2), "function" === typeof f2) for (a2 = f2.call(a2), g2 = 0; !(k2 = a2.next()).done; ) k2 = k2.value, f2 = d2 + Q$2(k2, g2++), h2 += R$3(k2, b2, e2, f2, c2); + else if ("object" === k2) throw b2 = String(a2), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b2 ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b2) + "). If you meant to render a collection of children, use an array instead."); + return h2; +} +function S$7(a2, b2, e2) { + if (null == a2) return a2; + var d2 = [], c2 = 0; + R$3(a2, d2, "", "", function(a3) { + return b2.call(e2, a3, c2++); + }); + return d2; +} +function T$3(a2) { + if (-1 === a2._status) { + var b2 = a2._result; + b2 = b2(); + b2.then(function(b3) { + if (0 === a2._status || -1 === a2._status) a2._status = 1, a2._result = b3; + }, function(b3) { + if (0 === a2._status || -1 === a2._status) a2._status = 2, a2._result = b3; + }); + -1 === a2._status && (a2._status = 0, a2._result = b2); + } + if (1 === a2._status) return a2._result.default; + throw a2._result; +} +var U$5 = { current: null }, V$2 = { transition: null }, W$2 = { ReactCurrentDispatcher: U$5, ReactCurrentBatchConfig: V$2, ReactCurrentOwner: K$2 }; +function X$4() { + throw Error("act(...) is not supported in production builds of React."); +} +react_production_min.Children = { map: S$7, forEach: function(a2, b2, e2) { + S$7(a2, function() { + b2.apply(this, arguments); + }, e2); +}, count: function(a2) { + var b2 = 0; + S$7(a2, function() { + b2++; + }); + return b2; +}, toArray: function(a2) { + return S$7(a2, function(a3) { + return a3; + }) || []; +}, only: function(a2) { + if (!O$4(a2)) throw Error("React.Children.only expected to receive a single React element child."); + return a2; +} }; +react_production_min.Component = E$2; +react_production_min.Fragment = p$7; +react_production_min.Profiler = r$4; +react_production_min.PureComponent = G$2; +react_production_min.StrictMode = q$3; +react_production_min.Suspense = w$2; +react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$2; +react_production_min.act = X$4; +react_production_min.cloneElement = function(a2, b2, e2) { + if (null === a2 || void 0 === a2) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a2 + "."); + var d2 = C$3({}, a2.props), c2 = a2.key, k2 = a2.ref, h2 = a2._owner; + if (null != b2) { + void 0 !== b2.ref && (k2 = b2.ref, h2 = K$2.current); + void 0 !== b2.key && (c2 = "" + b2.key); + if (a2.type && a2.type.defaultProps) var g2 = a2.type.defaultProps; + for (f2 in b2) J$1.call(b2, f2) && !L$1.hasOwnProperty(f2) && (d2[f2] = void 0 === b2[f2] && void 0 !== g2 ? g2[f2] : b2[f2]); + } + var f2 = arguments.length - 2; + if (1 === f2) d2.children = e2; + else if (1 < f2) { + g2 = Array(f2); + for (var m2 = 0; m2 < f2; m2++) g2[m2] = arguments[m2 + 2]; + d2.children = g2; + } + return { $$typeof: l$8, type: a2.type, key: c2, ref: k2, props: d2, _owner: h2 }; +}; +react_production_min.createContext = function(a2) { + a2 = { $$typeof: u$8, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }; + a2.Provider = { $$typeof: t$8, _context: a2 }; + return a2.Consumer = a2; +}; +react_production_min.createElement = M$5; +react_production_min.createFactory = function(a2) { + var b2 = M$5.bind(null, a2); + b2.type = a2; + return b2; +}; +react_production_min.createRef = function() { + return { current: null }; +}; +react_production_min.forwardRef = function(a2) { + return { $$typeof: v$3, render: a2 }; +}; +react_production_min.isValidElement = O$4; +react_production_min.lazy = function(a2) { + return { $$typeof: y$5, _payload: { _status: -1, _result: a2 }, _init: T$3 }; +}; +react_production_min.memo = function(a2, b2) { + return { $$typeof: x$3, type: a2, compare: void 0 === b2 ? null : b2 }; +}; +react_production_min.startTransition = function(a2) { + var b2 = V$2.transition; + V$2.transition = {}; + try { + a2(); + } finally { + V$2.transition = b2; + } +}; +react_production_min.unstable_act = X$4; +react_production_min.useCallback = function(a2, b2) { + return U$5.current.useCallback(a2, b2); +}; +react_production_min.useContext = function(a2) { + return U$5.current.useContext(a2); +}; +react_production_min.useDebugValue = function() { +}; +react_production_min.useDeferredValue = function(a2) { + return U$5.current.useDeferredValue(a2); +}; +react_production_min.useEffect = function(a2, b2) { + return U$5.current.useEffect(a2, b2); +}; +react_production_min.useId = function() { + return U$5.current.useId(); +}; +react_production_min.useImperativeHandle = function(a2, b2, e2) { + return U$5.current.useImperativeHandle(a2, b2, e2); +}; +react_production_min.useInsertionEffect = function(a2, b2) { + return U$5.current.useInsertionEffect(a2, b2); +}; +react_production_min.useLayoutEffect = function(a2, b2) { + return U$5.current.useLayoutEffect(a2, b2); +}; +react_production_min.useMemo = function(a2, b2) { + return U$5.current.useMemo(a2, b2); +}; +react_production_min.useReducer = function(a2, b2, e2) { + return U$5.current.useReducer(a2, b2, e2); +}; +react_production_min.useRef = function(a2) { + return U$5.current.useRef(a2); +}; +react_production_min.useState = function(a2) { + return U$5.current.useState(a2); +}; +react_production_min.useSyncExternalStore = function(a2, b2, e2) { + return U$5.current.useSyncExternalStore(a2, b2, e2); +}; +react_production_min.useTransition = function() { + return U$5.current.useTransition(); +}; +react_production_min.version = "18.3.1"; +{ + react.exports = react_production_min; +} +var reactExports = react.exports; +const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports); +const e$2 = /* @__PURE__ */ _mergeNamespaces({ + __proto__: null, + default: React +}, [reactExports]); +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var f$7 = reactExports, k$2 = Symbol.for("react.element"), l$7 = Symbol.for("react.fragment"), m$5 = Object.prototype.hasOwnProperty, n$5 = f$7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$6 = { key: true, ref: true, __self: true, __source: true }; +function q$2(c2, a2, g2) { + var b2, d2 = {}, e2 = null, h2 = null; + void 0 !== g2 && (e2 = "" + g2); + void 0 !== a2.key && (e2 = "" + a2.key); + void 0 !== a2.ref && (h2 = a2.ref); + for (b2 in a2) m$5.call(a2, b2) && !p$6.hasOwnProperty(b2) && (d2[b2] = a2[b2]); + if (c2 && c2.defaultProps) for (b2 in a2 = c2.defaultProps, a2) void 0 === d2[b2] && (d2[b2] = a2[b2]); + return { $$typeof: k$2, type: c2, key: e2, ref: h2, props: d2, _owner: n$5.current }; +} +reactJsxRuntime_production_min.Fragment = l$7; +reactJsxRuntime_production_min.jsx = q$2; +reactJsxRuntime_production_min.jsxs = q$2; +{ + jsxRuntime.exports = reactJsxRuntime_production_min; +} +var jsxRuntimeExports = jsxRuntime.exports; +var reactDom = { exports: {} }; +var reactDom_production_min = {}; +var scheduler = { exports: {} }; +var scheduler_production_min = {}; +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +(function(exports) { + function f2(a2, b2) { + var c2 = a2.length; + a2.push(b2); + a: for (; 0 < c2; ) { + var d2 = c2 - 1 >>> 1, e2 = a2[d2]; + if (0 < g2(e2, b2)) a2[d2] = b2, a2[c2] = e2, c2 = d2; + else break a; + } + } + function h2(a2) { + return 0 === a2.length ? null : a2[0]; + } + function k2(a2) { + if (0 === a2.length) return null; + var b2 = a2[0], c2 = a2.pop(); + if (c2 !== b2) { + a2[0] = c2; + a: for (var d2 = 0, e2 = a2.length, w2 = e2 >>> 1; d2 < w2; ) { + var m2 = 2 * (d2 + 1) - 1, C2 = a2[m2], n2 = m2 + 1, x2 = a2[n2]; + if (0 > g2(C2, c2)) n2 < e2 && 0 > g2(x2, C2) ? (a2[d2] = x2, a2[n2] = c2, d2 = n2) : (a2[d2] = C2, a2[m2] = c2, d2 = m2); + else if (n2 < e2 && 0 > g2(x2, c2)) a2[d2] = x2, a2[n2] = c2, d2 = n2; + else break a; + } + } + return b2; + } + function g2(a2, b2) { + var c2 = a2.sortIndex - b2.sortIndex; + return 0 !== c2 ? c2 : a2.id - b2.id; + } + if ("object" === typeof performance && "function" === typeof performance.now) { + var l2 = performance; + exports.unstable_now = function() { + return l2.now(); + }; + } else { + var p2 = Date, q2 = p2.now(); + exports.unstable_now = function() { + return p2.now() - q2; + }; + } + var r2 = [], t2 = [], u2 = 1, v2 = null, y2 = 3, z2 = false, A2 = false, B2 = false, D2 = "function" === typeof setTimeout ? setTimeout : null, E2 = "function" === typeof clearTimeout ? clearTimeout : null, F2 = "undefined" !== typeof setImmediate ? setImmediate : null; + "undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); + function G2(a2) { + for (var b2 = h2(t2); null !== b2; ) { + if (null === b2.callback) k2(t2); + else if (b2.startTime <= a2) k2(t2), b2.sortIndex = b2.expirationTime, f2(r2, b2); + else break; + b2 = h2(t2); + } + } + function H2(a2) { + B2 = false; + G2(a2); + if (!A2) if (null !== h2(r2)) A2 = true, I2(J2); + else { + var b2 = h2(t2); + null !== b2 && K2(H2, b2.startTime - a2); + } + } + function J2(a2, b2) { + A2 = false; + B2 && (B2 = false, E2(L2), L2 = -1); + z2 = true; + var c2 = y2; + try { + G2(b2); + for (v2 = h2(r2); null !== v2 && (!(v2.expirationTime > b2) || a2 && !M2()); ) { + var d2 = v2.callback; + if ("function" === typeof d2) { + v2.callback = null; + y2 = v2.priorityLevel; + var e2 = d2(v2.expirationTime <= b2); + b2 = exports.unstable_now(); + "function" === typeof e2 ? v2.callback = e2 : v2 === h2(r2) && k2(r2); + G2(b2); + } else k2(r2); + v2 = h2(r2); + } + if (null !== v2) var w2 = true; + else { + var m2 = h2(t2); + null !== m2 && K2(H2, m2.startTime - b2); + w2 = false; + } + return w2; + } finally { + v2 = null, y2 = c2, z2 = false; + } + } + var N2 = false, O2 = null, L2 = -1, P2 = 5, Q2 = -1; + function M2() { + return exports.unstable_now() - Q2 < P2 ? false : true; + } + function R2() { + if (null !== O2) { + var a2 = exports.unstable_now(); + Q2 = a2; + var b2 = true; + try { + b2 = O2(true, a2); + } finally { + b2 ? S2() : (N2 = false, O2 = null); + } + } else N2 = false; + } + var S2; + if ("function" === typeof F2) S2 = function() { + F2(R2); + }; + else if ("undefined" !== typeof MessageChannel) { + var T2 = new MessageChannel(), U2 = T2.port2; + T2.port1.onmessage = R2; + S2 = function() { + U2.postMessage(null); + }; + } else S2 = function() { + D2(R2, 0); + }; + function I2(a2) { + O2 = a2; + N2 || (N2 = true, S2()); + } + function K2(a2, b2) { + L2 = D2(function() { + a2(exports.unstable_now()); + }, b2); + } + exports.unstable_IdlePriority = 5; + exports.unstable_ImmediatePriority = 1; + exports.unstable_LowPriority = 4; + exports.unstable_NormalPriority = 3; + exports.unstable_Profiling = null; + exports.unstable_UserBlockingPriority = 2; + exports.unstable_cancelCallback = function(a2) { + a2.callback = null; + }; + exports.unstable_continueExecution = function() { + A2 || z2 || (A2 = true, I2(J2)); + }; + exports.unstable_forceFrameRate = function(a2) { + 0 > a2 || 125 < a2 ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P2 = 0 < a2 ? Math.floor(1e3 / a2) : 5; + }; + exports.unstable_getCurrentPriorityLevel = function() { + return y2; + }; + exports.unstable_getFirstCallbackNode = function() { + return h2(r2); + }; + exports.unstable_next = function(a2) { + switch (y2) { + case 1: + case 2: + case 3: + var b2 = 3; + break; + default: + b2 = y2; + } + var c2 = y2; + y2 = b2; + try { + return a2(); + } finally { + y2 = c2; + } + }; + exports.unstable_pauseExecution = function() { + }; + exports.unstable_requestPaint = function() { + }; + exports.unstable_runWithPriority = function(a2, b2) { + switch (a2) { + case 1: + case 2: + case 3: + case 4: + case 5: + break; + default: + a2 = 3; + } + var c2 = y2; + y2 = a2; + try { + return b2(); + } finally { + y2 = c2; + } + }; + exports.unstable_scheduleCallback = function(a2, b2, c2) { + var d2 = exports.unstable_now(); + "object" === typeof c2 && null !== c2 ? (c2 = c2.delay, c2 = "number" === typeof c2 && 0 < c2 ? d2 + c2 : d2) : c2 = d2; + switch (a2) { + case 1: + var e2 = -1; + break; + case 2: + e2 = 250; + break; + case 5: + e2 = 1073741823; + break; + case 4: + e2 = 1e4; + break; + default: + e2 = 5e3; + } + e2 = c2 + e2; + a2 = { id: u2++, callback: b2, priorityLevel: a2, startTime: c2, expirationTime: e2, sortIndex: -1 }; + c2 > d2 ? (a2.sortIndex = c2, f2(t2, a2), null === h2(r2) && a2 === h2(t2) && (B2 ? (E2(L2), L2 = -1) : B2 = true, K2(H2, c2 - d2))) : (a2.sortIndex = e2, f2(r2, a2), A2 || z2 || (A2 = true, I2(J2))); + return a2; + }; + exports.unstable_shouldYield = M2; + exports.unstable_wrapCallback = function(a2) { + var b2 = y2; + return function() { + var c2 = y2; + y2 = b2; + try { + return a2.apply(this, arguments); + } finally { + y2 = c2; + } + }; + }; +})(scheduler_production_min); +{ + scheduler.exports = scheduler_production_min; +} +var schedulerExports = scheduler.exports; +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var aa = reactExports, ca = schedulerExports; +function p$5(a2) { + for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++) b2 += "&args[]=" + encodeURIComponent(arguments[c2]); + return "Minified React error #" + a2 + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; +} +var da = /* @__PURE__ */ new Set(), ea = {}; +function fa(a2, b2) { + ha(a2, b2); + ha(a2 + "Capture", b2); +} +function ha(a2, b2) { + ea[a2] = b2; + for (a2 = 0; a2 < b2.length; a2++) da.add(b2[a2]); +} +var ia = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement), ja = Object.prototype.hasOwnProperty, ka = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, la = {}, ma = {}; +function oa(a2) { + if (ja.call(ma, a2)) return true; + if (ja.call(la, a2)) return false; + if (ka.test(a2)) return ma[a2] = true; + la[a2] = true; + return false; +} +function pa(a2, b2, c2, d2) { + if (null !== c2 && 0 === c2.type) return false; + switch (typeof b2) { + case "function": + case "symbol": + return true; + case "boolean": + if (d2) return false; + if (null !== c2) return !c2.acceptsBooleans; + a2 = a2.toLowerCase().slice(0, 5); + return "data-" !== a2 && "aria-" !== a2; + default: + return false; + } +} +function qa(a2, b2, c2, d2) { + if (null === b2 || "undefined" === typeof b2 || pa(a2, b2, c2, d2)) return true; + if (d2) return false; + if (null !== c2) switch (c2.type) { + case 3: + return !b2; + case 4: + return false === b2; + case 5: + return isNaN(b2); + case 6: + return isNaN(b2) || 1 > b2; + } + return false; +} +function v$2(a2, b2, c2, d2, e2, f2, g2) { + this.acceptsBooleans = 2 === b2 || 3 === b2 || 4 === b2; + this.attributeName = d2; + this.attributeNamespace = e2; + this.mustUseProperty = c2; + this.propertyName = a2; + this.type = b2; + this.sanitizeURL = f2; + this.removeEmptyString = g2; +} +var z$1 = {}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { + z$1[a2] = new v$2(a2, 0, false, a2, null, false, false); +}); +[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { + var b2 = a2[0]; + z$1[b2] = new v$2(b2, 1, false, a2[1], null, false, false); +}); +["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 2, false, a2.toLowerCase(), null, false, false); +}); +["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 2, false, a2, null, false, false); +}); +"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { + z$1[a2] = new v$2(a2, 3, false, a2.toLowerCase(), null, false, false); +}); +["checked", "multiple", "muted", "selected"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 3, true, a2, null, false, false); +}); +["capture", "download"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 4, false, a2, null, false, false); +}); +["cols", "rows", "size", "span"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 6, false, a2, null, false, false); +}); +["rowSpan", "start"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 5, false, a2.toLowerCase(), null, false, false); +}); +var ra = /[\-:]([a-z])/g; +function sa(a2) { + return a2[1].toUpperCase(); +} +"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { + var b2 = a2.replace( + ra, + sa + ); + z$1[b2] = new v$2(b2, 1, false, a2, null, false, false); +}); +"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { + var b2 = a2.replace(ra, sa); + z$1[b2] = new v$2(b2, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); +}); +["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { + var b2 = a2.replace(ra, sa); + z$1[b2] = new v$2(b2, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); +}); +["tabIndex", "crossOrigin"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 1, false, a2.toLowerCase(), null, false, false); +}); +z$1.xlinkHref = new v$2("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); +["src", "href", "action", "formAction"].forEach(function(a2) { + z$1[a2] = new v$2(a2, 1, false, a2.toLowerCase(), null, true, true); +}); +function ta(a2, b2, c2, d2) { + var e2 = z$1.hasOwnProperty(b2) ? z$1[b2] : null; + if (null !== e2 ? 0 !== e2.type : d2 || !(2 < b2.length) || "o" !== b2[0] && "O" !== b2[0] || "n" !== b2[1] && "N" !== b2[1]) qa(b2, c2, e2, d2) && (c2 = null), d2 || null === e2 ? oa(b2) && (null === c2 ? a2.removeAttribute(b2) : a2.setAttribute(b2, "" + c2)) : e2.mustUseProperty ? a2[e2.propertyName] = null === c2 ? 3 === e2.type ? false : "" : c2 : (b2 = e2.attributeName, d2 = e2.attributeNamespace, null === c2 ? a2.removeAttribute(b2) : (e2 = e2.type, c2 = 3 === e2 || 4 === e2 && true === c2 ? "" : "" + c2, d2 ? a2.setAttributeNS(d2, b2, c2) : a2.setAttribute(b2, c2))); +} +var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for("react.element"), wa = Symbol.for("react.portal"), ya = Symbol.for("react.fragment"), za = Symbol.for("react.strict_mode"), Aa = Symbol.for("react.profiler"), Ba = Symbol.for("react.provider"), Ca = Symbol.for("react.context"), Da = Symbol.for("react.forward_ref"), Ea = Symbol.for("react.suspense"), Fa = Symbol.for("react.suspense_list"), Ga = Symbol.for("react.memo"), Ha = Symbol.for("react.lazy"); +var Ia = Symbol.for("react.offscreen"); +var Ja = Symbol.iterator; +function Ka(a2) { + if (null === a2 || "object" !== typeof a2) return null; + a2 = Ja && a2[Ja] || a2["@@iterator"]; + return "function" === typeof a2 ? a2 : null; +} +var A$1 = Object.assign, La; +function Ma(a2) { + if (void 0 === La) try { + throw Error(); + } catch (c2) { + var b2 = c2.stack.trim().match(/\n( *(at )?)/); + La = b2 && b2[1] || ""; + } + return "\n" + La + a2; +} +var Na = false; +function Oa(a2, b2) { + if (!a2 || Na) return ""; + Na = true; + var c2 = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + if (b2) if (b2 = function() { + throw Error(); + }, Object.defineProperty(b2.prototype, "props", { set: function() { + throw Error(); + } }), "object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(b2, []); + } catch (l2) { + var d2 = l2; + } + Reflect.construct(a2, [], b2); + } else { + try { + b2.call(); + } catch (l2) { + d2 = l2; + } + a2.call(b2.prototype); + } + else { + try { + throw Error(); + } catch (l2) { + d2 = l2; + } + a2(); + } + } catch (l2) { + if (l2 && d2 && "string" === typeof l2.stack) { + for (var e2 = l2.stack.split("\n"), f2 = d2.stack.split("\n"), g2 = e2.length - 1, h2 = f2.length - 1; 1 <= g2 && 0 <= h2 && e2[g2] !== f2[h2]; ) h2--; + for (; 1 <= g2 && 0 <= h2; g2--, h2--) if (e2[g2] !== f2[h2]) { + if (1 !== g2 || 1 !== h2) { + do + if (g2--, h2--, 0 > h2 || e2[g2] !== f2[h2]) { + var k2 = "\n" + e2[g2].replace(" at new ", " at "); + a2.displayName && k2.includes("") && (k2 = k2.replace("", a2.displayName)); + return k2; + } + while (1 <= g2 && 0 <= h2); + } + break; + } + } + } finally { + Na = false, Error.prepareStackTrace = c2; + } + return (a2 = a2 ? a2.displayName || a2.name : "") ? Ma(a2) : ""; +} +function Pa(a2) { + switch (a2.tag) { + case 5: + return Ma(a2.type); + case 16: + return Ma("Lazy"); + case 13: + return Ma("Suspense"); + case 19: + return Ma("SuspenseList"); + case 0: + case 2: + case 15: + return a2 = Oa(a2.type, false), a2; + case 11: + return a2 = Oa(a2.type.render, false), a2; + case 1: + return a2 = Oa(a2.type, true), a2; + default: + return ""; + } +} +function Qa(a2) { + if (null == a2) return null; + if ("function" === typeof a2) return a2.displayName || a2.name || null; + if ("string" === typeof a2) return a2; + switch (a2) { + case ya: + return "Fragment"; + case wa: + return "Portal"; + case Aa: + return "Profiler"; + case za: + return "StrictMode"; + case Ea: + return "Suspense"; + case Fa: + return "SuspenseList"; + } + if ("object" === typeof a2) switch (a2.$$typeof) { + case Ca: + return (a2.displayName || "Context") + ".Consumer"; + case Ba: + return (a2._context.displayName || "Context") + ".Provider"; + case Da: + var b2 = a2.render; + a2 = a2.displayName; + a2 || (a2 = b2.displayName || b2.name || "", a2 = "" !== a2 ? "ForwardRef(" + a2 + ")" : "ForwardRef"); + return a2; + case Ga: + return b2 = a2.displayName || null, null !== b2 ? b2 : Qa(a2.type) || "Memo"; + case Ha: + b2 = a2._payload; + a2 = a2._init; + try { + return Qa(a2(b2)); + } catch (c2) { + } + } + return null; +} +function Ra(a2) { + var b2 = a2.type; + switch (a2.tag) { + case 24: + return "Cache"; + case 9: + return (b2.displayName || "Context") + ".Consumer"; + case 10: + return (b2._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return a2 = b2.render, a2 = a2.displayName || a2.name || "", b2.displayName || ("" !== a2 ? "ForwardRef(" + a2 + ")" : "ForwardRef"); + case 7: + return "Fragment"; + case 5: + return b2; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return Qa(b2); + case 8: + return b2 === za ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 17: + case 2: + case 14: + case 15: + if ("function" === typeof b2) return b2.displayName || b2.name || null; + if ("string" === typeof b2) return b2; + } + return null; +} +function Sa(a2) { + switch (typeof a2) { + case "boolean": + case "number": + case "string": + case "undefined": + return a2; + case "object": + return a2; + default: + return ""; + } +} +function Ta(a2) { + var b2 = a2.type; + return (a2 = a2.nodeName) && "input" === a2.toLowerCase() && ("checkbox" === b2 || "radio" === b2); +} +function Ua(a2) { + var b2 = Ta(a2) ? "checked" : "value", c2 = Object.getOwnPropertyDescriptor(a2.constructor.prototype, b2), d2 = "" + a2[b2]; + if (!a2.hasOwnProperty(b2) && "undefined" !== typeof c2 && "function" === typeof c2.get && "function" === typeof c2.set) { + var e2 = c2.get, f2 = c2.set; + Object.defineProperty(a2, b2, { configurable: true, get: function() { + return e2.call(this); + }, set: function(a3) { + d2 = "" + a3; + f2.call(this, a3); + } }); + Object.defineProperty(a2, b2, { enumerable: c2.enumerable }); + return { getValue: function() { + return d2; + }, setValue: function(a3) { + d2 = "" + a3; + }, stopTracking: function() { + a2._valueTracker = null; + delete a2[b2]; + } }; + } +} +function Va(a2) { + a2._valueTracker || (a2._valueTracker = Ua(a2)); +} +function Wa(a2) { + if (!a2) return false; + var b2 = a2._valueTracker; + if (!b2) return true; + var c2 = b2.getValue(); + var d2 = ""; + a2 && (d2 = Ta(a2) ? a2.checked ? "true" : "false" : a2.value); + a2 = d2; + return a2 !== c2 ? (b2.setValue(a2), true) : false; +} +function Xa(a2) { + a2 = a2 || ("undefined" !== typeof document ? document : void 0); + if ("undefined" === typeof a2) return null; + try { + return a2.activeElement || a2.body; + } catch (b2) { + return a2.body; + } +} +function Ya(a2, b2) { + var c2 = b2.checked; + return A$1({}, b2, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: null != c2 ? c2 : a2._wrapperState.initialChecked }); +} +function Za(a2, b2) { + var c2 = null == b2.defaultValue ? "" : b2.defaultValue, d2 = null != b2.checked ? b2.checked : b2.defaultChecked; + c2 = Sa(null != b2.value ? b2.value : c2); + a2._wrapperState = { initialChecked: d2, initialValue: c2, controlled: "checkbox" === b2.type || "radio" === b2.type ? null != b2.checked : null != b2.value }; +} +function ab(a2, b2) { + b2 = b2.checked; + null != b2 && ta(a2, "checked", b2, false); +} +function bb(a2, b2) { + ab(a2, b2); + var c2 = Sa(b2.value), d2 = b2.type; + if (null != c2) if ("number" === d2) { + if (0 === c2 && "" === a2.value || a2.value != c2) a2.value = "" + c2; + } else a2.value !== "" + c2 && (a2.value = "" + c2); + else if ("submit" === d2 || "reset" === d2) { + a2.removeAttribute("value"); + return; + } + b2.hasOwnProperty("value") ? cb(a2, b2.type, c2) : b2.hasOwnProperty("defaultValue") && cb(a2, b2.type, Sa(b2.defaultValue)); + null == b2.checked && null != b2.defaultChecked && (a2.defaultChecked = !!b2.defaultChecked); +} +function db(a2, b2, c2) { + if (b2.hasOwnProperty("value") || b2.hasOwnProperty("defaultValue")) { + var d2 = b2.type; + if (!("submit" !== d2 && "reset" !== d2 || void 0 !== b2.value && null !== b2.value)) return; + b2 = "" + a2._wrapperState.initialValue; + c2 || b2 === a2.value || (a2.value = b2); + a2.defaultValue = b2; + } + c2 = a2.name; + "" !== c2 && (a2.name = ""); + a2.defaultChecked = !!a2._wrapperState.initialChecked; + "" !== c2 && (a2.name = c2); +} +function cb(a2, b2, c2) { + if ("number" !== b2 || Xa(a2.ownerDocument) !== a2) null == c2 ? a2.defaultValue = "" + a2._wrapperState.initialValue : a2.defaultValue !== "" + c2 && (a2.defaultValue = "" + c2); +} +var eb = Array.isArray; +function fb(a2, b2, c2, d2) { + a2 = a2.options; + if (b2) { + b2 = {}; + for (var e2 = 0; e2 < c2.length; e2++) b2["$" + c2[e2]] = true; + for (c2 = 0; c2 < a2.length; c2++) e2 = b2.hasOwnProperty("$" + a2[c2].value), a2[c2].selected !== e2 && (a2[c2].selected = e2), e2 && d2 && (a2[c2].defaultSelected = true); + } else { + c2 = "" + Sa(c2); + b2 = null; + for (e2 = 0; e2 < a2.length; e2++) { + if (a2[e2].value === c2) { + a2[e2].selected = true; + d2 && (a2[e2].defaultSelected = true); + return; + } + null !== b2 || a2[e2].disabled || (b2 = a2[e2]); + } + null !== b2 && (b2.selected = true); + } +} +function gb(a2, b2) { + if (null != b2.dangerouslySetInnerHTML) throw Error(p$5(91)); + return A$1({}, b2, { value: void 0, defaultValue: void 0, children: "" + a2._wrapperState.initialValue }); +} +function hb(a2, b2) { + var c2 = b2.value; + if (null == c2) { + c2 = b2.children; + b2 = b2.defaultValue; + if (null != c2) { + if (null != b2) throw Error(p$5(92)); + if (eb(c2)) { + if (1 < c2.length) throw Error(p$5(93)); + c2 = c2[0]; + } + b2 = c2; + } + null == b2 && (b2 = ""); + c2 = b2; + } + a2._wrapperState = { initialValue: Sa(c2) }; +} +function ib(a2, b2) { + var c2 = Sa(b2.value), d2 = Sa(b2.defaultValue); + null != c2 && (c2 = "" + c2, c2 !== a2.value && (a2.value = c2), null == b2.defaultValue && a2.defaultValue !== c2 && (a2.defaultValue = c2)); + null != d2 && (a2.defaultValue = "" + d2); +} +function jb(a2) { + var b2 = a2.textContent; + b2 === a2._wrapperState.initialValue && "" !== b2 && null !== b2 && (a2.value = b2); +} +function kb(a2) { + switch (a2) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml"; + } +} +function lb(a2, b2) { + return null == a2 || "http://www.w3.org/1999/xhtml" === a2 ? kb(b2) : "http://www.w3.org/2000/svg" === a2 && "foreignObject" === b2 ? "http://www.w3.org/1999/xhtml" : a2; +} +var mb, nb = function(a2) { + return "undefined" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function(b2, c2, d2, e2) { + MSApp.execUnsafeLocalFunction(function() { + return a2(b2, c2, d2, e2); + }); + } : a2; +}(function(a2, b2) { + if ("http://www.w3.org/2000/svg" !== a2.namespaceURI || "innerHTML" in a2) a2.innerHTML = b2; + else { + mb = mb || document.createElement("div"); + mb.innerHTML = "" + b2.valueOf().toString() + ""; + for (b2 = mb.firstChild; a2.firstChild; ) a2.removeChild(a2.firstChild); + for (; b2.firstChild; ) a2.appendChild(b2.firstChild); + } +}); +function ob(a2, b2) { + if (b2) { + var c2 = a2.firstChild; + if (c2 && c2 === a2.lastChild && 3 === c2.nodeType) { + c2.nodeValue = b2; + return; + } + } + a2.textContent = b2; +} +var pb = { + animationIterationCount: true, + aspectRatio: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, + boxFlex: true, + boxFlexGroup: true, + boxOrdinalGroup: true, + columnCount: true, + columns: true, + flex: true, + flexGrow: true, + flexPositive: true, + flexShrink: true, + flexNegative: true, + flexOrder: true, + gridArea: true, + gridRow: true, + gridRowEnd: true, + gridRowSpan: true, + gridRowStart: true, + gridColumn: true, + gridColumnEnd: true, + gridColumnSpan: true, + gridColumnStart: true, + fontWeight: true, + lineClamp: true, + lineHeight: true, + opacity: true, + order: true, + orphans: true, + tabSize: true, + widows: true, + zIndex: true, + zoom: true, + fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, + strokeDashoffset: true, + strokeMiterlimit: true, + strokeOpacity: true, + strokeWidth: true +}, qb = ["Webkit", "ms", "Moz", "O"]; +Object.keys(pb).forEach(function(a2) { + qb.forEach(function(b2) { + b2 = b2 + a2.charAt(0).toUpperCase() + a2.substring(1); + pb[b2] = pb[a2]; + }); +}); +function rb(a2, b2, c2) { + return null == b2 || "boolean" === typeof b2 || "" === b2 ? "" : c2 || "number" !== typeof b2 || 0 === b2 || pb.hasOwnProperty(a2) && pb[a2] ? ("" + b2).trim() : b2 + "px"; +} +function sb(a2, b2) { + a2 = a2.style; + for (var c2 in b2) if (b2.hasOwnProperty(c2)) { + var d2 = 0 === c2.indexOf("--"), e2 = rb(c2, b2[c2], d2); + "float" === c2 && (c2 = "cssFloat"); + d2 ? a2.setProperty(c2, e2) : a2[c2] = e2; + } +} +var tb = A$1({ menuitem: true }, { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true }); +function ub(a2, b2) { + if (b2) { + if (tb[a2] && (null != b2.children || null != b2.dangerouslySetInnerHTML)) throw Error(p$5(137, a2)); + if (null != b2.dangerouslySetInnerHTML) { + if (null != b2.children) throw Error(p$5(60)); + if ("object" !== typeof b2.dangerouslySetInnerHTML || !("__html" in b2.dangerouslySetInnerHTML)) throw Error(p$5(61)); + } + if (null != b2.style && "object" !== typeof b2.style) throw Error(p$5(62)); + } +} +function vb(a2, b2) { + if (-1 === a2.indexOf("-")) return "string" === typeof b2.is; + switch (a2) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + return false; + default: + return true; + } +} +var wb = null; +function xb(a2) { + a2 = a2.target || a2.srcElement || window; + a2.correspondingUseElement && (a2 = a2.correspondingUseElement); + return 3 === a2.nodeType ? a2.parentNode : a2; +} +var yb = null, zb = null, Ab = null; +function Bb(a2) { + if (a2 = Cb(a2)) { + if ("function" !== typeof yb) throw Error(p$5(280)); + var b2 = a2.stateNode; + b2 && (b2 = Db(b2), yb(a2.stateNode, a2.type, b2)); + } +} +function Eb(a2) { + zb ? Ab ? Ab.push(a2) : Ab = [a2] : zb = a2; +} +function Fb() { + if (zb) { + var a2 = zb, b2 = Ab; + Ab = zb = null; + Bb(a2); + if (b2) for (a2 = 0; a2 < b2.length; a2++) Bb(b2[a2]); + } +} +function Gb(a2, b2) { + return a2(b2); +} +function Hb() { +} +var Ib = false; +function Jb(a2, b2, c2) { + if (Ib) return a2(b2, c2); + Ib = true; + try { + return Gb(a2, b2, c2); + } finally { + if (Ib = false, null !== zb || null !== Ab) Hb(), Fb(); + } +} +function Kb(a2, b2) { + var c2 = a2.stateNode; + if (null === c2) return null; + var d2 = Db(c2); + if (null === d2) return null; + c2 = d2[b2]; + a: switch (b2) { + case "onClick": + case "onClickCapture": + case "onDoubleClick": + case "onDoubleClickCapture": + case "onMouseDown": + case "onMouseDownCapture": + case "onMouseMove": + case "onMouseMoveCapture": + case "onMouseUp": + case "onMouseUpCapture": + case "onMouseEnter": + (d2 = !d2.disabled) || (a2 = a2.type, d2 = !("button" === a2 || "input" === a2 || "select" === a2 || "textarea" === a2)); + a2 = !d2; + break a; + default: + a2 = false; + } + if (a2) return null; + if (c2 && "function" !== typeof c2) throw Error(p$5(231, b2, typeof c2)); + return c2; +} +var Lb = false; +if (ia) try { + var Mb = {}; + Object.defineProperty(Mb, "passive", { get: function() { + Lb = true; + } }); + window.addEventListener("test", Mb, Mb); + window.removeEventListener("test", Mb, Mb); +} catch (a2) { + Lb = false; +} +function Nb(a2, b2, c2, d2, e2, f2, g2, h2, k2) { + var l2 = Array.prototype.slice.call(arguments, 3); + try { + b2.apply(c2, l2); + } catch (m2) { + this.onError(m2); + } +} +var Ob = false, Pb = null, Qb = false, Rb = null, Sb = { onError: function(a2) { + Ob = true; + Pb = a2; +} }; +function Tb(a2, b2, c2, d2, e2, f2, g2, h2, k2) { + Ob = false; + Pb = null; + Nb.apply(Sb, arguments); +} +function Ub(a2, b2, c2, d2, e2, f2, g2, h2, k2) { + Tb.apply(this, arguments); + if (Ob) { + if (Ob) { + var l2 = Pb; + Ob = false; + Pb = null; + } else throw Error(p$5(198)); + Qb || (Qb = true, Rb = l2); + } +} +function Vb(a2) { + var b2 = a2, c2 = a2; + if (a2.alternate) for (; b2.return; ) b2 = b2.return; + else { + a2 = b2; + do + b2 = a2, 0 !== (b2.flags & 4098) && (c2 = b2.return), a2 = b2.return; + while (a2); + } + return 3 === b2.tag ? c2 : null; +} +function Wb(a2) { + if (13 === a2.tag) { + var b2 = a2.memoizedState; + null === b2 && (a2 = a2.alternate, null !== a2 && (b2 = a2.memoizedState)); + if (null !== b2) return b2.dehydrated; + } + return null; +} +function Xb(a2) { + if (Vb(a2) !== a2) throw Error(p$5(188)); +} +function Yb(a2) { + var b2 = a2.alternate; + if (!b2) { + b2 = Vb(a2); + if (null === b2) throw Error(p$5(188)); + return b2 !== a2 ? null : a2; + } + for (var c2 = a2, d2 = b2; ; ) { + var e2 = c2.return; + if (null === e2) break; + var f2 = e2.alternate; + if (null === f2) { + d2 = e2.return; + if (null !== d2) { + c2 = d2; + continue; + } + break; + } + if (e2.child === f2.child) { + for (f2 = e2.child; f2; ) { + if (f2 === c2) return Xb(e2), a2; + if (f2 === d2) return Xb(e2), b2; + f2 = f2.sibling; + } + throw Error(p$5(188)); + } + if (c2.return !== d2.return) c2 = e2, d2 = f2; + else { + for (var g2 = false, h2 = e2.child; h2; ) { + if (h2 === c2) { + g2 = true; + c2 = e2; + d2 = f2; + break; + } + if (h2 === d2) { + g2 = true; + d2 = e2; + c2 = f2; + break; + } + h2 = h2.sibling; + } + if (!g2) { + for (h2 = f2.child; h2; ) { + if (h2 === c2) { + g2 = true; + c2 = f2; + d2 = e2; + break; + } + if (h2 === d2) { + g2 = true; + d2 = f2; + c2 = e2; + break; + } + h2 = h2.sibling; + } + if (!g2) throw Error(p$5(189)); + } + } + if (c2.alternate !== d2) throw Error(p$5(190)); + } + if (3 !== c2.tag) throw Error(p$5(188)); + return c2.stateNode.current === c2 ? a2 : b2; +} +function Zb(a2) { + a2 = Yb(a2); + return null !== a2 ? $b(a2) : null; +} +function $b(a2) { + if (5 === a2.tag || 6 === a2.tag) return a2; + for (a2 = a2.child; null !== a2; ) { + var b2 = $b(a2); + if (null !== b2) return b2; + a2 = a2.sibling; + } + return null; +} +var ac = ca.unstable_scheduleCallback, bc = ca.unstable_cancelCallback, cc = ca.unstable_shouldYield, dc = ca.unstable_requestPaint, B = ca.unstable_now, ec = ca.unstable_getCurrentPriorityLevel, fc = ca.unstable_ImmediatePriority, gc = ca.unstable_UserBlockingPriority, hc = ca.unstable_NormalPriority, ic = ca.unstable_LowPriority, jc = ca.unstable_IdlePriority, kc = null, lc = null; +function mc(a2) { + if (lc && "function" === typeof lc.onCommitFiberRoot) try { + lc.onCommitFiberRoot(kc, a2, void 0, 128 === (a2.current.flags & 128)); + } catch (b2) { + } +} +var oc = Math.clz32 ? Math.clz32 : nc, pc = Math.log, qc = Math.LN2; +function nc(a2) { + a2 >>>= 0; + return 0 === a2 ? 32 : 31 - (pc(a2) / qc | 0) | 0; +} +var rc = 64, sc = 4194304; +function tc(a2) { + switch (a2 & -a2) { + case 1: + return 1; + case 2: + return 2; + case 4: + return 4; + case 8: + return 8; + case 16: + return 16; + case 32: + return 32; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return a2 & 4194240; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return a2 & 130023424; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 1073741824; + default: + return a2; + } +} +function uc(a2, b2) { + var c2 = a2.pendingLanes; + if (0 === c2) return 0; + var d2 = 0, e2 = a2.suspendedLanes, f2 = a2.pingedLanes, g2 = c2 & 268435455; + if (0 !== g2) { + var h2 = g2 & ~e2; + 0 !== h2 ? d2 = tc(h2) : (f2 &= g2, 0 !== f2 && (d2 = tc(f2))); + } else g2 = c2 & ~e2, 0 !== g2 ? d2 = tc(g2) : 0 !== f2 && (d2 = tc(f2)); + if (0 === d2) return 0; + if (0 !== b2 && b2 !== d2 && 0 === (b2 & e2) && (e2 = d2 & -d2, f2 = b2 & -b2, e2 >= f2 || 16 === e2 && 0 !== (f2 & 4194240))) return b2; + 0 !== (d2 & 4) && (d2 |= c2 & 16); + b2 = a2.entangledLanes; + if (0 !== b2) for (a2 = a2.entanglements, b2 &= d2; 0 < b2; ) c2 = 31 - oc(b2), e2 = 1 << c2, d2 |= a2[c2], b2 &= ~e2; + return d2; +} +function vc(a2, b2) { + switch (a2) { + case 1: + case 2: + case 4: + return b2 + 250; + case 8: + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return b2 + 5e3; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + return -1; + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return -1; + } +} +function wc(a2, b2) { + for (var c2 = a2.suspendedLanes, d2 = a2.pingedLanes, e2 = a2.expirationTimes, f2 = a2.pendingLanes; 0 < f2; ) { + var g2 = 31 - oc(f2), h2 = 1 << g2, k2 = e2[g2]; + if (-1 === k2) { + if (0 === (h2 & c2) || 0 !== (h2 & d2)) e2[g2] = vc(h2, b2); + } else k2 <= b2 && (a2.expiredLanes |= h2); + f2 &= ~h2; + } +} +function xc(a2) { + a2 = a2.pendingLanes & -1073741825; + return 0 !== a2 ? a2 : a2 & 1073741824 ? 1073741824 : 0; +} +function yc() { + var a2 = rc; + rc <<= 1; + 0 === (rc & 4194240) && (rc = 64); + return a2; +} +function zc(a2) { + for (var b2 = [], c2 = 0; 31 > c2; c2++) b2.push(a2); + return b2; +} +function Ac(a2, b2, c2) { + a2.pendingLanes |= b2; + 536870912 !== b2 && (a2.suspendedLanes = 0, a2.pingedLanes = 0); + a2 = a2.eventTimes; + b2 = 31 - oc(b2); + a2[b2] = c2; +} +function Bc(a2, b2) { + var c2 = a2.pendingLanes & ~b2; + a2.pendingLanes = b2; + a2.suspendedLanes = 0; + a2.pingedLanes = 0; + a2.expiredLanes &= b2; + a2.mutableReadLanes &= b2; + a2.entangledLanes &= b2; + b2 = a2.entanglements; + var d2 = a2.eventTimes; + for (a2 = a2.expirationTimes; 0 < c2; ) { + var e2 = 31 - oc(c2), f2 = 1 << e2; + b2[e2] = 0; + d2[e2] = -1; + a2[e2] = -1; + c2 &= ~f2; + } +} +function Cc(a2, b2) { + var c2 = a2.entangledLanes |= b2; + for (a2 = a2.entanglements; c2; ) { + var d2 = 31 - oc(c2), e2 = 1 << d2; + e2 & b2 | a2[d2] & b2 && (a2[d2] |= b2); + c2 &= ~e2; + } +} +var C$2 = 0; +function Dc(a2) { + a2 &= -a2; + return 1 < a2 ? 4 < a2 ? 0 !== (a2 & 268435455) ? 16 : 536870912 : 4 : 1; +} +var Ec, Fc, Gc, Hc, Ic, Jc = false, Kc = [], Lc = null, Mc = null, Nc = null, Oc = /* @__PURE__ */ new Map(), Pc = /* @__PURE__ */ new Map(), Qc = [], Rc = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); +function Sc(a2, b2) { + switch (a2) { + case "focusin": + case "focusout": + Lc = null; + break; + case "dragenter": + case "dragleave": + Mc = null; + break; + case "mouseover": + case "mouseout": + Nc = null; + break; + case "pointerover": + case "pointerout": + Oc.delete(b2.pointerId); + break; + case "gotpointercapture": + case "lostpointercapture": + Pc.delete(b2.pointerId); + } +} +function Tc(a2, b2, c2, d2, e2, f2) { + if (null === a2 || a2.nativeEvent !== f2) return a2 = { blockedOn: b2, domEventName: c2, eventSystemFlags: d2, nativeEvent: f2, targetContainers: [e2] }, null !== b2 && (b2 = Cb(b2), null !== b2 && Fc(b2)), a2; + a2.eventSystemFlags |= d2; + b2 = a2.targetContainers; + null !== e2 && -1 === b2.indexOf(e2) && b2.push(e2); + return a2; +} +function Uc(a2, b2, c2, d2, e2) { + switch (b2) { + case "focusin": + return Lc = Tc(Lc, a2, b2, c2, d2, e2), true; + case "dragenter": + return Mc = Tc(Mc, a2, b2, c2, d2, e2), true; + case "mouseover": + return Nc = Tc(Nc, a2, b2, c2, d2, e2), true; + case "pointerover": + var f2 = e2.pointerId; + Oc.set(f2, Tc(Oc.get(f2) || null, a2, b2, c2, d2, e2)); + return true; + case "gotpointercapture": + return f2 = e2.pointerId, Pc.set(f2, Tc(Pc.get(f2) || null, a2, b2, c2, d2, e2)), true; + } + return false; +} +function Vc(a2) { + var b2 = Wc(a2.target); + if (null !== b2) { + var c2 = Vb(b2); + if (null !== c2) { + if (b2 = c2.tag, 13 === b2) { + if (b2 = Wb(c2), null !== b2) { + a2.blockedOn = b2; + Ic(a2.priority, function() { + Gc(c2); + }); + return; + } + } else if (3 === b2 && c2.stateNode.current.memoizedState.isDehydrated) { + a2.blockedOn = 3 === c2.tag ? c2.stateNode.containerInfo : null; + return; + } + } + } + a2.blockedOn = null; +} +function Xc(a2) { + if (null !== a2.blockedOn) return false; + for (var b2 = a2.targetContainers; 0 < b2.length; ) { + var c2 = Yc(a2.domEventName, a2.eventSystemFlags, b2[0], a2.nativeEvent); + if (null === c2) { + c2 = a2.nativeEvent; + var d2 = new c2.constructor(c2.type, c2); + wb = d2; + c2.target.dispatchEvent(d2); + wb = null; + } else return b2 = Cb(c2), null !== b2 && Fc(b2), a2.blockedOn = c2, false; + b2.shift(); + } + return true; +} +function Zc(a2, b2, c2) { + Xc(a2) && c2.delete(b2); +} +function $c() { + Jc = false; + null !== Lc && Xc(Lc) && (Lc = null); + null !== Mc && Xc(Mc) && (Mc = null); + null !== Nc && Xc(Nc) && (Nc = null); + Oc.forEach(Zc); + Pc.forEach(Zc); +} +function ad(a2, b2) { + a2.blockedOn === b2 && (a2.blockedOn = null, Jc || (Jc = true, ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))); +} +function bd(a2) { + function b2(b3) { + return ad(b3, a2); + } + if (0 < Kc.length) { + ad(Kc[0], a2); + for (var c2 = 1; c2 < Kc.length; c2++) { + var d2 = Kc[c2]; + d2.blockedOn === a2 && (d2.blockedOn = null); + } + } + null !== Lc && ad(Lc, a2); + null !== Mc && ad(Mc, a2); + null !== Nc && ad(Nc, a2); + Oc.forEach(b2); + Pc.forEach(b2); + for (c2 = 0; c2 < Qc.length; c2++) d2 = Qc[c2], d2.blockedOn === a2 && (d2.blockedOn = null); + for (; 0 < Qc.length && (c2 = Qc[0], null === c2.blockedOn); ) Vc(c2), null === c2.blockedOn && Qc.shift(); +} +var cd = ua.ReactCurrentBatchConfig, dd = true; +function ed(a2, b2, c2, d2) { + var e2 = C$2, f2 = cd.transition; + cd.transition = null; + try { + C$2 = 1, fd(a2, b2, c2, d2); + } finally { + C$2 = e2, cd.transition = f2; + } +} +function gd(a2, b2, c2, d2) { + var e2 = C$2, f2 = cd.transition; + cd.transition = null; + try { + C$2 = 4, fd(a2, b2, c2, d2); + } finally { + C$2 = e2, cd.transition = f2; + } +} +function fd(a2, b2, c2, d2) { + if (dd) { + var e2 = Yc(a2, b2, c2, d2); + if (null === e2) hd(a2, b2, d2, id, c2), Sc(a2, d2); + else if (Uc(e2, a2, b2, c2, d2)) d2.stopPropagation(); + else if (Sc(a2, d2), b2 & 4 && -1 < Rc.indexOf(a2)) { + for (; null !== e2; ) { + var f2 = Cb(e2); + null !== f2 && Ec(f2); + f2 = Yc(a2, b2, c2, d2); + null === f2 && hd(a2, b2, d2, id, c2); + if (f2 === e2) break; + e2 = f2; + } + null !== e2 && d2.stopPropagation(); + } else hd(a2, b2, d2, null, c2); + } +} +var id = null; +function Yc(a2, b2, c2, d2) { + id = null; + a2 = xb(d2); + a2 = Wc(a2); + if (null !== a2) if (b2 = Vb(a2), null === b2) a2 = null; + else if (c2 = b2.tag, 13 === c2) { + a2 = Wb(b2); + if (null !== a2) return a2; + a2 = null; + } else if (3 === c2) { + if (b2.stateNode.current.memoizedState.isDehydrated) return 3 === b2.tag ? b2.stateNode.containerInfo : null; + a2 = null; + } else b2 !== a2 && (a2 = null); + id = a2; + return null; +} +function jd(a2) { + switch (a2) { + case "cancel": + case "click": + case "close": + case "contextmenu": + case "copy": + case "cut": + case "auxclick": + case "dblclick": + case "dragend": + case "dragstart": + case "drop": + case "focusin": + case "focusout": + case "input": + case "invalid": + case "keydown": + case "keypress": + case "keyup": + case "mousedown": + case "mouseup": + case "paste": + case "pause": + case "play": + case "pointercancel": + case "pointerdown": + case "pointerup": + case "ratechange": + case "reset": + case "resize": + case "seeked": + case "submit": + case "touchcancel": + case "touchend": + case "touchstart": + case "volumechange": + case "change": + case "selectionchange": + case "textInput": + case "compositionstart": + case "compositionend": + case "compositionupdate": + case "beforeblur": + case "afterblur": + case "beforeinput": + case "blur": + case "fullscreenchange": + case "focus": + case "hashchange": + case "popstate": + case "select": + case "selectstart": + return 1; + case "drag": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "mousemove": + case "mouseout": + case "mouseover": + case "pointermove": + case "pointerout": + case "pointerover": + case "scroll": + case "toggle": + case "touchmove": + case "wheel": + case "mouseenter": + case "mouseleave": + case "pointerenter": + case "pointerleave": + return 4; + case "message": + switch (ec()) { + case fc: + return 1; + case gc: + return 4; + case hc: + case ic: + return 16; + case jc: + return 536870912; + default: + return 16; + } + default: + return 16; + } +} +var kd = null, ld = null, md = null; +function nd() { + if (md) return md; + var a2, b2 = ld, c2 = b2.length, d2, e2 = "value" in kd ? kd.value : kd.textContent, f2 = e2.length; + for (a2 = 0; a2 < c2 && b2[a2] === e2[a2]; a2++) ; + var g2 = c2 - a2; + for (d2 = 1; d2 <= g2 && b2[c2 - d2] === e2[f2 - d2]; d2++) ; + return md = e2.slice(a2, 1 < d2 ? 1 - d2 : void 0); +} +function od(a2) { + var b2 = a2.keyCode; + "charCode" in a2 ? (a2 = a2.charCode, 0 === a2 && 13 === b2 && (a2 = 13)) : a2 = b2; + 10 === a2 && (a2 = 13); + return 32 <= a2 || 13 === a2 ? a2 : 0; +} +function pd() { + return true; +} +function qd() { + return false; +} +function rd(a2) { + function b2(b3, d2, e2, f2, g2) { + this._reactName = b3; + this._targetInst = e2; + this.type = d2; + this.nativeEvent = f2; + this.target = g2; + this.currentTarget = null; + for (var c2 in a2) a2.hasOwnProperty(c2) && (b3 = a2[c2], this[c2] = b3 ? b3(f2) : f2[c2]); + this.isDefaultPrevented = (null != f2.defaultPrevented ? f2.defaultPrevented : false === f2.returnValue) ? pd : qd; + this.isPropagationStopped = qd; + return this; + } + A$1(b2.prototype, { preventDefault: function() { + this.defaultPrevented = true; + var a3 = this.nativeEvent; + a3 && (a3.preventDefault ? a3.preventDefault() : "unknown" !== typeof a3.returnValue && (a3.returnValue = false), this.isDefaultPrevented = pd); + }, stopPropagation: function() { + var a3 = this.nativeEvent; + a3 && (a3.stopPropagation ? a3.stopPropagation() : "unknown" !== typeof a3.cancelBubble && (a3.cancelBubble = true), this.isPropagationStopped = pd); + }, persist: function() { + }, isPersistent: pd }); + return b2; +} +var sd = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(a2) { + return a2.timeStamp || Date.now(); +}, defaultPrevented: 0, isTrusted: 0 }, td = rd(sd), ud = A$1({}, sd, { view: 0, detail: 0 }), vd = rd(ud), wd, xd, yd, Ad = A$1({}, ud, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: zd, button: 0, buttons: 0, relatedTarget: function(a2) { + return void 0 === a2.relatedTarget ? a2.fromElement === a2.srcElement ? a2.toElement : a2.fromElement : a2.relatedTarget; +}, movementX: function(a2) { + if ("movementX" in a2) return a2.movementX; + a2 !== yd && (yd && "mousemove" === a2.type ? (wd = a2.screenX - yd.screenX, xd = a2.screenY - yd.screenY) : xd = wd = 0, yd = a2); + return wd; +}, movementY: function(a2) { + return "movementY" in a2 ? a2.movementY : xd; +} }), Bd = rd(Ad), Cd = A$1({}, Ad, { dataTransfer: 0 }), Dd = rd(Cd), Ed = A$1({}, ud, { relatedTarget: 0 }), Fd = rd(Ed), Gd = A$1({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), Hd = rd(Gd), Id = A$1({}, sd, { clipboardData: function(a2) { + return "clipboardData" in a2 ? a2.clipboardData : window.clipboardData; +} }), Jd = rd(Id), Kd = A$1({}, sd, { data: 0 }), Ld = rd(Kd), Md = { + Esc: "Escape", + Spacebar: " ", + Left: "ArrowLeft", + Up: "ArrowUp", + Right: "ArrowRight", + Down: "ArrowDown", + Del: "Delete", + Win: "OS", + Menu: "ContextMenu", + Apps: "ContextMenu", + Scroll: "ScrollLock", + MozPrintableKey: "Unidentified" +}, Nd = { + 8: "Backspace", + 9: "Tab", + 12: "Clear", + 13: "Enter", + 16: "Shift", + 17: "Control", + 18: "Alt", + 19: "Pause", + 20: "CapsLock", + 27: "Escape", + 32: " ", + 33: "PageUp", + 34: "PageDown", + 35: "End", + 36: "Home", + 37: "ArrowLeft", + 38: "ArrowUp", + 39: "ArrowRight", + 40: "ArrowDown", + 45: "Insert", + 46: "Delete", + 112: "F1", + 113: "F2", + 114: "F3", + 115: "F4", + 116: "F5", + 117: "F6", + 118: "F7", + 119: "F8", + 120: "F9", + 121: "F10", + 122: "F11", + 123: "F12", + 144: "NumLock", + 145: "ScrollLock", + 224: "Meta" +}, Od = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; +function Pd(a2) { + var b2 = this.nativeEvent; + return b2.getModifierState ? b2.getModifierState(a2) : (a2 = Od[a2]) ? !!b2[a2] : false; +} +function zd() { + return Pd; +} +var Qd = A$1({}, ud, { key: function(a2) { + if (a2.key) { + var b2 = Md[a2.key] || a2.key; + if ("Unidentified" !== b2) return b2; + } + return "keypress" === a2.type ? (a2 = od(a2), 13 === a2 ? "Enter" : String.fromCharCode(a2)) : "keydown" === a2.type || "keyup" === a2.type ? Nd[a2.keyCode] || "Unidentified" : ""; +}, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: zd, charCode: function(a2) { + return "keypress" === a2.type ? od(a2) : 0; +}, keyCode: function(a2) { + return "keydown" === a2.type || "keyup" === a2.type ? a2.keyCode : 0; +}, which: function(a2) { + return "keypress" === a2.type ? od(a2) : "keydown" === a2.type || "keyup" === a2.type ? a2.keyCode : 0; +} }), Rd = rd(Qd), Sd = A$1({}, Ad, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), Td = rd(Sd), Ud = A$1({}, ud, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: zd }), Vd = rd(Ud), Wd = A$1({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Xd = rd(Wd), Yd = A$1({}, Ad, { + deltaX: function(a2) { + return "deltaX" in a2 ? a2.deltaX : "wheelDeltaX" in a2 ? -a2.wheelDeltaX : 0; + }, + deltaY: function(a2) { + return "deltaY" in a2 ? a2.deltaY : "wheelDeltaY" in a2 ? -a2.wheelDeltaY : "wheelDelta" in a2 ? -a2.wheelDelta : 0; + }, + deltaZ: 0, + deltaMode: 0 +}), Zd = rd(Yd), $d = [9, 13, 27, 32], ae$1 = ia && "CompositionEvent" in window, be$1 = null; +ia && "documentMode" in document && (be$1 = document.documentMode); +var ce = ia && "TextEvent" in window && !be$1, de$2 = ia && (!ae$1 || be$1 && 8 < be$1 && 11 >= be$1), ee$2 = String.fromCharCode(32), fe$1 = false; +function ge$1(a2, b2) { + switch (a2) { + case "keyup": + return -1 !== $d.indexOf(b2.keyCode); + case "keydown": + return 229 !== b2.keyCode; + case "keypress": + case "mousedown": + case "focusout": + return true; + default: + return false; + } +} +function he$1(a2) { + a2 = a2.detail; + return "object" === typeof a2 && "data" in a2 ? a2.data : null; +} +var ie = false; +function je$1(a2, b2) { + switch (a2) { + case "compositionend": + return he$1(b2); + case "keypress": + if (32 !== b2.which) return null; + fe$1 = true; + return ee$2; + case "textInput": + return a2 = b2.data, a2 === ee$2 && fe$1 ? null : a2; + default: + return null; + } +} +function ke(a2, b2) { + if (ie) return "compositionend" === a2 || !ae$1 && ge$1(a2, b2) ? (a2 = nd(), md = ld = kd = null, ie = false, a2) : null; + switch (a2) { + case "paste": + return null; + case "keypress": + if (!(b2.ctrlKey || b2.altKey || b2.metaKey) || b2.ctrlKey && b2.altKey) { + if (b2.char && 1 < b2.char.length) return b2.char; + if (b2.which) return String.fromCharCode(b2.which); + } + return null; + case "compositionend": + return de$2 && "ko" !== b2.locale ? null : b2.data; + default: + return null; + } +} +var le$2 = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true }; +function me(a2) { + var b2 = a2 && a2.nodeName && a2.nodeName.toLowerCase(); + return "input" === b2 ? !!le$2[a2.type] : "textarea" === b2 ? true : false; +} +function ne$1(a2, b2, c2, d2) { + Eb(d2); + b2 = oe$1(b2, "onChange"); + 0 < b2.length && (c2 = new td("onChange", "change", null, c2, d2), a2.push({ event: c2, listeners: b2 })); +} +var pe$1 = null, qe$2 = null; +function re$1(a2) { + se$2(a2, 0); +} +function te$1(a2) { + var b2 = ue$2(a2); + if (Wa(b2)) return a2; +} +function ve$1(a2, b2) { + if ("change" === a2) return b2; +} +var we$1 = false; +if (ia) { + var xe$2; + if (ia) { + var ye$2 = "oninput" in document; + if (!ye$2) { + var ze$1 = document.createElement("div"); + ze$1.setAttribute("oninput", "return;"); + ye$2 = "function" === typeof ze$1.oninput; + } + xe$2 = ye$2; + } else xe$2 = false; + we$1 = xe$2 && (!document.documentMode || 9 < document.documentMode); +} +function Ae$1() { + pe$1 && (pe$1.detachEvent("onpropertychange", Be$1), qe$2 = pe$1 = null); +} +function Be$1(a2) { + if ("value" === a2.propertyName && te$1(qe$2)) { + var b2 = []; + ne$1(b2, qe$2, a2, xb(a2)); + Jb(re$1, b2); + } +} +function Ce(a2, b2, c2) { + "focusin" === a2 ? (Ae$1(), pe$1 = b2, qe$2 = c2, pe$1.attachEvent("onpropertychange", Be$1)) : "focusout" === a2 && Ae$1(); +} +function De$2(a2) { + if ("selectionchange" === a2 || "keyup" === a2 || "keydown" === a2) return te$1(qe$2); +} +function Ee$1(a2, b2) { + if ("click" === a2) return te$1(b2); +} +function Fe$1(a2, b2) { + if ("input" === a2 || "change" === a2) return te$1(b2); +} +function Ge$1(a2, b2) { + return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2; +} +var He$2 = "function" === typeof Object.is ? Object.is : Ge$1; +function Ie(a2, b2) { + if (He$2(a2, b2)) return true; + if ("object" !== typeof a2 || null === a2 || "object" !== typeof b2 || null === b2) return false; + var c2 = Object.keys(a2), d2 = Object.keys(b2); + if (c2.length !== d2.length) return false; + for (d2 = 0; d2 < c2.length; d2++) { + var e2 = c2[d2]; + if (!ja.call(b2, e2) || !He$2(a2[e2], b2[e2])) return false; + } + return true; +} +function Je$1(a2) { + for (; a2 && a2.firstChild; ) a2 = a2.firstChild; + return a2; +} +function Ke$1(a2, b2) { + var c2 = Je$1(a2); + a2 = 0; + for (var d2; c2; ) { + if (3 === c2.nodeType) { + d2 = a2 + c2.textContent.length; + if (a2 <= b2 && d2 >= b2) return { node: c2, offset: b2 - a2 }; + a2 = d2; + } + a: { + for (; c2; ) { + if (c2.nextSibling) { + c2 = c2.nextSibling; + break a; + } + c2 = c2.parentNode; + } + c2 = void 0; + } + c2 = Je$1(c2); + } +} +function Le$1(a2, b2) { + return a2 && b2 ? a2 === b2 ? true : a2 && 3 === a2.nodeType ? false : b2 && 3 === b2.nodeType ? Le$1(a2, b2.parentNode) : "contains" in a2 ? a2.contains(b2) : a2.compareDocumentPosition ? !!(a2.compareDocumentPosition(b2) & 16) : false : false; +} +function Me$1() { + for (var a2 = window, b2 = Xa(); b2 instanceof a2.HTMLIFrameElement; ) { + try { + var c2 = "string" === typeof b2.contentWindow.location.href; + } catch (d2) { + c2 = false; + } + if (c2) a2 = b2.contentWindow; + else break; + b2 = Xa(a2.document); + } + return b2; +} +function Ne$2(a2) { + var b2 = a2 && a2.nodeName && a2.nodeName.toLowerCase(); + return b2 && ("input" === b2 && ("text" === a2.type || "search" === a2.type || "tel" === a2.type || "url" === a2.type || "password" === a2.type) || "textarea" === b2 || "true" === a2.contentEditable); +} +function Oe$1(a2) { + var b2 = Me$1(), c2 = a2.focusedElem, d2 = a2.selectionRange; + if (b2 !== c2 && c2 && c2.ownerDocument && Le$1(c2.ownerDocument.documentElement, c2)) { + if (null !== d2 && Ne$2(c2)) { + if (b2 = d2.start, a2 = d2.end, void 0 === a2 && (a2 = b2), "selectionStart" in c2) c2.selectionStart = b2, c2.selectionEnd = Math.min(a2, c2.value.length); + else if (a2 = (b2 = c2.ownerDocument || document) && b2.defaultView || window, a2.getSelection) { + a2 = a2.getSelection(); + var e2 = c2.textContent.length, f2 = Math.min(d2.start, e2); + d2 = void 0 === d2.end ? f2 : Math.min(d2.end, e2); + !a2.extend && f2 > d2 && (e2 = d2, d2 = f2, f2 = e2); + e2 = Ke$1(c2, f2); + var g2 = Ke$1( + c2, + d2 + ); + e2 && g2 && (1 !== a2.rangeCount || a2.anchorNode !== e2.node || a2.anchorOffset !== e2.offset || a2.focusNode !== g2.node || a2.focusOffset !== g2.offset) && (b2 = b2.createRange(), b2.setStart(e2.node, e2.offset), a2.removeAllRanges(), f2 > d2 ? (a2.addRange(b2), a2.extend(g2.node, g2.offset)) : (b2.setEnd(g2.node, g2.offset), a2.addRange(b2))); + } + } + b2 = []; + for (a2 = c2; a2 = a2.parentNode; ) 1 === a2.nodeType && b2.push({ element: a2, left: a2.scrollLeft, top: a2.scrollTop }); + "function" === typeof c2.focus && c2.focus(); + for (c2 = 0; c2 < b2.length; c2++) a2 = b2[c2], a2.element.scrollLeft = a2.left, a2.element.scrollTop = a2.top; + } +} +var Pe$1 = ia && "documentMode" in document && 11 >= document.documentMode, Qe$1 = null, Re$1 = null, Se$2 = null, Te$1 = false; +function Ue$1(a2, b2, c2) { + var d2 = c2.window === c2 ? c2.document : 9 === c2.nodeType ? c2 : c2.ownerDocument; + Te$1 || null == Qe$1 || Qe$1 !== Xa(d2) || (d2 = Qe$1, "selectionStart" in d2 && Ne$2(d2) ? d2 = { start: d2.selectionStart, end: d2.selectionEnd } : (d2 = (d2.ownerDocument && d2.ownerDocument.defaultView || window).getSelection(), d2 = { anchorNode: d2.anchorNode, anchorOffset: d2.anchorOffset, focusNode: d2.focusNode, focusOffset: d2.focusOffset }), Se$2 && Ie(Se$2, d2) || (Se$2 = d2, d2 = oe$1(Re$1, "onSelect"), 0 < d2.length && (b2 = new td("onSelect", "select", null, b2, c2), a2.push({ event: b2, listeners: d2 }), b2.target = Qe$1))); +} +function Ve$1(a2, b2) { + var c2 = {}; + c2[a2.toLowerCase()] = b2.toLowerCase(); + c2["Webkit" + a2] = "webkit" + b2; + c2["Moz" + a2] = "moz" + b2; + return c2; +} +var We$1 = { animationend: Ve$1("Animation", "AnimationEnd"), animationiteration: Ve$1("Animation", "AnimationIteration"), animationstart: Ve$1("Animation", "AnimationStart"), transitionend: Ve$1("Transition", "TransitionEnd") }, Xe$1 = {}, Ye$1 = {}; +ia && (Ye$1 = document.createElement("div").style, "AnimationEvent" in window || (delete We$1.animationend.animation, delete We$1.animationiteration.animation, delete We$1.animationstart.animation), "TransitionEvent" in window || delete We$1.transitionend.transition); +function Ze$1(a2) { + if (Xe$1[a2]) return Xe$1[a2]; + if (!We$1[a2]) return a2; + var b2 = We$1[a2], c2; + for (c2 in b2) if (b2.hasOwnProperty(c2) && c2 in Ye$1) return Xe$1[a2] = b2[c2]; + return a2; +} +var $e$1 = Ze$1("animationend"), af = Ze$1("animationiteration"), bf = Ze$1("animationstart"), cf = Ze$1("transitionend"), df = /* @__PURE__ */ new Map(), ef = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); +function ff(a2, b2) { + df.set(a2, b2); + fa(b2, [a2]); +} +for (var gf = 0; gf < ef.length; gf++) { + var hf = ef[gf], jf = hf.toLowerCase(), kf = hf[0].toUpperCase() + hf.slice(1); + ff(jf, "on" + kf); +} +ff($e$1, "onAnimationEnd"); +ff(af, "onAnimationIteration"); +ff(bf, "onAnimationStart"); +ff("dblclick", "onDoubleClick"); +ff("focusin", "onFocus"); +ff("focusout", "onBlur"); +ff(cf, "onTransitionEnd"); +ha("onMouseEnter", ["mouseout", "mouseover"]); +ha("onMouseLeave", ["mouseout", "mouseover"]); +ha("onPointerEnter", ["pointerout", "pointerover"]); +ha("onPointerLeave", ["pointerout", "pointerover"]); +fa("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); +fa("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); +fa("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); +fa("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); +fa("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); +var lf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), mf = new Set("cancel close invalid load scroll toggle".split(" ").concat(lf)); +function nf(a2, b2, c2) { + var d2 = a2.type || "unknown-event"; + a2.currentTarget = c2; + Ub(d2, b2, void 0, a2); + a2.currentTarget = null; +} +function se$2(a2, b2) { + b2 = 0 !== (b2 & 4); + for (var c2 = 0; c2 < a2.length; c2++) { + var d2 = a2[c2], e2 = d2.event; + d2 = d2.listeners; + a: { + var f2 = void 0; + if (b2) for (var g2 = d2.length - 1; 0 <= g2; g2--) { + var h2 = d2[g2], k2 = h2.instance, l2 = h2.currentTarget; + h2 = h2.listener; + if (k2 !== f2 && e2.isPropagationStopped()) break a; + nf(e2, h2, l2); + f2 = k2; + } + else for (g2 = 0; g2 < d2.length; g2++) { + h2 = d2[g2]; + k2 = h2.instance; + l2 = h2.currentTarget; + h2 = h2.listener; + if (k2 !== f2 && e2.isPropagationStopped()) break a; + nf(e2, h2, l2); + f2 = k2; + } + } + } + if (Qb) throw a2 = Rb, Qb = false, Rb = null, a2; +} +function D$4(a2, b2) { + var c2 = b2[of]; + void 0 === c2 && (c2 = b2[of] = /* @__PURE__ */ new Set()); + var d2 = a2 + "__bubble"; + c2.has(d2) || (pf(b2, a2, 2, false), c2.add(d2)); +} +function qf(a2, b2, c2) { + var d2 = 0; + b2 && (d2 |= 4); + pf(c2, a2, d2, b2); +} +var rf = "_reactListening" + Math.random().toString(36).slice(2); +function sf(a2) { + if (!a2[rf]) { + a2[rf] = true; + da.forEach(function(b3) { + "selectionchange" !== b3 && (mf.has(b3) || qf(b3, false, a2), qf(b3, true, a2)); + }); + var b2 = 9 === a2.nodeType ? a2 : a2.ownerDocument; + null === b2 || b2[rf] || (b2[rf] = true, qf("selectionchange", false, b2)); + } +} +function pf(a2, b2, c2, d2) { + switch (jd(b2)) { + case 1: + var e2 = ed; + break; + case 4: + e2 = gd; + break; + default: + e2 = fd; + } + c2 = e2.bind(null, b2, c2, a2); + e2 = void 0; + !Lb || "touchstart" !== b2 && "touchmove" !== b2 && "wheel" !== b2 || (e2 = true); + d2 ? void 0 !== e2 ? a2.addEventListener(b2, c2, { capture: true, passive: e2 }) : a2.addEventListener(b2, c2, true) : void 0 !== e2 ? a2.addEventListener(b2, c2, { passive: e2 }) : a2.addEventListener(b2, c2, false); +} +function hd(a2, b2, c2, d2, e2) { + var f2 = d2; + if (0 === (b2 & 1) && 0 === (b2 & 2) && null !== d2) a: for (; ; ) { + if (null === d2) return; + var g2 = d2.tag; + if (3 === g2 || 4 === g2) { + var h2 = d2.stateNode.containerInfo; + if (h2 === e2 || 8 === h2.nodeType && h2.parentNode === e2) break; + if (4 === g2) for (g2 = d2.return; null !== g2; ) { + var k2 = g2.tag; + if (3 === k2 || 4 === k2) { + if (k2 = g2.stateNode.containerInfo, k2 === e2 || 8 === k2.nodeType && k2.parentNode === e2) return; + } + g2 = g2.return; + } + for (; null !== h2; ) { + g2 = Wc(h2); + if (null === g2) return; + k2 = g2.tag; + if (5 === k2 || 6 === k2) { + d2 = f2 = g2; + continue a; + } + h2 = h2.parentNode; + } + } + d2 = d2.return; + } + Jb(function() { + var d3 = f2, e3 = xb(c2), g3 = []; + a: { + var h3 = df.get(a2); + if (void 0 !== h3) { + var k3 = td, n2 = a2; + switch (a2) { + case "keypress": + if (0 === od(c2)) break a; + case "keydown": + case "keyup": + k3 = Rd; + break; + case "focusin": + n2 = "focus"; + k3 = Fd; + break; + case "focusout": + n2 = "blur"; + k3 = Fd; + break; + case "beforeblur": + case "afterblur": + k3 = Fd; + break; + case "click": + if (2 === c2.button) break a; + case "auxclick": + case "dblclick": + case "mousedown": + case "mousemove": + case "mouseup": + case "mouseout": + case "mouseover": + case "contextmenu": + k3 = Bd; + break; + case "drag": + case "dragend": + case "dragenter": + case "dragexit": + case "dragleave": + case "dragover": + case "dragstart": + case "drop": + k3 = Dd; + break; + case "touchcancel": + case "touchend": + case "touchmove": + case "touchstart": + k3 = Vd; + break; + case $e$1: + case af: + case bf: + k3 = Hd; + break; + case cf: + k3 = Xd; + break; + case "scroll": + k3 = vd; + break; + case "wheel": + k3 = Zd; + break; + case "copy": + case "cut": + case "paste": + k3 = Jd; + break; + case "gotpointercapture": + case "lostpointercapture": + case "pointercancel": + case "pointerdown": + case "pointermove": + case "pointerout": + case "pointerover": + case "pointerup": + k3 = Td; + } + var t2 = 0 !== (b2 & 4), J2 = !t2 && "scroll" === a2, x2 = t2 ? null !== h3 ? h3 + "Capture" : null : h3; + t2 = []; + for (var w2 = d3, u2; null !== w2; ) { + u2 = w2; + var F2 = u2.stateNode; + 5 === u2.tag && null !== F2 && (u2 = F2, null !== x2 && (F2 = Kb(w2, x2), null != F2 && t2.push(tf(w2, F2, u2)))); + if (J2) break; + w2 = w2.return; + } + 0 < t2.length && (h3 = new k3(h3, n2, null, c2, e3), g3.push({ event: h3, listeners: t2 })); + } + } + if (0 === (b2 & 7)) { + a: { + h3 = "mouseover" === a2 || "pointerover" === a2; + k3 = "mouseout" === a2 || "pointerout" === a2; + if (h3 && c2 !== wb && (n2 = c2.relatedTarget || c2.fromElement) && (Wc(n2) || n2[uf])) break a; + if (k3 || h3) { + h3 = e3.window === e3 ? e3 : (h3 = e3.ownerDocument) ? h3.defaultView || h3.parentWindow : window; + if (k3) { + if (n2 = c2.relatedTarget || c2.toElement, k3 = d3, n2 = n2 ? Wc(n2) : null, null !== n2 && (J2 = Vb(n2), n2 !== J2 || 5 !== n2.tag && 6 !== n2.tag)) n2 = null; + } else k3 = null, n2 = d3; + if (k3 !== n2) { + t2 = Bd; + F2 = "onMouseLeave"; + x2 = "onMouseEnter"; + w2 = "mouse"; + if ("pointerout" === a2 || "pointerover" === a2) t2 = Td, F2 = "onPointerLeave", x2 = "onPointerEnter", w2 = "pointer"; + J2 = null == k3 ? h3 : ue$2(k3); + u2 = null == n2 ? h3 : ue$2(n2); + h3 = new t2(F2, w2 + "leave", k3, c2, e3); + h3.target = J2; + h3.relatedTarget = u2; + F2 = null; + Wc(e3) === d3 && (t2 = new t2(x2, w2 + "enter", n2, c2, e3), t2.target = u2, t2.relatedTarget = J2, F2 = t2); + J2 = F2; + if (k3 && n2) b: { + t2 = k3; + x2 = n2; + w2 = 0; + for (u2 = t2; u2; u2 = vf(u2)) w2++; + u2 = 0; + for (F2 = x2; F2; F2 = vf(F2)) u2++; + for (; 0 < w2 - u2; ) t2 = vf(t2), w2--; + for (; 0 < u2 - w2; ) x2 = vf(x2), u2--; + for (; w2--; ) { + if (t2 === x2 || null !== x2 && t2 === x2.alternate) break b; + t2 = vf(t2); + x2 = vf(x2); + } + t2 = null; + } + else t2 = null; + null !== k3 && wf(g3, h3, k3, t2, false); + null !== n2 && null !== J2 && wf(g3, J2, n2, t2, true); + } + } + } + a: { + h3 = d3 ? ue$2(d3) : window; + k3 = h3.nodeName && h3.nodeName.toLowerCase(); + if ("select" === k3 || "input" === k3 && "file" === h3.type) var na = ve$1; + else if (me(h3)) if (we$1) na = Fe$1; + else { + na = De$2; + var xa = Ce; + } + else (k3 = h3.nodeName) && "input" === k3.toLowerCase() && ("checkbox" === h3.type || "radio" === h3.type) && (na = Ee$1); + if (na && (na = na(a2, d3))) { + ne$1(g3, na, c2, e3); + break a; + } + xa && xa(a2, h3, d3); + "focusout" === a2 && (xa = h3._wrapperState) && xa.controlled && "number" === h3.type && cb(h3, "number", h3.value); + } + xa = d3 ? ue$2(d3) : window; + switch (a2) { + case "focusin": + if (me(xa) || "true" === xa.contentEditable) Qe$1 = xa, Re$1 = d3, Se$2 = null; + break; + case "focusout": + Se$2 = Re$1 = Qe$1 = null; + break; + case "mousedown": + Te$1 = true; + break; + case "contextmenu": + case "mouseup": + case "dragend": + Te$1 = false; + Ue$1(g3, c2, e3); + break; + case "selectionchange": + if (Pe$1) break; + case "keydown": + case "keyup": + Ue$1(g3, c2, e3); + } + var $a; + if (ae$1) b: { + switch (a2) { + case "compositionstart": + var ba = "onCompositionStart"; + break b; + case "compositionend": + ba = "onCompositionEnd"; + break b; + case "compositionupdate": + ba = "onCompositionUpdate"; + break b; + } + ba = void 0; + } + else ie ? ge$1(a2, c2) && (ba = "onCompositionEnd") : "keydown" === a2 && 229 === c2.keyCode && (ba = "onCompositionStart"); + ba && (de$2 && "ko" !== c2.locale && (ie || "onCompositionStart" !== ba ? "onCompositionEnd" === ba && ie && ($a = nd()) : (kd = e3, ld = "value" in kd ? kd.value : kd.textContent, ie = true)), xa = oe$1(d3, ba), 0 < xa.length && (ba = new Ld(ba, a2, null, c2, e3), g3.push({ event: ba, listeners: xa }), $a ? ba.data = $a : ($a = he$1(c2), null !== $a && (ba.data = $a)))); + if ($a = ce ? je$1(a2, c2) : ke(a2, c2)) d3 = oe$1(d3, "onBeforeInput"), 0 < d3.length && (e3 = new Ld("onBeforeInput", "beforeinput", null, c2, e3), g3.push({ event: e3, listeners: d3 }), e3.data = $a); + } + se$2(g3, b2); + }); +} +function tf(a2, b2, c2) { + return { instance: a2, listener: b2, currentTarget: c2 }; +} +function oe$1(a2, b2) { + for (var c2 = b2 + "Capture", d2 = []; null !== a2; ) { + var e2 = a2, f2 = e2.stateNode; + 5 === e2.tag && null !== f2 && (e2 = f2, f2 = Kb(a2, c2), null != f2 && d2.unshift(tf(a2, f2, e2)), f2 = Kb(a2, b2), null != f2 && d2.push(tf(a2, f2, e2))); + a2 = a2.return; + } + return d2; +} +function vf(a2) { + if (null === a2) return null; + do + a2 = a2.return; + while (a2 && 5 !== a2.tag); + return a2 ? a2 : null; +} +function wf(a2, b2, c2, d2, e2) { + for (var f2 = b2._reactName, g2 = []; null !== c2 && c2 !== d2; ) { + var h2 = c2, k2 = h2.alternate, l2 = h2.stateNode; + if (null !== k2 && k2 === d2) break; + 5 === h2.tag && null !== l2 && (h2 = l2, e2 ? (k2 = Kb(c2, f2), null != k2 && g2.unshift(tf(c2, k2, h2))) : e2 || (k2 = Kb(c2, f2), null != k2 && g2.push(tf(c2, k2, h2)))); + c2 = c2.return; + } + 0 !== g2.length && a2.push({ event: b2, listeners: g2 }); +} +var xf = /\r\n?/g, yf = /\u0000|\uFFFD/g; +function zf(a2) { + return ("string" === typeof a2 ? a2 : "" + a2).replace(xf, "\n").replace(yf, ""); +} +function Af(a2, b2, c2) { + b2 = zf(b2); + if (zf(a2) !== b2 && c2) throw Error(p$5(425)); +} +function Bf() { +} +var Cf = null, Df = null; +function Ef(a2, b2) { + return "textarea" === a2 || "noscript" === a2 || "string" === typeof b2.children || "number" === typeof b2.children || "object" === typeof b2.dangerouslySetInnerHTML && null !== b2.dangerouslySetInnerHTML && null != b2.dangerouslySetInnerHTML.__html; +} +var Ff = "function" === typeof setTimeout ? setTimeout : void 0, Gf = "function" === typeof clearTimeout ? clearTimeout : void 0, Hf = "function" === typeof Promise ? Promise : void 0, Jf = "function" === typeof queueMicrotask ? queueMicrotask : "undefined" !== typeof Hf ? function(a2) { + return Hf.resolve(null).then(a2).catch(If); +} : Ff; +function If(a2) { + setTimeout(function() { + throw a2; + }); +} +function Kf(a2, b2) { + var c2 = b2, d2 = 0; + do { + var e2 = c2.nextSibling; + a2.removeChild(c2); + if (e2 && 8 === e2.nodeType) if (c2 = e2.data, "/$" === c2) { + if (0 === d2) { + a2.removeChild(e2); + bd(b2); + return; + } + d2--; + } else "$" !== c2 && "$?" !== c2 && "$!" !== c2 || d2++; + c2 = e2; + } while (c2); + bd(b2); +} +function Lf(a2) { + for (; null != a2; a2 = a2.nextSibling) { + var b2 = a2.nodeType; + if (1 === b2 || 3 === b2) break; + if (8 === b2) { + b2 = a2.data; + if ("$" === b2 || "$!" === b2 || "$?" === b2) break; + if ("/$" === b2) return null; + } + } + return a2; +} +function Mf(a2) { + a2 = a2.previousSibling; + for (var b2 = 0; a2; ) { + if (8 === a2.nodeType) { + var c2 = a2.data; + if ("$" === c2 || "$!" === c2 || "$?" === c2) { + if (0 === b2) return a2; + b2--; + } else "/$" === c2 && b2++; + } + a2 = a2.previousSibling; + } + return null; +} +var Nf = Math.random().toString(36).slice(2), Of = "__reactFiber$" + Nf, Pf = "__reactProps$" + Nf, uf = "__reactContainer$" + Nf, of = "__reactEvents$" + Nf, Qf = "__reactListeners$" + Nf, Rf = "__reactHandles$" + Nf; +function Wc(a2) { + var b2 = a2[Of]; + if (b2) return b2; + for (var c2 = a2.parentNode; c2; ) { + if (b2 = c2[uf] || c2[Of]) { + c2 = b2.alternate; + if (null !== b2.child || null !== c2 && null !== c2.child) for (a2 = Mf(a2); null !== a2; ) { + if (c2 = a2[Of]) return c2; + a2 = Mf(a2); + } + return b2; + } + a2 = c2; + c2 = a2.parentNode; + } + return null; +} +function Cb(a2) { + a2 = a2[Of] || a2[uf]; + return !a2 || 5 !== a2.tag && 6 !== a2.tag && 13 !== a2.tag && 3 !== a2.tag ? null : a2; +} +function ue$2(a2) { + if (5 === a2.tag || 6 === a2.tag) return a2.stateNode; + throw Error(p$5(33)); +} +function Db(a2) { + return a2[Pf] || null; +} +var Sf = [], Tf = -1; +function Uf(a2) { + return { current: a2 }; +} +function E$1(a2) { + 0 > Tf || (a2.current = Sf[Tf], Sf[Tf] = null, Tf--); +} +function G$1(a2, b2) { + Tf++; + Sf[Tf] = a2.current; + a2.current = b2; +} +var Vf = {}, H$1 = Uf(Vf), Wf = Uf(false), Xf = Vf; +function Yf(a2, b2) { + var c2 = a2.type.contextTypes; + if (!c2) return Vf; + var d2 = a2.stateNode; + if (d2 && d2.__reactInternalMemoizedUnmaskedChildContext === b2) return d2.__reactInternalMemoizedMaskedChildContext; + var e2 = {}, f2; + for (f2 in c2) e2[f2] = b2[f2]; + d2 && (a2 = a2.stateNode, a2.__reactInternalMemoizedUnmaskedChildContext = b2, a2.__reactInternalMemoizedMaskedChildContext = e2); + return e2; +} +function Zf(a2) { + a2 = a2.childContextTypes; + return null !== a2 && void 0 !== a2; +} +function $f() { + E$1(Wf); + E$1(H$1); +} +function ag(a2, b2, c2) { + if (H$1.current !== Vf) throw Error(p$5(168)); + G$1(H$1, b2); + G$1(Wf, c2); +} +function bg(a2, b2, c2) { + var d2 = a2.stateNode; + b2 = b2.childContextTypes; + if ("function" !== typeof d2.getChildContext) return c2; + d2 = d2.getChildContext(); + for (var e2 in d2) if (!(e2 in b2)) throw Error(p$5(108, Ra(a2) || "Unknown", e2)); + return A$1({}, c2, d2); +} +function cg(a2) { + a2 = (a2 = a2.stateNode) && a2.__reactInternalMemoizedMergedChildContext || Vf; + Xf = H$1.current; + G$1(H$1, a2); + G$1(Wf, Wf.current); + return true; +} +function dg(a2, b2, c2) { + var d2 = a2.stateNode; + if (!d2) throw Error(p$5(169)); + c2 ? (a2 = bg(a2, b2, Xf), d2.__reactInternalMemoizedMergedChildContext = a2, E$1(Wf), E$1(H$1), G$1(H$1, a2)) : E$1(Wf); + G$1(Wf, c2); +} +var eg = null, fg = false, gg = false; +function hg(a2) { + null === eg ? eg = [a2] : eg.push(a2); +} +function ig(a2) { + fg = true; + hg(a2); +} +function jg() { + if (!gg && null !== eg) { + gg = true; + var a2 = 0, b2 = C$2; + try { + var c2 = eg; + for (C$2 = 1; a2 < c2.length; a2++) { + var d2 = c2[a2]; + do + d2 = d2(true); + while (null !== d2); + } + eg = null; + fg = false; + } catch (e2) { + throw null !== eg && (eg = eg.slice(a2 + 1)), ac(fc, jg), e2; + } finally { + C$2 = b2, gg = false; + } + } + return null; +} +var kg = [], lg = 0, mg = null, ng = 0, og = [], pg = 0, qg = null, rg = 1, sg = ""; +function tg(a2, b2) { + kg[lg++] = ng; + kg[lg++] = mg; + mg = a2; + ng = b2; +} +function ug(a2, b2, c2) { + og[pg++] = rg; + og[pg++] = sg; + og[pg++] = qg; + qg = a2; + var d2 = rg; + a2 = sg; + var e2 = 32 - oc(d2) - 1; + d2 &= ~(1 << e2); + c2 += 1; + var f2 = 32 - oc(b2) + e2; + if (30 < f2) { + var g2 = e2 - e2 % 5; + f2 = (d2 & (1 << g2) - 1).toString(32); + d2 >>= g2; + e2 -= g2; + rg = 1 << 32 - oc(b2) + e2 | c2 << e2 | d2; + sg = f2 + a2; + } else rg = 1 << f2 | c2 << e2 | d2, sg = a2; +} +function vg(a2) { + null !== a2.return && (tg(a2, 1), ug(a2, 1, 0)); +} +function wg(a2) { + for (; a2 === mg; ) mg = kg[--lg], kg[lg] = null, ng = kg[--lg], kg[lg] = null; + for (; a2 === qg; ) qg = og[--pg], og[pg] = null, sg = og[--pg], og[pg] = null, rg = og[--pg], og[pg] = null; +} +var xg = null, yg = null, I$6 = false, zg = null; +function Ag(a2, b2) { + var c2 = Bg(5, null, null, 0); + c2.elementType = "DELETED"; + c2.stateNode = b2; + c2.return = a2; + b2 = a2.deletions; + null === b2 ? (a2.deletions = [c2], a2.flags |= 16) : b2.push(c2); +} +function Cg(a2, b2) { + switch (a2.tag) { + case 5: + var c2 = a2.type; + b2 = 1 !== b2.nodeType || c2.toLowerCase() !== b2.nodeName.toLowerCase() ? null : b2; + return null !== b2 ? (a2.stateNode = b2, xg = a2, yg = Lf(b2.firstChild), true) : false; + case 6: + return b2 = "" === a2.pendingProps || 3 !== b2.nodeType ? null : b2, null !== b2 ? (a2.stateNode = b2, xg = a2, yg = null, true) : false; + case 13: + return b2 = 8 !== b2.nodeType ? null : b2, null !== b2 ? (c2 = null !== qg ? { id: rg, overflow: sg } : null, a2.memoizedState = { dehydrated: b2, treeContext: c2, retryLane: 1073741824 }, c2 = Bg(18, null, null, 0), c2.stateNode = b2, c2.return = a2, a2.child = c2, xg = a2, yg = null, true) : false; + default: + return false; + } +} +function Dg(a2) { + return 0 !== (a2.mode & 1) && 0 === (a2.flags & 128); +} +function Eg(a2) { + if (I$6) { + var b2 = yg; + if (b2) { + var c2 = b2; + if (!Cg(a2, b2)) { + if (Dg(a2)) throw Error(p$5(418)); + b2 = Lf(c2.nextSibling); + var d2 = xg; + b2 && Cg(a2, b2) ? Ag(d2, c2) : (a2.flags = a2.flags & -4097 | 2, I$6 = false, xg = a2); + } + } else { + if (Dg(a2)) throw Error(p$5(418)); + a2.flags = a2.flags & -4097 | 2; + I$6 = false; + xg = a2; + } + } +} +function Fg(a2) { + for (a2 = a2.return; null !== a2 && 5 !== a2.tag && 3 !== a2.tag && 13 !== a2.tag; ) a2 = a2.return; + xg = a2; +} +function Gg(a2) { + if (a2 !== xg) return false; + if (!I$6) return Fg(a2), I$6 = true, false; + var b2; + (b2 = 3 !== a2.tag) && !(b2 = 5 !== a2.tag) && (b2 = a2.type, b2 = "head" !== b2 && "body" !== b2 && !Ef(a2.type, a2.memoizedProps)); + if (b2 && (b2 = yg)) { + if (Dg(a2)) throw Hg(), Error(p$5(418)); + for (; b2; ) Ag(a2, b2), b2 = Lf(b2.nextSibling); + } + Fg(a2); + if (13 === a2.tag) { + a2 = a2.memoizedState; + a2 = null !== a2 ? a2.dehydrated : null; + if (!a2) throw Error(p$5(317)); + a: { + a2 = a2.nextSibling; + for (b2 = 0; a2; ) { + if (8 === a2.nodeType) { + var c2 = a2.data; + if ("/$" === c2) { + if (0 === b2) { + yg = Lf(a2.nextSibling); + break a; + } + b2--; + } else "$" !== c2 && "$!" !== c2 && "$?" !== c2 || b2++; + } + a2 = a2.nextSibling; + } + yg = null; + } + } else yg = xg ? Lf(a2.stateNode.nextSibling) : null; + return true; +} +function Hg() { + for (var a2 = yg; a2; ) a2 = Lf(a2.nextSibling); +} +function Ig() { + yg = xg = null; + I$6 = false; +} +function Jg(a2) { + null === zg ? zg = [a2] : zg.push(a2); +} +var Kg = ua.ReactCurrentBatchConfig; +function Lg(a2, b2, c2) { + a2 = c2.ref; + if (null !== a2 && "function" !== typeof a2 && "object" !== typeof a2) { + if (c2._owner) { + c2 = c2._owner; + if (c2) { + if (1 !== c2.tag) throw Error(p$5(309)); + var d2 = c2.stateNode; + } + if (!d2) throw Error(p$5(147, a2)); + var e2 = d2, f2 = "" + a2; + if (null !== b2 && null !== b2.ref && "function" === typeof b2.ref && b2.ref._stringRef === f2) return b2.ref; + b2 = function(a3) { + var b3 = e2.refs; + null === a3 ? delete b3[f2] : b3[f2] = a3; + }; + b2._stringRef = f2; + return b2; + } + if ("string" !== typeof a2) throw Error(p$5(284)); + if (!c2._owner) throw Error(p$5(290, a2)); + } + return a2; +} +function Mg(a2, b2) { + a2 = Object.prototype.toString.call(b2); + throw Error(p$5(31, "[object Object]" === a2 ? "object with keys {" + Object.keys(b2).join(", ") + "}" : a2)); +} +function Ng(a2) { + var b2 = a2._init; + return b2(a2._payload); +} +function Og(a2) { + function b2(b3, c3) { + if (a2) { + var d3 = b3.deletions; + null === d3 ? (b3.deletions = [c3], b3.flags |= 16) : d3.push(c3); + } + } + function c2(c3, d3) { + if (!a2) return null; + for (; null !== d3; ) b2(c3, d3), d3 = d3.sibling; + return null; + } + function d2(a3, b3) { + for (a3 = /* @__PURE__ */ new Map(); null !== b3; ) null !== b3.key ? a3.set(b3.key, b3) : a3.set(b3.index, b3), b3 = b3.sibling; + return a3; + } + function e2(a3, b3) { + a3 = Pg(a3, b3); + a3.index = 0; + a3.sibling = null; + return a3; + } + function f2(b3, c3, d3) { + b3.index = d3; + if (!a2) return b3.flags |= 1048576, c3; + d3 = b3.alternate; + if (null !== d3) return d3 = d3.index, d3 < c3 ? (b3.flags |= 2, c3) : d3; + b3.flags |= 2; + return c3; + } + function g2(b3) { + a2 && null === b3.alternate && (b3.flags |= 2); + return b3; + } + function h2(a3, b3, c3, d3) { + if (null === b3 || 6 !== b3.tag) return b3 = Qg(c3, a3.mode, d3), b3.return = a3, b3; + b3 = e2(b3, c3); + b3.return = a3; + return b3; + } + function k2(a3, b3, c3, d3) { + var f3 = c3.type; + if (f3 === ya) return m2(a3, b3, c3.props.children, d3, c3.key); + if (null !== b3 && (b3.elementType === f3 || "object" === typeof f3 && null !== f3 && f3.$$typeof === Ha && Ng(f3) === b3.type)) return d3 = e2(b3, c3.props), d3.ref = Lg(a3, b3, c3), d3.return = a3, d3; + d3 = Rg(c3.type, c3.key, c3.props, null, a3.mode, d3); + d3.ref = Lg(a3, b3, c3); + d3.return = a3; + return d3; + } + function l2(a3, b3, c3, d3) { + if (null === b3 || 4 !== b3.tag || b3.stateNode.containerInfo !== c3.containerInfo || b3.stateNode.implementation !== c3.implementation) return b3 = Sg(c3, a3.mode, d3), b3.return = a3, b3; + b3 = e2(b3, c3.children || []); + b3.return = a3; + return b3; + } + function m2(a3, b3, c3, d3, f3) { + if (null === b3 || 7 !== b3.tag) return b3 = Tg(c3, a3.mode, d3, f3), b3.return = a3, b3; + b3 = e2(b3, c3); + b3.return = a3; + return b3; + } + function q2(a3, b3, c3) { + if ("string" === typeof b3 && "" !== b3 || "number" === typeof b3) return b3 = Qg("" + b3, a3.mode, c3), b3.return = a3, b3; + if ("object" === typeof b3 && null !== b3) { + switch (b3.$$typeof) { + case va: + return c3 = Rg(b3.type, b3.key, b3.props, null, a3.mode, c3), c3.ref = Lg(a3, null, b3), c3.return = a3, c3; + case wa: + return b3 = Sg(b3, a3.mode, c3), b3.return = a3, b3; + case Ha: + var d3 = b3._init; + return q2(a3, d3(b3._payload), c3); + } + if (eb(b3) || Ka(b3)) return b3 = Tg(b3, a3.mode, c3, null), b3.return = a3, b3; + Mg(a3, b3); + } + return null; + } + function r2(a3, b3, c3, d3) { + var e3 = null !== b3 ? b3.key : null; + if ("string" === typeof c3 && "" !== c3 || "number" === typeof c3) return null !== e3 ? null : h2(a3, b3, "" + c3, d3); + if ("object" === typeof c3 && null !== c3) { + switch (c3.$$typeof) { + case va: + return c3.key === e3 ? k2(a3, b3, c3, d3) : null; + case wa: + return c3.key === e3 ? l2(a3, b3, c3, d3) : null; + case Ha: + return e3 = c3._init, r2( + a3, + b3, + e3(c3._payload), + d3 + ); + } + if (eb(c3) || Ka(c3)) return null !== e3 ? null : m2(a3, b3, c3, d3, null); + Mg(a3, c3); + } + return null; + } + function y2(a3, b3, c3, d3, e3) { + if ("string" === typeof d3 && "" !== d3 || "number" === typeof d3) return a3 = a3.get(c3) || null, h2(b3, a3, "" + d3, e3); + if ("object" === typeof d3 && null !== d3) { + switch (d3.$$typeof) { + case va: + return a3 = a3.get(null === d3.key ? c3 : d3.key) || null, k2(b3, a3, d3, e3); + case wa: + return a3 = a3.get(null === d3.key ? c3 : d3.key) || null, l2(b3, a3, d3, e3); + case Ha: + var f3 = d3._init; + return y2(a3, b3, c3, f3(d3._payload), e3); + } + if (eb(d3) || Ka(d3)) return a3 = a3.get(c3) || null, m2(b3, a3, d3, e3, null); + Mg(b3, d3); + } + return null; + } + function n2(e3, g3, h3, k3) { + for (var l3 = null, m3 = null, u2 = g3, w2 = g3 = 0, x2 = null; null !== u2 && w2 < h3.length; w2++) { + u2.index > w2 ? (x2 = u2, u2 = null) : x2 = u2.sibling; + var n3 = r2(e3, u2, h3[w2], k3); + if (null === n3) { + null === u2 && (u2 = x2); + break; + } + a2 && u2 && null === n3.alternate && b2(e3, u2); + g3 = f2(n3, g3, w2); + null === m3 ? l3 = n3 : m3.sibling = n3; + m3 = n3; + u2 = x2; + } + if (w2 === h3.length) return c2(e3, u2), I$6 && tg(e3, w2), l3; + if (null === u2) { + for (; w2 < h3.length; w2++) u2 = q2(e3, h3[w2], k3), null !== u2 && (g3 = f2(u2, g3, w2), null === m3 ? l3 = u2 : m3.sibling = u2, m3 = u2); + I$6 && tg(e3, w2); + return l3; + } + for (u2 = d2(e3, u2); w2 < h3.length; w2++) x2 = y2(u2, e3, w2, h3[w2], k3), null !== x2 && (a2 && null !== x2.alternate && u2.delete(null === x2.key ? w2 : x2.key), g3 = f2(x2, g3, w2), null === m3 ? l3 = x2 : m3.sibling = x2, m3 = x2); + a2 && u2.forEach(function(a3) { + return b2(e3, a3); + }); + I$6 && tg(e3, w2); + return l3; + } + function t2(e3, g3, h3, k3) { + var l3 = Ka(h3); + if ("function" !== typeof l3) throw Error(p$5(150)); + h3 = l3.call(h3); + if (null == h3) throw Error(p$5(151)); + for (var u2 = l3 = null, m3 = g3, w2 = g3 = 0, x2 = null, n3 = h3.next(); null !== m3 && !n3.done; w2++, n3 = h3.next()) { + m3.index > w2 ? (x2 = m3, m3 = null) : x2 = m3.sibling; + var t3 = r2(e3, m3, n3.value, k3); + if (null === t3) { + null === m3 && (m3 = x2); + break; + } + a2 && m3 && null === t3.alternate && b2(e3, m3); + g3 = f2(t3, g3, w2); + null === u2 ? l3 = t3 : u2.sibling = t3; + u2 = t3; + m3 = x2; + } + if (n3.done) return c2( + e3, + m3 + ), I$6 && tg(e3, w2), l3; + if (null === m3) { + for (; !n3.done; w2++, n3 = h3.next()) n3 = q2(e3, n3.value, k3), null !== n3 && (g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3); + I$6 && tg(e3, w2); + return l3; + } + for (m3 = d2(e3, m3); !n3.done; w2++, n3 = h3.next()) n3 = y2(m3, e3, w2, n3.value, k3), null !== n3 && (a2 && null !== n3.alternate && m3.delete(null === n3.key ? w2 : n3.key), g3 = f2(n3, g3, w2), null === u2 ? l3 = n3 : u2.sibling = n3, u2 = n3); + a2 && m3.forEach(function(a3) { + return b2(e3, a3); + }); + I$6 && tg(e3, w2); + return l3; + } + function J2(a3, d3, f3, h3) { + "object" === typeof f3 && null !== f3 && f3.type === ya && null === f3.key && (f3 = f3.props.children); + if ("object" === typeof f3 && null !== f3) { + switch (f3.$$typeof) { + case va: + a: { + for (var k3 = f3.key, l3 = d3; null !== l3; ) { + if (l3.key === k3) { + k3 = f3.type; + if (k3 === ya) { + if (7 === l3.tag) { + c2(a3, l3.sibling); + d3 = e2(l3, f3.props.children); + d3.return = a3; + a3 = d3; + break a; + } + } else if (l3.elementType === k3 || "object" === typeof k3 && null !== k3 && k3.$$typeof === Ha && Ng(k3) === l3.type) { + c2(a3, l3.sibling); + d3 = e2(l3, f3.props); + d3.ref = Lg(a3, l3, f3); + d3.return = a3; + a3 = d3; + break a; + } + c2(a3, l3); + break; + } else b2(a3, l3); + l3 = l3.sibling; + } + f3.type === ya ? (d3 = Tg(f3.props.children, a3.mode, h3, f3.key), d3.return = a3, a3 = d3) : (h3 = Rg(f3.type, f3.key, f3.props, null, a3.mode, h3), h3.ref = Lg(a3, d3, f3), h3.return = a3, a3 = h3); + } + return g2(a3); + case wa: + a: { + for (l3 = f3.key; null !== d3; ) { + if (d3.key === l3) if (4 === d3.tag && d3.stateNode.containerInfo === f3.containerInfo && d3.stateNode.implementation === f3.implementation) { + c2(a3, d3.sibling); + d3 = e2(d3, f3.children || []); + d3.return = a3; + a3 = d3; + break a; + } else { + c2(a3, d3); + break; + } + else b2(a3, d3); + d3 = d3.sibling; + } + d3 = Sg(f3, a3.mode, h3); + d3.return = a3; + a3 = d3; + } + return g2(a3); + case Ha: + return l3 = f3._init, J2(a3, d3, l3(f3._payload), h3); + } + if (eb(f3)) return n2(a3, d3, f3, h3); + if (Ka(f3)) return t2(a3, d3, f3, h3); + Mg(a3, f3); + } + return "string" === typeof f3 && "" !== f3 || "number" === typeof f3 ? (f3 = "" + f3, null !== d3 && 6 === d3.tag ? (c2(a3, d3.sibling), d3 = e2(d3, f3), d3.return = a3, a3 = d3) : (c2(a3, d3), d3 = Qg(f3, a3.mode, h3), d3.return = a3, a3 = d3), g2(a3)) : c2(a3, d3); + } + return J2; +} +var Ug = Og(true), Vg = Og(false), Wg = Uf(null), Xg = null, Yg = null, Zg = null; +function $g() { + Zg = Yg = Xg = null; +} +function ah(a2) { + var b2 = Wg.current; + E$1(Wg); + a2._currentValue = b2; +} +function bh(a2, b2, c2) { + for (; null !== a2; ) { + var d2 = a2.alternate; + (a2.childLanes & b2) !== b2 ? (a2.childLanes |= b2, null !== d2 && (d2.childLanes |= b2)) : null !== d2 && (d2.childLanes & b2) !== b2 && (d2.childLanes |= b2); + if (a2 === c2) break; + a2 = a2.return; + } +} +function ch(a2, b2) { + Xg = a2; + Zg = Yg = null; + a2 = a2.dependencies; + null !== a2 && null !== a2.firstContext && (0 !== (a2.lanes & b2) && (dh = true), a2.firstContext = null); +} +function eh(a2) { + var b2 = a2._currentValue; + if (Zg !== a2) if (a2 = { context: a2, memoizedValue: b2, next: null }, null === Yg) { + if (null === Xg) throw Error(p$5(308)); + Yg = a2; + Xg.dependencies = { lanes: 0, firstContext: a2 }; + } else Yg = Yg.next = a2; + return b2; +} +var fh = null; +function gh(a2) { + null === fh ? fh = [a2] : fh.push(a2); +} +function hh(a2, b2, c2, d2) { + var e2 = b2.interleaved; + null === e2 ? (c2.next = c2, gh(b2)) : (c2.next = e2.next, e2.next = c2); + b2.interleaved = c2; + return ih(a2, d2); +} +function ih(a2, b2) { + a2.lanes |= b2; + var c2 = a2.alternate; + null !== c2 && (c2.lanes |= b2); + c2 = a2; + for (a2 = a2.return; null !== a2; ) a2.childLanes |= b2, c2 = a2.alternate, null !== c2 && (c2.childLanes |= b2), c2 = a2, a2 = a2.return; + return 3 === c2.tag ? c2.stateNode : null; +} +var jh = false; +function kh(a2) { + a2.updateQueue = { baseState: a2.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; +} +function lh(a2, b2) { + a2 = a2.updateQueue; + b2.updateQueue === a2 && (b2.updateQueue = { baseState: a2.baseState, firstBaseUpdate: a2.firstBaseUpdate, lastBaseUpdate: a2.lastBaseUpdate, shared: a2.shared, effects: a2.effects }); +} +function mh(a2, b2) { + return { eventTime: a2, lane: b2, tag: 0, payload: null, callback: null, next: null }; +} +function nh(a2, b2, c2) { + var d2 = a2.updateQueue; + if (null === d2) return null; + d2 = d2.shared; + if (0 !== (K$1 & 2)) { + var e2 = d2.pending; + null === e2 ? b2.next = b2 : (b2.next = e2.next, e2.next = b2); + d2.pending = b2; + return ih(a2, c2); + } + e2 = d2.interleaved; + null === e2 ? (b2.next = b2, gh(d2)) : (b2.next = e2.next, e2.next = b2); + d2.interleaved = b2; + return ih(a2, c2); +} +function oh(a2, b2, c2) { + b2 = b2.updateQueue; + if (null !== b2 && (b2 = b2.shared, 0 !== (c2 & 4194240))) { + var d2 = b2.lanes; + d2 &= a2.pendingLanes; + c2 |= d2; + b2.lanes = c2; + Cc(a2, c2); + } +} +function ph(a2, b2) { + var c2 = a2.updateQueue, d2 = a2.alternate; + if (null !== d2 && (d2 = d2.updateQueue, c2 === d2)) { + var e2 = null, f2 = null; + c2 = c2.firstBaseUpdate; + if (null !== c2) { + do { + var g2 = { eventTime: c2.eventTime, lane: c2.lane, tag: c2.tag, payload: c2.payload, callback: c2.callback, next: null }; + null === f2 ? e2 = f2 = g2 : f2 = f2.next = g2; + c2 = c2.next; + } while (null !== c2); + null === f2 ? e2 = f2 = b2 : f2 = f2.next = b2; + } else e2 = f2 = b2; + c2 = { baseState: d2.baseState, firstBaseUpdate: e2, lastBaseUpdate: f2, shared: d2.shared, effects: d2.effects }; + a2.updateQueue = c2; + return; + } + a2 = c2.lastBaseUpdate; + null === a2 ? c2.firstBaseUpdate = b2 : a2.next = b2; + c2.lastBaseUpdate = b2; +} +function qh(a2, b2, c2, d2) { + var e2 = a2.updateQueue; + jh = false; + var f2 = e2.firstBaseUpdate, g2 = e2.lastBaseUpdate, h2 = e2.shared.pending; + if (null !== h2) { + e2.shared.pending = null; + var k2 = h2, l2 = k2.next; + k2.next = null; + null === g2 ? f2 = l2 : g2.next = l2; + g2 = k2; + var m2 = a2.alternate; + null !== m2 && (m2 = m2.updateQueue, h2 = m2.lastBaseUpdate, h2 !== g2 && (null === h2 ? m2.firstBaseUpdate = l2 : h2.next = l2, m2.lastBaseUpdate = k2)); + } + if (null !== f2) { + var q2 = e2.baseState; + g2 = 0; + m2 = l2 = k2 = null; + h2 = f2; + do { + var r2 = h2.lane, y2 = h2.eventTime; + if ((d2 & r2) === r2) { + null !== m2 && (m2 = m2.next = { + eventTime: y2, + lane: 0, + tag: h2.tag, + payload: h2.payload, + callback: h2.callback, + next: null + }); + a: { + var n2 = a2, t2 = h2; + r2 = b2; + y2 = c2; + switch (t2.tag) { + case 1: + n2 = t2.payload; + if ("function" === typeof n2) { + q2 = n2.call(y2, q2, r2); + break a; + } + q2 = n2; + break a; + case 3: + n2.flags = n2.flags & -65537 | 128; + case 0: + n2 = t2.payload; + r2 = "function" === typeof n2 ? n2.call(y2, q2, r2) : n2; + if (null === r2 || void 0 === r2) break a; + q2 = A$1({}, q2, r2); + break a; + case 2: + jh = true; + } + } + null !== h2.callback && 0 !== h2.lane && (a2.flags |= 64, r2 = e2.effects, null === r2 ? e2.effects = [h2] : r2.push(h2)); + } else y2 = { eventTime: y2, lane: r2, tag: h2.tag, payload: h2.payload, callback: h2.callback, next: null }, null === m2 ? (l2 = m2 = y2, k2 = q2) : m2 = m2.next = y2, g2 |= r2; + h2 = h2.next; + if (null === h2) if (h2 = e2.shared.pending, null === h2) break; + else r2 = h2, h2 = r2.next, r2.next = null, e2.lastBaseUpdate = r2, e2.shared.pending = null; + } while (1); + null === m2 && (k2 = q2); + e2.baseState = k2; + e2.firstBaseUpdate = l2; + e2.lastBaseUpdate = m2; + b2 = e2.shared.interleaved; + if (null !== b2) { + e2 = b2; + do + g2 |= e2.lane, e2 = e2.next; + while (e2 !== b2); + } else null === f2 && (e2.shared.lanes = 0); + rh |= g2; + a2.lanes = g2; + a2.memoizedState = q2; + } +} +function sh(a2, b2, c2) { + a2 = b2.effects; + b2.effects = null; + if (null !== a2) for (b2 = 0; b2 < a2.length; b2++) { + var d2 = a2[b2], e2 = d2.callback; + if (null !== e2) { + d2.callback = null; + d2 = c2; + if ("function" !== typeof e2) throw Error(p$5(191, e2)); + e2.call(d2); + } + } +} +var th = {}, uh = Uf(th), vh = Uf(th), wh = Uf(th); +function xh(a2) { + if (a2 === th) throw Error(p$5(174)); + return a2; +} +function yh(a2, b2) { + G$1(wh, b2); + G$1(vh, a2); + G$1(uh, th); + a2 = b2.nodeType; + switch (a2) { + case 9: + case 11: + b2 = (b2 = b2.documentElement) ? b2.namespaceURI : lb(null, ""); + break; + default: + a2 = 8 === a2 ? b2.parentNode : b2, b2 = a2.namespaceURI || null, a2 = a2.tagName, b2 = lb(b2, a2); + } + E$1(uh); + G$1(uh, b2); +} +function zh() { + E$1(uh); + E$1(vh); + E$1(wh); +} +function Ah(a2) { + xh(wh.current); + var b2 = xh(uh.current); + var c2 = lb(b2, a2.type); + b2 !== c2 && (G$1(vh, a2), G$1(uh, c2)); +} +function Bh(a2) { + vh.current === a2 && (E$1(uh), E$1(vh)); +} +var L = Uf(0); +function Ch(a2) { + for (var b2 = a2; null !== b2; ) { + if (13 === b2.tag) { + var c2 = b2.memoizedState; + if (null !== c2 && (c2 = c2.dehydrated, null === c2 || "$?" === c2.data || "$!" === c2.data)) return b2; + } else if (19 === b2.tag && void 0 !== b2.memoizedProps.revealOrder) { + if (0 !== (b2.flags & 128)) return b2; + } else if (null !== b2.child) { + b2.child.return = b2; + b2 = b2.child; + continue; + } + if (b2 === a2) break; + for (; null === b2.sibling; ) { + if (null === b2.return || b2.return === a2) return null; + b2 = b2.return; + } + b2.sibling.return = b2.return; + b2 = b2.sibling; + } + return null; +} +var Dh = []; +function Eh() { + for (var a2 = 0; a2 < Dh.length; a2++) Dh[a2]._workInProgressVersionPrimary = null; + Dh.length = 0; +} +var Fh = ua.ReactCurrentDispatcher, Gh = ua.ReactCurrentBatchConfig, Hh = 0, M$4 = null, N$3 = null, O$3 = null, Ih = false, Jh = false, Kh = 0, Lh = 0; +function P$2() { + throw Error(p$5(321)); +} +function Mh(a2, b2) { + if (null === b2) return false; + for (var c2 = 0; c2 < b2.length && c2 < a2.length; c2++) if (!He$2(a2[c2], b2[c2])) return false; + return true; +} +function Nh(a2, b2, c2, d2, e2, f2) { + Hh = f2; + M$4 = b2; + b2.memoizedState = null; + b2.updateQueue = null; + b2.lanes = 0; + Fh.current = null === a2 || null === a2.memoizedState ? Oh : Ph; + a2 = c2(d2, e2); + if (Jh) { + f2 = 0; + do { + Jh = false; + Kh = 0; + if (25 <= f2) throw Error(p$5(301)); + f2 += 1; + O$3 = N$3 = null; + b2.updateQueue = null; + Fh.current = Qh; + a2 = c2(d2, e2); + } while (Jh); + } + Fh.current = Rh; + b2 = null !== N$3 && null !== N$3.next; + Hh = 0; + O$3 = N$3 = M$4 = null; + Ih = false; + if (b2) throw Error(p$5(300)); + return a2; +} +function Sh() { + var a2 = 0 !== Kh; + Kh = 0; + return a2; +} +function Th() { + var a2 = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; + null === O$3 ? M$4.memoizedState = O$3 = a2 : O$3 = O$3.next = a2; + return O$3; +} +function Uh() { + if (null === N$3) { + var a2 = M$4.alternate; + a2 = null !== a2 ? a2.memoizedState : null; + } else a2 = N$3.next; + var b2 = null === O$3 ? M$4.memoizedState : O$3.next; + if (null !== b2) O$3 = b2, N$3 = a2; + else { + if (null === a2) throw Error(p$5(310)); + N$3 = a2; + a2 = { memoizedState: N$3.memoizedState, baseState: N$3.baseState, baseQueue: N$3.baseQueue, queue: N$3.queue, next: null }; + null === O$3 ? M$4.memoizedState = O$3 = a2 : O$3 = O$3.next = a2; + } + return O$3; +} +function Vh(a2, b2) { + return "function" === typeof b2 ? b2(a2) : b2; +} +function Wh(a2) { + var b2 = Uh(), c2 = b2.queue; + if (null === c2) throw Error(p$5(311)); + c2.lastRenderedReducer = a2; + var d2 = N$3, e2 = d2.baseQueue, f2 = c2.pending; + if (null !== f2) { + if (null !== e2) { + var g2 = e2.next; + e2.next = f2.next; + f2.next = g2; + } + d2.baseQueue = e2 = f2; + c2.pending = null; + } + if (null !== e2) { + f2 = e2.next; + d2 = d2.baseState; + var h2 = g2 = null, k2 = null, l2 = f2; + do { + var m2 = l2.lane; + if ((Hh & m2) === m2) null !== k2 && (k2 = k2.next = { lane: 0, action: l2.action, hasEagerState: l2.hasEagerState, eagerState: l2.eagerState, next: null }), d2 = l2.hasEagerState ? l2.eagerState : a2(d2, l2.action); + else { + var q2 = { + lane: m2, + action: l2.action, + hasEagerState: l2.hasEagerState, + eagerState: l2.eagerState, + next: null + }; + null === k2 ? (h2 = k2 = q2, g2 = d2) : k2 = k2.next = q2; + M$4.lanes |= m2; + rh |= m2; + } + l2 = l2.next; + } while (null !== l2 && l2 !== f2); + null === k2 ? g2 = d2 : k2.next = h2; + He$2(d2, b2.memoizedState) || (dh = true); + b2.memoizedState = d2; + b2.baseState = g2; + b2.baseQueue = k2; + c2.lastRenderedState = d2; + } + a2 = c2.interleaved; + if (null !== a2) { + e2 = a2; + do + f2 = e2.lane, M$4.lanes |= f2, rh |= f2, e2 = e2.next; + while (e2 !== a2); + } else null === e2 && (c2.lanes = 0); + return [b2.memoizedState, c2.dispatch]; +} +function Xh(a2) { + var b2 = Uh(), c2 = b2.queue; + if (null === c2) throw Error(p$5(311)); + c2.lastRenderedReducer = a2; + var d2 = c2.dispatch, e2 = c2.pending, f2 = b2.memoizedState; + if (null !== e2) { + c2.pending = null; + var g2 = e2 = e2.next; + do + f2 = a2(f2, g2.action), g2 = g2.next; + while (g2 !== e2); + He$2(f2, b2.memoizedState) || (dh = true); + b2.memoizedState = f2; + null === b2.baseQueue && (b2.baseState = f2); + c2.lastRenderedState = f2; + } + return [f2, d2]; +} +function Yh() { +} +function Zh(a2, b2) { + var c2 = M$4, d2 = Uh(), e2 = b2(), f2 = !He$2(d2.memoizedState, e2); + f2 && (d2.memoizedState = e2, dh = true); + d2 = d2.queue; + $h(ai.bind(null, c2, d2, a2), [a2]); + if (d2.getSnapshot !== b2 || f2 || null !== O$3 && O$3.memoizedState.tag & 1) { + c2.flags |= 2048; + bi(9, ci.bind(null, c2, d2, e2, b2), void 0, null); + if (null === Q$1) throw Error(p$5(349)); + 0 !== (Hh & 30) || di(c2, b2, e2); + } + return e2; +} +function di(a2, b2, c2) { + a2.flags |= 16384; + a2 = { getSnapshot: b2, value: c2 }; + b2 = M$4.updateQueue; + null === b2 ? (b2 = { lastEffect: null, stores: null }, M$4.updateQueue = b2, b2.stores = [a2]) : (c2 = b2.stores, null === c2 ? b2.stores = [a2] : c2.push(a2)); +} +function ci(a2, b2, c2, d2) { + b2.value = c2; + b2.getSnapshot = d2; + ei(b2) && fi(a2); +} +function ai(a2, b2, c2) { + return c2(function() { + ei(b2) && fi(a2); + }); +} +function ei(a2) { + var b2 = a2.getSnapshot; + a2 = a2.value; + try { + var c2 = b2(); + return !He$2(a2, c2); + } catch (d2) { + return true; + } +} +function fi(a2) { + var b2 = ih(a2, 1); + null !== b2 && gi(b2, a2, 1, -1); +} +function hi(a2) { + var b2 = Th(); + "function" === typeof a2 && (a2 = a2()); + b2.memoizedState = b2.baseState = a2; + a2 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Vh, lastRenderedState: a2 }; + b2.queue = a2; + a2 = a2.dispatch = ii.bind(null, M$4, a2); + return [b2.memoizedState, a2]; +} +function bi(a2, b2, c2, d2) { + a2 = { tag: a2, create: b2, destroy: c2, deps: d2, next: null }; + b2 = M$4.updateQueue; + null === b2 ? (b2 = { lastEffect: null, stores: null }, M$4.updateQueue = b2, b2.lastEffect = a2.next = a2) : (c2 = b2.lastEffect, null === c2 ? b2.lastEffect = a2.next = a2 : (d2 = c2.next, c2.next = a2, a2.next = d2, b2.lastEffect = a2)); + return a2; +} +function ji() { + return Uh().memoizedState; +} +function ki(a2, b2, c2, d2) { + var e2 = Th(); + M$4.flags |= a2; + e2.memoizedState = bi(1 | b2, c2, void 0, void 0 === d2 ? null : d2); +} +function li(a2, b2, c2, d2) { + var e2 = Uh(); + d2 = void 0 === d2 ? null : d2; + var f2 = void 0; + if (null !== N$3) { + var g2 = N$3.memoizedState; + f2 = g2.destroy; + if (null !== d2 && Mh(d2, g2.deps)) { + e2.memoizedState = bi(b2, c2, f2, d2); + return; + } + } + M$4.flags |= a2; + e2.memoizedState = bi(1 | b2, c2, f2, d2); +} +function mi(a2, b2) { + return ki(8390656, 8, a2, b2); +} +function $h(a2, b2) { + return li(2048, 8, a2, b2); +} +function ni(a2, b2) { + return li(4, 2, a2, b2); +} +function oi(a2, b2) { + return li(4, 4, a2, b2); +} +function pi(a2, b2) { + if ("function" === typeof b2) return a2 = a2(), b2(a2), function() { + b2(null); + }; + if (null !== b2 && void 0 !== b2) return a2 = a2(), b2.current = a2, function() { + b2.current = null; + }; +} +function qi(a2, b2, c2) { + c2 = null !== c2 && void 0 !== c2 ? c2.concat([a2]) : null; + return li(4, 4, pi.bind(null, b2, a2), c2); +} +function ri() { +} +function si(a2, b2) { + var c2 = Uh(); + b2 = void 0 === b2 ? null : b2; + var d2 = c2.memoizedState; + if (null !== d2 && null !== b2 && Mh(b2, d2[1])) return d2[0]; + c2.memoizedState = [a2, b2]; + return a2; +} +function ti(a2, b2) { + var c2 = Uh(); + b2 = void 0 === b2 ? null : b2; + var d2 = c2.memoizedState; + if (null !== d2 && null !== b2 && Mh(b2, d2[1])) return d2[0]; + a2 = a2(); + c2.memoizedState = [a2, b2]; + return a2; +} +function ui(a2, b2, c2) { + if (0 === (Hh & 21)) return a2.baseState && (a2.baseState = false, dh = true), a2.memoizedState = c2; + He$2(c2, b2) || (c2 = yc(), M$4.lanes |= c2, rh |= c2, a2.baseState = true); + return b2; +} +function vi(a2, b2) { + var c2 = C$2; + C$2 = 0 !== c2 && 4 > c2 ? c2 : 4; + a2(true); + var d2 = Gh.transition; + Gh.transition = {}; + try { + a2(false), b2(); + } finally { + C$2 = c2, Gh.transition = d2; + } +} +function wi() { + return Uh().memoizedState; +} +function xi(a2, b2, c2) { + var d2 = yi(a2); + c2 = { lane: d2, action: c2, hasEagerState: false, eagerState: null, next: null }; + if (zi(a2)) Ai(b2, c2); + else if (c2 = hh(a2, b2, c2, d2), null !== c2) { + var e2 = R$2(); + gi(c2, a2, d2, e2); + Bi(c2, b2, d2); + } +} +function ii(a2, b2, c2) { + var d2 = yi(a2), e2 = { lane: d2, action: c2, hasEagerState: false, eagerState: null, next: null }; + if (zi(a2)) Ai(b2, e2); + else { + var f2 = a2.alternate; + if (0 === a2.lanes && (null === f2 || 0 === f2.lanes) && (f2 = b2.lastRenderedReducer, null !== f2)) try { + var g2 = b2.lastRenderedState, h2 = f2(g2, c2); + e2.hasEagerState = true; + e2.eagerState = h2; + if (He$2(h2, g2)) { + var k2 = b2.interleaved; + null === k2 ? (e2.next = e2, gh(b2)) : (e2.next = k2.next, k2.next = e2); + b2.interleaved = e2; + return; + } + } catch (l2) { + } finally { + } + c2 = hh(a2, b2, e2, d2); + null !== c2 && (e2 = R$2(), gi(c2, a2, d2, e2), Bi(c2, b2, d2)); + } +} +function zi(a2) { + var b2 = a2.alternate; + return a2 === M$4 || null !== b2 && b2 === M$4; +} +function Ai(a2, b2) { + Jh = Ih = true; + var c2 = a2.pending; + null === c2 ? b2.next = b2 : (b2.next = c2.next, c2.next = b2); + a2.pending = b2; +} +function Bi(a2, b2, c2) { + if (0 !== (c2 & 4194240)) { + var d2 = b2.lanes; + d2 &= a2.pendingLanes; + c2 |= d2; + b2.lanes = c2; + Cc(a2, c2); + } +} +var Rh = { readContext: eh, useCallback: P$2, useContext: P$2, useEffect: P$2, useImperativeHandle: P$2, useInsertionEffect: P$2, useLayoutEffect: P$2, useMemo: P$2, useReducer: P$2, useRef: P$2, useState: P$2, useDebugValue: P$2, useDeferredValue: P$2, useTransition: P$2, useMutableSource: P$2, useSyncExternalStore: P$2, useId: P$2, unstable_isNewReconciler: false }, Oh = { readContext: eh, useCallback: function(a2, b2) { + Th().memoizedState = [a2, void 0 === b2 ? null : b2]; + return a2; +}, useContext: eh, useEffect: mi, useImperativeHandle: function(a2, b2, c2) { + c2 = null !== c2 && void 0 !== c2 ? c2.concat([a2]) : null; + return ki( + 4194308, + 4, + pi.bind(null, b2, a2), + c2 + ); +}, useLayoutEffect: function(a2, b2) { + return ki(4194308, 4, a2, b2); +}, useInsertionEffect: function(a2, b2) { + return ki(4, 2, a2, b2); +}, useMemo: function(a2, b2) { + var c2 = Th(); + b2 = void 0 === b2 ? null : b2; + a2 = a2(); + c2.memoizedState = [a2, b2]; + return a2; +}, useReducer: function(a2, b2, c2) { + var d2 = Th(); + b2 = void 0 !== c2 ? c2(b2) : b2; + d2.memoizedState = d2.baseState = b2; + a2 = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: a2, lastRenderedState: b2 }; + d2.queue = a2; + a2 = a2.dispatch = xi.bind(null, M$4, a2); + return [d2.memoizedState, a2]; +}, useRef: function(a2) { + var b2 = Th(); + a2 = { current: a2 }; + return b2.memoizedState = a2; +}, useState: hi, useDebugValue: ri, useDeferredValue: function(a2) { + return Th().memoizedState = a2; +}, useTransition: function() { + var a2 = hi(false), b2 = a2[0]; + a2 = vi.bind(null, a2[1]); + Th().memoizedState = a2; + return [b2, a2]; +}, useMutableSource: function() { +}, useSyncExternalStore: function(a2, b2, c2) { + var d2 = M$4, e2 = Th(); + if (I$6) { + if (void 0 === c2) throw Error(p$5(407)); + c2 = c2(); + } else { + c2 = b2(); + if (null === Q$1) throw Error(p$5(349)); + 0 !== (Hh & 30) || di(d2, b2, c2); + } + e2.memoizedState = c2; + var f2 = { value: c2, getSnapshot: b2 }; + e2.queue = f2; + mi(ai.bind( + null, + d2, + f2, + a2 + ), [a2]); + d2.flags |= 2048; + bi(9, ci.bind(null, d2, f2, c2, b2), void 0, null); + return c2; +}, useId: function() { + var a2 = Th(), b2 = Q$1.identifierPrefix; + if (I$6) { + var c2 = sg; + var d2 = rg; + c2 = (d2 & ~(1 << 32 - oc(d2) - 1)).toString(32) + c2; + b2 = ":" + b2 + "R" + c2; + c2 = Kh++; + 0 < c2 && (b2 += "H" + c2.toString(32)); + b2 += ":"; + } else c2 = Lh++, b2 = ":" + b2 + "r" + c2.toString(32) + ":"; + return a2.memoizedState = b2; +}, unstable_isNewReconciler: false }, Ph = { + readContext: eh, + useCallback: si, + useContext: eh, + useEffect: $h, + useImperativeHandle: qi, + useInsertionEffect: ni, + useLayoutEffect: oi, + useMemo: ti, + useReducer: Wh, + useRef: ji, + useState: function() { + return Wh(Vh); + }, + useDebugValue: ri, + useDeferredValue: function(a2) { + var b2 = Uh(); + return ui(b2, N$3.memoizedState, a2); + }, + useTransition: function() { + var a2 = Wh(Vh)[0], b2 = Uh().memoizedState; + return [a2, b2]; + }, + useMutableSource: Yh, + useSyncExternalStore: Zh, + useId: wi, + unstable_isNewReconciler: false +}, Qh = { readContext: eh, useCallback: si, useContext: eh, useEffect: $h, useImperativeHandle: qi, useInsertionEffect: ni, useLayoutEffect: oi, useMemo: ti, useReducer: Xh, useRef: ji, useState: function() { + return Xh(Vh); +}, useDebugValue: ri, useDeferredValue: function(a2) { + var b2 = Uh(); + return null === N$3 ? b2.memoizedState = a2 : ui(b2, N$3.memoizedState, a2); +}, useTransition: function() { + var a2 = Xh(Vh)[0], b2 = Uh().memoizedState; + return [a2, b2]; +}, useMutableSource: Yh, useSyncExternalStore: Zh, useId: wi, unstable_isNewReconciler: false }; +function Ci(a2, b2) { + if (a2 && a2.defaultProps) { + b2 = A$1({}, b2); + a2 = a2.defaultProps; + for (var c2 in a2) void 0 === b2[c2] && (b2[c2] = a2[c2]); + return b2; + } + return b2; +} +function Di(a2, b2, c2, d2) { + b2 = a2.memoizedState; + c2 = c2(d2, b2); + c2 = null === c2 || void 0 === c2 ? b2 : A$1({}, b2, c2); + a2.memoizedState = c2; + 0 === a2.lanes && (a2.updateQueue.baseState = c2); +} +var Ei = { isMounted: function(a2) { + return (a2 = a2._reactInternals) ? Vb(a2) === a2 : false; +}, enqueueSetState: function(a2, b2, c2) { + a2 = a2._reactInternals; + var d2 = R$2(), e2 = yi(a2), f2 = mh(d2, e2); + f2.payload = b2; + void 0 !== c2 && null !== c2 && (f2.callback = c2); + b2 = nh(a2, f2, e2); + null !== b2 && (gi(b2, a2, e2, d2), oh(b2, a2, e2)); +}, enqueueReplaceState: function(a2, b2, c2) { + a2 = a2._reactInternals; + var d2 = R$2(), e2 = yi(a2), f2 = mh(d2, e2); + f2.tag = 1; + f2.payload = b2; + void 0 !== c2 && null !== c2 && (f2.callback = c2); + b2 = nh(a2, f2, e2); + null !== b2 && (gi(b2, a2, e2, d2), oh(b2, a2, e2)); +}, enqueueForceUpdate: function(a2, b2) { + a2 = a2._reactInternals; + var c2 = R$2(), d2 = yi(a2), e2 = mh(c2, d2); + e2.tag = 2; + void 0 !== b2 && null !== b2 && (e2.callback = b2); + b2 = nh(a2, e2, d2); + null !== b2 && (gi(b2, a2, d2, c2), oh(b2, a2, d2)); +} }; +function Fi(a2, b2, c2, d2, e2, f2, g2) { + a2 = a2.stateNode; + return "function" === typeof a2.shouldComponentUpdate ? a2.shouldComponentUpdate(d2, f2, g2) : b2.prototype && b2.prototype.isPureReactComponent ? !Ie(c2, d2) || !Ie(e2, f2) : true; +} +function Gi(a2, b2, c2) { + var d2 = false, e2 = Vf; + var f2 = b2.contextType; + "object" === typeof f2 && null !== f2 ? f2 = eh(f2) : (e2 = Zf(b2) ? Xf : H$1.current, d2 = b2.contextTypes, f2 = (d2 = null !== d2 && void 0 !== d2) ? Yf(a2, e2) : Vf); + b2 = new b2(c2, f2); + a2.memoizedState = null !== b2.state && void 0 !== b2.state ? b2.state : null; + b2.updater = Ei; + a2.stateNode = b2; + b2._reactInternals = a2; + d2 && (a2 = a2.stateNode, a2.__reactInternalMemoizedUnmaskedChildContext = e2, a2.__reactInternalMemoizedMaskedChildContext = f2); + return b2; +} +function Hi(a2, b2, c2, d2) { + a2 = b2.state; + "function" === typeof b2.componentWillReceiveProps && b2.componentWillReceiveProps(c2, d2); + "function" === typeof b2.UNSAFE_componentWillReceiveProps && b2.UNSAFE_componentWillReceiveProps(c2, d2); + b2.state !== a2 && Ei.enqueueReplaceState(b2, b2.state, null); +} +function Ii(a2, b2, c2, d2) { + var e2 = a2.stateNode; + e2.props = c2; + e2.state = a2.memoizedState; + e2.refs = {}; + kh(a2); + var f2 = b2.contextType; + "object" === typeof f2 && null !== f2 ? e2.context = eh(f2) : (f2 = Zf(b2) ? Xf : H$1.current, e2.context = Yf(a2, f2)); + e2.state = a2.memoizedState; + f2 = b2.getDerivedStateFromProps; + "function" === typeof f2 && (Di(a2, b2, f2, c2), e2.state = a2.memoizedState); + "function" === typeof b2.getDerivedStateFromProps || "function" === typeof e2.getSnapshotBeforeUpdate || "function" !== typeof e2.UNSAFE_componentWillMount && "function" !== typeof e2.componentWillMount || (b2 = e2.state, "function" === typeof e2.componentWillMount && e2.componentWillMount(), "function" === typeof e2.UNSAFE_componentWillMount && e2.UNSAFE_componentWillMount(), b2 !== e2.state && Ei.enqueueReplaceState(e2, e2.state, null), qh(a2, c2, e2, d2), e2.state = a2.memoizedState); + "function" === typeof e2.componentDidMount && (a2.flags |= 4194308); +} +function Ji(a2, b2) { + try { + var c2 = "", d2 = b2; + do + c2 += Pa(d2), d2 = d2.return; + while (d2); + var e2 = c2; + } catch (f2) { + e2 = "\nError generating stack: " + f2.message + "\n" + f2.stack; + } + return { value: a2, source: b2, stack: e2, digest: null }; +} +function Ki(a2, b2, c2) { + return { value: a2, source: null, stack: null != c2 ? c2 : null, digest: null != b2 ? b2 : null }; +} +function Li(a2, b2) { + try { + console.error(b2.value); + } catch (c2) { + setTimeout(function() { + throw c2; + }); + } +} +var Mi = "function" === typeof WeakMap ? WeakMap : Map; +function Ni(a2, b2, c2) { + c2 = mh(-1, c2); + c2.tag = 3; + c2.payload = { element: null }; + var d2 = b2.value; + c2.callback = function() { + Oi || (Oi = true, Pi = d2); + Li(a2, b2); + }; + return c2; +} +function Qi(a2, b2, c2) { + c2 = mh(-1, c2); + c2.tag = 3; + var d2 = a2.type.getDerivedStateFromError; + if ("function" === typeof d2) { + var e2 = b2.value; + c2.payload = function() { + return d2(e2); + }; + c2.callback = function() { + Li(a2, b2); + }; + } + var f2 = a2.stateNode; + null !== f2 && "function" === typeof f2.componentDidCatch && (c2.callback = function() { + Li(a2, b2); + "function" !== typeof d2 && (null === Ri ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this)); + var c3 = b2.stack; + this.componentDidCatch(b2.value, { componentStack: null !== c3 ? c3 : "" }); + }); + return c2; +} +function Si(a2, b2, c2) { + var d2 = a2.pingCache; + if (null === d2) { + d2 = a2.pingCache = new Mi(); + var e2 = /* @__PURE__ */ new Set(); + d2.set(b2, e2); + } else e2 = d2.get(b2), void 0 === e2 && (e2 = /* @__PURE__ */ new Set(), d2.set(b2, e2)); + e2.has(c2) || (e2.add(c2), a2 = Ti.bind(null, a2, b2, c2), b2.then(a2, a2)); +} +function Ui(a2) { + do { + var b2; + if (b2 = 13 === a2.tag) b2 = a2.memoizedState, b2 = null !== b2 ? null !== b2.dehydrated ? true : false : true; + if (b2) return a2; + a2 = a2.return; + } while (null !== a2); + return null; +} +function Vi(a2, b2, c2, d2, e2) { + if (0 === (a2.mode & 1)) return a2 === b2 ? a2.flags |= 65536 : (a2.flags |= 128, c2.flags |= 131072, c2.flags &= -52805, 1 === c2.tag && (null === c2.alternate ? c2.tag = 17 : (b2 = mh(-1, 1), b2.tag = 2, nh(c2, b2, 1))), c2.lanes |= 1), a2; + a2.flags |= 65536; + a2.lanes = e2; + return a2; +} +var Wi = ua.ReactCurrentOwner, dh = false; +function Xi(a2, b2, c2, d2) { + b2.child = null === a2 ? Vg(b2, null, c2, d2) : Ug(b2, a2.child, c2, d2); +} +function Yi(a2, b2, c2, d2, e2) { + c2 = c2.render; + var f2 = b2.ref; + ch(b2, e2); + d2 = Nh(a2, b2, c2, d2, f2, e2); + c2 = Sh(); + if (null !== a2 && !dh) return b2.updateQueue = a2.updateQueue, b2.flags &= -2053, a2.lanes &= ~e2, Zi(a2, b2, e2); + I$6 && c2 && vg(b2); + b2.flags |= 1; + Xi(a2, b2, d2, e2); + return b2.child; +} +function $i(a2, b2, c2, d2, e2) { + if (null === a2) { + var f2 = c2.type; + if ("function" === typeof f2 && !aj(f2) && void 0 === f2.defaultProps && null === c2.compare && void 0 === c2.defaultProps) return b2.tag = 15, b2.type = f2, bj(a2, b2, f2, d2, e2); + a2 = Rg(c2.type, null, d2, b2, b2.mode, e2); + a2.ref = b2.ref; + a2.return = b2; + return b2.child = a2; + } + f2 = a2.child; + if (0 === (a2.lanes & e2)) { + var g2 = f2.memoizedProps; + c2 = c2.compare; + c2 = null !== c2 ? c2 : Ie; + if (c2(g2, d2) && a2.ref === b2.ref) return Zi(a2, b2, e2); + } + b2.flags |= 1; + a2 = Pg(f2, d2); + a2.ref = b2.ref; + a2.return = b2; + return b2.child = a2; +} +function bj(a2, b2, c2, d2, e2) { + if (null !== a2) { + var f2 = a2.memoizedProps; + if (Ie(f2, d2) && a2.ref === b2.ref) if (dh = false, b2.pendingProps = d2 = f2, 0 !== (a2.lanes & e2)) 0 !== (a2.flags & 131072) && (dh = true); + else return b2.lanes = a2.lanes, Zi(a2, b2, e2); + } + return cj(a2, b2, c2, d2, e2); +} +function dj(a2, b2, c2) { + var d2 = b2.pendingProps, e2 = d2.children, f2 = null !== a2 ? a2.memoizedState : null; + if ("hidden" === d2.mode) if (0 === (b2.mode & 1)) b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, G$1(ej, fj), fj |= c2; + else { + if (0 === (c2 & 1073741824)) return a2 = null !== f2 ? f2.baseLanes | c2 : c2, b2.lanes = b2.childLanes = 1073741824, b2.memoizedState = { baseLanes: a2, cachePool: null, transitions: null }, b2.updateQueue = null, G$1(ej, fj), fj |= a2, null; + b2.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }; + d2 = null !== f2 ? f2.baseLanes : c2; + G$1(ej, fj); + fj |= d2; + } + else null !== f2 ? (d2 = f2.baseLanes | c2, b2.memoizedState = null) : d2 = c2, G$1(ej, fj), fj |= d2; + Xi(a2, b2, e2, c2); + return b2.child; +} +function gj(a2, b2) { + var c2 = b2.ref; + if (null === a2 && null !== c2 || null !== a2 && a2.ref !== c2) b2.flags |= 512, b2.flags |= 2097152; +} +function cj(a2, b2, c2, d2, e2) { + var f2 = Zf(c2) ? Xf : H$1.current; + f2 = Yf(b2, f2); + ch(b2, e2); + c2 = Nh(a2, b2, c2, d2, f2, e2); + d2 = Sh(); + if (null !== a2 && !dh) return b2.updateQueue = a2.updateQueue, b2.flags &= -2053, a2.lanes &= ~e2, Zi(a2, b2, e2); + I$6 && d2 && vg(b2); + b2.flags |= 1; + Xi(a2, b2, c2, e2); + return b2.child; +} +function hj(a2, b2, c2, d2, e2) { + if (Zf(c2)) { + var f2 = true; + cg(b2); + } else f2 = false; + ch(b2, e2); + if (null === b2.stateNode) ij(a2, b2), Gi(b2, c2, d2), Ii(b2, c2, d2, e2), d2 = true; + else if (null === a2) { + var g2 = b2.stateNode, h2 = b2.memoizedProps; + g2.props = h2; + var k2 = g2.context, l2 = c2.contextType; + "object" === typeof l2 && null !== l2 ? l2 = eh(l2) : (l2 = Zf(c2) ? Xf : H$1.current, l2 = Yf(b2, l2)); + var m2 = c2.getDerivedStateFromProps, q2 = "function" === typeof m2 || "function" === typeof g2.getSnapshotBeforeUpdate; + q2 || "function" !== typeof g2.UNSAFE_componentWillReceiveProps && "function" !== typeof g2.componentWillReceiveProps || (h2 !== d2 || k2 !== l2) && Hi(b2, g2, d2, l2); + jh = false; + var r2 = b2.memoizedState; + g2.state = r2; + qh(b2, d2, g2, e2); + k2 = b2.memoizedState; + h2 !== d2 || r2 !== k2 || Wf.current || jh ? ("function" === typeof m2 && (Di(b2, c2, m2, d2), k2 = b2.memoizedState), (h2 = jh || Fi(b2, c2, h2, d2, r2, k2, l2)) ? (q2 || "function" !== typeof g2.UNSAFE_componentWillMount && "function" !== typeof g2.componentWillMount || ("function" === typeof g2.componentWillMount && g2.componentWillMount(), "function" === typeof g2.UNSAFE_componentWillMount && g2.UNSAFE_componentWillMount()), "function" === typeof g2.componentDidMount && (b2.flags |= 4194308)) : ("function" === typeof g2.componentDidMount && (b2.flags |= 4194308), b2.memoizedProps = d2, b2.memoizedState = k2), g2.props = d2, g2.state = k2, g2.context = l2, d2 = h2) : ("function" === typeof g2.componentDidMount && (b2.flags |= 4194308), d2 = false); + } else { + g2 = b2.stateNode; + lh(a2, b2); + h2 = b2.memoizedProps; + l2 = b2.type === b2.elementType ? h2 : Ci(b2.type, h2); + g2.props = l2; + q2 = b2.pendingProps; + r2 = g2.context; + k2 = c2.contextType; + "object" === typeof k2 && null !== k2 ? k2 = eh(k2) : (k2 = Zf(c2) ? Xf : H$1.current, k2 = Yf(b2, k2)); + var y2 = c2.getDerivedStateFromProps; + (m2 = "function" === typeof y2 || "function" === typeof g2.getSnapshotBeforeUpdate) || "function" !== typeof g2.UNSAFE_componentWillReceiveProps && "function" !== typeof g2.componentWillReceiveProps || (h2 !== q2 || r2 !== k2) && Hi(b2, g2, d2, k2); + jh = false; + r2 = b2.memoizedState; + g2.state = r2; + qh(b2, d2, g2, e2); + var n2 = b2.memoizedState; + h2 !== q2 || r2 !== n2 || Wf.current || jh ? ("function" === typeof y2 && (Di(b2, c2, y2, d2), n2 = b2.memoizedState), (l2 = jh || Fi(b2, c2, l2, d2, r2, n2, k2) || false) ? (m2 || "function" !== typeof g2.UNSAFE_componentWillUpdate && "function" !== typeof g2.componentWillUpdate || ("function" === typeof g2.componentWillUpdate && g2.componentWillUpdate(d2, n2, k2), "function" === typeof g2.UNSAFE_componentWillUpdate && g2.UNSAFE_componentWillUpdate(d2, n2, k2)), "function" === typeof g2.componentDidUpdate && (b2.flags |= 4), "function" === typeof g2.getSnapshotBeforeUpdate && (b2.flags |= 1024)) : ("function" !== typeof g2.componentDidUpdate || h2 === a2.memoizedProps && r2 === a2.memoizedState || (b2.flags |= 4), "function" !== typeof g2.getSnapshotBeforeUpdate || h2 === a2.memoizedProps && r2 === a2.memoizedState || (b2.flags |= 1024), b2.memoizedProps = d2, b2.memoizedState = n2), g2.props = d2, g2.state = n2, g2.context = k2, d2 = l2) : ("function" !== typeof g2.componentDidUpdate || h2 === a2.memoizedProps && r2 === a2.memoizedState || (b2.flags |= 4), "function" !== typeof g2.getSnapshotBeforeUpdate || h2 === a2.memoizedProps && r2 === a2.memoizedState || (b2.flags |= 1024), d2 = false); + } + return jj(a2, b2, c2, d2, f2, e2); +} +function jj(a2, b2, c2, d2, e2, f2) { + gj(a2, b2); + var g2 = 0 !== (b2.flags & 128); + if (!d2 && !g2) return e2 && dg(b2, c2, false), Zi(a2, b2, f2); + d2 = b2.stateNode; + Wi.current = b2; + var h2 = g2 && "function" !== typeof c2.getDerivedStateFromError ? null : d2.render(); + b2.flags |= 1; + null !== a2 && g2 ? (b2.child = Ug(b2, a2.child, null, f2), b2.child = Ug(b2, null, h2, f2)) : Xi(a2, b2, h2, f2); + b2.memoizedState = d2.state; + e2 && dg(b2, c2, true); + return b2.child; +} +function kj(a2) { + var b2 = a2.stateNode; + b2.pendingContext ? ag(a2, b2.pendingContext, b2.pendingContext !== b2.context) : b2.context && ag(a2, b2.context, false); + yh(a2, b2.containerInfo); +} +function lj(a2, b2, c2, d2, e2) { + Ig(); + Jg(e2); + b2.flags |= 256; + Xi(a2, b2, c2, d2); + return b2.child; +} +var mj = { dehydrated: null, treeContext: null, retryLane: 0 }; +function nj(a2) { + return { baseLanes: a2, cachePool: null, transitions: null }; +} +function oj(a2, b2, c2) { + var d2 = b2.pendingProps, e2 = L.current, f2 = false, g2 = 0 !== (b2.flags & 128), h2; + (h2 = g2) || (h2 = null !== a2 && null === a2.memoizedState ? false : 0 !== (e2 & 2)); + if (h2) f2 = true, b2.flags &= -129; + else if (null === a2 || null !== a2.memoizedState) e2 |= 1; + G$1(L, e2 & 1); + if (null === a2) { + Eg(b2); + a2 = b2.memoizedState; + if (null !== a2 && (a2 = a2.dehydrated, null !== a2)) return 0 === (b2.mode & 1) ? b2.lanes = 1 : "$!" === a2.data ? b2.lanes = 8 : b2.lanes = 1073741824, null; + g2 = d2.children; + a2 = d2.fallback; + return f2 ? (d2 = b2.mode, f2 = b2.child, g2 = { mode: "hidden", children: g2 }, 0 === (d2 & 1) && null !== f2 ? (f2.childLanes = 0, f2.pendingProps = g2) : f2 = pj(g2, d2, 0, null), a2 = Tg(a2, d2, c2, null), f2.return = b2, a2.return = b2, f2.sibling = a2, b2.child = f2, b2.child.memoizedState = nj(c2), b2.memoizedState = mj, a2) : qj(b2, g2); + } + e2 = a2.memoizedState; + if (null !== e2 && (h2 = e2.dehydrated, null !== h2)) return rj(a2, b2, g2, d2, h2, e2, c2); + if (f2) { + f2 = d2.fallback; + g2 = b2.mode; + e2 = a2.child; + h2 = e2.sibling; + var k2 = { mode: "hidden", children: d2.children }; + 0 === (g2 & 1) && b2.child !== e2 ? (d2 = b2.child, d2.childLanes = 0, d2.pendingProps = k2, b2.deletions = null) : (d2 = Pg(e2, k2), d2.subtreeFlags = e2.subtreeFlags & 14680064); + null !== h2 ? f2 = Pg(h2, f2) : (f2 = Tg(f2, g2, c2, null), f2.flags |= 2); + f2.return = b2; + d2.return = b2; + d2.sibling = f2; + b2.child = d2; + d2 = f2; + f2 = b2.child; + g2 = a2.child.memoizedState; + g2 = null === g2 ? nj(c2) : { baseLanes: g2.baseLanes | c2, cachePool: null, transitions: g2.transitions }; + f2.memoizedState = g2; + f2.childLanes = a2.childLanes & ~c2; + b2.memoizedState = mj; + return d2; + } + f2 = a2.child; + a2 = f2.sibling; + d2 = Pg(f2, { mode: "visible", children: d2.children }); + 0 === (b2.mode & 1) && (d2.lanes = c2); + d2.return = b2; + d2.sibling = null; + null !== a2 && (c2 = b2.deletions, null === c2 ? (b2.deletions = [a2], b2.flags |= 16) : c2.push(a2)); + b2.child = d2; + b2.memoizedState = null; + return d2; +} +function qj(a2, b2) { + b2 = pj({ mode: "visible", children: b2 }, a2.mode, 0, null); + b2.return = a2; + return a2.child = b2; +} +function sj(a2, b2, c2, d2) { + null !== d2 && Jg(d2); + Ug(b2, a2.child, null, c2); + a2 = qj(b2, b2.pendingProps.children); + a2.flags |= 2; + b2.memoizedState = null; + return a2; +} +function rj(a2, b2, c2, d2, e2, f2, g2) { + if (c2) { + if (b2.flags & 256) return b2.flags &= -257, d2 = Ki(Error(p$5(422))), sj(a2, b2, g2, d2); + if (null !== b2.memoizedState) return b2.child = a2.child, b2.flags |= 128, null; + f2 = d2.fallback; + e2 = b2.mode; + d2 = pj({ mode: "visible", children: d2.children }, e2, 0, null); + f2 = Tg(f2, e2, g2, null); + f2.flags |= 2; + d2.return = b2; + f2.return = b2; + d2.sibling = f2; + b2.child = d2; + 0 !== (b2.mode & 1) && Ug(b2, a2.child, null, g2); + b2.child.memoizedState = nj(g2); + b2.memoizedState = mj; + return f2; + } + if (0 === (b2.mode & 1)) return sj(a2, b2, g2, null); + if ("$!" === e2.data) { + d2 = e2.nextSibling && e2.nextSibling.dataset; + if (d2) var h2 = d2.dgst; + d2 = h2; + f2 = Error(p$5(419)); + d2 = Ki(f2, d2, void 0); + return sj(a2, b2, g2, d2); + } + h2 = 0 !== (g2 & a2.childLanes); + if (dh || h2) { + d2 = Q$1; + if (null !== d2) { + switch (g2 & -g2) { + case 4: + e2 = 2; + break; + case 16: + e2 = 8; + break; + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + case 67108864: + e2 = 32; + break; + case 536870912: + e2 = 268435456; + break; + default: + e2 = 0; + } + e2 = 0 !== (e2 & (d2.suspendedLanes | g2)) ? 0 : e2; + 0 !== e2 && e2 !== f2.retryLane && (f2.retryLane = e2, ih(a2, e2), gi(d2, a2, e2, -1)); + } + tj(); + d2 = Ki(Error(p$5(421))); + return sj(a2, b2, g2, d2); + } + if ("$?" === e2.data) return b2.flags |= 128, b2.child = a2.child, b2 = uj.bind(null, a2), e2._reactRetry = b2, null; + a2 = f2.treeContext; + yg = Lf(e2.nextSibling); + xg = b2; + I$6 = true; + zg = null; + null !== a2 && (og[pg++] = rg, og[pg++] = sg, og[pg++] = qg, rg = a2.id, sg = a2.overflow, qg = b2); + b2 = qj(b2, d2.children); + b2.flags |= 4096; + return b2; +} +function vj(a2, b2, c2) { + a2.lanes |= b2; + var d2 = a2.alternate; + null !== d2 && (d2.lanes |= b2); + bh(a2.return, b2, c2); +} +function wj(a2, b2, c2, d2, e2) { + var f2 = a2.memoizedState; + null === f2 ? a2.memoizedState = { isBackwards: b2, rendering: null, renderingStartTime: 0, last: d2, tail: c2, tailMode: e2 } : (f2.isBackwards = b2, f2.rendering = null, f2.renderingStartTime = 0, f2.last = d2, f2.tail = c2, f2.tailMode = e2); +} +function xj(a2, b2, c2) { + var d2 = b2.pendingProps, e2 = d2.revealOrder, f2 = d2.tail; + Xi(a2, b2, d2.children, c2); + d2 = L.current; + if (0 !== (d2 & 2)) d2 = d2 & 1 | 2, b2.flags |= 128; + else { + if (null !== a2 && 0 !== (a2.flags & 128)) a: for (a2 = b2.child; null !== a2; ) { + if (13 === a2.tag) null !== a2.memoizedState && vj(a2, c2, b2); + else if (19 === a2.tag) vj(a2, c2, b2); + else if (null !== a2.child) { + a2.child.return = a2; + a2 = a2.child; + continue; + } + if (a2 === b2) break a; + for (; null === a2.sibling; ) { + if (null === a2.return || a2.return === b2) break a; + a2 = a2.return; + } + a2.sibling.return = a2.return; + a2 = a2.sibling; + } + d2 &= 1; + } + G$1(L, d2); + if (0 === (b2.mode & 1)) b2.memoizedState = null; + else switch (e2) { + case "forwards": + c2 = b2.child; + for (e2 = null; null !== c2; ) a2 = c2.alternate, null !== a2 && null === Ch(a2) && (e2 = c2), c2 = c2.sibling; + c2 = e2; + null === c2 ? (e2 = b2.child, b2.child = null) : (e2 = c2.sibling, c2.sibling = null); + wj(b2, false, e2, c2, f2); + break; + case "backwards": + c2 = null; + e2 = b2.child; + for (b2.child = null; null !== e2; ) { + a2 = e2.alternate; + if (null !== a2 && null === Ch(a2)) { + b2.child = e2; + break; + } + a2 = e2.sibling; + e2.sibling = c2; + c2 = e2; + e2 = a2; + } + wj(b2, true, c2, null, f2); + break; + case "together": + wj(b2, false, null, null, void 0); + break; + default: + b2.memoizedState = null; + } + return b2.child; +} +function ij(a2, b2) { + 0 === (b2.mode & 1) && null !== a2 && (a2.alternate = null, b2.alternate = null, b2.flags |= 2); +} +function Zi(a2, b2, c2) { + null !== a2 && (b2.dependencies = a2.dependencies); + rh |= b2.lanes; + if (0 === (c2 & b2.childLanes)) return null; + if (null !== a2 && b2.child !== a2.child) throw Error(p$5(153)); + if (null !== b2.child) { + a2 = b2.child; + c2 = Pg(a2, a2.pendingProps); + b2.child = c2; + for (c2.return = b2; null !== a2.sibling; ) a2 = a2.sibling, c2 = c2.sibling = Pg(a2, a2.pendingProps), c2.return = b2; + c2.sibling = null; + } + return b2.child; +} +function yj(a2, b2, c2) { + switch (b2.tag) { + case 3: + kj(b2); + Ig(); + break; + case 5: + Ah(b2); + break; + case 1: + Zf(b2.type) && cg(b2); + break; + case 4: + yh(b2, b2.stateNode.containerInfo); + break; + case 10: + var d2 = b2.type._context, e2 = b2.memoizedProps.value; + G$1(Wg, d2._currentValue); + d2._currentValue = e2; + break; + case 13: + d2 = b2.memoizedState; + if (null !== d2) { + if (null !== d2.dehydrated) return G$1(L, L.current & 1), b2.flags |= 128, null; + if (0 !== (c2 & b2.child.childLanes)) return oj(a2, b2, c2); + G$1(L, L.current & 1); + a2 = Zi(a2, b2, c2); + return null !== a2 ? a2.sibling : null; + } + G$1(L, L.current & 1); + break; + case 19: + d2 = 0 !== (c2 & b2.childLanes); + if (0 !== (a2.flags & 128)) { + if (d2) return xj(a2, b2, c2); + b2.flags |= 128; + } + e2 = b2.memoizedState; + null !== e2 && (e2.rendering = null, e2.tail = null, e2.lastEffect = null); + G$1(L, L.current); + if (d2) break; + else return null; + case 22: + case 23: + return b2.lanes = 0, dj(a2, b2, c2); + } + return Zi(a2, b2, c2); +} +var zj, Aj, Bj, Cj; +zj = function(a2, b2) { + for (var c2 = b2.child; null !== c2; ) { + if (5 === c2.tag || 6 === c2.tag) a2.appendChild(c2.stateNode); + else if (4 !== c2.tag && null !== c2.child) { + c2.child.return = c2; + c2 = c2.child; + continue; + } + if (c2 === b2) break; + for (; null === c2.sibling; ) { + if (null === c2.return || c2.return === b2) return; + c2 = c2.return; + } + c2.sibling.return = c2.return; + c2 = c2.sibling; + } +}; +Aj = function() { +}; +Bj = function(a2, b2, c2, d2) { + var e2 = a2.memoizedProps; + if (e2 !== d2) { + a2 = b2.stateNode; + xh(uh.current); + var f2 = null; + switch (c2) { + case "input": + e2 = Ya(a2, e2); + d2 = Ya(a2, d2); + f2 = []; + break; + case "select": + e2 = A$1({}, e2, { value: void 0 }); + d2 = A$1({}, d2, { value: void 0 }); + f2 = []; + break; + case "textarea": + e2 = gb(a2, e2); + d2 = gb(a2, d2); + f2 = []; + break; + default: + "function" !== typeof e2.onClick && "function" === typeof d2.onClick && (a2.onclick = Bf); + } + ub(c2, d2); + var g2; + c2 = null; + for (l2 in e2) if (!d2.hasOwnProperty(l2) && e2.hasOwnProperty(l2) && null != e2[l2]) if ("style" === l2) { + var h2 = e2[l2]; + for (g2 in h2) h2.hasOwnProperty(g2) && (c2 || (c2 = {}), c2[g2] = ""); + } else "dangerouslySetInnerHTML" !== l2 && "children" !== l2 && "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && "autoFocus" !== l2 && (ea.hasOwnProperty(l2) ? f2 || (f2 = []) : (f2 = f2 || []).push(l2, null)); + for (l2 in d2) { + var k2 = d2[l2]; + h2 = null != e2 ? e2[l2] : void 0; + if (d2.hasOwnProperty(l2) && k2 !== h2 && (null != k2 || null != h2)) if ("style" === l2) if (h2) { + for (g2 in h2) !h2.hasOwnProperty(g2) || k2 && k2.hasOwnProperty(g2) || (c2 || (c2 = {}), c2[g2] = ""); + for (g2 in k2) k2.hasOwnProperty(g2) && h2[g2] !== k2[g2] && (c2 || (c2 = {}), c2[g2] = k2[g2]); + } else c2 || (f2 || (f2 = []), f2.push( + l2, + c2 + )), c2 = k2; + else "dangerouslySetInnerHTML" === l2 ? (k2 = k2 ? k2.__html : void 0, h2 = h2 ? h2.__html : void 0, null != k2 && h2 !== k2 && (f2 = f2 || []).push(l2, k2)) : "children" === l2 ? "string" !== typeof k2 && "number" !== typeof k2 || (f2 = f2 || []).push(l2, "" + k2) : "suppressContentEditableWarning" !== l2 && "suppressHydrationWarning" !== l2 && (ea.hasOwnProperty(l2) ? (null != k2 && "onScroll" === l2 && D$4("scroll", a2), f2 || h2 === k2 || (f2 = [])) : (f2 = f2 || []).push(l2, k2)); + } + c2 && (f2 = f2 || []).push("style", c2); + var l2 = f2; + if (b2.updateQueue = l2) b2.flags |= 4; + } +}; +Cj = function(a2, b2, c2, d2) { + c2 !== d2 && (b2.flags |= 4); +}; +function Dj(a2, b2) { + if (!I$6) switch (a2.tailMode) { + case "hidden": + b2 = a2.tail; + for (var c2 = null; null !== b2; ) null !== b2.alternate && (c2 = b2), b2 = b2.sibling; + null === c2 ? a2.tail = null : c2.sibling = null; + break; + case "collapsed": + c2 = a2.tail; + for (var d2 = null; null !== c2; ) null !== c2.alternate && (d2 = c2), c2 = c2.sibling; + null === d2 ? b2 || null === a2.tail ? a2.tail = null : a2.tail.sibling = null : d2.sibling = null; + } +} +function S$6(a2) { + var b2 = null !== a2.alternate && a2.alternate.child === a2.child, c2 = 0, d2 = 0; + if (b2) for (var e2 = a2.child; null !== e2; ) c2 |= e2.lanes | e2.childLanes, d2 |= e2.subtreeFlags & 14680064, d2 |= e2.flags & 14680064, e2.return = a2, e2 = e2.sibling; + else for (e2 = a2.child; null !== e2; ) c2 |= e2.lanes | e2.childLanes, d2 |= e2.subtreeFlags, d2 |= e2.flags, e2.return = a2, e2 = e2.sibling; + a2.subtreeFlags |= d2; + a2.childLanes = c2; + return b2; +} +function Ej(a2, b2, c2) { + var d2 = b2.pendingProps; + wg(b2); + switch (b2.tag) { + case 2: + case 16: + case 15: + case 0: + case 11: + case 7: + case 8: + case 12: + case 9: + case 14: + return S$6(b2), null; + case 1: + return Zf(b2.type) && $f(), S$6(b2), null; + case 3: + d2 = b2.stateNode; + zh(); + E$1(Wf); + E$1(H$1); + Eh(); + d2.pendingContext && (d2.context = d2.pendingContext, d2.pendingContext = null); + if (null === a2 || null === a2.child) Gg(b2) ? b2.flags |= 4 : null === a2 || a2.memoizedState.isDehydrated && 0 === (b2.flags & 256) || (b2.flags |= 1024, null !== zg && (Fj(zg), zg = null)); + Aj(a2, b2); + S$6(b2); + return null; + case 5: + Bh(b2); + var e2 = xh(wh.current); + c2 = b2.type; + if (null !== a2 && null != b2.stateNode) Bj(a2, b2, c2, d2, e2), a2.ref !== b2.ref && (b2.flags |= 512, b2.flags |= 2097152); + else { + if (!d2) { + if (null === b2.stateNode) throw Error(p$5(166)); + S$6(b2); + return null; + } + a2 = xh(uh.current); + if (Gg(b2)) { + d2 = b2.stateNode; + c2 = b2.type; + var f2 = b2.memoizedProps; + d2[Of] = b2; + d2[Pf] = f2; + a2 = 0 !== (b2.mode & 1); + switch (c2) { + case "dialog": + D$4("cancel", d2); + D$4("close", d2); + break; + case "iframe": + case "object": + case "embed": + D$4("load", d2); + break; + case "video": + case "audio": + for (e2 = 0; e2 < lf.length; e2++) D$4(lf[e2], d2); + break; + case "source": + D$4("error", d2); + break; + case "img": + case "image": + case "link": + D$4( + "error", + d2 + ); + D$4("load", d2); + break; + case "details": + D$4("toggle", d2); + break; + case "input": + Za(d2, f2); + D$4("invalid", d2); + break; + case "select": + d2._wrapperState = { wasMultiple: !!f2.multiple }; + D$4("invalid", d2); + break; + case "textarea": + hb(d2, f2), D$4("invalid", d2); + } + ub(c2, f2); + e2 = null; + for (var g2 in f2) if (f2.hasOwnProperty(g2)) { + var h2 = f2[g2]; + "children" === g2 ? "string" === typeof h2 ? d2.textContent !== h2 && (true !== f2.suppressHydrationWarning && Af(d2.textContent, h2, a2), e2 = ["children", h2]) : "number" === typeof h2 && d2.textContent !== "" + h2 && (true !== f2.suppressHydrationWarning && Af( + d2.textContent, + h2, + a2 + ), e2 = ["children", "" + h2]) : ea.hasOwnProperty(g2) && null != h2 && "onScroll" === g2 && D$4("scroll", d2); + } + switch (c2) { + case "input": + Va(d2); + db(d2, f2, true); + break; + case "textarea": + Va(d2); + jb(d2); + break; + case "select": + case "option": + break; + default: + "function" === typeof f2.onClick && (d2.onclick = Bf); + } + d2 = e2; + b2.updateQueue = d2; + null !== d2 && (b2.flags |= 4); + } else { + g2 = 9 === e2.nodeType ? e2 : e2.ownerDocument; + "http://www.w3.org/1999/xhtml" === a2 && (a2 = kb(c2)); + "http://www.w3.org/1999/xhtml" === a2 ? "script" === c2 ? (a2 = g2.createElement("div"), a2.innerHTML = " + + + +
+ + \ No newline at end of file diff --git a/sni-templates/modmanager/site.webmanifest b/sni-templates/modmanager/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/modmanager/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/modmanager/web-app-manifest-192x192.png b/sni-templates/modmanager/web-app-manifest-192x192.png new file mode 100644 index 0000000..7e38dc1 Binary files /dev/null and b/sni-templates/modmanager/web-app-manifest-192x192.png differ diff --git a/sni-templates/modmanager/web-app-manifest-512x512.png b/sni-templates/modmanager/web-app-manifest-512x512.png new file mode 100644 index 0000000..e32acd1 Binary files /dev/null and b/sni-templates/modmanager/web-app-manifest-512x512.png differ diff --git a/sni-templates/speedtest/apple-touch-icon.png b/sni-templates/speedtest/apple-touch-icon.png new file mode 100644 index 0000000..5424f5d Binary files /dev/null and b/sni-templates/speedtest/apple-touch-icon.png differ diff --git a/sni-templates/speedtest/assets/script.js b/sni-templates/speedtest/assets/script.js new file mode 100644 index 0000000..98a2719 --- /dev/null +++ b/sni-templates/speedtest/assets/script.js @@ -0,0 +1,95 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();var Gu={exports:{}},nl={},Yu={exports:{}},L={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zn=Symbol.for("react.element"),uc=Symbol.for("react.portal"),sc=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),cc=Symbol.for("react.profiler"),fc=Symbol.for("react.provider"),dc=Symbol.for("react.context"),pc=Symbol.for("react.forward_ref"),mc=Symbol.for("react.suspense"),hc=Symbol.for("react.memo"),vc=Symbol.for("react.lazy"),Di=Symbol.iterator;function yc(e){return e===null||typeof e!="object"?null:(e=Di&&e[Di]||e["@@iterator"],typeof e=="function"?e:null)}var Xu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zu=Object.assign,Ju={};function un(e,t,n){this.props=e,this.context=t,this.refs=Ju,this.updater=n||Xu}un.prototype.isReactComponent={};un.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};un.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qu(){}qu.prototype=un.prototype;function Vo(e,t,n){this.props=e,this.context=t,this.refs=Ju,this.updater=n||Xu}var Bo=Vo.prototype=new qu;Bo.constructor=Vo;Zu(Bo,un.prototype);Bo.isPureReactComponent=!0;var Fi=Array.isArray,bu=Object.prototype.hasOwnProperty,Wo={current:null},es={key:!0,ref:!0,__self:!0,__source:!0};function ts(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)bu.call(t,r)&&!es.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,Z=C[Q];if(0>>1;Ql(Sl,z))wtl(nr,Sl)?(C[Q]=nr,C[wt]=z,Q=wt):(C[Q]=Sl,C[gt]=z,Q=gt);else if(wtl(nr,z))C[Q]=nr,C[wt]=z,Q=wt;else break e}}return T}function l(C,T){var z=C.sortIndex-T.sortIndex;return z!==0?z:C.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],c=[],h=1,m=null,p=3,g=!1,S=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(C){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=C)r(c),T.sortIndex=T.expirationTime,t(s,T);else break;T=n(c)}}function v(C){if(k=!1,d(C),!S)if(n(s)!==null)S=!0,gl(E);else{var T=n(c);T!==null&&wl(v,T.startTime-C)}}function E(C,T){S=!1,k&&(k=!1,f(P),P=-1),g=!0;var z=p;try{for(d(T),m=n(s);m!==null&&(!(m.expirationTime>T)||C&&!Te());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,p=m.priorityLevel;var Z=Q(m.expirationTime<=T);T=e.unstable_now(),typeof Z=="function"?m.callback=Z:m===n(s)&&r(s),d(T)}else r(s);m=n(s)}if(m!==null)var tr=!0;else{var gt=n(c);gt!==null&&wl(v,gt.startTime-T),tr=!1}return tr}finally{m=null,p=z,g=!1}}var N=!1,_=null,P=-1,H=5,j=-1;function Te(){return!(e.unstable_now()-jC||125Q?(C.sortIndex=z,t(c,C),n(s)===null&&C===n(c)&&(k?(f(P),P=-1):k=!0,wl(v,z-Q))):(C.sortIndex=Z,t(s,C),S||g||(S=!0,gl(E))),C},e.unstable_shouldYield=Te,e.unstable_wrapCallback=function(C){var T=p;return function(){var z=p;p=T;try{return C.apply(this,arguments)}finally{p=z}}}})(is);os.exports=is;var Tc=os.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zc=le,we=Tc;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gl=Object.prototype.hasOwnProperty,Lc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$i={},Ai={};function jc(e){return Gl.call(Ai,e)?!0:Gl.call($i,e)?!1:Lc.test(e)?Ai[e]=!0:($i[e]=!0,!1)}function Rc(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Oc(e,t,n,r){if(t===null||typeof t>"u"||Rc(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ce(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qo=/[\-:]([a-z])/g;function Ko(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Qo,Ko);te[t]=new ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Qo,Ko);te[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Qo,Ko);te[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){te[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)});te.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){te[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Go(e,t,n,r){var l=te.hasOwnProperty(t)?te[t]:null;(l!==null?l.type!==0:r||!(2u||l[i]!==o[u]){var s=` +`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{El=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Sn(e):""}function Mc(e){switch(e.tag){case 5:return Sn(e.type);case 16:return Sn("Lazy");case 13:return Sn("Suspense");case 19:return Sn("SuspenseList");case 0:case 2:case 15:return e=Cl(e.type,!1),e;case 11:return e=Cl(e.type.render,!1),e;case 1:return e=Cl(e.type,!0),e;default:return""}}function Jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dt:return"Fragment";case It:return"Portal";case Yl:return"Profiler";case Yo:return"StrictMode";case Xl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case as:return(e.displayName||"Context")+".Consumer";case ss:return(e._context.displayName||"Context")+".Provider";case Xo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zo:return t=e.displayName||null,t!==null?t:Jl(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return Jl(e(t))}catch{}}return null}function Ic(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jl(t);case 8:return t===Yo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function dt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dc(e){var t=fs(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function or(e){e._valueTracker||(e._valueTracker=Dc(e))}function ds(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fs(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Rr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ql(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=dt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ps(e,t){t=t.checked,t!=null&&Go(e,"checked",t,!1)}function bl(e,t){ps(e,t);var n=dt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?eo(e,t.type,n):t.hasOwnProperty("defaultValue")&&eo(e,t.type,dt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wi(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function eo(e,t,n){(t!=="number"||Rr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var kn=Array.isArray;function Gt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fc=["Webkit","ms","Moz","O"];Object.keys(Cn).forEach(function(e){Fc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cn[t]=Cn[e]})});function ys(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cn.hasOwnProperty(e)&&Cn[e]?(""+t).trim():t+"px"}function gs(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ys(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Uc=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ro(e,t){if(t){if(Uc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(y(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(y(61))}if(t.style!=null&&typeof t.style!="object")throw Error(y(62))}}function lo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oo=null;function Jo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var io=null,Yt=null,Xt=null;function Ki(e){if(e=bn(e)){if(typeof io!="function")throw Error(y(280));var t=e.stateNode;t&&(t=ul(t),io(e.stateNode,e.type,t))}}function ws(e){Yt?Xt?Xt.push(e):Xt=[e]:Yt=e}function Ss(){if(Yt){var e=Yt,t=Xt;if(Xt=Yt=null,Ki(e),t)for(e=0;e>>=0,e===0?32:31-(Xc(e)/Zc|0)|0}var ur=64,sr=4194304;function xn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=xn(u):(o&=i,o!==0&&(r=xn(o)))}else i=n&~l,i!==0?r=xn(i):o!==0&&(r=xn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function ef(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=_n),tu=" ",nu=!1;function As(e,t){switch(e){case"keyup":return zf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ft=!1;function jf(e,t){switch(e){case"compositionend":return Vs(t);case"keypress":return t.which!==32?null:(nu=!0,tu);case"textInput":return e=t.data,e===tu&&nu?null:e;default:return null}}function Rf(e,t){if(Ft)return e==="compositionend"||!oi&&As(e,t)?(e=Us(),Er=ni=nt=null,Ft=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=iu(n)}}function Qs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ks(){for(var e=window,t=Rr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function ii(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Vf(e){var t=Ks(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qs(n.ownerDocument.documentElement,n)){if(r!==null&&ii(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=uu(n,o);var i=uu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ut=null,po=null,Tn=null,mo=!1;function su(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mo||Ut==null||Ut!==Rr(r)||(r=Ut,"selectionStart"in r&&ii(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tn&&An(Tn,r)||(Tn=r,r=$r(po,"onSelect"),0Vt||(e.current=So[Vt],So[Vt]=null,Vt--)}function M(e,t){Vt++,So[Vt]=e.current,e.current=t}var pt={},ie=ht(pt),pe=ht(!1),Pt=pt;function en(e,t){var n=e.type.contextTypes;if(!n)return pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function me(e){return e=e.childContextTypes,e!=null}function Vr(){D(pe),D(ie)}function hu(e,t,n){if(ie.current!==pt)throw Error(y(168));M(ie,t),M(pe,n)}function ta(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(y(108,Ic(e)||"Unknown",l));return B({},n,r)}function Br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pt,Pt=ie.current,M(ie,e),M(pe,pe.current),!0}function vu(e,t,n){var r=e.stateNode;if(!r)throw Error(y(169));n?(e=ta(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,D(pe),D(ie),M(ie,e)):D(pe),M(pe,n)}var Be=null,sl=!1,Ul=!1;function na(e){Be===null?Be=[e]:Be.push(e)}function bf(e){sl=!0,na(e)}function vt(){if(!Ul&&Be!==null){Ul=!0;var e=0,t=O;try{var n=Be;for(O=1;e>=i,l-=i,We=1<<32-Oe(t)+l|n<P?(H=_,_=null):H=_.sibling;var j=p(f,_,d[P],v);if(j===null){_===null&&(_=H);break}e&&_&&j.alternate===null&&t(f,_),a=o(j,a,P),N===null?E=j:N.sibling=j,N=j,_=H}if(P===d.length)return n(f,_),U&&St(f,P),E;if(_===null){for(;PP?(H=_,_=null):H=_.sibling;var Te=p(f,_,j.value,v);if(Te===null){_===null&&(_=H);break}e&&_&&Te.alternate===null&&t(f,_),a=o(Te,a,P),N===null?E=Te:N.sibling=Te,N=Te,_=H}if(j.done)return n(f,_),U&&St(f,P),E;if(_===null){for(;!j.done;P++,j=d.next())j=m(f,j.value,v),j!==null&&(a=o(j,a,P),N===null?E=j:N.sibling=j,N=j);return U&&St(f,P),E}for(_=r(f,_);!j.done;P++,j=d.next())j=g(_,f,P,j.value,v),j!==null&&(e&&j.alternate!==null&&_.delete(j.key===null?P:j.key),a=o(j,a,P),N===null?E=j:N.sibling=j,N=j);return e&&_.forEach(function(cn){return t(f,cn)}),U&&St(f,P),E}function F(f,a,d,v){if(typeof d=="object"&&d!==null&&d.type===Dt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case lr:e:{for(var E=d.key,N=a;N!==null;){if(N.key===E){if(E=d.type,E===Dt){if(N.tag===7){n(f,N.sibling),a=l(N,d.props.children),a.return=f,f=a;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qe&&wu(E)===N.type){n(f,N.sibling),a=l(N,d.props),a.ref=yn(f,N,d),a.return=f,f=a;break e}n(f,N);break}else t(f,N);N=N.sibling}d.type===Dt?(a=_t(d.props.children,f.mode,v,d.key),a.return=f,f=a):(v=jr(d.type,d.key,d.props,null,f.mode,v),v.ref=yn(f,a,d),v.return=f,f=v)}return i(f);case It:e:{for(N=d.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Kl(d,f.mode,v),a.return=f,f=a}return i(f);case qe:return N=d._init,F(f,a,N(d._payload),v)}if(kn(d))return S(f,a,d,v);if(dn(d))return k(f,a,d,v);hr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=l(a,d),a.return=f,f=a):(n(f,a),a=Ql(d,f.mode,v),a.return=f,f=a),i(f)):n(f,a)}return F}var nn=ia(!0),ua=ia(!1),Qr=ht(null),Kr=null,Ht=null,ci=null;function fi(){ci=Ht=Kr=null}function di(e){var t=Qr.current;D(Qr),e._currentValue=t}function Eo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Jt(e,t){Kr=e,ci=Ht=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function _e(e){var t=e._currentValue;if(ci!==e)if(e={context:e,memoizedValue:t,next:null},Ht===null){if(Kr===null)throw Error(y(308));Ht=e,Kr.dependencies={lanes:0,firstContext:e}}else Ht=Ht.next=e;return t}var Et=null;function pi(e){Et===null?Et=[e]:Et.push(e)}function sa(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,pi(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ye(e,r)}function Ye(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var be=!1;function mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function st(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ye(e,n)}return l=r.interleaved,l===null?(t.next=t,pi(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ye(e,n)}function Nr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bo(e,n)}}function Su(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gr(e,t,n,r){var l=e.updateQueue;be=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,i===null?o=c:i.next=c,i=s;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==i&&(u===null?h.firstBaseUpdate=c:u.next=c,h.lastBaseUpdate=s))}if(o!==null){var m=l.baseState;i=0,h=c=s=null,u=o;do{var p=u.lane,g=u.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:g,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,k=u;switch(p=t,g=n,k.tag){case 1:if(S=k.payload,typeof S=="function"){m=S.call(g,m,p);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=k.payload,p=typeof S=="function"?S.call(g,m,p):S,p==null)break e;m=B({},m,p);break e;case 2:be=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else g={eventTime:g,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(c=h=g,s=m):h=h.next=g,i|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(h===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Lt|=i,e.lanes=i,e.memoizedState=m}}function ku(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),t()}finally{O=n,Al.transition=r}}function _a(){return Pe().memoizedState}function rd(e,t,n){var r=ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pa(e))Ta(t,n);else if(n=sa(e,t,n,r),n!==null){var l=se();Me(n,e,r,l),za(n,t,r)}}function ld(e,t,n){var r=ct(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pa(e))Ta(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,Ie(u,i)){var s=t.interleaved;s===null?(l.next=l,pi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=sa(e,t,l,r),n!==null&&(l=se(),Me(n,e,r,l),za(n,t,r))}}function Pa(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ta(e,t){zn=Xr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function za(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bo(e,n)}}var Zr={readContext:_e,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},od={readContext:_e,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:_e,useEffect:Eu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pr(4194308,4,ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pr(4,2,e,t)},useMemo:function(e,t){var n=Fe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rd.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:xu,useDebugValue:xi,useDeferredValue:function(e){return Fe().memoizedState=e},useTransition:function(){var e=xu(!1),t=e[0];return e=nd.bind(null,e[1]),Fe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=Fe();if(U){if(n===void 0)throw Error(y(407));n=n()}else{if(n=t(),q===null)throw Error(y(349));zt&30||pa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Eu(ha.bind(null,r,o,e),[e]),r.flags|=2048,Yn(9,ma.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Fe(),t=q.identifierPrefix;if(U){var n=He,r=We;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kn++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ue]=t,e[Wn]=r,$a(e,t,!1,!1),t.stateNode=e;e:{switch(i=lo(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;lon&&(t.flags|=128,r=!0,gn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Yr(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!U)return re(t),null}else 2*K()-o.renderingStartTime>on&&n!==1073741824&&(t.flags|=128,r=!0,gn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=A.current,M(A,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Ti(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(y(156,t.tag))}function pd(e,t){switch(si(t),t.tag){case 1:return me(t.type)&&Vr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rn(),D(pe),D(ie),yi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vi(t),null;case 13:if(D(A),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(y(340));tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(A),null;case 4:return rn(),null;case 10:return di(t.type._context),null;case 22:case 23:return Ti(),null;case 24:return null;default:return null}}var yr=!1,oe=!1,md=typeof WeakSet=="function"?WeakSet:Set,x=null;function Qt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function Ro(e,t,n){try{n()}catch(r){W(e,t,r)}}var Mu=!1;function hd(e,t){if(ho=Fr,e=Ks(),ii(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,c=0,h=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(u=i+l),m!==o||r!==0&&m.nodeType!==3||(s=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(u=i),p===o&&++h===r&&(s=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vo={focusedElem:e,selectionRange:n},Fr=!1,x=t;x!==null;)if(t=x,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,x=e;else for(;x!==null;){t=x;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var k=S.memoizedProps,F=S.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Le(t.type,k),F);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(v){W(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,x=e;break}x=t.return}return S=Mu,Mu=!1,S}function Ln(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(t,n,o)}l=l.next}while(l!==r)}}function fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Oo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ba(e){var t=e.alternate;t!==null&&(e.alternate=null,Ba(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ue],delete t[Wn],delete t[wo],delete t[Jf],delete t[qf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wa(e){return e.tag===5||e.tag===3||e.tag===4}function Iu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ar));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,t,n),e=e.sibling;e!==null;)Mo(e,t,n),e=e.sibling}function Io(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Io(e,t,n),e=e.sibling;e!==null;)Io(e,t,n),e=e.sibling}var b=null,je=!1;function Je(e,t,n){for(n=n.child;n!==null;)Ha(e,t,n),n=n.sibling}function Ha(e,t,n){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 5:oe||Qt(n,t);case 6:var r=b,l=je;b=null,Je(e,t,n),b=r,je=l,b!==null&&(je?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(je?(e=b,n=n.stateNode,e.nodeType===8?Fl(e.parentNode,n):e.nodeType===1&&Fl(e,n),Un(e)):Fl(b,n.stateNode));break;case 4:r=b,l=je,b=n.stateNode.containerInfo,je=!0,Je(e,t,n),b=r,je=l;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ro(n,t,i),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!oe&&(Qt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){W(n,t,u)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,Je(e,t,n),oe=r):Je(e,t,n);break;default:Je(e,t,n)}}function Du(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new md),t.forEach(function(r){var l=Cd.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yd(r/1960))-r,10e?16:e,rt===null)var r=!1;else{if(e=rt,rt=null,br=0,R&6)throw Error(y(331));var l=R;for(R|=4,x=e.current;x!==null;){var o=x,i=o.child;if(x.flags&16){var u=o.deletions;if(u!==null){for(var s=0;sK()-_i?Nt(e,0):Ni|=n),he(e,t)}function qa(e,t){t===0&&(e.mode&1?(t=sr,sr<<=1,!(sr&130023424)&&(sr=4194304)):t=1);var n=se();e=Ye(e,t),e!==null&&(Jn(e,t,n),he(e,n))}function Ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qa(e,n)}function Cd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(t),qa(e,n)}var ba;ba=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,fd(e,t,n);de=!!(e.flags&131072)}else de=!1,U&&t.flags&1048576&&ra(t,Hr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Tr(e,t),e=t.pendingProps;var l=en(t,ie.current);Jt(t,n),l=wi(null,t,r,e,l,n);var o=Si();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,me(r)?(o=!0,Br(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mi(t),l.updater=cl,t.stateNode=l,l._reactInternals=t,No(t,r,e,n),t=To(null,t,r,!0,o,n)):(t.tag=0,U&&o&&ui(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Tr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=_d(r),e=Le(r,e),l){case 0:t=Po(null,t,r,e,n);break e;case 1:t=ju(null,t,r,e,n);break e;case 11:t=zu(null,t,r,e,n);break e;case 14:t=Lu(null,t,r,Le(r.type,e),n);break e}throw Error(y(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Po(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),ju(e,t,r,l,n);case 3:e:{if(Da(t),e===null)throw Error(y(387));r=t.pendingProps,o=t.memoizedState,l=o.element,aa(e,t),Gr(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=ln(Error(y(423)),t),t=Ru(e,t,r,n,l);break e}else if(r!==l){l=ln(Error(y(424)),t),t=Ru(e,t,r,n,l);break e}else for(ye=ut(t.stateNode.containerInfo.firstChild),ge=t,U=!0,Re=null,n=ua(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tn(),r===l){t=Xe(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return ca(t),e===null&&xo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,yo(r,l)?i=null:o!==null&&yo(r,o)&&(t.flags|=32),Ia(e,t),ue(e,t,i,n),t.child;case 6:return e===null&&xo(t),null;case 13:return Fa(e,t,n);case 4:return hi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=nn(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),zu(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,M(Qr,r._currentValue),r._currentValue=i,o!==null)if(Ie(o.value,i)){if(o.children===l.children&&!pe.current){t=Xe(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Qe(-1,n&-n),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?s.next=s:(s.next=h.next,h.next=s),c.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Eo(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(y(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Eo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Jt(t,n),l=_e(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),Lu(e,t,r,l,n);case 15:return Oa(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Tr(e,t),t.tag=1,me(r)?(e=!0,Br(t)):e=!1,Jt(t,n),La(t,r,l),No(t,r,l,n),To(null,t,r,!0,e,n);case 19:return Ua(e,t,n);case 22:return Ma(e,t,n)}throw Error(y(156,t.tag))};function ec(e,t){return Ps(e,t)}function Nd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(e,t,n,r){return new Nd(e,t,n,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _d(e){if(typeof e=="function")return Li(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xo)return 11;if(e===Zo)return 14}return 2}function ft(e,t){var n=e.alternate;return n===null?(n=Ce(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jr(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Li(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Dt:return _t(n.children,l,o,t);case Yo:i=8,l|=8;break;case Yl:return e=Ce(12,n,t,l|2),e.elementType=Yl,e.lanes=o,e;case Xl:return e=Ce(13,n,t,l),e.elementType=Xl,e.lanes=o,e;case Zl:return e=Ce(19,n,t,l),e.elementType=Zl,e.lanes=o,e;case cs:return pl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ss:i=10;break e;case as:i=9;break e;case Xo:i=11;break e;case Zo:i=14;break e;case qe:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return t=Ce(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function _t(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function pl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=cs,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function Kl(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pd(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ji(e,t,n,r,l,o,i,u,s){return e=new Pd(e,t,n,u,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mi(o),e}function Td(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lc)}catch(e){console.error(e)}}lc(),ls.exports=Se;var Od=ls.exports,oc,Hu=Od;oc=Hu.createRoot,Hu.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var Md={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Id=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),yt=(e,t)=>{const n=le.forwardRef(({color:r="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:u="",children:s,...c},h)=>le.createElement("svg",{ref:h,...Md,width:l,height:l,stroke:r,strokeWidth:i?Number(o)*24/Number(l):o,className:["lucide",`lucide-${Id(e)}`,u].join(" "),...c},[...t.map(([m,p])=>le.createElement(m,p)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Dd=yt("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fd=yt("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ao=yt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ud=yt("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $d=yt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ad=yt("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Vd=yt("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bd=yt("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),Wd=({onClick:e,disabled:t})=>w.jsxs("button",{onClick:e,disabled:t,className:`gradient-bg text-white font-bold py-4 px-8 rounded-full + flex items-center justify-center space-x-2 transition-all + disabled:opacity-50 disabled:cursor-not-allowed + shadow-lg hover:shadow-xl transform hover:-translate-y-1`,children:[w.jsx(Ud,{className:"h-5 w-5"}),w.jsx("span",{children:"Начать тест"})]}),Hd=({serverInfo:e,visible:t})=>!t||!e?null:w.jsxs("div",{className:`mb-8 flex items-center justify-center bg-gray-50 p-4 rounded-lg w-full max-w-md + border border-gray-100 shadow-sm animate-fadeIn`,children:[w.jsx(Ad,{className:"h-5 w-5 text-blue-600 mr-3"}),w.jsxs("div",{children:[w.jsx("div",{className:"font-medium text-gray-800",children:e.name}),w.jsx("div",{className:"text-sm text-gray-600",children:e.location})]})]}),Qd=({value:e,visible:t})=>{if(!t)return null;const n=r=>r===null?"text-gray-400":r<20?"text-green-500":r<50?"text-yellow-500":"text-red-500";return w.jsxs("div",{className:"flex flex-col items-center p-4 animate-fadeIn",children:[w.jsxs("div",{className:"flex items-center mb-2",children:[w.jsx(Dd,{className:`h-5 w-5 mr-2 ${n(e)}`}),w.jsx("span",{className:"text-gray-700 font-medium",children:"Ping"})]}),w.jsx("div",{className:`text-3xl font-bold ${n(e)}`,children:e!==null?`${e} ms`:"--"})]})},Kd=({value:e,label:t,visible:n})=>{const r=le.useRef(null);return le.useEffect(()=>{if(!n||!r.current||e===null)return;const l=r.current,o=l.getContext("2d");if(!o)return;const i=l.width/2,u=l.height/2,s=Math.min(i,u)-10;o.clearRect(0,0,l.width,l.height),o.beginPath(),o.arc(i,u,s,Math.PI,2*Math.PI,!1),o.lineWidth=15,o.strokeStyle="#e5e7eb",o.stroke();const c=Math.min(e/100,1),h=Math.PI+c*Math.PI;o.beginPath(),o.arc(i,u,s,Math.PI,h,!1),o.lineWidth=15;let m;c<.3?(m=o.createLinearGradient(0,0,l.width,0),m.addColorStop(0,"#f44336"),m.addColorStop(1,"#ff9800")):c<.7?(m=o.createLinearGradient(0,0,l.width,0),m.addColorStop(0,"#ff9800"),m.addColorStop(1,"#4caf50")):(m=o.createLinearGradient(0,0,l.width,0),m.addColorStop(0,"#4caf50"),m.addColorStop(1,"#3861FB")),o.strokeStyle=m,o.stroke()},[e,n]),n?w.jsxs("div",{className:"flex flex-col items-center animate-fadeIn",children:[w.jsxs("div",{className:"flex items-center mb-2",children:[t==="Download"?w.jsx(Ao,{className:"h-5 w-5 text-blue-600 mr-2"}):w.jsx(Vd,{className:"h-5 w-5 text-green-600 mr-2"}),w.jsx("span",{className:"text-gray-700 font-medium",children:t})]}),w.jsxs("div",{className:"relative",children:[w.jsx("canvas",{ref:r,width:200,height:100,className:"mb-2"}),w.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:w.jsxs("div",{className:"text-center",children:[w.jsx("div",{className:"text-3xl font-bold text-gray-800",children:e!==null?`${e.toFixed(1)}`:"--"}),w.jsx("div",{className:"text-sm text-gray-600",children:"Mbps"})]})})]})]}):null},Gd=({message:e,onRetry:t})=>w.jsxs("div",{className:"flex flex-col items-center justify-center p-8 animate-fadeIn",children:[w.jsxs("div",{className:"flex items-center text-red-500 mb-4",children:[w.jsx(Fd,{className:"h-8 w-8 mr-2"}),w.jsx("h3",{className:"text-xl font-bold",children:"Error"})]}),w.jsx("p",{className:"text-gray-700 mb-8 text-center max-w-md",children:e}),w.jsxs("button",{onClick:t,className:`bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-full + flex items-center space-x-2 transition-all shadow-md`,children:[w.jsx($d,{className:"h-4 w-4"}),w.jsx("span",{children:"Try Again"})]})]});var $=(e=>(e.IDLE="idle",e.SERVER_SELECTION="server_selection",e.CONNECTING="connecting",e.PING_TEST="ping_test",e.DOWNLOAD_TEST="download_test",e.ERROR="error",e))($||{});const Qu=[{id:"sv1",name:"FastEdge Server",location:"New York, USA",distance:25},{id:"sv2",name:"CloudNet Server",location:"London, UK",distance:78},{id:"sv3",name:"SpeedServer",location:"Paris, France",distance:32},{id:"sv4",name:"NetFast",location:"Tokyo, Japan",distance:103},{id:"sv5",name:"RapidEdge",location:"Moscow, Russia",distance:18},{id:"sv6",name:"QuickNode",location:"Berlin, Germany",distance:45},{id:"sv7",name:"FlashNet",location:"São Paulo, Brazil",distance:67}],Yd=()=>{const e=Math.floor(Math.random()*Qu.length);return Qu[e]},Xd=()=>Math.floor(Math.random()*31)+10,Zd=e=>{const t=Math.random()*10+5;return e+t},Jd=()=>{const[e,t]=le.useState($.IDLE),[n,r]=le.useState(null),[l,o]=le.useState(null),[i,u]=le.useState(null),s=le.useCallback(()=>{t($.IDLE),r(null),o(null),u(null)},[]),c=le.useCallback(()=>{t($.SERVER_SELECTION),setTimeout(()=>{const h=Yd();r(h),t($.CONNECTING),setTimeout(()=>{t($.PING_TEST),setTimeout(()=>{const m=Xd();o(m),t($.DOWNLOAD_TEST);let p=0;const g=setInterval(()=>{p=Zd(p),u(p),p>30&&(clearInterval(g),t($.ERROR))},200);setTimeout(()=>{clearInterval(g),t($.ERROR)},4e3)},1500)},1200)},1500)},[]);return{status:e,serverInfo:n,pingValue:l,downloadSpeed:i,startTest:c,resetTest:s}},qd=()=>{const{status:e,serverInfo:t,pingValue:n,downloadSpeed:r,startTest:l,resetTest:o}=Jd(),i=()=>{switch(e){case $.IDLE:return w.jsxs("div",{className:"flex flex-col items-center justify-center p-8",children:[w.jsx("h2",{className:"text-2xl font-bold text-gray-800 mb-6",children:"Проверьте скорость вашего интернета автоматически"}),w.jsx("p",{className:"text-gray-600 mb-8 text-center max-w-md",children:"Нажмите кнопку ниже, чтобы измерить производительность вашего подключения с помощью нашего продвинутого сервиса тестирования."}),w.jsx(Wd,{onClick:l,disabled:!1})]});case $.SERVER_SELECTION:case $.CONNECTING:case $.PING_TEST:case $.DOWNLOAD_TEST:return w.jsxs("div",{className:"flex flex-col items-center justify-center p-8",children:[w.jsx(Hd,{serverInfo:t,visible:e!==$.SERVER_SELECTION}),w.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-center gap-8 w-full",children:[w.jsx(Qd,{value:n,visible:e===$.PING_TEST||e===$.DOWNLOAD_TEST}),w.jsx(Kd,{value:r,visible:e===$.DOWNLOAD_TEST,label:"Скорость"})]}),w.jsxs("div",{className:"mt-8 text-center text-gray-600",children:[e===$.SERVER_SELECTION&&"Выбор оптимального сервера...",e===$.CONNECTING&&"Установка соединения...",e===$.PING_TEST&&"Измерение задержки...",e===$.DOWNLOAD_TEST&&"Тестирование скорости загрузки..."]})]});case $.ERROR:return w.jsx(Gd,{message:"Тест прерван, повторите позже",onRetry:o});default:return null}};return w.jsxs("div",{className:"bg-white rounded-lg shadow-lg w-full max-w-4xl transition-all duration-500",children:[i(),w.jsxs("div",{className:"border-t border-gray-100 p-8",children:[w.jsx("h3",{className:"text-xl font-semibold text-gray-800 mb-6 text-center",children:"Ручная проверка"}),w.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[w.jsxs("a",{href:"https://proof.ovh.net/files/1Gb.dat",className:"gradient-bg text-white font-semibold py-3 px-6 rounded-lg flex items-center justify-center space-x-2 transition-all hover:opacity-90",target:"_blank",rel:"noopener noreferrer",children:[w.jsx(Ao,{className:"h-4 w-4"}),w.jsx("span",{children:"Тест файл 1 GB"})]}),w.jsxs("a",{href:"https://proof.ovh.net/files/10Gb.dat",className:"gradient-bg text-white font-semibold py-3 px-6 rounded-lg flex items-center justify-center space-x-2 transition-all hover:opacity-90",target:"_blank",rel:"noopener noreferrer",children:[w.jsx(Ao,{className:"h-4 w-4"}),w.jsx("span",{children:"Тест файл 10 GB"})]})]})]})]})},bd=()=>w.jsx("header",{className:"bg-white shadow-sm",children:w.jsx("div",{className:"container mx-auto px-4 py-4",children:w.jsxs("div",{className:"flex items-center space-x-2",children:[w.jsx(Bd,{className:"h-6 w-6 text-blue-600"}),w.jsx("span",{className:"text-xl font-bold text-gray-800",children:"SpeedCheck"})]})})}),ep=()=>w.jsx("footer",{className:"bg-gray-800 text-gray-300 py-8",children:w.jsxs("div",{className:"container mx-auto px-4",children:[w.jsxs("div",{className:"text-center",children:[w.jsx("h3",{className:"text-lg font-semibold mb-3",children:"SpeedRyzen LLC"}),w.jsx("p",{className:"text-sm",children:"Ryzen Avenue, block 25, Server City, USA"})]}),w.jsx("div",{className:"border-t border-gray-700 mt-8 pt-4 text-center text-sm",children:w.jsx("p",{children:"© 2025 SpeedRyzen LLC. All rights reserved."})})]})}),Ku=["🚀","⚡","📡","🌐","💫","✨"],tp=({emoji:e,style:t})=>w.jsx("div",{className:"floating-emoji",style:t,children:e}),np=()=>{const[e,t]=le.useState([]);return le.useEffect(()=>{const n=Array.from({length:8},(r,l)=>w.jsx(tp,{emoji:Ku[l%Ku.length],style:{left:`${Math.random()*100}%`,top:`${Math.random()*100}%`,animationDelay:`${Math.random()*2}s`}},l));t(n)},[]),w.jsx("div",{className:"fixed inset-0 pointer-events-none z-0",children:e})};function rp(){return w.jsxs("div",{className:"min-h-screen flex flex-col bg-gray-50",children:[w.jsx(np,{}),w.jsx(bd,{}),w.jsx("main",{className:"flex-grow flex items-center justify-center p-4",children:w.jsx(qd,{})}),w.jsx(ep,{})]})}oc(document.getElementById("root")).render(w.jsx(le.StrictMode,{children:w.jsx(rp,{})})); diff --git a/sni-templates/speedtest/assets/style.css b/sni-templates/speedtest/assets/style.css new file mode 100644 index 0000000..09e356c --- /dev/null +++ b/sni-templates/speedtest/assets/style.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-0{z-index:0}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-4xl{max-width:56rem}.max-w-md{max-width:28rem}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(56 97 251 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-blue-600{--tw-text-opacity: 1;color:rgb(56 97 251 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-500{transition-duration:.5s}:root{--primary-color: #3861FB;--accent-color: #36E4DA;--bg-color: #F9FAFB;--text-color: #1F2937}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;background-color:var(--bg-color);color:var(--text-color);overflow-x:hidden}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .5s ease-out forwards}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.animate-pulse-slow{animation:pulse 3s infinite ease-in-out}@keyframes float{0%{transform:translateY(0) rotate(0)}50%{transform:translateY(-20px) rotate(10deg)}to{transform:translateY(0) rotate(0)}}.floating-emoji{position:fixed;font-size:2rem;pointer-events:none;z-index:50;animation:float 3s ease-in-out infinite;opacity:.7}.floating-emoji:nth-child(2n){animation-duration:3.5s;animation-delay:.3s}.floating-emoji:nth-child(3n){animation-duration:4s;animation-delay:.7s}.floating-emoji:nth-child(4n){animation-duration:4.5s;animation-delay:1s}@keyframes gradient{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.gradient-bg{background:linear-gradient(-45deg,#3861fb,#36e4da,#2d4ccc,#2bbeb5);background-size:400% 400%;animation:gradient 15s ease infinite}.hover\:-translate-y-1:hover{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 204 / var(--tw-bg-opacity))}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\:flex-row{flex-direction:row}}@media (min-width: 768px){.md\:flex-row{flex-direction:row}} diff --git a/sni-templates/speedtest/favicon-96x96.png b/sni-templates/speedtest/favicon-96x96.png new file mode 100644 index 0000000..3c19785 Binary files /dev/null and b/sni-templates/speedtest/favicon-96x96.png differ diff --git a/sni-templates/speedtest/favicon.ico b/sni-templates/speedtest/favicon.ico new file mode 100644 index 0000000..5ffe920 Binary files /dev/null and b/sni-templates/speedtest/favicon.ico differ diff --git a/sni-templates/speedtest/favicon.svg b/sni-templates/speedtest/favicon.svg new file mode 100644 index 0000000..591d5da --- /dev/null +++ b/sni-templates/speedtest/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/sni-templates/speedtest/index.html b/sni-templates/speedtest/index.html new file mode 100644 index 0000000..2c8fc7d --- /dev/null +++ b/sni-templates/speedtest/index.html @@ -0,0 +1,19 @@ + + + + + + SpeedCheck - Network Speed Test + + + + + + + + + + +
+ + diff --git a/sni-templates/speedtest/site.webmanifest b/sni-templates/speedtest/site.webmanifest new file mode 100644 index 0000000..ccf313a --- /dev/null +++ b/sni-templates/speedtest/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "MyWebSite", + "short_name": "MySite", + "icons": [ + { + "src": "/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} \ No newline at end of file diff --git a/sni-templates/speedtest/web-app-manifest-192x192.png b/sni-templates/speedtest/web-app-manifest-192x192.png new file mode 100644 index 0000000..429592f Binary files /dev/null and b/sni-templates/speedtest/web-app-manifest-192x192.png differ diff --git a/sni-templates/speedtest/web-app-manifest-512x512.png b/sni-templates/speedtest/web-app-manifest-512x512.png new file mode 100644 index 0000000..e60236f Binary files /dev/null and b/sni-templates/speedtest/web-app-manifest-512x512.png differ diff --git a/src/locales/en.json b/src/locales/en.json index e7ae810..d10d276 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -735,12 +735,14 @@ "settings": { "title": "Settings", "tabSystem": "System", + "tabMasking": "Panel Masking", "tabSubscription": "Subscription", "tabSecurity": "Security", "tabBackup": "Backups", "tabMaintenance": "Maintenance", "tabMigration": "Migration", "tabSystemDesc": "Performance, caching, rate limits and SSH pool.", + "tabMaskingDesc": "Domain-root decoy page and sni-templates presets.", "tabSubscriptionDesc": "Branding, buttons and client app behavior.", "tabSecurityDesc": "Administrator, 2FA, API keys, MCP and webhooks.", "tabBackupDesc": "Local and S3 backups, schedule, restore.", @@ -796,10 +798,24 @@ "nodeAuth": "Node Auth API", "nodeAuthInsecure": "Allow self-signed certificates", "nodeAuthInsecureHint": "Enable if panel uses HTTP or self-signed SSL. Nodes will accept any certificate when connecting to auth API. Disable for production with valid SSL.", + "panelMasking": "Panel Masking", "homepage": "Domain Decoy", "homepageHint": "What to serve at the domain root (https://domain/). Instead of a giveaway redirect to /panel, visitors see a regular page.", + "homepageCurrentMode": "Current mode", + "homepageTemplatesFound": "Templates", + "homepageRootPath": "Domain root", + "homepageModeValue": { + "nginx": "nginx decoy", + "custom": "Custom HTML page", + "template": "Template" + }, "homepageModeNginx": "nginx welcome page (decoy)", "homepageModeCustom": "Custom HTML page", + "homepageModeTemplate": "Template from sni-templates", + "homepageTemplate": "Template", + "homepageTemplateHint": "The selected template will be shown at https://domain/.", + "homepageTemplateInvalid": "Selected template is not available", + "homepageNoTemplates": "No templates found in sni-templates/.", "homepageNoCustom": "no file uploaded", "homepageSaveMode": "Save mode", "homepageUpload": "Upload HTML file", diff --git a/src/locales/ru.json b/src/locales/ru.json index 8d36960..c4efddb 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -735,12 +735,14 @@ "settings": { "title": "Настройки", "tabSystem": "Система", + "tabMasking": "Маскировка панели", "tabSubscription": "Подписка", "tabSecurity": "Безопасность", "tabBackup": "Бэкапы", "tabMaintenance": "Обслуживание", "tabMigration": "Миграция", "tabSystemDesc": "Производительность, кэш, лимиты и SSH-пул.", + "tabMaskingDesc": "Заглушка на корне домена и шаблоны из sni-templates.", "tabSubscriptionDesc": "Внешний вид, кнопки и поведение клиентских приложений.", "tabSecurityDesc": "Администратор, 2FA, API-ключи, MCP и вебхуки.", "tabBackupDesc": "Локальные и S3 бэкапы, расписание, восстановление.", @@ -796,10 +798,24 @@ "nodeAuth": "Node Auth API", "nodeAuthInsecure": "Разрешить self-signed сертификаты", "nodeAuthInsecureHint": "Включите, если панель использует HTTP или self-signed SSL. Ноды будут принимать любой сертификат при подключении к auth API. Отключите для production с валидным SSL.", + "panelMasking": "Маскировка панели", "homepage": "Маскировка домена", "homepageHint": "Что отдавать по корню домена (https://домен/). Вместо палящего редиректа на /panel посетитель видит обычную страничку.", + "homepageCurrentMode": "Текущий режим", + "homepageTemplatesFound": "Шаблоны", + "homepageRootPath": "Корень домена", + "homepageModeValue": { + "nginx": "nginx-заглушка", + "custom": "Своя HTML страница", + "template": "Шаблон" + }, "homepageModeNginx": "Имитация nginx (welcome page)", "homepageModeCustom": "Своя HTML страница", + "homepageModeTemplate": "Шаблон из sni-templates", + "homepageTemplate": "Шаблон", + "homepageTemplateHint": "Выбранный шаблон будет показан на https://домен/.", + "homepageTemplateInvalid": "Выбранный шаблон недоступен", + "homepageNoTemplates": "Шаблоны не найдены в sni-templates/.", "homepageNoCustom": "файл не загружен", "homepageSaveMode": "Сохранить режим", "homepageUpload": "Загрузить HTML файл", diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 5774133..a875590 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -735,12 +735,14 @@ "settings": { "title": "设置", "tabSystem": "系统", + "tabMasking": "面板伪装", "tabSubscription": "订阅", "tabSecurity": "安全", "tabBackup": "备份", "tabMaintenance": "维护", "tabMigration": "迁移", "tabSystemDesc": "性能、缓存、速率限制和 SSH 连接池。", + "tabMaskingDesc": "域名根路径伪装页和 sni-templates 预设。", "tabSubscriptionDesc": "品牌、按钮和客户端应用行为。", "tabSecurityDesc": "管理员、2FA、API 密钥、MCP 和 Webhook。", "tabBackupDesc": "本地和 S3 备份、计划、恢复。", @@ -796,10 +798,24 @@ "nodeAuth": "节点认证 API", "nodeAuthInsecure": "允许自签名证书", "nodeAuthInsecureHint": "如果面板使用 HTTP 或自签名 SSL,请启用。节点连接认证 API 时将接受任何证书。生产环境使用有效 SSL 时请禁用。", + "panelMasking": "面板伪装", "homepage": "域名伪装页", "homepageHint": "域名根路径(https://domain/)提供的内容。访问者看到普通页面,而不是暴露性的 /panel 重定向。", + "homepageCurrentMode": "当前模式", + "homepageTemplatesFound": "模板", + "homepageRootPath": "域名根路径", + "homepageModeValue": { + "nginx": "nginx 伪装页", + "custom": "自定义 HTML 页面", + "template": "模板" + }, "homepageModeNginx": "nginx 欢迎页(伪装)", "homepageModeCustom": "自定义 HTML 页面", + "homepageModeTemplate": "来自 sni-templates 的模板", + "homepageTemplate": "模板", + "homepageTemplateHint": "所选模板会显示在 https://domain/。", + "homepageTemplateInvalid": "所选模板不可用", + "homepageNoTemplates": "在 sni-templates/ 中未找到模板。", "homepageNoCustom": "未上传文件", "homepageSaveMode": "保存模式", "homepageUpload": "上传 HTML 文件", diff --git a/src/models/settingsModel.js b/src/models/settingsModel.js index 0b94984..d37db32 100644 --- a/src/models/settingsModel.js +++ b/src/models/settingsModel.js @@ -133,8 +133,9 @@ const settingsSchema = new mongoose.Schema({ }, homepage: { - mode: { type: String, enum: ['nginx', 'custom'], default: 'nginx' }, + mode: { type: String, enum: ['nginx', 'custom', 'template'], default: 'nginx' }, customHtml: { type: Buffer, default: null }, + templateSlug: { type: String, default: '' }, }, routing: { diff --git a/src/routes/panel/settings.js b/src/routes/panel/settings.js index 5024066..0950f80 100644 --- a/src/routes/panel/settings.js +++ b/src/routes/panel/settings.js @@ -92,6 +92,8 @@ router.get('/settings', async (req, res) => { hasCustom: homepageService.hasCustom(), customSize: homepageService.getCustomSize(), maxBytes: homepageService.MAX_CUSTOM_BYTES, + templateSlug: homepageService.getTemplateSlug() || settings?.homepage?.templateSlug || '', + templates: homepageService.listTemplates(), }; render(res, 'settings', { @@ -293,11 +295,20 @@ router.post('/settings', async (req, res) => { // Homepage mode (decoy/custom). File upload has its own endpoint. let homepageModeChanged = null; + let homepageTemplateChanged = ''; if (req.body['_homepageSettings'] !== undefined) { - const VALID_MODES = ['nginx', 'custom']; + const VALID_MODES = ['nginx', 'custom', 'template']; const mode = String(req.body['homepage.mode'] || 'nginx'); const safeMode = VALID_MODES.includes(mode) ? mode : 'nginx'; updates['homepage.mode'] = safeMode; + if (safeMode === 'template') { + const templateSlug = String(req.body['homepage.templateSlug'] || '').trim(); + if (!homepageService.isValidTemplateSlug(templateSlug)) { + throw new Error(res.locals.t?.('settings.homepageTemplateInvalid') || 'Selected template is not available'); + } + updates['homepage.templateSlug'] = templateSlug; + homepageTemplateChanged = templateSlug; + } homepageModeChanged = safeMode; } @@ -364,7 +375,7 @@ router.post('/settings', async (req, res) => { await sshPool.reloadSettings(); if (homepageModeChanged) { - await homepageService.setMode(homepageModeChanged); + await homepageService.setMode(homepageModeChanged, homepageTemplateChanged); } logger.info(`[Panel] Settings updated`); @@ -372,7 +383,8 @@ router.post('/settings', async (req, res) => { res.redirect('/panel/settings?message=' + encodeURIComponent(res.locals.t?.('settings.saved') || 'Settings saved')); } catch (error) { logger.error('[Panel] Settings save error:', error.message); - res.redirect('/panel/settings?error=' + encodeURIComponent(`${res.locals.t?.('common.error') || 'Error'}: ${error.message}`)); + const tabParam = req.body?._homepageSettings !== undefined ? 'tab=masking&' : ''; + res.redirect('/panel/settings?' + tabParam + 'error=' + encodeURIComponent(`${res.locals.t?.('common.error') || 'Error'}: ${error.message}`)); } }); @@ -651,20 +663,20 @@ router.post('/settings/homepage/upload', (req, res) => { const msg = err.code === 'LIMIT_FILE_SIZE' ? (res.locals.t?.('settings.homepageFileTooLarge') || 'File too large (max {bytes} bytes)').replace('{bytes}', homepageService.MAX_CUSTOM_BYTES) : err.message; - return res.redirect('/panel/settings?tab=security&error=' + encodeURIComponent(msg)); + return res.redirect('/panel/settings?tab=masking&error=' + encodeURIComponent(msg)); } if (!req.file) { - return res.redirect('/panel/settings?tab=security&error=' + encodeURIComponent(res.locals.t?.('settings.homepageNoFile') || 'No file uploaded')); + return res.redirect('/panel/settings?tab=masking&error=' + encodeURIComponent(res.locals.t?.('settings.homepageNoFile') || 'No file uploaded')); } try { await homepageService.setCustom(req.file.buffer); await Settings.update({ 'homepage.mode': 'custom' }); await homepageService.setMode('custom'); logger.info(`[Panel] Homepage custom HTML uploaded (${req.file.buffer.length} bytes) by ${req.session.adminUsername}`); - return res.redirect('/panel/settings?tab=security&message=' + encodeURIComponent(res.locals.t?.('settings.homepageUpdated') || 'Homepage updated')); + return res.redirect('/panel/settings?tab=masking&message=' + encodeURIComponent(res.locals.t?.('settings.homepageUpdated') || 'Homepage updated')); } catch (error) { logger.error(`[Panel] Homepage upload error: ${error.message}`); - return res.redirect('/panel/settings?tab=security&error=' + encodeURIComponent(error.message)); + return res.redirect('/panel/settings?tab=masking&error=' + encodeURIComponent(error.message)); } }); }); @@ -675,10 +687,10 @@ router.post('/settings/homepage/reset', async (req, res) => { await homepageService.clearCustom(); await Settings.update({ 'homepage.mode': 'nginx' }); logger.info(`[Panel] Homepage reset to default by ${req.session.adminUsername}`); - return res.redirect('/panel/settings?tab=security&message=' + encodeURIComponent(res.locals.t?.('settings.homepageResetDone') || 'Homepage reset to default')); + return res.redirect('/panel/settings?tab=masking&message=' + encodeURIComponent(res.locals.t?.('settings.homepageResetDone') || 'Homepage reset to default')); } catch (error) { logger.error(`[Panel] Homepage reset error: ${error.message}`); - return res.redirect('/panel/settings?tab=security&error=' + encodeURIComponent(error.message)); + return res.redirect('/panel/settings?tab=masking&error=' + encodeURIComponent(error.message)); } }); diff --git a/src/services/homepageService.js b/src/services/homepageService.js index 2a49b5a..9f48396 100644 --- a/src/services/homepageService.js +++ b/src/services/homepageService.js @@ -4,19 +4,35 @@ * Modes: * - 'nginx' : built-in fake nginx welcome page (mask the panel) * - 'custom' : user-uploaded HTML stored in settings + * - 'template': static decoy site from sni-templates/ * * Hot path (`respond`) only touches in-memory state — no DB or disk - * reads per request. Cache is rebuilt on init() and on setMode/setCustom/clearCustom. + * reads for HTML. Cache is rebuilt on init() and on setMode/setCustom/clearCustom. */ const crypto = require('crypto'); +const fs = require('fs'); +const path = require('path'); const logger = require('../utils/logger'); // 256 KB is plenty for a static landing/decoy page and bounds heap usage. const MAX_CUSTOM_BYTES = 256 * 1024; +const MAX_TEMPLATE_HTML_BYTES = 512 * 1024; const FAKE_SERVER_HEADER = 'nginx/1.24.0'; +const DEFAULT_TEMPLATES_DIR = path.join(__dirname, '../../sni-templates'); +const TEMPLATE_SLUG_RE = /^[A-Za-z0-9][A-Za-z0-9_-]*$/; +const ROOT_TEMPLATE_ASSETS = new Set([ + '/apple-touch-icon.png', + '/favicon.ico', + '/favicon.svg', + '/favicon-96x96.png', + '/site.webmanifest', + '/vite.svg', + '/web-app-manifest-192x192.png', + '/web-app-manifest-512x512.png', +]); // Verbatim nginx 1.24 (Debian/Ubuntu) welcome page — kept byte-for-byte // so masking is convincing. Do not pretty-print or reformat. @@ -55,6 +71,9 @@ let state = { etag: NGINX_ETAG, hasCustom: false, customSize: 0, + templateSlug: '', + templateRoot: null, + templateRootReal: null, }; function computeEtag(buf) { @@ -79,6 +98,93 @@ function normalizeCustomBuffer(value) { return buf; } +function getTemplatesDir() { + return process.env.SNI_TEMPLATES_DIR || DEFAULT_TEMPLATES_DIR; +} + +function isSafeTemplateSlug(value) { + const slug = String(value || '').trim(); + return TEMPLATE_SLUG_RE.test(slug) ? slug : ''; +} + +function getTemplateInfo(slug) { + const safeSlug = isSafeTemplateSlug(slug); + if (!safeSlug) return null; + + const root = path.resolve(getTemplatesDir()); + const templateRoot = path.resolve(root, safeSlug); + if (!templateRoot.startsWith(root + path.sep)) return null; + + const indexPath = path.join(templateRoot, 'index.html'); + let stat; + try { + stat = fs.statSync(indexPath); + } catch (_err) { + return null; + } + if (!stat.isFile() || stat.size <= 0 || stat.size > MAX_TEMPLATE_HTML_BYTES) { + return null; + } + + let templateRootReal; + try { + templateRootReal = fs.realpathSync(templateRoot); + } catch (_err) { + return null; + } + + return { + slug: safeSlug, + label: safeSlug, + indexPath, + root: templateRoot, + rootReal: templateRootReal, + size: stat.size, + }; +} + +function listTemplates() { + const root = path.resolve(getTemplatesDir()); + let entries; + try { + entries = fs.readdirSync(root, { withFileTypes: true }); + } catch (_err) { + return []; + } + + return entries + .filter(entry => entry.isDirectory()) + .map(entry => getTemplateInfo(entry.name)) + .filter(Boolean) + .sort((a, b) => a.slug.localeCompare(b.slug, undefined, { sensitivity: 'base' })); +} + +function isValidTemplateSlug(slug) { + return !!getTemplateInfo(slug); +} + +function loadTemplate(slug) { + const template = getTemplateInfo(slug); + if (!template) return null; + + let body; + try { + body = fs.readFileSync(template.indexPath); + } catch (err) { + logger.warn(`[Homepage] failed to read template ${template.slug}: ${err.message}`); + return null; + } + if (body.length === 0 || body.length > MAX_TEMPLATE_HTML_BYTES) { + return null; + } + + return { + ...template, + body, + etag: computeEtag(body), + }; +} + function setNginxState(customBuf = null) { state = { mode: 'nginx', @@ -86,6 +192,9 @@ function setNginxState(customBuf = null) { etag: NGINX_ETAG, hasCustom: !!customBuf, customSize: customBuf ? customBuf.length : 0, + templateSlug: '', + templateRoot: null, + templateRootReal: null, }; } @@ -96,19 +205,36 @@ function setCustomState(buf) { etag: computeEtag(buf), hasCustom: true, customSize: buf.length, + templateSlug: '', + templateRoot: null, + templateRootReal: null, + }; +} + +function setTemplateState(template, customBuf = null) { + state = { + mode: 'template', + body: template.body, + etag: template.etag, + hasCustom: !!customBuf, + customSize: customBuf ? customBuf.length : 0, + templateSlug: template.slug, + templateRoot: template.root, + templateRootReal: template.rootReal, }; } /** - * Initialize the in-memory cache. Reads Settings.homepage.mode and the - * custom HTML payload (if any). Falls back to 'nginx' if mode='custom' but - * the payload is missing or invalid. + * Initialize the in-memory cache. Reads Settings.homepage.mode and payload + * data. Falls back to 'nginx' if the selected custom/template payload is + * missing or invalid. */ async function init() { try { const Settings = require('../models/settingsModel'); const settings = await Settings.get(); - const mode = settings?.homepage?.mode === 'custom' ? 'custom' : 'nginx'; + const rawMode = settings?.homepage?.mode; + const mode = ['custom', 'template'].includes(rawMode) ? rawMode : 'nginx'; const customBuf = normalizeCustomBuffer(settings?.homepage?.customHtml); if (mode === 'custom') { @@ -120,6 +246,19 @@ async function init() { await Settings.update({ 'homepage.mode': 'nginx' }); logger.warn('[Homepage] mode=custom but no valid customHtml found; falling back to nginx'); } + if (mode === 'template') { + const template = loadTemplate(settings?.homepage?.templateSlug); + if (template) { + setTemplateState(template, customBuf); + logger.info(`[Homepage] Loaded template ${template.slug} (${template.size} bytes)`); + return; + } + await Settings.update({ + 'homepage.mode': 'nginx', + 'homepage.templateSlug': '', + }); + logger.warn('[Homepage] mode=template but selected template is invalid; falling back to nginx'); + } setNginxState(customBuf); logger.info('[Homepage] Serving fake nginx welcome page'); } catch (err) { @@ -129,11 +268,11 @@ async function init() { } /** - * Switch the active mode. If 'custom' is requested but no custom HTML exists, - * revert persisted mode to nginx so the next restart stays consistent. + * Switch the active mode. Invalid custom/template requests revert persisted + * mode to nginx so the next restart stays consistent. */ -async function setMode(mode) { - if (mode !== 'nginx' && mode !== 'custom') return; +async function setMode(mode, templateSlug = '') { + if (!['nginx', 'custom', 'template'].includes(mode)) return; const Settings = require('../models/settingsModel'); const settings = await Settings.get(); @@ -145,6 +284,26 @@ async function setMode(mode) { return; } + if (mode === 'template') { + const requestedSlug = templateSlug || settings?.homepage?.templateSlug; + const template = loadTemplate(requestedSlug); + if (!template) { + await Settings.update({ + 'homepage.mode': 'nginx', + 'homepage.templateSlug': '', + }); + setNginxState(customBuf); + logger.warn('[Homepage] setMode(template) requested but template is invalid; staying on nginx'); + return; + } + await Settings.update({ + 'homepage.mode': 'template', + 'homepage.templateSlug': template.slug, + }); + setTemplateState(template, customBuf); + return; + } + if (!customBuf) { await Settings.update({ 'homepage.mode': 'nginx' }); setNginxState(); @@ -203,6 +362,81 @@ function getCustomSize() { return state.customSize; } +function getTemplateSlug() { + return state.templateSlug || ''; +} + +function normalizeRequestPath(requestPath) { + let rawPath = String(requestPath || '').split('?')[0]; + if (!rawPath.startsWith('/')) rawPath = `/${rawPath}`; + if (rawPath.includes('\0')) return null; + + let decoded; + try { + decoded = decodeURIComponent(rawPath); + } catch (_err) { + return null; + } + if (decoded.includes('\0')) return null; + + const normalized = path.posix.normalize(decoded); + if (normalized !== decoded) return null; + return normalized; +} + +function resolveTemplateAssetPath(requestPath) { + if (state.mode !== 'template' || !state.templateRoot || !state.templateRootReal) { + return null; + } + + const normalized = normalizeRequestPath(requestPath); + if (!normalized) return null; + + let relativePath = ''; + if (normalized.startsWith('/assets/')) { + relativePath = normalized.slice(1); + } else if (ROOT_TEMPLATE_ASSETS.has(normalized)) { + relativePath = normalized.slice(1); + } else { + return null; + } + + const candidate = path.resolve(state.templateRoot, relativePath); + const root = path.resolve(state.templateRoot); + if (!candidate.startsWith(root + path.sep)) return null; + + let stat; + let realPath; + try { + stat = fs.statSync(candidate); + realPath = fs.realpathSync(candidate); + } catch (_err) { + return null; + } + if (!stat.isFile()) return null; + if (realPath !== state.templateRootReal && !realPath.startsWith(state.templateRootReal + path.sep)) { + return null; + } + + return candidate; +} + +function serveTemplateAsset(req, res, next) { + const assetPath = resolveTemplateAssetPath(req.path); + if (!assetPath) { + if (typeof next === 'function') return next(); + res.status(404).end(); + return; + } + + res.setHeader('Server', FAKE_SERVER_HEADER); + res.setHeader('Cache-Control', 'public, max-age=86400'); + res.removeHeader('X-Powered-By'); + res.sendFile(assetPath, (err) => { + if (err && typeof next === 'function') next(err); + }); +} + /** * Express handler for `GET /` (and HEAD /). Serves the cached body with * masking headers and ETag-based 304 support. @@ -240,8 +474,14 @@ module.exports = { setCustom, clearCustom, respond, + serveTemplateAsset, hasCustom, getCustomSize, getMode, + getTemplateSlug, + listTemplates, + isValidTemplateSlug, + resolveTemplateAssetPath, MAX_CUSTOM_BYTES, + MAX_TEMPLATE_HTML_BYTES, }; diff --git a/views/partials/settings/masking.ejs b/views/partials/settings/masking.ejs new file mode 100644 index 0000000..6ebc5b0 --- /dev/null +++ b/views/partials/settings/masking.ejs @@ -0,0 +1,123 @@ + +<% + const hp = locals.homepageInfo || { mode: 'nginx', hasCustom: false, customSize: 0, maxBytes: 262144, templateSlug: '', templates: [] }; + const hpMaxKB = Math.round(hp.maxBytes / 1024); + const hpCustomKB = hp.customSize ? (hp.customSize / 1024).toFixed(1) : '0'; + const hpTemplates = Array.isArray(hp.templates) ? hp.templates : []; + const hpSelectedTemplate = hp.templateSlug || (hpTemplates[0] && hpTemplates[0].slug) || ''; +%> +
+
+
+
+
+
<%= t('settings.homepageCurrentMode') || 'Текущий режим' %>
+
<%= t(`settings.homepageModeValue.${hp.mode}`) || hp.mode %>
+
+
+
+
+
+
<%= t('settings.homepageTemplatesFound') || 'Шаблоны' %>
+
<%= hpTemplates.length %>
+
+
+
+
+
+
<%= t('settings.homepageRootPath') || 'Корень домена' %>
+
/
+
+
+
+ +
+
+

<%= t('settings.panelMasking') || 'Маскировка панели' %>

+
+
+

+ <%= t('settings.homepageHint') || 'Что отдавать по корню домена. Маскирует панель от сканеров: вместо редиректа на /panel посетитель видит обычную страничку.' %> +

+ +
+
+
+ + + + + + +
+ + + + <%= hpTemplates.length > 0 + ? (t('settings.homepageTemplateHint') || 'Выбранный шаблон будет показан на https://домен/.') + : (t('settings.homepageNoTemplates') || 'Шаблоны не найдены в sni-templates/.') %> + +
+ + +
+
+ +
+
+ +
+ + + <% if (hp.hasCustom) { %> + + <% } %> +
+ + <%= (t('settings.homepageUploadHint') || 'Максимум {kb} KB. После загрузки режим автоматически переключится на «Своя HTML».').replace('{kb}', hpMaxKB) %> + +
+ <% if (hp.hasCustom) { %> + + <% } %> +
+
+
+
+
diff --git a/views/partials/settings/security.ejs b/views/partials/settings/security.ejs index c1e8b37..66d8700 100644 --- a/views/partials/settings/security.ejs +++ b/views/partials/settings/security.ejs @@ -99,85 +99,6 @@ - <% - const hp = locals.homepageInfo || { mode: 'nginx', hasCustom: false, customSize: 0, maxBytes: 262144 }; - const hpMaxKB = Math.round(hp.maxBytes / 1024); - const hpCustomKB = hp.customSize ? (hp.customSize / 1024).toFixed(1) : '0'; - %> -
-
-

<%= t('settings.homepage') || 'Маскировка домена' %>

-
-
-

- <%= t('settings.homepageHint') || 'Что отдавать по корню домена. Маскирует панель от сканеров: вместо редиректа на /panel посетитель видит обычную страничку.' %> -

- -
-
-
- - - - - - -
-
- -
-
- -
- - - <% if (hp.hasCustom) { %> - - <% } %> -
- - <%= (t('settings.homepageUploadHint') || 'Максимум {kb} KB. После загрузки режим автоматически переключится на «Своя HTML».').replace('{kb}', hpMaxKB) %> - -
- <% if (hp.hasCustom) { %> - - <% } %> -
-
-
-
-

<%= t('settings.totpManagementTitle') || 'TOTP' %>

diff --git a/views/settings.ejs b/views/settings.ejs index 205c759..4c8c0d6 100644 --- a/views/settings.ejs +++ b/views/settings.ejs @@ -20,6 +20,7 @@ <% const settingsTabs = [ { id: 'system', icon: 'ti-settings', label: t('settings.tabSystem') || 'Система', desc: t('settings.tabSystemDesc') || 'Производительность, кэш, лимиты и SSH-пул.' }, + { id: 'masking', icon: 'ti-mask', label: t('settings.tabMasking') || 'Маскировка панели', desc: t('settings.tabMaskingDesc') || 'Заглушка на корне домена и шаблоны из sni-templates.' }, { id: 'subscription', icon: 'ti-link', label: t('settings.tabSubscription') || 'Подписка', desc: t('settings.tabSubscriptionDesc') || 'Внешний вид, кнопки и поведение клиентских приложений.' }, { id: 'security', icon: 'ti-shield-lock', label: t('settings.tabSecurity') || 'Безопасность', desc: t('settings.tabSecurityDesc') || 'Администратор, 2FA, API-ключи, MCP и вебхуки.' }, { id: 'backup', icon: 'ti-database-export', label: t('settings.tabBackup') || 'Бэкапы', desc: t('settings.tabBackupDesc') || 'Локальные и S3 бэкапы, расписание, восстановление.' }, @@ -58,6 +59,8 @@ <%- include('partials/settings/system') %> + <%- include('partials/settings/masking') %> + <%- include('partials/settings/subscription') %> <%- include('partials/settings/security') %>