PageSourceSearch

https://static.inworld.ai/0addc7b7/static/js/bootstrap.Yl9dpo2n.js

js inworld.ai collected 2026-09-24 08:36:30 UTC 585,943 bytes, 1,295 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/ttsBinaryProtocol.CEzNpHwu.js","static/js/vendor-core.6lta8LCj.js","static/js/vendor-mui-x.CmnfcHjQ.js","static/js/vendor-firebase.dbYXL2Q0.js","static/js/bootstrap.CBcx2s8D.js","static/js/authErrors.dZFD9UGX.js","static/js/App.DVmysEmP.js","static/css/App.BHdRWJw1.css"])))=>i.map(i=>d[i]);
2import{_ as an,d as jg,W as Xe,a as f,j as T,f as It,h as cn,g as Kr,R as Gf,c as zg,i as Vg}from"./vendor-core.6lta8LCj.js";import{_ as He,a as To,g as Ii,b as pa,u as Vn,d as Kg,T as Yg,c as un,e as qg,f as Qg,h as Zi,i as oa,j as Oi,s as Ze,m as Ai,n as Qn,k as lc,l as Wn,P as Xg,o as Hf,p as Jg,C as Zg,q as em,r as wi,t as tm,v as Wf,w as Xn,x as ke,y as mt,z as cc,A as rm,B as nm,D as om,E as Aa,F as am,G as im,H as sm,I as lm,J as cm,K as um,L as dm,M as fm,N as hm,O as pm,Q as gm,R as mm,S as _m,U as ym,V as Em,W as vm,X as Tm,Y as Cm,Z as Rm,$ as Sm,a0 as bm,a1 as Im,a2 as uc,a3 as Om,a4 as El,a5 as Us,a6 as Kn,a7 as vl,a8 as Am,a9 as wm,aa as jf,ab as Dm,ac as zf,ad as Tl,ae as Nm,af as km,ag as Vf,ah as Kf,ai as xm,aj as Mm,ak as Lm,al as Di,am as Pm,an as Um,ao as dc,ap as fc,aq as Bm}from"./vendor-mui-x.CmnfcHjQ.js";import{f as mr,r as hc}from"./vendor-firebase.dbYXL2Q0.js";const Fm="[REDACTED]",$m=6,Gm=50,Hm=50,Wm=/password|passwd|token|authorization|cookie|secret|api.?key|credit.?card|card.?number|cvv/i;function Bs(e,t=0){if(e===null||typeof e=="string"||typeof e=="boolean")return e;if(typeof e=="number")return Number.isFinite(e)?e:String(e);if(t>=$m)return"[TRUNCATED]";if(Array.isArray(e))return e.slice(0,Gm).map(r=>Bs(r,t+1));if(typeof e=="object"){const r={};for(const[n,o]of Object.entries(e).slice(0,Hm))r[n]=Wm.test(n)?Fm:Bs(o,t+1);return r}return String(e)}function jm(e){if(e)return Bs(e)}var Yf={};const es=20,zm=100,Vm=48*1024,Km=5e3,pc="inworld-logging-session-id",Ym=new Set(["checkout.started","checkout.completed","payment.failed","auth.login","auth.logout"]);let qf=!1;const qm={debug:"DEBUG",info:"INFO",warn:"WARNING",error:"ERROR"},gc={DEBUG:10,INFO:20,WARNING:30,ERROR:40};function Qm(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return t>>>0}function Xm(e,t){return Qm(e)%100<Math.max(0,Math.min(100,t))}function Jm(e){return e==="WARNING"||e==="ERROR"}function mc(e){qf=e}function Zm(e={}){var A,x,k,B;const t=(A=e.environment)!=null?A:t1(),r=(x=e.debugEnabled)!=null?x:t==="development",n=(k=e.minLevel)!=null?k:r?"DEBUG":n1(t),o=(B=e.infoSampleRate)!=null?B:r1(t),a=e1(),i=[],s=[];let l=!1,c=!1;const u=C=>{const P={log:C,retries:0};if(Jm(C.severity))s.push(P);else{if(i.length>=zm)return;i.push(P)}(s.length>=es||i.length>=es)&&d()},d=async()=>{var C,P;if(!(l||s.length===0&&i.length===0)){l=!0;try{const M=p(s,i);if(M.length===0)return;const v=JSON.stringify({logs:M.map(te=>te.log)}),$={"Content-Type":"application/json"},W=await((C=e.getAuthToken)==null?void 0:C.call(e));W&&($.Authorization=`Bearer ${W}`);const oe=await fetch((P=e.endpoint)!=null?P:"/api/logs",{method:"POST",headers:$,body:v,keepalive:!0});if(!oe.ok)throw new Error(`Log transport failed: ${oe.status}`);h=[]}catch(M){for(const v of y())v.retries<1&&s.unshift({...v,retries:v.retries+1})}finally{l=!1,(s.length||i.length)&&d()}}};let h=[];const p=(C,P)=>{var $;const M=[];let v=12;for(;M.length<es&&(C.length||P.length);){const W=($=C[0])!=null?$:P[0],oe=new TextEncoder().encode(JSON.stringify(W.log)).byteLength;if(M.length&&v+oe>Vm)break;(C[0]?C:P).shift(),M.push(W),v+=oe+1}return h=M,M},y=()=>{const C=h;return h=[],C},S=(C,P,M={})=>{var se,ie,ee;if(!qf)return;const v=qm[C];if(gc[v]<gc[n])return;t==="development"&&console[C](P,M);const{event:$,requestId:W,...oe}=M,te={severity:v,message:P,event:$,source:"frontend",timestamp:new Date().toISOString(),sessionId:a,requestId:W,route:(se=globalThis.location)==null?void 0:se.pathname,release:(ee=(ie=e.release)!=null?ie:Yf.RELEASE)!=null?ee:"unknown",environment:t,context:jm(oe)};v==="DEBUG"&&!r||v==="INFO"&&!Ym.has($!=null?$:"")&&!Xm(`${$!=null?$:P}:${a}`,o)||u(te)};return(()=>{if(c||typeof window=="undefined")return;c=!0,window.setInterval(()=>void d(),Km);const C=()=>{var M,v;if(!s.length&&!i.length)return;const P=p(s,i);P.length&&((v=navigator.sendBeacon)==null||v.call(navigator,(M=e.endpoint)!=null?M:"/api/logs",new Blob([JSON.stringify({logs:P.map($=>$.log)})],{type:"application/json"})))};window.addEventListener("pagehide",C),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&C()})})(),{debug:(C,P)=>S("debug",C,P),info:(C,P)=>S("info",C,P),warn:(C,P)=>S("warn",C,P),error:(C,P)=>S("error",C,P)}}function e1(){if(typeof window=="undefined")return"server";const e=window.sessionStorage.getItem(pc);if(e)return e;const t=crypto.randomUUID();return window.sessionStorage.setItem(pc,t),t}function t1(){var t,r;const e=((r=(t=Yf.LOGGING_ENVIRONMENT)!=null?t:"production")!=null?r:"").toLowerCase();return e==="prod"||e==="production"?"production":e==="stage"||e==="staging"?"staging":"development"}function r1(e){return e==="production"?10:e==="staging"?50:100}function n1(e){return e==="development"?"DEBUG":"INFO"}const o1=Zm({getAuthToken:async()=>{const{getFireBaseIdToken:e}=await an(async()=>{const{getFireBaseIdToken:t}=await Promise.resolve().then(()=>T_);return{getFireBaseIdToken:t}},void 0);return e({refresh:!1})}}),to=new Array(64),Qf=new Array(123);for(let e=0;e<64;)Qf[to[e]=e<26?e+65:e<52?e+71:e<62?e-4:e-59|43]=e++;function a1(e,t,r){let n=null;const o=[];let a=0,i=0,s=0;for(;t<r;){const l=e[t++];switch(i){case 0:o[a++]=to[l>>2],s=(l&3)<<4,i=1;break;case 1:o[a++]=to[s|l>>4],s=(l&15)<<2,i=2;break;case 2:o[a++]=to[s|l>>6],o[a++]=to[l&63],i=0;break}a>8191&&((n!=null?n:n=[]).push(String.fromCharCode(...o)),a=0)}return i&&(o[a++]=to[s],o[a++]=61,i===1&&(o[a++]=61)),n?(a&&n.push(String.fromCharCode(...o.slice(0,a))),n.join("")):String.fromCharCode(...o.slice(0,a))}const ts="invalid encoding";function hx(e){if(e instanceof Uint8Array)return e;if(typeof e!="string")throw Error(ts);const t=[];let r=0,n=0,o=0;for(let a=0;a<e.length;){let i=e.charCodeAt(a++);if(i===61&&n>1)break;if((i=Qf[i])===void 0)throw Error(ts);switch(n){case 0:o=i,n=1;break;case 1:t[r++]=o<<2|(i&48)>>4,o=i,n=2;break;case 2:t[r++]=(o&15)<<4|(i&60)>>2,o=i,n=3;break;case 3:t[r++]=(o&3)<<6|i,n=0;break}}if(n===1)throw Error(ts);return new Uint8Array(t)}function Ie(e,t){return t&&t instanceof Uint8Array?a1(t,0,t.length):t}function Z(e,t){const{pathPrefix:r,...n}=t!=null?t:{},o=r?`${r}${e}`:e;return fetch(o,n).then(a=>a.json().catch(i=>{throw a}).then(i=>{if(!a.ok)throw i;return i}))}function i1(e){const t=Object.prototype.toString.call(e).slice(8,-1)==="Object";if(!(e!==null&&t)||!t)return!1;const n=Object.getPrototypeOf(e);return!!(n&&typeof n=="object"&&n.constructor===Object.prototype.constructor)}function _c(e){return["string","number","boolean"].some(t=>typeof e===t)}function Xf(e,t=""){return Object.keys(e).reduce((r,n)=>{const o=e[n],a=t?[t,n].join("."):n,i=Array.isArray(o)&&o.every(l=>_c(l))&&o.length>0;let s={};return i1(o)?s=Xf(o,a):(_c(o)||i)&&(s={[a]:o}),{...r,...s}},{})}function Ee(e,t=[],r,n=[]){const o=Xf(e),a=Object.keys(o).reduce((i,s)=>{const l=o[s];if(t.includes(s)||r&&(s===r||s.startsWith(`${r}.`)))return i;const c=n.find(u=>s===`${u}.paths`);return c&&Array.isArray(l)?[...i,[c,l.join(",")]]:Array.isArray(l)?[...i,...l.map(u=>[s,u.toString()])]:i=[...i,[s,l.toString()]]},[]);return new URLSearchParams(a).toString()}var s1=(e=>(e.WORKSPACE_ITEM_VIEW_UNSPECIFIED="WORKSPACE_ITEM_VIEW_UNSPECIFIED",e.WORKSPACE_ITEM_VIEW_DEFAULT="WORKSPACE_ITEM_VIEW_DEFAULT",e.WORKSPACE_ITEM_VIEW_WITH_META="WORKSPACE_ITEM_VIEW_WITH_META",e))(s1||{}),l1=(e=>(e.ZERO_DATA_RETENTION_OVERRIDE_UNSPECIFIED="ZERO_DATA_RETENTION_OVERRIDE_UNSPECIFIED",e.ZERO_DATA_RETENTION_OVERRIDE_ENABLED="ZERO_DATA_RETENTION_OVERRIDE_ENABLED",e.ZERO_DATA_RETENTION_OVERRIDE_DISABLED="ZERO_DATA_RETENTION_OVERRIDE_DISABLED",e))(l1||{}),ro=(e=>(e.ROLE_UNSPECIFIED="ROLE_UNSPECIFIED",e.ROLE_OWNER="ROLE_OWNER",e.ROLE_ADMIN="ROLE_ADMIN",e.ROLE_DEVELOPER="ROLE_DEVELOPER",e.ROLE_VIEWER="ROLE_VIEWER",e))(ro||{}),c1=(e=>(e.RESOURCE_TYPE_UNSPECIFIED="RESOURCE_TYPE_UNSPECIFIED",e.RESOURCE_TYPE_WORKSPACE="RESOURCE_TYPE_WORKSPACE",e.RESOURCE_TYPE_CHARACTER="RESOURCE_TYPE_CHARACTER",e.RESOURCE_TYPE_SCENE="RESOURCE_TYPE_SCENE",e.RESOURCE_TYPE_ENTITY="RESOURCE_TYPE_ENTITY",e.RESOURCE_TYPE_KNOWLEDGE="RESOURCE_TYPE_KNOWLEDGE",e.RESOURCE_TYPE_WORKSPACE_COLLECTION="RESOURCE_TYPE_WORKSPACE_COLLECTION",e.RESOURCE_TYPE_CUSTOM_VOICE="RESOURCE_TYPE_CUSTOM_VOICE",e))(c1||{});class Cl{static GetWorkspace(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}
2static ListWorkspaces(t,r){return Z(`/v1alpha/workspaces?${Ee(t,[])}`,{...r,method:"GET"})}static UpdateWorkspace(t,r){return Z(`/v1alpha/${t.workspace.name}?${Ee(t,["workspace.name"],"workspace",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.workspace,Ie)})}static CreateWorkspace(t,r){return Z(`/v1alpha/workspaces?${Ee(t,[],"workspace")}`,{...r,method:"POST",body:JSON.stringify(t.workspace,Ie)})}static DeleteWorkspace(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static CloneWorkspace(t,r){return Z(`/v1alpha/${t.name}:clone`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static ShareWorkspace(t,r){return Z(`/v1alpha/${t.name}:share`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static generateResourceName(t,r){return Z(`/v1alpha/${t.workspace}:generateResourceName`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetWorkspaceShareInfo(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static GetWorkspaceLimitInfo(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static RemainWorkspaceLimitInfo(t,r){return Z(`/v1alpha/${t.name}:remain?${Ee(t,["name"])}`,{...r,method:"GET"})}static SendImpressionEvent(t,r){return Z(`/v1alpha/${t.name}:impression`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}}var Co=(function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(n){var o=this,a=n||function(){};return this.listeners.push(a),this.onSubscribe(),function(){o.listeners=o.listeners.filter(function(i){return i!==a}),o.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e})(),di=typeof window=="undefined";function $t(){}function u1(e,t){return typeof e=="function"?e(t):e}function Fs(e){return typeof e=="number"&&e>=0&&e!==1/0}function fi(e){return Array.isArray(e)?e:[e]}function px(e,t){return e.filter(function(r){return t.indexOf(r)===-1})}function gx(e,t,r){var n=e.slice(0);return n[t]=r,n}function Jf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ja(e,t,r){return ga(e)?typeof t=="function"?He({},r,{queryKey:e,queryFn:t}):He({},t,{queryKey:e}):e}function d1(e,t,r){return ga(e)?typeof t=="function"?He({},r,{mutationKey:e,mutationFn:t}):He({},t,{mutationKey:e}):typeof e=="function"?He({},t,{mutationFn:e}):He({},e)}function vn(e,t,r){return ga(e)?[He({},t,{queryKey:e}),r]:[e||{},t]}function f1(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var r=e!=null?e:!t;return r?"active":"inactive"}function yc(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,l=e.stale;if(ga(s)){if(n){if(t.queryHash!==Rl(s,t.options))return!1}else if(!hi(t.queryKey,s))return!1}var c=f1(r,a);if(c==="none")return!1;if(c!=="all"){var u=t.isActive();if(c==="active"&&!u||c==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof o=="boolean"&&t.isFetching()!==o||i&&!i(t))}function Ec(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(ga(a)){if(!t.options.mutationKey)return!1;if(r){if($n(t.options.mutationKey)!==$n(a))return!1}else if(!hi(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Rl(e,t){var r=(t==null?void 0:t.queryKeyHashFn)||$n;return r(e)}function $n(e){var t=fi(e);return h1(t)}function h1(e){return JSON.stringify(e,function(t,r){return $s(r)?Object.keys(r).sort().reduce(function(n,o){return n[o]=r[o],n},{}):r})}function hi(e,t){return Zf(fi(e),fi(t))}function Zf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(r){return!Zf(e[r],t[r])}):!1}function pi(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||$s(e)&&$s(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,l=0;l<a;l++){var c=r?l:o[l];i[c]=pi(e[c],t[c]),i[c]===e[c]&&s++}return n===a&&s===n?e:i}return t}function p1(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function $s(e){if(!vc(e))return!1;var t=e.constructor;if(typeof t=="undefined")return!0;var r=t.prototype;return!(!vc(r)||!r.hasOwnProperty("isPrototypeOf"))}function vc(e){return Object.prototype.toString.call(e)==="[object Object]"}function ga(e){return typeof e=="string"||Array.isArray(e)}function g1(e){return new Promise(function(t){setTimeout(t,e)})}function Tc(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function eh(){if(typeof AbortController=="function")return new AbortController}var m1=(function(e){To(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!di&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),function(){window.removeEventListener("visibilitychange",i
2),window.removeEventListener("focus",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setFocused(s):i.onFocus()})},r.setFocused=function(o){this.focused=o,o&&this.onFocus()},r.onFocus=function(){this.listeners.forEach(function(o){o()})},r.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t})(Co),Xo=new m1,_1=(function(e){To(t,e);function t(){var n;return n=e.call(this)||this,n.setup=function(o){var a;if(!di&&((a=window)!=null&&a.addEventListener)){var i=function(){return o()};return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),function(){window.removeEventListener("online",i),window.removeEventListener("offline",i)}}},n}var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){if(!this.hasListeners()){var o;(o=this.cleanup)==null||o.call(this),this.cleanup=void 0}},r.setEventListener=function(o){var a,i=this;this.setup=o,(a=this.cleanup)==null||a.call(this),this.cleanup=o(function(s){typeof s=="boolean"?i.setOnline(s):i.onOnline()})},r.setOnline=function(o){this.online=o,o&&this.onOnline()},r.onOnline=function(){this.listeners.forEach(function(o){o()})},r.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine},t})(Co),za=new _1;function y1(e){return Math.min(1e3*Math.pow(2,e),3e4)}function gi(e){return typeof(e==null?void 0:e.cancel)=="function"}var th=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Va(e){return e instanceof th}var rh=function(t){var r=this,n=!1,o,a,i,s;this.abort=t.abort,this.cancel=function(h){return o==null?void 0:o(h)},this.cancelRetry=function(){n=!0},this.continueRetry=function(){n=!1},this.continue=function(){return a==null?void 0:a()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(h,p){i=h,s=p});var l=function(p){r.isResolved||(r.isResolved=!0,t.onSuccess==null||t.onSuccess(p),a==null||a(),i(p))},c=function(p){r.isResolved||(r.isResolved=!0,t.onError==null||t.onError(p),a==null||a(),s(p))},u=function(){return new Promise(function(p){a=p,r.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){a=void 0,r.isPaused=!1,t.onContinue==null||t.onContinue()})},d=function h(){if(!r.isResolved){var p;try{p=t.fn()}catch(y){p=Promise.reject(y)}o=function(S){if(!r.isResolved&&(c(new th(S)),r.abort==null||r.abort(),gi(p)))try{p.cancel()}catch(b){}},r.isTransportCancelable=gi(p),Promise.resolve(p).then(l).catch(function(y){var S,b;if(!r.isResolved){var A=(S=t.retry)!=null?S:3,x=(b=t.retryDelay)!=null?b:y1,k=typeof x=="function"?x(r.failureCount,y):x,B=A===!0||typeof A=="number"&&r.failureCount<A||typeof A=="function"&&A(r.failureCount,y);if(n||!B){c(y);return}r.failureCount++,t.onFail==null||t.onFail(r.failureCount,y),g1(k).then(function(){if(!Xo.isFocused()||!za.isOnline())return u()}).then(function(){n?c(y):h()})}})}};d()},E1=(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(r){r()},this.batchNotifyFn=function(r){r()}}var t=e.prototype;return t.batch=function(n){var o;this.transactions++;try{o=n()}finally{this.transactions--,this.transactions||this.flush()}return o},t.schedule=function(n){var o=this;this.transactions?this.queue.push(n):Tc(function(){o.notifyFn(n)})},t.batchCalls=function(n){var o=this;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];o.schedule(function(){n.apply(void 0,i)})}},t.flush=function(){var n=this,o=this.queue;this.queue=[],o.length&&Tc(function(){n.batchNotifyFn(function(){o.forEach(function(a){n.notifyFn(a)})})})},t.setNotifyFunction=function(n){this.notifyFn=n},t.setBatchNotifyFunction=function(n){this.batchNotifyFn=n},e})(),pt=new E1,nh=console;function mi(){return nh}function v1(e){nh=e}
2var T1=(function(){function e(r){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=r.defaultOptions,this.setOptions(r.options),this.observers=[],this.cache=r.cache,this.queryKey=r.queryKey,this.queryHash=r.queryHash,this.initialState=r.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=r.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(n){var o;this.options=He({},this.defaultOptions,n),this.meta=n==null?void 0:n.meta,this.cacheTime=Math.max(this.cacheTime||0,(o=this.options.cacheTime)!=null?o:300*1e3)},t.setDefaultOptions=function(n){this.defaultOptions=n},t.scheduleGc=function(){var n=this;this.clearGcTimeout(),Fs(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){n.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(n,o){var a,i,s=this.state.data,l=u1(n,s);return(a=(i=this.options).isDataEqual)!=null&&a.call(i,s,l)?l=s:this.options.structuralSharing!==!1&&(l=pi(s,l)),this.dispatch({data:l,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt}),l},t.setState=function(n,o){this.dispatch({type:"setState",state:n,setStateOptions:o})},t.cancel=function(n){var o,a=this.promise;return(o=this.retryer)==null||o.cancel(n),a?a.then($t).catch($t):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(n){return n.options.enabled!==!1})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(n){return n.getCurrentResult().isStale})},t.isStaleByTime=function(n){return n===void 0&&(n=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Jf(this.state.dataUpdatedAt,n)},t.onFocus=function(){var n,o=this.observers.find(function(a){return a.shouldFetchOnWindowFocus()});o&&o.refetch(),(n=this.retryer)==null||n.continue()},t.onOnline=function(){var n,o=this.observers.find(function(a){return a.shouldFetchOnReconnect()});o&&o.refetch(),(n=this.retryer)==null||n.continue()},t.addObserver=function(n){this.observers.indexOf(n)===-1&&(this.observers.push(n),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:n}))},t.removeObserver=function(n){this.observers.indexOf(n)!==-1&&(this.observers=this.observers.filter(function(o){return o!==n}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:n}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(n,o){var a=this,i,s,l;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return(c=this.retryer)==null||c.continueRetry(),this.promise}}if(n&&this.setOptions(n),!this.options.queryFn){var u=this.observers.find(function(x){return x.options.queryFn});u&&this.setOptions(u.options)}var d=fi(this.queryKey),h=eh(),p={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(h)return a.abortSignalConsumed=!0,h.signal}});var y=function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(p)):Promise.reject("Missing queryFn")},S={fetchOptions:o,options:this.options,queryKey:d,state:this.state,fetchFn:y,meta:this.meta};if((i=this.options.behavior)!=null&&i.onFetch){var b;(b=this.options.behavior)==null||b.onFetch(S)}if(this.revertState=this.state,!this.state.isFetching||this.state.fetchMeta!==((s=S.fetchOptions)==null?void 0:s.meta)){var A;this.dispatch({type:"fetch",meta:(A=S.fetchOptions)==null?void 0:A.meta})}return this.retryer=new rh({fn:S.fetchFn,abort:h==null||(l=h.abort)==null?void 0:l.bind(h),onSuccess:function(k){a.setData(k),a.cache.config.onSuccess==null||a.cache.config.onSuccess(k,a),a.cacheTime===0&&a.optionalRemove()},onError:function(k){Va(k)&&k.silent||a.dispatch({type:"error",error:k}),Va(k)||(a.cache.config.onError==null||a.cache.config.onError(k,a),mi().error(k)),a.cacheTime===0&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:S.options.retry,retryDelay:S.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(n){var o=this;this.state=this.reducer(this.state,n),pt.batch(function(){o.observers.forEac
2h(function(a){a.onQueryUpdate(n)}),o.cache.notify({query:o,type:"queryUpdated",action:n})})},t.getDefaultState=function(n){var o=typeof n.initialData=="function"?n.initialData():n.initialData,a=typeof n.initialData!="undefined",i=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0,s=typeof o!="undefined";return{data:o,dataUpdateCount:0,dataUpdatedAt:s?i!=null?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:s?"success":"idle"}},t.reducer=function(n,o){var a,i;switch(o.type){case"failed":return He({},n,{fetchFailureCount:n.fetchFailureCount+1});case"pause":return He({},n,{isPaused:!0});case"continue":return He({},n,{isPaused:!1});case"fetch":return He({},n,{fetchFailureCount:0,fetchMeta:(a=o.meta)!=null?a:null,isFetching:!0,isPaused:!1},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return He({},n,{data:o.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=o.dataUpdatedAt)!=null?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var s=o.error;return Va(s)&&s.revert&&this.revertState?He({},this.revertState):He({},n,{error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return He({},n,{isInvalidated:!0});case"setState":return He({},n,o.state);default:return n}},e})(),oh=(function(e){To(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.queries=[],o.queriesMap={},o}var r=t.prototype;return r.build=function(o,a,i){var s,l=a.queryKey,c=(s=a.queryHash)!=null?s:Rl(l,a),u=this.get(c);return u||(u=new T1({cache:this,queryKey:l,queryHash:c,options:o.defaultQueryOptions(a),state:i,defaultOptions:o.getQueryDefaults(l),meta:a.meta}),this.add(u)),u},r.add=function(o){this.queriesMap[o.queryHash]||(this.queriesMap[o.queryHash]=o,this.queries.push(o),this.notify({type:"queryAdded",query:o}))},r.remove=function(o){var a=this.queriesMap[o.queryHash];a&&(o.destroy(),this.queries=this.queries.filter(function(i){return i!==o}),a===o&&delete this.queriesMap[o.queryHash],this.notify({type:"queryRemoved",query:o}))},r.clear=function(){var o=this;pt.batch(function(){o.queries.forEach(function(a){o.remove(a)})})},r.get=function(o){return this.queriesMap[o]},r.getAll=function(){return this.queries},r.find=function(o,a){var i=vn(o,a),s=i[0];return typeof s.exact=="undefined"&&(s.exact=!0),this.queries.find(function(l){return yc(s,l)})},r.findAll=function(o,a){var i=vn(o,a),s=i[0];return Object.keys(s).length>0?this.queries.filter(function(l){return yc(s,l)}):this.queries},r.notify=function(o){var a=this;pt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){var o=this;pt.batch(function(){o.queries.forEach(function(a){a.onFocus()})})},r.onOnline=function(){var o=this;pt.batch(function(){o.queries.forEach(function(a){a.onOnline()})})},t})(Co),C1=(function(){function e(r){this.options=He({},r.defaultOptions,r.options),this.mutationId=r.mutationId,this.mutationCache=r.mutationCache,this.observers=[],this.state=r.state||ah(),this.meta=r.meta}var t=e.prototype;return t.setState=function(n){this.dispatch({type:"setState",state:n})},t.addObserver=function(n){this.observers.indexOf(n)===-1&&this.observers.push(n)},t.removeObserver=function(n){this.observers=this.observers.filter(function(o){return o!==n})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then($t).catch($t)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var n=this,o,a=this.state.status==="loading",i=Promise.resolve();return a||(this.dispatch({type:"loading",variables:this.options.variables}),i=i.then(function(){n.mutationCache.config.onMutate==null||n.mutationCache.config.onMutate(n.state.variables,n)}).then(function(){return n.options.onMutate==null?void 0:n.options.onMutate(n.state.variables)}).then(function(s){s!==n.state.context&&n.dispatch({type:"loading",context:s,variables:n.state.variables})})),i.then(function(){return n.executeMutation()}).then(function(s){o=s,n.mutationCache.config.onSuccess==null||n.mutationCache.config.onSuccess(o,n.state.variables,n.state.context,n)}).then(function(){return n.options.onSuccess==null?void 0:n.options.onSuccess(o,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(o,null,n.state.variables,n.state.context)}).then(function(){return n.dispatch({type:"success",data:o}),o}
2).catch(function(s){return n.mutationCache.config.onError==null||n.mutationCache.config.onError(s,n.state.variables,n.state.context,n),mi().error(s),Promise.resolve().then(function(){return n.options.onError==null?void 0:n.options.onError(s,n.state.variables,n.state.context)}).then(function(){return n.options.onSettled==null?void 0:n.options.onSettled(void 0,s,n.state.variables,n.state.context)}).then(function(){throw n.dispatch({type:"error",error:s}),s})})},t.executeMutation=function(){var n=this,o;return this.retryer=new rh({fn:function(){return n.options.mutationFn?n.options.mutationFn(n.state.variables):Promise.reject("No mutationFn found")},onFail:function(){n.dispatch({type:"failed"})},onPause:function(){n.dispatch({type:"pause"})},onContinue:function(){n.dispatch({type:"continue"})},retry:(o=this.options.retry)!=null?o:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(n){var o=this;this.state=R1(this.state,n),pt.batch(function(){o.observers.forEach(function(a){a.onMutationUpdate(n)}),o.mutationCache.notify(o)})},e})();function ah(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function R1(e,t){switch(t.type){case"failed":return He({},e,{failureCount:e.failureCount+1});case"pause":return He({},e,{isPaused:!0});case"continue":return He({},e,{isPaused:!1});case"loading":return He({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return He({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return He({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return He({},e,t.state);default:return e}}var ih=(function(e){To(t,e);function t(n){var o;return o=e.call(this)||this,o.config=n||{},o.mutations=[],o.mutationId=0,o}var r=t.prototype;return r.build=function(o,a,i){var s=new C1({mutationCache:this,mutationId:++this.mutationId,options:o.defaultMutationOptions(a),state:i,defaultOptions:a.mutationKey?o.getMutationDefaults(a.mutationKey):void 0,meta:a.meta});return this.add(s),s},r.add=function(o){this.mutations.push(o),this.notify(o)},r.remove=function(o){this.mutations=this.mutations.filter(function(a){return a!==o}),o.cancel(),this.notify(o)},r.clear=function(){var o=this;pt.batch(function(){o.mutations.forEach(function(a){o.remove(a)})})},r.getAll=function(){return this.mutations},r.find=function(o){return typeof o.exact=="undefined"&&(o.exact=!0),this.mutations.find(function(a){return Ec(o,a)})},r.findAll=function(o){return this.mutations.filter(function(a){return Ec(o,a)})},r.notify=function(o){var a=this;pt.batch(function(){a.listeners.forEach(function(i){i(o)})})},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var o=this.mutations.filter(function(a){return a.state.isPaused});return pt.batch(function(){return o.reduce(function(a,i){return a.then(function(){return i.continue().catch($t)})},Promise.resolve())})},t})(Co);function S1(){return{onFetch:function(t){t.fetchFn=function(){var r,n,o,a,i,s,l=(r=t.fetchOptions)==null||(n=r.meta)==null?void 0:n.refetchPage,c=(o=t.fetchOptions)==null||(a=o.meta)==null?void 0:a.fetchMore,u=c==null?void 0:c.pageParam,d=(c==null?void 0:c.direction)==="forward",h=(c==null?void 0:c.direction)==="backward",p=((i=t.state.data)==null?void 0:i.pages)||[],y=((s=t.state.data)==null?void 0:s.pageParams)||[],S=eh(),b=S==null?void 0:S.signal,A=y,x=!1,k=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},B=function(ie,ee,de,Y){return A=Y?[ee].concat(A):[].concat(A,[ee]),Y?[de].concat(ie):[].concat(ie,[de])},C=function(ie,ee,de,Y){if(x)return Promise.reject("Cancelled");if(typeof de=="undefined"&&!ee&&ie.length)return Promise.resolve(ie);var ce={queryKey:t.queryKey,signal:b,pageParam:de,meta:t.meta},he=k(ce),Oe=Promise.resolve(he).then(function(ye){return B(ie,de,ye,Y)});if(gi(he)){var Ce=Oe;Ce.cancel=he.cancel}return Oe},P;if(!p.length)P=C([]);else if(d){var M=typeof u!="undefined",v=M?u:Cc(t.options,p);P=C(p,M,v)}
2else if(h){var $=typeof u!="undefined",W=$?u:b1(t.options,p);P=C(p,$,W,!0)}else(function(){A=[];var se=typeof t.options.getNextPageParam=="undefined",ie=l&&p[0]?l(p[0],0,p):!0;P=ie?C([],se,y[0]):Promise.resolve(B([],y[0],p[0]));for(var ee=function(ce){P=P.then(function(he){var Oe=l&&p[ce]?l(p[ce],ce,p):!0;if(Oe){var Ce=se?y[ce]:Cc(t.options,he);return C(he,se,Ce)}return Promise.resolve(B(he,y[ce],p[ce]))})},de=1;de<p.length;de++)ee(de)})();var oe=P.then(function(se){return{pages:se,pageParams:A}}),te=oe;return te.cancel=function(){x=!0,S==null||S.abort(),gi(P)&&P.cancel()},oe}}}}function Cc(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function b1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}var I1=(function(){function e(r){r===void 0&&(r={}),this.queryCache=r.queryCache||new oh,this.mutationCache=r.mutationCache||new ih,this.defaultOptions=r.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var n=this;this.unsubscribeFocus=Xo.subscribe(function(){Xo.isFocused()&&za.isOnline()&&(n.mutationCache.onFocus(),n.queryCache.onFocus())}),this.unsubscribeOnline=za.subscribe(function(){Xo.isFocused()&&za.isOnline()&&(n.mutationCache.onOnline(),n.queryCache.onOnline())})},t.unmount=function(){var n,o;(n=this.unsubscribeFocus)==null||n.call(this),(o=this.unsubscribeOnline)==null||o.call(this)},t.isFetching=function(n,o){var a=vn(n,o),i=a[0];return i.fetching=!0,this.queryCache.findAll(i).length},t.isMutating=function(n){return this.mutationCache.findAll(He({},n,{fetching:!0})).length},t.getQueryData=function(n,o){var a;return(a=this.queryCache.find(n,o))==null?void 0:a.state.data},t.getQueriesData=function(n){return this.getQueryCache().findAll(n).map(function(o){var a=o.queryKey,i=o.state,s=i.data;return[a,s]})},t.setQueryData=function(n,o,a){var i=ja(n),s=this.defaultQueryOptions(i);return this.queryCache.build(this,s).setData(o,a)},t.setQueriesData=function(n,o,a){var i=this;return pt.batch(function(){return i.getQueryCache().findAll(n).map(function(s){var l=s.queryKey;return[l,i.setQueryData(l,o,a)]})})},t.getQueryState=function(n,o){var a;return(a=this.queryCache.find(n,o))==null?void 0:a.state},t.removeQueries=function(n,o){var a=vn(n,o),i=a[0],s=this.queryCache;pt.batch(function(){s.findAll(i).forEach(function(l){s.remove(l)})})},t.resetQueries=function(n,o,a){var i=this,s=vn(n,o,a),l=s[0],c=s[1],u=this.queryCache,d=He({},l,{active:!0});return pt.batch(function(){return u.findAll(l).forEach(function(h){h.reset()}),i.refetchQueries(d,c)})},t.cancelQueries=function(n,o,a){var i=this,s=vn(n,o,a),l=s[0],c=s[1],u=c===void 0?{}:c;typeof u.revert=="undefined"&&(u.revert=!0);var d=pt.batch(function(){return i.queryCache.findAll(l).map(function(h){return h.cancel(u)})});return Promise.all(d).then($t).catch($t)},t.invalidateQueries=function(n,o,a){var i,s,l,c=this,u=vn(n,o,a),d=u[0],h=u[1],p=He({},d,{active:(i=(s=d.refetchActive)!=null?s:d.active)!=null?i:!0,inactive:(l=d.refetchInactive)!=null?l:!1});return pt.batch(function(){return c.queryCache.findAll(d).forEach(function(y){y.invalidate()}),c.refetchQueries(p,h)})},t.refetchQueries=function(n,o,a){var i=this,s=vn(n,o,a),l=s[0],c=s[1],u=pt.batch(function(){return i.queryCache.findAll(l).map(function(h){return h.fetch(void 0,He({},c,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),d=Promise.all(u).then($t);return c!=null&&c.throwOnError||(d=d.catch($t)),d},t.fetchQuery=function(n,o,a){var i=ja(n,o,a),s=this.defaultQueryOptions(i);typeof s.retry=="undefined"&&(s.retry=!1);var l=this.queryCache.build(this,s);return l.isStaleByTime(s.staleTime)?l.fetch(s):Promise.resolve(l.state.data)},t.prefetchQuery=function(n,o,a){return this.fetchQuery(n,o,a).then($t).catch($t)},t.fetchInfiniteQuery=function(n,o,a){var i=ja(n,o,a);return i.behavior=S1(),this.fetchQuery(i)},t.prefetchInfiniteQuery=function(n,o,a){return this.fetchInfiniteQuery(n,o,a).then($t).catch($t)},t.cancelMutations=function(){var n=this,o=pt.batch(function(){return n.mutationCache.getAll().map(function(a){return a.cancel()})});return Promise.all(o).then($t).catch($t)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(n){return this.mutationCache.build(this,n).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(n){this.defaultOptions=n},t.setQueryDefaults=function(n,o){var a=this.queryDefaults.find(function(i){return $n(n)===$n(i.queryKey)});a?a.defaultOptions=o:this.queryDefaults.push({queryKey:n,defaultOptions:o})},t.getQueryDefaults=function(n){var o;return n?(o=this.queryDefaults.find(function(a){return hi(n,a.queryKey)}))==null?void 0:o.defaultOptions:void 0},t.setMutationDefaults=function(n,o){var a=this.mutationDefaults.find(function(i){return $n(n)===$n(i.mutationKey)});a?a.defaultOptions=o:this.mutationDefaults.push({mutationKey:n,defaultOptions:o})},t.getMutationDefaults=function(n){var o;return n?(o=this.mutationDefaults.find(function(a){return hi(n,a.mutationKey)}))==null?void 0:o.defaultOptions:void 0},t.defaultQueryOptions=function(n){if(n!=null&&n._defaulted)return n;var o=He({},this.defaultOptions.queries,this.getQueryDefaults(n==null?void 0:n.queryKey),n,{_defaulted:!0});return!o.queryHash&&o.queryKey&&(o.queryHash=Rl(o.queryKey,o)),o},t.defaultQueryObserverOptions=function(n){return this.defaultQueryOptions(n)},t.defaultMutationOptions=function(n){return n!=null&&n._defaulted?n:He({},this.defaultOptions.mutations,this.getMutationDefaults(n==null?void 0:n.mutationKey),n,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e})(),O1=(function(e){To(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.options=o,a.trackedProps=[],a.selectError=null,a.bindMethods(),a.setOptions(o),a}var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),Rc(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return Gs(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return Gs(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(o,a){var i=this.options,s=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(o),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();var l=this.hasListeners();l&&Sc(this.currentQuery,s,this.options,i)&&this.executeFetch(),this.updateResult(a),l&&(this.currentQuery!==s||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();var c=this.computeRefetchInterval();l&&(this.currentQuery!==s||this.options.enabled!==i.enabled||c!==this.currentRefetchInterval)&&this.updateRefetchInterval(c)},r.getOptimisticResult=function(o){var a=this.client.defaultQueryObserverOptions(o),i=this.client.getQueryCache().build(this.client,a);return this.createResult(i,a)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(o,a){var i=this,s={},l=function(u){i.trackedProps.includes(u)||i.trackedProps.push(u)};
2return Object.keys(o).forEach(function(c){Object.defineProperty(s,c,{configurable:!1,enumerable:!0,get:function(){return l(c),o[c]}})}),(a.useErrorBoundary||a.suspense)&&l("error"),s},r.getNextResult=function(o){var a=this;return new Promise(function(i,s){var l=a.subscribe(function(c){c.isFetching||(l(),c.isError&&(o!=null&&o.throwOnError)?s(c.error):i(c))})})},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(o){return this.fetch(He({},o,{meta:{refetchPage:o==null?void 0:o.refetchPage}}))},r.fetchOptimistic=function(o){var a=this,i=this.client.defaultQueryObserverOptions(o),s=this.client.getQueryCache().build(this.client,i);return s.fetch().then(function(){return a.createResult(s,i)})},r.fetch=function(o){var a=this;return this.executeFetch(o).then(function(){return a.updateResult(),a.currentResult})},r.executeFetch=function(o){this.updateQuery();var a=this.currentQuery.fetch(this.options,o);return o!=null&&o.throwOnError||(a=a.catch($t)),a},r.updateStaleTimeout=function(){var o=this;if(this.clearStaleTimeout(),!(di||this.currentResult.isStale||!Fs(this.options.staleTime))){var a=Jf(this.currentResult.dataUpdatedAt,this.options.staleTime),i=a+1;this.staleTimeoutId=setTimeout(function(){o.currentResult.isStale||o.updateResult()},i)}},r.computeRefetchInterval=function(){var o;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(o=this.options.refetchInterval)!=null?o:!1},r.updateRefetchInterval=function(o){var a=this;this.clearRefetchInterval(),this.currentRefetchInterval=o,!(di||this.options.enabled===!1||!Fs(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(a.options.refetchIntervalInBackground||Xo.isFocused())&&a.executeFetch()},this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(o,a){var i=this.currentQuery,s=this.options,l=this.currentResult,c=this.currentResultState,u=this.currentResultOptions,d=o!==i,h=d?o.state:this.currentQueryInitialState,p=d?this.currentResult:this.previousQueryResult,y=o.state,S=y.dataUpdatedAt,b=y.error,A=y.errorUpdatedAt,x=y.isFetching,k=y.status,B=!1,C=!1,P;if(a.optimisticResults){var M=this.hasListeners(),v=!M&&Rc(o,a),$=M&&Sc(o,i,a,s);(v||$)&&(x=!0,S||(k="loading"))}if(a.keepPreviousData&&!y.dataUpdateCount&&(p!=null&&p.isSuccess)&&k!=="error")P=p.data,S=p.dataUpdatedAt,k=p.status,B=!0;else if(a.select&&typeof y.data!="undefined")if(l&&y.data===(c==null?void 0:c.data)&&a.select===this.selectFn)P=this.selectResult;else try{this.selectFn=a.select,P=a.select(y.data),a.structuralSharing!==!1&&(P=pi(l==null?void 0:l.data,P)),this.selectResult=P,this.selectError=null}catch(te){mi().error(te),this.selectError=te}else P=y.data;if(typeof a.placeholderData!="undefined"&&typeof P=="undefined"&&(k==="loading"||k==="idle")){var W;if(l!=null&&l.isPlaceholderData&&a.placeholderData===(u==null?void 0:u.placeholderData))W=l.data;else if(W=typeof a.placeholderData=="function"?a.placeholderData():a.placeholderData,a.select&&typeof W!="undefined")try{W=a.select(W),a.structuralSharing!==!1&&(W=pi(l==null?void 0:l.data,W)),this.selectError=null}catch(te){mi().error(te),this.selectError=te}typeof W!="undefined"&&(k="success",P=W,C=!0)}this.selectError&&(b=this.selectError,P=this.selectResult,A=Date.now(),k="error");var oe={status:k,isLoading:k==="loading",isSuccess:k==="success",isError:k==="error",isIdle:k==="idle",data:P,dataUpdatedAt:S,error:b,errorUpdatedAt:A,failureCount:y.fetchFailureCount,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>
20||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:x,isRefetching:x&&k!=="loading",isLoadingError:k==="error"&&y.dataUpdatedAt===0,isPlaceholderData:C,isPreviousData:B,isRefetchError:k==="error"&&y.dataUpdatedAt!==0,isStale:Sl(o,a),refetch:this.refetch,remove:this.remove};return oe},r.shouldNotifyListeners=function(o,a){if(!a)return!0;var i=this.options,s=i.notifyOnChangeProps,l=i.notifyOnChangePropsExclusions;if(!s&&!l||s==="tracked"&&!this.trackedProps.length)return!0;var c=s==="tracked"?this.trackedProps:s;return Object.keys(o).some(function(u){var d=u,h=o[d]!==a[d],p=c==null?void 0:c.some(function(S){return S===u}),y=l==null?void 0:l.some(function(S){return S===u});return h&&!y&&(!c||p)})},r.updateResult=function(o){var a=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!p1(this.currentResult,a)){var i={cache:!0};(o==null?void 0:o.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,a)&&(i.listeners=!0),this.notify(He({},i,o))}},r.updateQuery=function(){var o=this.client.getQueryCache().build(this.client,this.options);if(o!==this.currentQuery){var a=this.currentQuery;this.currentQuery=o,this.currentQueryInitialState=o.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(a==null||a.removeObserver(this),o.addObserver(this))}},r.onQueryUpdate=function(o){var a={};o.type==="success"?a.onSuccess=!0:o.type==="error"&&!Va(o.error)&&(a.onError=!0),this.updateResult(a),this.hasListeners()&&this.updateTimers()},r.notify=function(o){var a=this;pt.batch(function(){o.onSuccess?(a.options.onSuccess==null||a.options.onSuccess(a.currentResult.data),a.options.onSettled==null||a.options.onSettled(a.currentResult.data,null)):o.onError&&(a.options.onError==null||a.options.onError(a.currentResult.error),a.options.onSettled==null||a.options.onSettled(void 0,a.currentResult.error)),o.listeners&&a.listeners.forEach(function(i){i(a.currentResult)}),o.cache&&a.client.getQueryCache().notify({query:a.currentQuery,type:"observerResultsUpdated"})})},t})(Co);function A1(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rc(e,t){return A1(e,t)||e.state.dataUpdatedAt>0&&Gs(e,t,t.refetchOnMount)}function Gs(e,t,r){if(t.enabled!==!1){var n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Sl(e,t)}return!1}function Sc(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Sl(e,r)}function Sl(e,t){return e.isStaleByTime(t.staleTime)}var w1=(function(e){To(t,e);function t(n,o){var a;return a=e.call(this)||this,a.client=n,a.setOptions(o),a.bindMethods(),a.updateResult(),a}var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(o){this.options=this.client.defaultMutationOptions(o)},r.onUnsubscribe=function(){if(!this.listeners.length){var o;(o=this.currentMutation)==null||o.removeObserver(this)}},r.onMutationUpdate=function(o){this.updateResult();var a={listeners:!0};o.type==="success"?a.onSuccess=!0:o.type==="error"&&(a.onError=!0),this.notify(a)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(o,a){return this.mutateOptions=a,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,He({},this.options,{variables:typeof o!="undefined"?o:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var o=this.currentMutation?this.currentMutation.state:ah(),a=He({},o,{isLoading:o.status==="loading",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=a},r.notify=function(o){var a=this;pt.batch(function(){a.mutateOptions&&(o.onSuccess?(a.mutateOptions.onSuccess==null||a.mutateOptions.onSuccess(a.currentResult.data,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(a.currentResult.data,null,a.currentResult.variables,a.currentResult.context)):o.onError&&(a.mutateOptions.onError==null||a.mutateOptions.onError(a.currentResult.error,a.currentResult.variables,a.currentResult.context),a.mutateOptions.onSettled==null||a.mutateOptions.onSettled(void 0,a.currentResult.error,a.currentResult.variables,a.currentResult.context))),o.listeners&&a.listeners.forEac
2h(function(i){i(a.currentResult)})})},t})(Co),D1=jg.unstable_batchedUpdates;pt.setBatchNotifyFunction(D1);var N1=console;v1(N1);var bc=Xe.createContext(void 0),sh=Xe.createContext(!1);function lh(e){return e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bc),window.ReactQueryClientContext):bc}var Yr=function(){var t=Xe.useContext(lh(Xe.useContext(sh)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},k1=function(t){var r=t.client,n=t.contextSharing,o=n===void 0?!1:n,a=t.children;Xe.useEffect(function(){return r.mount(),function(){r.unmount()}},[r]);var i=lh(o);return Xe.createElement(sh.Provider,{value:o},Xe.createElement(i.Provider,{value:r},a))};function x1(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var M1=Xe.createContext(x1()),L1=function(){return Xe.useContext(M1)};function ch(e,t,r){return typeof t=="function"?t.apply(void 0,r):typeof t=="boolean"?t:!!e}function tn(e,t,r){var n=Xe.useRef(!1),o=Xe.useState(0),a=o[1],i=d1(e,t,r),s=Yr(),l=Xe.useRef();l.current?l.current.setOptions(i):l.current=new w1(s,i);var c=l.current.getCurrentResult();Xe.useEffect(function(){n.current=!0;var d=l.current.subscribe(pt.batchCalls(function(){n.current&&a(function(h){return h+1})}));return function(){n.current=!1,d()}},[]);var u=Xe.useCallback(function(d,h){l.current.mutate(d,h).catch($t)},[]);if(c.error&&ch(void 0,l.current.options.useErrorBoundary,[c.error]))throw c.error;return He({},c,{mutate:u,mutateAsync:c.mutate})}function P1(e,t){var r=Xe.useRef(!1),n=Xe.useState(0),o=n[1],a=Yr(),i=L1(),s=a.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=pt.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=pt.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=pt.batchCalls(s.onSettled)),s.suspense&&(typeof s.staleTime!="number"&&(s.staleTime=1e3),s.cacheTime===0&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(i.isReset()||(s.retryOnMount=!1));var l=Xe.useState(function(){return new t(a,s)}),c=l[0],u=c.getOptimisticResult(s);if(Xe.useEffect(function(){r.current=!0,i.clearReset();var d=c.subscribe(pt.batchCalls(function(){r.current&&o(function(h){return h+1})}));return c.updateResult(),function(){r.current=!1,d()}},[i,c]),Xe.useEffect(function(){c.setOptions(s,{listeners:!1})},[s,c]),s.suspense&&u.isLoading)throw c.fetchOptimistic(s).then(function(d){var h=d.data;s.onSuccess==null||s.onSuccess(h),s.onSettled==null||s.onSettled(h,null)}).catch(function(d){i.clearReset(),s.onError==null||s.onError(d),s.onSettled==null||s.onSettled(void 0,d)});if(u.isError&&!i.isReset()&&!u.isFetching&&ch(s.suspense,s.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return s.notifyOnChangeProps==="tracked"&&(u=c.trackResult(u,s)),u}function dn(e,t,r){var n=ja(e,t,r);return P1(n,O1)}class bl{static GenerateSessionToken(t,r){return Z("/v1alpha/tokens/sessionToken:generate",{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GenerateDefaultSessionToken(t,r){return Z(`/v1alpha/${t.parent}/token:generate`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}}var aa=(e=>(e.MARKETING_CONSENT_UNSPECIFIED="MARKETING_CONSENT_UNSPECIFIED",e.MARKETING_CONSENT_DECLINED="MARKETING_CONSENT_DECLINED",e.MARKETING_CONSENT_GRANTED="MARKETING_CONSENT_GRANTED",e))(aa||{}),uh=(e=>(e.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",e.AUTH_TYPE_OCULUS_NONCE="AUTH_TYPE_OCULUS_NONCE",e.AUTH_TYPE_FIREBASE="AUTH_TYPE_FIREBASE",e.AUTH_TYPE_SUPABASE="AUTH_TYPE_SUPABASE",e))(uh||{});let Tn=class{static GenerateTokenUser(t,r){return Z("/v1alpha/users:generateTokenUser",{...r,method:"POST",body:JSON.stringify(t,Ie)})}static LinkAccountUser(t,r){return Z(`/v1alpha/${t.name}:link`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetUser(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static UpdateUser(t,r){return Z(`/v1alpha/${t.user.name}?${Ee(t,["user.name"],"user",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.user,Ie)})}static AcceptTos(t,r){return Z(`/v1alpha/${t.user}:acceptTos`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static DeleteUser(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static ResolveAzureMarketplaceOfferToken(t,r){return Z(`/v1alpha/users:resolveAzureMarketplaceOfferToken?${Ee(t,[])}`,{...r,method:"GET"})}static ActivateAzureMarketplaceSubscription(t,r){return Z("/v1alpha/users:activateAzureMarketplaceSubscription",{...r,method:"POST",body:JSON.stringify(t,Ie)})}static SyncUserEmail(t,r){return Z("/v1alpha/users:syncUserEmail",{...r,method:"POST",body:JSON.stringify(t,Ie)})}};function U1(e,t){return typeof e!="undefined"&&Array.isArray(e)&&e.every(t)}var Cr=(e=>(e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENT
2ED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e))(Cr||{});function B1(e){return Object.values(Cr).includes(e)}const F1=[2,10,1,4,13,8,14];function $1(e){return typeof e=="object"&&e!==null&&"@type"in e&&typeof e["@type"]=="string"&&"fieldViolations"in e&&(e.fieldViolations===void 0||Array.isArray(e.fieldViolations))&&(typeof e.requestIndex=="string"||e.requestIndex===void 0)&&(typeof e.message=="string"||e.message===void 0)}function G1(e){return(typeof e=="object"||e instanceof Ro)&&e!==null&&"code"in e&&"message"in e&&"details"in e&&U1(e.details,$1)}function Dn(e){return(typeof e=="object"||e instanceof Ro)&&e!==null&&"code"in e&&B1(e.code)}class Ro extends Error{constructor(t,r){super(t.message),G1(t)?(this.message=t.message,this.code=t.code,this.details=t.details):(this.code=Cr.UNKNOWN,this.details=[]),this.metadata=r,Object.setPrototypeOf(this,Ro.prototype)}}let H1={data:""},W1=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||H1},j1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,z1=/\/\*[^]*?\*\/|  +/g,Ic=/\n+/g,Cn=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];a[0]=="@"?a[1]=="i"?r=a+" "+i+";":n+=a[1]=="f"?Cn(i,a):a+"{"+Cn(i,a[1]=="k"?"":t)+"}":typeof i=="object"?n+=Cn(i,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):i!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Cn.p?Cn.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},Jr={},dh=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+dh(e[r]);return t}return e},V1=(e,t,r,n,o)=>{let a=dh(e),i=Jr[a]||(Jr[a]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(a));if(!Jr[i]){let l=a!==e?e:(c=>{let u,d,h=[{}];for(;u=j1.exec(c.replace(z1,""));)u[4]?h.shift():u[3]?(d=u[3].replace(Ic," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][u[1]]=u[2].replace(Ic," ").trim();return h[0]})(e);Jr[i]=Cn(o?{["@keyframes "+i]:l}:l,r?"":"."+i)}let s=r&&Jr.g?Jr.g:null;return r&&(Jr.g=Jr[i]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Jr[i],t,n,s),i},K1=(e,t,r)=>e.reduce((n,o,a)=>{let i=t[a];if(i&&i.call){let s=i(r),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=l?"."+l:s&&typeof s=="object"?s.props?"":Cn(s,""):s===!1?"":s}return n+o+(i==null?"":i)},"");function Ni(e){let t=this||{},r=e.call?e(t.p):e;return V1(r.unshift?r.raw?K1(r,[].slice.call(arguments,1),t.p):r.reduce((n,o)=>Object.assign(n,o&&o.call?o(t.p):o),{}):r,W1(t.target),t.g,t.o,t.k)}let fh,Hs,Ws;Ni.bind({g:1});let sn=Ni.bind({k:1});function Y1(e,t,r,n){Cn.p=t,fh=e,Hs=r,Ws=n}function Nn(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),l=s.className||o.className;r.p=Object.assign({theme:Hs&&Hs()},s),r.o=/ *go\d+/.test(l),s.className=Ni.apply(r,n)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),Ws&&c[0]&&Ws(s),fh(c,s)}return o}}var q1=e=>typeof e=="function",_i=(e,t)=>q1(e)?e(t):e,Q1=(()=>{let e=0;return()=>(++e).toString()})(),hh=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),X1=20,Il="default",ph=(e,t)=>{let{toastLimit:r}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r)};case 1:return{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return ph(e,{type:e.toasts.find(i=>i.id===n.id)?1:0,toast:n});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(i=>i.id===o||o===void 0?{...i,dismissed:!0,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+a}))}}},Ka=[],gh={toasts:[],pausedAt:void 0,settings:{toastLimit:X1}},Vr={},mh=(e,t=Il)=>
2{Vr[t]=ph(Vr[t]||gh,e),Ka.forEach(([r,n])=>{r===t&&n(Vr[t])})},_h=e=>Object.keys(Vr).forEach(t=>mh(e,t)),J1=e=>Object.keys(Vr).find(t=>Vr[t].toasts.some(r=>r.id===e)),ki=(e=Il)=>t=>{mh(t,e)},Z1={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},e0=(e={},t=Il)=>{let[r,n]=f.useState(Vr[t]||gh),o=f.useRef(Vr[t]);f.useEffect(()=>(o.current!==Vr[t]&&n(Vr[t]),Ka.push([t,n]),()=>{let i=Ka.findIndex(([s])=>s===t);i>-1&&Ka.splice(i,1)}),[t]);let a=r.toasts.map(i=>{var s,l,c;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((s=e[i.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((l=e[i.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||Z1[i.type],style:{...e.style,...(c=e[i.type])==null?void 0:c.style,...i.style}}});return{...r,toasts:a}},t0=(e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(r==null?void 0:r.id)||Q1()}),ma=e=>(t,r)=>{let n=t0(t,e,r);return ki(n.toasterId||J1(n.id))({type:2,toast:n}),n.id},nt=(e,t)=>ma("blank")(e,t);nt.error=ma("error");nt.success=ma("success");nt.loading=ma("loading");nt.custom=ma("custom");nt.dismiss=(e,t)=>{let r={type:3,toastId:e};t?ki(t)(r):_h(r)};nt.dismissAll=e=>nt.dismiss(void 0,e);nt.remove=(e,t)=>{let r={type:4,toastId:e};t?ki(t)(r):_h(r)};nt.removeAll=e=>nt.remove(void 0,e);nt.promise=(e,t,r)=>{let n=nt.loading(t.loading,{...r,...r==null?void 0:r.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let a=t.success?_i(t.success,o):void 0;return a?nt.success(a,{id:n,...r,...r==null?void 0:r.success}):nt.dismiss(n),o}).catch(o=>{let a=t.error?_i(t.error,o):void 0;a?nt.error(a,{id:n,...r,...r==null?void 0:r.error}):nt.dismiss(n)}),e};var r0=1e3,n0=(e,t="default")=>{let{toasts:r,pausedAt:n}=e0(e,t),o=f.useRef(new Map).current,a=f.useCallback((d,h=r0)=>{if(o.has(d))return;let p=setTimeout(()=>{o.delete(d),i({type:4,toastId:d})},h);o.set(d,p)},[]);f.useEffect(()=>{if(n)return;let d=Date.now(),h=r.map(p=>{if(p.duration===1/0)return;let y=(p.duration||0)+p.pauseDuration-(d-p.createdAt);if(y<0){p.visible&&nt.dismiss(p.id);return}return setTimeout(()=>nt.dismiss(p.id,t),y)});return()=>{h.forEach(p=>p&&clearTimeout(p))}},[r,n,t]);let i=f.useCallback(ki(t),[t]),s=f.useCallback(()=>{i({type:5,time:Date.now()})},[i]),l=f.useCallback((d,h)=>{i({type:1,toast:{id:d,height:h}})},[i]),c=f.useCallback(()=>{n&&i({type:6,time:Date.now()})},[n,i]),u=f.useCallback((d,h)=>{let{reverseOrder:p=!1,gutter:y=8,defaultPosition:S}=h||{},b=r.filter(k=>(k.position||S)===(d.position||S)&&k.height),A=b.findIndex(k=>k.id===d.id),x=b.filter((k,B)=>B<A&&k.visible).length;return b.filter(k=>k.visible).slice(...p?[x+1]:[0,x]).reduce((k,B)=>k+(B.height||0)+y,0)},[r]);return f.useEffect(()=>{r.forEach(d=>{if(d.dismissed)a(d.id,d.removeDelay);else{let h=o.get(d.id);h&&(clearTimeout(h),o.delete(d.id))}})},[r,a]),{toasts:r,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:u}}},o0=sn`
3from {
4  transform: scale(0) rotate(45deg);
5	opacity: 0;
6}
7to {
8 transform: scale(1) rotate(45deg);
9  opacity: 1;
10}`,a0=sn`
11from {
12  transform: scale(0);
13  opacity: 0;
14}
15to {
16  transform: scale(1);
17  opacity: 1;
18}`,i0=sn`
19from {
20  transform: scale(0) rotate(90deg);
21	opacity: 0;
22}
23to {
24  transform: scale(1) rotate(90deg);
25	opacity: 1;
26}`,s0=Nn("div")`
27  width: 20px;
28  opacity: 0;
29  height: 20px;
30  border-radius: 10px;
31  background: ${e=>e.primary||"#ff4b4b"};
32  position: relative;
33  transform: rotate(45deg);
34
35  animation: ${o0} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
36    forwards;
37  animation-delay: 100ms;
38
39  &:after,
40  &:before {
41    content: '';
42    animation: ${a0} 0.15s ease-out forwards;
43    animation-delay: 150ms;
44    position: absolute;
45    border-radius: 3px;
46    opacity: 0;
47    background: ${e=>e.secondary||"#fff"};
48    bottom: 9px;
49    left: 4px;
50    height: 2px;
51    width: 12px;
52  }
53
54  &:before {
55    animation: ${i0} 0.15s ease-out forwards;
56    animation-delay: 180ms;
57    transform: rotate(90deg);
58  }
59`,l0=sn`
60  from {
61    transform: rotate(0deg);
62  }
63  to {
64    transform: rotate(360deg);
65  }
66`,c0=Nn("div")`
67  width: 12px;
68  height: 12px;
69  box-sizing: border-box;
70  border: 2px solid;
71  border-radius: 100%;
72  border-color: ${e=>e.secondary||"#e0e0e0"};
73  border-right-color: ${e=>e.primary||"#616161"};
74  animation: ${l0} 1s linear infinite;
75`,u0=sn`
76from {
77  transform: scale(0) rotate(45deg);
78	opacity: 0;
79}
80to {
81  transform: scale(1) rotate(45deg);
82	opacity: 1;
83}`,d0=sn`
840% {
85	height: 0;
86	width: 0;
87	opacity: 0;
88}
8940% {
90  height: 0;
91	width: 6px;
92	opacity: 1;
93}
94100% {
95  opacity: 1;
96  height: 10px;
97}`,f0=Nn("div")`
98  width: 20px;
99  opacity: 0;
100  height: 20px;
101  border-radius: 10px;
102  background: ${e=>e.primary||"#61d345"};
103  position: relative;
104  transform: rotate(45deg);
105
106  animation: ${u0} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
107    forwards;
108  animation-delay: 100ms;
109  &:after {
110    content: '';
111    box-sizing: border-box;
112    animation: ${d0} 0.2s ease-out forwards;
113    opacity: 0;
114    animation-delay: 200ms;
115    position: absolute;
116    border-right: 2px solid;
117    border-bottom: 2px solid;
118    border-color: ${e=>e.secondary||"#fff"};
119    bottom: 6px;
120    left: 6px;
121    height: 10px;
122    width: 6px;
123  }
124`,h0=Nn("div")`
125  position: absolute;
126`,p0=Nn("div")`
127  position: relative;
128  display: flex;
129  justify-content: center;
130  align-items: center;
131  min-width: 20px;
132  min-height: 20px;
133`,g0=sn`
134from {
135  transform: scale(0.6);
136  opacity: 0.4;
137}
138to {
139  transform: scale(1);
140  opacity: 1;
141}`,m0=Nn("div")`
142  position: relative;
143  transform: scale(0.6);
144  opacity: 0.4;
145  min-width: 20px;
146  animation: ${g0} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
147    forwards;
148`,_0=({toast:e})=>{let{icon:t,type:r,iconTheme:n}=e;return t!==void 0?typeof t=="string"?f.createElement(m0,null,t):t:r==="blank"?null:f.createElement(p0,null,f.createElement(c0,{...n}),r!=="loading"&&f.createElement(h0,null,r==="error"?f.createElement(s0,{...n}):f.createElement(f0,{...n})))},y0=e=>`
1490% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
150100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
151`,E0=e=>`
1520% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
153100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
154`,v0="0%{opacity:0;} 100%{opacity:1;}",T0="0%{opacity:1;} 100%{opacity:0;}",C0=Nn("div")`
155  display: flex;
156  align-items: center;
157  background: #fff;
158  color: #363636;
159  line-height: 1.3;
160  will-change: transform;
161  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
162  max-width: 350px;
163  pointer-events: auto;
164  padding: 8px 10px;
165  border-radius: 8px;
166`,R0=Nn("div")`
167  display: flex;
168  justify-content: center;
169  margin: 4px 10px;
170  color: inherit;
171  flex: 1 1 auto;
172  white-space: pre-line;
173`,S0=(e,t)=>{let r=e.includes("top")?1:-1,[n,o]=hh()?[v0,T0]:[y0(r),E0(r)];return{animation:t?`${sn(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${sn(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},b0=f.memo(({toast:e,position:t,style:r,children:n})=>{let o=e.height?S0(e.position||t||"top-center",e.visible):{opacity:0},a=f.createElement(_0,{toast:e}),i=f.createElement(R0,{...e.ariaProps},_i(e.message,e));return f.createElement(C0,{className:e.className,style:{...o,...r,...e.style}},typeof n=="function"?n({icon:a,message:i}):f.createElement(f.Fragment,null,a,i))});Y1(f.createElement);var I0=({id:e,className:t,style:r,onHeightUpdate:n,children:o})=>{let a=f.useCallback(i=>{if(i){let s=()=>{let l=i.getBoundingClientRect().height;n(e,l)};s(),new MutationObserver(s).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,n]);return f.createElement("div",{ref:a,className:t,style:r},o)},O0=(e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:hh()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}},A0=Ni`
174  z-index: 9999;
175  > * {
176    pointer-events: auto;
177  }
178`,wa=16,w0=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:n,children:o,toasterId:a,containerStyle:i,containerClassName:s})=>{let{toasts:l,handlers:c}=n0(r,a);return f.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:wa,left:wa,right:wa,bottom:wa,pointerEvents:"none",...i},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(u=>{let d=u.position||t,h=c.calculateOffset(u,{reverseOrder:e,gutter:n,defaultPosition:t}),p=O0(d,h);return f.createElement(I0,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?A0:"",style:p},u.type==="custom"?_i(u.message,u):o?o(u):f.createElement(b0,{toast:u,position:d}))}))};const Bt=[];for(let e=0;e<256;++e)Bt.push((e+256).toString(16).slice(1));function D0(e,t=0){return(Bt[e[t+0]]+Bt[e[t+1]]+Bt[e[t+2]]+Bt[e[t+3]]+"-"+Bt[e[t+4]]+Bt[e[t+5]]+"-"+Bt[e[t+6]]+Bt[e[t+7]]+"-"+Bt[e[t+8]]+Bt[e[t+9]]+"-"+Bt[e[t+10]]+Bt[e[t+11]]+Bt[e[t+12]]+Bt[e[t+13]]+Bt[e[t+14]]+Bt[e[t+15]]).toLowerCase()}const N0=new Uint8Array(16);function k0(){return crypto.getRandomValues(N0)}function x0(e,t,r){return crypto.randomUUID?crypto.randomUUID():M0(e)}function M0(e,t,r){var o,a,i;e=e||{};const n=(i=(a=e.random)!=null?a:(o=e.rng)==null?void 0:o.call(e))!=null?i:k0();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,D0(n)}const yh="studio:auth-provider",js=yh,Eh="auth",L0="userToken",P0="workspaceEngineSession",zs=e=>e==="firebase"||e==="supabase",Go=()=>{var e,t;try{const r=(t=(e=globalThis.localStorage)==null?void 0:e.getItem(js))!=null?t:null;return zs(r)?r:void 0}catch(r){return}},U0=()=>{var e,t,r;try{(e=globalThis.localStorage)==null||e.removeItem(L0),(t=globalThis.sessionStorage)==null||t.removeItem(P0),(r=globalThis.sessionStorage)==null||r.clear()}catch(n){}},B0=()=>Go(),F0=(e=()=>!0)=>{var o,a,i,s;let t=null;try{t=new URL((a=(o=globalThis.location)==null?void 0:o.href)!=null?a:"").searchParams.get(Eh)}catch(l){return Go()}if(t===null)return Go();const r=Go();if(zs(t)&&!e(t))return Oc(),r;try{zs(t)?(i=globalThis.localStorage)==null||i.setItem(js,t):(s=globalThis.localStorage)==null||s.removeItem(js)}catch(l){}const n=Go();return n!==r&&U0(),Oc(),n},Oc=()=>{var e;try{const t=new URL(globalThis.location.href);t.searchParams.delete(Eh),(e=globalThis.history)==null||e.replaceState(globalThis.history.state,"",`${t.pathname}${t.search}${t.hash}`)}catch(t){}};let vh;const _x=e=>{vh=e},So=()=>vh;var Ho=(e=>(e.VOICE_GENDER_UNSPECIFIED="VOICE_GENDER_UNSPECIFIED",e.VOICE_GENDER_MALE="VOICE_GENDER_MALE",e.VOICE_GENDER_FEMALE="VOICE_GENDER_FEMALE",e.VOICE_GENDER_NEUTRAL="VOICE_GENDER_NEUTRAL",e))(Ho||{}),Wo=(e=>(e.VOICE_AGE_UNSPECIFIED="VOICE_AGE_UNSPECIFIED",e.VOICE_AGE_YOUNG="VOICE_AGE_YOUNG",e.VOICE_AGE_MIDDLE_AGED="VOICE_AGE_MIDDLE_AGED",e.VOICE_AGE_OLD="VOICE_AGE_OLD",e))(Wo||{}),Bn=(e=>(e.ACCENT_UNSPECIFIED="ACCENT_UNSPECIFIED",e.ACCENT_BRITISH="ACCENT_BRITISH",e.ACCENT_RUSSIAN="ACCENT_RUSSIAN",e.ACCENT_AUSTRALIAN="ACCENT_AUSTRALIAN",e.ACCENT_GERMAN="ACCENT_GERMAN",e.ACCENT_FRENCH="ACCENT_FRENCH",e))(Bn||{});const Ac=3,$0=500,G0=3,H0=.3,W0=e=>typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError",j0=e=>e.status>=500&&e.status<600,z0=e=>e instanceof TypeError,V0=(e,t)=>new Promise((r,n)=>{if(t!=null&&t.aborted){n(new DOMException("Aborted","AbortError"));return}const o=()=>{clearTimeout(a),n(new DOMException("Aborted","AbortError"))},a=setTimeout(()=>{t==null||t.removeEventListener("abort",o),r()},e);t==null||t.addEventListener("abort",o,{once:!0})}),K0=async(e,t)=>{var s,l;const n=((s=t==null?void 0:t.method)!=null?s:"GET").toUpperCase()==="GET",o=(l=t==null?void 0:t.signal)!=null?l:null;let a,i;for(let c=0;c<Ac;c++){try{const u=await globalThis.fetch(e,t);if(!n||!j0(u))return u;i=u}catch(u){if(W0(u)||!n||!z0(u))throw u;a=u}if(c<Ac-1){const u=$0*Math.pow(G0,c),d=u*Math.random()*H0;await V0(u+d,o)}}if(i)return i;throw a};var Ue={};globalThis.configs||(globalThis.configs={});var zd,Vd,Kd;const yx=(Kd=(Vd=(zd=Ue.REACT_APP_GRPC_GATEWAY_BASE_URI)!=null?zd:Ue.GRPC_GATEWAY_BASE_URI)!=null?Vd:globalThis.configs.GRPC_GATEWAY_BASE_URI)!=null?Kd:"http://localhost:8081",_a=e=>{var r,n,o,a,i,s;const t=(a=(o=(n=(r=Ue.REACT_APP_GRPC_GATEWAY_BASE_URI)!=null?r:Ue.GRPC_GATEWAY_BASE_URI)!=null?n:Ue.NEXT_PUBLIC_GRPC_GATEWAY_BASE_URI)!=null?o:globalThis.configs.GRPC_GATEWAY_BASE_URI)!=null?a:"http://localhost:8081";return e&&t.includes("localhost")?(s=(i=Ue.REACT_APP_SSO_GATEWAY_BASE_URI)!=null?i:globalThis.configs.SSO_GATEWAY_BASE_URI)!=null?s:"https://studio.dev.inworld.ai":t},Th=()=>{var e,t,r;return(r=(t=(e=Ue==null?void 0:Ue.REACT_APP_STUDIO_API_URL)!=null?e:Ue==null?void 0:Ue.STUDIO_API_URL)!=null?t:globalThis.configs.STUDIO_API_URL)!=null?r:"https://api.dev.inworld.ai"},Y0=()=>{var t,r,n;return(n=(r=(t=Ue.GRPC_GATEWAY_INTERNAL_URI)!=null?t:Ue.GRPC_GATEWAY_BASE_URI)!=null?r:Ue.NEXT_PUBLIC_GRPC_GATEWAY_BASE_URI)!=null?n:"http://localhost:8081"},Ex=()=>{var t;const e=(t=Ue.REACT_APP_QUERY_SERVICE_URL)!=null?t:globalThis.configs.QUERY_SERVICE_URL;return e||"https://query-service.dev.inworld.dev"};var Yd,qd,Qd;(Qd=(qd=(Yd=Ue.REACT_APP_GRPC_GATEWAY_WEBSOCKET_PROXY_BASE_URI)!=null?Yd:Ue.GRPC_GATEWAY_WEBSOCKET_PROXY_BASE_URI)!=null?qd:globalThis.configs.GRPC_GATEWAY_WEBSOCKET_PROXY_BASE_URI)!=null;var Xd,Jd;(Jd=(Xd=Ue.REACT_APP_OCULUS_ORGANIZATION_ID)!=null?Xd:globalThis.configs.OCULUS_ORGANIZATION_ID)!=null;const vx=/^[a-z0-9_-]+$/,Tx="Something went wrong";var Zd;(Zd=globalThis.configs.USERCONTENT_BASE_URL)!=null;var ef,tf,rf,nf,of,af,sf,lf,cf,uf,df,ff,hf,pf;const q0={apiKey:(tf=(ef=Ue.REACT_APP_FIREBASE_API_KEY)!=null?ef:globalThis.configs.FIREBASE_API_KEY)!=null?tf:"AIzaSyAPVBLVid0xPwjuU4Gmn_6_GyqxBq-SwQs",authDomain:(nf=(rf=Ue.REACT_APP_FIREBASE_AUTH_DOMAIN)!=null?rf:globalThis.configs.FIREBASE_AUTH_DOMAIN)!=null?nf:"auth.inworld.ai",projectId:(af=(of=Ue.REACT_APP_FIREBASE_PROJECT_ID)!=null?of:globalThis.configs.FIREBASE_PROJECT_ID)!=null?af:"conversational-324617",storageBucket:(lf=(sf=Ue.REACT_APP_FIREBASE_STORAGE_BUCKET)!=null?sf:globalThis.configs.FIREBASE_STORAGE_BUCKET)!=null?lf:"conversational-324617.appspot.com",messagingSenderId:(uf=(cf=Ue.REACT_APP_FIREBASE_MESSAGING_SENDER_ID)!=null?cf:globalThis.configs.FIREBASE_MESSAGING_SENDER_ID)!=null?uf:"297170017243",appId:(ff=(df=Ue.REACT_APP_FIREBASE_APP_ID)!=null?df:globalThis.configs.FIREBASE_APP_ID)!=null?ff:"1:297170017243:web:790801f5c786f17ec5a5fe",measurementId:(pf=(hf=Ue.REACT_APP_MEASUREMENT_ID)!=null?hf:globalThis.configs.FIREBASE_MEASUREMENT_ID)!=null?pf:"G-PW7R48TKHG"},Ch=()=>{var t,r;return((r=(t=Ue.REACT_APP_AUTH_PROVIDER)!=null?t:globalThis.configs.AUTH_PROVIDER)!=null?r:"firebase")==="supabase"?"supabase":"firebase"},Q0=e=>{if(e===Ch())return!1;if(e==="supabase"){const{url:t,anonKey:r}=Rh();return!!(t&&r)}return!0},X0=()=>{const e=Ch(),t=B0();if(!t||t===e)return e;const{url:r,anonKey:n}=Rh();return r&&n?t:e},Rh=()=>{var e,t,r,n;return{url:(t=(e=Ue.REACT_APP_SUPABASE_URL)!=null?e:globalThis.configs.SUPABASE_URL)!=null?t:"",anonKey:(n=(r=Ue.REACT_APP_SUPABASE_ANON_KEY)!=null?r:globalThis.configs.SUPABASE_ANON_KEY)!=null?n:""}},J0="https://inworld.ai/terms",Cx="https://inworld.ai/referral-program-terms",Z0="https://inworld.ai/privacy",Rx="https://inworld.ai/license",e_="99522f13f035d2831a3f88f28078de3d",Ol=()=>{var e;return(e=globalThis.configs.MIXPANEL_PROJECT_KEY)!=null?e:e_};var gf;const t_=((gf=globalThis.configs.MIXPANEL_PROJECT_DEBUG)!=null?gf:"true")==="true";var mf,_f;const Sx=new Map(Object.entries((_f=(mf=globalThis.configs.DEBUG)==null?void 0:mf.INTERCEPTORS)!=null?_f:{}));
178var yf,Ef;(Ef=Ue.IP_DISCOVER_URI)!=null||(yf=globalThis.configs.DEBUG)==null||yf.IP_DISCOVER_URI;var vf,Tf;const r_=Number((Tf=(vf=Ue.TOS_VERSION)!=null?vf:globalThis.configs.TOS_VERSION)!=null?Tf:2);var Cf,Rf;const n_=(Rf=(Cf=Ue.UNLEASH_CLIENT_KEY)!=null?Cf:globalThis.configs.UNLEASH_CLIENT_KEY)!=null?Rf:"mBi8gOGOrkvIWZq9xkC8";var Sf,bf,If;const o_=(If=(bf=(Sf=Ue.REACT_APP_UNLEASH_PROXY_URI)!=null?Sf:Ue.NEXT_PUBLIC_UNLEASH_PROXY_URI)!=null?bf:globalThis.configs.UNLEASH_PROXY_URI)!=null?If:"https://studio.dev.inworld.ai/unleash/proxy",a_="studio-console";var Of;const i_=(Of=globalThis.configs.UNLEASH_REFRESH_INTERVAL)!=null?Of:0;var Af;const s_=(Af=globalThis.configs.UNLEASH_METRICS_INTERVAL)!=null?Af:600,l_={url:o_,clientKey:n_,appName:a_,refreshInterval:i_,metricsInterval:s_,fetch:K0};var wf,Df;(Df=(wf=Ue.REACT_APP_WEBRTC_BASE_URI)!=null?wf:globalThis.configs.WEBRTC_BASE_URI)!=null;var Nf,kf,xf;const c_=(xf=(kf=(Nf=Ue.REACT_APP_STUDIO_API_URL)!=null?Nf:Ue.STUDIO_API_URL)!=null?kf:globalThis.configs.STUDIO_API_URL)!=null?xf:"https://api.dev.inworld.ai";var Mf;const bx=(Mf=globalThis.configs.PUBLIC_STUDIO_API_URL)!=null?Mf:c_;var Lf;const Ix=(Lf=Ue.O11Y_WS_URL)!=null?Lf:"";var Pf;const Ya=(Pf=Ue.REACT_APP_NATIVE_DOCS_URL)!=null?Pf:globalThis.configs.NATIVE_DOCS_URL,Ox=Ya!=null?Ya:"https://docs.dev.inworld.ai",Ax=Number(globalThis.configs.PAYMENT_PROCESSING_DELAY_MS)||3e3;var Uf;(Uf=globalThis.configs.WEBRTC_ICE_SERVERS)!=null;var Bf;(Bf=globalThis.configs.WEBRTC_ICE_TIMEOUT_MS)!=null;const Sh=globalThis;Bn.ACCENT_UNSPECIFIED,Bn.ACCENT_AUSTRALIAN,Bn.ACCENT_BRITISH,Bn.ACCENT_FRENCH,Bn.ACCENT_GERMAN,Bn.ACCENT_RUSSIAN;Ho.VOICE_GENDER_UNSPECIFIED,Ho.VOICE_GENDER_NEUTRAL,Ho.VOICE_GENDER_FEMALE,Ho.VOICE_GENDER_MALE;Wo.VOICE_AGE_UNSPECIFIED,Wo.VOICE_AGE_MIDDLE_AGED,Wo.VOICE_AGE_OLD,Wo.VOICE_AGE_YOUNG;const co="IW_VISITED",u_="n-c-r-k",wx=`${Th()}/api/v1/inworld-assistant`,bh="application/vnd.inworld.tts.v1+protobuf",Hn={BINARY:"BINARY",JSON:"JSON"};var Al=(e=>(e.Firebase="firebase",e.Inworld="inworld",e.Supabase="supabase",e))(Al||{});const d_=e=>typeof e=="object"&&e!==null&&typeof e.code=="number"&&typeof e.message=="string"&&("details"in e?Array.isArray(e.details):!0),f_=e=>typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.done=="boolean"&&("error"in e?d_(e.error):!0),h_={"no-session":"You are signed out. Sign in again to continue.",unresolved:"Could not confirm your sign-in session. Reload the page and try again.","refresh-failed":"Could not refresh your sign-in session.","exchange-failed":"Could not renew your Inworld session."},p_=new Set(["auth/user-token-expired","auth/user-disabled","auth/user-not-found","auth/invalid-user-token"]),Ih="AuthUnavailableError";class ia extends Error{constructor(t,r={}){var o;const n=(o=r.message)!=null?o:h_[t];super(r.code?`${n} (${r.code})`:n),this.name=Ih,this.reason=t,this.code=r.code,this.rpc=r.rpc}}const xi=e=>e instanceof ia||e instanceof Error&&e.name===Ih,g_=e=>xi(e)&&!!e.code&&p_.has(e.code);let Vs=null,no=null;const m_=3e3,wc=e=>{Vs=e,no=null},__=e=>{var n;if(Mi||!Vs)return;const t=`${e.reason}:${(n=e.code)!=null?n:""}`,r=Date.now();if(!((no==null?void 0:no.key)===t&&r-no.at<m_)){no={key:t,at:r};try{Vs(e)}catch(o){console.error("auth failure handler threw",o)}}};let Mi=!1;const Oh=()=>{Mi=!0},Ks=()=>{Mi=!1},Dc=()=>Mi;let Ah=null;const y_=e=>{Ah=e},E_=async e=>{const t=Ah;if(!t)return"unregistered";let r;try{return await Promise.race([Promise.resolve(t()).then(()=>"ready",()=>"ready"),new Promise(n=>{r=setTimeout(()=>n("timeout"),e)})])}finally{r&&clearTimeout(r)}},Ys=1e4,Nc=e=>{const t=e==null?void 0:e.code;return typeof t=="string"&&t?t:void 0},v_=async e=>{var n,o;const t=(n=e==null?void 0:e.currentUser)!=null?n:null;if(t)return{settled:!0,user:t};const r=await E_(Ys);return r==="ready"?{settled:!0,user:(o=e==null?void 0:e.currentUser)!=null?o:null}:r==="timeout"?{settled:!1,user:null}:new Promise(a=>{let i=!1,s,l;const c=(u,d)=>{i||(i=!0,l&&clearTimeout(l),s==null||s(),a({settled:u,user:d}))};if(s=e.onAuthStateChanged(u=>c(!0,u!=null?u:null)),i){s();return}l=setTimeout(()=>c(!1,null),Ys)})},yi=async e=>{const t=So();if(t)try{const a=await t.getIdToken(e);return a?{status:"ok",token:a}:{status:"no-session"}}catch(a){return console.error("Could not get provider user token",a),{status:"refresh-failed",code:Nc(a)}}const r=mr.auth(),{settled:n,user:o}=await v_(r);if(!o)return n?{status:"no-session"}:{status:"unresolved"};if(typeof o.getIdToken!="function")return console.error("Could not get Firebase user token. getIdToken is undefined"),{status:"refresh-failed"};try{const a=await o.getIdToken(e==null?void 0:e.refresh);
178return typeof a=="string"&&a?{status:"ok",token:a}:{status:"refresh-failed"}}catch(a){return console.error("Could not get Firebase user token",a),{status:"refresh-failed",code:Nc(a)}}},wh=async e=>{const t=await yi(e);return t.status==="ok"?t.token:void 0},T_=Object.freeze(Object.defineProperty({__proto__:null,AUTH_STATE_HARD_CAP_MS:Ys,getFireBaseIdToken:wh,resolveFirebaseIdToken:yi},Symbol.toStringTag,{value:"Module"})),Dh="sceneEngineSession",wl="workspaceEngineSession",C_="runtimeKeySession",Nh="sso_required",kh=e=>Dn(e)&&e.code===Cr.PERMISSION_DENIED&&e.message===Nh,R_=e=>Dn(e)&&e.code===Cr.PERMISSION_DENIED&&typeof e.message=="string"&&/(?:no|insufficient|not enough)\s+(?:money|credits|funds)|add\s+credits/i.test(e.message),S_=/(?:upgrade your plan|add a payment method|payment method on file)/i,b_=e=>Dn(e)&&e.code===Cr.PERMISSION_DENIED&&typeof e.message=="string"&&S_.test(e.message),xh=e=>Dn(e)&&e.code===Cr.UNAUTHENTICATED&&e.message==="unauthenticated";var Ff,$f;let Wt=typeof window!="undefined"&&(($f=(Ff=window.location)==null?void 0:Ff.pathname)==null?void 0:$f.startsWith("/try/"));const Dx=e=>{Wt=e},I_=()=>Wt,kc="/internal/public/proxy",Li=e=>{if(!Wt)return e;let t=e;try{const r=new URL(e);t=r.pathname+r.search}catch(r){}return t.startsWith("/")||(t=`/${t}`),t.startsWith(kc)?t:`${kc}${t}`};class O_ extends Error{constructor(t="public-playground gate reached"){super(t),this.name="PublicPlaygroundGateError",this.reason="freemium"}}let qs=null;const Nx=e=>{qs=e};let sa=null;const kx=e=>{sa=e},Dl=()=>{if(!Wt||!qs)return;if(!qs())throw sa&&sa(),new O_},A_=()=>{Wt&&sa&&sa()},Pi=async e=>{try{return await e.json()}catch(t){throw new Error(`HTTP ${e.status} ${e.statusText}`.trim())}},Ei=e=>e===Hn.BINARY?{Accept:bh}:{},la=e=>{var t;return((t=e.headers.get("Content-Type"))==null?void 0:t.split(";",1)[0].trim().toLowerCase())===bh},ca=async e=>{var t;if(!la(e)){const{TTSBinaryProtocolError:r}=await an(async()=>{const{TTSBinaryProtocolError:n}=await import("./ttsBinaryProtocol.CEzNpHwu.js");return{TTSBinaryProtocolError:n}},__vite__mapDeps([0,1,2,3]));throw new r(`Expected a TTS binary response, received ${(t=e.headers.get("Content-Type"))!=null?t:"no Content-Type"}`)}},ln=(e,t)=>e&&typeof e=="object"&&!("status"in e)?Object.assign(e,{status:t.status}):e,vi=async e=>{await ca(e);const{decodeTTSBinarySynthesisResponse:t,TTSBinaryProtocolError:r}=await an(async()=>{const{decodeTTSBinarySynthesisResponse:n,TTSBinaryProtocolError:o}=await import("./ttsBinaryProtocol.CEzNpHwu.js");return{decodeTTSBinarySynthesisResponse:n,TTSBinaryProtocolError:o}},__vite__mapDeps([0,1,2,3]));try{t(new Uint8Array(await e.arrayBuffer()))}catch(n){throw ln(n,e)}throw new r(`TTS binary request failed with HTTP ${e.status}`)},Mh=60*1e3,Lh="Grpc-Metadata-X-Authorization-Bearer-Type",Ui="userToken";let An=null;const Sr=()=>({"X-Request-ID":x0()}),Ph=()=>localStorage.removeItem(Ui),Nl=async()=>{if(P_()){const e=globalThis.localStorage.getItem(Ui);return JSON.parse(e)}return An||Uh()},Uh=async e=>(An||(An=D_(e)),An),xc=e=>(__(e),e),w_=async()=>{const e=await yi({refresh:!0});return e.status!=="refresh-failed"?e:(Ph(),yi({refresh:!0}))},D_=async e=>{var t,r;try{if(e&&Ks(),!e){const o=await w_();if(o.status!=="ok"){if(An=null,o.status==="no-session"||Dc())return;throw xc(new ia(o.status,{code:o.status==="refresh-failed"?o.code:void 0}))}e=o.token}const n=await Fi(Tn.GenerateTokenUser,{token:e,type:(r=(t=So())==null?void 0:t.userAuthType)!=null?r:uh.AUTH_TYPE_FIREBASE},{propagateError:!0});if(n&&(localStorage.setItem(Ui,JSON.stringify(n)),Ks()),An=null,!n&&!Wt&&!Dc())throw xc(new ia("exchange-failed"));return n}catch(n){throw!kh(n)&&!xh(n)&&!xi(n)&&nt.error(`Error getting user token, please refresh the page and try again.
179 ${n==null?void 0:n.message}`,{duration:2e4,id:"generateInworldTokenError"}),An=null,n}},N_=async e=>{const t=bl.GenerateDefaultSessionToken,r=e.sessionType==="workspace"?Dh:wl;if(!e.refresh){const o=sessionStorage.getItem(r),a=o&&o!=="undefined"?JSON.parse(o):null;if(a&&yo(a))return a}if(Wt){const o=sessionStorage.getItem(r),a=o&&o!=="undefined"?JSON.parse(o):null;return a&&yo(a)?a:void 0}let n=await Fi(t,{parent:e.parent});return n&&sessionStorage.setItem(r,JSON.stringify(n)),n},Bi=async e=>{const t=bl.GenerateDefaultSessionToken,r=`${wl}-${e.parent}`;if(!e.refresh){const o=sessionStorage.getItem(r),a=o&&o!=="undefined"?JSON.parse(o):null;if(a&&yo(a))return a}if(Wt){const o=sessionStorage.getItem(r),a=o&&o!=="undefined"?JSON.parse(o):null;return a&&yo(a)?a:void 0}let n=await Fi(t,{parent:e.parent});return n&&sessionStorage.setItem(r,JSON.stringify(n)),n},xx=()=>{let e;return{lastRequestedWorkspace:e,setLastRequestedWorkspace:r=>{e=r}}},Mx=async(e,t,r)=>{var a;if(Dl(),Wt){const i=await fetch(Li(e),{method:"POST",body:r,headers:{"Content-Type":"application/json",...Sr()}});if(!i.ok){const s=await Pi(i);throw ln(s==null?void 0:s.error,i)}return i.json()}
179const n=await Bi({refresh:!1,parent:`workspaces/${t}`}),o=await fetch(e,{method:"POST",body:r,headers:{"Content-Type":"application/json",Authorization:`Bearer ${n==null?void 0:n.token}`,...Sr()}});if(!o.ok)throw ln((a=await o.json())==null?void 0:a.error,o);return o.json()},Lx=async(e,t)=>{var o;if(Wt){const a=await fetch(Li(e),{method:"GET",headers:{...Sr()}});if(!a.ok){const i=await Pi(a);throw ln(i==null?void 0:i.error,a)}return a.json()}const r=await N_({refresh:!1,parent:`workspaces/${t}`,sessionType:"workspace"}),n=await fetch(e,{method:"GET",headers:{Authorization:`Bearer ${r==null?void 0:r.token}`,...Sr()}});if(!n.ok)throw ln((o=await n.json())==null?void 0:o.error,n);return n.json()},Bh=async e=>{const t=bl.GenerateSessionToken,r=`${C_}-${e.parent}`;if(!e.refresh){const o=sessionStorage.getItem(r),a=o&&o!=="undefined"?JSON.parse(o):null;if(a&&yo(a))return a}if(Wt){const o=sessionStorage.getItem(r),a=o&&o!=="undefined"?JSON.parse(o):null;return a&&yo(a)?a:void 0}let n=await Fi(t,{parent:e.parent,key:e.runtimeKey});return n&&sessionStorage.setItem(r,JSON.stringify(n)),n},Ti={"x-user-agent":"inworld-portal"},Px=async(e,t,r,n="POST",o,a,i=Hn.JSON)=>{if(n==="POST"&&Dl(),Wt){const c=await fetch(Li(e),{method:n,...r?{body:r}:{},headers:{...Ei(i),...Ti,...Sr()},signal:a});if(!c.ok||!c.body){if(la(c))return vi(c);throw ln(await Pi(c),c)}return i===Hn.BINARY&&await ca(c),c.body}let s;o?s=await Bh({refresh:!1,parent:`workspaces/${t}`,runtimeKey:o}):s=await Bi({refresh:!1,parent:`workspaces/${t}`});const l=await fetch(e,{method:n,...r?{body:r}:{},headers:{...Ei(i),...Ti,Authorization:`Bearer ${s==null?void 0:s.token}`,...Sr()},signal:a});if(!l.ok||!l.body){if(la(l))return vi(l);throw ln(await l.json(),l)}return i===Hn.BINARY&&await ca(l),l.body},Ux=async(e,t,r,n="POST",o,a=Hn.JSON)=>{if(n==="POST"&&Dl(),Wt){const l=await fetch(Li(e),{method:n,...r?{body:r}:{},headers:{...Ei(a),...Ti,...Sr()}});if(!l.ok){if(la(l))return vi(l);throw ln(await Pi(l),l)}if(a===Hn.BINARY){await ca(l);const{decodeTTSBinarySynthesisResponse:c}=await an(async()=>{const{decodeTTSBinarySynthesisResponse:u}=await import("./ttsBinaryProtocol.CEzNpHwu.js");return{decodeTTSBinarySynthesisResponse:u}},__vite__mapDeps([0,1,2,3]));return c(new Uint8Array(await l.arrayBuffer()))}return l.json()}let i;o?i=await Bh({refresh:!1,parent:`workspaces/${t}`,runtimeKey:o}):i=await Bi({refresh:!1,parent:`workspaces/${t}`});const s=await fetch(e,{method:n,...r?{body:r}:{},headers:{...Ei(a),...Ti,Authorization:`Bearer ${i==null?void 0:i.token}`,...Sr()}});if(!s.ok){if(la(s))return vi(s);throw ln(await s.json(),s)}if(a===Hn.BINARY){await ca(s);const{decodeTTSBinarySynthesisResponse:l}=await an(async()=>{const{decodeTTSBinarySynthesisResponse:c}=await import("./ttsBinaryProtocol.CEzNpHwu.js");return{decodeTTSBinarySynthesisResponse:c}},__vite__mapDeps([0,1,2,3]));return l(new Uint8Array(await s.arrayBuffer()))}return s.json()},Bx=async(e,t,r,n,o)=>{if(Wt){const i={headers:{...Sr()},pathPrefix:"/internal/public/proxy",signal:n};try{return await e(r,i)}catch(s){throw Dn(s)&&s.code===Cr.PERMISSION_DENIED?new Error("Your role doesn't permit this action in the shared workspace.",{cause:s}):s}}let a;if(a=await Bi({refresh:!1,parent:`workspaces/${t}`}),!(a!=null&&a.token))throw new Ro({code:Cr.UNAUTHENTICATED,message:"No session token available for router request.",details:[]});if(a!=null&&a.token){const i={headers:{Authorization:`Bearer ${a==null?void 0:a.token}`,...Sr()},pathPrefix:Th(),signal:n};try{return await e(r,i)}catch(s){throw Dn(s)&&s.code===Cr.PERMISSION_DENIED?new Error("Your role doesn't permit this action in the shared workspace.",{cause:s}):s}}},k_=async()=>{Oh(),Ph(),L_();try{const e=So();e?await e.signOut():await mr.auth().signOut()}catch(e){throw Ks(),e}window.location.reload()},jo=async()=>{const e=So();if(e){await e.signOut();return}await mr.auth().signOut()},x_=()=>{Oh(),sessionStorage.clear();const e=["colorMode",co,"studio:login-preferences",yh];for(let t in localStorage)e.includes(t)||localStorage.removeItem(t)},gt=async(e,t,r)=>{if(Wt)return;const n=await Nl();if(n){const o={...n.token&&n.type&&{headers:{Authorization:`${n.type} ${n.token}`,[Lh]:Al.Inworld,"nvidia-cloud":localStorage.getItem(u_),...Sr()}},pathPrefix:_a(),signal:r};try{return await e(t,o)}catch(a){throw Dn(a)&&a.code===Cr.PERMISSION_DENIED&&a.message!==Nh&&!R_(a)&&!b_(a)&&
179(a.message="Your role doesn't permit this action in the shared workspace."),a}}},M_=async(e,t)=>{const r=await e;if(r!==void 0)return r;throw Wt?new ia("no-session",{rpc:t,message:`${t} needs a signed-in Inworld account.`}):new ia("no-session",{rpc:t})},Fi=async(e,t,r={})=>{var n,o;if(!Wt)try{const a=await wh(),i=(o=(n=So())==null?void 0:n.bearerType)!=null?o:Al.Firebase,s={...a&&{headers:{Authorization:`Bearer ${a}`,[Lh]:i,...Sr()}},pathPrefix:_a()};return e(t,s)}catch(a){if(console.error("Error getting Firebase token",a),r.propagateError)throw a;await k_()}},L_=()=>{sessionStorage.removeItem(Dh),sessionStorage.removeItem(wl)},yo=e=>e.expirationTime&&new Date(e.expirationTime).getTime()-new Date().getTime()>Mh,P_=()=>{const e=globalThis.localStorage.getItem(Ui);if(!e||e==="undefined"||e==="null")return!1;let t;try{t=JSON.parse(e)}catch(r){return!1}return(t==null?void 0:t.expirationTime)&&new Date(t.expirationTime).getTime()-new Date().getTime()>Mh};async function Jo(e,t,r={maxRetries:5,backoffFactor:2,minTimeout:300},n){var c;const o=r.maxRetries,a=r.backoffFactor,i=r.minTimeout,s=(c=r.maxTimeout)!=null?c:i*a**o*2,l=async(u,d)=>{var h;d==null||d.throwIfAborted();try{const p=await gt(e,t,d);if(f_(p)&&(p!=null&&p.done)){if((p!=null&&p.error||(h=p==null?void 0:p.metadata)!=null&&h.error)&&r.withMetadata)throw p;if(p!=null&&p.error)throw p.error;return p}return p}catch(p){if(xi(p))throw p;const y=p,S=Dn(p);if((S&&F1.includes(y.code)||!S)&&u<o){const A=Math.min(i*Math.pow(a,u),s);return new Promise(x=>{setTimeout(()=>{x(l(u+1))},A)})}else throw new Ro(y.metadata?y.error:y,y.metadata)}};return l(1,n)}function U_(e){return Ii("MuiCollapse",e)}pa("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Mc={},B_=e=>{const{orientation:t,classes:r}=e;return Oi({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},U_,r)},F_=Ze("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(Ai(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),$_=Ze("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),G_=Ze("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Qs=f.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:s="0px",component:l,disablePrefersReducedMotion:c=!1,easing:u,in:d,onEnter:h,onEntered:p,onEntering:y,onExit:S,onExited:b,onExiting:A,orientation:x="vertical",slots:k=Mc,slotProps:B=Mc,style:C,timeout:P=Kg.standard,TransitionComponent:M=Yg,...v}=n,$={...n,orientation:x,collapsedSize:s},W=B_($),oe=un(),te=f.useRef(null),se=f.useRef(null),ie=typeof s=="number"?`${s}px`:s,ee=x==="horizontal",de=ee?"width":"height",Y=qg(oe.motion.reducedMotion,c),ce=f.useRef(null),he=Qg(r,ce),Oe=()=>te.current?te.current[ee?"clientWidth":"clientHeight"]:0,Ce=Qn(ce,(Ne,Be)=>{te.current&&ee&&(te.current.style.position="absolute"),Ne.style[de]=ie,h&&h(Ne,Be)}),ye=Qn(ce,(Ne,Be)=>{var Dt;const ct=Oe();te.current&&ee&&(te.current.style.position="");const{duration:Q,easing:Ye}=lc({style:C,timeout:P,easing:u},{mode:"enter"});if(P==="auto"&&!Y.shouldReduceMotion){const Xt=oe.transitions.getAutoHeightDuration(ct);se.current=Xt}else se.current=null;const ot=Y.getTransitionTiming({duration:(Dt=se.current)!=null?Dt:Q,delay:void 0});
179Ne.style.transitionDuration=typeof ot.duration=="string"?ot.duration:`${ot.duration}ms`,Ne.style[de]=`${ct}px`,Ne.style.transitionTimingFunction=Ye,y&&y(Ne,Be)}),Ke=Qn(ce,(Ne,Be)=>{Ne.style[de]="auto",p&&p(Ne,Be)}),me=Qn(ce,Ne=>{Ne.style[de]=`${Oe()}px`,S&&S(Ne)}),ne=Qn(ce,b),ae=Qn(ce,Ne=>{var ot;const Be=Oe(),{duration:ct,easing:Q}=lc({style:C,timeout:P,easing:u},{mode:"exit"});if(P==="auto"&&!Y.shouldReduceMotion){const Dt=oe.transitions.getAutoHeightDuration(Be);se.current=Dt}else se.current=null;const Ye=Y.getTransitionTiming({duration:(ot=se.current)!=null?ot:ct,delay:void 0});Ne.style.transitionDuration=typeof Ye.duration=="string"?Ye.duration:`${Ye.duration}ms`,Ne.style[de]=ie,Ne.style.transitionTimingFunction=Q,A&&A(Ne)}),Me=o?Ne=>{o(ce.current,Ne)}:void 0,rt={slots:k,slotProps:B,component:l},[lt,Ot]=Zi("root",{ref:he,className:oa(W.root,i),elementType:F_,externalForwardedProps:rt,ownerState:$,additionalProps:{style:{[ee?"minWidth":"minHeight"]:ie,...C}}}),[nr,$e]=Zi("wrapper",{ref:te,className:W.wrapper,elementType:$_,externalForwardedProps:rt,ownerState:$}),[et,Le]=Zi("wrapperInner",{className:W.wrapperInner,elementType:G_,externalForwardedProps:rt,ownerState:$});return T.jsx(M,{in:d,onEnter:Ce,onEntered:Ke,onEntering:ye,onExit:me,onExited:ne,onExiting:ae,addEndListener:Me,getAutoTimeout:P==="auto"?()=>se.current:void 0,reduceMotion:Y.shouldReduceMotion,nodeRef:ce,timeout:P==="auto"?null:P,...v,children:(Ne,{ownerState:Be,...ct})=>{const Q={...$,state:Ne};return T.jsx(lt,{...Ot,className:oa(Ot.className,{entered:W.entered,exited:!d&&ie==="0px"&&W.hidden}[Ne]),ownerState:Q,...ct,children:T.jsx(nr,{...$e,ownerState:Q,children:T.jsx(et,{...Le,ownerState:Q,children:a})})})}})});Qs&&(Qs.muiSupportAuto=!0);function H_(e){return Ii("MuiAppBar",e)}pa("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const W_=e=>{const{color:t,position:r,classes:n}=e,o={root:["root",`color${Wn(t)}`,`position${Wn(r)}`]};return Oi(o,H_,n)},Lc=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,j_=Ze(Xg,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Wn(r.position)}`],t[`color${Wn(r.color)}`]]}})(Ai(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Hf(["contrastText"])).map(([t])=>{var r,n;return{props:{color:t},style:{"--AppBar-background":((r=e.vars)!=null?r:e).palette[t].main,"--AppBar-color":((n=e.vars)!=null?n:e).palette[t].contrastText}}}),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Lc(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Lc(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),z_=f.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiAppBar"}),{className:o,color:a="primary",enableColorOnDark:i=!1,position:s="fixed",...l}=n,c={...n,color:a,position:s,enableColorOnDark:i},u=W_(c);return T.jsx(j_,{square:!0,component:"header",ownerState:c,elevation:4,className:oa(u.root,o,s==="fixed"&&"mui-fixed"),ref:r,...l})}),V_=pa("MuiBox",["root"]),K_=wi(),We=Jg({themeId:em,defaultTheme:K_,defaultClassName:V_.root,generateClassName:Zg.generate});function Y_(e){return f.Children.toArray(e).filter(t=>f.isValidElement(t))}const q_=tm({createStyledComponent:Ze("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Wn(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Vn({props:e,name:"MuiContainer"})}),Xs=typeof Wf({})=="function",Q_=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),X_=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Fh=(e,t=!1)=>{var a,i;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEac
179h(([s,l])=>{var u,d;const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let n={html:Q_(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...X_(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const o=(i=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(n=[n,o]),n},qa="mui-ecs",J_=e=>{const t=Fh(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${qa})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,o])=>{var i,s;const a=e.getColorSchemeSelector(n);a.startsWith("@")?r[a]={[`:root:not(:has(.${qa}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:r[a.replace(/\s*&/,"")]={[`&:not(:has(.${qa}))`]:{colorScheme:(s=o.palette)==null?void 0:s.mode}}}),t},Z_=Wf(Xs?({theme:e,enableColorScheme:t})=>Fh(e,t):({theme:e})=>J_(e));function ey(e){const t=Vn({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return T.jsxs(f.Fragment,{children:[Xs&&T.jsx(Z_,{enableColorScheme:n}),!Xs&&!n&&T.jsx("span",{className:qa,style:{display:"none"}}),r]})}function ty(e){return Ii("MuiLink",e)}const ry=pa("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ny=({theme:e,ownerState:t})=>{const r=t.color;if("colorSpace"in e&&e.colorSpace){const a=Xn(e,`palette.${r}.main`)||Xn(e,`palette.${r}`)||t.color;return e.alpha(a,.4)}const n=Xn(e,`palette.${r}.main`,!1)||Xn(e,`palette.${r}`,!1)||t.color,o=Xn(e,`palette.${r}.mainChannel`)||Xn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ke(n,.4)},Pc={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},oy=e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root",`underline${Wn(o)}`,r==="button"&&"button",n&&"focusVisible"]};return Oi(a,ty,t)},ay=Ze(mt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Wn(r.underline)}`],r.component==="button"&&t.button]}})(Ai(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Hf()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ry.focusVisible}`]:{outline:"auto"}}}]}))),Qa=f.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiLink"}),o=un(),{className:a,color:i="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:h="inherit",sx:p,...y}=n,[S,b]=f.useState(!1),A=C=>{cc(C.target)||b(!1),l&&l(C)},x=C=>{cc(C.target)&&b(!0),c&&c(C)},k={...n,color:i,component:s,focusVisible:S,underline:d,variant:h},B=oy(k);return T.jsx(ay,{color:i,className:oa(B.root,a),classes:u,component:s,onBlur:A,onFocus:x,ref:r,ownerState:k,variant:h,...y,sx:[...Pc[i]===void 0?[{color:i}]:[],...Array.isArray(p)?p:[p]],style:{...y.style,...d==="always"&&i!=="inherit"&&!Pc[i]&&{"--Link-underlineColor":ny({theme:o,ownerState:k})}}})}),Rn=rm({createStyledComponent:Ze("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Vn({props:e,name:"MuiStack"})});function iy(e){return Ii("MuiToggleButtonGroup",e)}const ht=pa("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","fullWidth","firstButton","lastButton","middleButton"]),sy=e=>{const{classes:t,orientation:r,fullWidth:n,disabled:o}=e;return Oi({root:["root",r,n&&"fullWidth"],grouped:["grouped",o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},iy,t)},ly=Ze("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ht.grouped}`]:t.grouped},{[`& .${ht.firstButton}`]:t.firstButton},{[`& .${ht.lastButton}`]:t.lastButton},{[`& .${ht.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(Ai(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ht.grouped}`]:{[`&.${ht.selected} + .${ht.grouped}.${ht.selected}`]:{borderTop:0,marginTop:0}},[`& .${ht.firstButton},& .${ht.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${ht.lastButton},& .${ht.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${ht.lastButton}.${Aa.disabled},& .${ht.middleButton}.${Aa.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${ht.grouped}`]:{[`&.${ht.selected} + .${ht.grouped}.${ht.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${ht.firstButton},& .${ht.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ht.lastButton},& .${ht.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${ht.lastButton}.${Aa.disabled},& .${ht.middleButton}.${Aa.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),cy=f.forwardRef(function(t,r){const n=Vn({props:t,name:"MuiToggleButtonGroup"}),{children:o,className:a,color:i="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:h="medium",value:p,...y}=n,S={...n,disabled:s,fullWidth:c,orientation:d,size:h},b=sy(S),A=f.useCallback((M,v)=>{if(!u)return;const $=p&&p.indexOf(v);let W;p&&$>
179=0?(W=p.slice(),W.splice($,1)):W=p?p.concat(v):[v],u(M,W)},[u,p]),x=f.useCallback((M,v)=>{u&&u(M,p===v?null:v)},[u,p]),k=f.useMemo(()=>({className:b.grouped,onChange:l?x:A,value:p,size:h,fullWidth:c,color:i,disabled:s}),[b.grouped,l,x,A,p,h,c,i,s]),B=Y_(o),C=B.length,P=M=>{const v=M===0,$=M===C-1;return v&&$?"":v?b.firstButton:$?b.lastButton:b.middleButton};return T.jsx(ly,{role:"group",className:oa(b.root,a),ref:r,ownerState:S,...y,children:T.jsx(nm.Provider,{value:k,children:B.map((M,v)=>T.jsx(om.Provider,{value:P(v),children:M},v))})})}),$h={light:{foreground:"#38342f",background:"#ffffff",muted:"#625c56",string:"#005b24",keyword:"#7500a8",property:"#0045b8",number:"#962500",function:"#a00040",inlineCode:"#0045b8"},dark:{foreground:"#d7d2cb",background:"#181818",muted:"#a59f97",string:"#80cba5",keyword:"#c49ae8",property:"#7ebce8",number:"#e1a06d",function:"#d5bb6a",inlineCode:"#7ebce8"}},F={gray:{1e3:"#111111",950:"#222222",930:"#302D2A",925:"#333333",900:"#3F3B37",800:"#5C5652",700:"#6B6662",600:"#817973",500:"#968E88",400:"#AEA69F",300:"#D6D1CB",200:"#E9E5E0",150:"#f4f0eb",100:"#FAF7F5",0:"#FFFFFF"},brown:{900:"#382727",800:"#533A36",700:"#795E51",600:"#A38576",500:"#B9A397"},red:{100:"#fff1f1",200:"#ffd7d9",300:"#ffb3b8",400:"#ff8389",500:"#fa4d56",600:"#da1e28",700:"#a2191f",800:"#750e13",900:"#520408",1e3:"#2d0709"},blue:{100:"#E0EDFD",200:"#AED2FD",300:"#76B0F6",400:"#4794F0",500:"#0E6CDB",600:"#1052A0",700:"#0C3E78",800:"#082950",900:"#051930"},mint:{500:"#8BBFA8"},forest:{400:"#E2EADE",500:"#CAD2C5",600:"#9EACA1",700:"#517968",800:"#36534B",900:"#273836"},purple:{100:"#F3EEFE",200:"#CCB6F9",300:"#B899F5",400:"#996EF3",500:"#804AF0",600:"#663BC0",700:"#4C2C90",800:"#331D5F",900:"#22143F",1e3:"#140734"},green:{0:"#FCFEFB",100:"#F2F7ED",200:"#E3EDDD",300:"#D5E5CD",400:"#C2D9BD",500:"#A1C49D",600:"#83B58A",700:"#3A8B5D",800:"#286E46",900:"#1C593A",950:"#16482F",1e3:"#1B382A"},orange:{900:"#321E0A",800:"#653C15",700:"#995B20",600:"#CC792B",500:"#FF9836",400:"#FFAC5E",300:"#FFC186",200:"#FFD5AE",100:"#FFF5EB"}},uy={teal:{light:{bg:"#D9E6E5",color:"#1E5C58"},dark:{bg:"#234E4B",color:"#A5E0DB"}},mauve:{light:{bg:"#E9DED9",color:"#6B3F3A"},dark:{bg:"#4A3733",color:"#F0E8E5"}},rose:{light:{bg:"#F3D9D9",color:"#8C3535"},dark:{bg:"#4A2626",color:"#F5D5D5"}},peach:{light:{bg:"#F0E2D6",color:"#7A4A1E"},dark:{bg:"#4A331E",color:"#E8C4A3"}},sand:{light:{bg:"#E6E0D0",color:"#5C5012"},dark:{bg:"#3D3820",color:"#D8CE8E"}},sage:{light:{bg:"#DCE8DC",color:"#2A5C33"},dark:{bg:"#274C2C",color:"#A8DFAE"}},slate:{light:{bg:"#D6E4F0",color:"#1B3A5C"},dark:{bg:"#1E3550",color:"#A3C9E8"}},lavender:{light:{bg:"#E2D8EB",color:"#522880"},dark:{bg:"#3A2554",color:"#D0AEEE"}},neutral:{light:{bg:F.gray[200],color:F.gray[900]},dark:{bg:F.gray[800],color:F.gray[100]}}},Gh=e=>Object.fromEntries(Object.entries(uy).map(([t,r])=>[t,r[e]])),Uc=["teal","mauve","rose","peach","sand","sage","slate","lavender"],Fx=e=>{let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r)&4294967295;return Uc[Math.abs(t)%Uc.length]},_n={violet:"#7C5CFC",teal:"#2EC5CE",orange:"#F2994A",sky:"#56CCF2",purple:"#BB6BD9",green:"#6FCF97",red:"#EB5757",yellow:"#F2C94C",blue:"#2D9CDB"},$x=[_n.violet,_n.teal,_n.orange,_n.sky,_n.purple,_n.green,_n.red,_n.yellow],zt={dark:{success:{background:"#016630",primary:"#00c850",text:"#b9f8cf",border:"#b9f8cf"},error:{background:F.red[900],primary:F.red[500],text:F.red[200],border:F.red[600]}},light:{success:{background:F.green[400],primary:"#00a63e",text:F.green[700],border:F.green[500]},error:{background:F.red[100],primary:F.red[500],text:F.red[800],border:F.red[300]}}},Hh={background:F.gray[1e3],scrim:ke(F.gray[1e3],.7),text:F.gray[0],secondaryText:F.gray[200],mutedText:F.gray[300],border:ke(F.gray[0],.4)},Wh={background:F.red[800],hoverBackground:F.red[700],foreground:F.gray[0]},jh={background:F.green[900],text:F.gray[0],closeBackground:F.green[800],closeHoverBackground:F.green[700]},In={tints:Gh("light"),code:$h.light,avatar:{background:`radial-gradient(50% 50% at 50% 50%, ${F.gray[1e3]} 0%,${F.gray[900]} 100%)`,foreground:F.gray[0]},featuredSurface:{background:F.gray[150],border:"none"},steering:{valid:ke(F.green[800],.24),advisory:ke(F.orange[700],.24),invalid:ke(F.red[600],.24),custom:ke(F.blue[300],.2),open:ke(F.gray[950],.08)},recording:Wh,announcement:jh,overlay:{backdrop:ke(F.gray[200],.8)},imageOverlay:Hh,inverse:{background:F.gray[800],text:F.gray[0]}
179,selection:{codeBackground:F.blue[200],codeText:F.gray[1e3],choiceBackground:ke("#027645",.08),choiceHoverBackground:ke("#027645",.12),choiceBorder:ke("#027645",.35),choiceHoverBorder:ke("#027645",.45),raisedBackground:F.gray[0],raisedText:F.gray[1e3]},focus:{ring:F.green[700],halo:ke(F.green[700],.25),hoverBorder:ke(F.green[700],.55)},primary:{main:"#027645",light:"#02874F",dark:"#02643B",contrastText:F.gray[100]},secondary:{main:F.gray[100],light:F.gray[0],dark:F.gray[200],contrastText:F.gray[1e3]},info:{main:F.gray[200],light:F.gray[100],dark:F.gray[700],contrastText:F.gray[1e3]},success:{main:F.green[800],light:F.green[100],dark:F.green[900],contrastText:F.gray[0]},warning:{main:F.orange[700],light:F.orange[100],dark:F.orange[800],contrastText:F.gray[0]},error:{main:F.red[600],light:F.red[100],dark:F.red[800],contrastText:F.gray[0]},text:{primary:"#222222",secondary:F.gray[700],disabled:F.gray[600],accent:"#027645"},background:{paper:"hsl(24 33% 99%)",default:F.gray[100],surface:{light:"hsla(24 33% 96% /0.5)",main:F.gray[150],dark:"#E9E5E0",contrastText:"#212120"}},divider:F.gray[300],listDivider:ke(F.gray[300],.25),action:{hover:ke(F.green[700],.06),selected:F.green[100],disabled:F.gray[600],disabledBackground:F.gray[200]}},nn={tints:Gh("dark"),code:$h.dark,avatar:{background:`radial-gradient(50% 50% at 50% 50%, ${F.gray[700]} 0%,${F.gray[800]} 100%)`,foreground:F.gray[0]},featuredSurface:{background:"#202020",border:"1px solid #353535"},steering:{valid:ke(F.green[600],.24),advisory:ke(F.orange[400],.32),invalid:ke(F.red[600],.28),custom:ke(F.blue[300],.32),open:ke(F.gray[100],.08)},recording:Wh,announcement:jh,overlay:{backdrop:ke(F.gray[800],.8)},imageOverlay:Hh,inverse:{background:F.gray[0],text:F.gray[900]},selection:{codeBackground:F.blue[500],codeText:F.gray[0],choiceBackground:ke("hsl(150, 97%, 32%)",.08),choiceHoverBackground:ke("hsl(150, 97%, 32%)",.12),choiceBorder:ke("hsl(150, 97%, 32%)",.35),choiceHoverBorder:ke("hsl(150, 97%, 32%)",.45),raisedBackground:F.gray[200],raisedText:F.gray[1e3]},focus:{ring:F.green[700],halo:ke(F.green[700],.25),hoverBorder:ke(F.green[700],.55)},primary:{main:"hsl(150, 97%, 24%)",light:"hsl(150, 97%, 32%)",dark:"hsl(146, 47%, 29%)",contrastText:F.gray[0]},secondary:{main:F.gray[700],light:F.gray[600],dark:F.gray[800],contrastText:F.gray[200]},info:{main:F.gray[800],light:F.gray[900],dark:F.gray[300],contrastText:F.gray[0]},success:{main:F.green[600],light:F.green[1e3],dark:F.green[400],contrastText:F.gray[1e3]},warning:{main:F.orange[400],light:F.orange[900],dark:F.orange[200],contrastText:F.gray[1e3]},error:{main:F.red[600],light:F.red[900],dark:F.red[200],contrastText:F.gray[0]},text:{primary:F.gray[100],secondary:F.gray[400],disabled:F.gray[600],accent:"hsl(150 97% 32%)"},background:{paper:"#181818",default:"#131313",surface:{light:F.gray[800],main:F.gray[900],dark:F.gray[1e3],contrastText:"#fff"}},divider:F.gray[800],listDivider:ke(F.gray[800],.25),action:{hover:ke(F.mint[500],.08),selected:F.gray[900],disabled:F.gray[600],disabledBackground:F.gray[930]}},bo={dark:nn,light:In},Kt={dark:{string:"#a5d6ff",property:"#7ee787",value:"#a5d6ff",bool:F.blue[300],number:F.red[300],keyword:F.red[400],background:nn.background.surface.main,comment:nn.text.secondary,index:nn.text.secondary,null:nn.text.secondary},light:{string:F.purple[600],property:F.blue[600],bool:F.blue[600],number:F.purple[600],keyword:F.red[700],background:In.background.surface.main,comment:In.text.secondary,index:In.text.secondary,null:In.text.secondary}};nn.avatar.background,In.avatar.background;const yr={functional:"Inter, Arial, sans-serif",mono:"Geist Mono, monospace",display:"FeatureDeck, sans-serif"},xe={xs:"0.625rem",sm:"0.75rem",md:"0.875rem",base:"1rem",xl:"1.25rem","2xl":"1.5rem","3xl":"2rem","4xl":"2.5rem"},Rt={xs:12/10,sm:16/12,md:20/14,base:24/16,xl:28/20,"2xl":32/24,"3xl":40/32,"4xl":48/40},je={sm:"0.25rem",md:"0.5rem",lg:"0.75rem",xl:"1rem",full:"9999px"},$i={sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 12px rgba(0, 0, 0, 0.12)",lg:"0 8px 32px rgba(0, 0, 0, 0.25)"},dy={xs:"1rem",sm:"1.5rem"},Gx={page:"72rem",reading:"60rem",form:"48rem"},fy={xs:"28rem",sm:"32rem",md:"40rem",lg:"56rem",xl:"75rem"};var Oo={},rs={exports:{}},Bc;function Mr(){return Bc||(Bc=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(rs)),rs.exports}var ns={},os={},as={};const hy=It(am);var Fc;function py(){return Fc||(Fc=1,(function(e){var t=Mr().default;
179Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.default}});var r=t(hy)})(as)),as}const gy=It(im),my=It(sm),_y=It(lm),yy=It(cm),Ey=It(um),vy=It(dm),Ty=It(fm),Cy=It(hm),Ry=It(pm),Sy=It(gm),by=It(mm),Iy=It(_m),Oy=It(ym),Ay=It(Em),wy=It(vm),Dy=It(Tm),Ny=It(Cm),ky=It(Rm),xy=It(Sm);var $c;function My(){return $c||($c=1,(function(e){"use client";var t=Mr().default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"capitalize",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"createChainedFunction",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createSvgIcon",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"deprecatedPropType",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"getActiveElement",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"isMuiElement",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"mergeSlotProps",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"ownerDocument",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"ownerWindow",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"requirePropFactory",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"setRef",{enumerable:!0,get:function(){return y.default}}),e.unstable_ClassNameGenerator=void 0,Object.defineProperty(e,"unstable_memoTheme",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"unstable_useEnhancedEffect",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"unstable_useId",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"unsupportedProp",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"useControlled",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"useEventCallback",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"useForkRef",{enumerable:!0,get:function(){return B.default}});var r=t(py()),n=t(gy),o=t(my),a=t(_y),i=t(yy),s=t(Ey),l=t(vy),c=t(Ty),u=t(Cy),d=t(Ry),h=t(Sy),p=t(by),y=t(Iy),S=t(Oy),b=t(Ay),A=t(wy),x=t(Dy),k=t(Ny),B=t(ky),C=t(xy);e.unstable_ClassNameGenerator={configure:P=>{r.default.configure(P)}}})(os)),os}var Gc;function fn(){return Gc||(Gc=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=My()})(ns)),ns}var Hc;function Ly(){if(Hc)return Oo;Hc=1;var e=Mr();Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.default=void 0;var t=e(fn()),r=cn();return Oo.default=(0,t.default)((0,r.jsx)("path",{d:"M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"}),"Functions"),Oo}var Py=Ly();const Uy=Kr(Py);var Ao={},Wc;function By(){if(Wc)return Ao;Wc=1;var e=Mr();Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.default=void 0;var t=e(fn()),r=cn();return Ao.default=(0,t.default)([(0,r.jsx)("path",{d:"M17 9h-3.5v6H15v-1.5h2c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1m-.5 3H15v-1.5h1.5zm-5-3H7c-.55 0-1 .45-1 1v5h1.5v-4.5h1v3H10v-3h1V15h1.5v-5c0-.55-.45-1-1-1"},"0"),(0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M5 19V5h14v14z"},"1")],"MpOutlined"),Ao}var Fy=By();const $y=Kr(Fy);/**
180 * @license lucide-react v0.525.0 - ISC
181 *
182 * This source code is licensed under the ISC license.
183 * See the LICENSE file in the root directory of this source tree.
184 */const Gy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hy=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),jc=e=>{const t=Hy(e);return t.charAt(0).toUpperCase()+t.slice(1)},zh=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Wy=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
185 * @license lucide-react v0.525.0 - ISC
186 *
187 * This source code is licensed under the ISC license.
188 * See the LICENSE file in the root directory of this source tree.
189 */var jy={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"};/**
190 * @license lucide-react v0.525.0 - ISC
191 *
192 * This source code is licensed under the ISC license.
193 * See the LICENSE file in the root directory of this source tree.
194 */const zy=f.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},l)=>f.createElement("svg",{ref:l,...jy,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:zh("lucide",o),...!a&&!Wy(s)&&{"aria-hidden":"true"},...s},[...i.map(([c,u])=>f.createElement(c,u)),...Array.isArray(a)?a:[a]]));/**
195 * @license lucide-react v0.525.0 - ISC
196 *
197 * This source code is licensed under the ISC license.
198 * See the LICENSE file in the root directory of this source tree.
199 */const D=(e,t)=>{const r=f.forwardRef(({className:n,...o},a)=>f.createElement(zy,{ref:a,iconNode:t,className:zh(`lucide-${Gy(jc(e))}`,`lucide-${e}`,n),...o}));return r.displayName=jc(e),r};/**
200 * @license lucide-react v0.525.0 - ISC
201 *
202 * This source code is licensed under the ISC license.
203 * See the LICENSE file in the root directory of this source tree.
204 */const Vy=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}
204]],Ky=D("align-left",Vy);/**
205 * @license lucide-react v0.525.0 - ISC
206 *
207 * This source code is licensed under the ISC license.
208 * See the LICENSE file in the root directory of this source tree.
209 */const Yy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["path",{d:"M7.5 8 10 9",key:"olxxln"}],["path",{d:"m14 9 2.5-1",key:"1j6cij"}],["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}]],qy=D("angry",Yy);/**
210 * @license lucide-react v0.525.0 - ISC
211 *
212 * This source code is licensed under the ISC license.
213 * See the LICENSE file in the root directory of this source tree.
214 */const Qy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 15h8",key:"45n4r"}],["path",{d:"M8 9h2",key:"1g203m"}],["path",{d:"M14 9h2",key:"116p9w"}]],Xy=D("annoyed",Qy);/**
215 * @license lucide-react v0.525.0 - ISC
216 *
217 * This source code is licensed under the ISC license.
218 * See the LICENSE file in the root directory of this source tree.
219 */const Jy=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],Zy=D("arrow-down-right",Jy);/**
220 * @license lucide-react v0.525.0 - ISC
221 *
222 * This source code is licensed under the ISC license.
223 * See the LICENSE file in the root directory of this source tree.
224 */const eE=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],tE=D("arrow-down-to-line",eE);/**
225 * @license lucide-react v0.525.0 - ISC
226 *
227 * This source code is licensed under the ISC license.
228 * See the LICENSE file in the root directory of this source tree.
229 */const rE=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],nE=D("arrow-down-wide-narrow",rE);/**
230 * @license lucide-react v0.525.0 - ISC
231 *
232 * This source code is licensed under the ISC license.
233 * See the LICENSE file in the root directory of this source tree.
234 */const oE=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],aE=D("arrow-down",oE);/**
235 * @license lucide-react v0.525.0 - ISC
236 *
237 * This source code is licensed under the ISC license.
238 * See the LICENSE file in the root directory of this source tree.
239 */const iE=[["path",{d:"M3 19V5",key:"rwsyhb"}],["path",{d:"m13 6-6 6 6 6",key:"1yhaz7"}],["path",{d:"M7 12h14",key:"uoisry"}]],sE=D("arrow-left-to-line",iE);/**
240 * @license lucide-react v0.525.0 - ISC
241 *
242 * This source code is licensed under the ISC license.
243 * See the LICENSE file in the root directory of this source tree.
244 */const lE=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],cE=D("arrow-left",lE);/**
245 * @license lucide-react v0.525.0 - ISC
246 *
247 * This source code is licensed under the ISC license.
248 * See the LICENSE file in the root directory of this source tree.
249 */const uE=[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]],dE=D("arrow-right-to-line",uE);/**
250 * @license lucide-react v0.525.0 - ISC
251 *
252 * This source code is licensed under the ISC license.
253 * See the LICENSE file in the root directory of this source tree.
254 */const fE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],hE=D("arrow-right",fE);/**
255 * @license lucide-react v0.525.0 - ISC
256 *
257 * This source code is licensed under the ISC license.
258 * See the LICENSE file in the root directory of this source tree.
259 */const pE=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],gE=D("arrow-up-down",pE);/**
260 * @license lucide-react v0.525.0 - ISC
261 *
262 * This source code is licensed under the ISC license.
263 * See the LICENSE file in the root directory of this source tree.
264 */const mE=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],_E=D("arrow-up-from-line",mE);/**
265 * @license lucide-react v0.525.0 - ISC
266 *
267 * This source code is licensed under the ISC license.
268 * See the LICENSE file in the root directory of this source tree.
269 */const yE=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],EE=D("arrow-up-narrow-wide",yE);/**
270 * @license lucide-react v0.525.0 - ISC
271 *
272 * This source code is licensed under the ISC license.
273 * See the LICENSE file in the root directory of this source tree.
274 */const vE=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],TE=D("arrow-up-right",vE);/**
275 * @license lucide-react v0.525.0 - ISC
276 *
277 * This source code is licensed under the ISC license.
278 * See the LICENSE file in the root directory of this source tree.
279 */const CE=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],RE=D("arrow-up",CE);/**
280 * @license lucide-react v0.525.0 - ISC
281 *
282 * This source code is licensed under the ISC license.
283 * See the LICENSE file in the root directory of this source tree.
284 */const SE=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],Vh=D("audio-lines",SE);/**
285 * @license lucide-react v0.525.0 - ISC
286 *
287 * This source code is licensed under the ISC license.
288 * See the LICENSE file in the root directory of this source tree.
289 */const bE=[["path",{d:"M2 13a2 2 0 0 0 2-2V7a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0V4a2 2 0 0 1 4 0v13a2 2 0 0 0 4 0v-4a2 2 0 0 1 2-2",ke
289y:"57tc96"}]],Kh=D("audio-waveform",bE);/**
290 * @license lucide-react v0.525.0 - ISC
291 *
292 * This source code is licensed under the ISC license.
293 * See the LICENSE file in the root directory of this source tree.
294 */const IE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],OE=D("ban",IE);/**
295 * @license lucide-react v0.525.0 - ISC
296 *
297 * This source code is licensed under the ISC license.
298 * See the LICENSE file in the root directory of this source tree.
299 */const AE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],wE=D("bell",AE);/**
300 * @license lucide-react v0.525.0 - ISC
301 *
302 * This source code is licensed under the ISC license.
303 * See the LICENSE file in the root directory of this source tree.
304 */const DE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],NE=D("book-open",DE);/**
305 * @license lucide-react v0.525.0 - ISC
306 *
307 * This source code is licensed under the ISC license.
308 * See the LICENSE file in the root directory of this source tree.
309 */const kE=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Yh=D("book",kE);/**
310 * @license lucide-react v0.525.0 - ISC
311 *
312 * This source code is licensed under the ISC license.
313 * See the LICENSE file in the root directory of this source tree.
314 */const xE=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],ME=D("bot",xE);/**
315 * @license lucide-react v0.525.0 - ISC
316 *
317 * This source code is licensed under the ISC license.
318 * See the LICENSE file in the root directory of this source tree.
319 */const LE=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],PE=D("box",LE);/**
320 * @license lucide-react v0.525.0 - ISC
321 *
322 * This source code is licensed under the ISC license.
323 * See the LICENSE file in the root directory of this source tree.
324 */const UE=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],BE=D("braces",UE);/**
325 * @license lucide-react v0.525.0 - ISC
326 *
327 * This source code is licensed under the ISC license.
328 * See the LICENSE file in the root directory of this source tree.
329 */const FE=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],$E=D("brain",FE);/**
330 * @license lucide-react v0.525.0 - ISC
331 *
332 * This source code is licensed under the ISC license.
333 * See the LICENSE file in the root directory of this source tree.
334 */const GE=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}
334],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],HE=D("bug",GE);/**
335 * @license lucide-react v0.525.0 - ISC
336 *
337 * This source code is licensed under the ISC license.
338 * See the LICENSE file in the root directory of this source tree.
339 */const WE=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]],jE=D("building",WE);/**
340 * @license lucide-react v0.525.0 - ISC
341 *
342 * This source code is licensed under the ISC license.
343 * See the LICENSE file in the root directory of this source tree.
344 */const zE=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],VE=D("calculator",zE);/**
345 * @license lucide-react v0.525.0 - ISC
346 *
347 * This source code is licensed under the ISC license.
348 * See the LICENSE file in the root directory of this source tree.
349 */const KE=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]],YE=D("calendar-x",KE);/**
350 * @license lucide-react v0.525.0 - ISC
351 *
352 * This source code is licensed under the ISC license.
353 * See the LICENSE file in the root directory of this source tree.
354 */const qE=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],QE=D("calendar",qE);/**
355 * @license lucide-react v0.525.0 - ISC
356 *
357 * This source code is licensed under the ISC license.
358 * See the LICENSE file in the root directory of this source tree.
359 */const XE=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"7",y:"13",width:"9",height:"4",rx:"1",key:"1iip1u"}],["rect",{x:"7",y:"5",width:"12",height:"4",rx:"1",key:"1anskk"}]],JE=D("chart-bar-big",XE);/**
360 * @license lucide-react v0.525.0 - ISC
361 *
362 * This source code is licensed under the ISC license.
363 * See the LICENSE file in the root directory of this source tree.
364 */const ZE=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]],ev=D("chart-bar",ZE);/**
365 * @license lucide-react v0.525.0 - ISC
366 *
367 * This source code is licensed under the ISC license.
368 * See the LICENSE file in the root directory of this source tree.
369 */const tv=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],qh=D("chart-line",tv);/**
370 * @license lucide-react v0.525.0 - ISC
371 *
372 * This source code is licensed under the ISC license.
373 * See the LICENSE file in the root directory of this source tree.
374 */const rv=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],nv=D("chart-pie",rv);/**
375 * @license lucide-react v0.525.0 - ISC
376 *
377 * This source code is licensed under the ISC license.
378 * See the LICENSE file in the root directory of this source tree.
379 */const ov=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qh=D("check",ov);/**
380 * @license lucide-react v0.525.0 - ISC
381 *
382 * This source code is licensed under the ISC license.
383 * See the LICENSE file in the root directory of this source tree.
384 */const av=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zc=D("chevron-down",av);/**
385 * @license lucide-react v0.525.0 - ISC
386 *
387 * This source code is licensed under the ISC license.
388 * See the LICENSE file in the root directory of this source tree.
389 */const iv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sv=D("chevron-left",iv);/**
390 * @license lucide-react v0.525.0 - ISC
391 *
392 * This source code is licensed under the ISC license.
393 * See the LICENSE file in the root directory of this source tree.
394 */const lv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Vc=D("chevron-right",lv);/**
395 * @license lucide-react v0.525.0 - ISC
396 *
397 * This source code is licensed under the ISC license.
398 * See the LICENSE file in the root directory of this source tree.
399 */const cv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],uv=D("chevron-up",cv);/**
400 * @license lucide-react v0.525.0 - ISC
401 *
402 * This source code is licensed under the ISC license.
403 * See the LICENSE file in the root directory of this source tree.
404 */const dv=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],fv=D("chevrons-up-down",dv);/**
405 * @license lucide-react v0.525.0 - ISC
406 *
407 * This source code is licensed under the ISC license.
408 * See the LICENSE file in the root directory of this source tree.
409 */const hv=[["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"}]],pv=D("circle-alert",hv);/**
410 * @license lucide-react v0.525.0 - ISC
411 *
412 * This source code is licensed under the ISC license.
413 * See the LICENSE file in the root directory of this source tree.
414 */const gv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],mv=D("circle-check",gv);/**
415 * @license lucide-react v0.525.0 - ISC
416 *
417 * This source code is licensed under the ISC license.
418 * See the LICENSE file in the root directory of this source tree.
419 */const _v=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}
419]],yv=D("circle-dollar-sign",_v);/**
420 * @license lucide-react v0.525.0 - ISC
421 *
422 * This source code is licensed under the ISC license.
423 * See the LICENSE file in the root directory of this source tree.
424 */const Ev=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],vv=D("circle-minus",Ev);/**
425 * @license lucide-react v0.525.0 - ISC
426 *
427 * This source code is licensed under the ISC license.
428 * See the LICENSE file in the root directory of this source tree.
429 */const Tv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Cv=D("circle-pause",Tv);/**
430 * @license lucide-react v0.525.0 - ISC
431 *
432 * This source code is licensed under the ISC license.
433 * See the LICENSE file in the root directory of this source tree.
434 */const Rv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]],Sv=D("circle-play",Rv);/**
435 * @license lucide-react v0.525.0 - ISC
436 *
437 * This source code is licensed under the ISC license.
438 * See the LICENSE file in the root directory of this source tree.
439 */const bv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Iv=D("circle-plus",bv);/**
440 * @license lucide-react v0.525.0 - ISC
441 *
442 * This source code is licensed under the ISC license.
443 * See the LICENSE file in the root directory of this source tree.
444 */const Ov=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Js=D("circle-question-mark",Ov);/**
445 * @license lucide-react v0.525.0 - ISC
446 *
447 * This source code is licensed under the ISC license.
448 * See the LICENSE file in the root directory of this source tree.
449 */const Av=[["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"}]],Xh=D("circle-x",Av);/**
450 * @license lucide-react v0.525.0 - ISC
451 *
452 * This source code is licensed under the ISC license.
453 * See the LICENSE file in the root directory of this source tree.
454 */const wv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Dv=D("circle",wv);/**
455 * @license lucide-react v0.525.0 - ISC
456 *
457 * This source code is licensed under the ISC license.
458 * See the LICENSE file in the root directory of this source tree.
459 */const Nv=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],kv=D("clipboard",Nv);/**
460 * @license lucide-react v0.525.0 - ISC
461 *
462 * This source code is licensed under the ISC license.
463 * See the LICENSE file in the root directory of this source tree.
464 */const xv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mv=D("clock",xv);/**
465 * @license lucide-react v0.525.0 - ISC
466 *
467 * This source code is licensed under the ISC license.
468 * See the LICENSE file in the root directory of this source tree.
469 */const Lv=[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],Pv=D("cloud-download",Lv);/**
470 * @license lucide-react v0.525.0 - ISC
471 *
472 * This source code is licensed under the ISC license.
473 * See the LICENSE file in the root directory of this source tree.
474 */const Uv=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Bv=D("code",Uv);/**
475 * @license lucide-react v0.525.0 - ISC
476 *
477 * This source code is licensed under the ISC license.
478 * See the LICENSE file in the root directory of this source tree.
479 */const Fv=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],$v=D("coins",Fv);/**
480 * @license lucide-react v0.525.0 - ISC
481 *
482 * This source code is licensed under the ISC license.
483 * See the LICENSE file in the root directory of this source tree.
484 */const Gv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Hv=D("columns-2",Gv);/**
485 * @license lucide-react v0.525.0 - ISC
486 *
487 * This source code is licensed under the ISC license.
488 * See the LICENSE file in the root directory of this source tree.
489 */const Wv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],jv=D("columns-3",Wv);/**
490 * @license lucide-react v0.525.0 - ISC
491 *
492 * This source code is licensed under the ISC license.
493 * See the LICENSE file in the root directory of this source tree.
494 */const zv=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],Vv=D("command",zv);/**
495 * @license lucide-react v0.525.0 - ISC
496 *
497 * This source code is licensed under the ISC license.
498 * See the LICENSE file in the root directory of this source tree.
499 */const Kv=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",ke
499y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Yv=D("compass",Kv);/**
500 * @license lucide-react v0.525.0 - ISC
501 *
502 * This source code is licensed under the ISC license.
503 * See the LICENSE file in the root directory of this source tree.
504 */const qv=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Qv=D("copy",qv);/**
505 * @license lucide-react v0.525.0 - ISC
506 *
507 * This source code is licensed under the ISC license.
508 * See the LICENSE file in the root directory of this source tree.
509 */const Xv=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Jv=D("corner-down-left",Xv);/**
510 * @license lucide-react v0.525.0 - ISC
511 *
512 * This source code is licensed under the ISC license.
513 * See the LICENSE file in the root directory of this source tree.
514 */const Zv=[["path",{d:"m10 15 5 5 5-5",key:"1hpjnr"}],["path",{d:"M4 4h7a4 4 0 0 1 4 4v12",key:"wcbgct"}]],eT=D("corner-right-down",Zv);/**
515 * @license lucide-react v0.525.0 - ISC
516 *
517 * This source code is licensed under the ISC license.
518 * See the LICENSE file in the root directory of this source tree.
519 */const tT=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],rT=D("cpu",tT);/**
520 * @license lucide-react v0.525.0 - ISC
521 *
522 * This source code is licensed under the ISC license.
523 * See the LICENSE file in the root directory of this source tree.
524 */const nT=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Jh=D("credit-card",nT);/**
525 * @license lucide-react v0.525.0 - ISC
526 *
527 * This source code is licensed under the ISC license.
528 * See the LICENSE file in the root directory of this source tree.
529 */const oT=[["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"}]],aT=D("database",oT);/**
530 * @license lucide-react v0.525.0 - ISC
531 *
532 * This source code is licensed under the ISC license.
533 * See the LICENSE file in the root directory of this source tree.
534 */const iT=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Kc=D("dollar-sign",iT);/**
535 * @license lucide-react v0.525.0 - ISC
536 *
537 * This source code is licensed under the ISC license.
538 * See the LICENSE file in the root directory of this source tree.
539 */const sT=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],lT=D("download",sT);/**
540 * @license lucide-react v0.525.0 - ISC
541 *
542 * This source code is licensed under the ISC license.
543 * See the LICENSE file in the root directory of this source tree.
544 */const cT=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],uT=D("earth",cT);/**
545 * @license lucide-react v0.525.0 - ISC
546 *
547 * This source code is licensed under the ISC license.
548 * See the LICENSE file in the root directory of this source tree.
549 */const dT=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],fT=D("ellipsis-vertical",dT);/**
550 * @license lucide-react v0.525.0 - ISC
551 *
552 * This source code is licensed under the ISC license.
553 * See the LICENSE file in the root directory of this source tree.
554 */const hT=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],pT=D("ellipsis",hT);/**
555 * @license lucide-react v0.525.0 - ISC
556 *
557 * This source code is licensed under the ISC license.
558 * See the LICENSE file in the root directory of this source tree.
559 */const gT=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],mT=D("expand",gT);/**
560 * @license lucide-react v0.525.0 - ISC
561 *
562 * This source code is licensed under the ISC license.
563 * See the LICENSE file in the root directory of this source tree.
564 */const _T=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],yT=D("external-link",_T);
564/**
565 * @license lucide-react v0.525.0 - ISC
566 *
567 * This source code is licensed under the ISC license.
568 * See the LICENSE file in the root directory of this source tree.
569 */const ET=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],vT=D("eye-off",ET);/**
570 * @license lucide-react v0.525.0 - ISC
571 *
572 * This source code is licensed under the ISC license.
573 * See the LICENSE file in the root directory of this source tree.
574 */const TT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],CT=D("eye",TT);/**
575 * @license lucide-react v0.525.0 - ISC
576 *
577 * This source code is licensed under the ISC license.
578 * See the LICENSE file in the root directory of this source tree.
579 */const RT=[["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"}]],ST=D("file-audio",RT);/**
580 * @license lucide-react v0.525.0 - ISC
581 *
582 * This source code is licensed under the ISC license.
583 * See the LICENSE file in the root directory of this source tree.
584 */const bT=[["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 15 2 2 4-4",key:"1grp1n"}]],IT=D("file-check",bT);/**
585 * @license lucide-react v0.525.0 - ISC
586 *
587 * This source code is licensed under the ISC license.
588 * See the LICENSE file in the root directory of this source tree.
589 */const OT=[["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:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],AT=D("file-down",OT);/**
590 * @license lucide-react v0.525.0 - ISC
591 *
592 * This source code is licensed under the ISC license.
593 * See the LICENSE file in the root directory of this source tree.
594 */const wT=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],DT=D("file-input",wT);/**
595 * @license lucide-react v0.525.0 - ISC
596 *
597 * This source code is licensed under the ISC license.
598 * See the LICENSE file in the root directory of this source tree.
599 */const NT=[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4 7V4a2 2 0 0 1 2-2 2 2 0 0 0-2 2",key:"1vk7w2"}],["path",{d:"M4.063 20.999a2 2 0 0 0 2 1L18 22a2 2 0 0 0 2-2V7l-5-5H6",key:"1jink5"}],["path",{d:"m5 11-3 3",key:"1dgrs4"}],["path",{d:"m5 17-3-3h10",key:"1mvvaf"}]],kT=D("file-output",NT);/**
600 * @license lucide-react v0.525.0 - ISC
601 *
602 * This source code is licensed under the ISC license.
603 * See the LICENSE file in the root directory of this source tree.
604 */const xT=[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],MT=D("file-spreadsheet",xT);/**
605 * @license lucide-react v0.525.0 - ISC
606 *
607 * This source code is licensed under the ISC license.
608 * See the LICENSE file in the root directory of this source tree.
609 */const LT=[["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"}]],PT=D("file-text",LT);/**
610 * @license lucide-react v0.525.0 - ISC
611 *
612 * This source code is licensed under the ISC license.
613 * See the LICENSE file in the root directory of this source tree.
614 */const UT=[["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:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],BT=D("file-x",UT);/**
615 * @license lucide-react v0.525.0 - ISC
616 *
617 * This source code is licensed under the ISC license.
618 * See the LICENSE file in the root directory of this source tree.
619 */const FT=[["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"}]],$T=D("file",FT);/**
620 * @license lucide-react v0.525.0 - ISC
621 *
622 * This source code is licensed under the ISC license.
623 * See the LICENSE file in the root directory of this source tree.
624 */const GT=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],HT=D("flask-conical",GT);/**
625 * @license lucide-react v0.525.0 - ISC
626 *
627 * This source code is licensed under the ISC license.
628 * See the LICENSE file in the root directory of this source tree.
629 */const WT=[["path",{d:"M12 22v-6",key:"6o8u61"}
629],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],jT=D("fold-vertical",WT);/**
630 * @license lucide-react v0.525.0 - ISC
631 *
632 * This source code is licensed under the ISC license.
633 * See the LICENSE file in the root directory of this source tree.
634 */const zT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]],VT=D("folder-check",zT);/**
635 * @license lucide-react v0.525.0 - ISC
636 *
637 * This source code is licensed under the ISC license.
638 * See the LICENSE file in the root directory of this source tree.
639 */const KT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m15 13-3 3-3-3",key:"6j2sf0"}]],YT=D("folder-down",KT);/**
640 * @license lucide-react v0.525.0 - ISC
641 *
642 * This source code is licensed under the ISC license.
643 * See the LICENSE file in the root directory of this source tree.
644 */const qT=[["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"}]],QT=D("folder-open",qT);/**
645 * @license lucide-react v0.525.0 - ISC
646 *
647 * This source code is licensed under the ISC license.
648 * See the LICENSE file in the root directory of this source tree.
649 */const XT=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],JT=D("folder-tree",XT);/**
650 * @license lucide-react v0.525.0 - ISC
651 *
652 * This source code is licensed under the ISC license.
653 * See the LICENSE file in the root directory of this source tree.
654 */const ZT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]],eC=D("folder-up",ZT);/**
655 * @license lucide-react v0.525.0 - ISC
656 *
657 * This source code is licensed under the ISC license.
658 * See the LICENSE file in the root directory of this source tree.
659 */const tC=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],rC=D("folder",tC);/**
660 * @license lucide-react v0.525.0 - ISC
661 *
662 * This source code is licensed under the ISC license.
663 * See the LICENSE file in the root directory of this source tree.
664 */const nC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],is=D("frown",nC);/**
665 * @license lucide-react v0.525.0 - ISC
666 *
667 * This source code is licensed under the ISC license.
668 * See the LICENSE file in the root directory of this source tree.
669 */const oC=[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]],aC=D("funnel-x",oC);/**
670 * @license lucide-react v0.525.0 - ISC
671 *
672 * This source code is licensed under the ISC license.
673 * See the LICENSE file in the root directory of this source tree.
674 */const iC=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],sC=D("funnel",iC);/**
675 * @license lucide-react v0.525.0 - ISC
676 *
677 * This source code is licensed under the ISC license.
678 * See the LICENSE file in the root directory of this source tree.
679 */const lC=[["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"}]],Yc=D("gamepad-2",lC);/**
680 * @license lucide-react v0.525.0 - ISC
681 *
682 * This source code is licensed under the ISC license.
683 * See the LICENSE file in the root directory of this source tree.
684 */const cC=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],uC=D("gauge",cC);/**
685 * @license lucide-react v0.525.0 - ISC
686 *
687 * This source code is licensed under the ISC license.
688 * See the LICENSE file in the root directory of this source tree.
689 */const dC=[["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"}]],fC=D("gift",dC);/**
690 * @license lucide-react v0.525.0 - ISC
691 *
692 * This source code is licensed under the ISC license.
693 * See the LICENSE file in the root directory of this source tree.
694 */const hC=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],pC=D("git-branch",hC);/**
695 * @license lucide-react v0.525.0 - ISC
696 *
697 * This source code is licensed under the ISC license.
698 * See the LICENSE file in the root directory of this source tree.
699 */const gC=[["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"}]],mC=D("globe",gC);/**
700 * @license lucide-react v0.525.0 - ISC
701 *
702 * This source code is licensed under the ISC license.
703 * See the LICENSE file in the root directory of this source tree.
704 */const _C=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],yC=D("graduation-cap",_C);/**
705 * @license lucide-react v0.525.0 - ISC
706 *
707 * This source code is licensed under the ISC license.
708 * See the LICENSE file in the root directory of this source tree.
709 */const EC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],vC=D("grid-3x3",EC);/**
710 * @license lucide-react v0.525.0 - ISC
711 *
712 * This source code is licensed under the ISC license.
713 * See the LICENSE file in the root directory of this source tree.
714 */const TC=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],qc=D("grip-vertical",TC);/**
715 * @license lucide-react v0.525.0 - ISC
716 *
717 * This source code is licensed under the ISC license.
718 * See the LICENSE file in the root directory of this source tree.
719 */const CC=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],RC=D("history",CC);/**
720 * @license lucide-react v0.525.0 - ISC
721 *
722 * This source code is licensed under the ISC license.
723 * See the LICENSE file in the root directory of this source tree.
724 */const SC=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],Zh=D("house",SC);/**
725 * @license lucide-react v0.525.0 - ISC
726 *
727 * This source code is licensed under the ISC license.
728 * See the LICENSE file in the root directory of this source tree.
729 */const bC=[["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"}]],IC=D("image",bC);/**
730 * @license lucide-react v0.525.0 - ISC
731 *
732 * This source code is licensed under the ISC license.
733 * See the LICENSE file in the root directory of this source tree.
734 */const OC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Qc=D("info",OC);/**
735 * @license lucide-react v0.525.0 - ISC
736 *
737 * This source code is licensed under the ISC license.
738 * See the LICENSE file in the root directory of this source tree.
739 */const AC=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ep=D("key",AC);/**
740 * @license lucide-react v0.525.0 - ISC
741 *
742 * This source code is licensed under the ISC license.
743 * See the LICENSE file in the root directory of this source tree.
744 */const wC=[["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"}]],Xc=D("laugh",wC);/**
745 * @license lucide-react v0.525.0 - ISC
746 *
747 * This source code is licensed under the ISC license.
748 * See the LICENSE file in the root directory of this source tree.
749 */const DC=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],NC=D("layout-grid",DC);/**
750 * @license lucide-react v0.525.0 - ISC
751 *
752 * This source code is licensed under the ISC license.
753 * See the LICENSE file in the root directory of this source tree.
754 */const kC=[["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"}]],tp=D("lightbulb",kC);/**
755 * @license lucide-react v0.525.0 - ISC
756 *
757 * This source code is licensed under the ISC license.
758 * See the LICENSE file in the root directory of this source tree.
759 */const xC=[["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"}]],MC=D("link",xC);/**
760 * @license lucide-react v0.525.0 - ISC
761 *
762 * This source code is licensed under the ISC license.
763 * See the LICENSE file in the root directory of this source tree.
764 */const LC=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],PC=D("list-filter",LC);/**
765 * @license lucide-react v0.525.0 - ISC
766 *
767 * This source code is licensed under the ISC license.
768 * See the LICENSE file in the root directory of this source tree.
769 */const UC=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Jc=D("list",UC);/**
770 * @license lucide-react v0.525.0 - ISC
771 *
772 * This source code is licensed under the ISC license.
773 * See the LICENSE file in the root directory of this source tree.
774 */const BC=[["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"}]],FC=D("lock",BC);/**
775 * @license lucide-react v0.525.0 - ISC
776 *
777 * This source code is licensed under the ISC license.
778 * See the LICENSE file in the root directory of this source tree.
779 */const $C=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],GC=D("log-out",$C);/**
780 * @license lucide-react v0.525.0 - ISC
781 *
782 * This source code is licensed under the ISC license.
783 * See the LICENSE file in the root directory of this source tree.
784 */const HC=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],WC=D("mail",HC);/**
785 * @license lucide-react v0.525.0 - ISC
786 *
787 * This source code is licensed under the ISC license.
788 * See the LICENSE file in the root directory of this source tree.
789 */const jC=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],zC=D("maximize-2",jC);/**
790 * @license lucide-react v0.525.0 - ISC
791 *
792 * This source code is licensed under the ISC license.
793 * See the LICENSE file in the root directory of this source tree.
794 */const VC=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],KC=D("megaphone",VC);/**
795 * @license lucide-react v0.525.0 - ISC
796 *
797 * This source code is licensed under the ISC license.
798 * See the LICENSE file in the root directory of this source tree.
799 */const YC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],qC=D("meh",YC);/**
800 * @license lucide-react v0.525.0 - ISC
801 *
802 * This source code is licensed under the ISC license.
803 * See the LICENSE file in the root directory of this source tree.
804 */const QC=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],XC=D("menu",QC);/**
805 * @license lucide-react v0.525.0 - ISC
806 *
807 * This source code is licensed under the ISC license.
808 * See the LICENSE file in the root directory of this source tree.
809 */const JC=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],ZC=D("message-circle-more",JC);/**
810 * @license lucide-react v0.525.0 - ISC
811 *
812 * This source code is licensed under the ISC license.
813 * See the LICENSE file in the root directory of this source tree.
814 */const eR=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],tR=D("message-circle-question-mark",eR);/**
815 * @license lucide-react v0.525.0 - ISC
816 *
817 * This source code is licensed under the ISC license.
818 * See the LICENSE file in the root directory of this source tree.
819 */const rR=[["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"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]],nR=D("message-square-text",rR);/**
820 * @license lucide-react v0.525.0 - ISC
821 *
822 * This source code is licensed under the ISC license.
823 * See the LICENSE file in the root directory of this source tree.
824 */const oR=[["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"}]],rp=D("message-square",oR);/**
825 * @license lucide-react v0.525.0 - ISC
826 *
827 * This source code is licensed under the ISC license.
828 * See the LICENSE file in the root directory of this source tree.
829 */const aR=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",heigh
829t:"13",rx:"3",key:"s6n7sd"}]],np=D("mic",aR);/**
830 * @license lucide-react v0.525.0 - ISC
831 *
832 * This source code is licensed under the ISC license.
833 * See the LICENSE file in the root directory of this source tree.
834 */const iR=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],sR=D("minimize",iR);/**
835 * @license lucide-react v0.525.0 - ISC
836 *
837 * This source code is licensed under the ISC license.
838 * See the LICENSE file in the root directory of this source tree.
839 */const lR=[["path",{d:"M5 12h14",key:"1ays0h"}]],cR=D("minus",lR);/**
840 * @license lucide-react v0.525.0 - ISC
841 *
842 * This source code is licensed under the ISC license.
843 * See the LICENSE file in the root directory of this source tree.
844 */const uR=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],dR=D("monitor",uR);/**
845 * @license lucide-react v0.525.0 - ISC
846 *
847 * This source code is licensed under the ISC license.
848 * See the LICENSE file in the root directory of this source tree.
849 */const fR=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],hR=D("moon",fR);/**
850 * @license lucide-react v0.525.0 - ISC
851 *
852 * This source code is licensed under the ISC license.
853 * See the LICENSE file in the root directory of this source tree.
854 */const pR=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],gR=D("panel-left",pR);/**
855 * @license lucide-react v0.525.0 - ISC
856 *
857 * This source code is licensed under the ISC license.
858 * See the LICENSE file in the root directory of this source tree.
859 */const mR=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],_R=D("party-popper",mR);/**
860 * @license lucide-react v0.525.0 - ISC
861 *
862 * This source code is licensed under the ISC license.
863 * See the LICENSE file in the root directory of this source tree.
864 */const yR=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],ER=D("pause",yR);/**
865 * @license lucide-react v0.525.0 - ISC
866 *
867 * This source code is licensed under the ISC license.
868 * See the LICENSE file in the root directory of this source tree.
869 */const vR=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],TR=D("pen-line",vR);/**
870 * @license lucide-react v0.525.0 - ISC
871 *
872 * This source code is licensed under the ISC license.
873 * See the LICENSE file in the root directory of this source tree.
874 */const CR=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],RR=D("pen",CR);/**
875 * @license lucide-react v0.525.0 - ISC
876 *
877 * This source code is licensed under the ISC license.
878 * See the LICENSE file in the root directory of this source tree.
879 */const SR=[["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["path",{d:"m9 20 3-6 3 6",key:"se2kox"}],["path",{d:"m6 8 6 2 6-2",key:"4o3us4"}],["path",{d:"M12 10v4",key:"1kjpxc"}]],bR=D("person-standing",SR);/**
880 * @license lucide-react v0.525.0 - ISC
881 *
882 * This source code is licensed under the ISC license.
883 * See the LICENSE file in the root directory of this source tree.
884 */const IR=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
884a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],OR=D("pin",IR);/**
885 * @license lucide-react v0.525.0 - ISC
886 *
887 * This source code is licensed under the ISC license.
888 * See the LICENSE file in the root directory of this source tree.
889 */const AR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],op=D("play",AR);/**
890 * @license lucide-react v0.525.0 - ISC
891 *
892 * This source code is licensed under the ISC license.
893 * See the LICENSE file in the root directory of this source tree.
894 */const wR=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ap=D("plus",wR);/**
895 * @license lucide-react v0.525.0 - ISC
896 *
897 * This source code is licensed under the ISC license.
898 * See the LICENSE file in the root directory of this source tree.
899 */const DR=[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]],NR=D("radio-tower",DR);/**
900 * @license lucide-react v0.525.0 - ISC
901 *
902 * This source code is licensed under the ISC license.
903 * See the LICENSE file in the root directory of this source tree.
904 */const kR=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],xR=D("redo-2",kR);/**
905 * @license lucide-react v0.525.0 - ISC
906 *
907 * This source code is licensed under the ISC license.
908 * See the LICENSE file in the root directory of this source tree.
909 */const MR=[["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"}]],LR=D("refresh-cw",MR);/**
910 * @license lucide-react v0.525.0 - ISC
911 *
912 * This source code is licensed under the ISC license.
913 * See the LICENSE file in the root directory of this source tree.
914 */const PR=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],UR=D("rotate-ccw",PR);/**
915 * @license lucide-react v0.525.0 - ISC
916 *
917 * This source code is licensed under the ISC license.
918 * See the LICENSE file in the root directory of this source tree.
919 */const BR=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],FR=D("rotate-cw",BR);/**
920 * @license lucide-react v0.525.0 - ISC
921 *
922 * This source code is licensed under the ISC license.
923 * See the LICENSE file in the root directory of this source tree.
924 */const $R=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],GR=D("rows-3",$R);/**
925 * @license lucide-react v0.525.0 - ISC
926 *
927 * This source code is licensed under the ISC license.
928 * See the LICENSE file in the root directory of this source tree.
929 */const HR=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],WR=D("save",HR);/**
930 * @license lucide-react v0.525.0 - ISC
931 *
932 * This source code is licensed under the ISC license.
933 * See the LICENSE file in the root directory of this source tree.
934 */const jR=[["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"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],zR=D("scan-search",jR);/**
935 * @license lucide-react v0.525.0 - ISC
936 *
937 * This source code is licensed under the ISC license.
938 * See the LICENSE file in the root directory of this source tree.
939 */const VR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Zc=D("search",VR);/**
940 * @license lucide-react v0.525.0 - ISC
941 *
942 * This source code is licensed under the ISC license.
943 * See the LICENSE file in the root directory of this source tree.
944 */const KR=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],YR=D("send",KR);/**
945 * @license lucide-react v0.525.0 - ISC
946 *
947 * This source code is licensed under the ISC license.
948 * See the LICENSE file in the root directory of this source tree.
949 */const qR=[["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"}]],QR=D("server",qR);/**
950 * @license lucide-react v0.525.0 - ISC
951 *
952 * This source code is licensed under the ISC license.
953 * See the LICENSE file in the root directory of this source tree.
954 */const XR=[["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"}]],JR=D("settings",XR);/**
955 * @license lucide-react v0.525.0 - ISC
956 *
957 * This source code is licensed under the ISC license.
958 * See the LICENSE file in the root directory of this source tree.
959 */const ZR=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],eS=D("shapes",ZR);/**
960 * @license lucide-react v0.525.0 - ISC
961 *
962 * This source code is licensed under the ISC license.
963 * See the LICENSE file in the root directory of this source tree.
964 */const tS=[["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"}]],ip=D("share-2",tS);/**
965 * @license lucide-react v0.525.0 - ISC
966 *
967 * This source code is licensed under the ISC license.
968 * See the LICENSE file in the root directory of this source tree.
969 */const rS=[["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",ke
969y:"oel41y"}],["path",{d:"M12 22V2",key:"zs6s6o"}]],nS=D("shield-half",rS);/**
970 * @license lucide-react v0.525.0 - ISC
971 *
972 * This source code is licensed under the ISC license.
973 * See the LICENSE file in the root directory of this source tree.
974 */const oS=[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]],aS=D("skip-back",oS);/**
975 * @license lucide-react v0.525.0 - ISC
976 *
977 * This source code is licensed under the ISC license.
978 * See the LICENSE file in the root directory of this source tree.
979 */const iS=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],sS=D("slash",iS);/**
980 * @license lucide-react v0.525.0 - ISC
981 *
982 * This source code is licensed under the ISC license.
983 * See the LICENSE file in the root directory of this source tree.
984 */const lS=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],ss=D("sliders-horizontal",lS);/**
985 * @license lucide-react v0.525.0 - ISC
986 *
987 * This source code is licensed under the ISC license.
988 * See the LICENSE file in the root directory of this source tree.
989 */const cS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["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"}]],uS=D("smile",cS);/**
990 * @license lucide-react v0.525.0 - ISC
991 *
992 * This source code is licensed under the ISC license.
993 * See the LICENSE file in the root directory of this source tree.
994 */const dS=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],fS=D("sparkles",dS);/**
995 * @license lucide-react v0.525.0 - ISC
996 *
997 * This source code is licensed under the ISC license.
998 * See the LICENSE file in the root directory of this source tree.
999 */const hS=[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]],pS=D("speech",hS);/**
1000 * @license lucide-react v0.525.0 - ISC
1001 *
1002 * This source code is licensed under the ISC license.
1003 * See the LICENSE file in the root directory of this source tree.
1004 */const gS=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],mS=D("split",gS);/**
1005 * @license lucide-react v0.525.0 - ISC
1006 *
1007 * This source code is licensed under the ISC license.
1008 * See the LICENSE file in the root directory of this source tree.
1009 */const _S=[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],yS=D("square-dashed",_S);/**
1010 * @license lucide-react v0.525.0 - ISC
1011 *
1012 * This source code is licensed under the ISC license.
1013 * See the LICENSE file in the root directory of this source tree.
1014 */const ES=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3",key:"m1af9g"}],["path",{d:"M9 11.2h5.7",key:"3zgcl2"}]],vS=D("square-function",ES);/**
1015 * @license lucide-react v0.525.0 - ISC
1016 *
1017 * This source code is licensed under the ISC license.
1018 * See the LICENSE file in the root directory of this source tree.
1019 */const TS=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],eu=D("square-pen",TS);/**
1020 * @license lucide-react v0.525.0 - ISC
1021 *
1022 * This source code is licensed under the ISC license.
1023 * See the LICENSE file in the root directory of this source tree.
1024 */const CS=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],RS=D("square-terminal",CS);/**
1025 * @license lucide-react v0.525.0 - ISC
1026 *
1027 * This source code is licensed under the ISC license.
1028 * See the LICENSE file in the root directory of this source tree.
1029 */const SS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],bS=D("square-x",SS);/**
1030 * @license lucide-react v0.525.0 - ISC
1031 *
1032 * This source code is licensed under the ISC license.
1033 * See the LICENSE file in the root directory of this source tree.
1034 */const IS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],sp=D("square",IS);/**
1035 * @license lucide-react v0.525.0 - ISC
1036 *
1037 * This source code is licensed under the ISC license.
1038 * See the LICENSE file in the root directory of this source tree.
1039 */const OS=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],lp=D("star",OS);/**
1040 * @license lucide-react v0.525.0 - ISC
1041 *
1042 * This source code is licensed under the ISC license.
1043 * See the LICENSE file in the root directory of this source tree.
1044 */const AS=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],wS=D("stethoscope",AS);/**
1045 * @license lucide-react v0.525.0 - ISC
1046 *
1047 * This source code is licensed under the ISC license.
1048 * See the LICENSE file in the root directory of this source tree.
1049 */const DS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],NS=D("sun",DS);/**
1050 * @license lucide-react v0.525.0 - ISC
1051 *
1052 * This source code is licensed under the ISC license.
1053 * See the LICENSE file in the root directory of this source tree.
1054 */const kS=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],xS=D("table",kS);/**
1055 * @license lucide-react v0.525.0 - ISC
1056 *
1057 * This source code is licensed under the ISC license.
1058 * See the LICENSE file in the root directory of this source tree.
1059 */const MS=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],LS=D("tag",MS);/**
1060 * @license lucide-react v0.525.0 - ISC
1061 *
1062 * This source code is licensed under the ISC license.
1063 * See the LICENSE file in the root directory of this source tree.
1064 */const PS=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],US=D("terminal",PS);/**
1065 * @license lucide-react v0.525.0 - ISC
1066 *
1067 * This source code is licensed under the ISC license.
1068 * See the LICENSE file in the root directory of this source tree.
1069 */const BS=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],FS=D("thumbs-down",BS);/**
1070 * @license lucide-react v0.525.0 - ISC
1071 *
1072 * This source code is licensed under the ISC license.
1073 * See the LICENSE file in the root directory of this source tree.
1074 */const $S=[["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 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],GS=D("thumbs-up",$S);/**
1075 * @license lucide-react v0.525.0 - ISC
1076 *
1077 * This source code is licensed under the ISC license.
1078 * See the LICENSE file in the root directory of this source tree.
1079 */const HS=[["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"}]],WS=D("timer",HS);/**
1080 * @license lucide-react v0.525.0 - ISC
1081 *
1082 * This source code is licensed under the ISC license.
1083 * See the LICENSE file in the root directory of this source tree.
1084 */const jS=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],zS=D("toggle-left",jS);/**
1085 * @license lucide-react v0.525.0 - ISC
1086 *
1087 * This source code is licensed under the ISC license.
1088 * See the LICENSE file in the root directory of this source tree.
1089 */const VS=[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],KS=D("toggle-right",VS);/**
1090 * @license lucide-react v0.525.0 - ISC
1091 *
1092 * This source code is licensed under the ISC license.
1093 * See the LICENSE file in the root directory of this source tree.
1094 */const YS=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],tu=D("trash-2",YS);/**
1095 * @license lucide-react v0.525.0 - ISC
1096 *
1097 * This source code is licensed under the ISC license.
1098 * See the LICENSE file in the root directory of this source tree.
1099 */const qS=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],QS=D("trash",qS);/**
1100 * @license lucide-react v0.525.0 - ISC
1101 *
1102 * This source code is licensed under the ISC license.
1103 * See the LICENSE file in the root directory of this source tree.
1104 */const XS=[["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-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ru=D("triangle-alert",XS);/**
1105 * @license lucide-react v0.525.0 - ISC
1106 *
1107 * This source code is licensed under the ISC license.
1108 * See the LICENSE file in the root directory of this source tree.
1109 */const JS=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],ZS=D("undo-2",JS);/**
1110 * @license lucide-react v0.525.0 - ISC
1111 *
1112 * This source code is licensed under the ISC license.
1113 * See the LICENSE file in the root directory of this source tree.
1114 */const eb=[["path",{d:"M12 22v-6",key:"6o8u61"}
1114],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],tb=D("unfold-vertical",eb);/**
1115 * @license lucide-react v0.525.0 - ISC
1116 *
1117 * This source code is licensed under the ISC license.
1118 * See the LICENSE file in the root directory of this source tree.
1119 */const rb=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],nb=D("unlink",rb);/**
1120 * @license lucide-react v0.525.0 - ISC
1121 *
1122 * This source code is licensed under the ISC license.
1123 * See the LICENSE file in the root directory of this source tree.
1124 */const ob=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],nu=D("upload",ob);/**
1125 * @license lucide-react v0.525.0 - ISC
1126 *
1127 * This source code is licensed under the ISC license.
1128 * See the LICENSE file in the root directory of this source tree.
1129 */const ab=[["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"}]],ib=D("user",ab);/**
1130 * @license lucide-react v0.525.0 - ISC
1131 *
1132 * This source code is licensed under the ISC license.
1133 * See the LICENSE file in the root directory of this source tree.
1134 */const sb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],cp=D("users",sb);/**
1135 * @license lucide-react v0.525.0 - ISC
1136 *
1137 * This source code is licensed under the ISC license.
1138 * See the LICENSE file in the root directory of this source tree.
1139 */const lb=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],cb=D("video",lb);/**
1140 * @license lucide-react v0.525.0 - ISC
1141 *
1142 * This source code is licensed under the ISC license.
1143 * See the LICENSE file in the root directory of this source tree.
1144 */const ub=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],up=D("volume-2",ub);/**
1145 * @license lucide-react v0.525.0 - ISC
1146 *
1147 * This source code is licensed under the ISC license.
1148 * See the LICENSE file in the root directory of this source tree.
1149 */const db=[["path",{d:"M16 9a5 5 0 0 1 .95 2.293",key:"1fgyg8"}],["path",{d:"M19.364 5.636a9 9 0 0 1 1.889 9.96",key:"l3zxae"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11",key:"1gbwow"}],["path",{d:"M9.828 4.172A.686.686 0 0 1 11 4.657v.686",key:"s2je0y"}]],fb=D("volume-off",db);/**
1150 * @license lucide-react v0.525.0 - ISC
1151 *
1152 * This source code is licensed under the ISC license.
1153 * See the LICENSE file in the root directory of this source tree.
1154 */const hb=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],pb=D("wand-sparkles",hb);/**
1155 * @license lucide-react v0.525.0 - ISC
1156 *
1157 * This source code is licensed under the ISC license.
1158 * See the LICENSE file in the root directory of this source tree.
1159 */const gb=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],mb=D("workflow",gb);/**
1160 * @license lucide-react v0.525.0 - ISC
1161 *
1162 * This source code is licensed under the ISC license.
1163 * See the LICENSE file in the root directory of this source tree.
1164 */const _b=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],ou=D("wrench",_b);/**
1165 * @license lucide-react v0.525.0 - ISC
1166 *
1167 * This source code is licensed under the ISC license.
1168 * See the LICENSE file in the root directory of this source tree.
1169 */const yb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xa=D("x",yb);/**
1170 * @license lucide-react v0.525.0 - ISC
1171 *
1172 * This source code is licensed under the ISC license.
1173 * See the LICENSE file in the root directory of this source tree.
1174 */const Eb=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],au=D("zap",Eb),go={xs:"0.75rem",sm:"0.875rem",md:"1rem",base:"1.125rem",lg:"1.25rem",xl:"1.5rem"},vb=1.5,iu="inworld-ui-icon",Qt="--inworld-icon-size",ls="1.2em",Tb="1.5rem",Cb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase(),Rb=2,Tt=e=>{const t=f.forwardRef((r,n)=>T.jsx(e,{fill:"currentColor",...r,ref:n,strokeWidth:Rb}));return t.displayName=e.displayName,t},Ci={Functions:Uy,MpOutlined:$y},Hx=Object.keys(Ci),tr={faAlignLeft:Ky,faAnglesUpDown:fv,faArrowDown:aE,faArrowDownRight:Zy,faArrowDownToLine:tE,faArrowDownWideShort:nE,faArrowLeft:cE,faArrowLeftToLine:sE,faArrowRight:hE,faArrowRightToLine:dE,faArrowRotateRight:FR,faArrowsFromLine:tb,faArrowsRotate:LR,faArrowsToLine:jT,faArrowTurnDown:eT,faArrowTurnDownLeft:Jv,faArrowUp:RE,faArrowUpArrowDown:gE,faArrowUpFromBracket:nu,faArrowUpFromLine:_E,faArrowUpRight:TE,faArrowUpRightAndArrowDownLeftFromCenter:zC,faArrowUpRightFromSquare:yT,faArrowUpShortWide:EE,faBackwardFast:aS,faBan:OE,faBars:XC,faBarsFilter:PC,faBarsProgress:ss,faBell:wE,faBolt:au,faBoltAuto:au,faBook:Yh,faBookOpen:NE,faBracketsCurly:BE,faBrain:$E,faBug:HE,faBuilding:jE,faBullhorn:KC,faCalculator:VE,faCalendar:QE,faCalendarXmark:YE,faCaretDown:zc,faCaretRight:Vc,faChartBar:ev,faChartLine:qh,faChartPie:nv,faChartSimpleHorizontal:JE,faCheck:Qh,faChevronDown:zc,faChevronLeft:sv,faChevronRight:Vc,faChevronUp:uv,faCircle:Dv,faCircleCheck:mv,faCircleExclamation:pv,faCircleInfo:Qc,faCircleMinus:vv,faCirclePause:Cv,faCirclePlay:Sv,faCirclePlus:Iv,faCircleQuestion:Js,faCircleXmark:Xh,faClipboard:kv,faClock:Mv,faClockRotateLeft:RC,faClose:Xa,faCloudArrowDown:Pv,faCode:Bv,faCodeBranch:pC,faCoins:$v,faColumns3:jv,faCommand:Vv,faCommentDots:ZC,faCompass:Yv,faCompress:sR,faCopy:Qv,faCreditCard:Jh,faCube:PE,faDatabase:aT,faSun:NS,faMoon:hR,faDesktop:dR,faDiagramProject:mb,faDollar:Kc,faDollarCircle:yv,faDollarSign:Kc,faDownload:lT,faEarthAmericas:uT,faEdit:eu,faEllipsis:pT,faEllipsisVertical:fT,faExclamationTriangle:ru,faExpand:mT,faEye:CT,faEyeSlash:vT,faFaceAngry:qy,faFaceAnguished:is,faFaceDizzy:Xy,faFaceFrown:is,faFaceShush:fb,faFaceSmile:uS,faFaceSmileWink:Xc,faFaceSurprise:qC,faFile:$T,faFileArrowDown:AT,faFileAudio:ST,faFileCheck:IT,faFileCircleXmark:BT,faFileCsv:MT,faFileExport:kT,faFileImport:DT,faFileLines:PT,faFilter:sC,faFilterSlash:aC,faFlask:HT,faFloppyDisk:WR,faFolder:rC,faFolderArrowDown:YT,faFolderArrowUp:eC,faFolderCheck:VT,faFolderOpen:QT,faFolderTree:JT,faFunction:vS,faGamepad:Yc,faGamepadModern:Yc,faGaugeHigh:uC,faGear:JR,faGift:fC,faGlobe:mC,faGraduationCap:yC,faGrid:NC,faGripDotsVertical:qc,faGripVertical:qc,faHome:Zh,faImage:IC,faInfoCircle:Qc,faKey:ep,faEnvelope:WC,faLaugh:Xc,faLightbulb:tp,faLink:MC,faLinkSlash:nb,faList:Jc,faListUl:Jc,faLock:FC,faMagnifyingGlass:Zc,faMagnifyingGlassWaveform:zR,faMessage:rp,faMessageQuestion:tR,faMessageText:nR,faMicrochip:rT,faMicrophone:np,faMinus:cR,faPaperPlane:YR,faPartyHorn:_R,faPen:RR,faPenLine:TR,faPenToSquare:eu,faPersonWalking:bR,faPlay:op,faPlus:ap,faQuestionCircle:Js,faRedo:xR,faRobot:ME,faRotateLeft:UR,faSadTear:is,faScrewdriverWrench:ou,faSearch:Zc,faServer:QR,faShapes:eS,faShareNodes:ip,faShieldHalved:nS,faSidebar:gR,faSignOut:GC,faSlash:sS,faSliders:ss,faSlidersH:ss,faSparkles:fS,faSpeech:pS,faSplit:mS,faSquareDashedCirclePlus:yS,faSquareTerminal:RS,faSquareXmark:bS,faStar:lp,faStethoscope:wS,faStop:sp,faStopwatch:WS,faTable:xS,faTableCells:vC,faTableColumns:Hv,faTableList:GR,faTag:LS,faTerminal:US,faThumbsDown:FS,faThumbsUp:GS,faThumbtack:OR,faTimes:Xa,faToggleOff:zS,faToggleOn:KS,faTowerBroadcast:NR,faTrash:QS,faTrashAlt:tu,faTrashCan:tu,faTriangleExclamation:ru,faUndo:ZS,faUpload:nu,faUser:ib,faUsers:cp,faVideo:cb,faVolumeHigh:up,faWandMagicSparkles:pb,faWaveform:Kh,faWaveformLines:Vh,faWrench:ou,faXmark:Xa,...Ci},su={faBook:Tt(Yh),faChartLine:Tt(qh),faCheck:Tt(Qh),faCircleQuestion:Tt(Js
1174),faCircleXmark:Tt(Xh),faCreditCard:Tt(Jh),faHome:Tt(Zh),faKey:Tt(ep),faLightbulb:Tt(tp),faMessage:Tt(rp),faMicrophone:Tt(np),faPause:Tt(ER),faPlay:Tt(op),faPlus:Tt(ap),faShareNodes:Tt(ip),faStar:Tt(lp),faStop:Tt(sp),faUsers:Tt(cp),faVolumeHigh:Tt(up),faWaveform:Tt(Kh),faWaveformLines:Tt(Vh),faXmark:Tt(Xa)},Wx=tr,lr=({icon:e,...t})=>{var r;if(!e)return null;if(typeof e=="string"&&Object.prototype.hasOwnProperty.call(Ci,e)){const{size:n,sx:o,...a}=t,i=Ci[e];return T.jsx(i,{sx:[{fontSize:n?go[n]:`var(${Qt}, ${Tb})`},...Array.isArray(o)?o:[o]],...a})}if(typeof e=="function"||typeof e=="object"){const{size:n,className:o,style:a,...i}=t,s=e,l=(r=s.displayName)!=null?r:"";return T.jsx(s,{"data-icon":l?Cb(l):void 0,size:n?go[n]:ls,strokeWidth:vb,...i,style:{width:`var(${Qt}, ${ls})`,height:`var(${Qt}, ${ls})`,...n?{[Qt]:go[n]}:{},...a},className:o?`${iu} ${o}`:iu})}return console.error("Invalid icon provided to the Icon component:",e),null};var wo={},lu;function Sb(){if(lu)return wo;lu=1;var e=Mr();Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0;var t=e(fn()),r=cn();return wo.default=(0,t.default)((0,r.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),wo}var bb=Sb();const Ib=Kr(bb);var Do={},cu;function Ob(){if(cu)return Do;cu=1;var e=Mr();Object.defineProperty(Do,"__esModule",{value:!0}),Do.default=void 0;var t=e(fn()),r=cn();return Do.default=(0,t.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Do}var Ab=Ob();const wb=Kr(Ab),Db=({className:e})=>T.jsx(lr,{icon:tr.faArrowDown,size:"md",className:["TableSortIcon",e].filter(
1174Boolean).join(" ")}),jx=({className:e})=>T.jsx(lr,{icon:tr.faArrowUp,size:"md",className:["TableSortAscendingIcon",e].filter(Boolean).join(" ")}),cs=(e,t)=>{const r=e.palette[t];return{backgroundColor:r.light,borderColor:ke(r.main,.4),"& .MuiAlert-icon":{color:r.main},"& .MuiAlertTitle-root":{color:r.dark}}},Nb=()=>({styleOverrides:{root:({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"& .MuiAlert-icon":{color:e.palette.text.secondary},"&.MuiAlert-standard.MuiAlert-colorSuccess":cs(e,"success"),"&.MuiAlert-standard.MuiAlert-colorWarning":cs(e,"warning"),"&.MuiAlert-standard.MuiAlert-colorError":cs(e,"error")})}}),kb=Ze(lr)(({theme:e})=>({"&&":{color:e.palette.text.secondary},"&.MuiSelect-icon, &.MuiNativeSelect-icon":{top:`calc(50% - ${go.md} / 2)`},".Mui-disabled &":{color:e.palette.text.disabled},"&&.Mui-disabled":{color:e.palette.text.disabled}})),Gi=({className:e,disabled:t=!1})=>T.jsx(kb,{icon:tr.faChevronDown,size:"md",className:["SelectChevron",e,t&&"Mui-disabled"].filter(Boolean).join(" ")}),jn={small:{height:"2.5rem"},medium:{height:"3rem"}},qt={fontSize:xe.md,borderRadius:je.md,borderWidth:"1px",borderStyle:"solid"},Zs=jn.small.height,xb=e=>bo[e].focus.ring,uu=e=>({...bo[e.palette.mode].focus,...e.palette.focus}),Mb=e=>bo[e].focus.hoverBorder,kl="var(--inworld-field-hover-border)",cr=e=>({outline:"solid 1px",outlineOffset:"-1px",outlineColor:uu(e).ring,boxShadow:`0 0 0 2px ${uu(e).halo}`}),uo=e=>({rest:{backgroundColor:e.palette.background.paper,borderColor:e.palette.divider},hover:{backgroundColor:e.palette.background.paper,borderColor:kl},focus:{backgroundColor:e.palette.background.paper,...cr(e)},disabled:{backgroundColor:e.palette.background.surface.dark},error:{borderColor:e.palette.error.main},errorFocus:{borderColor:e.palette.error.main,boxShadow:`0 0 0 2px ${ke(e.palette.error.main,.25)}`}}),dp={height:Zs,minHeight:Zs,borderRadius:qt.borderRadius,borderWidth:qt.borderWidth,borderStyle:qt.borderStyle,borderColor:"divider",flexShrink:0},zx={...dp,width:Zs},Vx=e=>({"& .MuiOutlinedInput-root, &.MuiOutlinedInput-root":{backgroundColor:"transparent","& fieldset, & .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused":cr(e)}}),Lb=(e,t)=>({marginTop:"1rem",border:"1px solid",borderColor:t.palette.divider,boxShadow:$i.sm,"& .MuiAutocomplete-listbox":{padding:"0.25rem",display:"flex",flexDirection:"column",gap:"0.25rem","& .MuiAutocomplete-option":{fontWeight:400,fontSize:xe.md,borderRadius:je.sm,padding:" 0.5rem",flex:"none","&:hover":{backgroundColor:t.palette.action.hover},'&[aria-selected="true"]':{backgroundColor:t.palette.action.selected,"&:hover":{backgroundColor:t.palette.action.selected}},"&.Mui-focusVisible":{...cr(t)}}}}),Pb=e=>({defaultProps:{popupIcon:f.createElement(Gi)},styleOverrides:{inputRoot:({ownerState:t})=>{var r;return t.multiple?{"&.MuiOutlinedInput-root.MuiInputBase-root":{height:"auto",minHeight:jn[(r=t.size)!=null?r:"medium"].height}}:{}},paper:({theme:t})=>({"&.inworld-text-field-menu":{...Lb(e,t)}})}}),fp=({main:e,contrastText:t})=>{const r=bm(e,.12),n=Im(e,.12);return uc(r,t)>=uc(n,t)?r:n},Ub=e=>({defaultProps:{size:"small",disableElevation:!0,disableFocusRipple:!0},variants:[{props:{variant:"contained"},style:{minHeight:"2.5rem",paddingLeft:"1rem",paddingRight:"1rem"}}],styleOverrides:{sizeSmall:{minHeight:"2rem",borderRadius:je.md,[[".MuiButton-contained + &","&:has(+ .MuiButton-contained)",".MuiButton-contained + span > &"].join(", ")]:{minHeight:"2.5rem"}},sizeMedium:{minHeight:"2.5rem"},sizeLarge:{minHeight:"3rem"},root:({theme:t})=>{const r=t;return{...Object.fromEntries(["primary","secondary","info","success","warning","error"].map(n=>[`&.MuiButton-contained.MuiButton-color${n[0].toUpperCase()+n.slice(1)}:not(.Mui-disabled):hover`,{backgroundColor:fp(r.palette[n])}])),fontSize:xe.md,fontWeight:400,textTransform:"none",borderRadius:je.md,boxShadow:"none",letterSpacing:0,"&:focus-visible":{...cr(r)},[Qt]:"0.875rem","&.MuiButton-root.Mui-disabled":{color:r.palette.action.disabled,"&.MuiButton-contained":{backgroundColor:r.palette.action.disabledBackgroun
1174d},"& .MuiSvgIcon-root, & .MuiTypography-root":{color:"inherit"}}}}}}),Bb=e=>({defaultProps:{disableRipple:!0,disableTouchRipple:!0},styleOverrides:{root:({theme:t})=>({"&.MuiButtonBase-root":{color:t.palette.text.primary,"&.Mui-selected":{color:t.palette.text.primary}},"&.MuiButton-text, &.MuiButton-text.MuiButton-colorPrimary, &.MuiButton-text.MuiButton-colorSecondary":{color:t.palette.text.primary},"&.MuiButton-contained.MuiButton-colorPrimary":{color:t.palette.primary.contrastText},"&.MuiButton-contained.MuiButton-colorSecondary":{color:t.palette.secondary.contrastText},"&.MuiButton-contained.MuiButton-colorInfo":{color:t.palette.info.contrastText},"&.MuiButton-contained.MuiButton-colorError":{color:t.palette.error.contrastText},"&.MuiButton-contained.MuiButton-colorSuccess":{color:t.palette.success.contrastText},"&.MuiButton-contained.MuiButton-colorWarning":{color:t.palette.warning.contrastText},"&.MuiButton-outlined.MuiButton-colorPrimary, &.MuiButton-outlined.MuiButton-colorSecondary":{borderColor:t.palette.divider,color:t.palette.text.primary,"&:hover":{borderColor:kl}},"&.MuiButton-contained.MuiButton-colorPrimary, &.MuiButton-contained.MuiButton-colorSecondary, &.MuiButton-contained.MuiButton-colorInfo":{"& .MuiSvgIcon-root":{color:"currentcolor"}},"&.MuiButton-contained.Mui-disabled":{backgroundColor:t.palette.action.disabledBackground},"&.MuiButtonBase-root.Mui-disabled:where(:not(.MuiListItemButton-root):not(.MuiCheckbox-root):not(.MuiRadio-root))":{color:t.palette.action.disabled},"&.Mui-disabled.MuiRadio-root, &.Mui-disabled.MuiCheckbox-root":{color:t.palette.text.disabled}})}}),Fb=e=>({defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:je.lg}}}),$b=e=>({defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:t})=>({borderRadius:je.sm,"&.MuiCheckbox-root":{color:t.palette.text.secondary,"&.Mui-checked, &.MuiCheckbox-indeterminate":{color:t.palette.primary.main},"&.Mui-disabled":{color:t.palette.text.disabled}},"&.Mui-focusVisible":{...cr(t)}})}}),Gb=e=>({styleOverrides:{root:({theme:t})=>({...Object.fromEntries(["primary","secondary","info","success","warning","error"].map(r=>{const n=t.palette[r];return[`&.MuiChip-root.MuiChip-filled.MuiChip-color${r[0].toUpperCase()+r.slice(1)}:not(.Mui-disabled)`,{color:n.contrastText,backgroundColor:n.main,"&:hover, &.Mui-focusVisible":{backgroundColor:fp(n)}}]})),"& .MuiChip-deleteIcon":{color:"inherit","&:hover":{color:"inherit"}},"&.MuiChip-colorDefault.MuiChip-filled":{color:t.palette.text.primary,backgroundColor:t.palette.background.surface.main,"&.MuiChip-clickable:hover":{backgroundColor:t.palette.action.hover}}})}}),Hb=`@font-face {
1175  font-family: "FeatureDeck";
1176  src: url("https://storage.googleapis.com/assets-inworld-ai/fonts/FeatureDeck-Regular-Web.woff2")
1177  format("woff2");
1178  font-weight: normal;
1179  font-style: normal;
1180  font-display: swap;
1181}`,Wb=()=>F?Object.entries(F).map(([e,t])=>Object.entries(t).map(([r,n])=>`--inworld-${e}-${r}: ${n};`).join(`
1182`)).join(`
1183`):"",jb=e=>({styleOverrides:t=>{var n,o,a,i,s;const r=(n=t.palette.background.surface)!=null?n:bo[e].background.surface;return`/* Next.js font importing was setting Plex as primary body font */
1184  ${Hb}
1185  :root {
1186  --global-page-gutter: 0.5rem;
1187
1188	${Wb()}
1189  --text-primary-dark: var(--inworld-gray-0);
1190  --text-secondary-dark: var(--inworld-gray-100);
1191  --text-tertiary-dark: var(--inworld-gray-200);
1192  --text-primary-light: var(--inworld-gray-1000);
1193  --text-secondary-light: var(--inworld-gray-900);
1194  --text-tertiary-light: var(--inworld-gray-800);
1195  --inworld-divider-dark: var(--inworld-gray-700);
1196  /* The status roles, as every other surface draws them. These were two
1197     hand-picked hexes — a brighter green and a redder red than the palette's
1198     own — and a single error colour for both modes; the only consumers are
1199     the trace spans in observability, which now match the status colours the
1200     rest of the product uses. */
1201  --inworld-success: ${t.palette.success.main};
1202  --inworld-error: ${t.palette.error.main};
1203
1204
1205  --inworld-background-default: ${t.palette.background.default};
1206  --inworld-background-paper: ${t.palette.background.paper};
1207
1208  --inworld-background-surface-dark: ${r.dark};
1209  --inworld-background-surface-light: ${r.light};
1210  --inworld-background-surface-main: ${r.main};
1211
1212
1213  --inworld-text-primary: ${t.palette.text.primary};
1214  --inworld-text-secondary: ${t.palette.text.secondary};
1215  --inworld-divider: ${t.palette.divider};
1216  /* The hover edge every outlined control shares — see FIELD_HOVER_BORDER_COLOR. */
1217  --inworld-field-hover-border: ${(a=(o=t.palette.focus)==null?void 0:o.hoverBorder)!=null?a:Mb(e)};
1218  --font-display: "FeatureDeck", serif;
1219
1220  --inworld-success-background: ${e==="light"?zt.light.success.background:zt.dark.success.background};
1221  --inworld-success-primary: ${e==="light"?zt.light.success.primary:zt.dark.success.primary};
1222  --inworld-success-text: ${e==="light"?zt.light.success.text:zt.dark.success.text};
1223  --inworld-success-border: ${e==="light"?zt.light.success.border:zt.dark.success.border};
1224
1225  --inworld-error-background: ${e==="light"?zt.light.error.background:zt.dark.error.background};
1226  --inworld-error-primary: ${e==="light"?zt.light.error.primary:zt.dark.error.primary};
1227  --inworld-error-text: ${e==="light"?zt.light.error.text:zt.dark.error.text};
1228  --inworld-error-border: ${e==="light"?zt.light.error.border:zt.dark.error.border};
1229
1230  body, body[class^="__className_"] {
1231    font-family: 'Inter', sans-serif;
1232        }
1233
1234  /* Anything focusable the design system does not style itself — a native
1235     input, a textarea, a div with tabindex — otherwise draws the browser's own
1236     ring, which Chrome paints near-black. One green ring for those, matching
1237     \`applyFocusStyles\`.
1238
1239     This sits inside the \`:root\` block above, so it is emitted as
1240     \`:root :where(…)\` — one pseudo-class of specificity, which any component
1241     rule (\`&:focus-visible\` on an emotion class) still out-ranks. MUI's own
1242     field controls are excluded outright: they draw their ring on the input
1243     ROOT, so letting it apply to the inner \`<input>\` too would paint a second
1244     ring inside the first. */
1245  :where(a, button, input, textarea, select, summary, [tabindex]):not(
1246      .MuiInputBase-input
1247    ):focus-visible {
1248    outline: solid 1px ${(s=(i=t.palette.focus)==null?void 0:i.ring)!=null?s:xb(e)};
1249    outline-offset: 1px;
1250  }
1251        -moz-osx-font-smoothing: grayscale;
1252          @font-face {
1253            font-family: 'Codicon';
1254            src: url('https://assets.inworld.ai/fonts/codicon.ttf') format('truetype');
1255            font-weight: normal;
1256            font-style: normal;
1257        }
1258
1259          `}}),zb=e=>({styleOverrides:{paper:{borderRadius:je.md,backgroundImage:"none"},root:({theme:t})=>({"& .MuiBackdrop-root":{backgroundColor:t.palette.overlay.backdrop,backdropFilter:"blur(2px)"}})}}),Vb=e=>({styleOverrides:{root:{padding:"0 1.5rem 1.5rem 1.5rem"}}}),Kb=e=>({styleOverrides:{root:{paddingLeft:"1.5rem",paddingRight:"1.5rem"}}}),Yb=e=>({styleOverrides:{root:{fontSize:xe.xl}}}),qb=e=>{var t;return{styleOverrides:{root:{borderColor:(t=bo[e])==null?void 0:t.divider}}}},Qb=e=>({styleOverrides:{paper:{backgroundImage:"none"},modal:{"& .MuiDrawer-paper":{boxShadow:$i.lg}}}}),Xb=e=>({styleOverrides:{root:{"& .Mui-disabled *":{cursor:"not-allowed"}}}}),Jb=e=>({styleOverrides:{root:{"&.Mui-disabled":{cursor:"not-allowed"}}}}),Zb=()=>({styleOverrides:{root:({theme:e})=>({...e.typography.caption,marginLeft:0,marginRight:0,marginTop:e.spacing(.5),"&.Mui-error":{color:e.palette.error.dark}})}}),eI=e=>({styleOverrides:{root:({theme:t})=>({color:t.palette.text.primary,"&.Mui-disabled":{color:t.palette.text.disabled}})}}),tI=e=>({defaultProps:{color:"info"},styleOverrides:{root:({theme:t})=>({borderColor:t.palette.divider,borderRadius:je.md,color:t.palette.text.secondary,[Qt]:"1.25rem","& .MuiSvgIcon-root":{height:"1.25rem",width:"1.25rem"},"&:hover":{color:t.palette.text.primary},"&.MuiIconButton-colorInfo":{color:t.palette.text.secondary,"&:hover":{color:t.palette.text.primary}},"&.Mui-disabled":{color:t.palette.text.disabled}})}}),rI=()=>({styleOverrides:{root:({theme:e})=>({color:e.palette.text.secondary,".MuiInputBase-root.Mui-disabled &":{color:e.palette.text.disabled}})}}),nI=e=>({styleOverrides:{root:({theme:t})=>({...e==="light"&&{background:t.palette.background.paper},fontSize:qt.fontSize})}}),oI=e=>({styleOverrides:{root:({theme:t})=>({color:t.palette.text.accent})}}),aI=e=>({styleOverrides:{root:{paddingTop:0,paddingBottom:0}}}),iI=e=>({styleOverrides:{root:{color:"inherit","& .MuiSvgIcon-root":{color:"inherit"}}}}),sI=e=>({styleOverrides:{root:({theme:t})=>({lineHeight:"2rem",fontSize:xe.md,color:t.palette.text.secondary})}}),lI=(e,t)=>({"& .MuiPaper-root":{marginTop:"1rem",border:"1px solid",borderColor:t.palette.divider,"& .MuiList-root":{padding:"0.25rem",display:"flex",flexDirection:"column",gap:"0.25rem"},"& .MuiMenuItem-root":{fontWeight:400,fontSize:xe.md,paddingLeft:"0.5rem",borderRadius:je.sm,"&:hover":{backgroundColor:t.palette.action.hover},"&.Mui-selected":{backgroundColor:t.palette.action.selected,"&:hover":{backgroundColor:t.palette.action.selected}},"&.Mui-focusVisible":{...cr(t)},"& .MuiInputAdornment-root":{marginTop:"0",display:"flex",marginLeft:"-0.25rem",height:"unset","& svg":{marginLeft:"0",marginRight:"0"}},[Qt]:"1.25rem","& svg:not(.MuiSelect-icon)":{marginLeft:"-0.25rem",marginRight:"0.5rem"},"& svg":{color:t.palette.text.secondary},"& .MuiSvgIcon-root":{height:"1.25rem",width:"1.25rem"}}
1259,boxShadow:$i.sm}}),cI=e=>({styleOverrides:{root:({theme:t})=>({"&.inworld-text-field-menu":{...lI(e,t)}})}}),uI=e=>({styleOverrides:{root:({theme:t})=>({"&:hover":{backgroundColor:t.palette.action.hover},"&.Mui-selected":{backgroundColor:t.palette.action.selected,"&:hover":{backgroundColor:t.palette.action.selected}}})}}),dI=e=>({defaultProps:{size:"medium"},styleOverrides:{root:({theme:t})=>({fontWeight:"400",borderRadius:qt.borderRadius,"&:not(.MuiInputBase-multiline)":{height:jn.small.height},"&.MuiInputBase-sizeMedium:not(.MuiInputBase-multiline)":{height:jn.medium.height},"& .MuiOutlinedInput-notchedOutline":{border:"solid 1px ",borderColor:uo(t).rest.borderColor,fontWeight:"400"},"&.MuiInputBase-multiline":{padding:"0.75rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:t.palette.divider},"&:hover:not(.Mui-disabled):not(.Mui-focused) .MuiOutlinedInput-notchedOutline":{borderColor:uo(t).hover.borderColor},"&.Mui-focused:not(.Mui-disabled)":{...uo(t).focus,backgroundColor:"transparent","& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:uo(t).focus.outlineColor}}})}}),fI=()=>({styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.divider}`,borderRadius:je.full,padding:"0.25rem 0"})}}),hI=e=>({styleOverrides:{root:({theme:t})=>({'&.Mui-selected, &[aria-current="true"]':{color:t.palette.text.primary,backgroundColor:t.palette.action.selected,"&:hover":{backgroundColor:t.palette.action.selected}},"&:hover:not(.Mui-selected)":{backgroundColor:t.palette.action.hover},"&.Mui-disabled":{backgroundColor:"transparent",color:t.palette.text.disabled}})}}),pI=e=>({styleOverrides:{root:{backgroundImage:"none",border:"none","&.MuiPaper-elevation.MuiPopover-paper":{backgroundImage:"none"}}}}),gI=()=>({MuiPickersInputBase:{styleOverrides:{root:({theme:e})=>({fontSize:qt.fontSize,height:jn.small.height,borderRadius:qt.borderRadius,color:e.palette.text.primary})}},MuiPickersOutlinedInput:{styleOverrides:{root:({theme:e})=>{const t=uo(e);return{borderRadius:qt.borderRadius,borderWidth:qt.borderWidth,borderStyle:qt.borderStyle,...t.rest,"&:hover:not(.Mui-disabled)":t.hover,"&.Mui-focused":t.focus,"&.Mui-disabled":t.disabled,"&.Mui-error":t.error,"&.Mui-error.Mui-focused":t.errorFocus}},notchedOutline:{border:"none"}}}}),mI=e=>({defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:t})=>({"&.MuiRadio-root":{color:t.palette.text.secondary,"&.Mui-checked":{color:t.palette.primary.main},"&.Mui-disabled":{color:t.palette.text.disabled}},"&.Mui-focusVisible":{...cr(t),borderRadius:"50%"}})}}),_I=e=>({defaultProps:{IconComponent:Gi},styleOverrides:{icon:{...e==="dark"&&{color:"currentcolor"}}}}),yI=e=>({styleOverrides:{rectangular:{borderRadius:je.sm},rounded:{borderRadius:je.sm}}}),EI=e=>({styleOverrides:{root:{touchAction:"pan-y","&.MuiSlider-vertical":{touchAction:"pan-x"},"& .MuiSlider-thumb":{height:"0.75rem",width:"0.75rem",flex:"none"}},valueLabel:({theme:t})=>({fontFamily:yr.mono,fontSize:xe.sm,borderRadius:je.md,backdropFilter:"blur(2px)","&::before":{display:"none"},color:t.palette.inverse.text,backgroundColor:t.palette.inverse.background})}}),vI=e=>({styleOverrides:{root:({theme:t})=>({"&:not(.dark-mode-toggle) .MuiSwitch-switchBase.Mui-disabled":{color:t.palette.text.disabled,"& + .MuiSwitch-track":{backgroundColor:t.palette.action.disabledBackground,opacity:1}},"&:not(.dark-mode-toggle) .MuiSwitch-switchBase.Mui-checked:not(.Mui-disabled)":{color:t.palette.primary.main,"& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main}}})}}),TI=e=>({defaultProps:{disableRipple:!0},styleOverrides:{root:({theme:t})=>({textTransform:"none",fontSize:xe.md,fontWeight:500,letterSpacing:0,color:t.palette.text.secondary,"&.Mui-selected":{color:t.palette.text.primary}})}}),CI=e=>({defaultProps:{size:"small"}}),RI=e=>({styleOverrides:{head:({theme:t})=>({background:t.palette.background.surface.main,color:t.palette.text.secondary,fontWeight:500,fontSize:xe.sm,lineHeight:Rt.sm})}}),SI=e=>({styleOverrides:{root:{whiteSpace:"nowrap"}}}),bI=e=>({styleOverrides:{root:{".MuiTableBody-root > &:last-of-type .MuiTableCell-root":{borderBottom:0}}}}),II=e=>({styleOverrides:{indicator:({theme:t})=>({height:2,backgroundColor:t.palette.text.primary})}}),du=e=>jn[e!=null?e:"medium"].height,OI=(e,t,r)=>{const n=uo(e);return{width:"100%","& .MuiInputBase-root":{...n.rest,fontWeight:400,fontSize:qt.fontSize,borderWidth:qt.borderWidth,borderStyle:qt.borderStyle,borderRadius:qt.borderRadius,paddingTop:"0.75rem",paddingBottom:"0.75rem",display:"flex",alignItems:"center","&:not(.MuiInputBase-multiline)":{height:du(r)},"&.MuiAutocomplete-inputRoot":{height:"auto",minHeight:du(r),paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)},"& fieldset":{border:"none"},"& .MuiInputAdornment-root":{marginTop:"0",display:"flex",marginLeft:"-0.25rem",height:"unset",opacity:1,"& svg":{marginLeft:"0",marginRight:"0"}},[Qt]:"1.25rem","& svg:not(.MuiSelect-icon):not(.SelectChevron)":{color:e.palette.text.secondary},"& .MuiSvgIcon-root:not(.MuiSelect-icon)":{height:"1.25rem",width:"1.25rem"},"& .MuiNativeSelect-icon:not(.SelectChevron)":{height:"1.25rem",width:"1.25rem",top:"calc(50% - 0.625rem)"},"&:focus:not(.Mui-disabled), &:focus-within:not(.Mui-disabled)":{...n.focus,"& fieldset":{border:"none"}},"&.Mui-disabled":n.disabled,"&:hover:not(.Mui-disabled)":n.hover,"&::before, &::after":{display:"none"},"&.MuiInputBase-multiline":{minHeight:jn.medium.height}},"& .MuiInputBase-root.Mui-error":{...n.error,"&:hover:not(.Mui-disabled)":n.error,"&:focus, &:focus-within":n.errorFocus},"& .MuiAutocomplete-endAdornment":{display:"flex",alignItems:"center",right:"0.675rem","& .MuiButtonBase-root":{padding:"0.25rem",display:"flex",alignItems:"center",borderRadius:qt.borderRadius,"& .MuiSvgIcon-root":{height:"1.25rem",width:"1.25rem",marginLeft:0,marginRight:0}}},"& .MuiInputBase-input":{border:"none",paddingTop:0,paddingBottom:0,"&.MuiAutocomplete-input"
1259:{paddingTop:0,paddingBottom:0}},"& .MuiInputBase-input.MuiSelect-select":{display:"flex",alignItems:"center","&:focus":{backgroundColor:"transparent"}},"& .MuiFormHelperText-root":{marginLeft:0}}},AI=e=>({defaultProps:{slotProps:{select:{IconComponent:Gi,MenuProps:{className:"inworld-text-field-menu"}}}},styleOverrides:{root:({theme:t,ownerState:r})=>{var n;return{"&.inworld-text-field":{...OI(t,e,r.size)},...((n=r.variant)!=null?n:"outlined")==="outlined"&&r.label!=null&&{"& .MuiInputLabel-root":{position:"static",transform:"none",maxWidth:"100%",marginBottom:t.spacing(1),fontSize:qt.fontSize,lineHeight:"1.25rem",whiteSpace:"normal",overflowWrap:"anywhere"},"& .MuiOutlinedInput-notchedOutline":{top:0,"& legend":{display:"none"}}},...typeof r.helperText=="string"&&!r.helperText.trim()&&{"& .MuiFormHelperText-root":{display:"none"}},"& input[disabled]":{"&:hover":{cursor:"not-allowed"}}}}}}),wI=e=>({styleOverrides:{tooltip:({theme:t})=>({fontFamily:yr.functional,borderRadius:je.md,backdropFilter:"blur(2px)",color:t.palette.inverse.text,backgroundColor:t.palette.inverse.background,"& .MuiTooltip-arrow::before":{backgroundColor:t.palette.inverse.background}})}}),DI=e=>({defaultProps:{variantMapping:{subtitle1:"p",subtitle2:"p",overline:"span",display1:"p",display2:"p",display3:"p",badge:"span"}}}),NI=e=>({styleOverrides:{root:({theme:t})=>({"&:hover":{backgroundColor:t.palette.action.hover},"&.Mui-selected":{backgroundColor:t.palette.action.selected,"&:hover":{backgroundColor:t.palette.action.selected}}})}}),Kx=(e,t=!1)=>({boxShadow:`inset 0px 0px 0px 0.5px ${e.palette.divider}`,"&:hover":{...t?{boxShadow:`inset 0px 0px 0px 1px ${e.palette.divider}`}:{}}}),kI=e=>({MuiAlert:Nb(),MuiAutocomplete:Pb(e),MuiButton:Ub(),MuiButtonBase:Bb(),MuiCard:Fb(),MuiCheckbox:$b(),MuiChip:Gb(),MuiCssBaseline:jb(e),MuiDialog:zb(),MuiDialogActions:Vb(),MuiDialogContent:Kb(),MuiDialogTitle:Yb(),MuiDivider:qb(e),MuiDrawer:Qb(),MuiFormControl:Xb(),MuiFormControlLabel:Jb(),MuiFormLabel:eI(),MuiFormHelperText:Zb(),MuiIconButton:tI(),MuiInputBase:nI(e),MuiInputAdornment:rI(),MuiLink:oI(),MuiList:aI(),MuiListItemButton:NI(),MuiListItemIcon:iI(),MuiListSubheader:sI(),MuiOutlinedInput:dI(),MuiMenu:cI(e),MuiMenuItem:uI(),MuiPaginationItem:hI(),MuiPagination:fI(),MuiPaper:pI(),MuiRadio:mI(),MuiSelect:_I(e),MuiSkeleton:yI(),MuiSwitch:vI(),MuiTab:TI(),MuiTableSortLabel:{defaultProps:{IconComponent:Db}},MuiTable:CI(),MuiTableCell:RI(),MuiTableHead:SI(),MuiTableRow:bI(),MuiTabs:II(),MuiTextField:AI(e),MuiTooltip:wI(),MuiTypography:DI(),MuiSlider:EI(),...gI()}),xI=e=>({palette:{mode:e,...e==="dark"?nn:In,syntax:Kt[e]},components:kI(e)}),MI=Om(wi({typography:{fontFamily:yr.functional,fontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,h1:{fontSize:xe["4xl"],lineHeight:Rt["4xl"],fontFamily:yr.display,letterSpacing:"-1px"},h2:{fontSize:xe["3xl"],lineHeight:Rt["3xl"],fontFamily:yr.display,letterSpacing:"-1px"},h3:{fontSize:xe["2xl"],lineHeight:Rt["2xl"],fontWeight:600,letterSpacing:"-1px"},h4:{fontSize:xe.xl,lineHeight:Rt.xl,fontWeight:600,letterSpacing:"-1px"},h5:{fontSize:xe.base,lineHeight:Rt.base,fontWeight:600},h6:{fontSize:xe.md,lineHeight:Rt.md,fontWeight:600},subtitle1:{fontSize:xe.base,lineHeight:Rt.base,fontWeight:500},subtitle2:{fontSize:xe.md,lineHeight:Rt.md,fontWeight:500,letterSpacing:"-0.025em"},overline:{fontSize:xe.sm,lineHeight:Rt.sm,fontWeight:500,letterSpacing:"0.04em",textTransform:"uppercase"},button:{letterSpacing:"0",textTransform:"none"},body1:{fontSize:xe.base,lineHeight:Rt.base},body2:{fontSize:xe.md,lineHeight:Rt.md,letterSpacing:"-0.025em"},caption:{fontSize:xe.sm,lineHeight:Rt.sm},display1:{fontSize:xe["2xl"],lineHeight:Rt["2xl"],fontFamily:yr.display,fontWeight:400,letterSpacing:"-0.02em"},display2:{fontSize:xe.xl,lineHeight:Rt.xl,fontFamily:yr.display,fontWeight:400,letterSpacing:"-0.02em"},display3:{fontSize:xe.base,lineHeight:Rt.base,fontFamily:yr.display,fontWeight:400,letterSpacing:0},badge:{fontSize:xe.xs,lineHeight:Rt.xs,fontWeight:500}}})),hp=e=>({"menu.background":e.background.default,"editor.foreground":e.text.primary,"editor.background":e.background.surface.main,"editor.selectionBackgroun
1259d":e.selection.codeBackground,"editor.selectionForeground":e.selection.codeText,"editor.lineHighlightBackground":e.background.surface.dark,"editorCursor.foreground":e.focus.ring,"editorWhitespace.foreground":e.text.disabled,"editorLineNumber.foreground":e.text.secondary,"editorIndentGuide.background":e.divider,"editorSuggestWidget.background":e.background.default,"editorSuggestWidget.border":e.divider,"editorSuggestWidget.foreground":e.text.primary,"editorSuggestWidget.selectedBackground":e.selection.codeBackground,"editorSuggestWidget.selectedForeground":e.selection.codeText,"editorSuggestWidget.highlightForeground":e.text.primary}),Yx={base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:nn.text.secondary,fontStyle:"italic"},{token:"string.key.json",foreground:Kt.dark.property},{token:"string.value.json",foreground:Kt.dark.value},{token:"number.json",foreground:Kt.dark.number},{token:"string",foreground:Kt.dark.string},{token:"number",foreground:Kt.dark.number},{token:"type",foreground:Kt.dark.property}],colors:hp(nn)},qx={base:"vs",inherit:!0,rules:[{token:"string.key.json",foreground:Kt.light.property},{token:"string.value.json",foreground:Kt.light.string},{token:"number.json",foreground:Kt.light.number},{token:"boolean.json",foreground:Kt.light.bool},{token:"comment",foreground:Kt.light.comment,fontStyle:"italic"},{token:"string",foreground:Kt.light.string},{token:"bool",foreground:Kt.light.bool},{token:"number",foreground:Kt.light.number},{token:"type",foreground:Kt.light.property}],colors:hp(In)},LI=Ze(We,{shouldForwardProp:e=>!["textColor"].some(t=>t===e)})(({theme:e,textColor:t})=>({display:"flex",padding:"0.25rem 0.5rem 0.25rem 1rem",alignItems:"center",maxWidth:"unset",width:"100%",textAlign:"left",backgroundColor:"transparent",border:"none",borderTop:`1px ${e.palette.divider} solid`,borderBottom:`1px ${e.palette.divider} solid`,color:t,"&:focus-visible":{outline:"dashed 1px",outlineColor:e.palette.primary.main,outlineOffset:"-1px"}})),Qx=({title:e,icon:t,details:r,component:n="div",textColor:o="text.primary",onCollapseChange:a,expanded:i,summaryActions:s,compact:l=!1,ariaLabel:c})=>{const[u,d]=f.useState(!1),h=i!=null?i:u,p=f.useId();return T.jsxs(T.Fragment,{children:[T.jsxs(We,{component:"div",className:"CollapsibleRecord",sx:{display:"flex",flexWrap:"wrap",alignItems:"center",...l&&{px:2,py:1,minHeight:"3.5rem",gap:1,borderBottom:"1px solid",borderColor:"divider"}},children:[T.jsxs(LI,{className:"collapsible-record",component:r?"button":n,type:r?"button":void 0,"aria-label":c,"aria-expanded":r?h:void 0,"aria-controls":r?p:void 0,onClick:()=>{d(!h),a==null||a(!h)},sx:{cursor:"pointer",flex:1,minWidth:0,...l&&{p:0,minHeight:"2rem",border:0,width:"auto",flexBasis:"12rem","@media (pointer: coarse)":{minHeight:"2.75rem"}}},children:[t?T.jsx(We,{component:"div",sx:{display:"flex",mr:"0.5rem","& .MuiSvgIcon-root":{width:"1rem",he
1259ight:"1rem"}},children:t}):null,T.jsx(mt,{variant:"body2",sx:{flexGrow:1,textWrap:"wrap",color:o,fontWeight:400,fontFamily:l?"inherit":yr.mono,...l&&{fontWeight:500,m:0}},component:l?"span":"pre",children:e}),r?T.jsx(We,{component:"div",sx:{[Qt]:"1.25rem","& .MuiSvgIcon-root":{height:"1.25rem",width:"1.25rem"},"& svg":{display:"flex",color:y=>y.palette.text.secondary}},children:h?T.jsx(Ib,{}):T.jsx(wb,{})}):null]}),s]}),T.jsx(Qs,{id:p,in:h,timeout:l?0:"auto",unmountOnExit:!0,mountOnEnter:!0,children:T.jsx(We,{component:"div",sx:{p:l?0:"0.5rem",backgroundColor:y=>l?y.palette.background.paper:y.palette.background.default,fontWeight:400,borderBottom:y=>`1px solid ${y.palette.divider}`},children:r})})]})},Xx=Ze(mt)(({theme:e})=>({fontSize:xe.xs,marginLeft:"auto",lineHeight:"1",fontWeight:"500",color:e.palette.text.disabled,padding:"0.25rem",borderRadius:je.sm})),PI={primary:{variant:"contained",color:"primary"},secondary:{variant:"outlined",color:"primary"},ghost:{variant:"text",color:"primary"},destructive:{variant:"contained",color:"error"}},wn=f.forwardRef(({intent:e="primary",loading:t=!1,iconOnly:r=!1,size:n,sx:o,disabled:a,startIcon:i,className:s,children:l,...c},u)=>T.jsx(El,{ref:u,...PI[e],...c,size:n!=null?n:r?"medium":void 0,sx:[...r?[{width:{small:"2rem",medium:"2.5rem",large:"3rem"}[n!=null?n:"medium"],minWidth:0,p:0,flexShrink:0,[Qt]:go.lg}]:[],...Array.isArray(o)?o:[o]],className:["InworldButton",s].filter(Boolean).join(" "),disabled:a||t,"aria-busy":t||void 0,startIcon:t&&!r?T.jsx(Us,{size:16,color:"inherit"}):i,children:t&&r?T.jsx(Us,{size:16,color:"inherit"}):l}));wn.displayName="InworldButton";const UI="https://storage.googleapis.com/assets-inworld-ai/img/voice-avatars",BI=7,zo=3,el=3,FI=zo*el,$I=e=>{if(!e)return null;const r=e.charAt(e.length-1).toLowerCase().charCodeAt(0)%BI+1;let n=0;for(let c=0;c<e.length;c++)n=n*31+e.charCodeAt(c)&4294967295;const o=Math.abs(n)%FI,a=o%zo,i=Math.floor(o/zo),s=a/(zo-1)*100,l=i/(el-1)*100;return{backgroundImage:`url(${UI}/tts_avatar_${r}.jpg)`,backgroundSize:`${zo*100}% ${el*100}%`,backgroundPosition:`${s}% ${l}%`}},us={xs:{size:"1.5rem",borderRadius:je.md},sm:{size:"1.75rem",borderRadius:je.md},md:{size:"2rem",borderRadius:je.lg},lg:{size:"2.5rem",borderRadius:je.lg}},Jx=Xe.memo(({name:e,displayName:t,onPreview:r,onStopPreview:n,isThisVoicePlaying:o=!1,isLoading:a=!1,sx:i,size:s="sm"})=>{const l=un(),u=$I(e||t||""),d=f.useCallback(y=>{if(y.stopPropagation(),!!r){if(o){n==null||n();return}r(e)}},[e,r,n,o]),h=`drop-shadow(0 1px 2px ${ke(l.palette.imageOverlay.background,.4)})`,p=T.jsxs(We,{component:"div",className:"VoiceAvatar voice-avatar",sx:{width:us[s].size,height:us[s].size,borderRadius:us[s].borderRadius,...u&&{backgroundImage:u.backgroundImage,backgroundSize:u.backgroundSize,backgroundPosition:u.backgroundPosition,backgroundRepeat:"no-repeat"},flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:xe.xs,fontWeight:600,color:"imageOverlay.text",position:"relative",transition:"all 0.2s ease",overflow:"hidden","&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,background:ke(l.palette.imageOverlay.text,.25),zIndex:0},...a&&{position:"relative","&::before":{content:'""',position:"absolute",height:"200%",width:"200%",top:"-2px",left:"-2px",right:"-2px",bottom:"-2px",background:`conic-gradient(from 0deg, transparent 0%, ${l.palette.imageOverlay.text} 50%, transparent 100%)`,animation:"rotate 1.5s linear infinite",zIndex:-1},"@keyframes rotate":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}},...r&&{cursor:"pointer"},...i},children:[r&&!a&&T.jsx(We,{component:"div",sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",zIndex:1},children:T.jsx(We,{component:"div",sx:{color:"imageOverlay.text",filter:h,display:"flex",alignItems:"center",justifyContent:"center",[Qt]:"1rem"},children:o?T.jsx(lr,{icon:su.faStop}):T.jsx(lr,{icon:su.faPlay})})}),r&&a&&T.jsx(We,{component:"div",sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",zIndex:1},children:T.jsx(We,{component:"div",sx:{filter:h,width:"12px",height:"12px",border:`2px solid ${l.palette.imageOverlay.text}`,borderTop:"2px solid transparent",borderRadius:"50%",animation:"spin 1s linear infinite","@keyframes spin":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}}})})]});return r?T.jsx(Kn,{"aria-label":"Preview voice",onClick:d,disableRipple:!0,sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"fit-content",p:0,"&:focus-visible":{...cr(l),outlineOffset:"4px"}},children:p}):p}),ds=({icon:e,copy:t})=>
1259T.jsxs(We,{component:"div",sx:{display:"flex",alignItems:"flex-start",gap:"0.25rem",[Qt]:go.sm},children:[T.jsx(We,{component:"div",sx:{display:"flex",height:"100%",alignItems:"flex-start",justifyContent:"center"},children:e}),T.jsx(mt,{variant:"caption",component:"p",sx:{mt:"-0.125rem"},children:t})]}),GI=({tooltip:e,size:t="medium",fieldType:r,customGenerationText:n,customOrganizationText:o})=>{const[a,i]=f.useState(!1);return e?T.jsx(vl,{title:T.jsxs(Rn,{spacing:2,sx:{py:"0.25rem"},children:[e&&T.jsx(ds,{icon:T.jsx(lr,{icon:tr.faCircleInfo}),copy:e}),r==="generation"&&T.jsx(ds,{icon:T.jsx(lr,{icon:tr.faSparkles}),copy:n!=null?n:"The contents supplied here will affect generation"}),r==="organization"&&T.jsx(ds,{icon:T.jsx(lr,{icon:tr.faTag}),copy:o!=null?o:"This field is used for organization purposes, and does not affect any generation"})]}),placement:"top",open:a,onClose:()=>i(!1),onOpen:()=>i(!0),children:T.jsx(Kn,{"aria-label":"Field info",disableRipple:!0,onClick:()=>i(!a),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),sx:{"&:focus-visible":{outline:"2px dashed",outlineColor:s=>s.palette.text.primary,outlineOffset:"-2px"},p:t==="small"?0:1,color:"text.secondary",cursor:"help"},children:T.jsx(lr,{icon:tr.faCircleInfo,size:t==="small"?"sm":"md"})})}):null},HI={small:xe.sm,medium:xe.md,large:xe.base},WI=({label:e,children:t,infoHelperProps:r,sx:n,labelSize:o,renderOptionalLabel:a,customRightSlot:i,htmlFor:s})=>T.jsxs(We,{component:"div",className:"inworld-form-control",sx:n,children:[(e||a)&&T.jsxs(Am,{id:s?`${s}-label`:void 0,htmlFor:s,sx:{display:"flex",alignItems:"baseline",flexWrap:"wrap",columnGap:1,rowGap:.5,position:"relative",minHeight:Rt.md,mb:1},children:[T.jsxs(mt,{component:"span",sx:{mb:0,lineHeight:o==="large"?Rt.base:o==="small"?Rt.sm:Rt.md,fontWeight:o==="large"?600:400,display:"inline-flex",alignItems:"center",fontSize:HI[o!=null?o:"medium"]},children:[e,a&&T.jsx(mt,{component:"span",sx:{all:"inherit",opacity:.625,mb:0},children:" (Optional)"}),r&&T.jsx(We,{component:"span",sx:{display:"inline-flex",ml:.5},children:T.jsx(GI,{size:"small",...r})})]}),i]}),t]});var No={},fu;function jI(){if(fu)return No;fu=1;var e=Mr();Object.defineProperty(No,"__esModule",{value:!0}),No.default=void 0;var t=e(fn()),r=cn();return No.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),No}var zI=jI();const pp=Kr(zI);var gp=(e=>(e.Text="text",e.Custom="custom",e))(gp||{}),Zo=(e=>(e.Dense="dense",e.Normal="normal",e.Loose="loose",e))(Zo||{});const VI=Ze(Kn,{shouldForwardProp:e=>e!=="expressiveTitle"})(({theme:e})=>({marginLeft:"auto",padding:e.spacing(.5),flexShrink:0,borderRadius:je.md,backgroundColor:"transparent",position:"relative",display:"flex",alignItems:"center",justifyContent:"center","&:focus-visible .MuiBox-root":{...cr(e)},"&:hover":{backgroundColor:"transparent","& .MuiBox-root":{backgroundColor:e.palette.background.default}},"& .MuiBox-root":{width:"2rem",height:"2rem",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:je.md,border:`1px solid ${e.palette.divider}`},[Qt]:"1.25rem","&:focus-visible":{outline:"none"},[e.breakpoints.down("sm")]:{minWidth:e.spacing(5.5),minHeight:e.spacing(5.5)}})),fs=Ze(wn)(({theme:e})=>({padding:"0.5rem 1rem",minHeight:e.spacing(5),height:"auto",maxWidth:"100%",whiteSpace:"normal",overflowWrap:"anywhere",[e.breakpoints.down("sm")]:{minHeight:e.spacing(5.5)},borderRadius:je.md,"&:focus-visible":{...cr(e),outlineOffset:"1px"}})),KI=Ze(wm,{shouldForwardProp:e=>e!=="disablePadding"&&e!=="headerIcon"&&e!=="spacing"})(({theme:e,disablePadding:t,dividers:r,headerIcon:n,spacing:o})=>({...e.typography.body2,border:"none",padding:o===Zo.Dense?e.spacing(1):o===Zo.Normal?e.spacing(2):o===Zo.Loose?e.spacing(3):o!=null?o:e.spacing(2),...!r&&!t&&{paddingTop:"0.125rem",...n&&{paddingLeft:"2.75rem"}},...t&&{padding:0}})),YI=Ze(Rn,{shouldForwardProp:e=>e!=="dividers"&&e!=="expressiveTitle"&&e!=="multilineTitle"})(({theme:e,dividers:t,expressiveTitle:r,multilineTitle:n})=>({display:"flex",flexDirection:"row",alignItems:"center",padding:"0.75rem 1rem",gap:e.spacing(1),minWidth:0,flexShrink:0,borderBottom:`1px solid ${e.palette.divider}`,...!t&&{borderBottom:"none",paddingBottom:0},...r&&{paddingTop:"1.5rem",paddingLeft:e.spacing(2)},...n&&!r&&{maxHeight:"none",alignItems:"flex-start",paddingBottom:"0.75rem"}})),qI=Ze(jf,{shouldForwardProp:e=>e!=="backgroundColor"&&e!=="dialogSize"})(({theme:e,fullScreen:t,backgroundColor:r,dialogSize:n})=>({"& .MuiDialog-paper":{backgroundColor:r||"background.paper",borderRadius:t?"0":je.md,width:"100%",...n&&!t&&{maxWidth:fy[n]},...!t&&{[e.breakpoints.down("sm")]:{marginLeft:e.spacing(1),marginRight:e.spacing(1),width:`calc(100% - ${e.spacing(2)})`,maxWidth:`calc(100% - ${e.spacing(2)})`}}
1259,boxShadow:$i.sm}})),QI=Ze(Dm,{shouldForwardProp:e=>e!=="dividers"})(({theme:e,dividers:t})=>({borderTop:t?`1px solid ${e.palette.divider}`:"none",padding:e.spacing(1.5,2),paddingTop:t?e.spacing(1.5):e.spacing(1),gap:e.spacing(1),flexWrap:"wrap",flexShrink:0,"& > :not(style) ~ :not(style)":{marginLeft:0},"& .MuiButton-outlined.MuiButton-colorPrimary":{borderColor:e.palette.divider}})),XI=Ze(mt)(({theme:e})=>({...e.typography.body2,color:e.palette.text.secondary,overflowWrap:"anywhere",fontWeight:400})),JI=Ze(mt,{shouldForwardProp:e=>e!=="expressiveTitle"&&e!=="multilineTitle"})(({expressiveTitle:e,multilineTitle:t})=>({fontSize:xe.base,flex:1,minWidth:0,lineHeight:1.5,overflowWrap:"anywhere",letterSpacing:"-0.0125rem",fontWeight:600,...e&&{fontSize:xe["3xl"],fontWeight:"400",fontFamily:yr.display,letterSpacing:"-0.02em",lineHeight:"1"},...t&&!e&&{flex:1,minWidth:0,lineHeight:1.35}})),ZI=Ze(We)(({theme:e})=>({display:"flex",color:e.palette.text.secondary,[Qt]:"1.25rem"})),mp=({title:e,titleComponent:t,headerIcon:r,dismissible:n=!0,controlled:o,open:a=!0,dividers:i=!0,defaultOpen:s=!0,expressiveTitle:l=!1,multilineTitle:c=!1,spacing:u=Zo.Normal,onClose:d,children:h,copy:p,variant:y,disableInternalPadding:S=!1,primary:b,secondary:A,ref:x,tertiary:k,customActions:B,backgroundColor:C,size:P,...M})=>{var me,ne,ae;const[v,$]=f.useState(s),W=f.useId(),oe=o?a:v,te=!!(b!=null&&b.loading),se=(Me,rt)=>{te||(o?d==null||d(rt):$(!1))},ie=(Me,rt)=>async lt=>{try{const Ot=Me==null?void 0:Me(lt);Ot instanceof Promise&&await Ot,rt||se()}catch(Ot){console.error("Action failed:",Ot)}},ee=y===gp.Text?T.jsx(We,{component:"div",children:p&&T.jsx(XI,{children:p})}):h,de=P!=null?P:M.maxWidth===void 0?"md":void 0,Y=un(),ce=f.useMemo(()=>{var Me,rt,lt;return{...Y,components:{...Y.components,MuiTypography:{...(Me=Y.components)==null?void 0:Me.MuiTypography,defaultProps:{...(lt=(rt=Y.components)==null?void 0:rt.MuiTypography)==null?void 0:lt.defaultProps,variant:"body2"}}}}},[Y]),he=zf(Y.breakpoints.down("sm")),Oe=(me=M.fullScreen)!=null?me:he&&(de==="lg"||de==="xl"),Ce=!(A!=null&&A.label)||/^(close|cancel)$/i.test(A.label.trim()),Ke=!!B||(!!b||!!A||!!k)&&!(he&&n&&!!A&&Ce&&!b&&!k);return T.jsxs(qI,{ref:x,open:oe,onClose:se,backgroundColor:C,...M,"aria-labelledby":(ne=M["aria-labelledby"])!=null?ne:e&&!t?W:void 0,"aria-label":(ae=M["aria-label"])!=null?ae:e&&t?e:void 0,dialogSize:de,fullScreen:Oe,maxWidth:de?!1:M.maxWidth,fullWidth:de?!0:M.fullWidth,children:[T.jsxs(YI,{className:"inworld-dialog-header",expressiveTitle:l,multilineTitle:c,dividers:i,children:[r&&T.jsx(ZI,{children:r}),t||T.jsx(JI,{id:W,expressiveTitle:l,multilineTitle:c,children:e}),n&&T.jsx(VI,{onClick:()=>se(),disabled:te,disableFocusRipple:!0,"aria-label":"Dismiss",className:"inworld-dialog-close-button",expressiveTitle:l,children:T.jsx(We,{component:"div",children:T.jsx(pp,{})})})]}),T.jsx(Tl,{theme:ce,children:T.jsx(KI,{spacing:u,dividers:i,headerIcon:!!r,disablePadding:S,children:ee})}),Ke&&T.jsx(QI,{dividers:i,children:B||T.jsxs(T.Fragment,{children:[k&&(k.customComponent||T.jsx(fs,{size:"medium","aria-label":k.ariaLabel,intent:"secondary",onClick:ie(k.onClick,k.preventAutoClose),disabled:k.loading||te,sx:{marginRight:"auto"},disableFocusRipple:!0,children:k.label})),A&&T.jsx(fs,{size:"medium","aria-label":A.ariaLabel,intent:"secondary",onClick:ie(A.onClick,A.preventAutoClose),disabled:A.loading||te,disableFocusRipple:!0,sx:{borderColor:Me=>Me.palette.divider},children:A.label?A.label:"Cancel"}),b&&(b.customComponent||T.jsx(fs,{size:"medium","aria-label":b.ariaLabel,disableFocusRipple:!0,intent:b.intent==="destructive"?"destructive":"primary",loading:b.loading,onClick:b.onClick&&ie(b.onClick,b.preventAutoClose),disabled:b.disabled,form:b.form,type:b.type,children:b.label?b.label:"Continue"}))]})})]})},hu="inworld-confirm-typed-value",_p=f.createContext(void 0),e2=e=>(e instanceof Error?e.message:typeof e=="string"?e:"").trim()||"Something went wrong. Try again, or cancel.",t2=({children:e})=>{var C,P;const[t,r]=f.useState(null),[n,o]=f.useState(!1),[a,i]=f.useState(""),[s,l]=f.useState(null),c=f.useRef(null),u=f.useRef(!1),d=f.useRef([]),h=f.useCallback(M=>{c.current=M,r(M),o(!1),i(""),l(null)},[]),p=f.useCallback(()=>{const M=d.current.shift();if(M){h(M);return}c.current=null,r(null),o(!1),i(""),l(null)},[h]),y=f.useCallback(M=>new Promise(v=>{const $={options:M,resolve:v,settled:!1};if(u.current){d.current.push($);return}const W=c.current;W&&!W.settled&&(W.settled=!0,W.resolve(!1)),h($)}),[h]),S=f.useCallback(()=>{const M=c.current;!M||u.current||(M.settled||(M.settled=!0,M.resolve(!1)),p())},[p]),b=f.useCallback(async()=>{const M=c.current;if(!M||u.current)return;const{onConfirm:v,describeError:$=e2}=M.options;if(v){u.current=!0,o(!0),l(null);try{await v()}catch(W){u.current=!1,c.current===M&&(l($(W)),o(!1));return}u.current=!1}M.settled||(M.settled=!0,M.resolve(!0)),c.current===M&&p()},[p]),A=t==null?void 0:t.options,x=A==null?void 0:A.requireTypedValue,k=x!==void 0&&a!==x,B=f.useMemo(()=>
1259{if(!A)return null;const M=typeof A.description=="string"?T.jsx(mt,{sx:{color:"text.secondary"},children:A.description}):A.description;return T.jsxs(We,{component:"div",className:"ConfirmDialogBody",sx:{display:"flex",flexDirection:"column",gap:2,py:1},children:[M,x!==void 0&&T.jsx(WI,{label:`Type "${x}" to confirm`,htmlFor:hu,children:T.jsx(Nm,{id:hu,className:"inworld-text-field",size:"small",fullWidth:!0,autoFocus:!0,autoComplete:"off",value:a,onChange:v=>i(v.target.value)})}),s!==null&&T.jsx(mt,{role:"alert",className:"ConfirmDialogError",variant:"body2",sx:{color:"error.main"},children:s})]})},[s,A,a,x]);return T.jsxs(_p.Provider,{value:y,children:[e,A&&T.jsx(mp,{className:"ConfirmDialog",controlled:!0,open:!0,size:"xs",onClose:S,title:A.title,primary:{label:(C=A.confirmLabel)!=null?C:"Confirm",intent:A.destructive?"destructive":"primary",loading:n,disabled:k,preventAutoClose:!0,onClick:b},secondary:{label:(P=A.cancelLabel)!=null?P:"Cancel",preventAutoClose:!0,onClick:S},children:B})]})},Zx=()=>{const e=f.useContext(_p);return e!=null?e:r2},r2=e=>(console.error(`useConfirm: no <ConfirmProvider>
1259 is mounted, so "${e.title}" was dismissed. Wrap the tree in <ConfirmProvider>.`),Promise.resolve(!1));km.div`
1260  position: absolute;
1261  justify-content: center;
1262  align-items: center;
1263  display: flex;
1264  opacity: 0;
1265  width: 100%;
1266  height: 100%;
1267  transition: opacity 0.3s;
1268  pointer-events: none;
1269  &:hover {
1270    opacity: 1;
1271  }
1272`;const n2=2e3,pu=({copy:e,tooltip:t,buttonLabel:r,buttonProps:n,iconButtonProps:o,onClick:a,onCopyError:i})=>{const[s,l]=f.useState(!1),c=f.useRef(null);f.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]);const u=async()=>{try{await navigator.clipboard.writeText(e)}catch(h){console.error("Copy to clipboard failed:",h),i==null||i(h);return}l(!0),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>l(!1),n2)},d=s?T.jsx(lr,{icon:tr.faCheck}):T.jsx(lr,{icon:tr.faCopy});return T.jsx(vl,{title:t!=null?t:"",placement:"top",children:r?T.jsx(wn,{intent:"secondary","aria-label":"Copy to clipboard",className:"CopyButton copy-button",startIcon:d,...n,onClick:h=>{var p;u(),a==null||a(h),(p=n==null?void 0:n.onClick)==null||p.call(n,h)},children:s?"Copied":r}):T.jsx(Kn,{"aria-label":"Copy to clipboard",className:"CopyButton copy-button",...o,onClick:h=>{var p;u(),a==null||a(h),(p=o==null?void 0:o.onClick)==null||p.call(o,h)},children:d})})},o2=e=>({display:"flex",alignItems:"center",gap:1,px:1.5,py:1,borderRadius:je.md,"&.Mui-selected":{backgroundColor:ke(e.palette.secondary.main,.1)},"&.Mui-selected:hover":{backgroundColor:e.palette.background.default}}),eM=f.forwardRef(({sx:e,className:t,...r},n)=>T.jsx(Vf,{ref:n,className:["PickerMenuItem",t].filter(Boolean).join(" "),sx:[o2,...Array.isArray(e)?e:[e]],...r})),a2=(e,t=!1)=>({...dp,display:"inline-flex",alignItems:"center",gap:1,px:1.5,py:.5,backgroundColor:e.palette.background.paper,color:t?e.palette.text.disabled:e.palette.text.primary,cursor:t?"default":"pointer",textAlign:"left",userSelect:"none","&:hover":t?{}:{backgroundColor:e.palette.action.hover,borderColor:kl},"&:focus-visible":t?{}:cr(e)}),tM=Xe.forwardRef(({onClick:e,open:t,disabled:r=!1,placeholder:n,icon:o,label:a,ariaLabel:i},s)=>T.jsxs(Kf,{ref:s,className:"PickerTrigger","aria-haspopup":"menu","aria-expanded":t,"aria-label":i||a||n,disabled:r,disableRipple:!0,onClick:e,sx:l=>({...a2(l,r),width:"100%"}),children:[a?T.jsxs(T.Fragment,{children:[o,T.jsx(mt,{variant:"body2",sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a})]}):T.jsx(mt,{variant:"body2",sx:{color:r?"text.disabled":"text.secondary",flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),T.jsx(Gi,{disabled:r})]})),i2=Ze(xm,{shouldForwardProp:e=>e!=="selectedColor"})(({theme:e,selectedColor:t})=>{const r=e.palette.text.primary,n={...bo[e.palette.mode].selection,...e.palette.selection},o=n.raisedText,a=e.palette.text.disabled,i=n.raisedBackground,s=e.palette.action.hover,l=t?`${t}`:i,c=t?`${ke(t,.85)}`:l,u=t?ke(t,.08):s;return{color:r,backgroundColor:"transparent",whiteSpace:"nowrap",fontSize:xe.md,fontFamily:e.typography.fontFamily,lineHeight:e.typography.body2.lineHeight,fontWeight:400,borderRadius:je.sm,border:"none","&.MuiToggleButton-root.Mui-selected":{color:o,backgroundColor:l,"&:hover":{backgroundColor:c}},"&:hover:not(.Mui-disabled)":{backgroundColor:u},"&:focus-visible":{...cr(e)},"&.MuiToggleButton-root.Mui-disabled":{border:"none",color:a,backgroundColor:"transparent","&.Mui-selected":{color:a,backgroundColor:e.palette.action.disabledBackground}}}}),s2=["bgColor","variant"],gu="&.MuiToggleButtonGroup-grouped.Mui-selected:not(.Mui-disabled)",l2=Ze(cy,{shouldForwardProp:e=>!s2.includes(e)})(({theme:e,bgColor:t,variant:r})=>{const n=(()=>{if(!r)return{};if(r==="primary"){const i=e.palette.primary;return{"& .MuiToggleButton-root":{[gu]:{backgroundColor:i.main,color:i.contrastText,"&:hover":{backgroundColor:i.main,color:i.contrastText}},"&:hover:not(.Mui-selected):not(.Mui-disabled)":{backgroundColor:e.palette.action.hover,color:e.palette.text.primary}}}}const o=e.palette.background.paper,a=e.palette.text.primary;return{"& .MuiToggleButton-root":{[gu]:{backgroundColor:o,color:a,"&:hover":{backgroundColor:o,color:a}},"&:hover:not(.Mui-selected):not(.Mui-disabled)":{backgroundColor:e.palette.action.hover,color:a}}}})();return{gap:"0.25rem",backgroundColor:t!=null?t:e.palette.background.surface.main,padding:"0.25rem",borderRadius:je.md,"& .MuiToggleButtonGroup-grouped":{borderRadius:je.sm},...n}}),mu={fontSize:[xe.xl,xe["2xl"]],fontFamily:yr.display,lineHeight:"1.1",fontWeight:500,letterSpacing:"-0.5px",mr:"auto",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},hs=Ze(We,{shouldForwardProp:e=>e!=="noColumnStack"})(({theme:e,noColumnStack:t})=>({display:"flex",width:"100%",...!t&&{[`@container (max-width: ${e.breakpoints.values.sm}px)`]:{width:"100%",textAlign:"center",justifyContent:"center"}}})),c2="4.5rem",rM=({primaryAction:e,secondaryAction:t,overflowActions:r,title:n,searchSlot:o,description:a,hide:i,sx:s,background:l="paper",secondaryActionSx:c,primaryActionSx:u,beforeTitleSlot:d,breadcrumbs:h,backButton:p,noColumnStack:y=!0,linkComponent:S="a",tabs:b})=>{var v;
1272const[A,x]=f.useState(null),k=!!A,B=un(),C=$=>{x($.currentTarget)},P=()=>{x(null)},M=f.useMemo(()=>wi(B,{components:{MuiButton:{defaultProps:{size:"medium"}}}}),[B]);return i?null:T.jsxs(We,{component:"section",className:"enhanced-page-header",sx:{display:"flex",flexDirection:"column",justifyContent:"center",position:"sticky",top:0,zIndex:10,borderTopRightRadius:je.md,borderTopLeftRadius:je.md,borderBottom:$=>`solid 1px ${$.palette.divider}`,py:"1rem",backgroundColor:l==="paper"?"background.paper":"transparent",px:dy,containerType:"inline-size",minHeight:c2,...s},children:[T.jsxs(Rn,{sx:{width:"100%",flexDirection:"row",gap:"0.5rem",...!y&&{[`@container (max-width: ${B.breakpoints.values.sm}px)`]:{flexDirection:"column",gap:"1rem"}}},children:[T.jsxs(hs,{className:"page-header-column",noColumnStack:y,sx:{display:"flex",alignItems:"center"},children:[d,T.jsxs(Rn,{direction:p?"row":"column",sx:{alignItems:p?"center":void 0,gap:p?1.5:void 0,"& h1":{fontFamily:yr.display}},children:[p&&T.jsx(Kf,{onClick:p.onClick,"aria-label":(v=p.label)!=null?v:"Go back",sx:$=>({display:"inline-flex",alignItems:"center",flexShrink:0,color:"text.secondary",fontSize:xe.md,borderRadius:je.sm,px:"0.125rem","&:hover":{color:"text.primary"},"&:focus-visible":{...cr($)}}),children:T.jsx(lr,{icon:tr.faChevronLeft,style:{fontSize:xe.sm}})}),!p&&h&&h.length>0&&T.jsxs(Rn,{direction:"column",sx:{maxWidth:"100%"},children:[h.length>1&&T.jsx(Rn,{direction:"row",sx:{alignItems:"center",mb:"0.25rem"},children:h.slice(0,-1).map(($,W)=>{var oe;return T.jsxs(Rn,{direction:"row",sx:{alignItems:"center",flexShrink:0},children:[T.jsx(Qa,{component:S,href:(oe=$.href)!=null?oe:"#",underline:"none",sx:te=>({lineHeight:"1",fontSize:xe.md,color:"text.secondary",whiteSpace:"nowrap","&:hover":{color:"text.primary"},"&:focus-visible":{...cr(te)}}),children:$.label}),T.jsx(mt,{variant:"body2",component:"span",sx:{color:"text.secondary",mx:"0.5rem",flexShrink:0},children:"/"})]},W)})}),(()=>{const $=h[h.length-1];return T.jsx(mt,{component:n?"span":"h1",sx:n?{lineHeight:"1",fontSize:xe.md,color:"text.primary",whiteSpace:"nowrap"}:mu,children:$.label})})()]}),typeof n=="string"?T.jsx(mt,{component:"h1",sx:{...mu},children:n}):n,a&&T.jsx(mt,{variant:"body2",sx:{display:{xs:"none",sm:"block"},color:"text.secondary"},children:a})]})]}),o&&T.jsx(hs,{className:"page-header-column",noColumnStack:y,sx:{alignItems:"center",justifyContent:"center"},children:o}),(r||e||t)&&T.jsx(Tl,{theme:M,children:T.jsxs(hs,{className:"page-header-column",noColumnStack:y,sx:{gap:"0.5rem",display:"flex",ml:"auto",justifyContent:"flex-end"},children:[r&&T.jsxs(T.Fragment,{children:[T.jsx(Kn,{"aria-label":"More actions",onClick:C,sx:{height:"2.5rem",width:"2.5rem",borderRadius:je.lg,border:"1px solid"},children:T.jsx(lr,{icon:tr.faEllipsisVertical,style:{fontSize:xe["2xl"]}})}),T.jsx(Mm,{anchorEl:A,open:k,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},sx:{"& .MuiPaper-root":{marginTop:"0.5rem",borderRadius:je.lg,width:"100%",maxWidth:"16rem"}},children:r&&r.map(($,W)=>T.jsxs(Vf,{disabled:$.disabled,"aria-label":typeof $.label=="string"?$.label:"Overflow action",onClick:()=>{$.onClick(),P()},sx:{[Qt]:"1.25rem","& svg":{color:"text.secondary"},"&.MuiMenuItem-root.Mui-disabled":{opacity:.8,color:B.palette.text.secondary}},children:[$.icon,T.jsx(mt,{sx:{ml:1,width:"100%"},children:$.label})]},W))})]}),t&&T.jsx(We,{component:"div",className:"secondary-action",sx:{...c},children:t}),e&&T.jsx(We,{component:"div",className:"primary-action",sx:{...u},children:e})]})})]}),b&&T.jsx(We,{component:"div",className:"enhanced-page-header-tabs",sx:{width:"100%",mt:"0.5rem",mb:"-1rem","& .MuiTabs-root":{minHeight:"unset"},"& .MuiTab-root":{minHeight:"unset",py:1,px:0,mr:3}},children:b})]})};var ko={},_u;function u2(){if(_u)return ko;_u=1;var e=Mr();Object.defineProperty(ko,"__esModule",{value:!0}),ko.default=void 0;var t=e(fn()),r=cn();return ko.default=(0,t.default)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined"),ko}var d2=u2();const f2=Kr(d2);var xo={},yu;function h2(){if(yu)return xo;yu=1;var e=Mr();Object.defineProperty(xo,"__esModule",{value:!0}),xo.default=void 0;var t=e(fn()),r=cn();return xo.default=(0,t.default)((0,r.jsx)("path",{d:"M12 7c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1V8c0-.55.45-1 1-1m-.01-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m1-3h-2v-2h2z"}),"ErrorOutlineRounded"),xo}var p2=h2();const g2=Kr(p2);var Mo={},Eu;
1272function m2(){if(Eu)return Mo;Eu=1;var e=Mr();Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.default=void 0;var t=e(fn()),r=cn();return Mo.default=(0,t.default)((0,r.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),Mo}var _2=m2();const y2=Kr(_2);var Lo={},vu;function E2(){if(vu)return Lo;vu=1;var e=Mr();Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=void 0;var t=e(fn()),r=cn();return Lo.default=(0,t.default)((0,r.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined"),Lo}var v2=E2();const T2=Kr(v2),C2={loading:T.jsx(Us,{size:"1.25rem",sx:{display:"flex",color:"inherit"}}),info:T.jsx(y2,{color:"inherit"}),error:T.jsx(g2,{color:"inherit"}),success:T.jsx(f2,{color:"inherit"}),warning:T.jsx(T2,{color:"inherit"})},yp=({toastId:e,type:t="info",dismissable:r=!0,children:n,icon:o,isVisible:a,actionButton:i,maxWidth:s,onClose:l})=>{const c=()=>{l?l():nt.remove(e)},u=C2[t],d=un(),h=t==="loading"||t==="info",p=h?d.palette.text.secondary:d.palette[t].main;return T.jsx(T.Fragment,{children:a&&T.jsxs(We,{sx:{backgroundColor:d.palette.background.paper,color:d.palette.text.primary,borderRadius:je.lg,display:"flex",minHeight:"3rem",backdropFilter:"blur(48px)",minWidth:"15rem",zIndex:1e4,pointerEvents:"all",alignItems:"center",padding:"0.5rem 0.75rem",maxWidth:s!=null?s:"400px",border:"solid 1px",marginTop:"-0.5rem",borderColor:h?d.palette.divider:p,textAlign:"center"},component:"div",className:"InworldToast",role:"status","aria-live":"polite",children:[T.jsx(We,{component:"div",sx:{mr:"0.5rem",color:p,[Qt]:"1.25rem","& .MuiSvgIcon-root":{height:"1.25rem",width:"1.25rem"},"& svg:not(.MuiCircularProgress-svg)":{display:"flex"}},children:o||u},t),T.jsxs(We,{component:"div",sx:{textAlign:"center",flex:1,minWidth:0},children:[T.jsx(We,{component:"div",sx:{display:"inline-block",textAlign:"left"},children:n}),i&&T.jsx(We,{component:"span",sx:{ml:1,"& .MuiButton-root.MuiButton-text":{color:"inherit"}},children:i})]}),r&&(e||l)&&T.jsx(Kn,{onClick:c,sx:{flexShrink:0,ml:"0.5rem",width:"1.75rem",height:"1.75rem",border:"solid 1px ",borderColor:d.palette.divider},size:"small",children:T.jsx(pp,{color:"inherit",fontSize:"small",sx:{height:"1.25rem",width:"1.25rem"}})})]})})};Ze(We)(()=>({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",flexDirection:"column"}));Ze(We)(()=>({position:"relative","&::before":{width:"1px",height:0,marginLeft:"-1px",content:'""',float:"left"},"&::after":{display:"table",clear:"both",content:"''"}}));const Tu=(e,t,r)=>e.palette.mode==="dark"?t:r;var tl=function(e,t){return tl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},tl(e,t)},wt=function(){return wt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wt.apply(this,arguments)};function jr(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(c){try{l(n.next(c))}catch(u){a(u)}}function s(c){try{l(n.throw(c))}catch(u){a(u)}}function l(c){var u;c.done?o(c.value):(u=c.value,u instanceof r?u:new r((function(d){d(u)}))).then(i,s)}l((n=n.apply(e,[])).next())}))}function zr(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(c){return(function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(o=i.trys,!((o=o.length>0&&o[o.length-1])||u[0]!==6&&u[0]!==2)){i=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(u[0]===6&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(d){u=[6,d],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}})([l,c])}}}
1272var Ep={exports:{}};function rl(){}rl.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function o(){n.off(e,o),t.apply(r,arguments)}return o._=t,this.on(e,o,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],o=[];if(n&&t)for(var a=0,i=n.length;a<i;a++)n[a].fn!==t&&n[a].fn._!==t&&o.push(n[a]);return o.length?r[e]=o:delete r[e],this}},Ep.exports=rl;var R2=Ep.exports.TinyEmitter=rl,Ja=function(e){var t=e[1];return t!=null},S2=function(){},b2=(function(){function e(t){var r=t.onError,n=t.onSent,o=t.appName,a=t.metricsInterval,i=t.disableMetrics,s=i!==void 0&&i,l=t.url,c=t.clientKey,u=t.fetch,d=t.headerName,h=t.customHeaders,p=h===void 0?{}:h;this.onError=r,this.onSent=n||S2,this.disabled=s,this.metricsInterval=1e3*a,this.appName=o,this.url=l instanceof URL?l:new URL(l),this.clientKey=c,this.bucket=this.createEmptyBucket(),this.fetch=u,this.headerName=d,this.customHeaders=p}return e.prototype.start=function(){var t=this;if(this.disabled)return!1;typeof this.metricsInterval=="number"&&this.metricsInterval>0&&setTimeout((function(){t.startTimer(),t.sendMetrics()}),2e3)},e.prototype.stop=function(){this.timer&&(clearTimeout(this.timer),delete this.timer)},e.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},e.prototype.getHeaders=function(){var t,r=((t={})[this.headerName]=this.clientKey,t.Accept="application/json",t["Content-Type"]="application/json",t);
1272return Object.entries(this.customHeaders).filter(Ja).forEach((function(n){var o=n[0],a=n[1];return r[o]=a})),r},e.prototype.sendMetrics=function(){return jr(this,void 0,void 0,(function(){var t,r,n;return zr(this,(function(o){switch(o.label){case 0:if(t="".concat(this.url,"/client/metrics"),r=this.getPayload(),this.bucketIsEmpty(r))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.fetch(t,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(r)})];case 2:return o.sent(),this.onSent(r),[3,4];case 3:return n=o.sent(),console.error("Unleash: unable to send feature metrics",n),this.onError(n),[3,4];case 4:return[2]}}))}))},e.prototype.count=function(t,r){return!(this.disabled||!this.bucket)&&(this.assertBucket(t),this.bucket.toggles[t][r?"yes":"no"]++,!0)},e.prototype.countVariant=function(t,r){return!(this.disabled||!this.bucket)&&(this.assertBucket(t),this.bucket.toggles[t].variants[r]?this.bucket.toggles[t].variants[r]+=1:this.bucket.toggles[t].variants[r]=1,!0)},e.prototype.assertBucket=function(t){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[t]||(this.bucket.toggles[t]={yes:0,no:0,variants:{}})},e.prototype.startTimer=function(){var t=this;this.timer=setInterval((function(){t.sendMetrics()}),this.metricsInterval)},e.prototype.bucketIsEmpty=function(t){return Object.keys(t.bucket.toggles).length===0},e.prototype.getPayload=function(){var t=wt(wt({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:t,appName:this.appName,instanceId:"browser"}},e})(),I2=(function(){function e(){this.store=new Map}return e.prototype.save=function(t,r){return jr(this,void 0,void 0,(function(){return zr(this,(function(n){return this.store.set(t,r),[2]}))}))},e.prototype.get=function(t){return jr(this,void 0,void 0,(function(){return zr(this,(function(r){return[2,this.store.get(t)]}))}))},e})(),O2=(function(){function e(){this.prefix="unleash:repository"}return e.prototype.save=function(t,r){return jr(this,void 0,void 0,(function(){var n,o;return zr(this,(function(a){n=JSON.stringify(r),o="".concat(this.prefix,":").concat(t);try{window.localStorage.setItem(o,n)}catch(i){console.error(i)}return[2]}))}))},e.prototype.get=function(t){try{var r="".concat(this.prefix,":").concat(t),n=window.localStorage.getItem(r);return n?JSON.parse(n):void 0}catch(o){console.error(o)}},e})();let Da;const A2=new Uint8Array(16);function w2(){if(!Da&&(Da=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Da))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Da(A2)}const Ft=[];for(let e=0;e<256;++e)Ft.push((e+256).toString(16).slice(1));var Cu={randomUUID:typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function D2(e,t,r){if(Cu.randomUUID&&!t&&!e)return Cu.randomUUID();const n=(e=e||{}).random||(e.rng||w2)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(function(o,a=0){return Ft[o[a+0]]+Ft[o[a+1]]+Ft[o[a+2]]+Ft[o[a+3]]+"-"+Ft[o[a+4]]+Ft[o[a+5]]+"-"+Ft[o[a+6]]+Ft[o[a+7]]+"-"+Ft[o[a+8]]+Ft[o[a+9]]+"-"+Ft[o[a+10]]+Ft[o[a+11]]+Ft[o[a+12]]+Ft[o[a+13]]+Ft[o[a+14]]+Ft[o[a+15]]})(n)}var N2=(function(){function e(){}return e.prototype.generateEventId=function(){return D2()},e.prototype.createImpressionEvent=function(t,r,n,o,a,i){var s=this.createBaseEvent(t,r,n,o,a);return i?wt(wt({},s),{variant:i}):s},e.prototype.createBaseEvent=function(t,r,n,o,a){return{eventType:o,eventId:this.generateEventId(),context:t,enabled:r,featureName:n,impressionData:a}},e})(),k2=["userId","sessionId","remoteAddress"],pr={INIT:"initialized",ERROR:"error",READY:"ready",UPDATE:"update",IMPRESSION:"impression",SENT:"sent"},x2="isEnabled",M2="getVariant",L2={name:"disabled",enabled:!1,feature_enabled:!1},ps="repo",P2=function(){try{if(typeof window!="undefined"&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(e){console.error('Unleash failed to resolve "fetch"',e)}},U2=(function(e){function t(r){var n=r.storageProvider,o=r.url,a=r.clientKey,i=r.disableRefresh,s=i!==void 0&&i,l=r.refreshInterval,c=l===void 0?30:l,u=r.metricsInterval,d=u===void 0?30:u,h=r.disableMetrics,p=h!==void 0&&h,y=r.appName,S=r.environment,b=S===void 0?"default":S,A=r.context,x=r.fetch,k=x===void 0?P2():x,B=r.bootstrap,C=r.bootstrapOverride,P=C===void 0||C,M=r.headerName,v=M===void 0?"Authorization":M,$=r.customHeaders,W=$===void 0?{}:$,oe=r.impressionDataAll,te=oe!==void 0&&oe,se=r.usePOSTrequests,ie=se!==void 0&&se,ee=e.call(this)||this;if(ee.toggles=[],ee.etag="",ee.readyEventEmitted=!1,ee.usePOSTrequests=!1,ee.started=!1,!o)throw new Error("url is required");if(!a)throw new Error("clientKey is required");if(!y)throw new Error("appName is required.");return ee.eventsHandler=new N2,ee.impressionDataAll=te,ee.toggles=B&&B.length>0?B:[],ee.url=o instanceof URL?o:new URL(o),ee.clientKey=a,ee.headerName=v,ee.customHeaders=W,ee.storage=n||(typeof window!="undefined"?new O2:new I2),ee.refreshInterval=s?0:1e3*c,ee.context=wt({appName:y,environment:b},A),ee.usePOSTrequests=ie,ee.ready=new Promise((function(de){ee.init(
1272).then(de).catch((function(Y){console.error(Y),ee.emit(pr.ERROR,Y),de()}))})),k||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),ee.fetch=k,ee.bootstrap=B&&B.length>0?B:void 0,ee.bootstrapOverride=P,ee.metrics=new b2({onError:ee.emit.bind(ee,pr.ERROR),onSent:ee.emit.bind(ee,pr.SENT),appName:y,metricsInterval:d,disableMetrics:p,url:ee.url,clientKey:a,fetch:k,headerName:v,customHeaders:W}),ee}return(function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=r}tl(r,n),r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)})(t,e),t.prototype.getAllToggles=function(){return(function(r,n,o){for(var a,i=0,s=n.length;i<s;i++)!a&&i in n||(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return r.concat(a||Array.prototype.slice.call(n))})([],this.toggles)},t.prototype.isEnabled=function(r){var n,o=this.toggles.find((function(s){return s.name===r})),a=!!o&&o.enabled;if(this.metrics.count(r,a),(o==null?void 0:o.impressionData)||this.impressionDataAll){var i=this.eventsHandler.createImpressionEvent(this.context,a,r,x2,(n=o==null?void 0:o.impressionData)!==null&&n!==void 0?n:void 0);this.emit(pr.IMPRESSION,i)}return a},t.prototype.getVariant=function(r){var n,o=this.toggles.find((function(l){return l.name===r})),a=(o==null?void 0:o.enabled)||!1,i=o?o.variant:L2;if(i.name&&this.metrics.countVariant(r,i.name),this.metrics.count(r,a),(o==null?void 0:o.impressionData)||this.impressionDataAll){var s=this.eventsHandler.createImpressionEvent(this.context,a,r,M2,(n=o==null?void 0:o.impressionData)!==null&&n!==void 0?n:void 0,i.name);this.emit(pr.IMPRESSION,s)}return wt(wt({},i),{feature_enabled:a})},t.prototype.updateContext=function(r){return jr(this,void 0,void 0,(function(){var n,o=this;return zr(this,(function(a){switch(a.label){case 0:return(r.appName||r.environment)&&console.warn("appName and environment are static. They can't be updated with updateContext."),n={environment:this.context.environment,appName:this.context.appName,sessionId:this.context.sessionId},this.context=wt(wt({},n),r),this.timerRef||this.readyEventEmitted?[4,this.fetchToggles()]:[3,2];case 1:return a.sent(),[3,4];case 2:return this.started?[4,new Promise((function(i){var s=function(){o.fetchToggles().then((function(){o.off(pr.READY,s),i()}))};o.once(pr.READY,s)}))]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2]}}
1272))}))},t.prototype.getContext=function(){return wt({},this.context)},t.prototype.setContextField=function(r,n){var o,a;if(k2.includes(r))this.context=wt(wt({},this.context),((o={})[r]=n,o));else{var i=wt(wt({},this.context.properties),((a={})[r]=n,a));this.context=wt(wt({},this.context),{properties:i})}this.timerRef&&this.fetchToggles()},t.prototype.init=function(){return jr(this,void 0,void 0,(function(){var r,n;return zr(this,(function(o){switch(o.label){case 0:return[4,this.resolveSessionId()];case 1:return r=o.sent(),this.context=wt({sessionId:r},this.context),n=this,[4,this.storage.get(ps)];case 2:return n.toggles=o.sent()||[],!this.bootstrap||!this.bootstrapOverride&&this.toggles.length!==0?[3,4]:[4,this.storage.save(ps,this.bootstrap)];case 3:o.sent(),this.toggles=this.bootstrap,this.emit(pr.READY),o.label=4;case 4:return this.emit(pr.INIT),[2]}}))}))},t.prototype.start=function(){return jr(this,void 0,void 0,(function(){var r,n=this;return zr(this,(function(o){switch(o.label){case 0:return this.started=!0,this.timerRef?(console.error("Unleash SDK has already started, if you want to restart the SDK you should call client.stop() before starting again."),[2]):[4,this.ready];case 1:return o.sent(),this.metrics.start(),r=this.refreshInterval,[4,this.fetchToggles()];case 2:return o.sent(),r>0&&(this.timerRef=setInterval((function(){return n.fetchToggles()}),r)),[2]}}))}))},t.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},t.prototype.resolveSessionId=function(){return jr(this,void 0,void 0,(function(){var r;return zr(this,(function(n){switch(n.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[3,1];case 1:return[4,this.storage.get("sessionId")];case 2:return(r=n.sent())?[3,4]:(r=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",r)]);case 3:n.sent(),n.label=4;case 4:return[2,r]}}))}))},t.prototype.getHeaders=function(){var r,n=((r={})[this.headerName]=this.clientKey,r.Accept="application/json",r["Content-Type"]="application/json",r["If-None-Match"]=this.etag,r);
1272return Object.entries(this.customHeaders).filter(Ja).forEach((function(o){var a=o[0],i=o[1];return n[a]=i})),n},t.prototype.storeToggles=function(r){return jr(this,void 0,void 0,(function(){return zr(this,(function(n){switch(n.label){case 0:return this.toggles=r,this.emit(pr.UPDATE),[4,this.storage.save(ps,r)];case 1:return n.sent(),[2]}}))}))},t.prototype.fetchToggles=function(){return jr(this,void 0,void 0,(function(){var r,n,o,a,i,s,l;return zr(this,(function(c){switch(c.label){case 0:if(!this.fetch)return[3,8];c.label=1;case 1:return c.trys.push([1,7,,8]),r=this.usePOSTrequests,n=r?this.url:(function(u,d){var h=new URL(u.toString());return Object.entries(d).filter(Ja).forEach((function(p){var y=p[0],S=p[1];y==="properties"&&S?Object.entries(S).filter(Ja).forEach((function(b){var A=b[0],x=b[1];return h.searchParams.append("properties[".concat(A,"]"),x)})):h.searchParams.append(y,S)})),h})(this.url,this.context),o=r?"POST":"GET",a=r?JSON.stringify({context:this.context}):void 0,[4,this.fetch(n.toString(),{method:o,cache:"no-cache",headers:this.getHeaders(),body:a})];case 2:return(i=c.sent()).ok&&i.status!==304?(this.etag=i.headers.get("ETag")||"",[4,i.json()]):[3,5];case 3:return s=c.sent(),[4,this.storeToggles(s.toggles)];case 4:return c.sent(),this.bootstrap||this.readyEventEmitted||(this.emit(pr.READY),this.readyEventEmitted=!0),[3,6];case 5:i.ok||i.status===304||(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.emit(pr.ERROR,{type:"HttpError",code:i.status})),c.label=6;case 6:return[3,8];case 7:return l=c.sent(),console.error("Unleash: unable to fetch feature toggles",l),this.emit(pr.ERROR,l),[3,8];case 8:return[2]}}
1272))}))},t})(R2);const ya=Xe.createContext(null),B2={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:"http://localhost",appName:"offline",clientKey:"not-used"},F2="startTransition",Ru=Gf[F2]||(e=>e()),$2=({config:e,children:t,unleashClient:r,startClient:n=!0})=>{const o=e||B2,a=f.useRef(r||new U2(o)),[i,s]=f.useState(!!(r?e!=null&&e.bootstrap&&(e==null?void 0:e.bootstrapOverride)!==!1:o.bootstrap&&o.bootstrapOverride!==!1)),[l,c]=f.useState(null);f.useEffect(()=>{!o&&!r&&console.error(`You must provide either a config or an unleash client to the flag provider.
1273        If you are initializing the client in useEffect, you can avoid this warning
1274        by checking if the client exists before rendering.`);const S=x=>{Ru(()=>{c(k=>k||x)})};let b;const A=()=>{b=setTimeout(()=>{Ru(()=>{s(!0)})},0)};return a.current.on("ready",A),a.current.on("error",S),(n||!r)&&(a.current.stop(),a.current.start()),function(){a.current&&(a.current.off("error",S),a.current.off("ready",A),a.current.stop()),b&&clearTimeout(b)}},[]);const u=async S=>{await a.current.updateContext(S)},d=S=>a.current.isEnabled(S),h=S=>a.current.getVariant(S),p=(S,b,A)=>a.current.on(S,b,A),y=f.useMemo(()=>({on:p,updateContext:u,isEnabled:d,getVariant:h,client:a.current,flagsReady:i,flagsError:l,setFlagsReady:s,setFlagsError:c}),[i,l]);return f.createElement(ya.Provider,{value:y},t)},xr=e=>{const{isEnabled:t,client:r}=f.useContext(ya),[n,o]=f.useState(!!t(e)),a=f.useRef();return a.current=n,f.useEffect(()=>{if(!r)return;const i=()=>{const l=t(e);l!==a.current&&(a.current=l,o(!!l))},s=()=>{const l=t(e);a.current=l,o(l)};return r.on("update",i),r.on("ready",s),()=>{r.off("update",i),r.off("ready",s)}},[r]),n},xl=()=>{const{flagsReady:e,flagsError:t}=f.useContext(ya);return{flagsReady:e,flagsError:t}},G2=(e,t)=>{var r,n,o,a;return!(e.name===(t==null?void 0:t.name)&&e.enabled===(t==null?void 0:t.enabled)&&e.feature_enabled===(t==null?void 0:t.feature_enabled)&&((r=e.payload)==null?void 0:r.type)===((n=t==null?void 0:t.payload)==null?void 0:n.type)&&((o=e.payload)==null?void 0:o.value)===((a=t==null?void 0:t.payload)==null?void 0:a.value))},H2=e=>{const{getVariant:t,client:r}=f.useContext(ya),[n,o]=f.useState(t(e)),a=f.useRef({name:n.name,enabled:n.enabled});return a.current=n,f.useEffect(()=>{if(!r)return;const i=()=>{const l=t(e);G2(a.current,l)&&(o(l),a.current=l)},s=()=>{const l=t(e);a.current.name=l==null?void 0:l.name,a.current.enabled=l==null?void 0:l.enabled,o(l)};return r.on("update",i),r.on("ready",s),()=>{r.off("update",i),r.off("ready",s)}},[r]),n||{}},nM=()=>{const{client:e}=f.useContext(ya);return e};var W2=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),St=function(){return St=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},St.apply(this,arguments)},Su={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},bu={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Na={width:"20px",height:"20px",position:"absolute"},j2={top:St(St({},Su),{top:"-5px"}),right:St(St({},bu),{left:void 0,right:"-5px"}),bottom:St(St({},Su),{top:void 0,bottom:"-5px"}),left:St(St({},bu),{left:"-5px"}),topRight:St(St({},Na),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:St(St({},Na),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:St(St({},Na),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:St(St({},Na),{left:"-10px",top:"-10px",cursor:"nw-resize"})},z2=(function(e){W2(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.onMouseDown=function(n){r.props.onResizeStart(n,r.props.direction)},r.onTouchStart=function(n){r.props.onResizeStart(n,r.props.direction)},r}return t.prototype.render=function(){return f.createElement("div",{className:this.props.className||"",style:St(St({position:"absolute",userSelect:"none"},j2[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t})(f.PureComponent),V2=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}
1274t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Wr=function(){return Wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Wr.apply(this,arguments)},K2={width:"auto",height:"auto"},ka=function(e,t,r){return Math.max(Math.min(e,r),t)},Iu=function(e,t){return Math.round(e/t)*t},Jn=function(e,t){return new RegExp(e,"i").test(t)},xa=function(e){return!!(e.touches&&e.touches.length)},Y2=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Ou=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,i,s){return Math.abs(i-e)<Math.abs(t[a]-e)?s:a},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},gs=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},Ma=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},q2=function(e,t,r,n,o,a,i){return n=Ma(n,e.width,t,r),o=Ma(o,e.height,t,r),a=Ma(a,e.width,t,r),i=Ma(i,e.height,t,r),{maxWidth:typeof n=="undefined"?void 0:Number(n),maxHeight:typeof o=="undefined"?void 0:Number(o),minWidth:typeof a=="undefined"?void 0:Number(a),minHeight:typeof i=="undefined"?void 0:Number(i)}},Q2=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Au="__resizable_base__",oM=(function(e){V2(t,e);function t(r){var n=e.call(this,r)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var o=n.parentNode;if(!o)return null;var a=n.window.document.createElement("div");return a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.transform="scale(0, 0)",a.style.left="0",a.style.flex="0 0 100%",a.classList?a.classList.add(Au):a.className+=Au,o.appendChild(a),a},n.removeBase=function(o){var a=n.parentNode;a&&a.removeChild(o)},n.ref=function(o){o&&(n.resizable=o)},n.state={isResizing:!1,width:typeof(n.propsSize&&n.propsSize.width)=="undefined"?"auto":n.propsSize&&n.propsSize.width,height:typeof(n.propsSize&&n.propsSize.height)=="undefined"?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||K2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,a=this.resizable.offsetHeight,i=this.resizable.style.position;i!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=i}return{width:r,height:n}}
1274,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,o=function(s){if(typeof r.state[s]=="undefined"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&r.propsSize[s].toString().endsWith("%")){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var l=r.getParentSize(),c=Number(r.state[s].toString().replace("px","")),u=c/l[s]*100;return u+"%"}return gs(r.state[s])},a=n&&typeof n.width!="undefined"&&!this.state.isResizing?gs(n.width):o("width"),i=n&&typeof n.height!="undefined"&&!this.state.isResizing?gs(n.height):o("height");return{width:a,height:i}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o=="undefined"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,a=this.state.direction,i=o&&Jn("left",a),s=o&&Jn("top",a),l,c;if(this.props.bounds==="parent"){var u=this.parentNode;u&&(l=i?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=i?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=i?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r<l?r:l),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,a=this.props.resizeRatio||1,i=this.state,s=i.direction,l=i.original,c=this.props,u=c.lockAspectRatio,d=c.lockAspectRatioExtraHeight,h=c.lockAspectRatioExtraWidth,p=l.width,y=l.height,S=d||0,b=h||0;return Jn("right",s)&&(p=l.width+(r-l.x)*a/o,u&&(y=(p-b)/this.ratio+S)),Jn("left",s)&&(p=l.width-(r-l.x)*a/o,u&&(y=(p-b)/this.ratio+S)),Jn("bottom",s)&&(y=l.height+(n-l.y)*a/o,u&&(p=(y-S)*this.ratio+b)),Jn("top",s)&&(y=l.height-(n-l.y)*a/o,u&&(p=(y-S)*this.ratio+b)),{newWidth:p,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,a){var i=this.props,s=i.lockAspectRatio,l=i.lockAspectRatioExtraHeight,c=i.lockA
1274spectRatioExtraWidth,u=typeof a.width=="undefined"?10:a.width,d=typeof o.width=="undefined"||o.width<0?r:o.width,h=typeof a.height=="undefined"?10:a.height,p=typeof o.height=="undefined"||o.height<0?n:o.height,y=l||0,S=c||0;if(s){var b=(h-y)*this.ratio+S,A=(p-y)*this.ratio+S,x=(u-S)/this.ratio+y,k=(d-S)/this.ratio+y,B=Math.max(u,b),C=Math.min(d,A),P=Math.max(h,x),M=Math.min(p,k);r=ka(r,B,C),n=ka(n,P,M)}else r=ka(r,u,d),n=ka(n,h,p);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var n=r.getBoundingClientRect();this.parentLeft=n.left,this.parentTop=n.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var a=this.resizable.getBoundingClientRect(),i=a.left,s=a.top,l=a.right,c=a.bottom;this.resizableLeft=i,this.resizableRight=l,this.resizableTop=s,this.resizableBottom=c}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,a=0;if(r.nativeEvent&&Y2(r.nativeEvent)?(o=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&xa(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,a=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var i=this.props.onResizeStart(r,n,this.resizable);if(i===!1)return}this.props.size&&(typeof this.props.size.height!="undefined"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width!="undefined"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var u=this.window.getComputedStyle(c).flexDirection;this.flexDir=u.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:o,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Wr(Wr({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&xa(r))try{r.preventDefault(),r.stopPropagation()}catch(ee){}var o=this.props,a=o.maxWidth,i=o.maxHeight,s=o.minWidth,l=o.minHeight,c=xa(r)?r.touches[0].clientX:r.clientX,u=xa(r)?r.touches[0].clientY:r.clientY,d=this.state,h=d.direction,p=d.original,y=d.width,S=d.height,b=this.getParentSize(),A=q2(b,this.window.innerWidth,this.window.innerHeight,a,i,s,l);a=A.maxWidth,i=A.maxHeight,s=A.minWidth,l=A.minHeight;var x=this.calculateNewSizeFromDirection(c,u),k=x.newHeight,B=x.newWidth,C=this.calculateNewMaxFromBoundary(a,i);this.props.snap&&this.props.snap.x&&(B=Ou(B,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=Ou(k,this.props.snap.y,this.props.snapGap));var P=this.calculateNewSizeFromAspectRatio(B,k,{width:C.maxWidth,height:C.maxHeight},{width:s,height:l});if(B=P.newWidth,k=P.newHeight,this.props.grid){var M=Iu(B,this.props.grid[0]),v=Iu(k,this.props.grid[1]),$=this.props.snapGap||0;B=$===0||Math.abs(M-B)<=$?M:B,k=$===0||Math.abs(v-k)<=$?v:k}var W={width:B-p.width,height:k-p.height};if(y&&typeof y=="string"){if(y.endsWith("%")){var oe=B/b.width*100;B=oe+"%"}else if(y.endsWith("vw")){var te=B/this.window.innerWidth*100;B=te+"vw"}else if(y.endsWith("vh")){var se=B/this.window.innerHeight*100;B=se+"vh"}}if(S&&typeof S=="string"){if(S.endsWith("%")){var oe=k/b.height*100;k=oe+"%"}else if(S.endsWith("vw")){var te=k/this.window.innerWidth*100;k=te+"vw"}else if(S.endsWith("vh")){var se=k/this.window.innerHeight*100;k=se+"vh"}}var ie={width:this.createSizeForCssProperty(B,"width"),height:this.createSizeForCssProperty(k,"height")};this.flexDir==="row"?ie.flexBasis=ie.width:this.flexDir==="column"&&(ie.flexBasis=ie.height),zg.flushSync(function(){n.setState(ie)}),this.props.onResize&&this.props.onResize(r,h,this.resizable,W)}},t.prototype.onMouseUp=function(r){var n=this.state,o=n.isResizing,a=n.direction,i=n.original;if(!(!o||!this.resizable)){var s={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(r,a,this.resizable,s),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Wr(Wr({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(r){this.setState({width:r.width,height:r.height})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,a=n.handleStyles,i=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,c=n.handleComponent;if(!o)return null;var u=Object.keys(o).map(function(d){return o[d]!==!1?f.createElement(z2,{key:d,direction:d,onResizeStart:r.onResizeStart,replaceStyles:a&&a[d],className:i&&i[d]},c&&c[d]?c[d]:null):null});return f.createElement("div",{className:l,style:s},u)},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(i,s){return Q2.indexOf(s)!==-1||(i[s]=r.props[s]),i},{}),o=Wr(Wr(Wr({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return f.createElement(a,Wr({ref:this.ref,style:o,className:this.props.className},n),this.state.isResizing&&f.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{}
vendor: 7,438 bytes, lines 1274-1275
1274,grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(f.PureComponent);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function wu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function X2(e){if(Array.isArray(e))return e}function J2(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Z2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1275In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eO(e,t){return X2(e)||J2(e,t)||tO(e,t)||Z2()}function tO(e,t){if(e){if(typeof e=="string")return wu(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wu(e,t):void 0}}const vp=Object.entries,Du=Object.setPrototypeOf,rO=Object.isFrozen,nO=Object.getPrototypeOf,oO=Object.getOwnPropertyDescriptor;let Gt=Object.freeze,Ht=Object.seal,oo=Object.create,Tp=typeof Reflect!="undefined"&&Reflect,nl=Tp.apply,ol=Tp.construct;Gt||(Gt=function(t){return t});Ht||(Ht=function(t){return t});nl||(nl=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return t.apply(r,o)});ol||(ol=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const Zn=bt(Array.prototype.forEach),aO=bt(Array.prototype.lastIndexOf),Nu=bt(Array.prototype.pop),eo=bt(Array.prototype.push),iO=bt(Array.prototype.splice),Sn=Array.isArray,Vo=bt(String.prototype.toLowerCase),ms=bt(String.prototype.toString),ku=bt(String.prototype.match),Po=bt(String.prototype.replace),xu=bt(String.prototype.indexOf),sO=bt(String.prototype.trim),lO=bt(Number.prototype.toString),cO=bt(Boolean.prototype.toString),Mu=typeof BigInt=="undefined"?null:bt(BigInt.prototype.toString),Lu=typeof Symbol=="undefined"?null:bt(Symbol.prototype.toString),Mt=bt(Object.prototype.hasOwnProperty),Uo=bt(Object.prototype.toString),xt=bt(RegExp.prototype.test),Un=uO(TypeError);function bt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return nl(e,t,n)}}function uO(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ol(e,r)}}function Ve(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vo;if(Du&&Du(e,null),!Sn(t))return e;let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const a=r(o);a!==o&&(rO(t)||(t[n]=a),o=a)}e[o]=!0}return e}function dO(e){for(let t=0;t<e.length;t++)Mt(e,t)||(e[t]=null);return e}function Vt(e){const t=oo(null);for(const n of vp(e)){var r=eO(n,2);const o=r[0],a=r[1];Mt(e,o)&&(Sn(a)?t[o]=dO(a):a&&typeof a=="object"&&a.constructor===Object?t[o]=Vt(a):t[o]=a)}return t}function fO(e){switch(typeof e){case"string":return e;case"number":return lO(e);case"boolean":return cO(e);case"bigint":return Mu?Mu(e):"0";case"symbol":return Lu?Lu(e):"Symbol()";case"undefined":return Uo(e);case"function":case"object":{if(e===null)return Uo(e);const t=e,r=Nr(t,"toString");if(typeof r=="function"){const n=r(t);return typeof n=="string"?n:Uo(n)}return Uo(e)}default:return Uo(e)}}function Nr(e,t){for(;e!==null;){const n=oO(e,t);if(n){if(n.get)return bt(n.get);if(typeof n.value=="function")return bt(n.value)}e=nO(e)}function r(){return null}return r}function hO(e){try{return xt(e,""),!0}catch(t){return!1}}const Pu=Gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),_s=Gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ys=Gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pO=Gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Es=Gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gO=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Uu=Gt(["#text"]),Bu=Gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1275spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),vs=Gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Fu=Gt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),La=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mO=Ht(/{{[\w\W]*|^[\w\W]*}}/g),_O=Ht(/<%[\w\W]*|^[\w\W]*%>/g),yO=Ht(/\${[\w\W]*/g),EO=Ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),vO=Ht(/^aria-[\-\w]+$/),$u=Ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TO=Ht(/^(?:\w+script|data):/i),CO=Ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RO=Ht(/^html$/i),SO=Ht(/^[a-z][.\w]*(-[.\w]+)+$/i),Gu=Ht(/<[/\w!]/g),Hu=Ht(/<[/\w]/g),bO=Ht(/<\/no(script|embed|frames)/i),IO=Ht(/\/>/i),gr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},OO=function(){return typeof window=="undefined"?null:window},AO=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch(i){return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Wu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},yn=function(t,r,n,o){return Mt(t,r)&&Sn(t[r])?Ve(o.base?Vt(o.base):{},t[r],o.transform):n};function Cp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:OO();const t=z=>Cp(z);if(t.version="3.4.13",t.removed=[],!e||!e.document||e.document.nodeType!==gr.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const n=r,o=n.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,i=e.Node,s=e.Element,l=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;
vendor: 4,158 bytes, line 1275
1275const u=e.DOMParser,d=e.trustedTypes,h=s.prototype,p=Nr(h,"cloneNode"),y=Nr(h,"remove"),S=Nr(h,"nextSibling"),b=Nr(h,"childNodes"),A=Nr(h,"parentNode"),x=Nr(h,"shadowRoot"),k=Nr(h,"attributes"),B=i&&i.prototype?Nr(i.prototype,"nodeType"):null,C=i&&i.prototype?Nr(i.prototype,"nodeName"):null,P=i&&i.prototype?Nr(i.prototype,"ownerDocument"):null;if(typeof a=="function"){const z=r.createElement("template");z.content&&z.content.ownerDocument&&(r=z.content.ownerDocument)}let M,v="",$,W=!1,oe=0;const te=function(){if(oe>0)throw Un('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},se=function(_){te(),oe++;try{return M.createHTML(_)}finally{oe--}},ie=function(_){te(),oe++;try{return M.createScriptURL(_)}finally{oe--}},ee=function(){return W||($=AO(d,o),W=!0),$},de=r,Y=de.implementation,ce=de.createNodeIterator,he=de.createDocumentFragment,Oe=de.getElementsByTagName,Ce=n.importNode;let ye=Wu();t.isSupported=typeof vp=="function"&&typeof A=="function"&&Y&&Y.createHTMLDocument!==void 0;const Ke=mO,me=_O,ne=yO,ae=EO,Me=vO,rt=TO,lt=CO,Ot=SO;let nr=$u,$e=null;const et=Ve({},[...Pu,..._s,...ys,...Es,...Uu]);let Le=null;const Ne=Ve({},[...Bu,...vs,...Fu,...La]);let Be=Object.seal(oo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ct=null,Q=null;const Ye=Object.seal(oo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ot=!0,Dt=!0,Xt=!1,dr=!0,At=!1,yt=!0,Qe=!1,or=!1,Jt=null,Ct=null,jt=!1,Ar=!1,qr=!1,wr=!1,hn=!0,ar=!1;const kn="user-content-";let Pr=!0,Ur=!1,Br={},Et=null;const Fr=Ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xn=null;const Qr=Ve({},["audio","video","img","source","image","track"]);let Mn=null;const Ln=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pn="http://www.w3.org/1998/Math/MathML",Xr="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let fr=Lt,gn=!1,Pn=null;const Io=Ve({},[pn,Xr,Lt],ms),R=Gt(["mi","mo","mn","ms","mtext"]);let O=Ve({},R);const U=Gt(["annotation-xml"]);let j=Ve({},U);const J=Ve({},["title","style","font","a","script"]);let ue=null;const le=["application/xhtml+xml","text/html"],Re="text/html";let q=null,fe=null;const Se=r.createElement("form"),be=function(_){return _ instanceof RegExp||_ instanceof Function},_e=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(fe&&fe===_)return;(!_||typeof _!="object")&&(_={}),_=Vt(_),ue=le.indexOf(_.PARSER_MEDIA_TYPE)===-1?Re:_.PARSER_MEDIA_TYPE,q=ue==="application/xhtml+xml"?ms:Vo,$e=yn(_,"ALLOWED_TAGS",et,{transform:q}),Le=yn(_,"ALLOWED_ATTR",Ne,{transform:q}),Pn=yn(_,"ALLOWED_NAMESPACES",Io,{transform:ms}),Mn=yn(_,"ADD_URI_SAFE_ATTR",Ln,{transform:q,base:Ln}),xn=yn(_,"ADD_DATA_URI_TAGS",Qr,{transform:q,base:Qr}),Et=yn(_,"FORBID_CONTENTS",Fr,{transform:q}),ct=yn(_,"FORBID_TAGS",Vt({}),{transform:q}),Q=yn(_,"FORBID_ATTR",Vt({}),{transform:q}),Br=Mt(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Vt(_.USE_PROFILES):_.USE_PROFILES:!1,ot=_.ALLOW_ARIA_ATTR!==!1,Dt=_.ALLOW_DATA_ATTR!==!1,Xt=_.ALLOW_UNKNOWN_PROTOCOLS||!1,dr=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,At=_.SAFE_FOR_TEMPLATES||!1,yt=_.SAFE_FOR_XML!==!1,Qe=_.WHOLE_DOCUMENT||!1,Ar=_.RETURN_DOM||!1,qr=_.RETURN_DOM_FRAGMENT||!1,wr=_.RETURN_TRUSTED_TYPE||!1,jt=_.FORCE_BODY||!1,hn=_.SANITIZE_DOM!==!1,ar=_.SANITIZE_NAMED_PROPS||!1,Pr=_.KEEP_CONTENT!==!1,Ur=_.IN_PLACE||!1,nr=hO(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:$u,fr=typeof _.NAMESPACE=="str
1275ing"?_.NAMESPACE:Lt,O=Mt(_,"MATHML_TEXT_INTEGRATION_POINTS")&&_.MATHML_TEXT_INTEGRATION_POINTS&&typeof _.MATHML_TEXT_INTEGRATION_POINTS=="object"?Vt(_.MATHML_TEXT_INTEGRATION_POINTS):Ve({},R),j=Mt(_,"HTML_INTEGRATION_POINTS")&&_.HTML_INTEGRATION_POINTS&&typeof _.HTML_INTEGRATION_POINTS=="object"?Vt(_.HTML_INTEGRATION_POINTS):Ve({},U);const L=Mt(_,"CUSTOM_ELEMENT_HANDLING")&&_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING=="object"?Vt(_.CUSTOM_ELEMENT_HANDLING):oo(null);if(Be=oo(null),Mt(L,"tagNameCheck")&&be(L.tagNameCheck)&&(Be.tagNameCheck=L.tagNameCheck),Mt(L,"attributeNameCheck")&&be(L.attributeNameCheck)&&(Be.attributeNameCheck=L.attributeNameCheck),Mt(L,"allowCustomizedBuiltInElements")&&typeof L.allowCustomizedBuiltInElements=="boolean"&&(Be.allowCustomizedBuiltInElements=L.allowCustomizedBuiltInElements),Ht(Be),At&&(Dt=!1),qr&&(Ar=!0),Br&&($e=Ve({},Uu),Le=oo(null),Br.html===!0&&(Ve($e,Pu),Ve(Le,Bu)),Br.svg===!0&&(Ve($e,_s),Ve(Le,vs),Ve(Le,La)),Br.svgFilters===!0&&(Ve($e,ys),Ve(Le,vs),Ve(Le,La)),Br.mathMl===!0&&(Ve($e,Es),Ve(Le,Fu),Ve(Le,La))),Ye.tagCheck=null,Ye.attributeCheck=null,Mt(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?Ye.tagCheck=_.ADD_TAGS:Sn(_.ADD_TAGS)&&($e===et&&($e=Vt($e)),Ve($e,_.ADD_TAGS,q))),Mt(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?Ye.attributeCheck=_.ADD_ATTR:Sn(_.ADD_ATTR)&&(Le===Ne&&(Le=Vt(Le)),Ve(Le,_.ADD_ATTR,q))),Mt(_,"ADD_URI_SAFE_ATTR")&&Sn(_.ADD_URI_SAFE_ATTR)&&Ve(Mn,_.ADD_URI_SAFE_ATTR,q),Mt(_,"FORBID_CONTENTS")&&Sn(_.FORBID_CONTENTS)&&(Et===Fr&&(Et=Vt(Et)),Ve(Et,_.FORBID_CONTENTS,q)),Mt(_,"ADD_FORBID_CONTENTS")&&Sn(_.ADD_FORBID_CONTENTS)&&(Et===Fr&&(Et=Vt(Et)),Ve(Et,_.ADD_FORBID_CONTENTS,q)),Pr&&($e["#text"]=!0),Qe&&Ve($e,["html","head","body"]),$e.table&&(Ve($e,["tbody"]),delete ct.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Un('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Un('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const V=M;M=_.TRUSTED_TYPES_POLICY;try{v=se("")}catch(ge){throw M=V,ge}}else _.TRUSTED_TYPES_POLICY===null?(M=void 0,v=""):(M===void 0&&(M=ee()),M&&typeof v=="string"&&(v=se("")));Gt&&Gt(_),fe=_},Fe=Ve({},[..._s,...ys,...pO]),at=Ve({},[...Es,...gO]),it=function(_,L,V){return L.namespaceURI===Lt?_==="svg":L.namespaceURI===pn?_==="svg"&&(V==="annotation-xml"||O[V]):!!Fe[_]},Ge=function(_,L,V){return L.namespaceURI===Lt?_==="math":L.namespaceURI===Xr?_==="math"&&j[V]:!!at[_]},we=function(_,L,V){return L.namespaceURI===Xr&&!j[V]||L.namespaceURI===pn&&!O[V]?!1:!at[_]&&(J[_]||!Fe[_])},vt=function(_){let L=A(_);(!L||!L.tagName)&&(L={namespaceURI:fr,tagName:"template"});const V=Vo(_.tagName),ge=Vo(L.tagName);return Pn[_.namespaceURI]?_.namespaceURI===Xr?it(V,L,ge):_.namespaceURI===pn?Ge(V,L,ge):_.namespaceURI===Lt?we(V,L,ge):!!(ue==="application/xhtml+xml"&&Pn[_.namespaceURI]):!1},st=function(_){eo(t.removed,{element:_});try{A(_).removeChild(_)}catch(L){if(y(_),!A(_))throw Un("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Pt=function(_){kt(_);const L=b(_);if(L){const ge=[];Zn(L,ve=>{eo(ge,ve)}),Zn(ge,ve=>{try{y(ve)}catch(De){}})}const V=k(_);if(V)for(let ge=V.length-1;ge>=0;--ge){const ve=V[ge],De=ve&&ve.name;if(typeof De=="string")try{_.removeAttribute(De)}catch(tt){}}},Nt=function(_,L){try{eo(t.removed,{attribute:L.getAttributeNode(_),from:L})}catch(V){eo(t.removed,{attribute:null,from:L})}if(L.removeAttribute(_),_==="is")if(Ar||qr)try{st(L)}catch(V){}else try{L.setAttribute(_,"")}catch(V){}},hr=function(_){const L=k(_);if(L)for(let V=L.length-1;V>=0;--V){const ge=L[V],ve=ge&&ge.name;if(!(typeof ve!="string"||Le[q(ve)]))try{_.removeAttribute(ve)}catch(De){}}},kt=function(_){const L=[_];for(;L.length>0;){const V=L.pop();(B?B(V):V.nodeType)===gr.element&&hr(V);const ve=b(V);if(ve)for(let De=ve.length-1;De>=0;--De)L.push(ve[De])}},ir=function(_){if(!yt)return;const L=[_];for(;L.length>0;){const V=L.pop(),ge=B?B(V):V.nodeType;if(ge===gr.processingInstruction||ge===gr.comment&&xt(Hu,V.data)){try{y(V)}catch(De){}continue}if(ge===gr.element){const De=V,tt=q(C?C(V):V.nodeName);try{De.hasAttribute&&De.hasAttribute("patchsrc")&&De.removeAttribute("patchsrc"),De.hasAttribute&&De.hasAttribute("for")&&tt!=="label"&&tt!=="output"&&De.removeAttribute("for")}catch(ut){}}const ve=b(V);if(ve)for(let De=ve.length-1;De>=0;--De)L.push(ve[De])}},mn=function(_){let L=null,V=null;if(jt)_="<remove></remove>"+_;else{const De=ku(_,/^[\r\n\t ]+/);V=De&&De[0]}ue==="application/xhtml+xml"&&fr===Lt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ge=M?se(_):_;if(fr===Lt)try{L=new u().parseFromString(ge,ue)}catch(De){}if(!L||!L.documentElement){L=Y.createDocument(fr,"template",null);try{L.documentElement.innerHTML=gn?v:ge}catch(De){}}const ve=L.body||L.documentElement;return _&&V&&ve.insertBefore(r.createTextNode(V),ve.childNodes[0]||null),fr===Lt?Oe.call(L,Qe?"html":"body")[0]:Qe?L.documentElement:ve},Zt=function(_){const L=P?P(_):_.ownerDocument;return ce.call(L||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Dr=function(_){return _=Po(_,Ke," "),_=Po(_,me," "),_=Po(_,ne," "),_},$r=function(_){var L;_.normalize();const V=P?P(_):_.ownerDocument,ge=ce.call(V||_,_,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let ve=ge.nextNode();for(;ve;)ve.data=Dr(ve.data),ve=ge.nextNode();const De=(L=_.querySelectorAll)===null||L===void 0?void 0:L.call(_,"template");De&&Zn(De,tt=>{E(tt.content)&&$r(tt.content)})},g=function(_){const L=C?C(_):null;
vendor: 7,271 bytes, lines 1275-1276
1275return typeof L!="string"||q(L)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==k(_)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==B(_)||_.childNodes!==b(_)},E=function(_){if(!B||typeof _!="object"||_===null)return!1;try{return B(_)===gr.documentFragment}catch(L){return!1}},m=function(_){if(!B||typeof _!="object"||_===null)return!1;try{return typeof B(_)=="number"}catch(L){return!1}};function I(z,_,L){z.length!==0&&Zn(z,V=>{V.call(t,_,L,fe)})}const N=function(_,L){return!!(yt&&_.hasChildNodes()&&!m(_.firstElementChild)&&xt(Gu,_.textContent)&&xt(Gu,_.innerHTML)||yt&&_.namespaceURI===Lt&&L==="style"&&m(_.firstElementChild)||_.nodeType===gr.processingInstruction||yt&&_.nodeType===gr.comment&&xt(Hu,_.data))},w=function(_,L,V){if(!ct[L]&&re(L)&&(Be.tagNameCheck instanceof RegExp&&xt(Be.tagNameCheck,L)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(L)))return!1;if(Pr&&!Et[L]){const ge=A(_),ve=b(_);if(ve&&ge){const De=ve.length;for(let tt=De-1;tt>=0;--tt){const ut=_===V?p(ve[tt],!0):ve[tt];ge.insertBefore(ut,S(_))}}}return st(_),!0},H=function(_,L,V,ge){return _.length===0?L:L===V||L===ge?Vt(L):L},G=function(_,L){if(I(ye.beforeSanitizeElements,_,null),_!==L&&A(_)===null)return Ur&&kt(_),!0;if(g(_))return st(_),!0;const V=q(C?C(_):_.nodeName);if($e=H(ye.uponSanitizeElement,$e,et,Jt),I(ye.uponSanitizeElement,_,{tagName:V,allowedTags:$e}),_!==L&&A(_)===null)return Ur&&kt(_),!0;if(N(_,V))return st(_),!0;if(ct[V]||!(Ye.tagCheck instanceof Function&&Ye.tagCheck(V))&&!$e[V]){const ve=w(_,V,L);return ve===!1&&I(ye.afterSanitizeElements,_,null),ve}if((B?B(_):_.nodeType)===gr.element&&!vt(_)||(V==="noscript"||V==="noembed"||V==="noframes")&&xt(bO,_.innerHTML))return st(_),!0;if(At&&_.nodeType===gr.text){const ve=Dr(_.textContent);_.textContent!==ve&&(eo(t.removed,{element:_.cloneNode()}),_.textContent=ve)}return I(ye.afterSanitizeElements,_,null),!1},K=function(_,L,V){if(Q[L]||yt&&L==="patchsrc"||yt&&L==="for"&&_!=="label"&&_!=="output"||hn&&(L==="id"||L==="name")&&(V in r||V in Se))return!1;const ge=Le[L]||Ye.attributeCheck instanceof Function&&Ye.attributeCheck(L,_);if(!(Dt&&xt(ae,L))){if(!(ot&&xt(Me,L))){if(ge){if(!Mn[L]){if(!xt(nr,Po(V,lt,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&_!=="script"&&xu(V,"data:")===0&&xn[_])){if(!(Xt&&!xt(rt,Po(V,lt,"")))){if(V)return!1}}}}}else if(!(re(_)&&(Be.tagNameCheck instanceof RegExp&&xt(Be.tagNameCheck,_)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(_))&&(Be.attributeNameCheck instanceof RegExp&&xt(Be.attributeNameCheck,L)||Be.attributeNameCheck instanceof Function&&Be.attributeNameCheck(L,_))||L==="is"&&Be.allowCustomizedBuiltInElements&&(Be.tagNameCheck instanceof RegExp&&xt(Be.tagNameCheck,V)||Be.tagNameCheck instanceof Function&&Be.tagNameCheck(V))))return!1}}return!0},X=Ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),re=function(_){return!X[Vo(_)]&&xt(Ot,_)},pe=function(_,L,V,ge){if(M&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!V)switch(d.getAttributeType(_,L)){case"TrustedHTML":return se(ge);case"TrustedScriptURL":return ie(ge)}return ge},Pe=function(_,L,V,ge){try{V?_.setAttributeNS(V,L,ge):_.setAttribute(L,ge),g(_)?st(_):Nu(t.removed)}catch(ve){Nt(L,_)}},qe=function(_){I(ye.beforeSanitizeAttributes,_,null);const L=_.attributes;if(!L||g(_))return;Le=H(ye.uponSanitizeAttribute,Le,Ne,Ct);const V={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le,forceKeepAttr:void 0};let ge=L.length;const ve=q(_.nodeName);for(;ge--;){const De=L[ge],tt=De.name,ut=De.namespaceURI,Ut=De.value,sr=q(tt),Ji=Ut;let er=tt==="value"?Ji:sO(Ji);if(V.attrName=sr,V.attrValue=er,V.keepAttr=!0,V.forceKeepAttr=void 0,I(ye.uponSanitizeAttribute,_,V),er=V.attrValue,ar&&(sr==="id"||sr==="name")&&xu(er,kn)!==0&&(Nt(tt,_),er=kn+er),yt&&xt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,er)){Nt(tt,_);continue}if(sr==="attributename"&&ku(er,"href")){Nt(tt,_);continue}if(!V.forceKeepAttr){if(!V.keepAttr){Nt(tt,_);continue}if(!dr&&xt(IO,er)){Nt(tt,_);continue}if(At&&(er=Dr(er)),!K(ve,sr,er)){Nt(tt,_);continue}er=pe(ve,sr,ut,er),er!==Ji&&Pe(_,tt,ut,er)}}I(ye.afterSanitizeAttributes,_,null)},ze=function(_){let L=null;const V=Zt(_);for(I(ye.beforeSanitizeShadowDOM,_,null);L=V.nextNode();)if(I(ye.uponSanitizeShadowNode,L,null),G(L,_),qe(L),E(L.content)&&ze(L.content),(B?B(L):L.nodeType)===gr.element){const ve=x(L);E(ve)&&(ft(ve),ze(ve))}I(ye.afterSanitizeShadowDOM,_,null)},ft=function(_){const L=[{node:_,shadow:null}];for(;L.length>0;){const V=L.pop();if(V.shadow){ze(V.shadow);continue}const ge=V.node,De=(B?B(ge):ge.nodeType)===gr.element,tt=b(ge);if(tt)for(let ut=tt.length-1;ut>=0;--ut)L.push({node:tt[ut],shadow:null});if(De){const ut=C?C(ge):null;if(typeof ut=="string"&&q(ut)==="template"){const Ut=ge.content;E(Ut)&&L.push({node:Ut,shadow:null})}}if(De){const ut=x(ge);E(ut)&&L.push({node:null,shadow:ut},{node:ut,shadow:null})}}};return t.sanitize=function(z){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,V=null,ge=null,ve=null;if(gn=!z,gn&&(z="<!-->"),typeof z!="string"&&!m(z)&&(z=fO(z),typeof z!="string"))throw Un("dirty is not a string, aborting");if(!t.isSupported)return z;or?($e=Jt,Le=Ct):_e(_),(ye.uponSanitizeElement.length>0||ye.uponSanitizeAttribute.length>0)&&($e=Vt($e)),ye.uponSanitizeAttribute.length>0&&(Le=Vt(Le)),t.removed=[];const De=Ur&&typeof z!="string"&&m(z);if(De){ir(z);const Ut=C?C(z):z.nodeName;if(typeof Ut=="string"){const sr=q(Ut);if(!$e[sr]||ct[sr])throw Pt(z),Un("root node is forbidden and cannot be sanitized in-place")}if(g(z))throw Pt(z),Un("root node is clobbered and cannot be sanitized in-place");try{ft(z)}catch(sr){throw Pt(z),sr}}else if(m(z))L=mn("<!---->"),V=L.ownerDocument.importNode(z,!0),V.nodeType===gr.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?L=V:L.appendChild(V),ft(V);else{if(!Ar&&!At&&!Qe&&z.indexOf("<")===-1)return M&&wr?se(z):z;if(L=mn(z),!L)return Ar?null:wr?v:""}L&&jt&&st(L.firstChild);const tt=De?z:L;try{const Ut=Zt(tt);for(;ge=Ut.nextNode();)G(ge,tt),qe(ge),E(ge.content)&&ze(ge.content)}catch(Ut){throw De&&(Pt(z),Zn(t.removed,sr=>{sr.element&&kt(sr.element)})),Ut}if(De)return Zn(t.removed,Ut=>{Ut.element&&kt(Ut.element)}),At&&$r(z),z;if(Ar){if(At&&$r(L),qr)for(ve=he.call(L.ownerDocument);L.firstChild;)ve.appendChild(L.firstChild);else ve=L;return(Le.shadowroot||Le.shadowrootmode)&&(ve=Ce.call(n,ve,!0)),ve}let ut=Qe?L.outerHTML:L.innerHTML;return Qe&&$e["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&xt(RO,L.ownerDocument.doctype.name)&&(ut="<!DOCTYPE "+L.ownerDocument.doctype.name+`>
1276`+ut),At&&(ut=Dr(ut)),M&&wr?se(ut):ut},t.setConfig=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_e(z),or=!0,Jt=$e,Ct=Le},t.clearConfig=function(){fe=null,or=!1,Jt=null,Ct=null,M=$,v=""},t.isValidAttribute=function(z,_,L){fe||_e({});const V=q(z),ge=q(_);return K(V,ge,L)},t.addHook=function(z,_){typeof _=="function"&&Mt(ye,z)&&eo(ye[z],_)}
1276,t.removeHook=function(z,_){if(Mt(ye,z)){if(_!==void 0){const L=aO(ye[z],_);return L===-1?void 0:iO(ye[z],L,1)[0]}return Nu(ye[z])}},t.removeHooks=function(z){Mt(ye,z)&&(ye[z]=[])},t.removeAllHooks=function(){ye=Wu()},t}var aM=Cp();/**
1277 * react-router v7.18.4
1278 *
1279 * Copyright (c) Remix Software Inc.
1280 *
1281 * This source code is licensed under the MIT license found in the
1282 * LICENSE.md file in the root directory of this source tree.
1283 *
1284 * @license MIT
1285 */var Rp=e=>{throw TypeError(e)},Sp=(e,t,r)=>t.has(e)||Rp("Cannot "+r),vr=(e,t,r)=>(Sp(e,t,"read from private field"),r?r.call(e):t.get(e)),Ko=(e,t,r)=>t.has(e)?Rp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Gr=(e,t,r,n)=>(Sp(e,t,"write to private field"),t.set(e,r),r),Hi=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Wi=/^[\\/]{2}/;function bp(e,t){return t+e.replace(/\\/g,"/")}var ju="popstate";function zu(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function wO(e={}){function t(n,o){var c;let a=(c=o.state)==null?void 0:c.masked,{pathname:i,search:s,hash:l}=a||n.location;return ua("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default",a?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,o){return typeof o=="string"?o:rr(o)}return NO(t,r,null,e)}function Ae(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function _t(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function DO(){return Math.random().toString(36).substring(2,10)}function Vu(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ua(e,t,r=null,n,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Lr(t):t,state:r,key:t&&t.key||n||DO(),mask:o}}function rr({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Lr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function NO(e,t,r,n={}){let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s="POP",l=null,c=u();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function u(){return(i.state||{idx:null}).idx}function d(){s="POP";let b=u(),A=b==null?null:b-c;c=b,l&&l({action:s,location:S.location,delta:A})}function h(b,A){s="PUSH";let x=zu(b)?b:ua(S.location,b,A);c=u()+1;let k=Vu(x,c),B=S.createHref(x.mask||x);try{i.pushState(k,"",B)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(B)}a&&l&&l({action:s,location:S.location,delta:1})}function p(b,A){s="REPLACE";let x=zu(b)?b:ua(S.location,b,A);c=u();let k=Vu(x,c),B=S.createHref(x.mask||x);i.replaceState(k,"",B),a&&l&&l({action:s,location:S.location,delta:0})}function y(b){return Ip(o,b)}let S={get action(){return s},get location(){return e(o,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(ju,d),l=b,()=>{o.removeEventListener(ju,d),l=null}},createHref(b){return t(o,b)},createURL:y,encodeLocation(b){let A=y(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:h,replace:p,go(b){return i.go(b)}};return S}function Ip(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),Ae(n,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:rr(t);return o=o.replace(/ $/,"%20"),!r&&Wi.test(o)&&(o=n+o),new URL(o,n)}var Yo,Ku=class{constructor(e){if(Ko(this,Yo,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(vr(this,Yo).has(e))return vr(this,Yo).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){vr(this,Yo).set(e,t)}};Yo=new WeakMap;var kO=new Set(["lazy","caseSensitive","path","id","index","children"]);function xO(e){return kO.has(e)}
1285var MO=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function LO(e){return MO.has(e)}function PO(e){return e.index===!0}function da(e,t,r=[],n={},o=!1){return e.map((a,i)=>{let s=[...r,String(i)],l=typeof a.id=="string"?a.id:s.join("-");if(Ae(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ae(o||!n[l],`Found a route id collision on id "${l}".  Route id's must be globally unique within Data Router usages`),PO(a)){let c={...a,id:l};return n[l]=Yu(c,t(c)),c}else{let c={...a,id:l,children:void 0};return n[l]=Yu(c,t(c)),a.children&&(c.children=da(a.children,t,s,n,o)),c}})}function Yu(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Op(e,t,r="/"){return kr(e,t,r,!1)}function kr(e,t,r,n,o){let a=typeof t=="string"?Lr(t):t,i=ur(a.pathname||"/",r);if(i==null)return null;let s=o!=null?o:Za(e),l=null,c=kp(i);for(let u=0;l==null&&u<s.length;++u)l=KO(s[u],c,n);return l}function UO(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function Za(e){let t=Ap(e);return BO(t),t}function Ap(e,t=[],r=[],n="",o=!1){let a=(i,s,l=o,c)=>{let u={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(n)&&l)return;Ae(u.relativePath.startsWith(n),`Absolute route path "${u.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(n.length)}let d=Rr([n,u.relativePath]),h=r.concat(u);i.children&&i.children.length>0&&(Ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Ap(i.children,t,h,d,l)),!(i.path==null&&!i.index)&&t.push({path:d,score:zO(d,i.index),routesMeta:h.map((p,y)=>{let[S,b]=Np(p.relativePath,p.caseSensitive,y===h.length-1);return{...p,matcher:S,compiledParams:b}})})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,s);else for(let c of wp(i.path))a(i,s,!0,c)}),t}function wp(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=wp(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function BO(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:VO(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var FO=/^:[\w-]+$/,$O=3,GO=2,HO=1,WO=10,jO=-2,qu=e=>e==="*";function zO(e,t){let r=e.split("/"),n=r.length;return r.some(qu)&&(n+=jO),t&&(n+=GO),r.filter(o=>!qu(o)).reduce((o,a)=>o+(FO.test(a)?$O:a===""?HO:WO),n)}function VO(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function KO(e,t,r=!1){let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",d={path:l.relativePath,caseSensitive:l.caseSensitive,end:c},h=l.matcher&&l.compiledParams?Dp(d,u,l.matcher,l.compiledParams):fa(d,u),p=l.route;if(!h&&c&&r&&!n[n.length-1].route.index&&(h=fa({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!h)return null;
1285Object.assign(o,h.params),i.push({params:o,pathname:Rr([a,h.pathname]),pathnameBase:QO(Rr([a,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(a=Rr([a,h.pathnameBase]))}return i}function iM(e,t={}){let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(_t(!1,`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",o=i=>i==null?"":typeof i=="string"?i:String(i),a=r.split(/\/+/).map((i,s,l)=>{if(s===l.length-1&&i==="*")return o(t["*"]);const u=i.match(/^:([\w-]+)(\??)(.*)/);if(u){const[,d,h,p]=u;let y=t[d];return Ae(h==="?"||y!=null,`Missing ":${d}" param`),encodeURIComponent(o(y))+p}return i.replace(/\?$/g,"")}).filter(i=>!!i);return n+a.join("/")}function fa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Np(e.path,e.caseSensitive,e.end);return Dp(e,t,r,n)}function Dp(e,t,r,n){let o=t.match(r);if(!o)return null;let a=o[0],i=Eo(a,1),s=o.slice(1);return{params:n.reduce((c,{paramName:u,isOptional:d},h)=>{if(u==="*"){let y=s[h]||"";i=Eo(a.slice(0,a.length-y.length),1)}const p=s[h];return d&&!p?c[u]=void 0:c[u]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function Np(e,t=!1,r=!0){_t(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l,c,u)=>{if(n.push({paramName:s,isOptional:l!=null}),l){let d=u.charAt(c+i.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function kp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _t(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ur(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function YO({basename:e,pathname:t}){return t==="/"?e:Rr([e,t])}var Ml=e=>Hi.test(e);function qO(e,t="/"){let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Lr(e):e,a;return r?(r=Ll(r),r.startsWith("/")||r.startsWith("\\")?a=Qu(r.substring(1),"/"):a=Qu(r,t)):a=t,{pathname:a,search:XO(n),hash:JO(o)}}function Qu(e,t){let r=Eo(t).split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Ts(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xp(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ji(e){let t=xp(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Ea(e,t,r,n=!1){let o;typeof e=="string"?o=Lr(e):(o={...e},Ae(!o.pathname||!o.pathname.includes("?"),Ts("?","pathname","search",o)),Ae(!o.pathname||!o.pathname.includes("#"),Ts("#","pathname","hash",o)),Ae(!o.search||!o.search.includes("#"),Ts("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=qO(o,s),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var Ll=e=>e.replace(/[\\/]{2,}/g,"/"),Rr=e=>Ll(e.join("/"));function Eo(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}var QO=e=>Eo(e).replace(/^\/*/,"/"),XO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,JO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ZO=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],va=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ha(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ta(e){let t=e.map(r=>
1285r.route.path).filter(Boolean);return Rr(t)||"/"}var Mp=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Lp(e,t){let r=e;if(typeof r!="string"||!Hi.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,o=!1;if(Mp)try{let a=new URL(window.location.href),i=Wi.test(r)?new URL(bp(r,a.protocol)):new URL(r),s=ur(i.pathname,t);i.origin===a.origin&&s!=null?r=s+i.search+i.hash:o=!0}catch(a){_t(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:o,to:r}}var On=Symbol("Uninstrumented");function eA(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(a){let i=Object.keys(r);for(let s of i)a[s]&&r[s].push(a[s])}}));let n={};if(typeof t.lazy=="function"&&r.lazy.length>0){let o=fo(r.lazy,t.lazy,()=>{});o&&(n.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(a=>{let i=o[a],s=r[`lazy.${a}`];if(typeof i=="function"&&s.length>0){let l=fo(s,i,()=>{});l&&(n.lazy=Object.assign(n.lazy||{},{[a]:l}))}})}return["loader","action"].forEach(o=>{var i;let a=t[o];if(typeof a=="function"&&r[o].length>0){let s=(i=a[On])!=null?i:a,l=fo(r[o],s,(...c)=>Xu(c[0]));l&&(o==="loader"&&s.hydrate===!0&&(l.hydrate=!0),l[On]=s,n[o]=l)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(o=>{var s;let a=(s=o[On])!=null?s:o,i=fo(r.middleware,a,(...l)=>Xu(l[0]));return i?(i[On]=a,i):o})),n}function tA(e,t){var n,o;let r={navigate:[],fetch:[]};if(t.forEach(a=>a({instrument(i){let s=Object.keys(i);for(let l of s)i[l]&&r[l].push(i[l])}})),r.navigate.length>0){let a=(n=e.navigate[On])!=null?n:e.navigate,i=fo(r.navigate,a,(...s)=>{let[l,c]=s;return{to:typeof l=="number"||typeof l=="string"?l:l?rr(l):".",...Ju(e,c!=null?c:{})}});i&&(i[On]=a,e.navigate=i)}if(r.fetch.length>0){let a=(o=e.fetch[On])!=null?o:e.fetch,i=fo(r.fetch,a,(...s)=>{let[l,,c,u]=s;return{href:c!=null?c:".",fetcherKey:l,...Ju(e,u!=null?u:{})}});i&&(i[On]=a,e.fetch=i)}return e}function fo(e,t,r){return e.length===0?null:async(...n)=>{let o=await Pp(e,r(...n),()=>t(...n),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function Pp(e,t,r,n){let o=e[n],a;if(o){let i,s=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=Pp(e,t,r,n-1),a=await i,Ae(a,"Expected a result"),a.type==="error"&&a.value instanceof Error?{status:"error",error:a.value}:{status:"success",error:void 0});try{await o(s,t)}catch(l){console.error("An instrumentation function threw an error:",l)}i||await s(),await i}else try{a={type:"success",value:await r()}}catch(i){a={type:"error",value:i}}return a||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Xu(e){let{request:t,context:r,params:n,pattern:o}=e;return{request:rA(t),params:{...n},pattern:o,context:nA(r)}}function Ju(e,t){return{currentUrl:rr(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function rA(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function nA(e){if(aA(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var oA=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function aA(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===oA}var Zu=new URL("http://localhost");function Pl(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),Zu)}catch(t){return Zu}}function Cs(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function iA(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function mo(e,t,r,n){let o=null;try{o=e==null?null:new URL(e,r)}catch(l){}let a=new URL(t,r),i=o!=null&&!Cs(o,r),s=!Cs(a,r);if(n==="reject"){if(i||s)throw new Error("External navigation is not allowed")}else if(s&&(o==null||!iA(e,o)||!Cs(o,a)))throw new Error("External navigation is not allowed")}var Up=["POST","PUT","PATCH","DELETE"],sA=new Set(Up),lA=["GET",...Up],cA=new Set(lA),Bp=new Set([301,302,303,307,308]),uA=new Set([307,308]),Rs={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dA={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ao={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},fA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Fp="remix-router-transitions",$p=Symbol("ResetLoaderData"),Fn,io,En,so,hA=class{constructor(e){Ko(this,Fn),Ko(this,io),Ko(this,En),Ko(this,so),Gr(this,Fn,e),Gr(this,io,Za(e))}get stableRoutes(){return vr(this,Fn)}get activeRoutes(){var e;return(e=vr(this,En))!=null?e:vr(this,Fn)}get branches(){var e;return(e=vr(this,so))!=null?e:vr(this,io)}get hasHMRRoutes(){return vr(this,En)!=null}setRoutes(e){Gr(this,Fn,e),Gr(this,io,Za(e))}setHmrRoutes(e){Gr(this,En,e),Gr(this,so,Za(e))}commitHmrRoutes(){vr(this,En)&&(Gr(this,Fn,vr(this,En)),Gr(this,io,vr(this,so)),Gr(this,En,void 0),Gr(this,so,void 0))}};Fn=new WeakMap;io=new WeakMap;En=new WeakMap;so=new WeakMap;function pA(e){const t=e.window?e.window:typeof window!="undefined"?window:void 0,r=typeof t!="undefined"&&typeof t.document!="undefined"&&typeof t.document.createElement!="undefined";Ae(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],o=e.mapRouteProperties||fA,a=o;if(e.instrumentations){let R=e.instrumentations;a=O=>({...o(O),...eA(R.map(U=>
1285U.route).filter(Boolean),O)})}let i={},s=new hA(da(e.routes,a,void 0,i)),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let c=e.dataStrategy||EA,u={...e.future},d=null,h=new Set,p=null,y=null,S=null,b=null,A=e.hydrationData!=null,x=kr(s.activeRoutes,e.history.location,l,!1,s.branches),k=!1,B=null,C,P;if(x==null&&!e.patchRoutesOnNavigation){let R=Tr(404,{pathname:e.history.location.pathname}),{matches:O,route:U}=Pa(s.activeRoutes);C=!0,P=!C,x=O,B={[U.id]:R}}else if(x&&!e.hydrationData&&Lt(x,s.activeRoutes,e.history.location.pathname).active&&(x=null),x)if(x.some(R=>R.route.lazy))C=!1,P=!C;else if(!x.some(R=>Ul(R.route)))C=!0,P=!C;else{let R=e.hydrationData?e.hydrationData.loaderData:null,O=e.hydrationData?e.hydrationData.errors:null,U=x;if(O){let j=x.findIndex(J=>O[J.route.id]!==void 0);U=U.slice(0,j+1)}P=!1,C=!0,U.forEach(j=>{let J=Gp(j.route,R,O);P=P||J.renderFallback,C=C&&!J.shouldLoad})}else{C=!1,P=!C,x=[];let R=Lt(null,s.activeRoutes,e.history.location.pathname);R.active&&R.matches&&(k=!0,x=R.matches)}let M,v={historyAction:e.history.action,location:e.history.location,matches:x,initialized:C,renderFallback:P,navigation:Rs,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||B,fetchers:new Map,blockers:new Map},$="POP",W=null,oe=!1,te,se=!1,ie=new Map,ee=null,de=!1,Y=!1,ce=new Set,he=new Map,Oe=0,Ce=-1,ye=new Map,Ke=new Set,me=new Map,ne=new Map,ae=new Set,Me=new Map,rt,lt=null;function Ot(){if(d=e.history.listen(({action:R,location:O,delta:U})=>{if(rt){rt(),rt=void 0;return}_t(Me.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let j=xn({currentLocation:v.location,nextLocation:O,historyAction:R});if(j&&U!=null){let J=new Promise(ue=>{rt=ue});e.history.go(U*-1),Fr(j,{state:"blocked",location:O,proceed(){Fr(j,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),J.then(()=>e.history.go(U))},reset(){let ue=new Map(v.blockers);ue.set(j,ao),et({blockers:ue})}}),W==null||W.resolve(),W=null;return}return ct(R,O)}),r){BA(t,ie);let R=()=>FA(t,ie);t.addEventListener("pagehide",R),ee=()=>t.removeEventListener("pagehide",R)}return v.initialized||ct("POP",v.location,{initialHydration:!0}),M}function nr(){d&&d(),ee&&ee(),h.clear(),te&&te.abort(),v.fetchers.forEach((R,O)=>wr(v.fetchers,O)),v.blockers.forEach((R,O)=>Et(O))}function $e(R){if(h.add(R),p){let{newErrors:O}=p;p=null,R(v,{deletedFetchers:[],newErrors:O,viewTransitionOpts:void 0,flushSync:!1})}return()=>h.delete(R)}function et(R,O={}){var J;R.matches&&(R.matches=R.matches.map(ue=>{let le=i[ue.route.id],Re=ue.route;return Re.element!==le.element||Re.errorElement!==le.errorElement||Re.hydrateFallbackElement!==le.hydrateFallbackElement?{...ue,route:le}:ue})),v={...v,...R};let U=[],j=[];v.fetchers.forEach((ue,le)=>{ue.state==="idle"&&(ae.has(le)?U.push(le):j.push(le))}),ae.forEach(ue=>{!v.fetchers.has(ue)&&!he.has(ue)&&U.push(ue)}),h.size===0&&(p={newErrors:(J=R.errors)!=null?J:null}),[...h].forEach(ue=>{var le;return ue(v,{deletedFetchers:U,newErrors:(le=R.errors)!=null?le:null,viewTransitionOpts:O.viewTransitionOpts,flushSync:O.flushSync===!0})}),U.forEach(ue=>wr(v.fetchers,ue)),j.forEach(ue=>v.fetchers.delete(ue))}function Le(R,O,{flushSync:U}={}){var Se,be;let j=v.actionData!=null&&v.navigation.formMethod!=null&&Yt(v.navigation.formMethod)&&v.navigation.state==="loading"&&((Se=R.state)==null?void 0:Se._isRedirect)!==!0,J;O.actionData?Object.keys(O.actionData).length>0?J=O.actionData:J=null:j?J=v.actionData:J=null;let ue=O.loaderData?cd(v.loaderData,O.loaderData,O.matches||[],O.errors):v.loaderData,le=v.blockers;le.size>0&&(le=new Map(le),le.forEach((_e,Fe)=>le.set(Fe,ao)));
1285let Re=de?!1:Xr(R,O.matches||v.matches),q=oe===!0||v.navigation.formMethod!=null&&Yt(v.navigation.formMethod)&&((be=R.state)==null?void 0:be._isRedirect)!==!0;s.commitHmrRoutes(),de||$==="POP"||($==="PUSH"?e.history.push(R,R.state):$==="REPLACE"&&e.history.replace(R,R.state));let fe;if($==="POP"&&!de&&R!==v.location){let _e=ie.get(v.location.pathname);_e&&_e.has(R.pathname)?fe={currentLocation:v.location,nextLocation:R}:ie.has(R.pathname)&&(fe={currentLocation:R,nextLocation:v.location})}else if(se){let _e=ie.get(v.location.pathname);_e?_e.add(R.pathname):(_e=new Set([R.pathname]),ie.set(v.location.pathname,_e)),fe={currentLocation:v.location,nextLocation:R}}et({...O,actionData:J,loaderData:ue,historyAction:$,location:R,initialized:!0,renderFallback:!1,navigation:Rs,revalidation:"idle",restoreScrollPosition:Re,preventScrollReset:q,blockers:le},{viewTransitionOpts:fe,flushSync:U===!0}),$="POP",oe=!1,se=!1,de=!1,Y=!1,W==null||W.resolve(),W=null,lt==null||lt.resolve(),lt=null}async function Ne(R,O){var at,it,Ge;if(W==null||W.resolve(),W=null,typeof R=="number"){W||(W=hd());let we=W.promise;return e.history.go(R),we}let U=al(v.location,v.matches,l,R,O==null?void 0:O.fromRouteId,O==null?void 0:O.relative),{path:j,submission:J,error:ue}=ed(!1,U,O),le;if(O!=null&&O.mask){let we=typeof O.mask=="string"?Lr(O.mask):{...v.location.mask,...O.mask};if(le={pathname:(at=we.pathname)!=null?at:"",search:(it=we.search)!=null?it:"",hash:(Ge=we.hash)!=null?Ge:""},Wi.test(le.pathname))throw new Error("External navigation is not allowed");le.pathname.startsWith("\\")&&(le.pathname=le.pathname.replace(/^\\+/,"/")),mo(typeof O.mask=="string"?O.mask:rr(O.mask),rr(le),e.history.createURL("/"),"reject")}let Re=v.location,q=ua(Re,j,O&&O.state,void 0,le);q={...q,...e.history.encodeLocation(q)},mo(R==null?e.history.createHref(v.location):typeof R=="string"?R:rr(R),e.history.createHref(q.mask||q),e.history.createURL("/"),"reject");let fe=O&&O.replace!=null?O.replace:void 0,Se="PUSH";fe===!0?Se="REPLACE":fe===!1||J!=null&&Yt(J.formMethod)&&J.formAction===v.location.pathname+v.location.search&&(Se="REPLACE");let be=O&&"preventScrollReset"in O?O.preventScrollReset===!0:void 0,_e=(O&&O.flushSync)===!0,Fe=xn({currentLocation:Re,nextLocation:q,historyAction:Se});if(Fe){Fr(Fe,{state:"blocked",location:q,proceed(){Fr(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),Ne(R,O)},reset(){let we=new Map(v.blockers);we.set(Fe,ao),et({blockers:we})}});return}await ct(Se,q,{submission:J,pendingError:ue,preventScrollReset:be,replace:O&&O.replace,enableViewTransition:O&&O.viewTransition,flushSync:_e,callSiteDefaultShouldRevalidate:O&&O.defaultShouldRevalidate})}function Be(){lt||(lt=hd()),Jt(),et({revalidation:"loading"});let R=lt.promise;return v.navigation.state==="submitting"?R:v.navigation.state==="idle"?(ct(v.historyAction,v.location,{startUninterruptedRevalidation:!0}),R):(ct($||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation,enableViewTransition:se===!0}),R)}async function ct(R,O,U){te&&te.abort(),te=null,$=R,de=(U&&U.startUninterruptedRevalidation)===!0,pn(v.location,v.matches),oe=(U&&U.preventScrollReset)===!0,se=(U&&U.enableViewTransition)===!0;let j=s.activeRoutes,J=U!=null&&U.initialHydration&&v.matches&&v.matches.length>0&&!k?v.matches:kr(j,O,l,!1,s.branches),ue=(U&&U.flushSync)===!0;if(J&&v.initialized&&!Y&&AA(v.location,O)&&!(U&&U.submission&&Yt(U.submission.formMethod))){Le(O,{matches:J},{flushSync:ue});return}let le=Lt(J,j,O.pathname);if(le.active&&le.matches&&(J=le.matches),!J){let{error:Ge,notFoundMatches:we,route:vt}=Qr(O.pathname);Le(O,{matches:we,loaderData:{},errors:{[vt.id]:Ge}},{flushSync:ue});return}let Re=U&&U.overrideNavigation?{...U.overrideNavigation,matches:J,historyAction:R}:void 0;te=new AbortController;let q=lo(e.history,O,te.signal,U&&U.submission),fe=e.getContext?await e.getContext():new Ku,Se;if(U&&U.pendingError)Se=[bn(J).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&Yt(U.submission.formMethod)){let Ge=await Q(q,O,U.submission,J,R,fe,le.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:ue});if(Ge.shortCircuited)return;if(Ge.pendingActionResult){let[we,vt]=Ge.pendingActionResult;if(_r(vt)&&ha(vt.error)&&vt.error.status===404){te=null,Le(O,{matches:Ge.matches,loaderData:{},errors:{[we]:vt.error}});return}}J=Ge.matches||J,Se=Ge.pendingActionResult,Re=Ss(O,J,R,U.submission),ue=!1,le.active=!1,q=lo(e.history,q.url,q.signal)}let{shortCircuited:be,matches:_e,loaderData:Fe,errors:at,workingFetchers:it}=await Ye(q,O,J,R,fe,le.active,Re,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,ue,Se,U&&U.callSiteDefaultShouldRevalidate);be||(te=null,Le(O,{matches:_e||J,...ud(Se),loaderData:Fe,errors:at,...it?{fetchers:it}:{}}))}async function Q(R,O,U,j,J,ue,le,Re,q={}){Jt();let fe=PA(O,j,J,U);if(et({navigation:fe},{flushSync:q.flushSync===!0}),le){let _e=await fr(j,O.pathname,R.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){if(_e.partialMatches.length===0){let{matches:at,route:it}=Pa(s.activeRoutes);return{matches:at,pendingActionResult:[it.id,{type:"error",error:_e.error}]}}let Fe=bn(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[Fe,{type:"error",error:_e.error}]}}else if(_e.matches)j=_e.matches;else{let{notFoundMatches:Fe,error:at,route:it}=Qr(O.pathname);return{matches:Fe,pendingActionResult:[it.id,{type:"error",error:at}]}}}let Se,be=ei(j,O);if(!be.route.action&&!be.route.lazy)Se={type:"error",error:Tr(405,{method:R.method,pathname:O.pathname,routeId:be.route.id})};else{let _e=_o(a,i,R,O,j,be,Re?[]:n,ue),Fe=await Qe(R,O,_e,ue,null);if(Se=Fe[be.route.id],!Se){for(let at of j)if(Fe[at.route.id]){Se=Fe[at.route.id];break}}if(R.signal.aborted)return{shortCircuited:!0}}if(Gn(Se)){let _e;return q&&q.replace!=null?_e=q.replace:_e=id(Se.response.headers.get("Location"),new URL(R.url),l,e.history)===v.location.pathname+v.location.search,await yt(R,Se,!0,{submission:U,replace:_e}),{shortCircuited:!0}}if(_r(Se)){let _e=bn(j,be.route.id);return(q&&q.replace)!==!0&&($="PUSH"),{matches:j,pendingActionResult:[_e.route.id,Se,be.route.id]}}return{matches:j,pendingActionResult:[be.route.id,Se]}}async function Ye(R,O,U,j,J,ue,le,Re,q,fe,Se,be,_e,Fe){let at=le||Ss(O,U,j,Re),it=Re||q||fd(at),Ge=!de&&!Se;if(ue){if(Ge){let m=ot(_e);et({navigation:at,...m!==void 0?{actionData:m}:{}},{flushSync:be})}let E=await fr(U,O.pathname,R.signal);if(E.type==="aborted")return{shortCircuited:!0};if(E.type==="error"){if(E.partialMatches.length===0){let{matches:I,route:N}=Pa(s.activeRoutes);return{matches:I,loaderData:{},errors:{[N.id]:E.error}}}let m=bn(E.partialMatches).route.id;return{matches:E.partialMatches,loaderData:{},errors:{[m]:E.error}}}else if(E.matches)U=E.matches;else{let{error:m,notFoundMatches:I,route:N}=Qr(O.pathname);return{matches:I,loaderData:{},errors:{[N.id]:m}}}}let we=s.activeRoutes,{dsMatches:vt,revalidatingFetchers:st}
1285=td(R,J,a,i,e.history,v,U,it,O,Se?[]:n,Se===!0,Y,ce,ae,me,Ke,we,l,e.patchRoutesOnNavigation!=null,s.branches,_e,Fe);if(Ce=++Oe,!e.dataStrategy&&!vt.some(E=>E.shouldLoad)&&!vt.some(E=>E.route.middleware&&E.route.middleware.length>0)&&st.length===0){let E=new Map(v.fetchers),m=Pr(E);return Le(O,{matches:U,loaderData:{},errors:_e&&_r(_e[1])?{[_e[0]]:_e[1].error}:null,...ud(_e),...m?{fetchers:E}:{}},{flushSync:be}),{shortCircuited:!0}}if(Ge){let E={};if(!ue){E.navigation=at;let m=ot(_e);m!==void 0&&(E.actionData=m)}st.length>0&&(E.fetchers=Dt(st)),et(E,{flushSync:be})}st.forEach(E=>{ar(E.key),E.controller&&he.set(E.key,E.controller)});let Pt=()=>st.forEach(E=>ar(E.key));te&&te.signal.addEventListener("abort",Pt);let{loaderResults:Nt,fetcherResults:hr}=await or(vt,st,R,O,J);if(R.signal.aborted)return{shortCircuited:!0};te&&te.signal.removeEventListener("abort",Pt),st.forEach(E=>he.delete(E.key));let kt=Ua(Nt);if(kt)return await yt(R,kt.result,!0,{replace:fe}),{shortCircuited:!0};if(kt=Ua(hr),kt)return Ke.add(kt.key),await yt(R,kt.result,!0,{replace:fe}),{shortCircuited:!0};let ir=new Map(v.fetchers),{loaderData:mn,errors:Zt}=ld(v,U,Nt,_e,st,hr,ir);Se&&v.errors&&(Zt={...v.errors,...Zt});let Dr=Pr(ir),$r=Ur(Ce,ir),g=Dr||$r||st.length>0;return{matches:U,loaderData:mn,errors:Zt,...g?{workingFetchers:ir}:{}}}function ot(R){if(R&&!_r(R[1]))return{[R[0]]:R[1].data};if(v.actionData)return Object.keys(v.actionData).length===0?null:v.actionData}function Dt(R){let O=new Map(v.fetchers);return R.forEach(U=>{let j=O.get(U.key),J=Bo(void 0,j?j.data:void 0);O.set(U.key,J)}),O}async function Xt(R,O,U,j){ar(R);let J=(j&&j.flushSync)===!0,ue=s.activeRoutes,le=al(v.location,v.matches,l,U,O,j==null?void 0:j.relative),Re=kr(ue,le,l,!1,s.branches),q=Lt(Re,ue,le);if(q.active&&q.matches&&(Re=q.matches),!Re){jt(R,O,Tr(404,{pathname:le}),{flushSync:J});return}let{path:fe,submission:Se,error:be}=ed(!0,le,j);if(be){jt(R,O,be,{flushSync:J});return}let _e=e.getContext?await e.getContext():new Ku,Fe=(j&&j.preventScrollReset)===!0;if(Se&&Yt(Se.formMethod)){await dr(R,O,fe,Re,_e,q.active,J,Fe,Se,j&&j.defaultShouldRevalidate);return}me.set(R,{routeId:O,path:fe}),await At(R,O,fe,Re,_e,q.active,J,Fe,Se)}async function dr(R,O,U,j,J,ue,le,Re,q,fe){Jt(),me.delete(R);let Se=v.fetchers.get(R);Ct(R,UA(q,Se),{flushSync:le});let be=new AbortController,_e=lo(e.history,U,be.signal,q);if(ue){let G=await fr(j,new URL(_e.url).pathname,_e.signal,R);if(G.type==="aborted")return;if(G.type==="error"){jt(R,O,G.error,{flushSync:le});return}else if(G.matches)j=G.matches;else{jt(R,O,Tr(404,{pathname:U}),{flushSync:le});return}}let Fe=ei(j,U);if(!Fe.route.action&&!Fe.route.lazy){let G=Tr(405,{method:q.formMethod,pathname:U,routeId:O});jt(R,O,G,{flushSync:le});return}he.set(R,be);let at=Oe,it=_o(a,i,_e,U,j,Fe,n,J),Ge=await Qe(_e,U,it,J,R),we=Ge[Fe.route.id];if(!we){for(let G of it)if(Ge[G.route.id]){we=Ge[G.route.id];break}}if(_e.signal.aborted){he.get(R)===be&&he.delete(R);return}if(ae.has(R)){if(Gn(we)||_r(we)){Ct(R,Hr(void 0));return}}else{if(Gn(we))if(he.delete(R),Ce>at){Ct(R,Hr(void 0));return}else return Ke.add(R),Ct(R,Bo(q)),yt(_e,we,!1,{fetcherSubmission:q,preventScrollReset:Re});if(_r(we)){jt(R,O,we.error);return}}let vt=v.navigation.location||v.location,st=lo(e.history,vt,be.signal),Pt=s.activeRoutes,Nt=v.navigation.state!=="idle"?kr(Pt,v.navigation.location,l,!1,s.branches):v.matches;Ae(Nt,"Didn't find any matches after fetcher action");let hr=++Oe;ye.set(R,hr);let{dsMatches:kt,revalidatingFetchers:ir}=td(st,J,a,i,e.history,v,Nt,q,vt,n,!1,Y,ce,ae,me,Ke,Pt,l,e.patchRoutesOnNavigation!=null,s.branches,[Fe.route.id,we],fe),mn=Bo(q,we.data),Zt=new Map(v.fetchers);Zt.set(R,mn),ir.filter(G=>G.key!==R).forEach(G=>{let K=G.key,X=Zt.get(K),re=Bo(void 0,X?X.data:void 0);Zt.set(K,re),ar(K),G.controller&&he.set(K,G.controller)}),et({fetchers:Zt});let Dr=()=>ir.forEach(G=>ar(G.key));be.signal.addEventListener("abort",Dr);let{loaderResults:$r,fetcherResults:g}=await or(kt,ir,st,vt,J);if(be.signal.aborted)return;be.signal.removeEventListener("abort",Dr),ye.delete(R),he.delete(R),ir.forEach(G=>he.delete(G.key));let E=v.fetchers.has(R),m=G=>{if(!E)return G;let K=new Map(G.fetchers);return K.set(R,Hr(we.data)),{...G,fetchers:K}},I=Ua($r);if(I)return v=m(v),yt(st,I.result,!1,{preventScrollReset:Re});if(I=Ua(g),I)return Ke.add(I.key),v=m(v),yt(st,I.result,!1,{preventScrollReset:Re});let N=new Map(v.fetchers);E&&N.set(R,Hr(we.data));let{loaderData:w,errors:H}=ld(v,Nt,$r,void 0,ir,g,N);Ur(hr,N),v.navigation.state==="loading"&&hr>Ce?(Ae($,"Expected pending action"),te&&te.abort(),Le(v.navigation.location,{matches:Nt,loaderData:w,errors:H,fetchers:N})):(et({errors:H,loaderData:cd(v.loaderData,w,Nt,H),fetchers:N}),Y=!1)}async function At(R,O,U,j,J,ue,le,Re,q){let fe=v.fetchers.get(R);Ct(R,Bo(q,fe?fe.data:void 0),{flushSync:le});let Se=new AbortController,be=lo(e.history,U,Se.signal);if(ue){let we=await fr(j,new URL(be.url).pathname,be.signal,R);if(we.type==="aborted")return;if(we.type==="error"){jt(R,O,we.error,{flushSync:le});return}else if(we.matches)j=we.matches;else{jt(R,O,Tr(404,{pathname:U}),{flushSync:le});return}}let _e=ei(j,U);he.set(R,Se);let Fe=Oe,at=_o(a,i,be,U,j,_e,n,J),it=await Qe(be,U,at,J,R),Ge=it[_e.route.id];if(!Ge){for(let we of j)if(it[we.route.id]){Ge=it[we.route.id];break}}if(he.get(R)===Se&&he.delete(R),!be.signal.aborted){if(ae.has(R)){Ct(R,Hr(void 0));return}if(Gn(Ge))if(Ce>Fe){Ct(R,Hr(void 0));return}else{Ke.add(R),await yt(be,Ge,!1,{preventScrollReset:Re});return}if(_r(Ge)){jt(R,O,Ge.error);return}Ct(R,Hr(Ge.data))}}async function yt(R,O,U,{submission:j,fetcherSubmission:J,preventScrollReset:ue,replace:le}={}){U||(W==null||W.resolve(),W=null),O.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let Re=O.response.headers.get("Location");Ae(Re,"Expected a Location header on the redirect Response");
1285let q=Re,fe=new URL(R.url);Re=id(Re,fe,l,e.history),mo(q,Re,fe,"allow-explicit");let Se=ua(v.location,Re,{_isRedirect:!0});if(r){let Ge=!1;if(O.response.headers.has("X-Remix-Reload-Document"))Ge=!0;else if(Ml(Re)){const we=Ip(t,Re,!0);Ge=we.origin!==t.location.origin||ur(we.pathname,l)==null}if(Ge){le?t.location.replace(Re):t.location.assign(Re);return}}te=null;let be=le===!0||O.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:_e,formAction:Fe,formEncType:at}=v.navigation;!j&&!J&&_e&&Fe&&at&&(j=fd(v.navigation));let it=j||J;if(uA.has(O.response.status)&&it&&Yt(it.formMethod))await ct(be,Se,{submission:{...it,formAction:Re},preventScrollReset:ue||oe,enableViewTransition:U?se:void 0});else{let Ge=Ss(Se,[],be,j);await ct(be,Se,{overrideNavigation:Ge,fetcherSubmission:J,preventScrollReset:ue||oe,enableViewTransition:U?se:void 0})}}async function Qe(R,O,U,j,J){var Re;let ue,le={};try{ue=await TA(c,R,O,U,J,j,!1)}catch(q){return U.filter(fe=>fe.shouldLoad).forEach(fe=>{le[fe.route.id]={type:"error",error:q}}),le}if(R.signal.aborted)return le;if(!Yt(R.method))for(let q of U){if(((Re=ue[q.route.id])==null?void 0:Re.type)==="error")break;!ue.hasOwnProperty(q.route.id)&&!v.loaderData.hasOwnProperty(q.route.id)&&(!v.errors||!v.errors.hasOwnProperty(q.route.id))&&q.shouldCallHandler()&&(ue[q.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${q.route.id}`)})}for(let[q,fe]of Object.entries(ue))if(kA(fe)){let Se=fe.result;le[q]={type:"redirect",response:bA(Se,R,q,U,l)}}else le[q]=await SA(fe);return le}async function or(R,O,U,j,J){let ue=Qe(U,j,R,J,null),le=Promise.all(O.map(async fe=>{if(fe.matches&&fe.match&&fe.request&&fe.controller){let be=(await Qe(fe.request,fe.path,fe.matches,J,fe.key))[fe.match.route.id];return{[fe.key]:be}}else return Promise.resolve({[fe.key]:{type:"error",error:Tr(404,{pathname:fe.path})}})})),Re=await ue,q=(await le).reduce((fe,Se)=>Object.assign(fe,Se),{});return{loaderResults:Re,fetcherResults:q}}function Jt(){Y=!0,me.forEach((R,O)=>{he.has(O)&&ce.add(O),ar(O)})}function Ct(R,O,U={}){let j=new Map(v.fetchers);j.set(R,O),et({fetchers:j},{flushSync:(U&&U.flushSync)===!0})}function jt(R,O,U,j={}){let J=bn(v.matches,O),ue=new Map(v.fetchers);wr(ue,R),et({errors:{[J.route.id]:U},fetchers:ue},{flushSync:(j&&j.flushSync)===!0})}function Ar(R){return ne.set(R,(ne.get(R)||0)+1),ae.has(R)&&ae.delete(R),v.fetchers.get(R)||dA}function qr(R,O){ar(R,O==null?void 0:O.reason),Ct(R,Hr(null))}function wr(R,O){let U=v.fetchers.get(O);he.has(O)&&!(U&&U.state==="loading"&&ye.has(O))&&ar(O),me.delete(O),ye.delete(O),Ke.delete(O),ae.delete(O),ce.delete(O),R.delete(O)}function hn(R){let O=(ne.get(R)||0)-1;O<=0?(ne.delete(R),ae.add(R)):ne.set(R,O),et({fetchers:new Map(v.fetchers)})}function ar(R,O){let U=he.get(R);U&&(U.abort(O),he.delete(R))}function kn(R,O){for(let U of R){let j=O.get(U);Ae(j,`Expected fetcher: ${U}`);let J=Hr(j.data);O.set(U,J)}}function Pr(R){let O=[],U=!1;for(let j of Ke){let J=R.get(j);Ae(J,`Expected fetcher: ${j}`),J.state==="loading"&&(Ke.delete(j),O.push(j),U=!0)}return kn(O,R),U}function Ur(R,O){let U=[];for(let[j,J]of ye)if(J<R){let ue=O.get(j);Ae(ue,`Expected fetcher: ${j}`),ue.state==="loading"&&(ar(j),ye.delete(j),U.push(j))}return kn(U,O),U.length>0}function Br(R,O){let U=v.blockers.get(R)||ao;return Me.get(R)!==O&&Me.set(R,O),U}function Et(R){v.blockers.delete(R),Me.delete(R)}function Fr(R,O){let U=v.blockers.get(R)||ao;Ae(U.state==="unblocked"&&O.state==="blocked"||U.state==="blocked"&&O.state==="blocked"||U.state==="blocked"&&O.state==="proceeding"||U.state==="blocked"&&O.state==="unblocked"||U.state==="proceeding"&&O.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${O.state}`);let j=new Map(v.blockers);j.set(R,O),et({blockers:j})}function xn({currentLocation:R,nextLocation:O,historyAction:U}){if(Me.size===0)return;Me.size>1&&_t(!1,"A router only supports one blocker at a time");let j=Array.from(Me.entries()),[J,ue]=j[j.length-1],le=v.blockers.get(J);if(!(le&&le.state==="proceeding")&&ue({currentLocation:R,nextLocation:O,historyAction:U}))return J}function Qr(R){let O=Tr(404,{pathname:R}),U=s.activeRoutes,{matches:j,route:J}=Pa(U);return{notFoundMatches:j,route:J,error:O}}function Mn(R,O,U){if(y=R,b=O,S=U||null,!A&&v.navigation===Rs){A=!0;let j=Xr(v.location,v.matches);j!=null&&et({restoreScrollPosition:j})}return()=>{y=null,b=null,S=null}}function Ln(R,O){return S&&S(R,O.map(j=>UO(j,v.loaderData)))||R.key}function pn(R,O){if(y&&b){let U=Ln(R,O);y[U]=b()}}function Xr(R,O){if(y){let U=Ln(R,O),j=y[U];if(typeof j=="number")return j}return null}function Lt(R,O,U){if(e.patchRoutesOnNavigation){let j=s.branches;if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:kr(O,U,l,!0,j)}}else return{active:!0,matches:kr(O,U,l,!0,j)||[]}}return{active:!1,matches:null}}async function fr(R,O,U,j){if(!e.patchRoutesOnNavigation)return{type:"success",matches:R};let J=R;for(;;){let ue=i;try{await e.patchRoutesOnNavigation({signal:U,path:O,matches:J,fetcherKey:j,patch:(fe,Se)=>{U.aborted||rd(fe,Se,s,ue,a,!1)}})}catch(fe){return{type:"error",error:fe,partialMatches:J}}if(U.aborted)return{type:"aborted"};let le=s.branches,Re=kr(s.activeRoutes,O,l,!1,le),q=null;if(Re){if(Object.keys(Re[0].params).length===0)return{type:"success",matches:Re};if(q=kr(s.activeRoutes,O,l,!0,le),!(q&&J.length<q.length&&gn(J,q.slice(0,J.length))))return{type:"success",matches:Re}}if(q||(q=kr(s.activeRoutes,O,l,!0,le)),!q||gn(J,q))return{type:"success",matches:null};J=q}}function gn(R,O){return R.length===O.length&&R.every((U,j)=>U.route.id===O[j].route.id)}function Pn(R){i={},s.setHmrRoutes(da(R,a,void 0,i))}function Io(R,O,U=!1){rd(R,O,s,i,a,U),s.hasHMRRoutes||et({})}return M={get basename(){return l},get future(){return u},get state(){return v},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return i},get window(){return t},initialize:Ot,subscribe:$e,enableScrollRestoration:Mn,navigate:Ne,fetch:Xt,revalidate:Be,createHref:R=>e.history.createHref(R),createURL:R=>e.history.createURL(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Ar,resetFetcher:qr,deleteFetcher:hn,dispose:nr,getBlocker:Br,deleteBlocker:Et,patchRoutes:Io,_internalFetchControllers:he,_internalSetRoutes:Pn,_internalSetStateDoNotUseOrYouWillBreakYourApp(R){et(R)}},e.instrumentations&&(M=tA(M,e.instrumentations.map(R=>
1285R.router).filter(Boolean))),M}function gA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function al(e,t,r,n,o,a){let i,s;if(o){i=[];for(let c of t)if(i.push(c),c.route.id===o){s=c;break}}else i=t,s=t[t.length-1];let l=Ea(n||".",ji(i),ur(e.pathname,r)||e.pathname,a==="path");if(n==null&&(l.search=e.search,l.hash=e.hash),(n==null||n===""||n===".")&&s){let c=Fl(l.search);if(s.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&c){let u=new URLSearchParams(l.search),d=u.getAll("index");u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let h=u.toString();l.search=h?`?${h}`:""}}return r!=="/"&&(l.pathname=YO({basename:r,pathname:l.pathname})),rr(l)}function ed(e,t,r){if(!r||!gA(r))return{path:t};if(r.formMethod&&!LA(r.formMethod))return{path:t,error:Tr(405,{method:r.formMethod})};let n=()=>({path:t,error:Tr(400,{type:"invalid-body"})}),a=(r.formMethod||"get").toUpperCase(),i=Yp(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Yt(a))return n();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,[p,y])=>`${h}${p}=${y}
1286`,""):String(r.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!Yt(a))return n();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch(d){return n()}}}Ae(typeof FormData=="function","FormData is not available in this environment");let s,l;if(r.formData)s=ll(r.formData),l=r.formData;else if(r.body instanceof FormData)s=ll(r.body),l=r.body;else if(r.body instanceof URLSearchParams)s=r.body,l=sd(s);else if(r.body==null)s=new URLSearchParams,l=new FormData;else try{s=new URLSearchParams(r.body),l=sd(s)}catch(d){return n()}let c={formMethod:a,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Yt(c.formMethod))return{path:t,submission:c};let u=Lr(t);return e&&u.search&&Fl(u.search)&&s.append("index",""),u.search=`?${s}`,{path:rr(u),submission:c}}function td(e,t,r,n,o,a,i,s,l,c,u,d,h,p,y,S,b,A,x,k,B,C){var de;let P=B?_r(B[1])?B[1].error:B[1].data:void 0,M=o.createURL(a.location),v=o.createURL(l),$;if(u&&a.errors){let Y=Object.keys(a.errors)[0];$=i.findIndex(ce=>ce.route.id===Y)}else if(B&&_r(B[1])){let Y=B[0];$=i.findIndex(ce=>ce.route.id===Y)-1}let W=B?B[1].statusCode:void 0,oe=W&&W>=400,te={currentUrl:M,currentParams:((de=a.matches[0])==null?void 0:de.params)||{},nextUrl:v,nextParams:i[0].params,...s,actionResult:P,actionStatus:W},se=Ta(i),ie=i.map((Y,ce)=>{let{route:he}=Y,Oe=null;if($!=null&&ce>$)Oe=!1;else if(he.lazy)Oe=!0;else if(!Ul(he))Oe=!1;else if(u){let{shouldLoad:me}=Gp(he,a.loaderData,a.errors);Oe=me}else mA(a.loaderData,a.matches[ce],Y)&&(Oe=!0);if(Oe!==null)return il(r,n,e,l,se,Y,c,t,Oe);let Ce=!1;typeof C=="boolean"?Ce=C:oe?Ce=!1:(d||M.pathname+M.search===v.pathname+v.search||M.search!==v.search||_A(a.matches[ce],Y))&&(Ce=!0);let ye={...te,defaultShouldRevalidate:Ce},Ke=ea(Y,ye);return il(r,n,e,l,se,Y,c,t,Ke,ye,C)}),ee=[];return y.forEach((Y,ce)=>{if(u||!i.some(ae=>ae.route.id===Y.routeId)||p.has(ce))return;let he=a.fetchers.get(ce),Oe=he&&he.state!=="idle"&&he.data===void 0,Ce=kr(b,Y.path,A!=null?A:"/",!1,k);if(!Ce){if(x&&Oe)return;ee.push({key:ce,routeId:Y.routeId,path:Y.path,matches:null,match:null,request:null,controller:null});return}if(S.has(ce))return;let ye=ei(Ce,Y.path),Ke=new AbortController,me=lo(o,Y.path,Ke.signal),ne=null;if(h.has(ce))h.delete(ce),ne=_o(r,n,me,Y.path,Ce,ye,c,t);else if(Oe)d&&(ne=_o(r,n,me,Y.path,Ce,ye,c,t));else{let ae;typeof C=="boolean"?ae=C:oe?ae=!1:ae=d;let Me={...te,defaultShouldRevalidate:ae};ea(ye,Me)&&(ne=_o(r,n,me,Y.path,Ce,ye,c,t,Me))}ne&&ee.push({key:ce,routeId:Y.routeId,path:Y.path,matches:ne,match:ye,request:me,controller:Ke})}),{dsMatches:ie,revalidatingFetchers:ee}}function Ul(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Gp(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Ul(e))return{shouldLoad:!1,renderFallback:!1};let n=t!=null&&e.id in t,o=r!=null&&r[e.id]!==void 0;if(!n&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!n};let a=!n&&!o;return{shouldLoad:a,renderFallback:a}}function mA(e,t,r){let n=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return n||o}function _A(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ea(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function rd(e,t,r,n,o,a){let i;if(e){let c=n[e];Ae(c,`No route found to patch children into: routeId = ${e}`),c.children||(c.children=[]),i=c.children}else i=r.activeRoutes;let s=[],l=[];
1286if(t.forEach(c=>{let u=i.find(d=>Hp(c,d));u?l.push({existingRoute:u,newRoute:c}):s.push(c)}),s.length>0){let c=da(s,o,[e||"_","patch",String((i==null?void 0:i.length)||"0")],n);i.push(...c)}if(a&&l.length>0)for(let c=0;c<l.length;c++){let{existingRoute:u,newRoute:d}=l[c],h=u,[p]=da([d],o,[],{},!0);Object.assign(h,{element:p.element?p.element:h.element,errorElement:p.errorElement?p.errorElement:h.errorElement,hydrateFallbackElement:p.hydrateFallbackElement?p.hydrateFallbackElement:h.hydrateFallbackElement})}r.hasHMRRoutes||r.setRoutes([...r.activeRoutes])}function Hp(e,t){var r,n;return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:(n=(r=e.children)==null?void 0:r.every((o,a)=>{var i;return(i=t.children)==null?void 0:i.some(s=>Hp(o,s))}))!=null?n:!1:!1}var nd=new WeakMap,Wp=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let o=r[t.id];if(Ae(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=nd.get(o);i||(i={},nd.set(o,i));let s=i[e];if(s)return s;let l=(async()=>{let c=xO(e),d=o[e]!==void 0&&e!=="hasErrorBoundary";if(c)_t(!c,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(d)_t(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let h=await a();h!=null&&(Object.assign(o,{[e]:h}),Object.assign(o,n(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(h=>h===void 0)&&(o.lazy=void 0))})();return i[e]=l,l},od=new WeakMap;function yA(e,t,r,n,o){let a=r[e.id];if(Ae(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let u=od.get(a);if(u)return{lazyRoutePromise:u,lazyHandlerPromise:u};let d=(async()=>{Ae(typeof e.lazy=="function","No lazy route function found");let h=await e.lazy(),p={};for(let y in h){let S=h[y];if(S===void 0)continue;let b=LO(y),x=a[y]!==void 0&&y!=="hasErrorBoundary";b?_t(!b,"Route property "+y+" is not a supported property to be returned from a lazy route function. This property will be ignored."):x?_t(!x,`Route "${a.id}" has a static property "${y}" defined but its lazy function is also returning a value for this property. The lazy route property "${y}" will be ignored.`):p[y]=S}Object.assign(a,p),Object.assign(a,{...n(a),lazy:void 0})})();return od.set(a,d),d.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:d}}let i=Object.keys(e.lazy),s=[],l;for(let u of i){if(o&&o.includes(u))continue;let d=Wp({key:u,route:e,manifest:r,mapRouteProperties:n});d&&(s.push(d),u===t&&(l=d))}let c=s.length>0?Promise.all(s).then(()=>{}):void 0;return c==null||c.catch(()=>{}),l==null||l.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function ad(e){let t=e.matches.filter(o=>o.shouldLoad),r={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{r[t[a].route.id]=o}),r}async function EA(e){return e.matches.some(t=>t.route.middleware)?jp(e,()=>ad(e)):ad(e)}function jp(e,t){return vA(e,t,n=>{if(MA(n))throw n;return n},DA,r);function r(n,o,a){if(a)return Promise.resolve(Object.assign(a.value,{[o]:{type:"error",result:n}}));{let{matches:i}=e,s=Math.min(Math.max(i.findIndex(c=>c.route.id===o),0),Math.max(i.findIndex(c=>c.shouldCallHandler()),0)),l=bn(i,i[s].route.id).route.id;return Promise.resolve({[l]:{type:"error",result:n}})}}}async function vA(e,t,r,n,o){let{matches:a,...i}=e,s=a.flatMap(c=>c.route.middleware?c.route.middleware.map(u=>[c.route.id,u]):[]);return await zp(i,s,t,r,n,o)}async function zp(e,t,r,n,o,a,i=0){var p;let{request:s}=e;if(s.signal.aborted)throw(p=s.signal.reason)!=null?p:new Error(`Request aborted: ${s.method} ${s.url}`);let l=t[i];if(!l)return await r();let[c,u]=l,d,h=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");try{return d={value:await zp(e,t,r,n,o,a,i+1)},d.value}catch(y){return d={value:await a(y,c,d)},d.value}};try{let y=await u(e,h),S=y!=null?n(y):void 0;return o(S)?S:d?S!=null?S:d.value:(d={value:await h()},d.value)}catch(y){return await a(y,c,d)}}function Vp(e,t,r,n,o){let a=Wp({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=yA(n.route,Yt(r.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function il(e,t,r,n,o,a,i,s,l,c=null,u){let d=!1,h=Vp(e,t,r,a,i);return{...a,_lazyPromises:h,shouldLoad:l,shouldRevalidateArgs:c,shouldCallHandler(p){return d=!0,c?typeof u=="boolean"?ea(a,{...c,defaultShouldRevalidate:u}):typeof p=="boolean"?ea(a,{...c,defaultShouldRevalidate:p}):ea(a,c):l},resolve(p){let{lazy:y,loader:S,middleware:b}=a.route,A=d||l||p&&!Yt(r.method)&&(y||S),x=b&&b.length>0&&!S&&!y;return A&&(Yt(r.method)||!x)?CA({request:r,path:n,pattern:o,match:a,lazyHandlerPromise:h==null?void 0:h.handler,lazyRoutePromise:h==null?void 0:h.route,handlerOverride:p,scopedContext:s}):Promise.resolve({type:"data",result:void 0})}}}function _o(e,t,r,n,o,a,i,s,l=null){return o.map(c=>c.route.id!==a.route.id?{...c,shouldLoad:!1,shouldRevalidateArgs:l,shouldCallHandler:()=>!1,_lazyPromises:Vp(e,t,r,c,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:il(e,t,r,n,Ta(o),c,i,s,!0,l))}async function TA(e,t,r,n,o,a,i){n.some(u=>{var d;return(d=u._lazyPromises)==null?void 0:d.middleware})&&await Promise.all(n.map(u=>{var d;return(d=u._lazyPromises)==null?void 0:d.middleware}));let s={request:t,url:Kp(t,r),pattern:Ta(n),params:n[0].params,context:a,matches:n},c=await e({...s,fetcherKey:o,runClientMiddleware:u=>{let d=s;return jp(d,()=>u({...d,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(u=>{var d,h;return[(d=u._lazyPromises)==null?void 0:d.handler,(h=u._lazyPromises)==null?void 0:h.route]}))}catch(u){}return c}async function CA({request:e,path:t,pattern:r,match:n,lazyHandlerPromise:o,lazyRoutePromise:a,handlerOverride:i,scopedContext:s}){let l,c,u=Yt(e.method),d=u?"action":"loader",h=p=>{let y,S=new Promise((x,k)=>y=k);c=()=>y(),e.signal.addEventListener("abort",c);let b=x=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${n.route.id}]`)):p({request:e,url:Kp(e,t),pattern:r,params:n.params,context:s},...x!==void 0?[x]:[]),A=(async()=>{try{return{type:"data",result:await(i?i(k=>b(k)):b())}}catch(x){return{type:"error",result:x}}})();return Promise.race([A,S])};try{let p=u?n.route.action:n.route.loader;if(o||a)if(p){let y,[S]=await Promise.all([h(p).catch(b=>{y=b}),o,a]);if(y!==void 0)throw y;l=S}else{await o;let y=u?n.route.action:n.route.loader;if(y)[l]=await Promise.all([h(y),a]);else if(d==="action"){let S=new URL(e.url),b=S.pathname+S.search;throw Tr(405,{method:e.method,pathname:b,routeId:n.route.id})}else return{type:"data",result:void 0}}
1286else if(p)l=await h(p);else{let y=new URL(e.url),S=y.pathname+y.search;throw Tr(404,{pathname:S})}}catch(p){return{type:"error",result:p}}finally{c&&e.signal.removeEventListener("abort",c)}return l}async function RA(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function SA(e){var n,o,a,i,s;let{result:t,type:r}=e;if(Bl(t)){let l;try{l=await RA(t)}catch(c){return{type:"error",error:c}}return r==="error"?{type:"error",error:new va(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:"data",data:l,statusCode:t.status,headers:t.headers}}return r==="error"?dd(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(n=t.init)==null?void 0:n.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:wA(t),statusCode:ha(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ha(t)?t.status:void 0}:dd(t)?{type:"data",data:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function bA(e,t,r,n,o){let a=e.headers.get("Location");if(Ae(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ml(a)){let i=n.slice(0,n.findIndex(s=>s.route.id===r)+1);a=al(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}var IA=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function sl(e){try{return IA.includes(new URL(e).protocol)}catch(t){return!1}}function id(e,t,r,n){if(Ml(e)){let o=e,a=Wi.test(o)?new URL(bp(o,t.protocol)):new URL(o);if(sl(a.toString()))throw new Error("Invalid redirect location");let i=ur(a.pathname,r)!=null;if(a.origin===t.origin&&i)return Ll(a.pathname)+a.search+a.hash}try{let o=n.createURL(e);if(sl(o.toString()))throw new Error("Invalid redirect location")}catch(o){}return e}function lo(e,t,r,n){let o=e.createURL(Yp(t)).toString(),a={signal:r};if(n&&Yt(n.formMethod)){let{formMethod:i,formEncType:s}=n;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(n.json)):s==="text/plain"?a.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?a.body=ll(n.formData):a.body=n.formData}return new Request(o,a)}function Kp(e,t){let r=new URL(e.url),n=typeof t=="string"?Lr(t):t;if(r.pathname=n.pathname||"/",n.search){let o=new URLSearchParams(n.search),a=o.getAll("index");o.delete("index");for(let i of a.filter(Boolean))o.append("index",i);r.search=o.size?`?${o.toString()}`:""}else r.search="";return r.hash=n.hash||"",r}function ll(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function sd(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function OA(e,t,r,n=!1,o=!1){let a={},i=null,s,l=!1,c={},u=r&&_r(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let h=d.route.id,p=t[h];if(Ae(!Gn(p),"Cannot handle redirect results in processLoaderData"),_r(p)){let y=p.error;if(u!==void 0&&(y=u,u=void 0),i=i||{},o)i[h]=y;else{let S=bn(e,h);i[S.route.id]==null&&(i[S.route.id]=y)}n||(a[h]=$p),l||(l=!0,s=ha(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else a[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)}),u!==void 0&&r&&(i={[r[0]]:u},r[2]&&(a[r[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:c}}function ld(e,t,r,n,o,a,i){let{loaderData:s,errors:l}=OA(t,r,n);return o.filter(c=>!c.matches||c.matches.some(u=>u.shouldLoad)).forEach(c=>{let{key:u,match:d,controller:h}=c;if(h&&h.signal.aborted)return;let p=a[u];if(Ae(p,"Did not find corresponding fetcher result"),_r(p)){let y=bn(e.matches,d==null?void 0:d.route.id);l&&l[y.route.id]||(l={...l,[y.route.id]:p.error}),i.delete(u)}else if(Gn(p))Ae(!1,"Unhandled fetcher revalidation redirect");else{let y=Hr(p.data);i.set(u,y)}}),{loaderData:s,errors:l}}function cd(e,t,r,n){let o=Object.entries(t).filter(([,a])=>a!==$p).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of r){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),n&&n.hasOwnProperty(i))break}return o}function ud(e){return e?_r(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function bn(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Pa(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Tr(e,{pathname:t,routeId:r,method:n,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${r}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new va(e||500,i,new Error(s),!0)}function Ua(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,o]=t[r];
1286if(Gn(o))return{key:n,result:o}}}function Yp(e){let t=typeof e=="string"?Lr(e):e;return rr({...t,hash:""})}function AA(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wA(e){var t,r,n,o;return new va((r=(t=e.init)==null?void 0:t.status)!=null?r:500,(o=(n=e.init)==null?void 0:n.statusText)!=null?o:"Internal Server Error",e.data)}function DA(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&NA(r))}function NA(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function kA(e){return Bl(e.result)&&Bp.has(e.result.status)}function _r(e){return e.type==="error"}function Gn(e){return(e&&e.type)==="redirect"}function dd(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Bl(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body!="undefined"}function xA(e){return Bp.has(e)}function MA(e){return Bl(e)&&xA(e.status)&&e.headers.has("Location")}function LA(e){return cA.has(e.toUpperCase())}function Yt(e){return sA.has(e.toUpperCase())}function Fl(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ei(e,t){let r=typeof t=="string"?Lr(t).search:t.search;if(e[e.length-1].route.index&&Fl(r||""))return e[e.length-1];let n=xp(e);return n[n.length-1]}function fd(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:a,json:i}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Ss(e,t,r,n){return n?{state:"loading",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,matches:t,historyAction:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function PA(e,t,r,n){return{state:"submitting",location:e,matches:t,historyAction:r,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function Bo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function UA(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Hr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function BA(e,t){try{let r=e.sessionStorage.getItem(Fp);if(r){let n=JSON.parse(r);for(let[o,a]of Object.entries(n||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch(r){}}function FA(e,t){if(t.size>0){let r={};for(let[n,o]of t)r[n]=[...o];try{e.sessionStorage.setItem(Fp,JSON.stringify(r))}catch(n){_t(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function hd(){let e,t,r=new Promise((n,o)=>{e=async a=>{n(a);try{await r}catch(i){}},t=async a=>{o(a);try{await r}catch(i){}}});return{promise:r,resolve:e,reject:t}}var Yn=f.createContext(null);Yn.displayName="DataRouter";var Ca=f.createContext(null);Ca.displayName="DataRouterState";var qp=f.createContext(!1);function Qp(){return f.useContext(qp)}var $l=f.createContext({isTransitioning:!1});$l.displayName="ViewTransition";var Xp=f.createContext(new Map);Xp.displayName="Fetchers";var $A=f.createContext(null);$A.displayName="Await";var Er=f.createContext(null);Er.displayName="Navigation";var Ra=f.createContext(null);Ra.displayName="Location";var Ir=f.createContext({outlet:null,matches:[],isDataRoute:!1});Ir.displayName="Route";var Gl=f.createContext(null);Gl.displayName="RouteError";var Jp="REACT_ROUTER_ERROR",GA="REDIRECT",HA="ROUTE_ERROR_RESPONSE";function WA(e){if(e.startsWith(`${Jp}:${GA}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="str
1286ing"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch(t){}}function jA(e){if(e.startsWith(`${Jp}:${HA}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new va(t.status,t.statusText,t.data)}catch(t){}}function zA(e,{relative:t}={}){Ae(qn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=f.useContext(Er),{hash:o,pathname:a,search:i}=Sa(e,{relative:t}),s=a;return r!=="/"&&(s=a==="/"?r:Rr([r,a])),n.createHref({pathname:s,search:i,hash:o})}function qn(){return f.useContext(Ra)!=null}function Or(){return Ae(qn(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(Ra).location}function sM(e){Ae(qn(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Or();return f.useMemo(()=>fa(e,kp(t)),[t,e])}var Zp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eg(e){f.useContext(Er).static||f.useLayoutEffect(e)}function Hl(){let{isDataRoute:e}=f.useContext(Ir);return e?iw():VA()}function VA(){Ae(qn(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(Yn),{basename:t,navigator:r}=f.useContext(Er),{matches:n}=f.useContext(Ir),{pathname:o}=Or(),a=JSON.stringify(ji(n)),i=f.useRef(!1);return eg(()=>{i.current=!0}),f.useCallback((l,c={})=>{if(_t(i.current,Zp),!i.current)return;if(typeof l=="number"){r.go(l);return}let u=Ea(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Rr([t,u.pathname])),mo(typeof l=="string"?l:rr(l),r.createHref(u),Pl(r),"reject"),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,a,o,e])}var KA=f.createContext(null);function YA(e){let t=f.useContext(Ir).outlet;return f.useMemo(()=>t&&f.createElement(KA.Provider,{value:e},t),[t,e])}function qA(){var r;let{matches:e}=f.useContext(Ir),t=e[e.length-1];return(r=t==null?void 0:t.params)!=null?r:{}}function Sa(e,{relative:t}={}){let{matches:r}=f.useContext(Ir),{pathname:n}=Or(),o=JSON.stringify(ji(r));return f.useMemo(()=>Ea(e,JSON.parse(o),n,t==="path"),[e,o,n,t])}function QA(e,t){return tg(e,t)}function tg(e,t,r){var b;Ae(qn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=f.useContext(Er),{matches:o}=f.useContext(Ir),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route;{let A=c&&c.path||"";og(s,!c||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1287
1288Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let u=Or(),d;if(t){let A=typeof t=="string"?Lr(t):t;Ae(l==="/"||((b=A.pathname)==null?void 0:b.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${A.pathname}" was given in the \`location\` prop.`),d=A}else d=u;let h=d.pathname||"/",p=h;if(l!=="/"){let A=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(A.length).join("/")}let y=r&&r.state.matches.length?r.state.matches.map(A=>Object.assign(A,{route:r.manifest[A.route.id]||A.route})):Op(e,{pathname:p});_t(c||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),_t(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=tw(y&&y.map(A=>Object.assign({},A,{params:Object.assign({}
1288,i,A.params),pathname:Rr([l,n.encodeLocation?n.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?l:Rr([l,n.encodeLocation?n.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,r);return t&&S?f.createElement(Ra.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},S):S}function XA(){let e=ow(),t=ha(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:a},"ErrorBoundary")," or"," ",f.createElement("code",{style:a},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:o},r):null,i)}var JA=f.createElement(XA,null),rg=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=jA(e.digest);r&&(e=r)}let t=e!==void 0?f.createElement(Ir.Provider,{value:this.props.routeContext},f.createElement(Gl.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?f.createElement(ZA,{error:e},t):t}};rg.contextType=qp;var bs=new WeakMap;function ZA({children:e,error:t}){let{basename:r,navigator:n}=f.useContext(Er);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=WA(t.digest);if(o){let a=bs.get(t);if(a)throw a;let i=Lp(o.location,r),s=i.absoluteURL||i.to;if(mo(o.location,s,Pl(n),"allow-explicit"),sl(s))throw new Error("Invalid redirect location");if(Mp&&!bs.get(t))if(i.isExternal||o.reloadDocument)window.location.href=s;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:o.replace}));throw bs.set(t,l),l}return f.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s}`})}}return e}function ew({routeContext:e,match:t,children:r}){let n=f.useContext(Yn);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Ir.Provider,{value:e},r)}function tw(e,t=[],r){let n=r==null?void 0:r.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);Ae(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let i=!1,s=-1;if(r&&n){i=n.renderFallback;for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=u),d.route.id){let{loaderData:h,errors:p}=n,y=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||y){r.isStatic&&(i=!0),s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}}let l=r==null?void 0:r.onError,c=n&&l?(u,d)=>{var h,p,y;l(u,{location:n.location,params:(y=(p=(h=n.matches)==null?void 0:h[0])==null?void 0:p.params)!=null?y:{},pattern:Ta(n.matches),errorInfo:d})}:void 0;return o.reduceRight((u,d,h)=>{let p,y=!1,S=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,S=d.route.errorElement||JA,i&&(s<0&&h===0?(og("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):s===h&&(y=!0,b=d.route.hydrateFallbackElement||null)));let A=t.concat(o.slice(0,h+1)),x=()=>{let k;return p?k=S:y?k=b:d.route.Component?k=f.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=u,f.createElement(ew,{match:d,routeC
1288ontext:{outlet:u,matches:A,isDataRoute:n!=null},children:k})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?f.createElement(rg,{location:n.location,revalidation:n.revalidation,component:S,error:p,children:x(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:c}):x()},null)}function Wl(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ng(e){let t=f.useContext(Yn);return Ae(t,Wl(e)),t}function jl(e){let t=f.useContext(Ca);return Ae(t,Wl(e)),t}function rw(e){let t=f.useContext(Ir);return Ae(t,Wl(e)),t}function zl(e){let t=rw(e),r=t.matches[t.matches.length-1];return Ae(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function nw(){return zl("useRouteId")}function lM(){let e=jl("useNavigation");return f.useMemo(()=>{let{matches:t,historyAction:r,...n}=e.navigation;return n},[e.navigation])}function ow(){var n;let e=f.useContext(Gl),t=jl("useRouteError"),r=zl("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}var aw=0;function cM(e){let{router:t,basename:r}=ng("useBlocker"),n=jl("useBlocker"),[o,a]=f.useState(""),i=f.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:c,historyAction:u}=s;return e({currentLocation:{...l,pathname:ur(l.pathname,r)||l.pathname},nextLocation:{...c,pathname:ur(c.pathname,r)||c.pathname},historyAction:u})},[r,e]);return f.useEffect(()=>{let s=String(++aw);return a(s),()=>t.deleteBlocker(s)},[t]),f.useEffect(()=>{o!==""&&t.getBlocker(o,i)},[t,o,i]),o&&n.blockers.has(o)?n.blockers.get(o):ao}function iw(){let{router:e}=ng("useNavigate"),t=zl("useNavigate"),r=f.useRef(!1);return eg(()=>{r.current=!0}),f.useCallback(async(o,a={})=>{_t(r.current,Zp),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var pd={};function og(e,t,r){!t&&!pd[e]&&(pd[e]=!0,_t(!1,r))}var gd={};function md(e,t){!e&&!gd[t]&&(gd[t]=!0,console.warn(t))}var sw="useOptimistic",_d=Gf[sw],lw=()=>{};function cw(e){return _d?_d(e):[e,lw]}function uw(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&_t(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:f.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&_t(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&_t(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:f.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var dw=["HydrateFallback","hydrateFallbackElement"],fw=class{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}};function dM({router:e,flushSync:t,onError:r,useTransitions:n}){n=Qp()||n;let[a,i]=f.useState(e.state),[s,l]=cw(a),[c,u]=f.useState(),[d,h]=f.useState({isTransitioning:!1}),[p,y]=f.useState(),[S,b]=f.useState(),[A,x]=f.useState(),k=f.useRef(new Map),B=f.useCallback((v,{deletedFetchers:$,newErrors:W,flushSync:oe,viewTransitionOpts:te})=>{W&&r&&Object.values(W).forEach(ie=>{var ee,de;return r(ie,{location:v.location,params:(de=(ee=v.matches[0])==null?void 0:ee.params)!=null?de:{},pattern:Ta(v.matches)})}),v.fetchers.forEach((ie,ee)=>{ie.data!==void 0&&k.current.set(ee,ie.data)}),$.forEach(ie=>k.current.delete(ie)),md(oe===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let se=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(md(te==null||se,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!te||!se){t&&oe?t(()=>i(v)):n===!1?i(v):f.startTransition(()=>{n===!0&&l(ie=>yd(ie,v)),i(v)});return}if(t&&oe){t(()=>{S&&(p==null||p.resolve(),S.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:te.currentLocation,nextLocation:te.nextLocation})});let ie=e.window.document.startViewTransition(()=>{t(()=>i(v))});ie.finished.finally(()=>{t(()=>{y(void 0),b(void 0),u(void 0),h({isTransitioning:!1})})}),t(()=>b(ie));return}S?(p==null||p.resolve(),S.skipTransition(),x({state:v,currentLocation:te.currentLocation,nextLocation:te.nextLocation})):(u(v),h({isTransitioning:!0,flushSync:!1,currentLocation:te.currentLocation,nextLocation:te.nextLocation}))},[e.window,t,S,p,n,l,r]);f.useLayoutEffect(()=>e.subscribe(B),[e,B]),f.useEffect(()=>{d.isTransitioning&&!d.flushSync&&y(new fw)},[d]),f.useEffect(()=>{if(p&&c&&e.window){let v=c,$=p.promise,W=e.window.document.startViewTransition(async()=>{n===!1?i(v):f.startTransition(()=>{n===!0&&l(oe=>yd(oe,v)),i(v)}),await $});W.finished.finally(()=>{y(void 0),b(void 0),u(void 0),h({isTransitioning:!1})}),b(W)}},[c,p,e.window,n,l]),f.useEffect(()=>{p&&c&&s.location.key===c.location.key&&p.resolve()},[p,S,s.location,c]),f.useEffect(()=>{!d.isTransitioning&&A&&(u(A.state),h({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}),x(void 0))},[d.isTransitioning,A]);let C=f.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:v=>e.navigate(v),push:(v,$,W)=>e.navigate(v,{state:$,preventScrollReset:W==null?void 0:W.preventScrollReset}),replace:(v,$,W)=>e.navigate(v,{replace:!0,state:$,preventScrollReset:W==null?void 0:W.preventScrollReset})}),[e]),P=e.basename||"/",M=f.useMemo(()=>({router:e,navigator:C,static:!1,basename:P,onError:r}),[e,C,P,r]);return f.createElement(f.Fragment,null,f.createElement(Yn.Provider,{value:M},f.createElement(Ca.Provider,{value:s},f.createElement(Xp.Provider,{value:k.current},f.createElement($l.Provider,{value:d},f.createElement(mw,{basename:P,location:s.location,navigationType:s.historyAction,navigator:C,useTransitions:n},f.createElement(hw,{routes:e.routes,manifest:e.manifest,future:e.future,state:s,isStatic:!1,onError:r})))))),null)}function yd(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var hw=f.memo(pw);function pw({routes:e,manifest:t,future:r,state:n,isStatic:o,onError:a}){return tg(e,void 0,{manifest:t,state:n,isStatic:o,onError:a})}function fM({to:e,replace:t,state:r,relative:n}){Ae(qn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:a}=f.useContext(Er);_t(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(Ir),{pathname:s}=Or(),l=Hl(),c=Ea(e,ji(i),s,n==="path");mo(typeof e=="string"?e:rr(e),a.createHref(c),Pl(a),"reject");let u=JSON.stringify(c);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:r,relative:n})},[l,u,n,t,r]),null}function hM(e){return YA(e.context)}function gw(e){Ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function mw({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:o,static:a=!1,useTransitions:i}){Ae(!qn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:s,navigator:o,static:a,useTransitions:i,future:{}}),[s,o,a,i]);typeof r=="string"&&(r=Lr(r));let{pathname:c="/",search:u="",hash:d="",state:h=null,key:p="default",mask:y}=r,S=f.useMemo(()=>{let b=ur(c,s);return b==null?null:{location:{pathname:b,search:u,hash:d,state:h,key:p,mask:y},navigationType:n}},[s,c,u,d,h,p,n,y]);
1288return _t(S!=null,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:f.createElement(Er.Provider,{value:l},f.createElement(Ra.Provider,{children:t,value:S}))}function pM({children:e,location:t}){return QA(Ri(e),t)}function Ri(e,t=[]){let r=[];return f.Children.forEach(e,(n,o)=>{if(!f.isValidElement(n))return;let a=[...t,o];if(n.type===f.Fragment){r.push.apply(r,Ri(n.props.children,a));return}Ae(n.type===gw,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ae(!n.props.index||!n.props.children,"An index route cannot have child routes.");let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=Ri(n.props.children,a)),r.push(i)}),r}var gM=Ri,ti="get",ri="application/x-www-form-urlencoded";function zi(e){return typeof HTMLElement!="undefined"&&e instanceof HTMLElement}function _w(e){return zi(e)&&e.tagName.toLowerCase()==="button"}function yw(e){return zi(e)&&e.tagName.toLowerCase()==="form"}function Ew(e){return zi(e)&&e.tagName.toLowerCase()==="input"}function vw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tw(e,t){return e.button===0&&(!t||t==="_self")&&!vw(e)}function cl(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function Cw(e,t){let r=cl(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(a=>{r.append(o,a)})}),r}var Ba=null;function Rw(){if(Ba===null)try{new FormData(document.createElement("form"),0),Ba=!1}catch(e){Ba=!0}return Ba}var Sw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Is(e){return e!=null&&!Sw.has(e)?(_t(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ri}"`),null):e}function bw(e,t){let r,n,o,a,i;if(yw(e)){let s=e.getAttribute("action");n=s?ur(s,t):null,r=e.getAttribute("method")||ti,o=Is(e.getAttribute("enctype"))||ri,a=new FormData(e)}else if(_w(e)||Ew(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(n=l?ur(l,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||ti,o=Is(e.getAttribute("formenctype"))||Is(s.getAttribute("enctype"))||ri,a=new FormData(s,e),!Rw()){let{name:c,type:u,value:d}=e;if(u==="image"){let h=c?`${c}.`:"";a.append(`${h}x`,"0"),a.append(`${h}y`,"0")}else c&&a.append(c,d)}}else{if(zi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ti,n=null,o=ri,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vl(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function ag(e,t,r,n){let o=typeof e=="string"?new URL(e,typeof window=="undefined"?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${n}`:o.pathname=`${o.pathname}.${n}`:o.pathname==="/"?o.pathname=`_root.${n}`:t&&ur(o.pathname,t)==="/"?o.pathname=`${Eo(t)}/_root.${n}`:o.pathname=`${Eo(o.pathname)}.${n}`,o}async function Iw(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
1288isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ow(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Aw(e,t,r){let n=await Promise.all(e.map(async o=>{let a=t.routes[o.route.id];if(a){let i=await Iw(a,r);return i.links?i.links():[]}return[]}));return kw(n.flat(1).filter(Ow).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Ed(e,t,r,n,o,a){let i=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,s=(l,c)=>{var u;return r[c].pathname!==l.pathname||((u=r[c].route.path)==null?void 0:u.endsWith("*"))&&r[c].params["*"]!==l.params["*"]};return a==="assets"?t.filter((l,c)=>i(l,c)||s(l,c)):a==="data"?t.filter((l,c)=>{var d;let u=n.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(i(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((d=r[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ww(e,t,{includeHydrateFallback:r}={}){return Dw(e.map(n=>{let o=t.routes[n.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function Dw(e){return[...new Set(e)]}function Nw(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function kw(e,t){let r=new Set;return new Set(t),e.reduce((n,o)=>{let a=JSON.stringify(Nw(o));return r.has(a)||(r.add(a),n.push({key:a,link:o})),n},[])}function Kl(){let e=f.useContext(Yn);return Vl(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xw(){let e=f.useContext(Ca);return Vl(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yl=f.createContext(void 0);Yl.displayName="FrameworkContext";function Vi(){let e=f.useContext(Yl);return Vl(e,"You must render this element inside a <HydratedRouter> element"),e}function Mw(e,t){let r=f.useContext(Yl),[n,o]=f.useState(!1),[a,i]=f.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,h=f.useRef(null);f.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let S=A=>{A.forEach(x=>{i(x.isIntersecting)})},b=new IntersectionObserver(S,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),f.useEffect(()=>{if(n){let S=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(S)}}},[n]);let p=()=>{o(!0)},y=()=>{o(!1),i(!1)};return r?e!=="intent"?[a,h,{}]:[a,h,{onFocus:Fo(s,p),onBlur:Fo(l,y),onMouseEnter:Fo(c,p),onMouseLeave:Fo(u,y),onTouchStart:Fo(d,p)}]:[!1,h,{}]}function Fo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Lw({page:e,...t}){let r=Qp(),{nonce:n}=Vi(),{router:o}=Kl(),a=f.useMemo(()=>Op(o.routes,e,o.basename),[o.routes,e,o.basename]);return a?(t.nonce==null&&n&&(t={...t,nonce:n}),r?f.createElement(Uw,{page:e,matches:a,...t}):f.createElement(Bw,{page:e,matches:a,...t})):null}function Pw(e){let{manifest:t,routeModules:r}=Vi(),[n,o]=f.useState([]);return f.useEffect(()=>{let a=!1;return Aw(e,t,r).then(i=>{a||o(i)}),()=>{a=!0}},[e,t,r]),n}function Uw({page:e,matches:t,...r}){let n=Or(),{future:o}=Vi(),{basename:a}=Kl(),i=f.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let s=ag(e,a,o.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let u of t)typeof u.route.shouldRevalidate=="function"?l=!0:c.push(u.route.id);return l&&c.length>0&&s.searchParams.set("_routes",c.join(",")),[s.pathname+s.search]},[a,o.v8_trailingSlashAwareDataRequests,e,n,t]);return f.createElement(f.Fragment,null,i.map(s=>f.createElement("link",{key:s,rel:"prefetch",as:"fetch",href:s,...r})))}function Bw({page:e,matches:t,...r}){let n=Or(),{future:o,manifest:a,routeModules:i}=Vi(),{basename:s}=Kl(),{loaderData:l,matches:c}=xw(),u=f.useMemo(()=>Ed(e,t,c,a,n,"data"),[e,t,c,a,n]),d=f.useMemo(()=>Ed(e,t,c,a,n,"assets"),[e,t,c,a,n]),h=f.useMemo(()=>
1288{if(e===n.pathname+n.search+n.hash)return[];let S=new Set,b=!1;if(t.forEach(x=>{var B;let k=a.routes[x.route.id];!k||!k.hasLoader||(!u.some(C=>C.route.id===x.route.id)&&x.route.id in l&&((B=i[x.route.id])!=null&&B.shouldRevalidate)||k.hasClientLoader?b=!0:S.add(x.route.id))}),S.size===0)return[];let A=ag(e,s,o.v8_trailingSlashAwareDataRequests,"data");return b&&S.size>0&&A.searchParams.set("_routes",t.filter(x=>S.has(x.route.id)).map(x=>x.route.id).join(",")),[A.pathname+A.search]},[s,o.v8_trailingSlashAwareDataRequests,l,n,a,u,t,e,i]),p=f.useMemo(()=>ww(d,a),[d,a]),y=Pw(d);return f.createElement(f.Fragment,null,h.map(S=>f.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),p.map(S=>f.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),y.map(({key:S,link:b})=>{var A;return f.createElement("link",{key:S,nonce:r.nonce,...b,crossOrigin:(A=b.crossOrigin)!=null?A:r.crossOrigin})}))}function Fw(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var $w=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{$w&&(window.__reactRouterVersion="7.18.4")}catch(e){}function mM(e,t){return pA({basename:t==null?void 0:t.basename,getContext:t==null?void 0:t.getContext,future:t==null?void 0:t.future,history:wO({window:t==null?void 0:t.window}),hydrationData:Gw(),routes:e,mapRouteProperties:uw,hydrationRouteProperties:dw,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window,instrumentations:t==null?void 0:t.instrumentations}).initialize()}function Gw(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Hw(e.errors)}),e}function Hw(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new va(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(typeof o.__subType=="string"&&ZO.includes(o.__subType)){let a=window[o.__subType];if(typeof a=="function")try{let i=new a(o.message);i.stack="",r[n]=i}catch(i){}}if(r[n]==null){let a=new Error(o.message);a.stack="",r[n]=a}}else r[n]=o;return r}var ig=f.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:o,reloadDocument:a,replace:i,mask:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:p,...y},S){let{basename:b,navigator:A,useTransitions:x}=f.useContext(Er),k=typeof u=="string"&&Hi.test(u),B=Lp(u,b);u=B.to;let C=zA(u,{relative:o}),P=Or(),M=null;if(s){let ee=Ea(s,[],P.mask?P.mask.pathname:"/",!0);b!=="/"&&(ee.pathname=ee.pathname==="/"?b:Rr([b,ee.pathname])),M=A.createHref(ee)}let[v,$,W]=Mw(n,y),oe=Vw(u,{replace:i,mask:s,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:h,defaultShouldRevalidate:p,useTransitions:x});function te(ee){t&&t(ee),ee.defaultPrevented||oe(ee)}let se=!(B.isExternal||a),ie=f.createElement("a",{...y,...W,href:(se?M:void 0)||B.absoluteURL||C,onClick:se?te:t,ref:Fw(S,$),target:c,"data-discover":!k&&r==="render"?"true":void 0});return v&&!k?f.createElement(f.Fragment,null,ie,f.createElement(Lw,{page:C})):ie});ig.displayName="Link";var Ww=f.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:o=!1,style:a,to:i,viewTransition:s,children:l,...c},u){let d=Sa(i,{relative:c.relative}),h=Or(),p=f.useContext(Ca),{navigator:y,basename:S}=f.useContext(Er),b=p!=null&&Xw(d)&&s===!0,A=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,x=h.pathname,k=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(x=x.toLowerCase(),k=k?k.toLowerCase():null,A=A.toLowerCase()),k&&S&&(k=ur(k,S)||k);const B=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let C=x===A||!o&&x.startsWith(A)&&x.charAt(B)==="/",P=k!=null&&(k===A||!o&&k.startsWith(A)&&k.charAt(A.length)==="/"),M={isActive:C,isPending:P,isTransitioning:b},v=C?t:void 0,$;typeof n=="function"?$=n(M):$=[n,C?"active":null,P?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let W=typeof a=="function"?a(M):a;return f.createElement(ig,{...c,"aria-current":v,className:$,ref:u,style:W,to:i,viewTransition:s},typeof l=="function"?l(M):l)});Ww.displayName="NavLink";var jw=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:o,state:a,method:i=ti,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:h,...p},y)=>{let{useTransitions:S}=f.useContext(Er),b=qw(),A=Qw(s,{relative:c}
1288),x=i.toLowerCase()==="get"?"get":"post",k=typeof s=="string"&&Hi.test(s),B=C=>{if(l&&l(C),C.defaultPrevented)return;C.preventDefault();let P=C.nativeEvent.submitter,M=(P==null?void 0:P.getAttribute("formmethod"))||i,v=()=>b(P||C.currentTarget,{fetcherKey:t,method:M,navigate:r,replace:o,state:a,relative:c,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:h});S&&r!==!1?f.startTransition(()=>v()):v()};return f.createElement("form",{ref:y,method:x,action:A,onSubmit:n?l:B,...p,"data-discover":!k&&e==="render"?"true":void 0})});jw.displayName="Form";function zw(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function sg(e){let t=f.useContext(Yn);return Ae(t,zw(e)),t}function Vw(e,{target:t,replace:r,mask:n,state:o,preventScrollReset:a,relative:i,viewTransition:s,defaultShouldRevalidate:l,useTransitions:c}={}){let u=Hl(),d=Or(),h=Sa(e,{relative:i});return f.useCallback(p=>{if(Tw(p,t)){p.preventDefault();let y=r!==void 0?r:rr(d)===rr(h),S=()=>u(e,{replace:y,mask:n,state:o,preventScrollReset:a,relative:i,viewTransition:s,defaultShouldRevalidate:l});c?f.startTransition(()=>S()):S()}},[d,u,h,r,n,o,t,e,a,i,s,l,c])}function _M(e){_t(typeof URLSearchParams!="undefined","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=f.useRef(cl(e)),r=f.useRef(!1),n=Or(),o=f.useMemo(()=>Cw(n.search,r.current?null:t.current),[n.search]),a=Hl(),i=f.useCallback((s,l)=>{const c=cl(typeof s=="function"?s(new URLSearchParams(o)):s);r.current=!0,a("?"+c,l)},[a,o]);return[o,i]}var Kw=0,Yw=()=>`__${String(++Kw)}__`;function qw(){let{router:e}=sg("useSubmit"),{basename:t}=f.useContext(Er),r=nw(),n=e.fetch,o=e.navigate;return f.useCallback(async(a,i={})=>{let{action:s,method:l,encType:c,formData:u,body:d}=bw(a,t);if(i.navigate===!1){let h=i.fetcherKey||Yw();await n(h,r,i.action||s,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:u,body:d,formMethod:i.method||l,formEncType:i.encType||c,flushSync:i.flushSync})}else await o(i.action||s,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:u,body:d,formMethod:i.method||l,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,o,t,r])}function Qw(e,{relative:t}={}){let{basename:r}=f.useContext(Er),n=f.useContext(Ir);Ae(n,"useFormAction must be used inside a RouteContext");let[o]=n.matches.slice(-1),a={...Sa(e||".",{relative:t})},i=Or();if(e==null){a.search=i.search;let s=new URLSearchParams(a.search),l=s.getAll("index");if(l.some(u=>u==="")){s.delete("index"),l.filter(d=>d).forEach(d=>s.append("index",d));let u=s.toString();a.search=u?`?${u}
1288`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Rr([r,a.pathname])),rr(a)}function Xw(e,{relative:t}={}){let r=f.useContext($l);Ae(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=sg("useViewTransitionState"),o=Sa(e,{relative:t});if(!r.isTransitioning)return!1;let a=ur(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=ur(r.nextLocation.pathname,n)||r.nextLocation.pathname;return fa(o.pathname,i)!=null||fa(o.pathname,a)!=null}Ze(El)(({theme:e,active:t})=>({borderRadius:je.md,height:"2.5rem",width:"2.5rem",minWidth:"unset","& svg":{height:"1.25rem",width:"1.25rem"},border:`solid 1px ${e.palette.divider}`,backgroundColor:t?e.palette.secondary.main:"transparent",color:t?e.palette.secondary.contrastText:e.palette.text.secondary,"&:hover":{backgroundColor:t?e.palette.secondary.main:"transparent",borderColor:t?"transparent":e.palette.divider},"&:disabled":{opacity:.7}}));Ze(jf)(({theme:e})=>({"& .MuiDialog-paper":{width:"100vw",height:"100vh",maxWidth:"unset",maxHeight:"unset",margin:0,borderRadius:0,border:`solid 1px ${e.palette.divider}`,backgroundColor:Tu(e,F.gray[900],F.gray[0])},"& .monaco-editor":{borderRadius:0,height:"100vh"},"& .monaco-editor .margin":{borderRight:`solid 1px ${e.palette.divider}`,backgroundColor:Tu(e,F.gray[900],F.gray[0])},"& .monaco-editor,.overflow-guard":{borderRadius:"0"},"& .monaco-editor-background":{backgroundColor:e.palette.background.default},[`& .${Jw}`]:{width:"1rem!important",right:"-1rem!important",cursor:"col-resize",height:"100%",backgroundColor:"transparent",zIndex:1e3,"&:hover::after":{background:["pink","red",e.palette.primary.main],zIndex:1e3,content:'""',height:"100%",width:"2px",position:"absolute",left:"0",boxShadow:`0 0 12px ${ke(e.palette.primary.main,.25)}`}},[`& .${Zw}`]:{height:"1rem!important",top:"0!important",cursor:"row-resize",width:"100%",backgroundColor:"transparent",zIndex:1e8,"&:hover::after":{background:e.palette.primary.main,zIndex:1e8,content:'""',width:"100%",height:"2px",position:"absolute",top:"0",boxShadow:`0 0 12px ${ke(e.palette.primary.main,.25)}`}}}));const Jw="resize-handle-right",Zw="resize-handle-top",eD=RegExp("^workspaces/(.*)/(characters|triggers|workspaces|situations|scenes|common-knowledge|phonemes-overrides)/(.*)"),tD=RegExp("^workspaces/(.*)"),rD=RegExp("/workspaces
1288/([^/]+)"),nD=RegExp("^billing-accounts/(.*)");function yM(e,t){if(!t)return;const r=eD.exec(t);return r&&r[2]===e?r[3]:t}function oD(e){if(!e)return e;const t=tD.exec(e);return t?t[1]:e}const aD=new Set(["new"]);function EM(e){const t=rD.exec(e);if(!t)return null;const r=t[1];return aD.has(r)?null:r}function vM(e){if(!e)return e;const t=nD.exec(e);return t?t[1]:e}function ul(e){return e&&`workspaces/${oD(e)}`}function TM(e){return`workspace-collections/${e}`}var br=(e=>(e.STUDIO_TTS_LATENCY_STATS="studio.v2.render-latency-figures-in-tts-playground",e.STUDIO_RUNTIME_SHOW_JWT="studio.show-runtime-api-keys-jwt",e.STUDIO_WORKSPACE_RUNTIME_ACCESS="studio.workspace_runtime_access",e.STUDIO_PUBLIC_PLAYGROUNDS="studio.public-playgrounds",e.STUDIO_LANGUAGE_PRIMARY="studio.language_primary",e.STUDIO_LANGUAGE_SECONDARY="studio.language_secondary",e.STUDIO_ENABLE_JAPANESE_LANGUAGE_SUPPORT="studio.enable-japanese-language-support",e.STUDIO_VIEW_INTERNAL_ENGINE_SETTINGS="studio.view-internal-engine-settings",e.STUDIO_WORKSPACE_AUTO_GENERATION="studio.workspace-auto-generation",e.STUDIO_GITHUB_SSO="studio.github-sso",e.STUDIO_CONTACT_SUPPORT_URL="studio.contact-support-url",e.STUDIO_WORKSPACE_PROJECTS="studio.workspace-projects",e.STUDIO_WORKSPACE_SYNC="studio.workspace-sync",e.STUDIO_WORKSPACE_SYNC_DIFF="studio.workspace-sync-show-diff",e.STUDIO_CHAT_LOG="studio.chat-log",e.STUDIO_FRONTEND_GCP_LOGGING="studio.frontend-gcp-logging",e.STUDIO_UNREAL_ENGINE_RUNTIME="studio.v2.show-unreal-runtime-card",e.STUDIO_ENTITIES="studio.entities",e.STUDIO_NVIDIA_CLOUD_ROUTING="studio.nvidia-cloud-routing",e.STUDIO_COMMAND_MENU="studio.command-menu",e.STUDIO_INTEGRATIONS="studio.integrations",e.STUDIO_ALLOW_CHANGED_WORKSPACE_LIMITS="studio.allow-changed-workspace-limits",e.STUDIO_PORTAL_ONLY_WORKSPACE_SWITCHER="studio.v2.portal-only-workspace-sharing",e.STUDIO_WORKSPACES_USE_DELETE_V1="studio.workspaces.use-delete-v1",e.STUDIO_WORKSPACE_USER_ACCESS_CONTROL="studio.workspace-user-access-control",e.STUDIO_RBAC_CONTEXT="studio.rbac.context",e.STUDIO_RENDER_USER_ROLE_IN_WORKSPACE_LIST="studio.render-user-role-in-workspace-list",e.STUDIO_USE_INWORLD_DIALOG_COMPONENTS="studio.use-inworld-dialog-component",e.STUDIO_V2_SHOW_MODELS_PAGE="studio.v2.showModelsPage",e.STUDIO_V2_INWORLD_HOSTED_MODELS="studio.v2.inworld-hosted-models",e.STUDIO_MODELS_LIST_BLACKLIST_PROVIDERS="studio.v2.models-list-blacklist-providers",e.STUDIO_V2_MODELS_PROMOTIONS="studio.v2.models-promotions",e.STUDIO_V2_MODELS_TEST_IN_PLAYGROUND="studio.v2.models-test-in-playground",e.STUDIO_V2_SHOW_LOGS_PAGE="studio.v2.showLogsPage",e.STUDIO_V2_SHOW_TRACES_PAGE="studio.v2.showTracesPage",e.STUDIO_V2_SHOW_LLM_PLAYGROUND_PAGE="studio.v2.showLLMPlaygroundPage",e.STUDIO_V2_SHOW_TTS_PLAYGROUND_PAGE="studio.v2.tts-playground-page",e.STUDIO_V2_TTS_SHARE_AUDIO="studio.v2.tts-share-audio",e.STUDIO_V2_STARRED_VOICES="studio.v2.starred-voices",e.STUDIO_V2_AUDIOBOOKS="studio.v2.audiobooks",e.STUDIO_V2_USAGE_SIGNOZ="studio.v2.usage-signoz",e.STUDIO_V2_USAGE_LLM_COST="studio.v2.usage-llm-cost",e.STUDIO_V2_USAGE_API="studio.v2.usage-api",e.STUDIO_V2_ENTERPRISE_CREDITS_VISIBILITY="studio.v2.enterprise-credits-visibility",e.STUDIO_V2_PERFORMANCE_METRICS="studio.v2.performance-metrics",e.STUDIO_V2_DEFAULT_MODEL_CREATORS_ORDERING="studio.v2.default-model-creators-ordering",e.STUDIO_SHOW_SUPPORT_DIALOG="studio.support-dialog",e.STUDIO_V2_TRACES_COPY_ALL="studio.v2.traces-copy-all",e.STUDIO_V2_DISABLE_SMART_ROUTER="studio.v2.disable-smart-router",e.STUDIO_V2_ROUTER_PRESET_MODELS="studio.v2.router-preset-models",e.STUDIO_V2_METRICS_PAGE="studio.v2.metrics-page",e.STUDIO_ORG_MANAGEMENT="studio.org-management",e.STUDIO_V2_SHOW_ACCESS_CONTROL_PAGE="studio.v2.show-settings-page-access-control",e.STUDIO_V2_O11Y_SHOW_RAW_PERCENTILE="studio.v2.o11y.show-raw-percentile",e.STUDIO_V2_NEW_DASHBOARD_CREATION_ENABLED="studio.v2.new-metrics-dashboard-creation-enabled",e.STUDIO_V2_DOWNLOAD_FRAMEWORK_ENABLED="studio.v2.download-framework-link-enabled",e.STUDIO_V2_TTS_PLAYGROUND_SUGGESTION_CHIPS="studio.v2.tts-playground-suggestion-chips",e.STUDIO_V2_TTS_PLAYGROUND_TEMPERATURE_SLIDER="studio.v2.tts-playground-temperature-slider",e.STUDIO_V2_TTS_PLAYGROUND_FEEDBACK="studio.v2.tts-playground-feedback",e.STUDIO_V2_TTS_PLAYGROUND_HISTORY="studio.v2.tts-playground-history",e.STUDIO_V2_TTS_PLAYGROUND_CUSTOM_PRONUNCIATIONS="studio.v2.tts-playground-custom-pronunciations",e.STUDIO_V2_TTS_PLAYGROUND_SAMPLE_RATE="studio.v2.tts-playground-sample-rate",e.STUDIO_V2_TTS_PLAYGROUND_RENDER_COST_ESTIMATE="studio.v2.tts-playground-render-cost-estimate",e.STUDIO_V2_TTS_PLAYGROUND_RENDER_INSTRUCTION_CHIPS="studio.v2.tts-playground-render-instruction-chips",e.STUDIO_V2_TTS_PLAYGROUND_TRY_API_AS_PRIMARY_ACTION="studio.tts-playground-try-api-as-primary-action",e.STUDIO_V2_TTS_INTEGRATE_TAB_ORDER="studio.v2.tts-integrate-tab-order",e.STUDIO_V2_EVOLUTION_GRAPHS="studio.v2.evolution-graphs",e.STUDIO_V2_SHOW_GETTING_STARTED_RUNTIME_PAGE="studio.v2.getting-started-dialog-runtime",e.STUDIO_V2_SHOW_GETTING_STARTED_TTS_PAGE="studio.v2.getting-started-dialog-tts",e.STUDIO_V2_SHOW_GETTING_STARTED_OVERVIEW_PAGE="studio.v2.getting-started-dialog-overview",e.STUDIO_V2_RENDER_API_SCOPE_CONTROLS="studio.v2.render-api-scope-control
1288s",e.STUDIO_V2_RENDER_API_ROUTER_SCOPES="studio.v2.render-api-router-scopes",e.STUDIO_V2_RENDER_API_REALTIME_SCOPE="studio.v2.render-api-realtime-scope",e.STUDIO_V2_RUNTIME_SHOW_JWT_DIALOG="studio.v2.show-runtime-api-keys-jwt-dialog",e.STUDIO_V2_RUNTIME_API_KEY_EXPIRATION="studio.v2.runtime-api-key-expiration",e.STUDIO_V2_TTS_1_5_ENABLE_HIGHLIGHT_WORDS="studio.v2.tts_1_5_enable_highlight_words",e.STUDIO_V2_TTS_2_ENABLE_HIGHLIGHT_WORDS="studio.v2.tts_2_enable_highlight_words",e.STUDIO_V2_TTS_PLAYGROUND_DEFAULT_VALUES="studio.v2.tts-playground-default-values",e.STUDIO_V2_TTS_STREAMING_REQUEST_MAX_LENGTH="studio.v2.tts-streaming-request-max-length",e.STUDIO_V2_TTS_OTHER_LANGUAGE_FILTER="studio.v2.tts-other-language-filter",e.STUDIO_V2_TTS_LANGUAGE_ACCENT_SELECTION="studio.v2.tts-language-accent-selection",e.STUDIO_V2_TTS_PLAYGROUND_LANGUAGE_NUDGE="studio.v2.tts-playground-language-nudge",e.STUDIO_V2_TTS_ENHANCE_GENERATION="studio.v2.tts-enhance-generation",e.STUDIO_V2_TTS_AUTO_STEER="studio.v2.tts-auto-steer",e.STUDIO_V2_TTS_VOICE_VARIANT="studio.v2.tts-voice-variant",e.STUDIO_V2_TTS_BINARY_PROTOCOL="studio.v2.tts-binary-protocol",e.STUDIO_V2_PORTAL_EMBEDDED_DOCS="studio.v2.portal.embedded-docs",e.STUDIO_V2_PUBLIC_EMBEDDED_DOCS="studio.v2.portal.public-embedded-docs",e.DOCS_DISABLE_SEARCH_SUGGESTIONS="studio.docs.disable-search-suggestions",e.DOCS_PLAYGROUND_AUDIO_PLAYER="studio.docs.playground-audio-player",e.STUDIO_V2_HIDE_DELETE_ACCOUNT_MENU_ITEM="studio.v2.hide-delete-account-menu-item",e.STUDIO_DISABLE_BILLING_PAGE="studio.disable-billing-page",e.STUDIO_V2_SHOW_LLM_PRICES="studio.v2.show-llm-prices",e.STUDIO_V2_SHOW_EMBEDDINGS_PRICES="studio.v2.show-embeddings-prices",e.STUDIO_V2_SHOW_STT_PRICES="studio.v2.show-stt-prices",e.STUDIO_V2_AUTO_RELOAD_FEATURE="studio.v2.auto-reload-feature",e.STUDIO_V2_AUTO_RELOAD_CHECKBOX_TEST="studio.v2.auto-reload-checkbox-test",e.STUDIO_V2_BILLING_ADD_CREDITS_VARIA
1288NTS="studio.v2.billing-add-credits-variants",e.STUDIO_V2_BILLING_CREDITS_UI="studio.v2.billing-credits-ui-update-0828",e.BILLING_MANAGER_TOP_UP_CONFIG_LIMITS="studio.v2.billing-manager.top-up-config-limits",e.BILLING_MANAGER_BUY_CREDITS_LIMITS="studio.v2.billing-manager.buy-credits-limits",e.STUDIO_V2_SUBSCRIPTION_CANCEL="studio.v2.subscription-cancel",e.STUDIO_V2_SUBSCRIPTION_DOWNGRADE="studio.v2.subscription-downgrade",e.STUDIO_V2_SHOW_FOUNDER_PLANS="studio.v2.show-founder-plans",e.STUDIO_V2_SHOW_ANNUAL_PLANS="studio.v2.show-annual-plans",e.STUDIO_V2_BILLING_DEFAULT_CADENCE_AB="studio.v2.billing-default-cadence-ab",e.STUDIO_V2_SHOW_BUILDER_PLANS="studio.v2.show-builder-plans",e.STUDIO_V2_FOUNDER_DEVELOPER_PROMO="studio.v2.founder-developer-promo",e.STUDIO_V2_UPGRADE_CREDIT_PROMO="studio.v2.upgrade-credit-promo",e.BILLING_MANAGER_ENABLE_INSTANT_TOP_UP_CHARGING="studio.v2.billing-manager.enable-instant-top-up-charging",e.STUDIO_V2_PRICING_RATE_OVERRIDES="studio.v2.pricing-rate-overrides",e.STUDIO_PLATFORM_REDIRECT="studio.platform-redirect",e.STUDIO_VOICE_CLONING="studio.voice-cloning",e.STUDIO_PVC_VOICE_CLONING="studio.pvc-voice-cloning",e.STUDIO_PVC_DENOISING="studio.pvc-denoising",e.STUDIO_CUSTOM_VOICE_CAPACITY_BANNER="studio.custom-voice-capacity-banner",e.STUDIO_PVC_VOICE_CAPACITY_BANNER="studio.pvc-voice-capacity-banner",e.STUDIO_VOICE_CLONING_AUTOPLAY="studio.voice-cloning-autoplay",e.STUDIO_SELF_SERVE_SIGN_UP="studio.v2.self-serve-sign-up",e.STUDIO_CUSTOMER_TIER="studio.v2.customer-tier",e.STUDIO_TTS_VOICE_MANAGEMENT="studio.tts-voice-management",e.STUDIO_VOICE_CLONING_TRIMMING="studio.voice-cloning-trimming",e.STUDIO_VOICE_CLONE_OTHER_LANG="studio.voice-clone.other-lang",e.STUDIO_VOICE_EXTENDED_LIMITS="studio.voice-clone.extended-limits",e.STUDIO_TVD_V1="studio.tvd_v1.enable",e.STUDIO_TVD_GUIDE_URL="studio.tvd.guide_url",e.STUDIO_TVD_DISABLE_AUTO_GENERATE_SCRIPT="studio.tvd.disable-auto-generate-script",e.STUDIO_RECOMMENDED_VOICES="studio.recommended-voices",e.STUDIO_BLOCKED_VOICES="studio.blocked-voices",e.STUDIO_VOICE_SEARCH="studio.voice-search.enable",e.STUDIO_VOICE_AUDIO_SEARCH="studio.voice-audio-search.enable",e.STUDIO_VOICE_LOCALIZE="studio.voice-localize.enable",e.STUDIO_V2_VOICE_LOCALIZE_NON_ENGLISH="studio.v2.voice-localize-non-english",e.STUDIO_VOICE_LOCALIZE_MANAGE="studio.voice-localize.manage",e.STUDIO_ANALYTICS_MIXPANEL_BACKEND="studio.analytics.mixpanel-backend",e.STUDIO_ANALYTICS_MIXPANEL_AUTOCAPTURE="studio.analytics.mixpanel-autocapture",e.STUDIO_ANALYTICS_DISABLE_DIRECT_SEND="studio.analytics.disable-direct-send",e.STUDIO_ANALYTICS_FORCE_SESSION_RECORDING="studio.analytics.force-session-recording",e.STUDIO_V2_SHOW_TEMPLATES_PAGE="studio.v2.templates-page",e.STUDIO_V2_WORKSPACE_PRONUNCIATIONS="studio.v2.workspace-pronunciations",e.STUDIO_V2_WORKSPACE_PRONUNCIATION_AUTO_LANGUAGE="studio.v2.workspace-pronunciation.auto-language",e.STUDIO_V2_WORKSPACE_PRONUNCIATION_RECORD_TO_IPA="studio.v2.workspace-pronunciation.record-to-ipa",e.STUDIO_V2_PRONUNCIATIONS_API_INTEGRATION="studio.v2.pronunciations-api-integration",e.STUDIO_V2_PRONUNCIATIONS_API_WORKSPACE_DEFAULT="studio.v2.pronunciations-api-workspace-default",e.STUDIO_V2_PRONUNCIATIONS_PREVIEW_VOICE_SELECTOR="studio.v2.pronunciations-preview-voice-selector",e.STUDIO_V2_REFERRALS="studio.v2.referrals",e.STUDIO_PROMO_BANNER="studio.v2.promo-banner",e.STUDIO_MENU_MERGED_TTS_AND_RUNTIME="studio.menu.merged-tts-and-runtime",e.STUDIO_V2_HIDE_RUNTIME_NAV="studio.v2.hide-runtime-nav",e.STUDIO_V2_SHOW_HOME_PAGE="studio.v2.show-home-page",e.STUDIO_V2_REALTIME_NAV="studio.v2.realtime-nav",e.STUDIO_V2_SHOW_REALTIME_PLAYGROUND="studio.v2.show-realtime-playground",e.STUDIO_V2_REALTIME_WEBRTC="studio.v2.realtime-webrtc",e.STUDIO_V2_REALTIME_LLM_TOOLS="studio.v2.realtime-llm-tools",e.STUDIO_V2_REALTIME_WEB_SEARCH="studio.v2.realtime-web-search",e.STUDIO_V2_REALTIME_VOICE_PROFILE="studio.v2.realtime-voice-profile",e.STUDIO_RECAPTCHA_EMAIL_SIGNUP="studio.recaptcha-email-signup",e.STUDIO_WORKSPACE_SWITCHER_IN_SIDEBAR="studio.v2.workspace-switcher-in-sidebar",e.STUDIO_V2_RENDER_FULL_INWORLD_LOGO_TOP_BAR="studio.v2.render-full-inworld-logo-top-bar",e.STUDIO_V2_NEW_ONBOARDING="studio.v2.new-onboarding-flow",e.STUDIO_V2_NEW_ONBOARDING_FLOW_FEATURE_REDIRECTS="studio.v2.new-onboarding-flow-feature-redirects",e.STUDIO_V2_SKIP_ONBOARDING_FOR_DEEPL
1288INK="studio.v2.skip-onboarding-for-deeplink",e.STUDIO_V2_INTEGRATION_DOCS_LINKS="studio.v2.integration-docs-links",e.STUDIO_V2_ROUTER_TTFT_TIMEOUT="studio.v2.router-ttft-timeout",e.STUDIO_V2_STT_PLAYGROUND="studio.v2.stt-playground",e.STUDIO_V2_STT_DIARIZATION="studio.v2.stt-diarization",e.STUDIO_V2_STT_REPLAY_RECORDING="studio.v2.stt-replay-recording",e.STUDIO_V2_STT_LEGACY_MODELS_CUTOFF="studio.v2.stt-legacy-models-cutoff",e.STUDIO_V2_PLAYGROUNDS_HIGHLIGHT_INTEGRATE="studio.v2.playgrounds-highlight-integrate",e.STUDIO_V2_SHOW_BYOK="studio.v2.byok",e.STUDIO_V2_SHOW_ONBOARDING_CHECKLIST="studio.v2.show-onboarding-checklist",e.STUDIO_V2_DISABLE_TTS_1_5_MINI="studio.v2.disable-tts-1-5-mini",e.STUDIO_V2_DISABLE_TTS_1_5_MAX="studio.v2.disable-tts-1-5-max",e.STUDIO_V2_TTS_LEGACY_MODELS_CUTOFF="studio.v2.tts-legacy-models-cutoff",e.STUDIO_V2_GATE_AUDIO_DOWNLOAD="studio.v2.gate-audio-download",e.STUDIO_V2_GATE_WORKSPACE_CREATE_SHARE="studio.v2.gate-workspace-create-share",e.STUDIO_V2_GATE_VOICE_FEATURES="studio.v2.gate-voice-features",e.STUDIO_INWORLD_ASSISTANT="studio.inworld-assistant",e.STUDIO_DOMAIN_AUTO_JOIN="studio.domain-auto-join",e.STUDIO_WORKSPACE_ZDR="studio.workspace-zdr",e.STUDIO_SAML_SSO="studio.saml-sso",e.STUDIO_SCIM="studio.scim",e.STUDIO_INWORLD_ASSISTANT_REALTIME="studio.inworld-assistant-realtime",e.STUDIO_INWORLD_ASSISTANT_COPILOT="studio.inworld-assistant-copilot",e.STUDIO_INWORLD_ASSISTANT_SHARED_UI="studio.inworld-assistant-shared-ui",e.STUDIO_INWORLD_ASSISTANT_TOOL_NAVIGATION="studio.inworld-assistant.tool-navigation",e.STUDIO_INWORLD_ASSISTANT_TOOL_HIGHLIGHT="studio.inworld-assistant.tool-highlight",e.STUDIO_INWORLD_ASSISTANT_TOOL_FEEDBACK="studio.inworld-assistant.tool-feedback",e.STUDIO_INWORLD_ASSISTANT_MULTI_SESSION="studio.inworld-assistant.multi-session",e.STUDIO_INWORLD_ASSISTANT_QUICK_QUESTION_CHIPS="studio.inworld-assistant.quick-question-chips",e.STUDIO_ACCOUNT_EMAIL_LINKING="studio.account-email-linking",e.STUDIO_V2_SHARE_VOICE="studio.v2.share-voice",e.STUDIO_V2_PVC_COMMUNITY_SHARING="studio.v2.pvc-community-sharing",e.STUDIO_V2_VOICE_LIBRARY_SORT="studio.v2.voice-library-sort",e.STUDIO_V2_WORKSPACE_VOICE_TAGS="studio.v2.workspace-voice-tags",e.STUDIO_V2_VOICE_COPY="studio.v2.voice-copy",e))(br||{});const iD=Ze("span")(()=>({display:"block",fontSize:"inherit"})),sD=Ze("p")(({theme:e})=>({color:e.palette.error.main,fontSize:xe.sm,marginTop:-12,marginBottom:0})),lD=e=>{const t=e.split("<b>");return T.jsx("span",{children:t.map((r,n)=>T.jsx(T.Fragment,{children:n%2?T.jsx("b",{children:r}):r}))})},CM=e=>{const{errors:t,wrap:r}=e,n=t==null?void 0:t.find(i=>i==null?void 0:i.includes("<b>")),o=r?sD:Xe.Fragment,a=t==null?void 0:t.map((i,s)=>T.jsx(iD,{children:n?lD(i):i},s));return t.length?T.jsx(o,{children:a}):T.jsx(Xe.Fragment,{})},cD=e=>e?e.offsetHeight<e.scrollHeight||e.offsetWidth<e.scrollWidth:!1,RM=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);class uD{static TrackMarketingTags(t,r){return Z("/v1alpha/marketing/tags:track",{...r,method:"POST",body:JSON.stringify(t,Ie)})}}const dD=e=>gt(uD.TrackMarketingTags,{marketingTags:e});let ho=null,qo=null;const ql=()=>ho?Promise.resolve(ho):(qo||(qo=an(()=>import("./vendor-mp.BjBorTEs.js"),[]).then(e=>(ho=e.default,ho)).catch(e=>{throw qo=null,e})),qo),zn=()=>ho,fD=2e3;var lg=(e=>(e.SIGN_UP="sign_up",e.SUBSCRIPTION="‘subscription",e))(lg||{}),cg=(e=>(e.AUTHENTICATED="Authenaticated into the studio",e.AUTHENTICATED_ARCADE="Authenaticated into the arcade",e.AUTHENTICATED_ARCADE_2="Authenticated into the arcade 2.0",e.TEST_CLICKED='Clicked "Test"',e.MESSAGE_SENT="Sent Message in Test window",e.VOICE_SESSION_STARTED="Voice session started in simulator",e.ADD_NEW_CHARACTER_CLICKED='Clicked "Add a New Character"',e.SAVE_AND_TRAIN_CLICKED_NEW='Clicked "Save and Train" on new character page',e.SAVE_AND_TRAIN_CLICKED_TEMPLATE='Clicked "Create" on new character page from template',e.CORE_DESCRIPTION_EDITED='Edited "Core Description"',e.SAVE_AND_TRAIN_CLICKED_EXISTING='Clicked "Save and Train" on existing character page',e.MOTIVATIONS_EDITED='Edited "Motivations"',e.FLAWS_EDITED='Edited "Flaws"',e.ROLE_EDITED='Edited "Role"',e.PERSONAL_KNOWLEDGE_EDITED='"Personal Knowledge" edited',e.ADD_COMMON_KNOWLEDGE_CLICKED='Clicked "Add Common Knowledge"',e.AUTOGENERATE_COMMON_KNOWLEDGE_FROM_FILE='Selected "Autogenerate from document(s)"',e.CREATE_COMMON_KNOWLEDGE_FROM_SCRATCH='Selected "Create from scratch"',e.CREATE_NEW_COMMON_KNOWLEDGE_CLICKED='Clicked "Create New Common Knowledge"',e.DIALOGUE_STYLE_SELECTED='Selected "Dialogue Style"',e.EXAMPLE_DIALOGUE_EDITED='"Example Dialogue" added',e.SCENE_ADD='Added "Scene"',e.CREATE_NEW_SCENE_CLICKED='Clicked "Create New Scene"',e.CHAT_CLICKED='Clicked "Chat"',e.SHARE_OCULUS_CLICKED='Clicked "Share character for Oculus"',e.SHARE_CLICKED='Clicked "Share"',e.SHARE_SAVE_CLICKED='Clicked "Save sharing settings"',e.SHARE_ON_WEB_TOGGLE_CLICKED='Clicked toggle "Share character on web"',e.COPY_MACHINE_READABLE_ID='Clicked "Copy machine-readable id for integration"',e.VIEW_TRANSCRIPT_CLICKED='Clicked "Vie
1288w transcript"',e.DOWNLOAD_TRANSCRIPT_CLICKED='Clicked "Download transcript"',e.TUTORIAL_STARTED="Tutorial started",e.TUTORIAL_FINISHED="Tutorial finished",e.TUTORIAL_STOPPED_EARLY="Tutorial stopped early",e.TUTORIAL_SKIPPED="Tutorial skipped",e.CLICKED_NAVIGATION_TAB="Clicked navigation tab item",e.NAVIGATED_TO_SCENES_TAB='Navigated to "Scenes" tab',e.NAVIGATED_TO_COMMON_KNOWLEDGE='Navigated to "Common Knowledge" tab',e.NAVIGATED_TO_INTEGRATIONS_TAB='Navigated to "Integrations" tab',e.AVATAR_CLICKED='Clicked "Avatar"',e.CONFIGURE_3d_AVATAR_CLICKED='Clicked "Configure 3d avatar"',e.DOWNLOAD_3d_AVATAR_CLICKED='Clicked "Download 3d avatar"',e.AVATAR_UPLOAD='Changed "Upload avatar"',e.CLICKED_CREATE_CHARACTER='Clicked "Create a Character"',e.CLICKED_SOUND='Clicked "Sound"',e.CLICKED_MICROPHONE='Clicked "Microphone"',e.CLICKED_START_CONVERSATION='Clicked "Start Conversation"',e.CLICKED_AVATAR_CHAT='Clicked "Avatar Chat"',e.CLICKED_TEXT_CHAT='Clicked "Text Chat"',e.CLICKED_RESTART_CONVERSATION='Clicked "Restart the Conversation"',e.CLICKED_COPY_TRANSCRIPT='Clicked "Copy Transcript to Clipboard"',e.CLICKED_UPVOTE='Clicked "Upvote"',e.CLICKED_MORE_CHARACTERS='Clicked "More Characters"',e.CLICKED_SEND_MESSAGE='Clicked "Send Message"',e.OPENED_CHARACTER='Opened "Character"',e.CLICKED_CHAT_NOW_CHARACTER_SAVE_TOAST="Clicked 'Chat Now' from 'Character saved' toast",e.INTEGRATIONS_GENERATE_NEW_KEY_CLICKED='Clicked "Generate New Key"',e.INTEGRATIONS_GENERATE_STUDIO_ACCESS_TOKEN_CLICKED='Clicked "Generate Studio Access Token"',e.INTEGRATIONS_GENERATE_STUDIO_BASE_64_ACCESS_TOKEN_CLICKED='Clicked "Generate Base64 Studio Access Token"',e.INTEGRATIONS_GENERATE_STUDIO_BASE_64_ACCESS_TOKEN_REMOVE='Clicked "Delete Base64 Studio Access Token"',e.INNEQUIN_SKIN_CHANGED='Changed Innequin "Skin"',e.INNEQUIN_BACKGROUND_CHANGED='Changed Innequin "Background"',e.ONBOARDING_CHARACTERS_SHOWN='Onboarding "Characters" shown',e.ONBOARDING_CHARACTER_CHAT_INITIATED='Onboarding "Character Chat" initiated',e.ONBOARDING_GREETING_NAME_ADDED='Onboarding "Greeting Name" added',e.ONBOARDING_GREETING_NAME_SKIPPED='Onboarding "Greeting Name" skipped',e.ONBOARDING_QUICK_MESSAGE_CLICKED='Onboarding "Quick Message" clicked',e.ONBOARDING_SIMULATOR_CREATE_ACCOUNT_CLICKED='Onboarding "Simulator Create Account" clicked',e.ONBOARDING_SHOW_BRAIN_CLICKED='Onboarding "Show Character Brain" clicked',e.ONBOARDING_BRAIN_SETTINGS_CHANGED='Onboarding "Brain Settings" changed',e.ONBOARDING_MORE_CONTROLS='Onboarding "Want More Controls" clicked',e.ONBOARDING_EXPLORE_MORE_CARD='Onboarding "Explore More" card clicked',e.ARCADE_2_0_CHARACTER_CATEGORY_SELECTED='Arcade 2.0 "Character Category" selected',e.ARCADE_2_0_CHARACTER_TITLE_CLICKED="Arcade 2.0 sharing settings Character title clicked",e.ARCADE_2_0_CHARACTER_SUBTITLE_CLICKED="Arcade 2.0 sharing settings Character subtitle clicked",e.ARCADE_2_0_CHARACTER_CATEGORIES_CLICKED="Arcade 2.0 sharing settings Character categories clicked",e.ARCADE_2_0_USERNAME_SET="Arcade 2.0 sharing settings username set",e.CLICKED_SIGN_IN_WITH='Clicked "Sign in with"',e.CLICKED_CREATE_GROUP_CHAT='Clicked "Create Group Chat"',e.CLICKED_GLOBAL_CHAT_LAUNCHER_CHARACTERS="Clicked global chat launcher - Characters page",e.CLICKED_WATCH_GROUP_CHAT='Clicked "Watch Group Chat"',e.CLIKED_CHAT_WITH_GROUP_CHAT='Clicked "Chat with Group Chat"',e.CLICKED_CHAT_WITH_RANDOM_CHARACTER='Clicked "Chat with random character"',e.GLOBAL_CHAT_CLICKED_CHAT_WITH_SINGLE='Clicked "Chat with single character"',e.TOGGLED_GROUP_CHAT_TO_WATCH='Toggled "Group Chat to Watch"',e.TOGGLED_GROUP_CHAT_TO_CHAT='Toggled "Group Chat to Chat"',e.AUTOGENERATED_ENTITY_DELETED="Autogenerated Entity Deleted",e.AUTOGENERATED_ENTITY_EDITED="Autogenerated Entity Edited",e.WORKSPACE_FLOW_STARTED_FROM_SCRATCH='Workspace flow started "from scratch"',e.WORKSPACE_FLOW_STARTED_AUTOGENERATE='Workspace flow started "auto-generate"',e.WORKSPACE_AUTO_GENERATION_STARTED="Workspace auto-generation started",e.WORKSPACE_RESOURCES_CREATION_STARTED="Workspace resources creation started",e.STUDIO_ARCADE_AS_INITIAL_PAGE="Lo
1288ad arcade as initial page in studio",e.WORKSPACE_AUTO_GENERATION_FLOW_SEEN="Workspace auto-generation, flow seen",e.WORKSPACE_RESOURCE_CREATION_FINISHED="Workspace resource creation finished",e.DEV_DIALOG_EDITOR_OPENED="Enhanced editor opened",e.GOALS_VISUALIZER_CLICKED_COPY_EXAMPLE='Goals visualizer clicked "Copy example"',e.GOALS_VISUALIZER_TOGGLED_VISUALIZER="Goals visualizer opened",e.EMAIL_UNVERIFIED="Email unverified",e.TERMS_AND_CONDITIONS_SHOWN="Terms and conditions shown",e.TERMS_AND_CONDITIONS_ACCEPTED="Terms and conditions accepted",e.MARKETING_ROLE_MODAL_SHOWN="Marketing role modal shown",e.MARKETING_ROLE_SKIPPED="Marketing role skipped",e.MARKETING_ROLE_ADDED="Marketing role added",e.CHARACTER_PAGE_VIEWED_FIRST_TIME="Character page viewed first time",e))(cg||{}),ug=(e=>(e.Studio="studio",e.Arcade="arcade",e.Arcade2_0="arcade 2.0",e.Portal="portal",e))(ug||{}),hD=(e=>(e.Character="character",e.Characters="characters",e.Interactions="interactions",e.ShareOnWebModal="shareOnWebModal",e.Navigation="Navigation",e.CharacterCard="characterCard",e.ArcadeChat="arcadeChat",e.ArcadeIntro="arcadeIntro",e.PageLoad="pageLoad",e.Simulator="simulator",e.KnowledgePage="commonKnowledgePage",e.ScenesPage="scenesPage",e.GettingStartedDialog="gettingStartedDialog",e))(hD||{});const dt={initialized:!1,uninitializedErrorFired:!1,isFirebaseSet:!1,disabled:!1,isAutoCaptureEnabled:!1},pD={api_host:_a(),api_routes:{track:"v1alpha/analytics/mixpanel:trackEvent",engage:"v1alpha/analytics/mixpanel:trackEngage",groups:"v1alpha/analytics/mixpanel:trackGroups",record:"v1alpha/analytics/mixpanel:trackSessionRecord"}},gD={pageview:"full-url",click:!0,dead_click:!0,input:!0,rage_click:!0,scroll:!0,submit:!0,capture_text_content:!0},SM=()=>{const e=xr(br.STUDIO_ANALYTICS_MIXPANEL_BACKEND),t=xr(br.STUDIO_ANALYTICS_MIXPANEL_AUTOCAPTURE);f.useEffect(()=>{hg({isProxyEnabled:e,isAutoCaptureEnabled:t})},[e,t])},bM=()=>{const e=xr(br.STUDIO_ANALYTICS_FORCE_SESSION_RECORDING);f.useEffect(()=>{e&&mD()},[e])},dg=["inworld.ai","inworld.dev","testiki.ak"],mD=()=>{var n;const e=zn();if(!e)return;const t=(n=e.get_distinct_id)==null?void 0:n.call(e);if(!t)return;const r=t.split("@").pop();r&&!dg.includes(r)&&e.start_session_recording()},fg={record_mask_text_selector:"",record_mask_all_text:!1,record_mask_all_inputs:!1,record_heatmap_data:!1,record_sessions_percent:0,ignore_dnt:!0},_D=new Set(["gmail.com","googlemail.com","yahoo.com","yahoo.co.uk","yahoo.co.jp","ymail.com","hotmail.com","hotmail.co.uk","outlook.com","live.com","msn.com","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","pm.me","qq.com","163.com","126.com","naver.com"]),yD=5,ED=10,vD=e=>e?_D.has(e)?yD:ED:0,hg=e=>{var r,n;dt.proxy=e.isProxyEnabled?pD:dt.proxy,dt.isAutoCaptureEnabled=(r=e.isAutoCaptureEnabled)!=null?r:dt.isAutoCaptureEnabled,dt.initialized&&(e.isProxyEnabled||e.isAutoCaptureEnabled)&&((n=zn())==null||n.set_config({...fg,...dt.isAutoCaptureEnabled?{autocapture:gD}:{},...e.isProxyEnabled?structuredClone(dt.proxy):{}}))},TD=["fbclid","gclid"],CD=()=>{const e=zn();if(!e)return;const t=new URLSearchParams(window.location.search);TD.forEach(r=>{const n=t.get(r);n&&e.register({[r]:n})})},RD=new Map([["utm_source","source"],["utm_medium","medium"],["utm_campaign","campaign"],["fbclid","hs_facebook_click_id"],["gclid","hs_google_click_id"]]),SD=async()=>{const e=[];try{const t=zn();RD.forEach((r,n)=>{const o=t==null?void 0:t.get_property(n);o&&e.push({name:r,value:o})}),e.length>0&&await dD(e)}catch(t){console.warn("Can't handle marketing tags",t)}},bD=async(e,t,r)=>{const n=(r==null?void 0:r.key)||Ol();if(!(!n||dt.disabled))try{const o=await ql();if(dt.initialized||o.init(n,{...fg,debug:(r==null?void 0:r.debug)==="true"||t_,loaded:()=>{dt.initialized=!0,hg({isProxyEnabled:!!dt.proxy,isAutoCaptureEnabled:dt.isAutoCaptureEnabled}),CD()}}),!dt.isFirebaseSet&&e){await o.identify(e),o.people.set({$email:e});const a=e.split("@").pop(),i=Math.random()*100,s=vD(a);a&&!dg.includes(a)&&i<=s&&o.start_session_recording(),SD(),dt.isFirebaseSet=!0}}catch(o){console.warn("Analytics init failed",o),dt.disabled=!0,dt.initialized=!1,ho=null,qo=null}};let vd;const ID=['"Example Dialogue" added','Edited "Core Description"','Edited "Flaws"','Edited "Motivations"','Edited "Role"','"Personal Knowledge" edited'],OD=new Set(["Authenaticated into the studio","Terms and conditions accepted","Terms and conditions shown"]),Td=new Set([]),pg=async(e,t,r)=>{var n;if(dt.initialized||await on.init(null,""),!dt.initialized&&!dt.uninitializedErrorFired&&(dt.uninitializedErrorFired=!0,console.error("Analytics is not initialized")),!(vd===e&&ID.includes(e))){if(OD.has(e)){
1288if(Td.has(e))return;Td.add(e)}(n=zn())==null||n.track(e,t,r),vd=e}},AD=Lm(pg,fD),wD=(...e)=>{try{const t=e[0],r=e[1];let n;t==="‘subscription"?r==="starter"?n={event:t,conversionValue:10,transactionID:123}:n={event:t,conversionValue:50,transactionID:123}:n={event:t},Sh.dataLayer.push(n)}catch(t){}},DD=1e4,Cd=250,ND=e=>{var a,i;const t=(a=globalThis.configs)!=null?a:{};if(!t.MARKETING_PARTNERSTACK_PUBLIC_KEY||!((i=t.MARKETING_PARTNERSTACK_REFERRAL_DOMAINS)!=null&&i.length))return;const r=Math.ceil(DD/Cd);let n=0;const o=()=>{const s=Sh.growsumo;if(s!=null&&s.createSignup){try{s.data.email=e.email,s.data.customer_key=e.customerKey,e.name&&(s.data.name=e.name),s.createSignup()}catch(l){}return}n+=1,n<r&&setTimeout(o,Cd)};o()},IM=async(e,t,r,n)=>{var o,a;dt.initialized||await on.init(null,""),(o=zn())==null||o.track("$experiment_started",{"Experiment name":e,"Variant name":t,"Impression type":r,Enabled:n}),dt.isFirebaseSet&&((a=zn())==null||a.people.set({[`Experiment: ${e}`]:t}))},OM=async e=>{if(!(!Ol()||dt.disabled))try{(await ql()).people.set(e)}catch(t){}},AM=async e=>{if(!(!Ol()||dt.disabled))try{(await ql()).register(e)}catch(t){}},on={init:bD,track:pg,debouncedTrack:AD,gtmPush:wD,partnerStackSignup:ND};let Os;const kD=()=>({isUniqueUser:Os,setIsUniqueUser:t=>{const r=globalThis.location.search.includes("test=true"),n=globalThis.location.search.includes("test-unique-user=true");if(r&&!n){Os=!1;return}Os=t}});var ta=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(ta||{});const xD=new Map([[ta.Small,3],[ta.Medium,4],[ta.Large,5]]),Rd=(e=ta.Medium)=>{var t;return(t=xD.get(e))!=null?t:4};Ze("div")(({theme:e,size:t})=>({border:`1px solid ${e.palette.grey[200]}`,width:`${Rd(t)/2.5}rem`,height:`${Rd(t)/2.5}rem`,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"0.3rem"}));const MD=({color:e})=>T.jsxs("svg",{width:"853",height:"168",viewBox:"0 0 853 168",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T.jsxs("g",{clipPath:"url(#clip0_1848_799)",children:[T.jsx("path",{d:"M39.2484 27.7964C38.9849 27.8555 38.9634 27.6029 39.1247 27.5115C44.3023 24.4845 51.6734 23.764 52.2219 23.3501C52.7165 22.6565 48.8508 22.6941 47.5067 22.6995C37.7268 23.0382 29.2857 26.6781 22.2748 33.2912C11.5111 42.4635 7.98408 57.5553 9.47337 71.1255C11.2154 85.1582 18.9252 98.3413 30.3718 106.632C54.2273 122.67 87.911 115.008 105.761 93.1799C127.74 66.534 121.181 28.5975 98.2016 11.2583C92.2391 7.11842 85.7228 3.84952 78.6903 1.9785C75.4107 1.00535 70.846 0.0698446 68.7492 -4.97611e-05C65.534 -0.102203 66.604 2.54303 66.0341 3.19359C65.4641 3.84414 59.5769 4.10759 66.2384 6.44636C70.1793 7.82812 67.7814 7.90877 64.776 10.6293C62.1146 13.0379 64.4372 15.7369 63.5179 16.6832C59.5715 20.7478 65.6147 22.5328 68.7331 24.3071C83.841 32.3718 92.1638 46.8883 89.411 63.9802C85.5453 86.5615 51.9154 96.3144 37.0333 78.4591C25.5867 64.9211 29.9148 42.3828 46.2109 35.0332C48.4691 33.9417 53.566 32.3503 51.3777 32.5331C42.942 33.2374 36.3558 37.7268 34.2267 39.3559C34.0439 39.4957 33.802 39.2806 33.9149 39.0817C35.458 36.3665 44.3991 30.033 61.9909 27.8072C65.1362 27.1297 53.3025 24.6512 39.2484 27.7964Z",fill:e||"currentColor"}),T.jsx("path",{d:"M46.4572 163.574C47.4142 163.563 48.3659 163.703 49.2584 163.795C51.5541 163.864 54.1349 163.601 56.6564 163.929C62.1404 164.241 67.6675 165.472 73.1676 165.606C76.9581 165.886 80.5764 165.714 84.4475 165.859C87.3669 166.235 90.8348 166.004 93.4531 166.397C95.0876 166.585 96.5876 166.504 98.2275 166.746C102.566 167.365 106.889 167.456 111.282 167.397C112.954 167.451 114.669 167.483 116.335 167.375C118.115 167.273 120.056 167.348 121.486 166.209C122.336 165.709 122.293 164.692 122.47 163.993C122.69 163.612 123.153 163.407 123.357 163.02C123.583 162.354 123.728 161.66 123.739 160.977V160.934C123.787 158.612 122.674 156.327 121.825 154.171C120.411 151.047 118.75 148.127 116.954 145.203C114.948 142.369 113.943 138.504 110.534 136.971C104.389 134.278 98.0715 134.563 91.2703 133.74C78.4688 132.605 64.8717 131.772 52.9735 131.611C41.8711 131.772 22.2576 132.498 12.1606 133.396C-5.77538 134.993 2.57431 137.837 2.00978 142.869C1.80547 144.724 -0.221468 144.574 0.00434428 146.391C0.380699 149.025 5.32169 152.321 7.80563 152.988C18.7468 155.913 4.23027 156.348 5.85397 159.273C7.20347 161.708 13.2251 161.009 15.6822 161.977L46.4465 163.574H46.4572Z",fill:e||"currentColor"}),T.jsx("path",{d:"M217.726 27.1834L218.591 27.3554C227.231 29.0813 229.339 31.2802 229.339 38.56V128.885C229.339 136.165 227.231 138.358 218.591 140.09L217.726 140.262V149.746H262.673V140.262L261.808 140.09C253.442 138.418 251.275 136.068 251.275 128.67V38.56C251.275 31.248 253.345 29.049 261.808 27.3554L262.673 27.1834V17.6992H217.726V27.1834Z",fill:e||"currentColor"}),T.jsx("path",{d:"M370.698 129.525V86.943C370.698 62.7542 359.412 48.8774 339.729 48.8774C325.04 48.8774 313.895 55.3991 304.889 62.1843V50.3829L303.986 50.77C297.884 53.3722 291.507 55.2862 284.98 56.469L272.851 58.6734V67.8457L273.738 68.0016C280.706 69.2328 283.819 71.0178 283.819 78.3406V129.525C283.819 136.627 280.83 138.455 273.684 
1288140.09L272.851 140.283V149.74H316.293V140.24L315.411 140.079C308.868 138.891 305.755 136.977 305.755 129.31V71.4748C313.266 67.7059 320.938 65.8672 329.196 65.8672C342.88 65.8672 348.982 73.2975 348.982 89.9538V129.31C348.982 136.944 345.799 138.864 339.111 140.079L338.229 140.24V149.74H381.671V140.283L380.838 140.09C373.692 138.455 370.708 136.627 370.708 129.525H370.698Z",fill:e||"currentColor"}),T.jsx("path",{d:"M536.59 60.0067V50.3882H501.75V60.1734L502.713 60.2756C506.584 60.6949 509.036 61.7595 510.208 63.5337C511.272 65.1413 511.331 67.4209 510.401 70.507L492.906 128.283L468.341 51.6785H453.013L427.829 128.277L410.743 70.0984C409.893 67.0822 409.92 65.0284 410.823 63.6305C411.888 61.9799 414.388 60.9154 418.684 60.2702L419.598 60.1304V50.3882H376.801V59.9261L377.467 60.2003C383.376 62.6466 384.876 64.894 386.968 71.3834L413.882 149.746H434.13L456.583 84.0504L478.825 149.746H499.293L525.778 71.3726C527.977 64.7703 530.697 61.7541 535.816 60.2379L536.585 60.0121L536.59 60.0067Z",fill:e||"currentColor"}),T.jsx("path",{d:"M582.59 48.8823C569.348 48.8823 557.337 53.99 548.761 63.2591C539.938 72.797 535.277 85.8242 535.277 100.927C535.277 116.029 539.809 128.186 548.39 137.336C556.804 146.31 568.799 151.251 582.16 151.251C595.52 151.251 608.139 146.068 616.924 136.664C625.709 127.261 630.548 114.035 630.548 99.4267C630.548 70.141 610.381 48.8877 582.59 48.8877V48.8823ZM587.655 140.6C572.848 142.218 561.476 126.696 558.675 101.061C557.423 89.5985 558.487 79.6574 561.756 72.3077C565.063 64.8666 570.52 60.5278 577.531 59.7643C592.467 58.1353 603.902 73.4636 606.677 98.8245C608.747 117.793 604.838 138.729 587.66 140.605L587.655 140.6Z",fill:e||"currentColor"}),T.jsx("path",{d:"M737.348 129.525V0.0644531C730.519 2.91937 723.358 4.91405 716.035 6.0001L704.658 7.68294V16.8821L705.546 17.038C712.514 18.2693 715.627 20.0542 715.627 27.377V129.53C715.627 136.633 712.637 138.461 705.497 140.095L704.664 140.289V149.746H748.321V140.294L747.493 140.101C740.342 138.418 737.353 136.579 737.353 129.536L737.348 129.525Z",fill:e||"currentColor"}),T.jsx("path",{d:"M851.837 133.622C843.981 132.563 841.584 130.095 841.584 123.073V0.0644531C834.589 2.92475 827.32 5.06997 819.895 6.46248L808.679 8.57006V17.7424L809.567 17.8983C816.534 19.1295 819.647 20.9145 819.647 28.2373V51.8347C817.024 50.5282 813.669 49.5174 809.755 49.1948C794.717 47.9582 780.372 54.6251 769.512 64.4802C758.404 74.5611 752.285 88.1152 752.285 102.643C752.285 134.267 776.593 151.106 794.136 151.106C794.136 151.106 810.62 151.848 822.153 136.036L822.244 139.036V150.38C829.513 147.52 837.073 145.456 844.788 144.224L852.772 142.95V133.74L851.842 133.616L851.837 133.622ZM803.728 135.047C797.045 134.939 790.26 131.407 785.104 125.364C780.818 120.337 775.705 111.223 775.705 96.352C775.705 61.7167 796.598 61.3081 800.97 61.2973C805.292 61.2865 818.373 63.9587 820.325 78.1687L820.416 77.6365L821.809 124.326C817.76 130.514 810.54 135.041 803.733 135.041L803.728 135.047Z",fill:e||"currentColor"}),T.jsx("path",{d:"M701.809 49.6946C699.718 49.3129 697.551 48.9204 694.621 48.9204C682.18 48.9204 673.438 56.2701 668.303 71.2113L668.077 50.3882L667.174 50.7753C661.072 53.3775 654.695 55.2916 648.168 56.4744L636.039 58.6787V67.851L636.926 68.007C643.894 69.2382 647.007 71.0232 647.007 78.3459V129.53C647.007 136.632 644.018 138.46 636.878 140.095L636.044 140.288V149.746H679.916V140.245L679.035 140.084C672.346 138.869 668.948 136.869 668.948 129.315L668.653 102.191C668.873 85.1526 676.685 68.0822 694.255 68.0822C697.223 68.0822 699.282 68.3457 701.374 68.9909L702.6 69.3672V49.8344L701.82 49.6946H701.809Z",fill:e||"currentColor"})]}),T.jsx("defs",{children:T.jsx("clipPath",{id:"clip0_1848_799",children:T.jsx("rect",{width:"852.771",height:"167.451",fill:"white"})})})]}),LD=Di(T.jsx("path",{d:"M22.6 11.29 20 8.69V5c0-.55-.45-1-1-1h-3.69l-2.6-2.6a.996.996 0 0 0-1.41 0L8.69 4H5c-.55 0-1 .45-1 1v3.69l-2.6 2.6c-.39.39-.39 1.02 0 1.41L4 15.3V19c0 .55.45 1 1 1h3.69l2.6 2.6c.39.39 1.02.39 1.41 0l2.6-2.6H19c.55 0 1-.45 1-1v-3.69l2.6-2.6c.39-.39.39-1.03 0-1.42m-4.68 1.69c-.34 2.12-1.85 3.94-3.88 4.66-1.21.43-2.41.45-3.5.18-.41-.1-.48-.65-.13-.9C11.98 15.84 13 14.04 13 12s-1.02-3.84-2.58-4.92c-.35-.24-.29-.79.13-.9 1.09-.27 2.29-.25 3.5.18 2.02.72 3.54 2.54 3.88 4.66.05.33.07.66.07.98-.01.32-.03.65-.08.98"})),PD=Di(T.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),gg=f.createContext({mode:"",toggleColorMode:()=>{},preference:"system",setPreference:e=>{}}),UD=({children:e,forceColorMode:t})=>{const[r,n]=f.useState(()=>{const u=localStorage.getItem("colorMode");return u==="light"||u==="dark"?u:"system"}),o=zf("(prefers-color-scheme: dark)"),a=t!=null?t:r==="system"?o?"dark":"light":r,{setIsUniqueUser:i}=kD(),s=f.useRef(i);f.useEffect(()=>{localStorage.getItem(co)?s.current(!1):s.current(!0)},[]),f.useEffect(()=>{r==="system"?localStorage.removeItem("colorMode"):localStorage.setItem("colorMode",r)},[r]),f.useEffect(()=>{var u;(u=document.querySelector("meta[name='color-scheme']"))==null||u.setAttribute("content",a)},[a]);const l=f.useMemo(()=>({toggleColorMode:()=>n(a==="light"?"dark":"light"),mode:a,preference:r,setPreference:n}),[a,r]),c=f.useMemo(()=>
1288wi(Pm(MI,xI(a))),[a]);return T.jsx(Tl,{theme:c,children:T.jsx(gg.Provider,{value:l,children:e})})},BD=Ze(e=>T.jsx(Um,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({width:48,height:28,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,display:"flex",alignItems:"center",transitionDuration:"300ms",backgroundColor:`${e.palette.mode==="dark"?F.gray[900]:F.gray[200]}!important`,"& + .MuiSwitch-track":{backgroundColor:`${e.palette.mode==="dark"?ke(F.gray[900],.5):ke(F.gray[200],.5)}!important`,opacity:"1!important",border:0},"& .MuiSwitch-thumb":{backgroundColor:F.gray[100]},"&.Mui-checked":{transform:"translateX(22px)",color:"#fff","&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{outline:"2px dashed",outlineColor:e.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{marginTop:2,boxSizing:"border-box",width:20,height:20},"& .MuiSwitch-track":{borderRadius:26/2,opacity:1,transition:e.transitions.create(["background-color"],{duration:500}),"&::before, &::after":{content:'""',position:"absolute",top:"50%",transform:"translateY(-50%)",width:16,height:16},"&::before":{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewB
1288ox="0 0 24 24"><path  fill="${encodeURIComponent(F.gray[500])}" d="m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4m-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z" ></path></svg>')`,left:6},"&::after":{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24" ><path fill="${encodeURIComponent(e.palette.text.disabled)}" d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2"></path></svg>')`,right:6}}})),wM=({variant:e})=>{const{toggleColorMode:t,mode:r,preference:n,setPreference:o}=f.useContext(gg);return e==="segmented"?T.jsx(l2,{className:"DarkModeToggle",exclusive:!0,value:n,"aria-label":"Theme preference",onChange:(a,i)=>{i&&o(i)},sx:{border:1,borderColor:"divider",borderRadius:je.full,bgcolor:"transparent",p:.25,gap:0,"& .MuiToggleButton-root":{borderRadius:`${je.full} !important`,width:32,height:32,minWidth:32,p:0}},children:[{value:"system",icon:tr.faDesktop},{value:"light",icon:tr.faSun},{value:"dark",icon:tr.faMoon}].map(a=>T.jsx(i2,{value:a.value,"aria-label":`Use ${a.value} theme`,title:`Use ${a.value} theme`,children:T.jsx(lr,{icon:a.icon,size:"sm"})},a.value))}):T.jsx(vl,{title:`Toggle ${r==="dark"?"light":"dark"} mode`,children:e==="switch"?T.jsx(BD,{className:"dark-mode-toggle","aria-label":"Dark mode toggle",onChange:()=>t(),onKeyDown:a=>{a.key==="Enter"&&t()},checked:r==="dark",size:"small"}):T.jsx(Kn,{onClick:()=>t(),color:"inherit","aria-label":"Dark mode toggle",children:r==="dark"?T.jsx(PD,{fontSize:"small",sx:{color:F.gray[500]}}):T.jsx(LD,{fontSize:"small",sx:{color:a=>a.palette.info.light}})})})};var Zr=(e=>(e[e.STATE_UNSPECIFIED=0]="STATE_UNSPECIFIED",e[e.SELF_SERVE_BASIC_ACCESS=1]="SELF_SERVE_BASIC_ACCESS",e[e.SELF_SERVE_INVALID_CC_NO_CREDITS=2]="SELF_SERVE_INVALID_CC_NO_CREDITS",e[e.SELF_SERVE_VALID_CC=4]="SELF_SERVE_VALID_CC",e[e.SELF_SERVE_INVALID_CC_WITH_CREDITS=8]="SELF_SERVE_INVALID_CC_WITH_CREDITS",e[e.FULL_STUDIO_ACCESS=16]="FULL_STUDIO_ACCESS",e[e.FULL_PORTAL_ACCESS=32]="FULL_PORTAL_ACCESS",e[e.FULL_STUDIO_AND_PORTAL_ACCESS=48]="FULL_STUDIO_AND_PORTAL_ACCESS",e))(Zr||{}),Ql=(e=>(e[e.CHARACTER_STUDIO_ACCESS=1]="CHARACTER_STUDIO_ACCESS",e[e.DOCS_ACCESS=2]="DOCS_ACCESS",e[e.TTS_PLAYGROUND=4]="TTS_PLAYGROUND",e[e.VOICE_CLONING_ACCESS=8]="VOICE_CLONING_ACCESS",e[e.PORTAL_BILLING_USAGE_ACCESS=16]="PORTAL_BILLING_USAGE_ACCESS",e))(Ql||{});const FD=1,$D=30,GD=Object.values(Ql).filter(e=>typeof e=="number").reduce((e,t)=>e|t,0),Fa=14,HD={0:0,4:Fa,8:Fa,2:Fa,1:Fa,16:FD,32:$D,48:GD};var en=(e=>(e[e.BASIC=1]="BASIC",e[e.GROWTH=2]="GROWTH",e[e.PREMIUM=4]="PREMIUM",e[e.ENTERPRISE=8]="ENTERPRISE",e))(en||{});const Xl=f.createContext(null),WD=(e,t)=>(e&t)===t,jD=(e,t)=>(e&t)!==0,zD=e=>{const t=[];for(const r in Ql){if(isNaN(Number(r)))continue;const n=Number(r);(e&n)===n&&t.push(n)}return t},DM=e=>{const t=Xe.useContext(Xl);if(!t)throw Error("UserStateContext is missing");return{...t}},NM=e=>{const t=Xe.useContext(Xl);if(!t)throw Error("UserStateContext is missing");return{...t}};var mg=(e=>(e[e.DELETE_WORKSPACE=1]="DELETE_WORKSPACE",e[e.MODIFY_ROLES=2]="MODIFY_ROLES",e[e.EDIT_WORKSPACE_NAME=4]="EDIT_WORKSPACE_NAME",e[e.MANAGE_RUNTIME_KEYS=8]="MANAGE_RUNTIME_KEYS",e[e.PUSH_TO_WORKSPACE=16]="PUSH_TO_WORKSPACE",e[e.EDIT_STUDIO_ASSETS=32]="EDIT_STUDIO_ASSETS",e[e.CHAT_WITH_CHARACTER=64]="CHAT_WITH_CHARACTER",e[e.PULL_FROM_WORKSPACE=128]="PULL_FROM_WORKSPACE",e[e.VIEW_ASSETS=256]="VIEW_ASSETS",e[e.VIEW_RUNTIME_KEYS=512]="VIEW_RUNTIME_KEYS",e[e.VIEW_TEAM_ACCESS_LEVEL=2048]="VIEW_TEAM_ACCESS_LEVEL",e[e.MAKE_RUNTIME_CONNECTIONS=4096]="MAKE_RUNTIME_CONNECTIONS",e))(mg||{});const kM={[ro.ROLE_UNSPECIFIED]:0,[ro.ROLE_OWNER]:7167,[ro.ROLE_ADMIN]:7166,[ro.ROLE_DEVELOPER]:7152,[ro.ROLE_VIEWER]:7104},VD=f.createContext(null),xM=(e,t)=>(e&t)!==0,MM=(e,t)=>
1288(e&t)===t,LM=e=>{const t=[];for(const r in mg){if(isNaN(Number(r)))continue;const n=Number(r);(e&n)===n&&t.push(n)}return t},PM=e=>{const t=Xe.useContext(VD);if(!t)throw Error("RoleBasedWorkspaceAccessControlContext is missing");if(t.roleUnspecified)throw Error("There is not enough information in the RoleBasedWorkspaceAccessControlContext to determine the user's role, or role is unspecified");return e?t.hasPermission(e):{...t}};function $a(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var As={exports:{}};/*!
1289    localForage -- Offline Storage, Improved
1290    Version 1.10.0
1291    https://localforage.github.io/localForage
1292    (c) 2013-2017 Mozilla, Apache License 2.0
1293*/var Sd;function KD(){return Sd||(Sd=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,o,a){function i(c,u){if(!o[c]){if(!n[c]){var d=typeof $a=="function"&&$a;if(!u&&d)return d(c,!0);if(s)return s(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var p=o[c]={exports:{}};n[c][0].call(p.exports,function(y){var S=n[c][1][y];return i(S||y)},p,p.exports,r,n,o,a)}return o[c].exports}for(var s=typeof $a=="function"&&$a,l=0;l<a.length;l++)i(a[l]);return i})({1:[function(r,n,o){(function(a){var i=a.MutationObserver||a.WebKitMutationObserver,s;if(i){var l=0,c=new i(y),u=a.document.createTextNode("");c.observe(u,{characterData:!0}),s=function(){u.data=l=++l%2}}else if(!a.setImmediate&&typeof a.MessageChannel!="undefined"){var d=new a.MessageChannel;d.port1.onmessage=y,s=function(){d.port2.postMessage(0)}}else"document"in a&&"onreadystatechange"in a.document.createElement("script")?s=function(){var b=a.document.createElement("script");b.onreadystatechange=function(){y(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},a.document.documentElement.appendChild(b)}:s=function(){setTimeout(y,0)};var h,p=[];function y(){h=!0;for(var b,A,x=p.length;x;){for(A=p,p=[],b=-1;++b<x;)A[b]();x=p.length}h=!1}n.exports=S;function S(b){p.push(b)===1&&!h&&s()}}).call(this,typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(r,n,o){var a=r(1);function i(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];n.exports=d;function d(C){if(typeof C!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,C!==i&&S(this,C)}d.prototype.catch=function(C){return this.then(null,C)},d.prototype.then=function(C,P){if(typeof C!="function"&&this.state===c||typeof P!="function"&&this.state===l)return this;var M=new this.constructor(i);if(this.state!==u){var v=this.state===c?C:P;p(M,v,this.outcome)}else this.queue.push(new h(M,C,P));return M};function h(C,P,M){this.promise=C,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(C){s.resolve(this.promise,C)},h.prototype.otherCallFulfilled=function(C){p(this.promise,this.onFulfilled,C)},h.prototype.callRejected=function(C){s.reject(this.promise,C)},h.prototype.otherCallRejected=function(C){p(this.promise,this.onRejected,C)};function p(C,P,M){a(function(){var v;try{v=P(M)}catch($){return s.reject(C,$)}v===C?s.reject(C,new TypeError("Cannot resolve promise with itself")):s.resolve(C,v)})}s.resolve=function(C,P){var M=b(y,P);if(M.status==="error")return s.reject(C,M.value);var v=M.value;if(v)S(C,v);
vendor: 25,320 bytes, line 1293
1293else{C.state=c,C.outcome=P;for(var $=-1,W=C.queue.length;++$<W;)C.queue[$].callFulfilled(P)}return C},s.reject=function(C,P){C.state=l,C.outcome=P;for(var M=-1,v=C.queue.length;++M<v;)C.queue[M].callRejected(P);return C};function y(C){var P=C&&C.then;if(C&&(typeof C=="object"||typeof C=="function")&&typeof P=="function")return function(){P.apply(C,arguments)}}function S(C,P){var M=!1;function v(te){M||(M=!0,s.reject(C,te))}function $(te){M||(M=!0,s.resolve(C,te))}function W(){P($,v)}var oe=b(W);oe.status==="error"&&v(oe.value)}function b(C,P){var M={};try{M.value=C(P),M.status="success"}catch(v){M.status="error",M.value=v}return M}d.resolve=A;function A(C){return C instanceof this?C:s.resolve(new this(i),C)}d.reject=x;function x(C){var P=new this(i);return s.reject(P,C)}d.all=k;function k(C){var P=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=C.length,v=!1;if(!M)return this.resolve([]);for(var $=new Array(M),W=0,oe=-1,te=new this(i);++oe<M;)se(C[oe],oe);return te;function se(ie,ee){P.resolve(ie).then(de,function(Y){v||(v=!0,s.reject(te,Y))});function de(Y){$[ee]=Y,++W===M&&!v&&(v=!0,s.resolve(te,$))}}}d.race=B;function B(C){var P=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=C.length,v=!1;if(!M)return this.resolve([]);for(var $=-1,W=new this(i);++$<M;)oe(C[$]);return W;function oe(te){P.resolve(te).then(function(se){v||(v=!0,s.resolve(W,se))},function(se){v||(v=!0,s.reject(W,se))})}}},{1:1}],3:[function(r,n,o){(function(a){typeof a.Promise!="function"&&(a.Promise=r(2))}).call(this,typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(r,n,o){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};function i(g,E){if(!(g instanceof E))throw new TypeError("Cannot call a class as a function")}function s(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(g){return}}var l=s();function c(){try{if(!l||!l.open)return!1;var g=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),E=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||E)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(m){return!1}}function u(g,E){g=g||[],E=E||{};try{return new Blob(g,E)}catch(w){if(w.name!=="TypeError")throw w;for(var m=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,I=new m,N=0;N<g.length;N+=1)I.append(g[N]);return I.getBlob(E.type)}}typeof Promise=="undefined"&&r(3);var d=Promise;function h(g,E){E&&g.then(function(m){E(null,m)},function(m){E(m)})}function p(g,E,m){typeof E=="function"&&g.then(E),typeof m=="function"&&g.catch(m)}function y(g){return typeof g!="string"&&(console.warn(g+" used as a key, but it is not a string."),g=String(g)),g}function S(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var b="local-forage-detect-blob-support",A=void 0,x={},k=Object.prototype.toString,B="readonly",C="readwrite";function P(g){for(var E=g.length,m=new ArrayBuffer(E),I=new Uint8Array(m),N=0;N<E;N++)I[N]=g.charCodeAt(N);return m}function M(g){return new d(function(E){var m=g.transaction(b,C),I=u([""]);m.objectStore(b).put(I,"key"),m.onabort=function(N){N.preventDefault(),N.stopPropagation(),E(!1)},m.oncomplete=function(){var N=navigator.userAgent.match(/Chrome\/(\d+)/),w=navigator.userAgent.match(/Edge\//);E(w||!N||parseInt(N[1],10)>=43)}}).catch(function(){return!1})}function v(g){return typeof A=="boolean"?d.resolve(A):M(g).then(function(E){return A=E,A})}function $(g){var E=x[g.name],m={};m.promise=new d(function(I,N){m.resolve=I,m.reject=N}),E.deferredOperations.push(m),E.dbReady?E.dbReady=E.dbReady.then(function(){return m.promise}):E.dbReady=m.promise}function W(g){var E=x[g.name],m=E.deferredOperations.pop();if(m)return m.resolve(),m.promise}function oe(g,E){var m=x[g.name],I=m.deferredOperations.pop();if(I)return I.reject(E),I.promise}function te(g,E){return new d(function(m,I){if(x[g.name]=x[g.name]||ye(),g.db)if(E)$(g),g.db.close();else return m(g.db);var N=[g.name];E&&N.push(g.version);var w=l.open.apply(l,N);E&&(w.onupgradeneeded=function(H){var G=w.result;try{G.createObjectStore(g.storeName),H.oldVersion<=1&&G.createObjectStore(b)}catch(K){if(K.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+H.oldVersion+" to version "+H.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw K}}),w.onerror=function(H){H.preventDefault(),I(w.error)},w.onsuccess=function(){var H=w.result;H.onversionchange=function(G){G.target.close()},m(H),W(g)}})}function se(g){return te(g,!1)}function ie(g){return te(g,!0)}function ee(g,E){if(!g.db)return!0;var m=!g.db.objectStoreNames.contains(g.storeName),I=g.version<g.db.version,N=g.version>g.db.version;if(I&&(g.version!==E&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),N||m){if(m){var w=g.db.version+1;w>g.version&&(g.version=w)}return!0}return!1}function de(g){return new d(function(E,m){var I=new FileReader;I.onerror=m,I.onloadend=function(N){var w=btoa(N.target.result||"");E({__local_forage_encoded_blob:!0,data:w,type:g.type})},I.readAsBinaryString(g)})}function Y(g){var E=P(atob(g.data));return u([E],{type:g.type})}function ce(g){return g&&g.__local_forage_encoded_blob}function he(g){var E=this,m=E._initReady().then(function(){var I=x[E._dbInfo.name];if(I&&I.dbReady)return I.dbReady});return p(m,g,g),m}function Oe(g){$(g);for(var E=x[g.name],m=E.forages,I=0;I<m.length;I++){var N=m[I];N._dbInfo.db&&(N._dbInfo.db.close(),N._dbInfo.db=null)}return g.db=null,se(g).then(function(w){return g.db=w,ee(g)?ie(g):w}).then(function(w){g.db=E.db=w;for(var H=0;H<m.length;H++)m[H]._dbInfo.db=w}).catch(function(w){throw oe(g,w),w})}function Ce(g,E,m,I){I===void 0&&(I=1);try{var N=g.db.transaction(g.storeName,E);m(null,N)}catch(w){if(I>0&&(!g.db||w.name==="InvalidStateError"||w.name==="NotFoundError"))return d.resolve().then(function(){if(!g.db||w.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),ie(g)}).then(function(){return Oe(g).then(function(){Ce(g,E,m,I-1)})}).catch(m);m(w)}}function ye(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Ke(g){var E=this,m={db:null};if(g)for(var I in g)m[I]=g[I];var N=x[m.name];N||(N=ye(),x[m.name]=N),N.forages.push(E),E._initReady||(E._initReady=E.ready,E.ready=he);var w=[];function H(){return d.resolve()}for(var G=0;G<N.forages.length;G++){var K=N.forages[G];K!==E&&w.push(K._initReady().catch(H))}var X=N.forages.slice(0);return d.all(w).then(function(){return m.db=N.db,se(m)}).then(function(re){return m.db=re,ee(m,E._defaultConfig.version)?ie(m):re}).then(function(re){m.db=N.db=re,E._dbInfo=m;for(var pe=0;pe<X.length;pe++){var Pe=X[pe];Pe!==E&&(Pe._dbInfo.db=m.db,Pe._dbInfo.version=m.version)}})}function me(g,E){var m=this;g=y(g);var I=new d(function(N,w){m.ready().then(function(){Ce(m._dbInfo,B,function(H,G){if(H)return w(H);try{var K=G.objectStore(m._dbInfo.storeName),X=K.get(g);X.onsuccess=function(){var re=X.result;re===void 0&&(re=null),ce(re)&&(re=Y(re)),N(re)},X.onerror=function(){w(X.error)}}catch(re){w(re)}})}).catch(w)});return h(I,E),I}function ne(g,E){var m=this,I=new d(function(N,w){m.ready().then(function(){Ce(m._dbInfo,B,function(H,G){if(H)return w(H);try{var K=G.objectStore(m._dbInfo.storeName),X=K.openCursor(),re=1;X.onsuccess=function(){var pe=X.result;if(pe){var Pe=pe.value;ce(Pe)&&(Pe=Y(Pe));var qe=g(Pe,pe.key,re++);qe!==void 0?N(qe):pe.continue()}else N()},X.onerror=function(){w(X.error)}}catch(pe){w(pe)}})}).catch(w)});return h(I,E),I}function ae(g,E,m){var I=this;g=y(g);var N=new d(function(w,H){var G;I.ready().then(function(){return G=I._dbInfo,k.call(E)==="[object Blob]"?v(G.db).then(function(K){return K?E:de(E)}):E}).then(function(K){Ce(I._dbInfo,C,function(X,re){if(X)return H(X);try{var pe=re.objectStore(I._dbInfo.storeName);K===null&&(K=void 0);var Pe=pe.put(K,g);re.oncomplete=function(){K===void 0&&(K=null),w(K)},re.onabort=re.onerror=function(){var qe=Pe.error?Pe.error:Pe.transaction.error;H(qe)}}catch(qe){H(qe)}})}).catch(H)});return h(N,m),N}function Me(g,E){var m=this;g=y(g);var I=new d(function(N,w){m.ready().then(function(){Ce(m._dbInfo,C,function(H,G){if(H)return w(H);try{var K=G.objectStore(m._dbInfo.storeName),X=K.delete(g);G.oncomplete=function(){N()},G.onerror=function(){w(X.error)},G.onabort=function(){var re=X.error?X.error:X.transaction.error;w(re)}}catch(re){w(re)}})}).catch(w)});return h(I,E),I}function rt(g){var E=this,m=new d(function(I,N){E.ready().then(function(){Ce(E._dbInfo,C,function(w,H){if(w)return N(w);try{var G=H.objectStore(E._dbInfo.storeName),K=G.clear();H.oncomplete=function(){I()},H.onabort=H.onerror=function(){var X=K.error?K.error:K.transaction.error;N(X)}}catch(X){N(X)}})}).catch(N)});return h(m,g),m}function lt(g){var E=this,m=new d(function(I,N){E.ready().then(function(){Ce(E._dbInfo,B,function(w,H){if(w)return N(w);try{var G=H.objectStore(E._dbInfo.storeName),K=G.count();K.onsuccess=function(){I(K.result)},K.onerror=function(){N(K.error)}}catch(X){N(X)}})}).catch(N)});return h(m,g),m}function Ot(g,E){var m=this,I=new d(function(N,w){if(g<0){N(null);return}m.ready().then(function(){Ce(m._dbInfo,B,function(H,G){if(H)return w(H);try{var K=G.objectStore(m._dbInfo.storeName),X=!1,re=K.openKeyCursor();re.onsuccess=function(){var pe=re.result;if(!pe){N(null);return}g===0||X?N(pe.key):(X=!0,pe.advance(g))},re.onerror=function(){w(re.error)}}catch(pe){w(pe)}})}).catch(w)});return h(I,E),I}function nr(g){var E=this,m=new d(function(I,N){E.ready().then(function(){Ce(E._dbInfo,B,function(w,H){if(w)return N(w);try{var G=H.objectStore(E._dbInfo.storeName),K=G.openKeyCursor(),X=[];K.onsuccess=function(){var re=K.result;if(!re){I(X);return}X.push(re.key),re.continue()},K.onerror=function(){N(K.error)}}catch(re){N(re)}})}).catch(N)});return h(m,g),m}function $e(g,E){E=S.apply(this,arguments);var m=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||m.name,g.storeName=g.storeName||m.storeName);var I=this,N;if(!g.name)N=d.reject("Invalid arguments");else{var w=g.name===m.name&&I._dbInfo.db,H=w?d.resolve(I._dbInfo.db):se(g).then(function(G){var K=x[g.name],X=K.forages;K.db=G;for(var re=0;re<X.length;re++)X[re]._dbInfo.db=G;return G});g.storeName?N=H.then(function(G){if(G.objectStoreNames.contains(g.storeName)){var K=G.version+1;$(g);var X=x[g.name],re=X.forages;G.close();for(var pe=0;pe<re.length;pe++){var Pe=re[pe];Pe._dbInfo.db=null,Pe._dbInfo.version=K}var qe=new d(function(ze,ft){var z=l.open(g.name,K);z.onerror=function(_){var L=z.result;L.close(),ft(_)},z.onupgradeneeded=function(){var _=z.result;_.deleteObjectStore(g.storeName)},z.onsuccess=function(){var _=z.result;_.close(),ze(_)}});return qe.then(function(ze){X.db=ze;for(var ft=0;ft<re.length;ft++){var z=re[ft];z._dbInfo.db=ze,W(z._dbInfo)}}).catch(function(ze){throw(oe(g,ze)||d.resolve()).catch(function(){}),ze})}}):N=H.then(function(G){$(g);var K=x[g.name],X=K.forages;G.close();for(var re=0;re<X.length;re++){var pe=X[re];pe._dbInfo.db=null}var Pe=new d(function(qe,ze){var ft=l.deleteDatabase(g.name);ft.onerror=function(){var z=ft.result;z&&z.close(),ze(ft.error)},ft.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},ft.onsuccess=function(){var z=ft.result;z&&z.close(),qe(z)}});return Pe.then(function(qe){K.db=qe;for(var ze=0;ze<X.length;ze++){var ft=X[ze];W(ft._dbInfo)}}).catch(function(qe){throw(oe(g,qe)||d.resolve()).catch(function(){}),qe})})}return h(N,E),N}var et={_driver:"asyncStorage",_initStorage:Ke,_support:c(),iterate:ne,getItem:me,setItem:ae,removeItem:Me,clear:rt,length:lt,key:Ot,keys:nr,dropInstance:$e};function Le(){return typeof openDatabase=="function"}var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Be="~~local_forage_type~",ct=/^~~local_forage_type~([^~]+)~/,Q="__lfsc__:",Ye=Q.length,ot="arbf",Dt="blob",Xt="si08",dr="ui08",At="uic8",yt="si16",Qe="si32",or="ur16",Jt="ui32",Ct="fl32",jt="fl64",Ar=Ye+ot.length,qr=Object.prototype.toString;function wr(g){var E=g.length*.75,m=g.length,I,N=0,w,H,G,K;g[g.length-1]==="="&&(E--,g[g.length-2]==="="&&E--);var X=new ArrayBuffer(E),re=new Uint8Array(X);for(I=0;I<m;I+=4)w=Ne.indexOf(g[I]),H=Ne.indexOf(g[I+1]),G=Ne.indexOf(g[I+2]),K=Ne.indexOf(g[I+3]),re[N++]=w<<2|H>>4,re[N++]=(H&15)<<4|G>>2,re[N++]=(G&3)<<6|K&63;return X}function hn(g){var E=new Uint8Array(g),m="",I;for(I=0;I<E.length;I+=3)m+=Ne[E[I]>>2],m+=Ne[(E[I]&3)<<4|E[I+1]>>4],m+=Ne[(E[I+1]&15)<<2|E[I+2]>>6],m+=Ne[E[I+2]&63];return E.length%3===2?m=m.substring(0,m.length-1)+"=":E.length%3===1&&(m=m.substring(0,m.length-2)+"=="),m}function ar(g,E){var m="";if(g&&(m=qr.call(g)),g&&(m==="[object ArrayBuffer]"||g.buffer&&qr.call(g.buffer)==="[object ArrayBuffer]")){var I,N=Q;g instanceof ArrayBuffer?(I=g,N+=ot):(I=g.buffer,m==="[object Int8Array]"?N+=Xt:m==="[object Uint8Array]"?N+=dr:m==="[object Uint8ClampedArray]"?N+=At:m==="[object Int16Array]"?N+=yt:m==="[object Uint16Array]"?N+=or:m==="[object Int32Array]"?N+=Qe:m==="[object Uint32Array]"?N+=Jt:m==="[object Float32Array]"?N+=Ct:m==="[object Float64Array]"?N+=jt:E(new Error("Failed to get type for BinaryArray"))),E(N+hn(I))}else if(m==="[object Blob]"){var w=new FileReader;w.onload=function(){var H=Be+g.type+"~"+hn(this.result);E(Q+Dt+H)},w.readAsArrayBuffer(g)}else try{E(JSON.stringify(g))}catch(H){console.error("Couldn't convert value into a JSON string: ",g),E(null,H)}}function kn(g){if(g.substring(0,Ye)!==Q)return JSON.parse(g);var E=g.substring(Ar),m=g.substring(Ye,Ar),I;if(m===Dt&&ct.test(E)){var N=E.match(ct);I=N[1],E=E.substring(N[0].length)}var w=wr(E);switch(m){case ot:return w;case Dt:return u([w],{type:I});case Xt:return new Int8Array(w);case dr:return new Uint8Array(w);case At:return new Uint8ClampedArray(w);case yt:return new Int16Array(w);case or:return new Uint16Array(w);case Qe:return new Int32Array(w);case Jt:return new Uint32Array(w);case Ct:return new Float32Array(w);case jt:return new Float64Array(w);default:throw new Error("Unkown type: "+m)}}var Pr={serialize:ar,deserialize:kn,stringToBuffer:wr,bufferToString:hn};function Ur(g,E,m,I){g.executeSql("CREATE TABLE IF NOT EXISTS "+E.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],m,I)}function Br(g){var E=this,m={db:null};if(g)for(var I in g)m[I]=typeof g[I]!="string"?g[I].toString():g[I];var N=new d(function(w,H){try{m.db=openDatabase(m.name,String(m.version),m.description,m.size)}catch(G){return H(G)}m.db.transaction(function(G){Ur(G,m,function(){E._dbInfo=m,w()},function(K,X){H(X)})},H)});return m.serializer=Pr,N}function Et(g,E,m,I,N,w){g.executeSql(m,I,N,function(H,G){G.code===G.SYNTAX_ERR?H.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[E.storeName],function(K,X){X.rows.length?w(K,G):Ur(K,E,function(){K.executeSql(m,I,N,w)},w)},w):w(H,G)},w)}function Fr(g,E){var m=this;g=y(g);var I=new d(function(N,w){m.ready().then(function(){var H=m._dbInfo;H.db.transaction(function(G){Et(G,H,"SELECT * FROM "+H.storeName+" WHERE key = ? LIMIT 1",[g],function(K,X){var re=X.rows.length?X.rows.item(0).value:null;re&&(re=H.serializer.deserialize(re)),N(re)},function(K,X){w(X)})})}).catch(w)});return h(I,E),I}function xn(g,E){var m=this,I=new d(function(N,w){m.ready().then(function(){var H=m._dbInfo;H.db.transaction(function(G){Et(G,H,"SELECT * FROM "+H.storeName,[],function(K,X){for(var re=X.rows,pe=re.length,Pe=0;Pe<pe;Pe++){var qe=re.item(Pe),ze=qe.value;if(ze&&(ze=H.serializer.deserialize(ze)),ze=g(ze,qe.key,Pe+1),ze!==void 0){N(ze);return}}N()},function(K,X){w(X)})})}).catch(w)});return h(I,E),I}function Qr(g,E,m,I){var N=this;g=y(g);var w=new d(function(H,G){N.ready().then(function(){E===void 0&&(E=null);var K=E,X=N._dbInfo;X.serializer.serialize(E,function(re,pe){pe?G(pe):X.db.transaction(function(Pe){Et(Pe,X,"INSERT OR REPLACE INTO "+X.storeName+" (key, value) VALUES (?, ?)",[g,re],function(){H(K)},function(qe,ze){G(ze)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(I>0){H(Qr.apply(N,[g,K,m,I-1]));return}G(Pe)}})})}).catch(G)});return h(w,m),w}function Mn(g,E,m){return Qr.apply(this,[g,E,m,1])}function Ln(g,E){var m=this;g=y(g);var I=new d(function(N,w){m.ready().then(function(){var H=m._dbInfo;H.db.transaction(function(G){Et(G,H,"DELETE FROM "+H.storeName+" WHERE key = ?",[g],function(){N()},function(K,X){w(X)})})}).catch(w)});return h(I,E),I}function pn(g){var E=this,m=new d(function(I,N){E.ready().then(function(){var w=E._dbInfo;w.db.transaction(function(H){Et(H,w,"DELETE FROM "+w.storeName,[],function(){I()},function(G,K){N(K)})})}).catch(N)});return h(m,g),m}function Xr(g){var E=this,m=new d(function(I,N){E.ready().then(function(){var w=E._dbInfo;w.db.transaction(function(H){Et(H,w,"SELECT COUNT(key) as c FROM "+w.storeName,[],function(G,K){var X=K.rows.item(0).c;I(X)},function(G,K){N(K)})})}).catch(N)});return h(m,g),m}function Lt(g,E){var m=this,I=new d(function(N,w){m.ready().then(function(){var H=m._dbInfo;H.db.transaction(function(G){Et(G,H,"SELECT key FROM "+H.storeName+" WHERE id = ? LIMIT 1",[g+1],function(K,X){var re=X.rows.length?X.rows.item(0).key:null;N(re)},function(K,X){w(X)})})}).catch(w)});return h(I,E),I}function fr(g){var E=this,m=new d(function(I,N){E.ready().then(function(){var w=E._dbInfo;w.db.transaction(function(H){Et(H,w,"SELECT key FROM "+w.storeName,[],function(G,K){for(var X=[],re=0;re<K.rows.length;re++)X.push(K.rows.item(re).key);I(X)},function(G,K){N(K)})})}).catch(N)});return h(m,g),m}function gn(g){return new d(function(E,m){g.transaction(function(I){I.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(N,w){for(var H=[],G=0;G<w.rows.length;G++)H.push(w.rows.item(G).name);E({db:g,storeNames:H})},function(N,w){m(w)})},function(I){m(I)})})}function Pn(g,E){E=S.apply(this,arguments);var m=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||m.name,g.storeName=g.storeName||m.storeName);var I=this,N;return g.name?N=new d(function(w){var H;g.name===m.name?H=I._dbInfo.db:H=openDatabase(g.name,"","",0),g.storeName?w({db:H,storeNames:[g.storeName]}):w(gn(H))}).then(function(w){return new d(function(H,G){w.db.transaction(function(K){function X(qe){return new d(function(ze,ft){K.executeSql("DROP TABLE IF EXISTS "+qe,[],function(){ze()},function(z,_){ft(_)})})}for(var re=[],pe=0,Pe=w.storeNames.length;pe<Pe;pe++)re.push(X(w.storeNames[pe]));d.all(re).then(function(){H()}).catch(function(qe){G(qe)})},function(K){G(K)})})}):N=d.reject("Invalid arguments"),h(N,E),N}var Io={_driver:"webSQLStorage",_initStorage:Br,_support:Le(),iterate:xn,getItem:Fr,setItem:Mn,removeItem:Ln,clear:pn,length:Xr,key:Lt,keys:fr,dropInstance:Pn};function R(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(g){return!1}}function O(g,E){var m=g.name+"/";return g.storeName!==E.storeName&&(m+=g.storeName+"/"),m}function U(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch(E){return!0}}function j(){return!U()||localStorage.length>0}function J(g){var E=this,m={};if(g)for(var I in g)m[I]=g[I];return m.keyPrefix=O(g,E._defaultConfig),j()?(E._dbInfo=m,m.serializer=Pr,d.resolve()):d.reject()}function ue(g){var E=this,m=E.ready().then(function(){for(var I=E._dbInfo.keyPrefix,N=localStorage.length-1;N>=0;N--){var w=localStorage.key(N);w.indexOf(I)===0&&localStorage.removeItem(w)}});return h(m,g),m}function le(g,E){var m=this;g=y(g);var I=m.ready().then(function(){var N=m._dbInfo,w=localStorage.getItem(N.keyPrefix+g);return w&&(w=N.serializer.deserialize(w)),w});return h(I,E),I}function Re(g,E){var m=this,I=m.ready().then(function(){for(var N=m._dbInfo,w=N.keyPrefix,H=w.length,G=localStorage.length,K=1,X=0;X<G;X++){var re=localStorage.key(X);if(re.indexOf(w)===0){var pe=localStorage.getItem(re);if(pe&&(pe=N.serializer.deserialize(pe)),pe=g(pe,re.substring(H),K++),pe!==void 0)return pe}}});return h(I,E),I}function q(g,E){var m=this,I=m.ready().then(function(){var N=m._dbInfo,w;try{w=localStorage.key(g)}catch(H){w=null}return w&&(w=w.substring(N.keyPrefix.length)),w});return h(I,E),I}function fe(g){var E=this,m=E.ready().then(function(){for(var I=E._dbInfo,N=localStorage.length,w=[],H=0;H<N;H++){var G=localStorage.key(H);G.indexOf(I.keyPrefix)===0&&w.push(G.substring(I.keyPrefix.length))}return w});return h(m,g),m}function Se(g){var E=this,m=E.keys().then(function(I){return I.length});return h(m,g),m}function be(g,E){var m=this;g=y(g);var I=m.ready().then(function(){var N=m._dbInfo;localStorage.removeItem(N.keyPrefix+g)});return h(I,E),I}function _e(g,E,m){var I=this;g=y(g);var N=I.ready().then(function(){E===void 0&&(E=null);var w=E;return new d(function(H,G){var K=I._dbInfo;K.serializer.serialize(E,function(X,re){if(re)G(re);else try{localStorage.setItem(K.keyPrefix+g,X),H(w)}catch(pe){(pe.name==="QuotaExceededError"||pe.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G(pe),G(pe)}})})});return h(N,m),N}function Fe(g,E){if(E=S.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var m=this.config();g.name=g.name||m.name,g.storeName=g.storeName||m.storeName}var I=this,N;return g.name?N=new d(function(w){g.storeName?w(O(g,I._defaultConfig)):w(g.name+"/")}).then(function(w){for(var H=localStorage.length-1;H>=0;H--){var G=localStorage.key(H);G.indexOf(w)===0&&localStorage.removeItem(G)}}):N=d.reject("Invalid arguments"),h(N,E),N}var at={_driver:"localStorageWrapper",_initStorage:J,_support:R(),iterate:Re,getItem:le,setItem:_e,removeItem:be,clear:ue,length:Se,key:q,keys:fe,dropInstance:Fe},it=function(E,m){return E===m||typeof E=="number"&&typeof m=="number"&&isNaN(E)&&isNaN(m)},Ge=function(E,m){for(var I=E.length,N=0;N<I;){if(it(E[N],m))return!0;N++}return!1},we=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},vt={},st={},Pt={INDEXEDDB:et,WEBSQL:Io,LOCALSTORAGE:at},Nt=[Pt.INDEXEDDB._driver,Pt.WEBSQL._driver,Pt.LOCALSTORAGE._driver],hr=["dropInstance"],kt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(hr),ir={description:"",driver:Nt.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function mn(g,E){g[E]=function(){var m=arguments;return g.ready().then(function(){return g[E].apply(g,m)})}}function Zt(){for(var g=1;g<arguments.length;g++){var E=arguments[g];if(E)for(var m in E)E.hasOwnProperty(m)&&(we(E[m])?arguments[0][m]=E[m].slice():arguments[0][m]=E[m])}return arguments[0]}var Dr=(function(){function g(E){i(this,g);for(var m in Pt)if(Pt.hasOwnProperty(m)){var I=Pt[m],N=I._driver;this[m]=N,vt[N]||this.defineDriver(I)}this._defaultConfig=Zt({},ir),this._config=Zt({},this._defaultConfig,E),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return g.prototype.config=function(m){if((typeof m=="undefined"?"undefined":a(m))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var I in m){if(I==="storeName"&&(m[I]=m[I].replace(/\W/g,"_")),I==="version"&&typeof m[I]!="number")return new Error("Database version must be a number.");this._config[I]=m[I]}return"driver"in m&&m.driver?this.setDriver(this._config.driver):!0}else return typeof m=="string"?this._config[m]:this._config},g.prototype.defineDriver=function(m,I,N){var w=new d(function(H,G){try{var K=m._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!m._driver){G(X);return}for(var re=kt.concat("_initStorage"),pe=0,Pe=re.length;pe<Pe;pe++){var qe=re[pe],ze=!Ge(hr,qe);if((ze||m[qe])&&typeof m[qe]!="function"){G(X);return}}var ft=function(){for(var L=function(tt){return function(){var ut=new Error("Method "+tt+" is not implemented by the current driver"),Ut=d.reject(ut);return h(Ut,arguments[arguments.length-1]),Ut}},V=0,ge=hr.length;V<ge;V++){var ve=hr[V];m[ve]||(m[ve]=L(ve))}};ft();var z=function(L){vt[K]&&console.info("Redefining LocalForage driver: "+K),vt[K]=m,st[K]=L,H()};"_support"in m?m._support&&typeof m._support=="function"?m._support().then(z,G):z(!!m._support):z(!0)}catch(_){G(_)}});return p(w,I,N),w},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(m,I,N){var w=vt[m]?d.resolve(vt[m]):d.reject(new Error("Driver not found."));return p(w,I,N),w}
1293,g.prototype.getSerializer=function(m){var I=d.resolve(Pr);return p(I,m),I},g.prototype.ready=function(m){var I=this,N=I._driverSet.then(function(){return I._ready===null&&(I._ready=I._initDriver()),I._ready});return p(N,m,m),N},g.prototype.setDriver=function(m,I,N){var w=this;we(m)||(m=[m]);var H=this._getSupportedDrivers(m);function G(){w._config.driver=w.driver()}function K(pe){return w._extend(pe),G(),w._ready=w._initStorage(w._config),w._ready}function X(pe){return function(){var Pe=0;function qe(){for(;Pe<pe.length;){var ze=pe[Pe];return Pe++,w._dbInfo=null,w._ready=null,w.getDriver(ze).then(K).catch(qe)}G();var ft=new Error("No available storage method found.");return w._driverSet=d.reject(ft),w._driverSet}return qe()}}var re=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=re.then(function(){var pe=H[0];return w._dbInfo=null,w._ready=null,w.getDriver(pe).then(function(Pe){w._driver=Pe._driver,G(),w._wrapLibraryMethodsWithReady(),w._initDriver=X(H)})}).catch(function(){G();var pe=new Error("No available storage method found.");return w._driverSet=d.reject(pe),w._driverSet}),p(this._driverSet,I,N),this._driverSet},g.prototype.supports=function(m){return!!st[m]},g.prototype._extend=function(m){Zt(this,m)},g.prototype._getSupportedDrivers=function(m){for(var I=[],N=0,w=m.length;N<w;N++){var H=m[N];this.supports(H)&&I.push(H)}return I},g.prototype._wrapLibraryMethodsWithReady=function(){for(var m=0,I=kt.length;m<I;m++)mn(this,kt[m])},g.prototype.createInstance=function(m){return new g(m)},g})(),$r=new Dr;n.exports=$r},{3:3}]},{},[4])(4)})})(As)),As.exports}var _g=KD();const bd=Kr(_g),YD={isOpen:!1,isMobileMenuOpen:!1,isDebugOpen:!1,toggleNavDrawer:()=>{},openNavDrawer:()=>{},closeNavDrawer:()=>{},setMobileMenuOpen:()=>{},toggleDebugOpen:()=>{},drawerWidth:64,bannerOffset:"0px"},qD=f.createContext(YD),QD=({children:e,bannerOffset:t="0px"})=>{const[r,n]=f.useState(localStorage.getItem("navDrawerOpen")!=="false"),[o,a]=f.useState(!1),[i,s]=f.useState(!1),[l,c]=f.useState(r?256:64);f.useEffect(()=>{localStorage.setItem("navDrawerOpen",String(r)),c(r?256:64)},[r]);const u=()=>{n(!0)},d=()=>{n(!1)},h=()=>{n(!r)},p=S=>{a(S)},y=()=>{s(!i)};return T.jsx(qD.Provider,{value:{isOpen:r,isMobileMenuOpen:o,isDebugOpen:i,toggleNavDrawer:h,openNavDrawer:u,closeNavDrawer:d,setMobileMenuOpen:p,toggleDebugOpen:y,drawerWidth:l,bannerOffset:t},children:e})},yg=e=>{var l;if(!e||typeof e!="object")return null;const t=e,r=t.error&&typeof t.error=="object"?t.error:t,n=r.code,o=(l=t.status)!=null?l:r.status,a=r.message;if(typeof a!="string")return null;if((n===3||o===400)&&/^the request's \d+ characters exceed the current plan's limit of \d+ characters per job; upgrade the plan for larger jobs$/.test(a))return{feature:"tts-job-size",message:a};if(n!==7&&o!==403&&o!==402)return null;const i=/^Professional voice cloning requires the (Creator|Builder|Developer|Growth|Scale|Enterprise) plan or above\. Please upgrade your plan to continue\.$/.exec(a);if(!i)return null;const s=`PRICING_TIER_${i[1].toUpperCase()}`;return{feature:"professional-voice-clone",message:a,minimumVoiceTier:s}},dl=new Set,Eg=new WeakSet,UM=e=>!!e&&typeof e=="object"&&Eg.has(e),BM=e=>(dl.add(e),()=>{dl.delete(e)}),XD=(e,t)=>{const r=yg(e);if(!r)return!1;const n=[...dl].some(o=>o(r,t));return n&&Eg.add(e),n},vg="noCredits",FM={[vg]:"silent"},JD=e=>(e==null?void 0:e[vg])==="silent",ra=[];let ni=null;const $M=e=>(ra.push(e),()=>{const t=ra.lastIndexOf(e);t!==-1&&ra.splice(t,1)}),GM=e=>(ni=e,()=>{ni===e&&(ni=null)}),ZD=e=>{var r;const t=(r=ra[ra.length-1])!=null?r:ni;t==null||t(e)};var Ki=(e=>(e.SIGNED_UP="Signed up",e.SELECTED_TIME_RANGE="Selected time range",e.REDIRECTED_TO_403_PAGE="Redirected to 403 page",e.REDIRECTED_TO_404_PAGE="Redirected to 404 page",e.CLICKED_GET_API_KEY='Clicked "Get API key"',e.CLICKED_DOWNLOAD_RUNTIME='Clicked "Download runtime"',e.CLICKED_TRY_TTS='Clicked "Try TTS"',e.HOME_CLICKED_CARD="Home: Clicked card",e.ROUTERS_CLICKED_NEW_ROUTER='Routers: Clicked "New router"',e.ROUTERS_CLICKED_PRESET="Routers: Clicked preset",e.ROUTERS_CLICKED_CREATE_FROM_SCRATCH='Routers: Clicked "Create from scratch"',e.ROUTERS_CLICKED_SAVE='Routers: Clicked "Save"',e.ROUTERS_CLICKED_GET_CODE='Routers: Clicked "Get co
1293de"',e.ROUTERS_CLICKED_ROUTER_ROW="Routers: Clicked router row",e.ROUTERS_CLICKED_DELETE='Routers: Clicked "Delete"',e.ROUTERS_SAVE_ERROR="Routers: Save error",e.ROUTERS_CLICKED_TEST_IN_PLAYGROUND='Routers: Clicked "Test in Playground"',e.ROUTERS_CLICKED_ILL_DO_IT_LATER=`Routers: Clicked "I'll do it later"`,e.ROUTERS_CLICKED_DUPLICATE='Routers: Clicked "Duplicate"',e.S2S_CLICKED_DOC_LINK="Speech-to-Speech: Clicked doc link",e.GETTING_STARTED_OVERVIEW_DIALOG_SHOWN="Getting started overview dialog shown",e.GETTING_STARTED_TTS_DIALOG_SHOWN="Getting started TTS dialog shown",e.GETTING_STARTED_RUNTIME_DIALOG_SHOWN="Getting started runtime dialog shown",e.GETTING_STARTED_TTS_PLAYGROUND_CLICKED="Getting started TTS playground clicked",e.GETTING_STARTED_CLONE_VOICE_CLICKED="Getting started clone voice clicked",e.GETTING_STARTED_API_REQUEST_CLICKED="Getting started API request clicked",e.GETTING_STARTED_RUNTIME_INSTALLATION_CLICKED="Getting started runtime installation clicked",e.GETTING_STARTED_RUNTIME_TEMPLATES_CLICKED="Getting started runtime templates clicked",e.GETTING_STARTED_UNREAL_ENGINE_RUNTIME_CLICKED="Getting started unreal engine runtime clicked",e.CLICKED_REGISTER_GRAPH='Clicked "Register graph"',e.CLICKED_CREATE_VARIANT='Clicked "Create variant"',e.CLICKED_ADD_RULE='Clicked "Add rule"',e.CLICKED_ADD_FILTER='Clicked "Add filter"',e.CLICKED_DELETE_FILTER='Clicked "Delete filter"',e.CLICKED_DELETE_RULE='Clicked "Delete rule"',e.CLICKED_SAVE_TARGETING='Clicked "Save targeting"',e.CLICKED_CREATE_DASHBOARD='Clicked "New dashboard"',e.CLICKED_CREATE_PANEL='Clicked "New panel"',e.CLICKED_DEFAULT_DASHBOARD='Clicked "Default dashboard"',e.CLICKED_SEARCH_DASHBOARD='Clicked "Search dashboard"',e.CLICKED_EDIT_PANEL='Clicked "Edit panel"',e.CLICKED_SAVE_PANEL='Clicked "Save panel"',e.CLICKED_QUERY_BUILDER_COLLAPSE='Clicked "Collapse query builder"',e.CLICKED_QUERY_BUILDER_HIDE='Clicked "Hide query builder"',e.CLICKED_QUERY_BUILDER_CLONE='Clicked "Clone query"',e.CLICKED_QUERY_BUILDER_ADD_NEW_FORMULA='Clicked "Add new formula"',e.CLICKED_QUERY_BUILDER_ADD_NEW_QUERY='Clicked "Add new query"',e.CLICKED_TRACE_ROW='Clicked "Trace row"',e.CLICKED_SPAN='Clicked "Span"',e.CLICKED_SPAN_DETAILS='Clicked "Span details"',e.CLICKED_SPAN_INPUT='Clicked "Span input"',e.CLICKED_SPAN_OUTPUT='Clicked "Span output"',e.CLICKED_SPAN_TAGS='Clicked "Span tags"',e.CLICKED_SPAN_EVENTS='Clicked "Span events"',e.CLICKED_TRACE_COPY_ALL='Clicked "Copy all trace details"',e.CLICKED_LOG_RUN_QUERY='Clicked "Run query"',e.CLICKED_LOG_ROW='Clicked "Log row"',e.CLICKED_LOG_OVERVIEW='Clicked "Log overview"',e.CLICKED_LOG_JSON='Clicked "Log JSON"',e.DASHBOARD_LIST_PAGE_VISITED="Dashboard List: Page visited",e.DASHBOARD_LIST_CLICKED_DASHBOARD="Dashboard List: Clicked on dashboard",e.DASHBOARD_LIST_IMPORT_JSON_CLICKED="Dashboard List: Import JSON clicked",e.DASHBOARD_LIST_IMPORT_AND_NEXT_CLICKED="Dashboard List: Import and next clicked",e.DASHBOARD_LIST_IMPORT_SUCCESS="Dashboard List: New dashboard imported successfully",e.DASHBOARD_LIST_UPLOAD_JSON_CLICKED="Dashboard List: Upload JSON file clicked",e.DASHBOARD_LIST_NEW_DASHBOARD_CLICKED="Dashboard List: New dashboard clicked",e.DASHBOARD_REQUESTED="Dashboard Requested",e.DASHBOARD_DETAIL_OPENED="Dashboard Detail: Opened",e.DASHBOARD_DETAIL_PANEL_DATA_FETCHED="Dashboard Detail: Panel data fetched",e.DASHBOARD_DETAIL_NEW_PANEL_TYPE_SELECTED="Dashboard Detail: New panel type selected",e.DASHBOARD_DETAIL_PANEL_ACTION="Dashboard Detail: Panel action",e.PANEL_EDIT_PAGE_VISITED="Panel Edit: Page visited",e.PANEL_EDIT_STAGE_AND_RUN_QUERY="Panel Edit: Stage and run query",e.PANEL_EDIT_CREATE_ALERT="Panel Edit: Create alert",e.TRACES_EXPLORER_PAGE_VISITED="Traces Explorer: Page visited",e.TRACES_EXPLORER_NO_RESULTS="Traces Explorer: No results",e.TRACES_EXPLORER_SIDEBAR_FILTER_USED="Traces Explorer: Sidebar filter used",e.LOGS_EXPLORER_PAGE_VISITED="Logs Explorer: Page visited",e.LOGS_EXPLORER_NO_RESULTS="Logs Explorer: No results",e.LOGS_EXPLORER_ADD_TO_DASHBOARD_SUCCESS="Logs Explorer: Add to dashboard successful",e.DATETIME_PICKER_TIMEZONE_SELECTED="DateTimePicker: New Timezone Selected",e.ALERT_COLUMN_TOGGLED="Alert: Column toggled",e.LLM_PLAYGROUND_SENT_MESSAGE="LLM Playground: Sent message",e.LLM_PLAYGROUND_CLICKED_STARTER_CHIP="LLM Playground: Clicked starter chip",e.LLM_PLAYGROUND_CLICKED_INTEGRATE="LLM Playground: Clicked Integrate",e.LLM_PLAYGROUND_INTEGRATE_COPY="LLM Playground: Copied integration snippet",e.REALTIME_PLAYGROUND_START_SESSION="Realtime Playground: Start Session",e.REALTIME_PLAYGROUND_CHANGED_LLM_MODEL="Realtime Playground: Changed LLM model",e.REALTIME_PLAYGROUND_CHANGED_TTS_MODEL="Realtime Playground: Changed TTS model",e.REALTIME_PLAYGROUND_CHANGED_VOICE="Realtime Playground: Changed voice",e.REALTIME_PLAYGROUND_CHANGED_EAGERNESS="Realtime Playground: Changed eagerness",e.REALTIME_PLAYGROUND_RESET="Realtime Playground: Reset",e.REALTIME_PLAYGROUND_PAUSE="Realtime Playground: Pause",e.REALTIME_PLAYGROUND_RESUME="Realtime Playground: Resume",e.REALTIME_PLAYGROUND_UPDATE_SESSION="Realtime Playground: Update Session",e.REALTIME_PLAYGROUND_SENT_TEXT_MESSAGE="Realtime Playground: Sent text message",e.REALTIME_PLAYGROUND_CONNECTION_ERROR="Realtime Playground: Connection error",e.REALTIME_PLAYGROUND_CLICKED_INTEGRATE="Realtime Playground: Clicked Integrate",e.STT_PLAYGROUND_CLICKED_RECORD_AUDIO='STT Playground: Clicked "Record Audio"',e.STT_PLAYGROUND_CLICKED_UPLOAD_AUDIO='STT Playground: Clicked "Upload Audio"',e.STT_PLAYGROUND_CLICKED_GET_CODE='STT Playground: Clicked "Get Code"',e.STT_PLAYGROUND_CHANGED_MODEL="STT Playground: Changed model",e.STT_PLAYGROUND_CLICKED_REPLAY_AUDIO='STT Playground: Clicked "Replay Audio"',e.STT_PLAYGROUND_DOWNLOADED_AUDIO="STT Playground: Downloaded recording",e.CLICKED_TTS_BEST_PRACTICES_LINK='Clicked "TTS best practices link"',e.CLICKED_TTS_CLONE_VOICE='Clicked "Clone voice"',e.CLICKED_TTS_GENERATE_SPEECH='Clicked "Generate speech"',e.CLICKED_TTS_SUGGESTION_CHIP='Clicked "TTS suggestion chip"',e.CLICKED_TTS_TRY_API_COPY='Clicked "Copy" in Try API',e.CLICKED_TTS_TRY_API='Clicked "Try API"',e.API_KEY_AUTOMATICALLY_GENERATED_TRY_API="API key automatically generated on Try API modal",e.ADJUSTED_TEMPERATURE="Adjusted temperature",e.ADJUSTED_TALKING_SPEED="Adjusted talking speed",e.ADJUSTED_DELIVERY="Adjusted delivery",e.TOGGLED_ENHANCE_GENERATION='Toggled "Enhance generation"',e.TOGGLED_AUTO_STEER='Toggled "Auto steer"',e.CHANGED_LANGUAGE="Changed language",e.CHANGED_SYNTHESIS_LANGUAGE="Changed synthesis language",e.CLICKED_TTS_DOWNLOAD_AUDIO='Clicked "Download audio"',e.CLICKED_TTS_SHARE_AUDIO='Clicked "Share audio"',e.TTS_FEEDBACK_SUBMITTED="TTS Playground: Feedback submitted",e.TTS_FEEDBACK_FAILED="TTS Playground: Feedback failed",e.TTS_FIRST_CHUNK_LATENCY="TTS first chunk latency",e.TTS_LANGUAGE_NUDGE_SHOWN="TTS Playground: Language nudge shown",e.TTS_LANGUAGE_NUDGE_CLICKED="TTS Playground: Language nudge localize clicked",e.TTS_LANGUAGE_NUDGE_DISMISSED="TTS Playground: Language nudge dism
1293issed",e.TTS_EMAIL_NUDGE_SHOWN="TTS Playground: Email nudge shown",e.TTS_EMAIL_NUDGE_APPLY_CLICKED="TTS Playground: Email nudge wrap clicked",e.TTS_EMAIL_NUDGE_DISMISSED="TTS Playground: Email nudge dismissed",e.TTS_TEXT_LANGUAGE_WARNING_SHOWN="TTS Playground: Text language warning shown",e.TTS_TEXT_LANGUAGE_WARNING_SWITCH_CLICKED="TTS Playground: Text language warning switch clicked",e.TTS_TEXT_LANGUAGE_WARNING_DISMISSED="TTS Playground: Text language warning dismissed",e.TTS_FLASH_LANGUAGE_WARNING_SHOWN="TTS Playground: Flash cross-lingual warning shown",e.TTS_FLASH_LANGUAGE_WARNING_SWITCH_CLICKED="TTS Playground: Flash cross-lingual warning switch model clicked",e.TTS_FLASH_LANGUAGE_WARNING_LOCALIZE_CLICKED="TTS Playground: Flash cross-lingual warning localize clicked",e.TTS_FLASH_LANGUAGE_WARNING_DISMISSED="TTS Playground: Flash cross-lingual warning dismissed",e.TTS_FLASH_LANGUAGE_AUTO_SET="TTS Playground: Flash language auto-set to voice language",e.TTS_HISTORY_OPENED="TTS Playground: History opened",e.TTS_HISTORY_PLAY="TTS Playground: History row played",e.TTS_HISTORY_SEND_TO_INPUT="TTS Playground: History row sent to input",e.TTS_HISTORY_DOWNLOAD="TTS Playground: History row downloaded",e.TTS_HISTORY_DELETE="TTS Playground: History row deleted",e.TTS_HISTORY_CLEAR_ALL="TTS Playground: History cleared",e.TTS_HISTORY_BULK_DELETE="TTS Playground: History rows bulk deleted",e.TTS_HISTORY_BULK_DOWNLOAD="TTS Playground: History rows bulk downloaded",e.TTS_HISTORY_SHARE="TTS Playground: History row shared",e.TTS_HISTORY_BULK_SHARE="TTS Playground: History rows bulk shared",e.TTS_HISTORY_SEARCH="TTS Playground: History searched",e.TTS_HISTORY_FILTER="TTS Playground: History filtered",e.CLICKED_VOICE_LIBRARY_OPEN_IN_PLAYGROUND='Clicked "Open Voice in Playground"',e.CLICKED_VOICE_LIBRARY_ROW="Clicked on the row",e.CLICKED_VOICE_ID_COPY='Clicked "Copy voice ID"',e.CLICKED_VOICE_STAR='Clicked "Star voice"',e.CLICKED_VOICE_UNSTAR='Clicked "Unstar voice"',e.CHANGED_VOICE_TAG="Changed voice tag",e.CHANGED_VOICE_SEARCH="Changed voice search",e.CLICKED_TTS_CLEAR_FILTERS='Clicked "Clear filters"',e.CLICKED_TTS_DESIGN_VOICE='Clicked "Design voice"',e.OPENED_PUBLISH_VOICE_DIALOG="Opened publish voice dialog",e.PUBLISHED_VOICE_TO_LIBRARY="Published voice to Voice Library",e.OPENED_REMOVE_VOICE_DIALOG="Opened remove voice dialog",e.REMOVED_VOICE_FROM_LIBRARY="Removed voice from Voice Library",e.CLICKED_CANCEL_VOICE_REMOVAL='Clicked "Cancel Removal"',e.CANCELED_VOICE_REMOVAL="Canceled voice removal",e.CLICKED_VOICE_PICKER_SELECT='Clicked "Select Voice" in voice picker',e.CLICKED_VOICE_PICKER_PREVIEW='Clicked "Preview" in voice picker',e.REFERRAL_CODE_REDEEMED="Referral code redeemed",e.REFERRAL_LINK_COPIED="Referral link copied",e.REFERRAL_DIALOG_OPENED="Referral dialog opened",e.CLICKED_VOICE_LOCALIZE='Clicked "Localize voice"',e.CLICKED_VOICE_LOCALIZE_SUBMIT='Clicked "Localize" submit',e.CLICKED_VOICE_LOCALIZE_REGENERATE='Clicked "Regenerate" on voice localize',e.CLICKED_VOICE_LOCALIZE_SAVE='Clicked "Save" on voice localize',e.CLICKED_ADD_CARD='Clicked "Add card"',e.CLICKED_ADD_CREDITS='Clicked "Add credits"',e.CLICKED_EDIT_CARD='Clicked "Edit card"',e.CLICKED_INCREASE_RATE_LIMITS='Clicked "Increase rate limits"',e.SUBMITTED_RATE_LIMIT_INCREASE_REQUEST="Submitted rate limit increase request",e.SELECTED_CREDIT_PRESET_AMOUNT="Selected credit preset amount",e.ENTERED_CREDIT_CUSTOM_AMOUNT="Entered credit custom amount",e.INITIATED_CREDIT_CHECKOUT="Initiated credit checkout",e.CREDIT_CHECKOUT_REDIRECTED="Credit checkout redirected to payment",e.CREDIT_PURCHASE_COMPLETED="Credit purchase completed",e.CREDIT_PURCHASE_CANCELLED="Credit purchase cancelled",e.BILLING_OPENED_MANAGE_SUBSCRIPTION="Billing: Opened manage subscription",e.BILLING_CLICKED_CANCEL_PLAN="Billing: Clicked cancel plan",e.BILLING_CONFIRMED_CANCEL_PLAN="Billing: Confirmed cancel plan",e.BILLING_CLICKED_RESUME_SUBSCRIPTION="Billing: Clicked resume subscription",e.BILLING_CANCELLATION_RPC_FAILED="Billing: Cancellation RPC failed",e.BILLING_CLICKED_UPGRADE_CTA="Billing: Clicked upgrade CTA in manage subscription",e.BILLING_CLICKED_CONTACT_SALES="Billing: Clicked contact sales",e.BILLING_PLAN_CHANGE_CHECKOUT_REDIRECTED="Billing: Started checkout for plan change",e.FEATURE_GATE_MODAL_SHOWN="Feature gate modal shown",e.BILLING_NO_CREDITS_OVERLAY_SHOWN="Billing: No credits overlay shown",e.BILLING_CLICKED_SUBSCRIBE_FROM_OVERLAY="Billing: Clicked subscribe from overlay",e.BILLING_CLICKED_VIEW_ALL_PLANS_FROM_OVERLAY="Billing: Clicked view all plans from overlay",e.CLICKED_AUTO_RELOAD_TURN_ON='Clicked auto reload "Turn on"',e.CLICKED_AUTO_RELOAD_MODIFY='Clicked auto reload "Modify"',e.AUTO_RELOAD_SETTINGS_SAVED="Auto reload settings saved",e.AUTO_RELOAD_TOGGLED="Auto reload toggled",e.CLICKED_GET_API_KEY_NAV_DRAWER='Clicked "Get API key" in nav drawer',e.CLICKED_BILLING_NAV_DRAWER='Clicked "Billing" in nav drawer',e.CLICKED_GET_HELP_NAV_DRAWER='Clicked "Get Help" in nav drawer',e.CLICKED_GET_HELP_HEADER='Clicked "Get Help" in header',e.COLLAPSED_DRAWER_NAV_SECTION="Collapsed drawer navigation section",e.EXPANDED_DRAWER_NAV_SECTION="Expanded drawer navigation section",e.SELECTED_INTEREST__TTS='Selected interest "TTS"',e.SELECTED_INTEREST__RUNTIME='Selected interest "Runtime"',e.SELECTED_INTEREST__MIGRATE_TO_RUNTIME='Selected interest "Migrate to Runtime"',e.SELECTED_INTEREST__NEW_APP_RUNTIME='Selected interest "New app with Runtime"',e.SELECTED_INTEREST__NOT_SURE='Selected interest "Not sure"',e.SELECTED_PROJECT_TYPE__WORK='Selected project type "Work"',e.SELECTED_PROJECT_TYPE__PERSONAL='Selected project type "Personal"',e.SELECTED_WORK_ROLE__FOUNDER='Selected work role "Founder"',e.SELECTED_WORK_ROLE__TEAM_LEAD='Selected work role "Team lead"',e.SELECTED_WORK_ROLE__SOFTWARE_ENGINEER='Selected work role "Software engineer"',e.SELECTED_WORK_ROLE__ML_ENGINEER='Selected work role "ML engineer"',e.SELECTED_WORK_ROLE__PRODUCT_MANAGER='Selected work role "Product manager"',e.SELECTED_WORK_ROLE__OTHER='Selected work role "Other"',e.ONBOARDING_SURVEY_COMPLETED="Onboarding survey completed",e.ONBOARDING_SURVEY_SKIPPED="Onboarding survey skipped",e.ONBOARDING_STEP_SHOWN="Onboarding step shown",e.ONBOARDING_STEP_CONTINUE="Onboarding step continue",e.ONBOARDING_STEP_SKIP="Onboarding step skip",e.ONBOARDING_STEP_BACK="Onboarding step back",e.ONBOARDING_INVITED_TEAM="Onboarding invited team",e.ONBOARDING_FINISHED="Onboarding finished",e.ONBOARDING_CLICKED_GENERATE_API_KEY="Onboarding clicked generate API key",e.ONBOARDING_COPIED_API_KEY="Onboarding copied API key",e.ONBOARDING_CHAT_MESSAGE_SENT="Onboarding chat: Message sent",e.ONBOARDING_CHAT_ACTION_CLICKED="Onboarding chat: Action clicked",e.ONBOARDING_CHAT_SKIPPED="Onboarding chat: Skipped",e.ONBOARDING_CHAT_TOOL_CALLED="Onboarding chat: Tool called",e.ONBOARDING_CHAT_FALLBACK_TRIGGERED="Onboarding chat: Fallback triggered",e.ONBOARDING_CHAT_USER_CLASSIFIED="Onboarding chat: User classified",e.ONBOARDING_CHAT_MINIMIZED="Onboarding chat: Minimized",e.ONBOARDING_CHAT_DISMISSED="Onboarding chat: Dismissed",e.SELECTED_DESIGN='Selected "Design"',e.CLICKED_GENERATE_VOICE='Clicked "Generate voice"',e.CLICKED_SUGGESTION_VOICE_DESCRIPTION='Clicked "Suggestion voice description"',e.SELECTED_DESCRIPTION_MODE="Selected voice description mode",e.CLICKED_REVIEW_VOICE_PROFILE='Clicked "Review voice profile"',e.CLICKED_EDIT_VOICE_PROFILE_DESCRIPTION='Clicked "Edit description" on voice profile review',e.G
1293ENERATED_SCRIPT="Generated script text",e.GENERATED_VOICE_CANDIDATES="Generated voice candidates",e.PLAYED_DESIGN_CANDIDATE="Played design candidate",e.CLICKED_SELECT_VOICE='Clicked "Select voice"',e.CLICKED_SAVE_VOICE='Clicked "Save voice"',e.CLICKED_VOICE_DESIGN_BACK='Clicked "Back" on voice design',e.GENERATE_VOICE_ERROR="Generate voice error",e.SELECTED_CLONE_WITH_AUDIO='Selected "Clone with Audio"',e.CLICKED_RECORD_AUDIO='Clicked "Record audio"',e.CLICKED_START_RECORDING='Clicked "Start recording"',e.CLICKED_STOP_RECORDING='Clicked "Stop recording"',e.CLICKED_BACK_RECORDING='Clicked "Back" on recording',e.CLICKED_CONTINUE_CLONE='Clicked "Continue" on clone',e.CLICKED_BACK_TO_CLONE_VOICE='Clicked "Back to clone voice"',e.CLICKED_TROUBLESHOOTING='Clicked "Troubleshooting"',e.CLICKED_CONTACT_SUPPORT='Clicked "Contact support"',e.SELECTED_PROFESSIONAL_CLONE='Selected "Professional Clone"',e.CLICKED_START_PROFESSIONAL_CLONE_TRAINING='Clicked "Start Professional Clone training"',e.PROFESSIONAL_CLONE_UPLOAD_VALIDATION_FAILED="Professional Clone upload validation failed",e.PROFESSIONAL_CLONE_START_FAILED="Professional Clone start failed",e.CLICKED_TEST_IN_PLAYGROUND='Clicked "Test in Playground"',e.CLICKED_CREATE_ANOTHER_VOICE='Clicked "Create another voice"',e.CLICKED_CUSTOM_VOICE_CAPACITY_UPGRADE='Clicked "Upgrade" in custom voice capacity banner',e.CLICKED_PVC_VOICE_CAPACITY_UPGRADE='Clicked "Upgrade" in PVC voice capacity banner',e.CLICKED_TEST_MODEL_IN_PLAYGROUND='Clicked "Test model in Playground"',e.CLICKED_MODELS_TAB_FILTER='Clicked "Models tab filter"',e.CLICKED_MODELS_FILTERS_BUTTON='Clicked "Models filters"',e.FOCUSED_SEARCH_MODELS='Focused "Search models"',e.MODEL_TEST_SEND_MESSAGE="Send message in model test playground",e.CLICKED_REQUEST_CUSTOM_MODEL='Clicked "Request custom model"',e.CLICKED_CREATE_ROUTER='Clicked "Create router"',e.CLICKED_MODELS_INTEGRATE='Clicked "Models integrate"',e.CLICKED_REQUEST_INTEGRATION='Clicked "Request integration"',e.WORKSPACES_CREATED="Created workspace",e.WORKSPACES_SHARED="Shared workspace",e.ONBOARDING_CHECKLIST_PRODUCT_SELECTED="Onboarding checklist: Product selected",e.ONBOARDING_CHECKLIST_STEP_COMPLETED="Onboarding checklist: Step completed",e.ONBOARDING_CHECKLIST_STEP_LINK_CLICKED="Onboarding checklist: Step link clicked",e.ONBOARDING_CHECKLIST_DISMISSED="Onboarding checklist: Dismissed",e.PERMISSION_HINT_SHOWN="Permission hint shown",e.DOCS_FEEDBACK_SUBMITTED="Docs: Feedback submitted",e.PUBLIC_PLAYGROUND_VIEWED="Public playground: Viewed",e.PUBLIC_PLAYGROUND_GENERATED="Public playground: Generated",e.PUBLIC_PLAYGROUND_GATE_HIT="Public playground: Gate hit",e.PUBLIC_PLAYGROUND_GATE_DISMISSED="Public playground: Gate dismissed",e.PUBLIC_PLAYGROUND_SIGNUP_CLICKED="Public playground: Signup clicked",e.PUBLIC_PLAYGROUND_SIGNED_UP="Public playground: Signed up",e.PUBLIC_PLAYGROUND_CONTINUED_POST_SIGNUP="Public playground: Continued post-signup",e.PUBLIC_PLAYGROUND_POST_SIGNUP_STALL="Public playground: Post-signup stall",e))(Ki||{}),Jl=(e=>(e.Default="Default",e.PortalHome="Portal home",e.GraphRegistry="Graph registry",e.Dashboard="Dashboard",e.Traces="Traces",e.Logs="Logs",e.LLMPlayground="LLM Playground",e.TTSSPlayground="TTS Playground",e.VoiceLibrary="Voice Library",e.Billing="Billing",e.Usage="Usage",e.NavDrawer="Nav drawer",e.OnboardingSurvey="Onboarding survey",e.OnboardingFlow="Onboarding flow",e.ReferralCodeInput="Referral code input",e.GettingStartedDialog="Getting started dialog",e.InstantVoiceClone="IVC",e.ProfessionalVoiceClone="PVC",e.TextVoiceDesign="TVD",e.VoiceLocalize="Voice Localize",e.ModelsPage="Models page",e.HomePage="Home page",e.Routers="Routers",e.SpeechToSpeech="Speech-to-Speech",e.Integrations="Integrations",e.APIKeys="API Keys",e.Workspaces="Workspaces",e.RealtimePlayground="Realtime Playground",e.STTPlayground="STT Playground",e.OnboardingChecklist="Onboarding checklist",e.ErrorPage="Error page",e.PublicPlayground="Public playground",e.Docs="Docs",e))(Jl||{});const eN=new Set(["Signed up","Onboarding survey completed","Onboarding survey skipped","Onboarding finished"]),Id=new Set([]),Zl=(e,t="Default",r={},n)=>
1293{if(eN.has(e)){if(Id.has(e))return;Id.add(e)}on.track(e,{app:ug.Portal,component:t,...r},n)},HM=async(e={})=>{try{dt.initialized||await on.init(null,"");const{default:t}=await an(async()=>{const{default:r}=await import("./vendor-mp.BjBorTEs.js");return{default:r}},[]);t.track_pageview(e)}catch(t){console.warn("Couldn't track page view",t)}};var Te=(e=>(e.PRICING_TIER_UNSPECIFIED="PRICING_TIER_UNSPECIFIED",e.PRICING_TIER_STANDARD="PRICING_TIER_STANDARD",e.PRICING_TIER_ENTERPRISE="PRICING_TIER_ENTERPRISE",e.PRICING_TIER_STARTER="PRICING_TIER_STARTER",e.PRICING_TIER_CREATOR="PRICING_TIER_CREATOR",e.PRICING_TIER_DEVELOPER="PRICING_TIER_DEVELOPER",e.PRICING_TIER_GROWTH="PRICING_TIER_GROWTH",e.PRICING_TIER_SCALE="PRICING_TIER_SCALE",e.PRICING_TIER_FOUNDER_CREATOR="PRICING_TIER_FOUNDER_CREATOR",e.PRICING_TIER_FOUNDER_DEVELOPER="PRICING_TIER_FOUNDER_DEVELOPER",e.PRICING_TIER_FOUNDER_GROWTH="PRICING_TIER_FOUNDER_GROWTH",e.PRICING_TIER_CREATOR_ANNUAL="PRICING_TIER_CREATOR_ANNUAL",e.PRICING_TIER_DEVELOPER_ANNUAL="PRICING_TIER_DEVELOPER_ANNUAL",e.PRICING_TIER_GROWTH_ANNUAL="PRICING_TIER_GROWTH_ANNUAL",e.PRICING_TIER_Y_COMBINATOR="PRICING_TIER_Y_COMBINATOR",e.PRICING_TIER_BUILDER="PRICING_TIER_BUILDER",e.PRICING_TIER_BUILDER_ANNUAL="PRICING_TIER_BUILDER_ANNUAL",e.PRICING_TIER_FOUNDER_BUILDER="PRICING_TIER_FOUNDER_BUILDER",e.PRICING_TIER_TRIAL="PRICING_TIER_TRIAL",e))(Te||{}),tN=(e=>(e.CANCELLATION_STATUS_UNSPECIFIED="CANCELLATION_STATUS_UNSPECIFIED",e.CANCELLATION_STATUS_NONE="CANCELLATION_STATUS_NONE",e.CANCELLATION_STATUS_PENDING_AT_PERIOD_END="CANCELLATION_STATUS_PENDING_AT_PERIOD_END",e))(tN||{}),fl=(e=>(e.PLATFORM_UNSPECIFIED="PLATFORM_UNSPECIFIED",e.PLATFORM_STUDIO="PLATFORM_STUDIO",e.PLATFORM_PORTAL="PLATFORM_PORTAL",e))(fl||{});class vo{static ConfigurePayment(t,r){return Z(`/v1alpha/${t.name}:configurePayment`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetCustomerPortal(t,r){return Z(`/v1alpha/${t.name}:customer-portal`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetQuotaReport(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static GetAccountConfig(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static UpdateAccountConfig(t,r){return Z(`/v1alpha/${t.accountConfig.name}?${Ee(t,["accountConfig.name"],"accountConfig",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.accountConfig,Ie)})}static GetTopUpConfig(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static UpdateTopUpConfig(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"],"topUpConfig",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.topUpConfig,Ie)})}static GetUsageHistory(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static GetBillingInfo(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static ListCreditBalanceTransactions(t,r){return Z(`/v1alpha/${t.name}/credit-balance-transactions?${Ee(t,["name"])}`,{...r,method:"GET"})}static ListCreditGrants(t,r){return Z(`/v1alpha/${t.name}/credit-grants?${Ee(t,["name"])}`,{...r,method:"GET"})}static CreatePurchaseCreditsPaymentLink(t,r){return Z(`/v1alpha/${t.name}:createPurchaseCreditsPaymentLink`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static SaveTopUpConfig(t,r){return Z(`/v1alpha/${t.name}:saveTopUpConfig`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static UpdateSubscriptionCancellation(t,r){return Z(`/v1alpha/${t.name}:updateSubscriptionCancellation`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}}const WM=10,jM=5e4,zM=5,VM=5e4,KM=10,YM=()=>{},qM=e=>{(e.key==="."||e.key===",")&&e.preventDefault()},QM=e=>e.replace(/[^0-9]/g,""),Tg=e=>{var a,i,s,l,c;if(!e)return;const t=((a=e.creditBalance)==null?void 0:a.currency)==="usd",r=parseInt((s=(i=e.creditBalance)==null?void 0:i.amount)!=null?s:"0",10)||0,n=parseInt((c=(l=e.invoicePreview)==null?void 0:l.amount)!=null?c:"0",10)||0,o=r-n;return t?o/100:o},XM={PRICING:"https://inworld.ai/pricing",PRICING_COMPARE:"https://inworld.ai/pricing#compare",CONTACT_SALES:"https://inworld.ai/contact-sales",CREDIT_TERMS:"https://inworld.ai/credit-terms",FOUNDER_PRICING:"https://inworld.ai/founder-pricing",FOUNDER_PRICING_COMPARE:"https://inworld.ai/founder-pricing#compare",LLM_PRICING:"https://inworld.ai/models"},rN=e=>{switch(e){case Te.PRICING_TIER_STARTER:case Te.PRICING_TIER_STANDARD:return"On-Demand";case Te.PRICING_TIER_CREATOR:case Te.PRICING_TIER_CREATOR_ANNUAL:case Te.PRICING_TIER_FOUNDER_CREATOR:return"Creator";case Te.PRICING_TIER_BUILDER:case Te.PRICING_TIER_BUILDER_ANNUAL:case Te.PRICING_TIER_FOUNDER_BUILDER:return"Builder";case Te.PRICING_TIER_DEVELOPER:case Te.PRICING_TIER_DEVELOPER_ANNUAL:case Te.PRICING_TIER_FOUNDER_DEVELOPER:return"Developer";case Te.PRICING_TIER_GROWTH:case Te.PRICING_TIER_GROWTH_ANNUAL:case Te.PRICING_TIER_FOUNDER_GROWTH:return"Growth";case Te.PRICING_TIER_SCALE:return"Scale";case Te.PRICING_TIER_ENTERPRISE:return"Enterprise";
1293case Te.PRICING_TIER_Y_COMBINATOR:return"Y Combinator";case Te.PRICING_TIER_TRIAL:return"Enterprise - Trial";case Te.PRICING_TIER_UNSPECIFIED:default:return"—"}},JM=e=>{const t=rN(e);return e===Te.PRICING_TIER_FOUNDER_CREATOR||e===Te.PRICING_TIER_FOUNDER_DEVELOPER||e===Te.PRICING_TIER_FOUNDER_GROWTH||e===Te.PRICING_TIER_FOUNDER_BUILDER?`Founder Plan - ${t}`:t},nN=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}),Od=new Map,oN=e=>{let t=Od.get(e);return t||(t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:e}),Od.set(e,t)),t},aN=({value:e,maxNumDigits:t})=>e==null?"":t!=null?oN(t).format(e):nN.format(e),Ad=new Map,iN=e=>{let t=Ad.get(e);return t||(t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumSignificantDigits:e}),Ad.set(e,t)),t},ZM=(e,t=2)=>e===0?"$0.00":Math.abs(e)>=.01?aN({value:e,maxNumDigits:2}):iN(t).format(e),sN=e=>{if(typeof e!="string"||!e)return"";const t=new Date(e);return isNaN(t.getTime())?"":new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}).format(t)},lN=()=>{const e=new Date;return new Intl.DateTimeFormat("en-US",{month:"long",year:"numeric",timeZone:"UTC"}).format(e)},eL=e=>{const t=sN(e);return t?`Through ${t}`:lN()},tL=(e,t)=>e===1?t.endsWith("s")?t.slice(0,-1):t:t.endsWith("s")?t:/[^aeiou]y$/i.test(t)?`${t.slice(0,-1)}ies`:/(?:x|z|ch|sh)$/i.test(t)?`${t}es`:`${t}s`,rL=e=>{Zl(Ki.AUTO_RELOAD_TOGGLED,Jl.Billing,e)},nL=(e,t,r)=>({autoReloadEnabled:e,...e&&{threshold:parseInt(t,10)||0,reloadAmount:parseInt(r,10)||0}}),cN="You're out of credits. Add credits to continue.",uN=[/no\s+credits/i,/add\s+credits/i,/not\s+enough\s+(?:money|credits|funds)/i,/insufficient\s+(?:credits|funds)/i],ec=["serverConfirmedNoCredits"],Yi=["noCreditsPaywallDismissed"],dN=e=>{if(!e||typeof e!="object")return;const t=e;if(typeof t.status=="number")return t.status;if(typeof t.code=="number")return t.code;if(t.error&&typeof t.error=="object"){if(typeof t.error.status=="number")return t.error.status;if(typeof t.error.code=="number")return t.error.code}},Cg=e=>{if(!e||typeof e!="object")return"";const t=e;return typeof t.message=="string"?t.message:t.error&&typeof t.error=="object"&&typeof t.error.message=="string"?t.error.message:""},fN=e=>Cg(e)||cN,hN=e=>uN.some(t=>t.test(e)),Rg=e=>{if(yg(e))return!1;const t=dN(e),r=Cg(e);return t===402?!0:t===403||t===Cr.PERMISSION_DENIED?hN(r):!1},tc=(e,t,r,{refetchBillingInfo:n=!0}={})=>{if(!Rg(t))return!1;if(e.setQueryData(ec,!0),e.setQueryData(Yi,!1),!n)return!0;const o=r?e.getQueryData(["billingInfo",r]):e.getQueryCache().findAll(["billingInfo"]).map(i=>i.state.data).find(i=>!!i),a=Tg(o);return a!==void 0&&a>0&&e.invalidateQueries(r?["billingInfo",r]:["billingInfo"]),!0},Sg=e=>I_()?(Rg(e)&&A_(),!0):!1,ws=new WeakMap,pN=new ih({onMutate:(e,t)=>
1293{typeof window!="undefined"&&ws.set(t,window.location.pathname)},onError:(e,t,r,n)=>{if(Sg(e))return;const o=ws.get(n);ws.delete(n),!(o&&XD(e,o))&&tc(qi,e)&&(JD(n.meta)||ZD(fN(e)))}}),gN=new oh({onError:e=>{Sg(e)||tc(qi,e,void 0,{refetchBillingInfo:!1})}}),qi=new I1({mutationCache:pN,queryCache:gN,defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),wd=new WeakSet,Ga=new Set,mN=1e3;function Si(e,t,r){var a,i;if(e&&typeof e=="object"){if(wd.has(e))return;wd.add(e)}const n=yN(e),o=`${(a=n.name)!=null?a:""}\0${n.message}\0${(i=n.stack)!=null?i:""}`;Ga.has(o)||(Ga.size>=mN&&Ga.clear(),Ga.add(o),o1.error(n.message,{event:t,errorName:n.name,errorStack:n.stack,componentStack:r}))}function _N(){const e=r=>{var n;return Si((n=r.error)!=null?n:r.message,"client.unhandled_error")},t=r=>Si(r.reason,"client.unhandled_rejection");return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}}function yN(e){return e instanceof Error?{name:e.name,message:e.message||String(e),stack:e.stack}:{message:typeof e=="string"?e:String(e)}}class EN extends f.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidMount(){this.removeGlobalHandlers=_N()}componentWillUnmount(){var t;(t=this.removeGlobalHandlers)==null||t.call(this)}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){var n;Si(t,"client.react_error_boundary",(n=r.componentStack)!=null?n:void 0)}render(){return this.state.hasError?null:this.props.children}}function vN(){const e=xr(br.STUDIO_FRONTEND_GCP_LOGGING);return f.useEffect(()=>(mc(e),()=>mc(!1)),[e]),null}const TN=()=>function(){},CN=()=>function(){};class RN{constructor(){this.state={resolved:!1,rejected:!1,resolver:TN(),rejecter:CN()},this.promise=new Promise((t,r)=>{this.state.resolver=t,this.state.rejecter=r})}get resolved(){return this.state.resolved}get rejected(){return this.state.rejected}get finished(){return this.state.resolved||this.state.rejected}resolve(t){const{state:r}=this;r.resolved||r.rejected||(r.resolved=!0,r.rejected=!1,r.result=t,r.resolver(t))}reject(t){const{state:r}=this;r.resolved||r.rejected||(this.state.resolved=!1,this.state.rejected=!0,this.state.rejecter(t))}}const SN=()=>typeof window=="undefined",bN=async(e,t)=>{const r={pathPrefix:SN()?Y0():_a(),headers:{Authorization:"test","Grpc-Metadata-X-Authorization-Bearer-Type":"unsecured_service_access"},cache:"no-store"};return e(t,r)},IN="saml.",ON=e=>{const t=e.trim().toLowerCase(),r=t.lastIndexOf("@");if(r<0)return null;const n=t.slice(r+1);return n.length>0?n:null},hl=new Map,Ds=new Map,oi=(e,t)=>{var r,n;return((n=(r=e.find(o=>o.authType===t))==null?void 0:r.providerId)==null?void 0:n.trim())||null},AN=e=>`/v1alpha/billing-accounts:discoverSsoProvider?domain=${encodeURIComponent(e)}`,oL=async(e,t)=>{const r=e.trim().toLowerCase();if(!r)return null;const n=hl.get(r);if(n)return oi(n,t);const o=Ds.get(r);if(o)return o.then(i=>oi(i,t));const a=bN((i,s)=>Z(AN(r),{...s,method:"GET"}),{}).then(i=>{var l;const s=(l=i==null?void 0:i.providers)!=null&&l.length?i.providers:wN(i,t);return hl.set(r,s),s}).finally(()=>{Ds.delete(r)});return Ds.set(r,a),a.then(i=>oi(i,t))},wN=(e,t)=>{var n;const r=(n=e==null?void 0:e.providerId)==null?void 0:n.trim();return r?[{providerId:r,authType:t}]:[]},aL=(e,t)=>{const r=ON(e);if(!r)return null;const n=hl.get(r);return n?oi(n,t):null},DN="sso:",rc=e=>{var t;return!!((t=e==null?void 0:e.providerData)!=null&&t.some(r=>{var n,o;return((n=r==null?void 0:r.providerId)==null?void 0:n.startsWith(IN))||((o=r==null?void 0:r.providerId)==null?void 0:o.startsWith(DN))}))};let Je,ai=null;const iL=e=>{ai=e},NN=e=>{const t=e.fetchSignInMethodsForEmail,r=async function(n){if(ai!==null){const o=ai;return ai=null,o}return t.call(this,n)};e.fetchSignInMethodsForEmail=r};let Ha;const kN=e=>Ha||(Ha=(async()=>{const t=mr.initializeApp(q0);Je=mr.auth(t),NN(Je),await new Promise(r=>{let n=!1;Je.onIdTokenChanged(async o=>{var s;const a=(s=o==null?void 0:o.providerData)==null?void 0:s.some(l=>(l==null?void 0:l.providerId)==="github.com"),i=rc(o);
1293if(o&&!o.isAnonymous&&(o.emailVerified||a||i))try{const l=await o.getIdToken();await Uh(l)}catch(l){console.error(l)}await e(o!=null?o:void 0),n||(n=!0,r())})})})(),Ha),pl="inworld:syncEmailPending",xN=async(e,t)=>{const r=Je.currentUser;if(!r)throw new Error("No signed-in user");if(!r.email)throw new Error("Current user has no email");const n=mr.auth.EmailAuthProvider.credential(r.email,e);await r.reauthenticateWithCredential(n),localStorage.setItem(pl,"1"),await r.verifyBeforeUpdateEmail(t)};let Ns=!1;const MN=async()=>{if(!Ns&&localStorage.getItem(pl)==="1"){Ns=!0;try{await gt(Tn.SyncUserEmail,{}),localStorage.removeItem(pl)}catch(e){Ns=!1,console.error("SyncUserEmail RPC failed",e)}}},LN={authInit:kN},sL=()=>{var e,t;return{isAnonymous:(e=Je==null?void 0:Je.currentUser)==null?void 0:e.isAnonymous,anonUserId:(t=Je==null?void 0:Je.currentUser)==null?void 0:t.uid}};class PN{constructor(){this.observers=[],this.hasNotified=!1}subscribe(t){this.observers.push(t),this.hasNotified&&t(this.lastUser)}unsubscribe(t){this.observers=this.observers.filter(r=>r!==t)}notify(t){this.hasNotified=!0,this.lastUser=t;for(const r of this.observers)r(t)}}const{authInit:UN}=LN,Dd=()=>x_(),Qo=new RN;y_(()=>Qo.promise);const gl=new PN;F0(Q0);X0()==="supabase"?an(async()=>{const{initSupabaseAuth:e}=await import("./bootstrap.CBcx2s8D.js");return{initSupabaseAuth:e}},__vite__mapDeps([4,1,5,3,2])).then(({initSupabaseAuth:e})=>e(t=>gl.notify(t))).then(()=>{Qo.resolve(!0)}).catch(e=>{console.error("Error while initializing Supabase user",e),Qo.resolve(!1)}):UN(async e=>{gl.notify(e)}).then(()=>{Qo.resolve(!0)}).catch(e=>{console.error("Error while initializing Firebase user",e),Qo.resolve(!1)});const BN=Di(T.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),FN=Di(T.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),$N=({error:e,defaultErrorMessage:t})=>{const{message:r,details:n}=e,o=r||t,a=Xe.useRef(null),[i,s]=Xe.useState(!1),[l,c]=Xe.useState(!1);Xe.useEffect(()=>{if(cD(a.current)){s(!0);return}s(!1)},[i]);const u=F.red[500];return T.jsxs("div",{role:"alert",children:[o&&T.jsx(mt,{ref:a,variant:"h5",color:u,sx:{wordWrap:"break-word",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:l?void 0:4},children:o}),i&&T.jsx(El,{color:"error",variant:"text",endIcon:l?T.jsx(BN,{}):T.jsx(FN,{}),onClick:d=>{var h;(h=d==null?void 0:d.stopPropagation)==null||h.call(d),c(!l)},sx:{marginTop:"0.5rem",color:u},children:l?"Hide Details":"Show Details"}),n&&T.jsx(dc,{sx:{padding:0},dense:!0,children:n==null?void 0:n.map((d,h)=>T.jsxs(fc,{children:[d.message,T.jsx(dc,{sx:{padding:0},dense:!0,children:d.fieldViolations.map(({description:p,field:y})=>T.jsxs(fc,{children:[y," : ",p]},`${d.message}_${h}_field:${y}`))})]},`${d.message}_${h}`))})]})},GN=e=>{var t;return(t=e.description)!=null?t:""},HN=(e,t=GN)=>{var r;return(r=e==null?void 0:e.details)==null?void 0:r.flatMap(({fieldViolations:n},o)=>n==null?void 0:n.map(a=>t(a,o)).join(", ")).join(`;
1294 `)},lL=e=>nt.remove(e),WN=()=>{const e=un();return T.jsx(w0,{containerClassName:"NotificationsToaster",toastOptions:{style:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,border:`solid 1px ${e.palette.divider}`,maxWidth:"fit-content",wordBreak:"break-word"}}})},jN=1e4,zN=6e3,Qi=(e,t,r,n,o)=>{var s,l;const a=typeof r=="string"?{id:r}:r!=null?r:{},i=(s=a.id)!=null?s:n.id;return nt.custom(c=>T.jsx(yp,{isVisible:c.visible,type:e,toastId:i,dismissable:a.dismissable,maxWidth:a.maxWidth,actionButton:a.actionButton,onClose:()=>nt.remove(i),children:T.jsxs(T.Fragment,{children:[t,o&&T.jsx(We,{component:"div",sx:{mt:1},children:o})]})}),{id:i,duration:(l=a.duration)!=null?l:n.duration})},cL=(e,t)=>Qi("warning",e,t,{id:"custom_warning",duration:zN}),uL=(e,t)=>Qi("info",e,t,{id:"custom_info"}),rn=(e="Unknown error",t,r)=>Qi("error",e,t,{id:"custom_error"},r),VN="custom_success",dL=(e="Unknown",t)=>Qi("success",e,t,{id:VN,duration:jN}),KN=1e4,Nd=200,YN=({error:e,title:t,id:r})=>{const[n,o]=f.useState(!1),a=f.useRef(void 0),i=()=>{o(!1),nt.remove(r)},s=f.useMemo(()=>{let d=typeof e=="string"?e:e.message;return d.length>Nd?`${d.slice(0,Nd)}...`:d},[e]),l=f.useMemo(()=>typeof e=="string"?e:e.message+`
1295`+HN(e),[e]),c=f.useMemo(()=>typeof e=="string"?T.jsx(mt,{component:"pre",sx:{whiteSpace:"pre-wrap"},children:e}):T.jsx($N,{error:e}),[e]),u=s.length<l.length;return f.useEffect(()=>(a.current=setTimeout(()=>{nt.remove(r)},KN),()=>{a.current&&clearTimeout(a.current)}),[r]),T.jsx(T.Fragment,{children:n?T.jsx(mp,{open:n,controlled:!0,onClose:i,size:"lg",titleComponent:T.jsxs(We,{component:"div",sx:{dis
1295play:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mr:"3rem"},children:[T.jsx(mt,{variant:"h6",children:"Error details"}),T.jsx(pu,{copy:l,tooltip:"Copy error"})]}),primary:{label:"Close",onClick:i},children:c}):T.jsx(yp,{isVisible:!0,type:"error",toastId:r,onClose:()=>nt.remove(r),children:T.jsxs(T.Fragment,{children:[t&&T.jsx(mt,{variant:"h5",sx:{mb:2},children:t}),T.jsx(mt,{variant:"body1",sx:{lineHeight:1.25,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:s}),u&&T.jsxs(We,{component:"div",sx:{display:"flex",justifyContent:"flex-end",gap:1,mt:1},children:[T.jsx(pu,{copy:l,buttonLabel:"Copy error",buttonProps:{intent:"secondary"}}),T.jsx(wn,{"aria-label":"Open details",size:"small",onClick:()=>{o(!0),clearTimeout(a.current),a.current=void 0},children:"Open details"})]})]})})})},fL=(e="Unknown error",t,r="custom_error")=>nt.custom(()=>T.jsx(YN,{error:e,id:r,title:t}),{id:r,duration:1/0}),kd=()=>{var e,t,r;return(r=(t=(e=So())==null?void 0:e.getCurrentUser())!=null?t:Je==null?void 0:Je.currentUser)!=null?r:void 0},hL=e=>T.jsxs("svg",{width:"124",height:"168",viewBox:"0 0 124 168",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[T.jsx("path",{d:"M39.2616 27.7993C38.9981 27.8585 38.9766 27.6058 39.1379 27.5144C44.3155 24.4874 51.6866 23.767 52.235 23.353C52.7297 22.6594 48.864 22.697 47.5199 22.7024C37.74 23.0411 29.2989 26.681 22.288 33.2941C11.5242 42.4664 7.99727 57.5582 9.48656 71.1285C11.2285 85.1611 18.9384 98.3443 30.385 106.635C54.2405 122.673 87.9242 115.011 105.774 93.1828C127.753 66.537 121.194 28.6004 98.2148 11.2613C92.2523 7.12135 85.7359 3.85245 78.7035 1.98143C75.4238 1.00828 70.8592 0.0727743 68.7624 0.00287993C65.5472 -0.0992734 66.6171 2.54596 66.0472 3.19652C65.4773 3.84707 59.5901 4.11052 66.2515 6.44929C70.1925 7.83105 67.7946 7.9117 64.7891 10.6322C62.1278 13.0409 64.4504 15.7399 63.531 16.6861C59.5847 20.7508 65.6279 22.5358 68.7462 24.31C83.8542 32.3747 92.177 46.8913 89.4242 63.9831C85.5585 86.5644 51.9286 96.3173 37.0464 78.462C25.5999 64.924 29.928 42.3858 46.2241 35.0361C48.4822 33.9447 53.5792 32.3532 51.3909 32.536C42.9552 33.2403 36.369 37.7297 34.2399 39.3588C34.0571 39.4986 33.8152 39.2835 33.9281 39.0846C35.4711 36.3695 44.4122 30.036 62.0041 27.8101C65.1494 27.1327 53.3157 24.6541 39.2616 27.7993Z",fill:"currentColor"}),T.jsx("path",{d:"M46.4704 163.577C47.4274 163.566 48.3791 163.706 49.2716 163.797C51.5673 163.867 54.148 163.604 56.6696 163.932C62.1536 164.244 67.6807 165.475 73.1808 165.609C76.9712 165.889 80.5896 165.717 84.4607 165.862C87.3801 166.238 90.848 166.007 93.4663 166.4C95.1008 166.588 96.6008 166.507 98.2406 166.749C102.579 167.367 106.902 167.459 111.295 167.4C112.967 167.453 114.682 167.486 116.349 167.378C118.128 167.276 120.069 167.351 121.499 166.212C122.349 165.711 122.306 164.695 122.483 163.996C122.704 163.615 123.166 163.41 123.37 163.023C123.596 162.357 123.741 161.663 123.752 160.98V160.937C123.8 158.615 122.688 156.33 121.838 154.174C120.424 151.05 118.763 148.13 116.967 145.206C114.962 142.372 113.956 138.506 110.547 136.974C104.402 134.281 98.0847 134.565 91.2835 133.743C78.482 132.608 64.8849 131.775 52.9867 131.614C41.8843 131.775 22.2708 132.501 12.1738 133.399C-5.7622 134.996 2.58749 137.84 2.02296 142.872C1.81865 144.727 -0.208285 144.576 0.0175279 146.394C0.393882 149.028 5.33488 152.324 7.81882 152.991C18.76 155.916 4.24345 156.351 5.86715 159.276C7.21665 161.711 13.2383 161.012 15.6954 161.98L46.4597 163.577H46.4704Z",fill:"currentColor"})]});function qN({color:e}){const t=un();return T.jsx(MD,{color:e||t.palette.text.primary})}const QN=1e3,xd=6e4,bg=()=>{const e=un(),[t,r]=f.useState(!0),[n,o]=f.useState(xd),a=xr(br.STUDIO_ANALYTICS_DISABLE_DIRECT_SEND),{flagsReady:i}=xl(),[s,l]=f.useState(!1),c=f.useCallback(p=>{globalThis.location.href=p},[]);f.useEffect(()=>{var y;((y=kd())==null?void 0:y.emailVerified)&&c("/")},[c]);const u=async()=>{kd()&&await jo(),c("/login")},d=async()=>{try{const p=Je==null?void 0:Je.currentUser;p&&(await hc(p),await p.sendEmailVerification(),r(!0),o(xd))}catch(p){console.error("Unable to send verification email",p),rn("Unable to send verification email.",{duration:7e3,dismissable:!1,actionButton:T.jsx(wn,{intent:"ghost","aria-label":"Try again",onClick:()=>
1295c("/login"),children:"Try again"})})}};f.useEffect(()=>{let p;return t&&(p=setInterval(()=>{o(y=>y<=1e3?(r(!1),0):y-1e3)},1e3)),()=>{p&&clearInterval(p)}},[t]),f.useEffect(()=>{if(!s)return;let p=!1;return(async()=>{i&&!a&&Zl(Ki.SIGNED_UP);try{await Nl()}catch(y){console.error(y)}p||c("/")})(),()=>{p=!0}},[s,i,a,c]),f.useEffect(()=>{let p=globalThis.setInterval(async()=>{const y=Je==null?void 0:Je.currentUser;y&&(await hc(y),y!=null&&y.emailVerified&&(await on.init(y.email,y.uid),globalThis.clearInterval(p),p=void 0,l(!0)))},QN);return()=>{p&&globalThis.clearInterval(p)}},[]);const h=()=>`${Math.ceil(n/1e3)}s`;return T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsxs(We,{component:"div",sx:{backgroundColor:e.palette.background.default,height:"100vh"},children:[T.jsx(z_,{position:"static",sx:{backgroundColor:"transparent",backgroundImage:"none",border:"none",pt:2,boxShadow:"none"},children:T.jsx(q_,{children:T.jsx(Bm,{children:T.jsx(We,{component:"div",sx:{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",maxWidth:"20rem",mx:"auto","& svg":{width:"100%",height:"auto"}},children:T.jsx(Qa,{"aria-label":"Inworld website",href:"https://inworld.ai/",sx:{width:"8rem","&:hover":{opacity:.8}},children:T.jsx(qN,{})})})})})}),T.jsxs(We,{component:"div",sx:{maxWidth:"20rem",width:"100%",mx:"auto",px:"1rem"},children:[T.jsx(mt,{variant:"h3",component:"h3",color:e.palette.text.primary,sx:{mt:16,fontFamily:yr.display,fontWeight:400},children:"Please verify your email to complete sign-up and get access to Inworld"}),T.jsxs(mt,{variant:"caption",color:e.palette.text.secondary,sx:{fontWeight:"400",mt:4},children:["By continuing, you are indicating that you accept our ",T.jsx(Qa,{"aria-label":"Terms of Service",href:J0,underline:"none",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service "}),"and ",T.jsx(Qa,{"aria-label":"Privacy Policy",href:Z0,underline:"none",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]}),T.jsxs(Rn,{sx:{gap:2,marginTop:4,marginX:"auto",maxWidth:"20rem"},children:[T.jsx(wn,{intent:"secondary","aria-label":"Re-send verification email",onClick:d,disabled:t,children:t?`Re-send verification email (${h()})`:"Re-send verification email"}),T.jsx(wn,{"aria-label":"Sign in with a different account",onClick:u,children:"Sign in with a different account"})]})]})]})]})},pL=Object.freeze(Object.defineProperty({__proto__:null,EmailVerification:bg},Symbol.toStringTag,{value:"Module"}));function na(e,t){Si(e,"client.handled_exception")}const ks=new Map([["https://platform.inworld.ai","https://docs.inworld.ai"],["https://platform.eu.inworld.ai","https://docs.inworld.ai"],["https://platform.in.inworld.ai","https://docs.inworld.ai"],["https://studio.inworld.ai","https://docs.inworld.ai"],["https://platform.dev.inworld.ai","https://docs.dev.inworld.ai"],["https://studio.dev.inworld.ai","https://docs.dev.inworld.ai"],["https://platform.stage.inworld.ai","https://docs.stage.inworld.ai"],["https://studio.stage.inworld.ai","https://docs.stage.inworld.ai"]]),ii=()=>new Error("Docs sign-in requires an explicit, environment-matched Docs origin"),xs=e=>{if(!e||/[\s\\]/.test(e))throw ii();let t;try{t=new URL(e)}catch(r){throw ii()}if(!["http:","https:"].includes(t.protocol)||t.username||t.password||t.pathname!=="/"||t.search||t.hash)throw ii();return t},Md=e=>["localhost","127.0.0.1","[::1]"].includes(e.hostname)||e.hostname.endsWith(".localhost"),XN=(e,t,r)=>{const n=xs(e),o=xs(t);if(Md(o)&&(Md(n)||[...ks.values()].includes(n.origin)))return n.origin;let a=ks.get(o.origin);if(!a&&o.protocol==="https:"&&!o.port&&o.hostname.endsWith(".vercel.app")&&(a=ks.get(xs(r).origin)),!a||n.origin!==a)throw ii();return n.origin},JN=()=>new URL("/login/jwt-callback",XN(Ya,globalThis.location.origin,_a())),ZN=(e,t)=>{if(e){if(e.startsWith("/")&&!["/","\\"].includes(e[1]))return e;try{const r=new URL(e);return r.host===new URL(t).host?`${r.pathname}${r.search}${r.hash}`:void 0}catch(r){return}}},gL=(e,t)=>{if(!e||!t||t==="#")return e;const r=new URL(e,"https://docs.invalid");return r.hash?e:(r.hash=t.startsWith("#")?t.slice(1):t,`${r.pathname}${r.search}${r.hash}`)},ml="studio:login-intent",Ig="1",Ld=()=>{typeof window!="undefined"&&window.sessionStorage.setItem(ml,Ig)},ek=()=>
1295{if(typeof window=="undefined")return!1;const e=window.sessionStorage.getItem(ml)===Ig;return e&&window.sessionStorage.removeItem(ml),e},Og="studio:login-preferences",tk=["password","github.com","google.com","microsoft.com","saml"],rk=new Set(tk),Ag=e=>{const t=e.startsWith("saml.")?"saml":e;return rk.has(t)?t:void 0},ba=()=>{try{const e=localStorage.getItem(Og);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const r=t,n=typeof r.savedEmail=="string"?r.savedEmail.trim():"";return{lastLoginProvider:typeof r.lastLoginProvider=="string"?Ag(r.lastLoginProvider):void 0,savedEmail:n||void 0}}catch(e){return{}}},nc=e=>{try{localStorage.setItem(Og,JSON.stringify(e))}catch(t){}},mL=()=>ba().lastLoginProvider,Pd=e=>{const t=Ag(e);t&&nc({...ba(),lastLoginProvider:t})},_L=()=>{var e;return(e=ba().savedEmail)!=null?e:""},yL=e=>{const t=e.trim();t&&nc({...ba(),savedEmail:t})},EL=()=>{const e=ba();delete e.savedEmail,nc(e)},wg=e=>typeof e=="object"&&e!==null,nk=()=>_g.getItem("lastUsedWorkspace"),ok=()=>{const[e,t]=f.useState(null);return f.useEffect(()=>{nk().then(r=>{t(!wg(r))}).catch(r=>console.error(r))},[]),[{isNewUser:e}]},$o="auth_unavailable",ak=e=>t=>{var n,o;na(t,{extra:{reason:t.reason,code:(n=t.code)!=null?n:"none",rpc:(o=t.rpc)!=null?o:"none"}});const r=T.jsx(wn,{intent:"secondary","aria-label":"Sign in again",size:"small",onClick:()=>void e(),children:"Sign in again"});if(g_(t)){rn(`Your sign-in session expired. Sign in again to continue. (${t.code})`,$o,r);return}switch(t.reason){case"no-session":rn(t.message,$o,r);return;case"refresh-failed":rn(`${t.message} Check your connection and try again.`,$o);return;case"exchange-failed":rn(`${t.message} Try again in a moment.`,$o);return;case"unresolved":default:rn(t.message,$o)}},Dg=300*1e3,ik=1e3,sk=["listWorkspaces","index"],lk=async()=>{var r;const e=[];let t;do{const n=await M_(gt(Cl.ListWorkspaces,{pageSize:ik,pageToken:t}),"ListWorkspaces");e.push(...(r=n.workspaces)!=null?r:[]),t=n.nextPageToken||void 0}while(t);return{workspaces:e}},ck=(e=!0)=>dn(sk,lk,{staleTime:Dg,enabled:e}),vL=(e,t,r=!0,n)=>dn(["listWorkspaces",{pageSize:e,pageToken:t,filter:n!=null?n:""}],async()=>gt(Cl.ListWorkspaces,{pageSize:e,pageToken:t,filter:n}),{staleTime:Dg,enabled:r});var si=(e=>(e.Unauthenticated="Unauthenticated",e.PendingEmailConfirmation="PendingEmailConfirmation",e.RegularUser="RegularUser",e))(si||{});const uk={initialized:!1,signedIn:!1,fetching:!1,authStatus:"Unauthenticated"},dk={email:null,displayName:null,userId:null},fk={workspaces:[],landingWorkspace:void 0,fetchingWorkspaces:!1},Ms={auth:uk,userData:dk,userWorkspace:fk},Ia=f.createContext({auth:Ms.auth,userData:Ms.userData,userWorkspace:Ms.userWorkspace,internal:!1,firebaseUser:null,setFirebaseUser:null,firebaseUserIdentity:null,setFirebaseUserIdentity:null,setInworldUser:null,fetchingUser:!1,setShareableCharacterRedirect:null,clearErrors:null,getInworldUser:null,updateUser:null,acceptToS:null,updateMarketingConsent:null,deleteUser:null,isNewUser:!1,updateOnboardingSurvey:null});function hk(e,t){return e!=null&&e>=t}function pk(e,t){const r=t?aa.MARKETING_CONSENT_GRANTED:aa.MARKETING_CONSENT_DECLINED;return e===r}const gk=e=>{var t,r;return e?{id:(t=e.providerData[0])==null?void 0:t.uid,imageUrl:e.photoURL,email:e.email,creationTime:(r=e.metadata)==null?void 0:r.creationTime}:null},mk={USER_PROFILE:"userProfile"},_k=({children:e})=>{const t=Yr(),r=xr(br.STUDIO_ANALYTICS_DISABLE_DIRECT_SEND),{flagsReady:n}=xl(),[o,a]=f.useState(!1),[i,s]=f.useState(!1),[l,c]=f.useState(si.Unauthenticated),[u,d]=f.useState(!1),[h,p]=f.useState(null),[y,S]=f.useState(null),[b,A]=f.useState(null),[x,k]=f.useState(!1),[B,C]=f.useState(),[P,M]=f.useState(),[v,$]=f.useState(),[W,oe]=f.useState(!1),[te,se]=f.useState(!1),{data:ie,isFetching:ee}=ck(i),de=f.useMemo(()=>{var Q;return((Q=ie==null?void 0:ie.workspaces)==null?void 0:Q.slice(0,100))||[]},[ie]),Y=f.useMemo(()=>{var Q;if(de!=null&&de.length)return(Q=de.find(Ye=>{var ot;return Ye.displayName==="Default"||Ye.name&&((ot=Ye.name.split("/").pop())==null?void 0:ot.startsWith("default-"))}))!=null?Q:de[0]},[de]);f.useEffect(()=>{!te||!n||(r||Zl(Ki.SIGNED_UP,Jl.Default,{},{transport:"sendBeacon"}),se(!1))},[te,n,r]);const{refetch:ce,isFetching:he}=dn([mk.USER_PROFILE],async()=>gt(Tn.GetUser,{name:"users/me"}),{enabled:!1,staleTime:1e3*60,onSuccess:Q=>{Q&&p(Q),C(void 0)},onError:Q=>{C(Q)}}),Oe=tn(async Q=>gt(Tn.UpdateUser,{user:{...Q,name:"users/me"}}
1295),{onSuccess:Q=>{h&&Q&&p(Ye=>({...Ye,displayName:Q.displayName})),M(!0),C(void 0)},onError:Q=>{var Xt,dr,At;const Ye=Q==null?void 0:Q.details,ot=Q==null?void 0:Q.message,Dt=((At=(dr=(Xt=Ye==null?void 0:Ye[0])==null?void 0:Xt.fieldViolations)==null?void 0:dr[0])==null?void 0:At.description)||ot;throw C(new Error(Dt)),M(!1),Q}}),Ce=tn(async()=>gt(Tn.AcceptTos,{user:"users/me"}),{onSuccess:Q=>{Q&&p(Q),C(void 0)},onError:Q=>{throw C(Q),Q}}),ye=tn(async Q=>gt(Tn.UpdateUser,{updateMask:"marketingConsent",user:{name:"users/me",marketingConsent:Q?aa.MARKETING_CONSENT_GRANTED:aa.MARKETING_CONSENT_DECLINED}}),{onSuccess:Q=>{Q&&p(Q),C(void 0)},onError:Q=>{throw C(Q),Q}}),Ke=tn(async Q=>gt(Tn.UpdateUser,{user:{name:"users/me",onboardingSurvey:Q}}),{onSuccess:Q=>{Q&&p({...h,onboardingSurvey:Q.onboardingSurvey}),C(void 0)},onError:Q=>{throw C(Q),Q}}),me=tn(async(Q=!1)=>gt(Tn.DeleteUser,{name:"users/me",force:Q}),{onSuccess:()=>{Dd(),jo().catch(Q=>{console.warn("provider signOut failed after account deletion",Q)}),window.location.replace("/login?accountDeleted=true")},onError:Q=>{throw C(Q),Q}}),ne=f.useCallback(async()=>ce(),[ce]),ae=f.useCallback(async()=>{a(!1),s(!1),S(null),p(null),oe(!1),t.clear(),Dd()},[t]);f.useEffect(()=>(wc(ak(async()=>{await jo(),await ae()})),()=>wc(null)),[ae]);const Me=f.useCallback(async Q=>{if(u&&i)return;const Ye=!!Q&&(Q.emailVerified||rc(Q));return!Q||!Ye||Q.isAnonymous?(d(!0),c(si.PendingEmailConfirmation),Promise.resolve()):new Promise(async(ot,Dt)=>{var Xt,dr,At,yt;if(Ye)try{const Qe=await Nl();Q.email&&(c(si.RegularUser),await on.init(Q.email,Q.uid),ek()&&on.track(cg.AUTHENTICATED),Qe!=null&&Qe.isCreated&&(oe(!0),se(!0),on.gtmPush(lg.SIGN_UP))),s(!0);const or=gk(Q);S(or),a(((Xt=or==null?void 0:or.email)==null?void 0:Xt.endsWith("@inworld.ai"))||!1),A(Q);const Jt=await ne();if(Qe!=null&&Qe.isCreated&&Q.email){const Ct=(At=(dr=Jt==null?void 0:Jt.data)==null?void 0:dr.name)==null?void 0:At.split("/").pop();on.partnerStackSignup({email:Q.email,customerKey:Ct!=null?Ct:Q.email,name:(yt=Q.displayName)!=null?yt:void 0})}ot();return}catch(Qe){if(kh(Qe)||xh(Qe)){C(Qe),await jo(),await ae(),ot();return}if(xi(Qe)){C(Qe),ot();return}console.error(Qe),C(Qe),na(Qe),await jo(),await ae(),ot();return}finally{k(!0),d(!0)}Dt(Q)})},[ne,u,ae,i]),rt=f.useCallback(async Q=>{M(!1),await Oe.mutateAsync(Q)},[Oe]),lt=f.useCallback(async()=>{hk(h==null?void 0:h.tosAcceptanceVersion,r_)||await Ce.mutateAsync()},[Ce,h==null?void 0:h.tosAcceptanceVersion]),Ot=f.useCallback(async Q=>{pk(h==null?void 0:h.marketingConsent,Q)||await ye.mutateAsync(Q)},[ye,h==null?void 0:h.marketingConsent]),nr=f.useCallback(async Q=>{await Ke.mutateAsync(Q)},[Ke]),$e=f.useCallback(async(Q=!1)=>{await me.mutateAsync(Q)},[me]),et=f.useCallback(()=>{C(void 0)},[]);f.useEffect(()=>{i&&!h&&ne()},[i,h,ne]);const Le=f.useMemo(()=>({email:b==null?void 0:b.email,displayName:b==null?void 0:b.displayName,userId:h==null?void 0:h.name}),[b,h==null?void 0:h.name]),Ne=f.useMemo(()=>({signedIn:i,signOut:ae,setInitialized:d,initialized:u,authStatus:l,signIn:Me,emailVerified:x,fetching:he||Oe.isLoading||Ce.isLoading,error:B}),[l,x,u,Me,ae,i,he,Oe.isLoading,Ce.isLoading,B]),Be=f.useMemo(()=>({workspaces:de,landingWorkspace:Y,fetchingWorkspaces:ee}),[Y,ee,de]),ct=f.useMemo(()=>({internal:o,auth:Ne,userData:Le,firebaseUserIdentity:y,setFirebaseUserIdentity:S,inworldUser:h,fetchingUser:he||Oe.isLoading||Ce.isLoading||ye.isLoading||me.
1295isLoading||Ke.isLoading,error:B,userInfoUpdatedSuccessfully:P,shareableCharacterRedirect:v,setInworldUser:p,setShareableCharacterRedirect:$,clearErrors:et,getInworldUser:ne,updateUser:rt,acceptToS:lt,updateMarketingConsent:Ot,deleteUser:$e,isNewUser:W,firebaseUser:b,setFirebaseUser:A,userWorkspace:Be,updateOnboardingSurvey:nr}),[o,Ne,Le,y,h,he,Oe.isLoading,Ce.isLoading,ye.isLoading,me.isLoading,Ke.isLoading,B,P,v,et,ne,rt,lt,Ot,$e,W,b,Be,nr]);return T.jsx(Ia.Provider,{value:ct,children:e})},Ng=()=>{const e=f.useContext(Ia);if(!e)throw new Error("useUser must be used within UserContextProvider");return e},Xi=()=>{const e=f.useContext(Ia);if(!e)throw new Error("useUserAuth must be used within UserContextProvider");if(!e.auth)throw new Error("useUserAuth.auth must be used within UserContextProvider");return e.auth},TL=()=>{var t;const e=f.useContext(Ia);if(!e)throw new Error("useUserData must be used within UserContextProvider");if(!e.auth)throw new Error("useUserData.auth must be used within UserContextProvider");if(!e.auth.signedIn&&!((t=e.userData)!=null&&t.userId))throw new Error("useUserData should be used inside authenticated user context");return e.userData},CL=()=>{const e=f.useContext(Ia);if(!e)throw new Error("useUserWorkspace must be used within UserContextProvider");if(!e.userWorkspace)throw new Error("useUserWorkspace.useUserWorkspace must be used within UserContextProvider");return e.userWorkspace},yk="saml.",Ud=new Set(["auth/user-not-found","auth/wrong-password","auth/invalid-email","auth/user-disabled","auth/too-many-requests"]),Ek=["Firebase: HTTP Cloud Function returned an error: ","Firebase: "].sort((e,t)=>t.length-e.length);function vk(e){for(const t of Ek)if(e.startsWith(t))return e.slice(t.length);return e}const Ls="Continue with",kg=f.createContext(null),Tk=({children:e})=>{var Ke;const[t,r]=f.useState(!0),[n,o]=f.useState(!1),[a,i]=f.useState(document.referrer?document.referrer:""),[s,l]=f.useState(!1),[{isNewUser:c}]=ok(),u=Je==null?void 0:Je.currentUser,[d,h]=f.useState(!1),[p,y]=f.useState(),[S,b]=f.useState(),[A,x]=f.useState(0),k=xr(br.STUDIO_GITHUB_SSO),{signIn:B,error:C}=Xi(),{firebaseUser:P,setFirebaseUser:M}=Ng(),v=f.useMemo(()=>!!P,[P]),$=f.useCallback(me=>{const ne=JN(),ae=ZN(a,ne.origin);ae&&ne.searchParams.set("redirect",ae),ne.hash=me,globalThis.location.href=ne.toString()},[a]);f.useEffect(()=>{const me=new URLSearchParams(globalThis.location.search),ne=me.has("redirect");ne&&i(me.get("redirect")),l(ne)},[]),f.useEffect(()=>{const me=async ne=>{await B(ne),ne&&M(ne),ne||o(!1),r(!1)};d||(gl.subscribe(async ne=>{me(ne)}),h(!0))},[B,d,M]);const W=f.useCallback(()=>{y(void 0),b(void 0)},[]),[oe,te]=f.useState(!1);f.useEffect(()=>{var ne,ae;if(!u)return;const me=(ae=(ne=u.providerData)==null?void 0:ne.some(Me=>(Me==null?void 0:Me.providerId)===mr.auth.EmailAuthProvider.PROVIDER_ID))!=null?ae:!1;te(me)},[u]);const se=f.useCallback(async(me,ne)=>{await xN(me,ne)},[]);f.useEffect(()=>{u!=null&&u.email&&(u!=null&&u.emailVerified)&&MN()},[u==null?void 0:u.email,u==null?void 0:u.emailVerified]);const ie=f.useCallback(async(me,ne)=>{y(void 0),b(void 0);try{const ae=await Je.signInWithPopup(me);Ld(),Pd(me.providerId),localStorage.getItem(co)||localStorage.setItem(co,"true"),M(ae.user),o(!0),r(!1)}catch(ae){ae.code==="auth/account-exists-with-different-credential"?y("It looks like you already have an account. Please sign in with your original method to access your account."):ae.code==="auth/popup-closed-by-user"||ae.code==="auth/user-cancelled"||(ae.code==="auth/popup-blocked"?b("The sign-in popup was blocked by your browser. Please allow popups for this site and try again."):(b(ae.message&&vk(ae.message)||`${ne} sign-in failed. Please try again.`),Ud.has(ae.code)||na(ae))),r(!1),setTimeout(()=>x(Me=>Me+1),500)}},[M]),ee=f.useCallback(async()=>{const me=new mr.auth.GithubAuthProvider;return me.addScope("user:email"),ie(me,"GitHub")},[ie]),de=f.useCallback(async()=>{const me=new mr.auth.OAuthProvider("microsoft.com");return ie(me,"Microsoft")},[ie]),Y=f.useCallback(async me=>{const ne=new mr.auth.GoogleAuthProvider;return me&&ne.setCustomParameters({login_hint:me}),ie(ne,"Google")},[ie]),ce=f.useCallback(async me=>
1295{if(!me.startsWith(yk)){y(void 0),b("Single sign-on is unavailable on this sign-in page. Reload and try again — if it keeps happening, contact support."),na(new Error(`SSO discovery returned a non-GCIP provider handle for the Firebase sign-in path: ${me}`)),r(!1);return}const ne=new mr.auth.SAMLAuthProvider(me);return ie(ne,"SSO")},[ie]),he=f.useMemo(()=>{const ne={autoUpgradeAnonymousUsers:!1,signInFlow:"popup",popupMode:!0,siteName:"inworld.ai",callbacks:{signInSuccessWithAuthResult:(ae,Me)=>{var lt,Ot,nr,$e,et;Ld();const rt=(nr=(lt=ae==null?void 0:ae.credential)==null?void 0:lt.providerId)!=null?nr:(Ot=ae==null?void 0:ae.additionalUserInfo)==null?void 0:Ot.providerId;return rt&&Pd(rt),($e=ae==null?void 0:ae.user)!=null&&$e.email&&!((et=ae==null?void 0:ae.user)!=null&&et.emailVerified)&&Je&&Je.currentUser?Je.currentUser.sendEmailVerification().catch(Le=>{console.error("sendEmailVerification",Le)}):(localStorage.getItem(co)||localStorage.setItem(co,"true"),M(ae==null?void 0:ae.user)),o(!0),r(!1),!1},signInFailure:function(ae){if(ae.code==="auth/account-exists-with-different-credential")return y("It looks like you already have an account. Please sign in with your original method to access your account."),r(!1),setTimeout(()=>x(rt=>rt+1),500),Promise.resolve();if(ae.code!=="firebaseui/anonymous-upgrade-merge-conflict")return Ud.has(ae.code)||na(ae),b(ae.message||"Sign-in failed. Please try again."),r(!1),setTimeout(()=>x(rt=>rt+1),500),Promise.resolve();const Me=ae.credential;return Je.signInWithCredential(Me),r(!1),Promise.resolve()}},signInOptions:[{provider:mr.auth.GoogleAuthProvider.PROVIDER_ID,fullLabel:`${Ls} Google`},{provider:"microsoft.com",fullLabel:`${Ls} Microsoft`},{provider:mr.auth.EmailAuthProvider.PROVIDER_ID,fullLabel:`${Ls} email`}]};return{errorMessage:C,firebaseSignedIn:n,uiConfig:ne,auth:Je,isLoading:t,isNewUser:c,redirectCallbackUrl:a,isAuthRedirection:s,authRedirectionReady:v,redirectWithToken:$,authLinkingError:p,authErrorMessage:S,authResetKey:A,handleGithubSignIn:ee,handleMicrosoftSignIn:de,handleGoogleSignIn:Y,handleSsoSignIn:ce,isGithubSsoEnabled:k,clearAuthErrors:W,hasPasswordProvider:oe,handleChangeEmail:se}},[C,n,t,c,a,s,v,$,M,p,S,A,k,ee,de,Y,ce,oe,se,W]),Oe=(Ke=u==null?void 0:u.providerData)==null?void 0:Ke.some(me=>(me==null?void 0:me.providerId)==="github.com"),Ce=rc(u),ye=!!(u!=null&&u.email)&&!(u!=null&&u.emailVerified)&&!Oe&&!Ce;return f.useEffect(()=>{ye&&globalThis.location.pathname!=="/email-verification"&&globalThis.history.replaceState(null,"","/email-verification")},[ye]),ye?T.jsx(bg,{}):T.jsx(kg.Provider,{value:he,children:e})},RL=e=>{var t;return e&&e===((t=Je==null?void 0:Je.currentUser)==null?void 0:t.email)},SL=()=>{const e=f.useContext(kg);if(!e)throw Error("useAuthContext hook must be used inside AuthProvider");return e};class oc extends Error{constructor(t){super(t),Object.setPrototypeOf(this,oc.prototype)}}function li(e,t="Assertion error"){if(!e)throw new oc(t)}const sc=class sc{static configure(t){this.silent=typeof t.silent=="undefined"?this.silent:t.silent}static parse(t,r){try{return JSON.parse(t)}catch(n){this.silent||console.warn("Error parsing JSON:",n);const o=r==null?void 0:r.defaultValue;if(typeof o!="undefined")return o}return null}static stringify(t,r){try{if(r!=null&&r.circular){let n=[],o=JSON.stringify(t,(a,i)=>{if(wg(i)&&i!==null){if(li(n,"cache object should not be empty here"),n.includes(i))return r.circularPlaceholder?r.circularPlaceholder:null;n.push(i)}return i});return n=null,o}return JSON.stringify(t)}catch(n){this.silent||console.warn("Error stringify JSON:",n);const o=r==null?void 0:r.defaultValue;if(typeof o!="undefined")return o}return null}};sc.silent=!1;let _l=sc;var Ck=(e=>(e.ORG_TYPE_UNSPECIFIED="ORG_TYPE_UNSPECIFIED",e.ORG_TYPE_PERSONAL="ORG_TYPE_PERSONAL",e.ORG_TYPE_TEAM="ORG_TYPE_TEAM",e))(Ck||{}),Rk=(e=>(e.BILLING_ACCOUNT_MEMBER_ROLE_UNSPECIFIED="BILLING_ACCOUNT_MEMBER_ROLE_UNSPECIFIED",e.BILLING_ACCOUNT_MEMBER_ROLE_OWNER="BILLING_ACCOUNT_MEMBER_ROLE_OWNER",e.BILLING_ACCOUNT_MEMBER_ROLE_ADMIN="BILLING_ACCOUNT_MEMBER_ROLE_ADMIN",e.BILLING_ACCOUNT_MEMBER_ROLE_MEMBER="BILLING_ACCOUNT_MEMBER_ROLE_MEMBER",e))(Rk||{}),Sk=(e=>(e.DOMAIN_VERIFICATION_STATE_UNSPECIFIED="DOMAIN_VERIFICATION_STATE_UNSPECIFIED",e.DOMAIN_VERIFICATION_STATE_PENDING="DOMAIN_VERIFICATION_STATE_PENDING",e.DOMAIN_VERIFICATION_STATE_VERIFIED="DOMAIN_VERIFICATION_STATE_VERIFIED",e))(Sk||{}),bk=(e=>(e.INVITATION_STATE_UNSPECIFIED="INVITATION_STATE_UNSPECIFIED",e.INVITATION_STATE_PENDING="INVITATION_STATE_PENDING",e.INVITATION_STATE_ACCEPTED="INVITATION_STATE_ACCEPTED",e.INVITATION_STATE_DECLINED="INVITATION_STATE_DECLINED",e.INVITATION_STATE_EXPIRED="INVITATION_STATE_EXPIRED",e))(bk||{});class xg{static ListBillingAccounts(t,r){return Z(`/v1alpha/billing-accounts?${Ee(t,[])}`,{...r,method:"GET"})}static MeListBillingAccounts(t,r){return Z(`/v1alpha/billing-accounts:meListBillingAccounts?${Ee(t,[])}`,{...r,method:"GET"})}static ShareBillingAccount(t,r){return Z(`/v1alpha/${t.name}:share`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static StartBillingPlanChange(t,r){return Z(`/v1alpha/${t.name}:startBillingPlanChange`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetBillingAccount(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static CreateBillingAccount(t,r){return Z(`/v1alpha/billing-accounts?${Ee(t,[],"billingAccount")}`,{...r,method:"POST",body:JSON.stringify(t.billingAccount,Ie)})}static UpdateBillingAccount(t,r){return Z(`/v1alpha/${t.billingAccount.name}?${Ee(t,["billingAccount.name"],"billingAccount",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.billingAccount,Ie)})}static GetBillingAccountMember(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static CreateBillingAccountMember(t,r){return Z(`/v1alpha/${t.parent}/members?${Ee(t,["parent"],"billingAccountMember")}`,{...r,method:"POST",body:JSON.stringify(t.billingAccountMember,Ie)})}static InviteBillingAccountMember(t,r){return Z(`/v1alpha/${t.parent}/invitations`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static ListBillingAccountInvitations(t,r){return Z(`/v1alpha/${t.parent}/invitations?${Ee(t,["parent"])}`,{...r,method:"GET"})}static DeleteBillingAccountInvitation(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static GetBillingAccountInvitation(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static AcceptBillingAccountInvitation(t,r){return Z(`/v1alpha/${t.name}:accept`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static DeclineBillingAccountInvitation(t,r){return Z(`/v1alpha/${t.name}:decline`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static UpdateBillingAccountMember(t,r){return Z(`/v1alpha/${t.billingAccountMember.name}?${Ee(t,["billingAccountMember.name"],"billingAccountMember",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.billingAccountMember,Ie)})}static DeleteBillingAccountMember(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static ListBillingAccountMembers(t,r){return Z(`/v1alpha/${t.parent}/members?${Ee(t,["parent"])}`,{...r,method:"GET"})}static CreateBillingAccountDomain(t,r){return Z(`/v1alpha/${t.parent}/domains?${Ee(t,["parent"],"billingAccountDomain")}`,{...r,method:"POST",body:JSON.stringify(t.billingAccountDomain,Ie)})}static ListBillingAccountDomains(t,r){return Z(`/v1alpha/${t.parent}/domains?${Ee(t,["parent"])}`,{...r,method:"GET"})}static GetBillingAccountDomain(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static DeleteBillingAccountDomain(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static UpdateBillingAccountDomain(t,r){return Z(`/v1alpha/${t.billingAccountDomain.name}?${Ee(t,["billingAccountDomain.name"],"billingAccountDomain",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.billingAccountDomain,Ie)})}static VerifyBillingAccountDomain(t,r){return Z(`/v1alpha/${t.name}:verify`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static BulkAddBillingAccountDomainMembers(t,r){return Z(`/v1alpha/${t.name}:bulkAddMembers`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetBillingAccountSsoConfig(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static UpdateBillingAccountSsoConfig(t,r){return Z(`/v1alpha/${t.billingAccountSsoConfig.name}?${Ee(t,["billingAccountSsoConfig.name"],"billingAccountSsoConfig",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.billingAccountSsoConfig,Ie)})}static ResetBillingAccountSsoConfig(t,r){return Z(`/v1alpha/${t.name}:reset`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static DiscoverSsoProvider(t,r){return Z(`/v1alpha/billing-accounts:discoverSsoProvider?${Ee(t,[])}`,{...r,method:"GET"})}static GetBillingAccountScimConfig(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static UpdateBillingAccountScimConfig(t,r){return Z(`/v1alpha/${t.billingAccountScimConfig.name}?${Ee(t,["billingAccountScimConfig.name"],"billingAccountScimConfig",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.billingAccountScimConfig,Ie)})}static CreateBillingAccountScimToken(t,r){return Z(`/v1alpha/${t.parent}/scim-tokens?${Ee(t,["parent"],"billingAccountScimToken")}`,{...r,method:"POST",body:JSON.stringify(t.billingAccountScimToken,Ie)})}static ListBillingAccountScimTokens(t,r){return Z(`/v1alpha/${t.parent}/scim-tokens?${Ee(t,["parent"])}`,{...r,method:"GET"})}static DeleteBillingAccountScimToken(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static ListBillingAccountScimGroups(t,r){return Z(`/v1alpha/${t.parent}/scim-groups?${Ee(t,["parent"])}`,{...r,method:"GET"})}static UpdateBillingAccountScimGroup(t,r){return Z(`/v1alpha/${t.billingAccountScimGroup.name}?${Ee(t,["billingAccountScimGroup.name"],"billingAccountScimGroup",["updateMask"])}`,{...r,method:"PATCH",body:JSON.stringify(t.billingAccountScimGroup,Ie)})}}class Ik{static ListOperations(t,r){return Z(`/v1alpha/${t.name}/operations?${Ee(t,["name"])}`,{...r,method:"GET"})}static GetOperation(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static DeleteOperation(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static CancelOperation(t,r){return Z(`/v1alpha/${t.name}:cancel`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static WaitOperation(t,r){return Z("/ai.inworld.studio.v1alpha.Operations/WaitOperation",{...r,method:"POST",body:JSON.stringify(t,Ie)})}}const Bd=60,Ok=1e3,Ak=/StatusException: FAILED_PRECONDITION: (.+)/,Fd=e=>{var n,o;const t=e==null?void 0:e.message,r=typeof t=="string"?t:String(e);return(o=(n=Ak.exec(r))==null?void 0:n[1])!=null?o:r},wk=async e=>{var r,n,o,a;const t=await e;if(t.error||(r=t.metadata)!=null&&r.error)throw new Error(Fd(t.error||((n=t.metadata)==null?void 0:n.error)));if(t.done&&t.response)return t.response;if(!t.name)throw new Error("Operation doesn't include name");for(let i=0;i<Bd;i++){const s=await Jo(Ik.GetOperation,{name:t.name});if(s!=null&&s.done){if(s.error||(o=s.metadata)!=null&&o.error)throw new Error(Fd(s.error||((a=s.metadata)==null?void 0:a.error)));if(!s.response)throw new Error("Operation completed but response is missing");return s.response}await new Promise(l=>setTimeout(l,Ok))}throw new Error(`Operation timeout. Max number of checks reached ${Bd}`)},bL=(e,t)=>{const r=t.enabled?"topUpConfig.enabled,topUpConfig.threshold,topUpConfig.reloadAmount":"topUpConfig.enabled";return wk(gt(vo.SaveTopUpConfig,{name:e,topUpConfig:t,updateMask:r}))},IL=e=>gt(vo.GetCustomerPortal,{name:e}).then(t=>t==null?void 0:t.portalUrl),Mg=6e4,Lg=["billingAccounts"],Dk=200,ac=(e=!0)=>dn(Lg,async()=>{var r;const t=await Jo(xg.MeListBillingAccounts,{pageSize:Dk});return(r=t==null?void 0:t.billingAccounts)!=null?r:[]},{enabled:e,staleTime:Mg}),OL=()=>{const e=Yr();return tn(async({name:t,zeroDataRetention:r})=>gt(xg.UpdateBillingAccount,{billingAccount:{name:t,zeroDataRetention:r},updateMask:"zero_data_retention"}),{onSuccess:()=>
1295{e.invalidateQueries(Lg),e.invalidateQueries(["listWorkspaces"])}})},Nk=(e,t)=>{var r;return dn(["billingInfo",e],async()=>gt(vo.GetBillingInfo,{name:`${e}/billing-info`}),{enabled:!!e,staleTime:(r=t==null?void 0:t.staleTime)!=null?r:Mg})},AL=(e,t)=>{const r=Yr();return tn(["updateSubscriptionCancellation",e],({targetStatus:n,targetTier:o})=>{if(!e)throw new Error("billingAccountId is required to update subscription cancellation");const a={name:e,targetStatus:n};return o!==void 0&&(a.targetTier=o),gt(vo.UpdateSubscriptionCancellation,a)},{onSuccess:n=>{var o;r.invalidateQueries(["billingInfo",e]),(o=t==null?void 0:t.onSuccess)==null||o.call(t,n)},onError:t==null?void 0:t.onError})},kk=(e,t)=>{const{flagsReady:r}=xl(),n=xr(e),o=H2(e),a=n?o.enabled:!!r,i=n&&o.enabled&&(o==null?void 0:o.name)===t;return{variantDataReady:a,isVariantOn:i,variantData:o}};class ci{static SetCustomUserSetting(t,r){return Z(`/v1alpha/${t.setting.name}:set`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static GetCustomUserSetting(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"GET"})}static ListCustomUserSettings(t,r){return Z(`/v1alpha/users/me/settings?${Ee(t,[])}`,{...r,method:"GET"})}static DeleteCustomUserSetting(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}}const xk=()=>{const e=Yr(),{signedIn:t}=Xi(),{data:r=[],isLoading:n,isError:o}=dn(["userSettingsList"],async()=>{const s=await gt(ci.ListCustomUserSettings,{pageSize:1e3});return(s==null?void 0:s.settings)||[]},{enabled:t,onError:s=>{console.error("Error fetching user settings",s)}}),a=tn(async({name:s,value:l})=>await gt(ci.SetCustomUserSetting,{setting:{name:s,value:l}}),{onMutate:async({name:s,value:l})=>{await e.cancelQueries(["userSettingsList"]);const c=e.getQueryData(["userSettingsList"]);return e.setQueryData(["userSettingsList"],(u=[])=>u.some(h=>h.name===s)?u.map(h=>h.name===s?{...h,value:l}:h):[...u,{name:s,value:l}]),{previousUserSettings:c}},onError:(s,l,c)=>{c&&e.setQueryData(["userSettingsList"],c.previousUserSettings),console.error("Error setting user setting",s)},onSettled:()=>e.invalidateQueries(["userSettingsList"])}),i=tn(async s=>await gt(ci.DeleteCustomUserSetting,{name:s}),{onMutate:async s=>{await e.cancelQueries(["userSettingsList"]);const l=e.getQueryData(["userSettingsList"]);return e.setQueryData(["userSettingsList"],(c=[])=>c.filter(u=>u.name!==s)),{previousUserSettings:l}},onError:(s,l,c)=>{c&&e.setQueryData(["userSettingsList"],c.previousUserSettings),console.error("Error deleting user setting",s)},onSettled:()=>e.invalidateQueries(["userSettingsList"])});return{userSettings:r,deleteSettingMutation:i,setSettingMutation:a,isLoading:n,isError:o}},Mk=e=>{const{userSettings:t,setSettingMutation:r,deleteSettingMutation:n,isLoading:o,isError:a}=xk(),[i,s]=f.useState(o||r.isLoading);f.useEffect(()=>{o||r.isLoading?s(!0):!o&&!r.isLoading&&s(!1)},[o,r.isLoading]);const l="users/me/settings/"+e,c=f.useMemo(()=>{var b;if(o)return;const S=t.find(A=>A.name===l);return(b=S==null?void 0:S.value)!=null?b:null},[t,l,o]),u=f.useRef(Promise.resolve()),d=f.useRef(r);d.current=r;const h=f.useRef(n);h.current=n;const p=f.useCallback((S,b)=>{s(!0);const A=u.current.catch(()=>{}).then(()=>d.current.mutateAsync({name:l,value:S}).catch(x=>
1295{if(b!=null&&b.throwOnError)throw x}));return u.current=A,A.then(()=>{})},[l]),y=f.useCallback(()=>{const S=u.current.catch(()=>{}).then(()=>h.current.mutateAsync(l).catch(()=>{}));return u.current=S,S.then(()=>{})},[l]);return{value:c,setValue:p,deleteSetting:y,isLoading:i,isError:a}},Lk=new Date("2026-04-02T00:00:00Z"),Pk=e=>e===Te.PRICING_TIER_FOUNDER_CREATOR||e===Te.PRICING_TIER_FOUNDER_DEVELOPER||e===Te.PRICING_TIER_FOUNDER_GROWTH||e===Te.PRICING_TIER_FOUNDER_BUILDER,wL=e=>e===Te.PRICING_TIER_CREATOR_ANNUAL||e===Te.PRICING_TIER_DEVELOPER_ANNUAL||e===Te.PRICING_TIER_GROWTH_ANNUAL||e===Te.PRICING_TIER_BUILDER_ANNUAL,DL=e=>e===Te.PRICING_TIER_BUILDER||e===Te.PRICING_TIER_BUILDER_ANNUAL||e===Te.PRICING_TIER_FOUNDER_BUILDER,Uk=e=>e===Te.PRICING_TIER_ENTERPRISE,NL=e=>Uk(e)||e===Te.PRICING_TIER_TRIAL,Bk=e=>e===Te.PRICING_TIER_Y_COMBINATOR||e===Te.PRICING_TIER_TRIAL,Fk={[Te.PRICING_TIER_Y_COMBINATOR]:"Y Combinator plans are managed by Inworld; self-serve changes are not available.",[Te.PRICING_TIER_TRIAL]:"Enterprise - Trial plans are managed by Inworld; self-serve changes are not available."},$k=e=>e?Fk[e]:void 0,$d="Contact support to change plans.",kL=e=>{if(!Bk(e))return;const t=$k(e);return t?`${t} ${$d}`:$d},Pg={showFounderPlans:!0},xL=e=>{if(e==null)return{};try{const t=typeof e=="string"?JSON.parse(e):e;if(t===null||typeof t!="object")return{};const r=t,n={};if(typeof r.founderCutoffDate=="string"&&r.founderCutoffDate.trim()){const o=new Date(r.founderCutoffDate.trim());Number.isNaN(o.getTime())||(n.founderCutoffDate=o)}return typeof r.showPublicCatalogForFounderOnDemand=="boolean"&&(n.showPublicCatalogForFounderOnDemand=r.showPublicCatalogForFounderOnDemand),n}catch(t){return{}}},ML=(e,t)=>{if(!(!e||e===Te.PRICING_TIER_UNSPECIFIED))return e===Te.PRICING_TIER_ENTERPRISE?Te.PRICING_TIER_ENTERPRISE:t==="founder"&&e===Te.PRICING_TIER_STARTER?Te.PRICING_TIER_STANDARD:t==="new"&&e===Te.PRICING_TIER_STANDARD?Te.PRICING_TIER_STARTER:e},LL=(e,t,r)=>{const n=Gk(e,t,r),o=t!=null?t:Pg;return r===Te.PRICING_TIER_STANDARD&&o.showPublicCatalogForFounderOnDemand===!0&&n==="founder"?"new":n},Gk=(e,t,r)=>{var i;const n=t!=null?t:Pg;if(r!==void 0&&Pk(r))return"founder";if(!n.showFounderPlans||!e)return"new";const o=new Date(e),a=(i=n.founderCutoffDate)!=null?i:Lk;return o<a?"founder":"new"},Hk=e=>e===Te.PRICING_TIER_STANDARD||e===Te.PRICING_TIER_STARTER,PL=e=>e===Te.PRICING_TIER_STARTER||e===Te.PRICING_TIER_CREATOR||e===Te.PRICING_TIER_CREATOR_ANNUAL||e===Te.PRICING_TIER_FOUNDER_CREATOR,Wk="users/me/settings/portal-workspace-prefs",jk=async e=>{var t;if(e){const r=(t=await bd.getItem("lastUsedWorkspace"))!=null?t:{};if(r[e]!==void 0){const{[e]:n,...o}=r;await bd.setItem("lastUsedWorkspace",o)}}try{await gt(ci.DeleteCustomUserSetting,{name:Wk}),await qi.invalidateQueries(["userSettingsList"])}catch(r){console.warn("Failed to clear server-side workspace pref",r)}},ic=f.createContext({orgs:[],currentOrg:null,setCurrentOrg:()=>{},isLoading:!0,isError:!1,isSwitchingRef:{current:!1},refreshOrgs:async()=>{}}),bi="selectedOrgName";function zk(e){try{const t=e?`${bi}_${e}`:bi;return localStorage.getItem(t)}catch(t){return null}}function Vk(e,t){try{const r=t?`${bi}_${t}`:bi;localStorage.setItem(r,e)}catch(r){}}function Kk(e){var r,n,o,a;const t=e.orgType==="ORG_TYPE_TEAM"?"TEAM":"PERSONAL";return{name:(r=e.name)!=null?r:"",displayName:(n=e.displayName)!=null?n:"",type:t,billingEmail:(o=e.billingEmail)!=null?o:void 0,currentUserRole:e.currentUserRole,zeroDataRetention:(a=e.zeroDataRetention)!=null?a:!1}}const Yk=({children:e})=>{var Ce,ye,Ke,me;const t=xr(br.STUDIO_ORG_MANAGEMENT),r=Ng(),n=(ye=(Ce=r==null?void 0:r.auth)==null?void 0:Ce.signedIn)!=null?ye:!1,o=n?(Ke=r==null?void 0:r.userData)==null?void 0:Ke.email:void 0,a=f.useRef(!1),{data:i,isLoading:s,isFetching:l,refetch:c}=ac(n),u=s||l,d=f.useMemo(()=>(i!=null?i:[]).map(Kk),[i]),{value:h,setValue:p,isLoading:y,isError:S}=Mk("portal-selected-org"),b=d.find(ne=>ne.name===h),A=!S&&h==null?d.find(ne=>ne.name===zk(o)):void 0,x=b!=null?b:A,k=d.find(ne=>ne.type==="PERSONAL"),B=d.find(ne=>ne.type==="TEAM"),C=n&&t&&!y&&!S&&!x&&!!k&&!!B,{data:P,isLoading:M,isFetching:v,isError:$,isSuccess:W}=Nk(C?k==null?void 0:k.name:void 0,{staleTime:0}),oe=M||v,te=W&&!oe&&!$&&Hk(P==null?void 0:P.pricingTier),se=(me=x!=null?x:te?B:k)!=null?me:d[0],[ie,ee]=f.useState(null),de=f.useMemo(()=>{var ne;return(ne=d.find(ae=>ae.name===ie))!=null?ne:null},[d,ie]);f.useEffect(()=>{var ne;if(!n){ee(null);return}
1295t&&(!d.length||de||y||S||C&&oe||(ee((ne=se==null?void 0:se.name)!=null?ne:null),A&&!S&&p(A.name)))},[n,t,d.length,de,y,S,C,oe,se==null?void 0:se.name,A,p]);const Y=f.useCallback(ne=>{ee(ne),Vk(ne,o),p(ne),jk(o)},[o,p]),ce=f.useCallback(async ne=>{const{data:ae}=await c();ne&&ae!=null&&ae.some(Me=>Me.name===ne)&&(a.current=!0,Y(ne))},[c,Y]),he=f.useCallback(ne=>{d.some(ae=>ae.name===ne)&&Y(ne)},[d,Y]),Oe=f.useMemo(()=>{var ne;return{orgs:t?d:d.slice(0,1),currentOrg:t?de:(ne=d[0])!=null?ne:null,setCurrentOrg:he,isLoading:u||n&&t&&!de&&(y||S||C&&oe),isError:n&&t&&!de&&S,refreshOrgs:ce,isSwitchingRef:a}},[d,de,he,u,ce,t,n,y,S,C,oe]);return T.jsx(ic.Provider,{value:Oe,children:e})},Ug=()=>f.useContext(ic),UL=()=>{const{currentOrg:e}=f.useContext(ic);return e},BL={tts:2,llm:4,stt:2,realtime:2},FL=120,$L="public-playground:realtime:seconds",GL=120,HL="public-playground:stt:seconds",WL="inworld/",jL={tts:"tts-playground",llm:"llm-playground",realtime:"realtime/playground",stt:"stt/playground"},qk={tts:"/try/tts",llm:"/try/llm",realtime:"/try/realtime",stt:"/try/stt"};Object.fromEntries(Object.entries(qk).map(([e,t])=>[t,e]));const zL="public-playground:freemium:",VL="public-playground:state:",KL="public-playground:signup-source",YL="public-studio";let Bg=!1;function qL(e){Bg=e!==null}function QL(){return Bg}function Ps(){return typeof window=="undefined"?!1:window.location.pathname.startsWith("/try/")}const Gd="An error occurred while retrieving the billing information.",Qk=e=>{if(e==null)return en.BASIC;const t=_l.parse(e);return(t==null?void 0:t.tier)===en.ENTERPRISE?en.ENTERPRISE:(t==null?void 0:t.tier)===en.PREMIUM?en.PREMIUM:(t==null?void 0:t.tier)===en.GROWTH?en.GROWTH:en.BASIC},Xk=f.memo(({children:e})=>{var ee,de;const{variantData:t}=kk(br.STUDIO_CUSTOMER_TIER,"tier"),r=Qk((ee=t.payload)==null?void 0:ee.value),{signedIn:n,emailVerified:o}=Xi(),a=xr(br.STUDIO_ORG_MANAGEMENT),{currentOrg:i}=Ug(),{data:s,isLoading:l}=ac(n),[c,u]=f.useState(null),[d,h]=f.useState(null),[p,y]=f.useState(null),[S,b]=f.useState(!1),A=f.useMemo(()=>S&&o,[o,S]),x=a&&(i!=null&&i.name)?i.name:null,k=a&&!x&&(l||((de=s==null?void 0:s.length)!=null?de:0)>0),B=f.useMemo(()=>{var Y,ce;return x?{name:x}:k?null:(ce=(Y=s==null?void 0:s[0])!=null?Y:c)!=null?ce:null},[x,k,s,c]),C=B==null?void 0:B.name,P=n&&!x&&!l&&(s==null?void 0:s.length)===0&&!c;f.useEffect(()=>{if(!P)return;let Y=!1;return(async()=>{var ce,he;try{const Oe=await Jo(Cl.ListWorkspaces,{pageSize:1});if(Y)return;const Ce=(he=(ce=Oe==null?void 0:Oe.workspaces)==null?void 0:ce[0])==null?void 0:he.billingAccount;Ce?u({name:Ce}):Ps()||rn(Gd)}catch(Oe){!Y&&!Ps()&&rn(Gd)}})(),()=>{Y=!0}},[P]),f.useEffect(()=>{if(!n){y(null),h(null),u(null),b(!1);return}if(b(!1),!C)return;let Y=!1;return(async()=>{try{const[ce,he]=await Promise.all([Jo(vo.GetAccountConfig,{name:`${C}/account-config`}),Jo(vo.GetQuotaReport,{name:`${C}/quota-report`})]);if(Y)return;li(ce,"Customer account should have account config"),h(ce),li(he,"Customer account should have quota report"),y(he)}catch(ce){if(Y)return;Ps()||rn("An error occurred while retrieving the billing account status.")}Y||b(!0)})(),()=>{Y=!0}},[n,C]);const M=f.useMemo(()=>{var Y;if(!A)return Zr.STATE_UNSPECIFIED;if(d){let ce=Zr.STATE_UNSPECIFIED;return(Y=d.platforms)==null||Y.forEach(he=>{he===fl.PLATFORM_PORTAL?(ce|=Zr.FULL_PORTAL_ACCESS,p&&p.overageEnabled&&(ce|=Zr.SELF_SERVE_VALID_CC)):he===fl.PLATFORM_STUDIO&&(ce|=Zr.FULL_STUDIO_ACCESS)}),p&&p.overageEnabled?ce|=Zr.SELF_SERVE_VALID_CC:p&&(ce|=Zr.SELF_SERVE_BASIC_ACCESS),ce}else li(!0,"billing account & quota report should have been initialized");return Zr.SELF_SERVE_BASIC_ACCESS},[d,A,p]),v=f.useCallback(Y=>r>=Y,[r]),$=f.useMemo(()=>HD[M],[M]),W=Y=>WD($,Y),oe=Y=>jD($,Y),te=f.useMemo(()=>zD($),[$]),se=f.useCallback(Y=>A?(M&Y)===Y:!1,[M,A]),ie={stateType:M,hasFeature:W,hasAnyFeature:oe,availableFeatures:te,hasCustomerTierAccess:v,billingAccount:B,initialized:S,hasStateAccess:se,quotaReport:p};return T.jsx(Xl.Provider,{value:ie,children:e})});var Jk=(e=>(e.API_KEY_AUTHORIZATION_TYPE_UNSPECIFIED="API_KEY_AUTHORIZATION_TYPE_UNSPECIFIED",e.API_KEY_AUTHORIZATION_TYPE_BASIC="API_KEY_AUTHORIZATION_TYPE_BASIC",e.API_KEY_AUTHORIZATION_TYPE_JWT="API_KEY_AUTHORIZATION_TYPE_JWT",e))(Jk||{}),Fg=(e=>(e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.ACTIVE="ACTIVE",e.SUSPENDED="SUSPENDED",e.DELETED="DELETED",e))(Fg||{});class ui{static ListApiKeys(t,r){return Z(`/v1alpha/${t.parent}/apikeys?${Ee(t,["parent"])}`,{...r,method:"GET"})}static SuspendApiKey(t,r){return Z(`/v1alpha/${t.name}:suspend`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static ActivateApiKey(t,r){return Z(`/v1alpha/${t.name}:activate`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static DeleteApiKey(t,r){return Z(`/v1alpha/${t.name}?${Ee(t,["name"])}`,{...r,method:"DELETE"})}static GenerateApiKey(t,r){return Z(`/v1alpha/${t.parent}/apikey:generate`,{...r,method:"POST",body:JSON.stringify(t,Ie)})}static ListAuthScopes(t,r){return Z(`/v1alpha/${t.parent}/auth-scopes?${Ee(t,["parent"])}`,{...r,method:"GET"})}static UpdateApiKey(t,r){return Z(`/v1alpha/${t.apiKey.name}?${Ee(t,["apiKey.name"],"apiKey",["updateMask"])}
1295`,{...r,method:"PATCH",body:JSON.stringify(t.apiKey,Ie)})}}const Zk=100,$g=300*1e3,Oa=e=>["listApiKeys",e],Gg=e=>[...e].sort((t,r)=>{const n=t.createTime?new Date(t.createTime).getTime():0;return(r.createTime?new Date(r.createTime).getTime():0)-n}),Hg=async e=>{var r;const t=await gt(ui.ListApiKeys,{parent:ul(e),pageSize:Zk});return Gg((r=t==null?void 0:t.apiKeys)!=null?r:[])},ex=(e,t)=>{var r;return dn(Oa(e),()=>Hg(e),{staleTime:$g,...t,enabled:!!e&&((r=t==null?void 0:t.enabled)!=null?r:!0)})},Hd=(e,t,r)=>{if(!t)return;const n=Oa(t),o=e.getQueryData(n);if(!o){e.invalidateQueries(n);return}e.setQueryData(n,Gg([r,...o.filter(a=>a.name!==r.name)]))},XL=(e,t,r)=>{t&&e.setQueryData(Oa(t),n=>n&&n.map(o=>o.name===r.name?r:o))},JL=(e,t,r)=>{t&&e.setQueryData(Oa(t),n=>n&&n.filter(o=>o.name!==r))},Wg=()=>{var d,h,p;const{signedIn:e}=Xi(),t=xr(br.STUDIO_ORG_MANAGEMENT),{currentOrg:r,isLoading:n,isError:o}=Ug(),{data:a,isFetching:i,error:s}=ac(e),l=a==null?void 0:a[0],c=t?n?null:(h=(d=r==null?void 0:r.name)!=null?d:l==null?void 0:l.name)!=null?h:null:(p=l==null?void 0:l.name)!=null?p:null;return{billingAccount:l,billingAccountId:c,billingAccountFetching:i,error:s,isResolving:c===null&&(t&&n&&!o||i)}},ZL=()=>{const{data:e}=dn(ec,()=>!1,{staleTime:1/0});return e!=null?e:!1},e5=()=>{const{data:e}=dn(Yi,()=>!1,{staleTime:1/0});return e!=null?e:!1},t5=()=>{const e=Yr();return f.useCallback(()=>{e.setQueryData(Yi,!0)},[e])},r5=()=>{const e=Yr(),{billingAccountId:t}=Wg();return f.useCallback(()=>{let r;t&&(r=e.getQueryData(["billingInfo",t])),r||(r=e.getQueryCache().findAll(["billingInfo"]).map(o=>o.state.data).find(o=>!!o));const n=Tg(r);return n!==void 0&&n<=0?(e.setQueryData(ec,!0),e.setQueryData(Yi,!1),!0):!1},[e,t])},tx=()=>{const e=Yr(),{billingAccountId:t}=Wg();return f.useCallback(r=>tc(e,r,t),[e,t])};var po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rx=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Wa=0;Wa<po.length;Wa++)rx[po.charCodeAt(Wa)]=Wa;var yl=function(e){var t=new Uint8Array(e),r,n=t.length,o="";for(r=0;r<n;r+=3)o+=po[t[r]>>2],o+=po[(t[r]&3)<<4|t[r+1]>>4],o+=po[(t[r+1]&15)<<2|t[r+2]>>6],o+=po[t[r+2]&63];return n%3===2?o=o.substring(0,o.length-1)+"=":n%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const nx=f.createContext(null),ox=["api.rt::x","api.ml::x","api.ops::x"],ax=e=>e.replace(/\(ws=.*?\)$/,"");function ix(e){const t=e.map(ax),r=new Set(t),n=t.filter(o=>o.endsWith("::r")?!r.has(o.replace("::r","::rw")):!0);return[...new Set([...ox,...n])]}const Wd=(e,t)=>{const r=t.find(o=>o.state===Fg.ACTIVE&&(!o.expireTime||new Date(o.expireTime).getTime()>Date.now()));if(!r)return null;const n=new TextEncoder().encode(`${r.key}:${r.secret}`);return{encodedKey:yl(n.slice().buffer),workspace:e,key:r.key,secret:r.secret}},n5=f.memo(({children:e})=>{const[t,r]=f.useState(null),[n,o]=f.useState(!1),[a,i]=f.useState(null),{workspace:s}=qA(),l=Yr(),{data:c,isLoading:u,error:d}=ex(s),h=tx(),p=f.useCallback(async k=>{var B;if(!k)return i("Workspace is required"),null;o(!0),i(null);try{const C=await l.fetchQuery(Oa(k),()=>Hg(k),{staleTime:$g}),P=Wd(k,C);return r(P),(B=P==null?void 0:P.encodedKey)!=null?B:null}catch(C){const P=C instanceof Error?C.message:"Failed to list API keys";throw i(P),C}finally{o(!1)}},[l]),y=f.useCallback(async k=>{if(!k)return i("Workspace is required"),null;o(!0),i(null);try{const B=await gt(ui.GenerateApiKey,{parent:ul(k)});Hd(l,k,B);const C=new TextEncoder().encode(`${B.key}:${B.secret}`),P=yl(C.slice().buffer);return r({encodedKey:P,workspace:k,key:B.key,secret:B.secret}),o(!1),P}catch(B){h(B);const C=B instanceof Error?B.message:"Failed to generate API key";return i(C),o(!1),null}},[l,h]),S=f.useCallback(async k=>{if(!k)return i("Workspace is required"),null;o(!0),i(null);try{const B=ul(k),C=await gt(ui.ListAuthScopes,{parent:B}),P=((C==null?void 0:C.authScopes)||[]).map(oe=>oe.name).filter(oe=>!!oe),M=ix(P),v=await gt(ui.GenerateApiKey,{parent:B,scopes:M});Hd(l,k,v);const $=new TextEncoder().encode(`${v.key}:${v.secret}`),W=yl($.slice().buffer);return r({encodedKey:W,workspace:k,key:v.key,secret:v.secret}),o(!1),W}catch(B){h(B);const C=B instanceof Error?B.message:"Failed to generate API key";return i(C),o(!1),null}},[l,h]),b=f.useCallback(()=>{r(null),i(null)},[]);f.useEffect(()=>{r(k=>(k==null?void 0:k.workspace)===s?k:null)},[s]),f.useEffect(()=>{!s||!c||r(Wd(s,c))},[c,s]);const A=d instanceof Error?d.message:null,x=f.useMemo(()=>({primaryRuntimeKey:t,isLoading:n||u,error:a!=null?a:A,listRuntimeApiKeys:p,generateRuntimeApiKey:y,generateIntegrateRuntimeApiKey:S,clearRuntimeApiKey:b}),[t,n,u,a,A,p,y,S,b]);return T.jsx(nx.Provider,{value:x,children:e})}),sx=({children:e})=>T.jsx(_k,{children:T.jsxs(Tk,{children:[T.jsx(WN,{}),T.jsx(Yk,{children:T.jsx(Xk,{children:e})})]})}),lx=f.lazy(()=>an(()=>import("./App.DVmysEmP.js").then(e=>e.bL),__vite__mapDeps([6,1,2,3,7])));function cx(){return T.jsx($2,{config:l_,children:T.jsxs(EN,{children:[T.jsx(vN,{}),T.jsx(UD,{children:T.jsx(t2,{children:T.jsx(k1,{client:qi,children:T.jsx(QD,{children:T.jsx(sx,{children:T.jsx(Xe.Suspense,{fallback:null,children:T.jsx(lx,{})})})})})})})]})})}const jd=document.getElementById("app");jd&&Vg.createRoot(jd).render(f.createElement(cx));const o5=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));
1295export{TM as $,Ng as A,We as B,Qs as C,Xi as D,bd as E,xe as F,kd as G,qA as H,go as I,Hl as J,H2 as K,Qa as L,Hx as M,nM as N,hM as O,Te as P,Or as Q,je as R,Rn as S,jk as T,wx as U,ul as V,Cl as W,Bi as X,EM as Y,TL as Z,Ox as _,Qt as a,J0 as a$,wn as a0,$i as a1,jM as a2,WM as a3,Mg as a4,vo as a5,bL as a6,KM as a7,VM as a8,zM as a9,mp as aA,Hk as aB,Cr as aC,xg as aD,xL as aE,LL as aF,Gk as aG,DL as aH,wL as aI,ML as aJ,Pk as aK,xl as aL,yr as aM,su as aN,F as aO,xx as aP,N_ as aQ,RL as aR,gp as aS,pu as aT,DM as aU,kk as aV,_l as aW,Ex as aX,jo as aY,Dd as aZ,Ck as a_,ZL as aa,e5 as ab,t5 as ac,Tg as ad,I_ as ae,rn as af,Fd as ag,PL as ah,WI as ai,dL as aj,vx as ak,ro as al,RM as am,Rk as an,l1 as ao,NL as ap,c1 as aq,Tx as ar,Zl as as,Ki as at,Jl as au,PM as av,mg as aw,vM as ax,XM as ay,ig as az,lr as b,SM as b$,Z0 as b0,JM as b1,sN as b2,tN as b3,Tn as b4,Wx as b5,Cx as b6,qD as b7,z_ as b8,Zr as b9,yL as bA,aL as bB,Ld as bC,mL as bD,Nh as bE,xh as bF,iL as bG,X0 as bH,Bk as bI,YM as bJ,uo as bK,qt as bL,qM as bM,QM as bN,rL as bO,nL as bP,GM as bQ,BM as bR,AM as bS,VD as bT,LM as bU,xM as bV,MM as bW,kM as bX,n5 as bY,kD as bZ,dM as b_,qN as ba,hL as bb,MI as bc,sL as bd,Ww as be,on as bf,cg as bg,hD as bh,ug as bi,wM as bj,UL as bk,ey as bl,rM as bm,dy as bn,lM as bo,_M as bp,pr as bq,IM as br,Rt as bs,Rx as bt,SL as bu,ON as bv,oL as bw,uh as bx,_L as by,EL as bz,tr as c,lL as c$,bM as c0,u_ as c1,mM as c2,gM as c3,gw as c4,HM as c5,yl as c6,bh as c7,Hn as c8,Al as c9,c2 as cA,nx as cB,_n as cC,FL as cD,Dl as cE,l2 as cF,i2 as cG,$L as cH,WL as cI,pM as cJ,Lx as cK,c_ as cL,Bx as cM,kl as cN,eM as cO,tM as cP,Th as cQ,tx as cR,fN as cS,r5 as cT,Rg as cU,cy as cV,x0 as cW,GI as cX,HL as cY,QL as cZ,GL as c_,_x as ca,Rh as cb,zD as cc,jD as cd,WD as ce,Xl as cf,HD as cg,Qo as ch,So as ci,Je as cj,gl as ck,si as cl,Ia as cm,Dx as cn,BL as co,zL as cp,VL as cq,jL as cr,uL as cs,KL as ct,O_ as cu,qL as cv,Nx as cw,kx as cx,A_ as cy,YL as cz,bo as d,Y_ as d$,Gi as d0,Px as d1,Ux as d2,FM as d3,UM as d4,yg as d5,XD as d6,Zx as d7,Jx as d8,F1 as d9,yx as dA,JN as dB,gL as dC,ZN as dD,iM as dE,gg as dF,EN as dG,k1 as dH,I1 as dI,Fi as dJ,ex as dK,aN as dL,Gx as dM,dp as dN,Fg as dO,mu as dP,CM as dQ,Kx as dR,fL as dS,oM as dT,Tu as dU,Yx as dV,qx as dW,VN as dX,Db as dY,jx as dZ,Ix as d_,Qx as da,a2 as db,bx as dc,OM as dd,cL as de,Mx as df,Xx as dg,wh as dh,Nl as di,Lh as dj,cM as dk,Fx as dl,Uc as dm,Ro as dn,Kt as dp,O1 as dq,pt as dr,px as ds,gx as dt,Co as du,NM as dv,en as dw,q_ as dx,yM as dy,Sx as dz,cr as e,sM as e0,o1 as e1,HN as e2,B1 as e3,$M as e4,Vx as e5,ZM as e6,Zs as e7,Sk as e8,_a as e9,r_ as eA,ci as eB,Pd as eC,$a as eD,pL as eE,o5 as eF,M_ as ea,q0 as eb,bk as ec,OL as ed,In as ee,ui as ef,JL as eg,nn as eh,XL as ei,uy as ej,tL as ek,$x as el,eL as em,AL as en,IL as eo,kL as ep,$k as eq,Ax as er,Jk as es,U2 as et,I2 as eu,l_ as ev,zx as ew,CL as ex,Hd as ey,SD as ez,Z as f,Ee as g,Jo as h,gt as i,br as j,xr as k,Nk as l,fM as m,hx as n,ck as o,aM as p,vL as q,Ie as r,dn as s,Ug as t,Wg as u,Yr as v,oD as w,tn as x,s1 as y,Mk as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.