@rainbow-robotics/preview-host 1.3.6-dev.8 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/assets/{AmrCapabilityControl.DylvnUEO.js → AmrCapabilityControl.BrB4gWci.js} +1 -1
  2. package/dist/assets/RbLocalizationProvider.CMEaJz_8.js +311 -0
  3. package/dist/assets/__federation_expose_App.BtK24QCB.js +1350 -0
  4. package/dist/assets/__federation_fn_import.DdkEuT6t.js +23 -0
  5. package/dist/assets/__federation_shared_@emotion/{styled.CajkAQAy.js → styled.ETfwMsQo.js} +1 -1
  6. package/dist/assets/__federation_shared_@tanstack/{react-query.DZtZx7JL.js → react-query.fVz8BOIk.js} +1 -1
  7. package/dist/assets/{cssMode.Dtrsp9Hl.js → cssMode.EEbNlNtF.js} +1 -1
  8. package/dist/assets/{emotion-styled-base.browser.esm.BLoY4bbE.js → emotion-styled-base.browser.esm.BIcjgOzg.js} +1 -1
  9. package/dist/assets/{freemarker2.CyJpVLMx.js → freemarker2.CnBD5I4p.js} +1 -1
  10. package/dist/assets/{handlebars.CsnXKzpH.js → handlebars.COGiavr-.js} +1 -1
  11. package/dist/assets/{html.Cs-v4IId.js → html.BigkG63T.js} +1 -1
  12. package/dist/assets/{htmlMode.BkLJ-g13.js → htmlMode.BFqQcR9K.js} +1 -1
  13. package/dist/assets/{index.B34TfqNB.js → index.1gxtOcyM.js} +1 -1
  14. package/dist/assets/index.BFyW4OKK.js +1 -0
  15. package/dist/assets/{MapInfo.CrdLZcke.js → index.D7QGPpBS.js} +6 -11
  16. package/dist/assets/{javascript.CnXk03IN.js → javascript.CmJH3eOS.js} +1 -1
  17. package/dist/assets/{jsonMode.DHUETSBC.js → jsonMode.XZLue_kY.js} +1 -1
  18. package/dist/assets/{liquid.ycj1GnlX.js → liquid.kUSJggwm.js} +1 -1
  19. package/dist/assets/{lspLanguageFeatures.qBXuaIUh.js → lspLanguageFeatures.DgJgA_Mi.js} +1 -1
  20. package/dist/assets/{mdx.DQv9SiE_.js → mdx.DuUa6LG4.js} +1 -1
  21. package/dist/assets/{python.CGG4dQnL.js → python.4mFHFFoP.js} +1 -1
  22. package/dist/assets/{razor.BfFBX4H4.js → razor.CVLwv3TS.js} +1 -1
  23. package/dist/assets/remoteEntry.js +1 -1
  24. package/dist/assets/{tsMode.BRgsBy91.js → tsMode.CXJykgGy.js} +1 -1
  25. package/dist/assets/{typescript.BTl_2OW3.js → typescript.DgyEkW4L.js} +1 -1
  26. package/dist/assets/useFileDownload.BFL8lywd.js +4753 -0
  27. package/dist/assets/{xml.CCn6EavV.js → xml.BEm17y6w.js} +1 -1
  28. package/dist/assets/{yaml.D2ikp_I-.js → yaml.CEKLGBGL.js} +1 -1
  29. package/dist/imgs/nexus/forms/gripper/gripper_23.png +0 -0
  30. package/dist/index.html +7 -8
  31. package/dist/plugin-shared/plugin-ui_react.js +1 -1
  32. package/package.json +1 -1
  33. package/dist/assets/RbLocalizationProvider.929YVAAi.js +0 -301
  34. package/dist/assets/__federation_expose_App.MoFBQejr.js +0 -1288
  35. package/dist/assets/__federation_fn_import.ByOnqCI5.js +0 -24
  36. package/dist/assets/index.BHxdk7pU.js +0 -1
  37. package/dist/assets/index.BkLy899B.js +0 -1
  38. package/dist/assets/useJsonFileDownload.DzAbJDyG.js +0 -4773
@@ -1 +1 @@
1
- import{c as a}from"../emotion-styled-base.browser.esm.BLoY4bbE.js";var r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],t=a.bind(null);r.forEach(function(e){t[e]=t(e)});export{t as default};
1
+ import{c as a}from"../emotion-styled-base.browser.esm.BIcjgOzg.js";var r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],t=a.bind(null);r.forEach(function(e){t[e]=t(e)});export{t as default};
@@ -1 +1 @@
1
- import{importShared as P}from"../__federation_fn_import.ByOnqCI5.js";import{j as Mt}from"../jsx-runtime.CBqCNPYB.js";var T=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xt=class extends T{#e;#t;#s;constructor(){super(),this.#s=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#s=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},ot=new Xt,Yt={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},te=class{#e=Yt;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},D=new te;function ee(t){setTimeout(t,0)}var se=typeof window>"u"||"Deno"in globalThis;function b(){}function re(t,e){return typeof t=="function"?t(e):t}function Y(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ft(t,e){return Math.max(t+(e||0)-Date.now(),0)}function F(t,e){return typeof t=="function"?t(e):t}function R(t,e){return typeof t=="function"?t(e):t}function vt(t,e){const{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==ut(a,e.options))return!1}else if(!k(e.queryKey,a))return!1}if(s!=="all"){const c=e.isActive();if(s==="active"&&!c||s==="inactive"&&c)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||n&&!n(e))}function mt(t,e){const{exact:s,status:r,predicate:i,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(I(e.options.mutationKey)!==I(n))return!1}else if(!k(e.options.mutationKey,n))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function ut(t,e){return(e?.queryKeyHashFn||I)(t)}function I(t){return JSON.stringify(t,(e,s)=>tt(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function k(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(s=>k(t[s],e[s])):!1}var ie=Object.prototype.hasOwnProperty;function Z(t,e,s=0){if(t===e)return t;if(s>500)return e;const r=gt(t)&&gt(e);if(!r&&!(tt(t)&&tt(e)))return e;const n=(r?t:Object.keys(t)).length,a=r?e:Object.keys(e),o=a.length,c=r?new Array(o):{};let l=0;for(let u=0;u<o;u++){const d=r?u:a[u],h=t[d],v=e[d];if(h===v){c[d]=h,(r?u<n:ie.call(t,d))&&l++;continue}if(h===null||v===null||typeof h!="object"||typeof v!="object"){c[d]=v;continue}const m=Z(h,v,s+1);c[d]=m,m===h&&l++}return n===o&&l===n?t:c}function K(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function gt(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function tt(t){if(!bt(t))return!1;const e=t.constructor;if(e===void 0)return!0;const s=e.prototype;return!(!bt(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function bt(t){return Object.prototype.toString.call(t)==="[object Object]"}function ne(t){return new Promise(e=>{D.setTimeout(e,t)})}function et(t,e,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,e):s.structuralSharing!==!1?Z(t,e):e}function Ae(t){return t}function Dt(t,e,s=0){const r=[...t,e];return s&&r.length>s?r.slice(1):r}function ae(t,e,s=0){const r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var ct=Symbol();function It(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===ct?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ht(t,e){return typeof t=="function"?t(...e):!!t}function Tt(t,e,s){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),r||(r=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),t}var L=(()=>{let t=()=>se;return{isServer(){return t()},setIsServer(e){t=e}}})();function st(){let t,e;const s=new Promise((i,n)=>{t=i,e=n});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},s.reject=i=>{r({status:"rejected",reason:i}),e(i)},s}function oe(t){let e;if(t.then(s=>(e=s,s),b)?.catch(b),e!==void 0)return{data:e}}function xt(t){return t}function ue(t){return{mutationKey:t.options.mutationKey,state:t.state,...t.options.scope&&{scope:t.options.scope},...t.meta&&{meta:t.meta}}}function ce(t,e,s){const r=()=>{const i=t.promise?.then(e).catch(n=>s(n)?Promise.reject(new Error("redacted")):Promise.reject(n));return i?.catch(b),i};return{dehydratedAt:Date.now(),state:{...t.state,...t.state.data!==void 0&&{data:e(t.state.data)}},queryKey:t.queryKey,queryHash:t.queryHash,...t.state.status==="pending"&&{promise:r()},...t.meta&&{meta:t.meta}}}function he(t){return t.state.isPaused}function le(t){return t.state.status==="success"}function fe(t){return!0}function qe(t,e={}){const s=e.shouldDehydrateMutation??t.getDefaultOptions().dehydrate?.shouldDehydrateMutation??he,r=t.getMutationCache().getAll().flatMap(c=>s(c)?[ue(c)]:[]),i=e.shouldDehydrateQuery??t.getDefaultOptions().dehydrate?.shouldDehydrateQuery??le,n=e.shouldRedactErrors??t.getDefaultOptions().dehydrate?.shouldRedactErrors??fe,a=e.serializeData??t.getDefaultOptions().dehydrate?.serializeData??xt,o=t.getQueryCache().getAll().flatMap(c=>i(c)?[ce(c,a,n)]:[]);return{mutations:r,queries:o}}function Ot(t,e,s){if(typeof e!="object"||e===null)return;const r=t.getMutationCache(),i=t.getQueryCache(),n=s?.defaultOptions?.deserializeData??t.getDefaultOptions().hydrate?.deserializeData??xt,a=e.mutations||[],o=e.queries||[];a.forEach(({state:c,...l})=>{r.build(t,{...t.getDefaultOptions().hydrate?.mutations,...s?.defaultOptions?.mutations,...l},c)}),o.forEach(({queryKey:c,state:l,queryHash:u,meta:d,promise:h,dehydratedAt:v})=>{const m=h?oe(h):void 0,f=l.data===void 0?m?.data:l.data,y=f===void 0?f:n(f);let p=i.get(u);const O=p?.state.status==="pending",w=p?.state.fetchStatus==="fetching";if(p){const C=m&&v!==void 0&&v>p.state.dataUpdatedAt;if(l.dataUpdatedAt>p.state.dataUpdatedAt||C){const{fetchStatus:E,...x}=l;p.setState({...x,data:y})}}else p=i.build(t,{...t.getDefaultOptions().hydrate?.queries,...s?.defaultOptions?.queries,queryKey:c,queryHash:u,meta:d},{...l,data:y,fetchStatus:"idle",status:y!==void 0?"success":l.status});h&&!O&&!w&&(v===void 0||v>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(h).then(n)}).catch(b)})}var de=ee;function pe(){let t=[],e=0,s=o=>{o()},r=o=>{o()},i=de;const n=o=>{e?t.push(o):i(()=>{s(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(c=>{s(c)})})})};return{batch:o=>{let c;e++;try{c=o()}finally{e--,e||a()}return c},batchCalls:o=>(...c)=>{n(()=>{o(...c)})},schedule:n,setNotifyFunction:o=>{s=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var g=pe(),ye=class extends T{#e=!0;#t;#s;constructor(){super(),this.#s=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#s=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#e}},W=new ye;function ve(t){return Math.min(1e3*2**t,3e4)}function At(t){return(t??"online")==="online"?W.isOnline():!0}var V=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ue(t){return t instanceof V}function qt(t){let e=!1,s=0,r;const i=st(),n=()=>i.status!=="pending",a=f=>{if(!n()){const y=new V(f);h(y),t.onCancel?.(y)}},o=()=>{e=!0},c=()=>{e=!1},l=()=>ot.isFocused()&&(t.networkMode==="always"||W.isOnline())&&t.canRun(),u=()=>At(t.networkMode)&&t.canRun(),d=f=>{n()||(r?.(),i.resolve(f))},h=f=>{n()||(r?.(),i.reject(f))},v=()=>new Promise(f=>{r=y=>{(n()||l())&&f(y)},t.onPause?.()}).then(()=>{r=void 0,n()||t.onContinue?.()}),m=()=>{if(n())return;let f;const y=s===0?t.initialPromise:void 0;try{f=y??t.fn()}catch(p){f=Promise.reject(p)}Promise.resolve(f).then(d).catch(p=>{if(n())return;const O=t.retry??(L.isServer()?0:3),w=t.retryDelay??ve,C=typeof w=="function"?w(s,p):w,E=O===!0||typeof O=="number"&&s<O||typeof O=="function"&&O(s,p);if(e||!E){h(p);return}s++,t.onFail?.(s,p),ne(C).then(()=>l()?void 0:v()).then(()=>{e?h(p):m()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:o,continueRetry:c,canStart:u,start:()=>(u()?m():v().then(m),i)}}var Ut=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Y(this.gcTime)&&(this.#e=D.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(L.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(D.clearTimeout(this.#e),this.#e=void 0)}},me=class extends Ut{#e;#t;#s;#i;#r;#n;#a;constructor(t){super(),this.#a=!1,this.#n=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#s=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Rt(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#n,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Rt(this.options);e.data!==void 0&&(this.setState(St(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(t,e){const s=et(this.state.data,t,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#u({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(b).catch(b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>R(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ct||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>F(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ft(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#a||this.#o()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const o=this.observers.find(c=>c.options.queryFn);o&&this.setOptions(o.options)}const s=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},i=()=>{const o=It(this.options,e),l=(()=>{const u={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(o,l,this):o(l)},a=(()=>{const o={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(o),o})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:"fetch",meta:a.fetchOptions?.meta}),this.#r=qt({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof V&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(o,c)=>{this.#u({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const o=await this.#r.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#s.config.onSuccess?.(o,this),this.#s.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof V){if(o.silent)return this.#r.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#u({type:"error",error:o}),this.#s.config.onError?.(o,this),this.#s.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#u(t){const e=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...jt(s.data,this.options),fetchMeta:t.meta??null};case"success":const r={...s,...St(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?r:void 0,r;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=e(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:t})})}};function jt(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:At(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function St(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Rt(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,r=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var _=class extends T{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#a=st(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#s=void 0;#i=void 0;#r;#n;#a;#o;#u;#f;#d;#h;#l;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),wt(this.#t,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rt(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rt(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#t.setOptions(this.options),e._defaulted&&!K(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Pt(this.#t,s,this.options,e)&&this.#y(),this.updateResult(),r&&(this.#t!==s||R(this.options.enabled,this.#t)!==R(e.enabled,this.#t)||F(this.options.staleTime,this.#t)!==F(e.staleTime,this.#t))&&this.#v();const i=this.#m();r&&(this.#t!==s||R(this.options.enabled,this.#t)!==R(e.enabled,this.#t)||i!==this.#c)&&this.#g(i)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),s=this.createResult(e,t);return be(this,s)&&(this.#i=s,this.#n=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#i}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),s=this.#e.getQueryCache().build(this.#e,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#y(t){this.#R();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(b)),e}#v(){this.#O();const t=F(this.options.staleTime,this.#t);if(L.isServer()||this.#i.isStale||!Y(t))return;const s=Ft(this.#i.dataUpdatedAt,t)+1;this.#h=D.setTimeout(()=>{this.#i.isStale||this.updateResult()},s)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(t){this.#S(),this.#c=t,!(L.isServer()||R(this.options.enabled,this.#t)===!1||!Y(this.#c)||this.#c===0)&&(this.#l=D.setInterval(()=>{(this.options.refetchIntervalInBackground||ot.isFocused())&&this.#y()},this.#c))}#b(){this.#v(),this.#g(this.#m())}#O(){this.#h&&(D.clearTimeout(this.#h),this.#h=void 0)}#S(){this.#l&&(D.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#i,n=this.#r,a=this.#n,c=t!==s?t.state:this.#s,{state:l}=t;let u={...l},d=!1,h;if(e._optimisticResults){const S=this.hasListeners(),A=!S&&wt(t,e),N=S&&Pt(t,s,e,r);(A||N)&&(u={...u,...jt(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:f}=u;h=u.data;let y=!1;if(e.placeholderData!==void 0&&h===void 0&&f==="pending"){let S;i?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(S=i.data,y=!0):S=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,S!==void 0&&(f="success",h=et(i?.data,S,e),d=!0)}if(e.select&&h!==void 0&&!y)if(i&&h===n?.data&&e.select===this.#u)h=this.#f;else try{this.#u=e.select,h=e.select(h),h=et(i?.data,h,e),this.#f=h,this.#o=null}catch(S){this.#o=S}this.#o&&(v=this.#o,h=this.#f,m=Date.now(),f="error");const p=u.fetchStatus==="fetching",O=f==="pending",w=f==="error",C=O&&p,E=h!==void 0,M={status:f,fetchStatus:u.fetchStatus,isPending:O,isSuccess:f==="success",isError:w,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:p,isRefetching:p&&!O,isLoadingError:w&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&E,isStale:lt(t,e),refetch:this.refetch,promise:this.#a,isEnabled:R(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const S=M.data!==void 0,A=M.status==="error"&&!S,N=B=>{A?B.reject(M.error):S&&B.resolve(M.data)},yt=()=>{const B=this.#a=M.promise=st();N(B)},H=this.#a;switch(H.status){case"pending":t.queryHash===s.queryHash&&N(H);break;case"fulfilled":(A||M.data!==H.value)&&yt();break;case"rejected":(!A||M.error!==H.reason)&&yt();break}}return M}updateResult(){const t=this.#i,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#n=this.options,this.#r.data!==void 0&&(this.#d=this.#t),K(e,t))return;this.#i=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#p.size)return!0;const n=new Set(i??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#i).some(a=>{const o=a;return this.#i[o]!==t[o]&&n.has(o)})};this.#w({listeners:s()})}#R(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#s=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(t){g.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ge(t,e){return R(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function wt(t,e){return ge(t,e)||t.state.data!==void 0&&rt(t,e,e.refetchOnMount)}function rt(t,e,s){if(R(e.enabled,t)!==!1&&F(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&lt(t,e)}return!1}function Pt(t,e,s,r){return(t!==e||R(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&lt(t,s)}function lt(t,e){return R(e.enabled,t)!==!1&&t.isStaleByTime(F(e.staleTime,t))}function be(t,e){return!K(t.getCurrentResult(),e)}function J(t){return{onFetch:(e,s)=>{const r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,n=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let o={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const d=m=>{Tt(m,()=>e.signal,()=>u=!0)},h=It(e.options,e.fetchOptions),v=async(m,f,y)=>{if(u)return Promise.reject();if(f==null&&m.pages.length)return Promise.resolve(m);const O=(()=>{const x={client:e.client,queryKey:e.queryKey,pageParam:f,direction:y?"backward":"forward",meta:e.options.meta};return d(x),x})(),w=await h(O),{maxPages:C}=e.options,E=y?ae:Dt;return{pages:E(m.pages,w,C),pageParams:E(m.pageParams,f,C)}};if(i&&n.length){const m=i==="backward",f=m?kt:it,y={pages:n,pageParams:a},p=f(r,y);o=await v(y,p,m)}else{const m=t??n.length;do{const f=c===0?a[0]??r.initialPageParam:it(r,o);if(c>0&&f==null)break;o=await v(o,f),c++}while(c<m)}return o};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=l}}}function it(t,{pages:e,pageParams:s}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function kt(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function Oe(t,e){return e?it(t,e)!=null:!1}function Se(t,e){return!e||!t.getPreviousPageParam?!1:kt(t,e)!=null}var Kt=class extends _{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:J()})}getOptimisticResult(t){return t.behavior=J(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){const{state:s}=t,r=super.createResult(t,e),{isFetching:i,isRefetching:n,isError:a,isRefetchError:o}=r,c=s.fetchMeta?.fetchMore?.direction,l=a&&c==="forward",u=i&&c==="forward",d=a&&c==="backward",h=i&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Oe(e,s.data),hasPreviousPage:Se(e,s.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:h,isRefetchError:o&&!l&&!d,isRefetching:n&&!u&&!h}}},Re=class extends Ut{#e;#t;#s;#i;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#t=[],this.state=t.state||Lt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=qt({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(n,a)=>{this.#r({type:"failed",failureCount:n,error:a})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const r=this.state.status==="pending",i=!this.#i.canStart();try{if(r)e();else{this.#r({type:"pending",variables:t,isPaused:i}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const a=await this.options.onMutate?.(t,s);a!==this.state.context&&this.#r({type:"pending",context:a,variables:t,isPaused:i})}const n=await this.#i.start();return await this.#s.config.onSuccess?.(n,t,this.state.context,this,s),await this.options.onSuccess?.(n,t,this.state.context,s),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,t,this.state.context,s),this.#r({type:"success",data:n}),n}catch(n){try{await this.#s.config.onError?.(n,t,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onError?.(n,t,this.state.context,s)}catch(a){Promise.reject(a)}try{await this.#s.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,n,t,this.state.context,s)}catch(a){Promise.reject(a)}throw this.#r({type:"error",error:n}),n}finally{this.#s.runNext(this)}}#r(t){const e=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),g.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function Lt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var we=class extends T{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#s=0}#e;#t;#s;build(t,e,s){const r=new Re({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:s});return this.add(r),r}add(t){this.#e.add(t);const e=z(t);if(typeof e=="string"){const s=this.#t.get(e);s?s.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=z(t);if(typeof e=="string"){const s=this.#t.get(e);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=z(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=z(t);return typeof e=="string"?this.#t.get(e)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){g.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(s=>mt(e,s))}findAll(t={}){return this.getAll().filter(e=>mt(t,e))}notify(t){g.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return g.batch(()=>Promise.all(t.map(e=>e.continue().catch(b))))}};function z(t){return t.options.scope?.id}var Pe=class extends T{#e;#t=void 0;#s;#i;constructor(t,e){super(),this.#e=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const e=this.options;this.options=this.#e.defaultMutationOptions(t),K(this.options,e)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&I(e.mutationKey)!==I(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#n(t)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#r(),this.#n()}mutate(t,e){return this.#i=e,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(t)}#r(){const t=this.#s?.state??Lt();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#n(t){g.batch(()=>{if(this.#i&&this.hasListeners()){const e=this.#t.variables,s=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,s,r)}catch(i){Promise.reject(i)}try{this.#i.onSettled?.(t.data,null,e,s,r)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,s,r)}catch(i){Promise.reject(i)}try{this.#i.onSettled?.(void 0,t.error,e,s,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Ct(t,e){const s=new Set(e);return t.filter(r=>!s.has(r))}function Ce(t,e,s){const r=t.slice(0);return r[e]=s,r}var Qe=class extends T{#e;#t;#s;#i;#r;#n;#a;#o;#u;#f=[];constructor(t,e,s){super(),this.#e=t,this.#i=s,this.#s=[],this.#r=[],this.#t=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(t=>{t.subscribe(e=>{this.#c(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(t=>{t.destroy()})}setQueries(t,e){this.#s=t,this.#i=e,g.batch(()=>{const s=this.#r,r=this.#l(this.#s);r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),n=i.map(u=>u.getCurrentResult()),a=s.length!==i.length,o=i.some((u,d)=>u!==s[d]),c=a||o,l=c?!0:n.some((u,d)=>{const h=this.#t[d];return!h||!K(u,h)});!c&&!l||(c&&(this.#f=r,this.#r=i),this.#t=n,this.hasListeners()&&(c&&(Ct(s,i).forEach(u=>{u.destroy()}),Ct(i,s).forEach(u=>{u.subscribe(d=>{this.#c(u,d)})})),this.#p()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(t=>t.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(t,e){const s=this.#l(t),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#h(n??r,e,i),()=>this.#d(r,s)]}#d(t,e){return e.map((s,r)=>{const i=t[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(a=>{a.observer.trackProp(n)})})})}#h(t,e,s){if(e){const r=this.#u,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,a)=>n!==r[a]));return(!this.#n||this.#t!==this.#o||i||e!==this.#a)&&(this.#a=e,this.#o=this.#t,s!==void 0&&(this.#u=s),this.#n=Z(this.#n,e(t))),this.#n}return t}#l(t){const e=new Map;this.#r.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(r):e.set(i,[r])});const s=[];return t.forEach(r=>{const i=this.#e.defaultQueryOptions(r),a=e.get(i.queryHash)?.shift()??new _(this.#e,i);s.push({defaultedQueryOptions:i,observer:a})}),s}#c(t,e){const s=this.#r.indexOf(t);s!==-1&&(this.#t=Ce(this.#t,s,e),this.#p())}#p(){if(this.hasListeners()){const t=this.#n,e=this.#d(this.#t,this.#f),s=this.#h(e,this.#i?.combine);t!==s&&g.batch(()=>{this.listeners.forEach(r=>{r(this.#t)})})}}},Ee=class extends T{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,s){const r=e.queryKey,i=e.queryHash??ut(r,e);let n=this.get(i);return n||(n=new me({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(n)),n}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){g.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(s=>vt(e,s))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(s=>vt(t,s)):e}notify(t){g.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){g.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){g.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},je=class{#e;#t;#s;#i;#r;#n;#a;#o;constructor(t={}){this.#e=t.queryCache||new Ee,this.#t=t.mutationCache||new we,this.#s=t.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#n=0}mount(){this.#n++,this.#n===1&&(this.#a=ot.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=W.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#n--,this.#n===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#e.build(this,e),r=s.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(F(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:s})=>{const r=s.data;return[e,r]})}setQueryData(t,e,s){const r=this.defaultQueryOptions({queryKey:t}),n=this.#e.get(r.queryHash)?.state.data,a=re(e,n);if(a!==void 0)return this.#e.build(this,r).setData(a,{...s,manual:!0})}setQueriesData(t,e,s){return g.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;g.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=this.#e;return g.batch(()=>(s.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},r=g.batch(()=>this.#e.findAll(t).map(i=>i.cancel(s)));return Promise.all(r).then(b).catch(b)}invalidateQueries(t,e={}){return g.batch(()=>(this.#e.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},r=g.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let n=i.fetch(void 0,s);return s.throwOnError||(n=n.catch(b)),i.state.fetchStatus==="paused"?Promise.resolve():n}));return Promise.all(r).then(b)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=this.#e.build(this,e);return s.isStaleByTime(F(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(b).catch(b)}fetchInfiniteQuery(t){return t.behavior=J(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(b).catch(b)}ensureInfiniteQueryData(t){return t.behavior=J(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return W.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(t){this.#s=t}setQueryDefaults(t,e){this.#i.set(I(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#i.values()],s={};return e.forEach(r=>{k(t,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(t,e){this.#r.set(I(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#r.values()],s={};return e.forEach(r=>{k(t,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#s.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ut(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===ct&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#s.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function ke({streamFn:t,refetchMode:e="reset",reducer:s=(i,n)=>Dt(i,n),initialValue:r=[]}){return async i=>{const n=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),a=!!n&&n.isFetched();a&&e==="reset"&&n.setState({...n.resetState,fetchStatus:"fetching"});let o=r,c=!1;const l=Tt({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>c=!0),u=await t(l),d=a&&e==="replace";for await(const h of u){if(c)break;d?o=s(o,h):i.client.setQueryData(i.queryKey,v=>s(v===void 0?r:v,h))}return d&&!c&&i.client.setQueryData(i.queryKey,o),i.client.getQueryData(i.queryKey)??r}}var Ke=Symbol("dataTagSymbol"),Le=Symbol("dataTagErrorSymbol"),_e=Symbol("unsetMarker");const ft=await P("react");var _t=ft.createContext(void 0),Q=t=>{const e=ft.useContext(_t);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Ne=({client:t,children:e})=>(ft.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),Mt.jsx(_t.Provider,{value:t,children:e}));const Nt=await P("react");var Ht=Nt.createContext(!1),Bt=()=>Nt.useContext(Ht),He=Ht.Provider;const dt=await P("react");function zt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Gt=dt.createContext(zt()),$t=()=>dt.useContext(Gt),Be=({children:t})=>{const[e]=dt.useState(()=>zt());return Mt.jsx(Gt.Provider,{value:e,children:typeof t=="function"?t(e):t})};const Me=await P("react");var Wt=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?ht(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},Vt=t=>{Me.useEffect(()=>{t.clearReset()},[t])},Jt=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||ht(s,[t.error,r])),pt=(t,e)=>e.state.data===void 0,Zt=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Fe=(t,e)=>t.isLoading&&t.isFetching&&!e,nt=(t,e)=>t?.suspense&&e.isPending,at=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});const q=await P("react");function De({queries:t,...e},s){const r=Q(s),i=Bt(),n=$t(),a=q.useMemo(()=>t.map(f=>{const y=r.defaultQueryOptions(f);return y._optimisticResults=i?"isRestoring":"optimistic",y}),[t,r,i]);a.forEach(f=>{Zt(f);const y=r.getQueryCache().get(f.queryHash);Wt(f,n,y)}),Vt(n);const[o]=q.useState(()=>new Qe(r,a,e)),[c,l,u]=o.getOptimisticResult(a,e.combine),d=!i&&e.subscribed!==!1;q.useSyncExternalStore(q.useCallback(f=>d?o.subscribe(g.batchCalls(f)):b,[o,d]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),q.useEffect(()=>{o.setQueries(a,e)},[a,e,o]);const v=c.some((f,y)=>nt(a[y],f))?c.flatMap((f,y)=>{const p=a[y];if(p&&nt(p,f)){const O=new _(r,p);return at(p,O,n)}return[]}):[];if(v.length>0)throw Promise.all(v);const m=c.find((f,y)=>{const p=a[y];return p&&Jt({result:f,errorResetBoundary:n,throwOnError:p.throwOnError,query:r.getQueryCache().get(p.queryHash),suspense:p.suspense})});if(m?.error)throw m.error;return l(u())}const G=await P("react");function X(t,e,s){const r=Bt(),i=$t(),n=Q(s),a=n.defaultQueryOptions(t);n.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const o=n.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",Zt(a),Wt(a,i,o),Vt(i);const c=!n.getQueryCache().get(a.queryHash),[l]=G.useState(()=>new e(n,a)),u=l.getOptimisticResult(a),d=!r&&t.subscribed!==!1;if(G.useSyncExternalStore(G.useCallback(h=>{const v=d?l.subscribe(g.batchCalls(h)):b;return l.updateResult(),v},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),G.useEffect(()=>{l.setOptions(a)},[a,l]),nt(a,u))throw at(a,l,i);if(Jt({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:o,suspense:a.suspense}))throw u.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,u),a.experimental_prefetchInRender&&!L.isServer()&&Fe(u,r)&&(c?at(a,l,i):o?.promise)?.catch(b).finally(()=>{l.updateResult()}),a.notifyOnChangeProps?u:l.trackResult(u)}function ze(t,e){return X(t,_,e)}function Ge(t,e){return X({...t,enabled:!0,suspense:!0,throwOnError:pt,placeholderData:void 0},_,e)}function $e(t,e){return X({...t,enabled:!0,suspense:!0,throwOnError:pt},Kt,e)}function We(t,e){return De({...t,queries:t.queries.map(s=>({...s,suspense:!0,throwOnError:pt,enabled:!0,placeholderData:void 0}))},e)}function Ve(t,e){const s=Q(e);s.getQueryState(t.queryKey)||s.prefetchQuery(t)}function Je(t,e){const s=Q(e);s.getQueryState(t.queryKey)||s.prefetchInfiniteQuery(t)}function Ze(t){return t}function Xe(t){return t}const $=await P("react");var Ye=({children:t,options:e={},state:s,queryClient:r})=>{const i=Q(r),n=$.useRef(e);$.useEffect(()=>{n.current=e});const a=$.useMemo(()=>{if(s){if(typeof s!="object")return;const o=i.getQueryCache(),c=s.queries||[],l=[],u=[];for(const d of c){const h=o.get(d.queryHash);h?(d.state.dataUpdatedAt>h.state.dataUpdatedAt||d.promise&&h.state.status!=="pending"&&h.state.fetchStatus!=="fetching"&&d.dehydratedAt!==void 0&&d.dehydratedAt>h.state.dataUpdatedAt)&&u.push(d):l.push(d)}if(l.length>0&&Ot(i,{queries:l},n.current),u.length>0)return u}},[i,s]);return $.useEffect(()=>{a&&Ot(i,{queries:a},n.current)},[i,a]),t};const Qt=await P("react");function ts(t,e){const s=Q(e),r=s.getQueryCache();return Qt.useSyncExternalStore(Qt.useCallback(i=>r.subscribe(g.batchCalls(i)),[r]),()=>s.isFetching(t),()=>s.isFetching(t))}const U=await P("react");function es(t,e){const s=Q(e);return Ie({filters:{...t,status:"pending"}},s).length}function Et(t,e){return t.findAll(e.filters).map(s=>e.select?e.select(s):s.state)}function Ie(t={},e){const s=Q(e).getMutationCache(),r=U.useRef(t),i=U.useRef(null);return i.current===null&&(i.current=Et(s,t)),U.useEffect(()=>{r.current=t}),U.useSyncExternalStore(U.useCallback(n=>s.subscribe(()=>{const a=Z(i.current,Et(s,r.current));i.current!==a&&(i.current=a,g.schedule(n))}),[s]),()=>i.current,()=>i.current)}const j=await P("react");function ss(t,e){const s=Q(e),[r]=j.useState(()=>new Pe(s,t));j.useEffect(()=>{r.setOptions(t)},[r,t]);const i=j.useSyncExternalStore(j.useCallback(a=>r.subscribe(g.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),n=j.useCallback((a,o)=>{r.mutate(a,o).catch(b)},[r]);if(i.error&&ht(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function rs(t){return t}function is(t,e){return X(t,Kt,e)}export{V as CancelledError,Ye as HydrationBoundary,Kt as InfiniteQueryObserver,He as IsRestoringProvider,Re as Mutation,we as MutationCache,Pe as MutationObserver,Qe as QueriesObserver,me as Query,Ee as QueryCache,je as QueryClient,_t as QueryClientContext,Ne as QueryClientProvider,Be as QueryErrorResetBoundary,_ as QueryObserver,Le as dataTagErrorSymbol,Ke as dataTagSymbol,de as defaultScheduler,he as defaultShouldDehydrateMutation,le as defaultShouldDehydrateQuery,qe as dehydrate,L as environmentManager,ke as experimental_streamedQuery,ot as focusManager,I as hashKey,Ot as hydrate,Xe as infiniteQueryOptions,Ue as isCancelledError,se as isServer,Ae as keepPreviousData,mt as matchMutation,vt as matchQuery,rs as mutationOptions,b as noop,g as notifyManager,W as onlineManager,k as partialMatchKey,Ze as queryOptions,Z as replaceEqualDeep,ht as shouldThrowError,ct as skipToken,D as timeoutManager,_e as unsetMarker,is as useInfiniteQuery,ts as useIsFetching,es as useIsMutating,Bt as useIsRestoring,ss as useMutation,Ie as useMutationState,Je as usePrefetchInfiniteQuery,Ve as usePrefetchQuery,De as useQueries,ze as useQuery,Q as useQueryClient,$t as useQueryErrorResetBoundary,$e as useSuspenseInfiniteQuery,We as useSuspenseQueries,Ge as useSuspenseQuery};
1
+ import{importShared as P}from"../__federation_fn_import.DdkEuT6t.js";import{j as Mt}from"../jsx-runtime.CBqCNPYB.js";var T=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xt=class extends T{#e;#t;#s;constructor(){super(),this.#s=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#s=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},ot=new Xt,Yt={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},te=class{#e=Yt;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},D=new te;function ee(t){setTimeout(t,0)}var se=typeof window>"u"||"Deno"in globalThis;function b(){}function re(t,e){return typeof t=="function"?t(e):t}function Y(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ft(t,e){return Math.max(t+(e||0)-Date.now(),0)}function F(t,e){return typeof t=="function"?t(e):t}function R(t,e){return typeof t=="function"?t(e):t}function vt(t,e){const{type:s="all",exact:r,fetchStatus:i,predicate:n,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==ut(a,e.options))return!1}else if(!k(e.queryKey,a))return!1}if(s!=="all"){const c=e.isActive();if(s==="active"&&!c||s==="inactive"&&c)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||n&&!n(e))}function mt(t,e){const{exact:s,status:r,predicate:i,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(s){if(I(e.options.mutationKey)!==I(n))return!1}else if(!k(e.options.mutationKey,n))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function ut(t,e){return(e?.queryKeyHashFn||I)(t)}function I(t){return JSON.stringify(t,(e,s)=>tt(s)?Object.keys(s).sort().reduce((r,i)=>(r[i]=s[i],r),{}):s)}function k(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(s=>k(t[s],e[s])):!1}var ie=Object.prototype.hasOwnProperty;function Z(t,e,s=0){if(t===e)return t;if(s>500)return e;const r=gt(t)&&gt(e);if(!r&&!(tt(t)&&tt(e)))return e;const n=(r?t:Object.keys(t)).length,a=r?e:Object.keys(e),o=a.length,c=r?new Array(o):{};let l=0;for(let u=0;u<o;u++){const d=r?u:a[u],h=t[d],v=e[d];if(h===v){c[d]=h,(r?u<n:ie.call(t,d))&&l++;continue}if(h===null||v===null||typeof h!="object"||typeof v!="object"){c[d]=v;continue}const m=Z(h,v,s+1);c[d]=m,m===h&&l++}return n===o&&l===n?t:c}function K(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(t[s]!==e[s])return!1;return!0}function gt(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function tt(t){if(!bt(t))return!1;const e=t.constructor;if(e===void 0)return!0;const s=e.prototype;return!(!bt(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function bt(t){return Object.prototype.toString.call(t)==="[object Object]"}function ne(t){return new Promise(e=>{D.setTimeout(e,t)})}function et(t,e,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,e):s.structuralSharing!==!1?Z(t,e):e}function Ae(t){return t}function Dt(t,e,s=0){const r=[...t,e];return s&&r.length>s?r.slice(1):r}function ae(t,e,s=0){const r=[e,...t];return s&&r.length>s?r.slice(0,-1):r}var ct=Symbol();function It(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===ct?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function ht(t,e){return typeof t=="function"?t(...e):!!t}function Tt(t,e,s){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),r||(r=!0,i.aborted?s():i.addEventListener("abort",s,{once:!0})),i)}),t}var L=(()=>{let t=()=>se;return{isServer(){return t()},setIsServer(e){t=e}}})();function st(){let t,e;const s=new Promise((i,n)=>{t=i,e=n});s.status="pending",s.catch(()=>{});function r(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},s.reject=i=>{r({status:"rejected",reason:i}),e(i)},s}function oe(t){let e;if(t.then(s=>(e=s,s),b)?.catch(b),e!==void 0)return{data:e}}function xt(t){return t}function ue(t){return{mutationKey:t.options.mutationKey,state:t.state,...t.options.scope&&{scope:t.options.scope},...t.meta&&{meta:t.meta}}}function ce(t,e,s){const r=()=>{const i=t.promise?.then(e).catch(n=>s(n)?Promise.reject(new Error("redacted")):Promise.reject(n));return i?.catch(b),i};return{dehydratedAt:Date.now(),state:{...t.state,...t.state.data!==void 0&&{data:e(t.state.data)}},queryKey:t.queryKey,queryHash:t.queryHash,...t.state.status==="pending"&&{promise:r()},...t.meta&&{meta:t.meta}}}function he(t){return t.state.isPaused}function le(t){return t.state.status==="success"}function fe(t){return!0}function qe(t,e={}){const s=e.shouldDehydrateMutation??t.getDefaultOptions().dehydrate?.shouldDehydrateMutation??he,r=t.getMutationCache().getAll().flatMap(c=>s(c)?[ue(c)]:[]),i=e.shouldDehydrateQuery??t.getDefaultOptions().dehydrate?.shouldDehydrateQuery??le,n=e.shouldRedactErrors??t.getDefaultOptions().dehydrate?.shouldRedactErrors??fe,a=e.serializeData??t.getDefaultOptions().dehydrate?.serializeData??xt,o=t.getQueryCache().getAll().flatMap(c=>i(c)?[ce(c,a,n)]:[]);return{mutations:r,queries:o}}function Ot(t,e,s){if(typeof e!="object"||e===null)return;const r=t.getMutationCache(),i=t.getQueryCache(),n=s?.defaultOptions?.deserializeData??t.getDefaultOptions().hydrate?.deserializeData??xt,a=e.mutations||[],o=e.queries||[];a.forEach(({state:c,...l})=>{r.build(t,{...t.getDefaultOptions().hydrate?.mutations,...s?.defaultOptions?.mutations,...l},c)}),o.forEach(({queryKey:c,state:l,queryHash:u,meta:d,promise:h,dehydratedAt:v})=>{const m=h?oe(h):void 0,f=l.data===void 0?m?.data:l.data,y=f===void 0?f:n(f);let p=i.get(u);const O=p?.state.status==="pending",w=p?.state.fetchStatus==="fetching";if(p){const C=m&&v!==void 0&&v>p.state.dataUpdatedAt;if(l.dataUpdatedAt>p.state.dataUpdatedAt||C){const{fetchStatus:E,...x}=l;p.setState({...x,data:y})}}else p=i.build(t,{...t.getDefaultOptions().hydrate?.queries,...s?.defaultOptions?.queries,queryKey:c,queryHash:u,meta:d},{...l,data:y,fetchStatus:"idle",status:y!==void 0?"success":l.status});h&&!O&&!w&&(v===void 0||v>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(h).then(n)}).catch(b)})}var de=ee;function pe(){let t=[],e=0,s=o=>{o()},r=o=>{o()},i=de;const n=o=>{e?t.push(o):i(()=>{s(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(c=>{s(c)})})})};return{batch:o=>{let c;e++;try{c=o()}finally{e--,e||a()}return c},batchCalls:o=>(...c)=>{n(()=>{o(...c)})},schedule:n,setNotifyFunction:o=>{s=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var g=pe(),ye=class extends T{#e=!0;#t;#s;constructor(){super(),this.#s=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#s=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#e}},W=new ye;function ve(t){return Math.min(1e3*2**t,3e4)}function At(t){return(t??"online")==="online"?W.isOnline():!0}var V=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ue(t){return t instanceof V}function qt(t){let e=!1,s=0,r;const i=st(),n=()=>i.status!=="pending",a=f=>{if(!n()){const y=new V(f);h(y),t.onCancel?.(y)}},o=()=>{e=!0},c=()=>{e=!1},l=()=>ot.isFocused()&&(t.networkMode==="always"||W.isOnline())&&t.canRun(),u=()=>At(t.networkMode)&&t.canRun(),d=f=>{n()||(r?.(),i.resolve(f))},h=f=>{n()||(r?.(),i.reject(f))},v=()=>new Promise(f=>{r=y=>{(n()||l())&&f(y)},t.onPause?.()}).then(()=>{r=void 0,n()||t.onContinue?.()}),m=()=>{if(n())return;let f;const y=s===0?t.initialPromise:void 0;try{f=y??t.fn()}catch(p){f=Promise.reject(p)}Promise.resolve(f).then(d).catch(p=>{if(n())return;const O=t.retry??(L.isServer()?0:3),w=t.retryDelay??ve,C=typeof w=="function"?w(s,p):w,E=O===!0||typeof O=="number"&&s<O||typeof O=="function"&&O(s,p);if(e||!E){h(p);return}s++,t.onFail?.(s,p),ne(C).then(()=>l()?void 0:v()).then(()=>{e?h(p):m()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:o,continueRetry:c,canStart:u,start:()=>(u()?m():v().then(m),i)}}var Ut=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Y(this.gcTime)&&(this.#e=D.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(L.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&(D.clearTimeout(this.#e),this.#e=void 0)}},me=class extends Ut{#e;#t;#s;#i;#r;#n;#a;constructor(t){super(),this.#a=!1,this.#n=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#s=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Rt(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#n,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Rt(this.options);e.data!==void 0&&(this.setState(St(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(t,e){const s=et(this.state.data,t,this.options);return this.#u({data:s,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),s}setState(t,e){this.#u({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(b).catch(b):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>R(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ct||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>F(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ft(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#a||this.#o()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#o(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const o=this.observers.find(c=>c.options.queryFn);o&&this.setOptions(o.options)}const s=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#a=!0,s.signal)})},i=()=>{const o=It(this.options,e),l=(()=>{const u={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(o,l,this):o(l)},a=(()=>{const o={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(o),o})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:"fetch",meta:a.fetchOptions?.meta}),this.#r=qt({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof V&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(o,c)=>{this.#u({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const o=await this.#r.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#s.config.onSuccess?.(o,this),this.#s.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof V){if(o.silent)return this.#r.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#u({type:"error",error:o}),this.#s.config.onError?.(o,this),this.#s.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#u(t){const e=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...jt(s.data,this.options),fetchMeta:t.meta??null};case"success":const r={...s,...St(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?r:void 0,r;case"error":const i=t.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=e(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:t})})}};function jt(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:At(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function St(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Rt(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,s=e!==void 0,r=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var _=class extends T{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#a=st(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#s=void 0;#i=void 0;#r;#n;#a;#o;#u;#f;#d;#h;#l;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),wt(this.#t,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rt(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rt(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof R(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#t.setOptions(this.options),e._defaulted&&!K(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Pt(this.#t,s,this.options,e)&&this.#y(),this.updateResult(),r&&(this.#t!==s||R(this.options.enabled,this.#t)!==R(e.enabled,this.#t)||F(this.options.staleTime,this.#t)!==F(e.staleTime,this.#t))&&this.#v();const i=this.#m();r&&(this.#t!==s||R(this.options.enabled,this.#t)!==R(e.enabled,this.#t)||i!==this.#c)&&this.#g(i)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),s=this.createResult(e,t);return be(this,s)&&(this.#i=s,this.#n=this.options,this.#r=this.#t.state),s}getCurrentResult(){return this.#i}trackResult(t,e){return new Proxy(t,{get:(s,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),s=this.#e.getQueryCache().build(this.#e,e);return s.fetch().then(()=>this.createResult(s,e))}fetch(t){return this.#y({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#y(t){this.#R();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(b)),e}#v(){this.#O();const t=F(this.options.staleTime,this.#t);if(L.isServer()||this.#i.isStale||!Y(t))return;const s=Ft(this.#i.dataUpdatedAt,t)+1;this.#h=D.setTimeout(()=>{this.#i.isStale||this.updateResult()},s)}#m(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(t){this.#S(),this.#c=t,!(L.isServer()||R(this.options.enabled,this.#t)===!1||!Y(this.#c)||this.#c===0)&&(this.#l=D.setInterval(()=>{(this.options.refetchIntervalInBackground||ot.isFocused())&&this.#y()},this.#c))}#b(){this.#v(),this.#g(this.#m())}#O(){this.#h&&(D.clearTimeout(this.#h),this.#h=void 0)}#S(){this.#l&&(D.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){const s=this.#t,r=this.options,i=this.#i,n=this.#r,a=this.#n,c=t!==s?t.state:this.#s,{state:l}=t;let u={...l},d=!1,h;if(e._optimisticResults){const S=this.hasListeners(),A=!S&&wt(t,e),N=S&&Pt(t,s,e,r);(A||N)&&(u={...u,...jt(l.data,t.options)}),e._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:m,status:f}=u;h=u.data;let y=!1;if(e.placeholderData!==void 0&&h===void 0&&f==="pending"){let S;i?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(S=i.data,y=!0):S=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,S!==void 0&&(f="success",h=et(i?.data,S,e),d=!0)}if(e.select&&h!==void 0&&!y)if(i&&h===n?.data&&e.select===this.#u)h=this.#f;else try{this.#u=e.select,h=e.select(h),h=et(i?.data,h,e),this.#f=h,this.#o=null}catch(S){this.#o=S}this.#o&&(v=this.#o,h=this.#f,m=Date.now(),f="error");const p=u.fetchStatus==="fetching",O=f==="pending",w=f==="error",C=O&&p,E=h!==void 0,M={status:f,fetchStatus:u.fetchStatus,isPending:O,isSuccess:f==="success",isError:w,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:m,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:p,isRefetching:p&&!O,isLoadingError:w&&!E,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&E,isStale:lt(t,e),refetch:this.refetch,promise:this.#a,isEnabled:R(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const S=M.data!==void 0,A=M.status==="error"&&!S,N=B=>{A?B.reject(M.error):S&&B.resolve(M.data)},yt=()=>{const B=this.#a=M.promise=st();N(B)},H=this.#a;switch(H.status){case"pending":t.queryHash===s.queryHash&&N(H);break;case"fulfilled":(A||M.data!==H.value)&&yt();break;case"rejected":(!A||M.error!==H.reason)&&yt();break}}return M}updateResult(){const t=this.#i,e=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#n=this.options,this.#r.data!==void 0&&(this.#d=this.#t),K(e,t))return;this.#i=e;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#p.size)return!0;const n=new Set(i??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#i).some(a=>{const o=a;return this.#i[o]!==t[o]&&n.has(o)})};this.#w({listeners:s()})}#R(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#s=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(t){g.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ge(t,e){return R(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function wt(t,e){return ge(t,e)||t.state.data!==void 0&&rt(t,e,e.refetchOnMount)}function rt(t,e,s){if(R(e.enabled,t)!==!1&&F(e.staleTime,t)!=="static"){const r=typeof s=="function"?s(t):s;return r==="always"||r!==!1&&lt(t,e)}return!1}function Pt(t,e,s,r){return(t!==e||R(r.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&lt(t,s)}function lt(t,e){return R(e.enabled,t)!==!1&&t.isStaleByTime(F(e.staleTime,t))}function be(t,e){return!K(t.getCurrentResult(),e)}function J(t){return{onFetch:(e,s)=>{const r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,n=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let o={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const d=m=>{Tt(m,()=>e.signal,()=>u=!0)},h=It(e.options,e.fetchOptions),v=async(m,f,y)=>{if(u)return Promise.reject();if(f==null&&m.pages.length)return Promise.resolve(m);const O=(()=>{const x={client:e.client,queryKey:e.queryKey,pageParam:f,direction:y?"backward":"forward",meta:e.options.meta};return d(x),x})(),w=await h(O),{maxPages:C}=e.options,E=y?ae:Dt;return{pages:E(m.pages,w,C),pageParams:E(m.pageParams,f,C)}};if(i&&n.length){const m=i==="backward",f=m?kt:it,y={pages:n,pageParams:a},p=f(r,y);o=await v(y,p,m)}else{const m=t??n.length;do{const f=c===0?a[0]??r.initialPageParam:it(r,o);if(c>0&&f==null)break;o=await v(o,f),c++}while(c<m)}return o};e.options.persister?e.fetchFn=()=>e.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=l}}}function it(t,{pages:e,pageParams:s}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,s[r],s):void 0}function kt(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function Oe(t,e){return e?it(t,e)!=null:!1}function Se(t,e){return!e||!t.getPreviousPageParam?!1:kt(t,e)!=null}var Kt=class extends _{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:J()})}getOptimisticResult(t){return t.behavior=J(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){const{state:s}=t,r=super.createResult(t,e),{isFetching:i,isRefetching:n,isError:a,isRefetchError:o}=r,c=s.fetchMeta?.fetchMore?.direction,l=a&&c==="forward",u=i&&c==="forward",d=a&&c==="backward",h=i&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Oe(e,s.data),hasPreviousPage:Se(e,s.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:h,isRefetchError:o&&!l&&!d,isRefetching:n&&!u&&!h}}},Re=class extends Ut{#e;#t;#s;#i;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#t=[],this.state=t.state||Lt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#r({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=qt({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(n,a)=>{this.#r({type:"failed",failureCount:n,error:a})},onPause:()=>{this.#r({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const r=this.state.status==="pending",i=!this.#i.canStart();try{if(r)e();else{this.#r({type:"pending",variables:t,isPaused:i}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const a=await this.options.onMutate?.(t,s);a!==this.state.context&&this.#r({type:"pending",context:a,variables:t,isPaused:i})}const n=await this.#i.start();return await this.#s.config.onSuccess?.(n,t,this.state.context,this,s),await this.options.onSuccess?.(n,t,this.state.context,s),await this.#s.config.onSettled?.(n,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(n,null,t,this.state.context,s),this.#r({type:"success",data:n}),n}catch(n){try{await this.#s.config.onError?.(n,t,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onError?.(n,t,this.state.context,s)}catch(a){Promise.reject(a)}try{await this.#s.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this,s)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,n,t,this.state.context,s)}catch(a){Promise.reject(a)}throw this.#r({type:"error",error:n}),n}finally{this.#s.runNext(this)}}#r(t){const e=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),g.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#s.notify({mutation:this,type:"updated",action:t})})}};function Lt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var we=class extends T{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#s=0}#e;#t;#s;build(t,e,s){const r=new Re({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(e),state:s});return this.add(r),r}add(t){this.#e.add(t);const e=z(t);if(typeof e=="string"){const s=this.#t.get(e);s?s.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=z(t);if(typeof e=="string"){const s=this.#t.get(e);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=z(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=z(t);return typeof e=="string"?this.#t.get(e)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){g.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(s=>mt(e,s))}findAll(t={}){return this.getAll().filter(e=>mt(t,e))}notify(t){g.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return g.batch(()=>Promise.all(t.map(e=>e.continue().catch(b))))}};function z(t){return t.options.scope?.id}var Pe=class extends T{#e;#t=void 0;#s;#i;constructor(t,e){super(),this.#e=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const e=this.options;this.options=this.#e.defaultMutationOptions(t),K(this.options,e)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&I(e.mutationKey)!==I(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#n(t)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#r(),this.#n()}mutate(t,e){return this.#i=e,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(t)}#r(){const t=this.#s?.state??Lt();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#n(t){g.batch(()=>{if(this.#i&&this.hasListeners()){const e=this.#t.variables,s=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,s,r)}catch(i){Promise.reject(i)}try{this.#i.onSettled?.(t.data,null,e,s,r)}catch(i){Promise.reject(i)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,s,r)}catch(i){Promise.reject(i)}try{this.#i.onSettled?.(void 0,t.error,e,s,r)}catch(i){Promise.reject(i)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Ct(t,e){const s=new Set(e);return t.filter(r=>!s.has(r))}function Ce(t,e,s){const r=t.slice(0);return r[e]=s,r}var Qe=class extends T{#e;#t;#s;#i;#r;#n;#a;#o;#u;#f=[];constructor(t,e,s){super(),this.#e=t,this.#i=s,this.#s=[],this.#r=[],this.#t=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(t=>{t.subscribe(e=>{this.#c(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(t=>{t.destroy()})}setQueries(t,e){this.#s=t,this.#i=e,g.batch(()=>{const s=this.#r,r=this.#l(this.#s);r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),n=i.map(u=>u.getCurrentResult()),a=s.length!==i.length,o=i.some((u,d)=>u!==s[d]),c=a||o,l=c?!0:n.some((u,d)=>{const h=this.#t[d];return!h||!K(u,h)});!c&&!l||(c&&(this.#f=r,this.#r=i),this.#t=n,this.hasListeners()&&(c&&(Ct(s,i).forEach(u=>{u.destroy()}),Ct(i,s).forEach(u=>{u.subscribe(d=>{this.#c(u,d)})})),this.#p()))})}getCurrentResult(){return this.#t}getQueries(){return this.#r.map(t=>t.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(t,e){const s=this.#l(t),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#h(n??r,e,i),()=>this.#d(r,s)]}#d(t,e){return e.map((s,r)=>{const i=t[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(a=>{a.observer.trackProp(n)})})})}#h(t,e,s){if(e){const r=this.#u,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,a)=>n!==r[a]));return(!this.#n||this.#t!==this.#o||i||e!==this.#a)&&(this.#a=e,this.#o=this.#t,s!==void 0&&(this.#u=s),this.#n=Z(this.#n,e(t))),this.#n}return t}#l(t){const e=new Map;this.#r.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(r):e.set(i,[r])});const s=[];return t.forEach(r=>{const i=this.#e.defaultQueryOptions(r),a=e.get(i.queryHash)?.shift()??new _(this.#e,i);s.push({defaultedQueryOptions:i,observer:a})}),s}#c(t,e){const s=this.#r.indexOf(t);s!==-1&&(this.#t=Ce(this.#t,s,e),this.#p())}#p(){if(this.hasListeners()){const t=this.#n,e=this.#d(this.#t,this.#f),s=this.#h(e,this.#i?.combine);t!==s&&g.batch(()=>{this.listeners.forEach(r=>{r(this.#t)})})}}},Ee=class extends T{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,s){const r=e.queryKey,i=e.queryHash??ut(r,e);let n=this.get(i);return n||(n=new me({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(n)),n}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){g.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(s=>vt(e,s))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(s=>vt(t,s)):e}notify(t){g.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){g.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){g.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},je=class{#e;#t;#s;#i;#r;#n;#a;#o;constructor(t={}){this.#e=t.queryCache||new Ee,this.#t=t.mutationCache||new we,this.#s=t.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#n=0}mount(){this.#n++,this.#n===1&&(this.#a=ot.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=W.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#n--,this.#n===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#e.build(this,e),r=s.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(F(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:s})=>{const r=s.data;return[e,r]})}setQueryData(t,e,s){const r=this.defaultQueryOptions({queryKey:t}),n=this.#e.get(r.queryHash)?.state.data,a=re(e,n);if(a!==void 0)return this.#e.build(this,r).setData(a,{...s,manual:!0})}setQueriesData(t,e,s){return g.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,s)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;g.batch(()=>{e.findAll(t).forEach(s=>{e.remove(s)})})}resetQueries(t,e){const s=this.#e;return g.batch(()=>(s.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const s={revert:!0,...e},r=g.batch(()=>this.#e.findAll(t).map(i=>i.cancel(s)));return Promise.all(r).then(b).catch(b)}invalidateQueries(t,e={}){return g.batch(()=>(this.#e.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const s={...e,cancelRefetch:e.cancelRefetch??!0},r=g.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let n=i.fetch(void 0,s);return s.throwOnError||(n=n.catch(b)),i.state.fetchStatus==="paused"?Promise.resolve():n}));return Promise.all(r).then(b)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const s=this.#e.build(this,e);return s.isStaleByTime(F(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(b).catch(b)}fetchInfiniteQuery(t){return t.behavior=J(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(b).catch(b)}ensureInfiniteQueryData(t){return t.behavior=J(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return W.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(t){this.#s=t}setQueryDefaults(t,e){this.#i.set(I(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#i.values()],s={};return e.forEach(r=>{k(t,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(t,e){this.#r.set(I(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#r.values()],s={};return e.forEach(r=>{k(t,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#s.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ut(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===ct&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#s.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function ke({streamFn:t,refetchMode:e="reset",reducer:s=(i,n)=>Dt(i,n),initialValue:r=[]}){return async i=>{const n=i.client.getQueryCache().find({queryKey:i.queryKey,exact:!0}),a=!!n&&n.isFetched();a&&e==="reset"&&n.setState({...n.resetState,fetchStatus:"fetching"});let o=r,c=!1;const l=Tt({client:i.client,meta:i.meta,queryKey:i.queryKey,pageParam:i.pageParam,direction:i.direction},()=>i.signal,()=>c=!0),u=await t(l),d=a&&e==="replace";for await(const h of u){if(c)break;d?o=s(o,h):i.client.setQueryData(i.queryKey,v=>s(v===void 0?r:v,h))}return d&&!c&&i.client.setQueryData(i.queryKey,o),i.client.getQueryData(i.queryKey)??r}}var Ke=Symbol("dataTagSymbol"),Le=Symbol("dataTagErrorSymbol"),_e=Symbol("unsetMarker");const ft=await P("react");var _t=ft.createContext(void 0),Q=t=>{const e=ft.useContext(_t);if(t)return t;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Ne=({client:t,children:e})=>(ft.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),Mt.jsx(_t.Provider,{value:t,children:e}));const Nt=await P("react");var Ht=Nt.createContext(!1),Bt=()=>Nt.useContext(Ht),He=Ht.Provider;const dt=await P("react");function zt(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Gt=dt.createContext(zt()),$t=()=>dt.useContext(Gt),Be=({children:t})=>{const[e]=dt.useState(()=>zt());return Mt.jsx(Gt.Provider,{value:e,children:typeof t=="function"?t(e):t})};const Me=await P("react");var Wt=(t,e,s)=>{const r=s?.state.error&&typeof t.throwOnError=="function"?ht(t.throwOnError,[s.state.error,s]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},Vt=t=>{Me.useEffect(()=>{t.clearReset()},[t])},Jt=({result:t,errorResetBoundary:e,throwOnError:s,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||ht(s,[t.error,r])),pt=(t,e)=>e.state.data===void 0,Zt=t=>{if(t.suspense){const s=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>s(r(...i)):s(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Fe=(t,e)=>t.isLoading&&t.isFetching&&!e,nt=(t,e)=>t?.suspense&&e.isPending,at=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});const q=await P("react");function De({queries:t,...e},s){const r=Q(s),i=Bt(),n=$t(),a=q.useMemo(()=>t.map(f=>{const y=r.defaultQueryOptions(f);return y._optimisticResults=i?"isRestoring":"optimistic",y}),[t,r,i]);a.forEach(f=>{Zt(f);const y=r.getQueryCache().get(f.queryHash);Wt(f,n,y)}),Vt(n);const[o]=q.useState(()=>new Qe(r,a,e)),[c,l,u]=o.getOptimisticResult(a,e.combine),d=!i&&e.subscribed!==!1;q.useSyncExternalStore(q.useCallback(f=>d?o.subscribe(g.batchCalls(f)):b,[o,d]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),q.useEffect(()=>{o.setQueries(a,e)},[a,e,o]);const v=c.some((f,y)=>nt(a[y],f))?c.flatMap((f,y)=>{const p=a[y];if(p&&nt(p,f)){const O=new _(r,p);return at(p,O,n)}return[]}):[];if(v.length>0)throw Promise.all(v);const m=c.find((f,y)=>{const p=a[y];return p&&Jt({result:f,errorResetBoundary:n,throwOnError:p.throwOnError,query:r.getQueryCache().get(p.queryHash),suspense:p.suspense})});if(m?.error)throw m.error;return l(u())}const G=await P("react");function X(t,e,s){const r=Bt(),i=$t(),n=Q(s),a=n.defaultQueryOptions(t);n.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const o=n.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",Zt(a),Wt(a,i,o),Vt(i);const c=!n.getQueryCache().get(a.queryHash),[l]=G.useState(()=>new e(n,a)),u=l.getOptimisticResult(a),d=!r&&t.subscribed!==!1;if(G.useSyncExternalStore(G.useCallback(h=>{const v=d?l.subscribe(g.batchCalls(h)):b;return l.updateResult(),v},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),G.useEffect(()=>{l.setOptions(a)},[a,l]),nt(a,u))throw at(a,l,i);if(Jt({result:u,errorResetBoundary:i,throwOnError:a.throwOnError,query:o,suspense:a.suspense}))throw u.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,u),a.experimental_prefetchInRender&&!L.isServer()&&Fe(u,r)&&(c?at(a,l,i):o?.promise)?.catch(b).finally(()=>{l.updateResult()}),a.notifyOnChangeProps?u:l.trackResult(u)}function ze(t,e){return X(t,_,e)}function Ge(t,e){return X({...t,enabled:!0,suspense:!0,throwOnError:pt,placeholderData:void 0},_,e)}function $e(t,e){return X({...t,enabled:!0,suspense:!0,throwOnError:pt},Kt,e)}function We(t,e){return De({...t,queries:t.queries.map(s=>({...s,suspense:!0,throwOnError:pt,enabled:!0,placeholderData:void 0}))},e)}function Ve(t,e){const s=Q(e);s.getQueryState(t.queryKey)||s.prefetchQuery(t)}function Je(t,e){const s=Q(e);s.getQueryState(t.queryKey)||s.prefetchInfiniteQuery(t)}function Ze(t){return t}function Xe(t){return t}const $=await P("react");var Ye=({children:t,options:e={},state:s,queryClient:r})=>{const i=Q(r),n=$.useRef(e);$.useEffect(()=>{n.current=e});const a=$.useMemo(()=>{if(s){if(typeof s!="object")return;const o=i.getQueryCache(),c=s.queries||[],l=[],u=[];for(const d of c){const h=o.get(d.queryHash);h?(d.state.dataUpdatedAt>h.state.dataUpdatedAt||d.promise&&h.state.status!=="pending"&&h.state.fetchStatus!=="fetching"&&d.dehydratedAt!==void 0&&d.dehydratedAt>h.state.dataUpdatedAt)&&u.push(d):l.push(d)}if(l.length>0&&Ot(i,{queries:l},n.current),u.length>0)return u}},[i,s]);return $.useEffect(()=>{a&&Ot(i,{queries:a},n.current)},[i,a]),t};const Qt=await P("react");function ts(t,e){const s=Q(e),r=s.getQueryCache();return Qt.useSyncExternalStore(Qt.useCallback(i=>r.subscribe(g.batchCalls(i)),[r]),()=>s.isFetching(t),()=>s.isFetching(t))}const U=await P("react");function es(t,e){const s=Q(e);return Ie({filters:{...t,status:"pending"}},s).length}function Et(t,e){return t.findAll(e.filters).map(s=>e.select?e.select(s):s.state)}function Ie(t={},e){const s=Q(e).getMutationCache(),r=U.useRef(t),i=U.useRef(null);return i.current===null&&(i.current=Et(s,t)),U.useEffect(()=>{r.current=t}),U.useSyncExternalStore(U.useCallback(n=>s.subscribe(()=>{const a=Z(i.current,Et(s,r.current));i.current!==a&&(i.current=a,g.schedule(n))}),[s]),()=>i.current,()=>i.current)}const j=await P("react");function ss(t,e){const s=Q(e),[r]=j.useState(()=>new Pe(s,t));j.useEffect(()=>{r.setOptions(t)},[r,t]);const i=j.useSyncExternalStore(j.useCallback(a=>r.subscribe(g.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),n=j.useCallback((a,o)=>{r.mutate(a,o).catch(b)},[r]);if(i.error&&ht(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:n,mutateAsync:i.mutate}}function rs(t){return t}function is(t,e){return X(t,Kt,e)}export{V as CancelledError,Ye as HydrationBoundary,Kt as InfiniteQueryObserver,He as IsRestoringProvider,Re as Mutation,we as MutationCache,Pe as MutationObserver,Qe as QueriesObserver,me as Query,Ee as QueryCache,je as QueryClient,_t as QueryClientContext,Ne as QueryClientProvider,Be as QueryErrorResetBoundary,_ as QueryObserver,Le as dataTagErrorSymbol,Ke as dataTagSymbol,de as defaultScheduler,he as defaultShouldDehydrateMutation,le as defaultShouldDehydrateQuery,qe as dehydrate,L as environmentManager,ke as experimental_streamedQuery,ot as focusManager,I as hashKey,Ot as hydrate,Xe as infiniteQueryOptions,Ue as isCancelledError,se as isServer,Ae as keepPreviousData,mt as matchMutation,vt as matchQuery,rs as mutationOptions,b as noop,g as notifyManager,W as onlineManager,k as partialMatchKey,Ze as queryOptions,Z as replaceEqualDeep,ht as shouldThrowError,ct as skipToken,D as timeoutManager,_e as unsetMarker,is as useInfiniteQuery,ts as useIsFetching,es as useIsMutating,Bt as useIsRestoring,ss as useMutation,Ie as useMutationState,Je as usePrefetchInfiniteQuery,Ve as usePrefetchQuery,De as useQueries,ze as useQuery,Q as useQueryClient,$t as useQueryErrorResetBoundary,$e as useSuspenseInfiniteQuery,We as useSuspenseQueries,Ge as useSuspenseQuery};
@@ -1 +1 @@
1
- import{a as h,l as s}from"./__federation_expose_App.MoFBQejr.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as I}from"./lspLanguageFeatures.qBXuaIUh.js";import{h as b,i as H,j as y,t as U,k as T}from"./lspLanguageFeatures.qBXuaIUh.js";const A=120*1e3;class C{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>A&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/assets/css.worker-uch7pA5g.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...o){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(o)}).then(a=>e)}}function F(n){const o=[],e=[],a=new C(n);o.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=n;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,n.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),o.push(d(e)),d(o)}function d(n){return{dispose:()=>g(n)}}function g(n){for(;n.length;)n.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,b as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,C as WorkerManager,H as fromPosition,y as fromRange,F as setupMode,U as toRange,T as toTextEdit};
1
+ import{a as h,l as s}from"./__federation_expose_App.BtK24QCB.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as I}from"./lspLanguageFeatures.DgJgA_Mi.js";import{h as b,i as H,j as y,t as U,k as T}from"./lspLanguageFeatures.DgJgA_Mi.js";const A=120*1e3;class C{constructor(o){this._defaults=o,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>A&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/assets/css.worker-uch7pA5g.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...o){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(o)}).then(a=>e)}}function F(n){const o=[],e=[],a=new C(n);o.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=n;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,n.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),o.push(d(e)),d(o)}function d(n){return{dispose:()=>g(n)}}function g(n){for(;n.length;)n.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,b as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,C as WorkerManager,H as fromPosition,y as fromRange,F as setupMode,U as toRange,T as toTextEdit};
@@ -1 +1 @@
1
- import{importShared as Z}from"./__federation_fn_import.ByOnqCI5.js";function We(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function De(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var He=(function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(De(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=We(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),k="-ms-",K="-moz-",u="-webkit-",xe="comm",oe="rule",ce="decl",Ue="@import",we="@keyframes",Ve="@layer",Be=Math.abs,J=String.fromCharCode,qe=Object.assign;function Ge(e,r){return w(e,0)^45?(((r<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}function ke(e){return e.trim()}function Ye(e,r){return(e=r.exec(e))?e[0]:e}function l(e,r,t){return e.replace(r,t)}function te(e,r){return e.indexOf(r)}function w(e,r){return e.charCodeAt(r)|0}function D(e,r,t){return e.slice(r,t)}function _(e){return e.length}function fe(e){return e.length}function G(e,r){return r.push(e),e}function je(e,r){return e.map(r).join("")}var Q=1,F=1,Se=0,P=0,b=0,L="";function ee(e,r,t,n,a,i,s){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:Q,column:F,length:s,return:""}}function z(e,r){return qe(ee("",null,null,"",null,null,0),e,{length:-e.length},r)}function Xe(){return b}function Ke(){return b=P>0?w(L,--P):0,F--,b===10&&(F=1,Q--),b}function A(){return b=P<Se?w(L,P++):0,F++,b===10&&(F=1,Q++),b}function I(){return w(L,P)}function Y(){return P}function V(e,r){return D(L,e,r)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ce(e){return Q=F=1,Se=_(L=e),P=0,[]}function Pe(e){return L="",e}function j(e){return ke(V(P-1,ne(e===91?e+2:e===40?e+1:e)))}function Ze(e){for(;(b=I())&&b<33;)A();return H(e)>2||H(b)>3?"":" "}function Je(e,r){for(;--r&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return V(e,Y()+(r<6&&I()==32&&A()==32))}function ne(e){for(;A();)switch(b){case e:return P;case 34:case 39:e!==34&&e!==39&&ne(b);break;case 40:e===41&&ne(e);break;case 92:A();break}return P}function Qe(e,r){for(;A()&&e+b!==57;)if(e+b===84&&I()===47)break;return"/*"+V(r,P-1)+"*"+J(e===47?e:A())}function er(e){for(;!H(I());)A();return V(e,P)}function rr(e){return Pe(X("",null,null,null,[""],e=Ce(e),0,[0],e))}function X(e,r,t,n,a,i,s,o,f){for(var p=0,d=0,h=s,E=0,T=0,x=0,c=1,m=1,g=1,v=0,C="",R=a,O=i,S=n,y=C;m;)switch(x=v,v=A()){case 40:if(x!=108&&w(y,h-1)==58){te(y+=l(j(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:y+=j(v);break;case 9:case 10:case 13:case 32:y+=Ze(x);break;case 92:y+=Je(Y()-1,7);continue;case 47:switch(I()){case 42:case 47:G(tr(Qe(A(),Y()),r,t),f);break;default:y+="/"}break;case 123*c:o[p++]=_(y)*g;case 125*c:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+d:g==-1&&(y=l(y,/\f/g,"")),T>0&&_(y)-h&&G(T>32?he(y+";",n,t,h-1):he(l(y," ","")+";",n,t,h-2),f);break;case 59:y+=";";default:if(G(S=de(y,r,t,p,d,a,o,C,R=[],O=[],h),i),v===123)if(d===0)X(y,r,S,S,R,i,h,o,O);else switch(E===99&&w(y,3)===110?100:E){case 100:case 108:case 109:case 115:X(e,S,S,n&&G(de(e,S,S,0,0,a,o,C,a,R=[],h),O),a,O,h,o,n?R:O);break;default:X(y,S,S,S,[""],O,0,o,O)}}p=d=T=0,c=g=1,C=y="",h=s;break;case 58:h=1+_(y),T=x;default:if(c<1){if(v==123)--c;else if(v==125&&c++==0&&Ke()==125)continue}switch(y+=J(v),v*c){case 38:g=d>0?1:(y+="\f",-1);break;case 44:o[p++]=(_(y)-1)*g,g=1;break;case 64:I()===45&&(y+=j(A())),E=I(),d=h=_(C=y+=er(Y())),v++;break;case 45:x===45&&_(y)==2&&(c=0)}}return i}function de(e,r,t,n,a,i,s,o,f,p,d){for(var h=a-1,E=a===0?i:[""],T=fe(E),x=0,c=0,m=0;x<n;++x)for(var g=0,v=D(e,h+1,h=Be(c=s[x])),C=e;g<T;++g)(C=ke(c>0?E[g]+" "+v:l(v,/&\f/g,E[g])))&&(f[m++]=C);return ee(e,r,t,a===0?oe:o,f,p,d)}function tr(e,r,t){return ee(e,r,t,xe,J(Xe()),D(e,2,-2),0)}function he(e,r,t,n){return ee(e,r,t,ce,D(e,0,n),D(e,n+1,-1),n)}function M(e,r){for(var t="",n=fe(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function nr(e,r,t,n){switch(e.type){case Ve:if(e.children.length)break;case Ue:case ce:return e.return=e.return||e.value;case xe:return"";case we:return e.return=e.value+"{"+M(e.children,n)+"}";case oe:e.value=e.props.join(",")}return _(t=M(e.children,n))?e.return=e.value+"{"+t+"}":""}function ar(e){var r=fe(e);return function(t,n,a,i){for(var s="",o=0;o<r;o++)s+=e[o](t,n,a,i)||"";return s}}function ir(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ae(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var sr=function(r,t,n){for(var a=0,i=0;a=i,i=I(),a===38&&i===12&&(t[n]=1),!H(i);)A();return V(r,P)},or=function(r,t){var n=-1,a=44;do switch(H(a)){case 0:a===38&&I()===12&&(t[n]=1),r[n]+=sr(P-1,t,n);break;case 2:r[n]+=j(a);break;case 4:if(a===44){r[++n]=I()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=J(a)}while(a=A());return r},cr=function(r,t){return Pe(or(Ce(r),t))},pe=new WeakMap,fr=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!pe.get(n))&&!a){pe.set(r,!0);for(var i=[],s=cr(t,i),o=n.props,f=0,p=0;f<s.length;f++)for(var d=0;d<o.length;d++,p++)r.props[p]=i[f]?s[f].replace(/&\f/g,o[d]):o[d]+" "+s[f]}}},ur=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ee(e,r){switch(Ge(e,r)){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+K+e+k+e+e;case 6828:case 4268:return u+e+k+e+e;case 6165:return u+e+k+"flex-"+e+e;case 5187:return u+e+l(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return u+e+k+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return u+e+k+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return u+e+k+l(e,"shrink","negative")+e;case 5292:return u+e+k+l(e,"basis","preferred-size")+e;case 6060:return u+"box-"+l(e,"-grow","")+u+e+k+l(e,"grow","positive")+e;case 4554:return u+l(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-r>6)switch(w(e,r+1)){case 109:if(w(e,r+4)!==45)break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+K+(w(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Ee(l(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(w(e,r+1)!==115)break;case 6444:switch(w(e,_(e)-3-(~te(e,"!important")&&10))){case 107:return l(e,":",":"+u)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u+(w(e,14)===45?"inline-":"")+"box$3$1"+u+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(w(e,r+11)){case 114:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return u+e+k+e+e}return e}var lr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case ce:r.return=Ee(r.value,r.length);break;case we:return M([z(r,{value:l(r.value,"@","@"+u)})],a);case oe:if(r.length)return je(r.props,function(i){switch(Ye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return M([z(r,{props:[l(i,/:(read-\w+)/,":"+K+"$1")]})],a);case"::placeholder":return M([z(r,{props:[l(i,/:(plac\w+)/,":"+u+"input-$1")]}),z(r,{props:[l(i,/:(plac\w+)/,":"+K+"$1")]}),z(r,{props:[l(i,/:(plac\w+)/,k+"input-$1")]})],a)}return""})}},dr=[lr],hr=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(c){var m=c.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(c),c.setAttribute("data-s",""))})}var a=r.stylisPlugins||dr,i={},s,o=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(c){for(var m=c.getAttribute("data-emotion").split(" "),g=1;g<m.length;g++)i[m[g]]=!0;o.push(c)});var f,p=[fr,ur];{var d,h=[nr,ir(function(c){d.insert(c)})],E=ar(p.concat(a,h)),T=function(m){return M(rr(m),E)};f=function(m,g,v,C){d=v,T(m?m+"{"+g.styles+"}":g.styles),C&&(x.inserted[g.name]=!0)}}var x={key:t,sheet:new He({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:f};return x.sheet.hydrate(o),x};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ae.apply(null,arguments)}var pr=!0;function Te(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var ue=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||pr===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},Re=function(r,t,n){ue(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function mr(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var gr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yr=/[A-Z]|^ms/g,vr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oe=function(r){return r.charCodeAt(1)===45},me=function(r){return r!=null&&typeof r!="boolean"},re=Ae(function(e){return Oe(e)?e:e.replace(yr,"-$&").toLowerCase()}),ge=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(vr,function(n,a,i){return $={name:a,styles:i,next:$},a})}return gr[r]!==1&&!Oe(r)&&typeof t=="number"&&t!==0?t+"px":t};function U(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return $={name:a.name,styles:a.styles,next:$},a.name;var i=t;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)$={name:s.name,styles:s.styles,next:$},s=s.next;var o=i.styles+";";return o}return br(e,r,t)}case"function":{if(e!==void 0){var f=$,p=t(e);return $=f,U(e,r,p)}break}}var d=t;if(r==null)return d;var h=r[d];return h!==void 0?h:d}function br(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=U(e,r,t[a])+";";else for(var i in t){var s=t[i];if(typeof s!="object"){var o=s;r!=null&&r[o]!==void 0?n+=i+"{"+r[o]+"}":me(o)&&(n+=re(i)+":"+ge(i,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(r==null||r[s[0]]===void 0))for(var f=0;f<s.length;f++)me(s[f])&&(n+=re(i)+":"+ge(i,s[f])+";");else{var p=U(e,r,s);switch(i){case"animation":case"animationName":{n+=re(i)+":"+p+";";break}default:n+=i+"{"+p+"}"}}}return n}var ye=/label:\s*([^\s;{]+)\s*(;|$)/g,$;function _e(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";$=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=U(t,r,i);else{var s=i;a+=s[0]}for(var o=1;o<e.length;o++)if(a+=U(t,r,e[o]),n){var f=i;a+=f[o]}ye.lastIndex=0;for(var p="",d;(d=ye.exec(a))!==null;)p+="-"+d[1];var h=mr(a)+p;return{name:h,styles:a,next:$}}const ie=await Z("react");var xr=function(r){return r()},$e=ie.useInsertionEffect?ie.useInsertionEffect:!1,Ie=$e||xr;$e||ie.useLayoutEffect;const N=await Z("react"),{useContext:wr,forwardRef:kr}=await Z("react");var Ne=N.createContext(typeof HTMLElement<"u"?hr({key:"css"}):null);Ne.Provider;var Me=function(r){return kr(function(t,n){var a=wr(Ne);return r(t,a,n)})},Fe=N.createContext({}),Le={}.hasOwnProperty,se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_r=function(r,t){var n={};for(var a in t)Le.call(t,a)&&(n[a]=t[a]);return n[se]=r,n},Sr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Cr=Me(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[se],i=[n],s="";typeof e.className=="string"?s=Te(r.registered,i,e.className):e.className!=null&&(s=e.className+" ");var o=_e(i,void 0,N.useContext(Fe));s+=r.key+"-"+o.name;var f={};for(var p in e)Le.call(e,p)&&p!=="css"&&p!==se&&(f[p]=e[p]);return f.className=s,t&&(f.ref=t),N.createElement(N.Fragment,null,N.createElement(Sr,{cache:r,serialized:o,isStringTag:typeof a=="string"}),N.createElement(a,f))}),$r=Cr,Pr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ar=Ae(function(e){return Pr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const W=await Z("react");var Er=Ar,Tr=function(r){return r!=="theme"},ve=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Er:Tr},be=function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},Rr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Ir=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,i,s;t!==void 0&&(i=t.label,s=t.target);var o=be(r,t,n),f=o||ve(a),p=!f("as");return function(){var d=arguments,h=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var E=d[0];h.push(E[0]);for(var T=d.length,x=1;x<T;x++)h.push(d[x],E[x])}var c=Me(function(m,g,v){var C=p&&m.as||a,R="",O=[],S=m;if(m.theme==null){S={};for(var y in m)S[y]=m[y];S.theme=W.useContext(Fe)}typeof m.className=="string"?R=Te(g.registered,O,m.className):m.className!=null&&(R=m.className+" ");var le=_e(h.concat(O),g.registered,S);R+=g.key+"-"+le.name,s!==void 0&&(R+=" "+s);var ze=p&&o===void 0?ve(C):f,B={};for(var q in m)p&&q==="as"||ze(q)&&(B[q]=m[q]);return B.className=R,v&&(B.ref=v),W.createElement(W.Fragment,null,W.createElement(Rr,{cache:g,serialized:le,isStringTag:typeof C=="string"}),W.createElement(C,B))});return c.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",c.defaultProps=r.defaultProps,c.__emotion_real=c,c.__emotion_base=a,c.__emotion_styles=h,c.__emotion_forwardProp=o,Object.defineProperty(c,"toString",{value:function(){return"."+s}}),c.withComponent=function(m,g){var v=e(m,ae({},t,g,{shouldForwardProp:be(c,g,!0)}));return v.apply(void 0,h)},c}};export{$r as E,ae as _,_r as a,Ir as c,Le as h,_e as s};
1
+ import{importShared as Z}from"./__federation_fn_import.DdkEuT6t.js";function We(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function De(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var He=(function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(De(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=We(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),k="-ms-",K="-moz-",u="-webkit-",xe="comm",oe="rule",ce="decl",Ue="@import",we="@keyframes",Ve="@layer",Be=Math.abs,J=String.fromCharCode,qe=Object.assign;function Ge(e,r){return w(e,0)^45?(((r<<2^w(e,0))<<2^w(e,1))<<2^w(e,2))<<2^w(e,3):0}function ke(e){return e.trim()}function Ye(e,r){return(e=r.exec(e))?e[0]:e}function l(e,r,t){return e.replace(r,t)}function te(e,r){return e.indexOf(r)}function w(e,r){return e.charCodeAt(r)|0}function D(e,r,t){return e.slice(r,t)}function _(e){return e.length}function fe(e){return e.length}function G(e,r){return r.push(e),e}function je(e,r){return e.map(r).join("")}var Q=1,F=1,Se=0,P=0,b=0,L="";function ee(e,r,t,n,a,i,s){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:Q,column:F,length:s,return:""}}function z(e,r){return qe(ee("",null,null,"",null,null,0),e,{length:-e.length},r)}function Xe(){return b}function Ke(){return b=P>0?w(L,--P):0,F--,b===10&&(F=1,Q--),b}function A(){return b=P<Se?w(L,P++):0,F++,b===10&&(F=1,Q++),b}function I(){return w(L,P)}function Y(){return P}function V(e,r){return D(L,e,r)}function H(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ce(e){return Q=F=1,Se=_(L=e),P=0,[]}function Pe(e){return L="",e}function j(e){return ke(V(P-1,ne(e===91?e+2:e===40?e+1:e)))}function Ze(e){for(;(b=I())&&b<33;)A();return H(e)>2||H(b)>3?"":" "}function Je(e,r){for(;--r&&A()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return V(e,Y()+(r<6&&I()==32&&A()==32))}function ne(e){for(;A();)switch(b){case e:return P;case 34:case 39:e!==34&&e!==39&&ne(b);break;case 40:e===41&&ne(e);break;case 92:A();break}return P}function Qe(e,r){for(;A()&&e+b!==57;)if(e+b===84&&I()===47)break;return"/*"+V(r,P-1)+"*"+J(e===47?e:A())}function er(e){for(;!H(I());)A();return V(e,P)}function rr(e){return Pe(X("",null,null,null,[""],e=Ce(e),0,[0],e))}function X(e,r,t,n,a,i,s,o,f){for(var p=0,d=0,h=s,E=0,T=0,x=0,c=1,m=1,g=1,v=0,C="",R=a,O=i,S=n,y=C;m;)switch(x=v,v=A()){case 40:if(x!=108&&w(y,h-1)==58){te(y+=l(j(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:y+=j(v);break;case 9:case 10:case 13:case 32:y+=Ze(x);break;case 92:y+=Je(Y()-1,7);continue;case 47:switch(I()){case 42:case 47:G(tr(Qe(A(),Y()),r,t),f);break;default:y+="/"}break;case 123*c:o[p++]=_(y)*g;case 125*c:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+d:g==-1&&(y=l(y,/\f/g,"")),T>0&&_(y)-h&&G(T>32?he(y+";",n,t,h-1):he(l(y," ","")+";",n,t,h-2),f);break;case 59:y+=";";default:if(G(S=de(y,r,t,p,d,a,o,C,R=[],O=[],h),i),v===123)if(d===0)X(y,r,S,S,R,i,h,o,O);else switch(E===99&&w(y,3)===110?100:E){case 100:case 108:case 109:case 115:X(e,S,S,n&&G(de(e,S,S,0,0,a,o,C,a,R=[],h),O),a,O,h,o,n?R:O);break;default:X(y,S,S,S,[""],O,0,o,O)}}p=d=T=0,c=g=1,C=y="",h=s;break;case 58:h=1+_(y),T=x;default:if(c<1){if(v==123)--c;else if(v==125&&c++==0&&Ke()==125)continue}switch(y+=J(v),v*c){case 38:g=d>0?1:(y+="\f",-1);break;case 44:o[p++]=(_(y)-1)*g,g=1;break;case 64:I()===45&&(y+=j(A())),E=I(),d=h=_(C=y+=er(Y())),v++;break;case 45:x===45&&_(y)==2&&(c=0)}}return i}function de(e,r,t,n,a,i,s,o,f,p,d){for(var h=a-1,E=a===0?i:[""],T=fe(E),x=0,c=0,m=0;x<n;++x)for(var g=0,v=D(e,h+1,h=Be(c=s[x])),C=e;g<T;++g)(C=ke(c>0?E[g]+" "+v:l(v,/&\f/g,E[g])))&&(f[m++]=C);return ee(e,r,t,a===0?oe:o,f,p,d)}function tr(e,r,t){return ee(e,r,t,xe,J(Xe()),D(e,2,-2),0)}function he(e,r,t,n){return ee(e,r,t,ce,D(e,0,n),D(e,n+1,-1),n)}function M(e,r){for(var t="",n=fe(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function nr(e,r,t,n){switch(e.type){case Ve:if(e.children.length)break;case Ue:case ce:return e.return=e.return||e.value;case xe:return"";case we:return e.return=e.value+"{"+M(e.children,n)+"}";case oe:e.value=e.props.join(",")}return _(t=M(e.children,n))?e.return=e.value+"{"+t+"}":""}function ar(e){var r=fe(e);return function(t,n,a,i){for(var s="",o=0;o<r;o++)s+=e[o](t,n,a,i)||"";return s}}function ir(e){return function(r){r.root||(r=r.return)&&e(r)}}function Ae(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var sr=function(r,t,n){for(var a=0,i=0;a=i,i=I(),a===38&&i===12&&(t[n]=1),!H(i);)A();return V(r,P)},or=function(r,t){var n=-1,a=44;do switch(H(a)){case 0:a===38&&I()===12&&(t[n]=1),r[n]+=sr(P-1,t,n);break;case 2:r[n]+=j(a);break;case 4:if(a===44){r[++n]=I()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=J(a)}while(a=A());return r},cr=function(r,t){return Pe(or(Ce(r),t))},pe=new WeakMap,fr=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!pe.get(n))&&!a){pe.set(r,!0);for(var i=[],s=cr(t,i),o=n.props,f=0,p=0;f<s.length;f++)for(var d=0;d<o.length;d++,p++)r.props[p]=i[f]?s[f].replace(/&\f/g,o[d]):o[d]+" "+s[f]}}},ur=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Ee(e,r){switch(Ge(e,r)){case 5103:return u+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u+e+K+e+k+e+e;case 6828:case 4268:return u+e+k+e+e;case 6165:return u+e+k+"flex-"+e+e;case 5187:return u+e+l(e,/(\w+).+(:[^]+)/,u+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return u+e+k+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return u+e+k+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return u+e+k+l(e,"shrink","negative")+e;case 5292:return u+e+k+l(e,"basis","preferred-size")+e;case 6060:return u+"box-"+l(e,"-grow","")+u+e+k+l(e,"grow","positive")+e;case 4554:return u+l(e,/([^-])(transform)/g,"$1"+u+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,u+"$1"),/(image-set)/,u+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,u+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,u+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,u+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-r>6)switch(w(e,r+1)){case 109:if(w(e,r+4)!==45)break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+u+"$2-$3$1"+K+(w(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Ee(l(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(w(e,r+1)!==115)break;case 6444:switch(w(e,_(e)-3-(~te(e,"!important")&&10))){case 107:return l(e,":",":"+u)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u+(w(e,14)===45?"inline-":"")+"box$3$1"+u+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(w(e,r+11)){case 114:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u+e+k+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return u+e+k+e+e}return e}var lr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case ce:r.return=Ee(r.value,r.length);break;case we:return M([z(r,{value:l(r.value,"@","@"+u)})],a);case oe:if(r.length)return je(r.props,function(i){switch(Ye(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return M([z(r,{props:[l(i,/:(read-\w+)/,":"+K+"$1")]})],a);case"::placeholder":return M([z(r,{props:[l(i,/:(plac\w+)/,":"+u+"input-$1")]}),z(r,{props:[l(i,/:(plac\w+)/,":"+K+"$1")]}),z(r,{props:[l(i,/:(plac\w+)/,k+"input-$1")]})],a)}return""})}},dr=[lr],hr=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(c){var m=c.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(c),c.setAttribute("data-s",""))})}var a=r.stylisPlugins||dr,i={},s,o=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(c){for(var m=c.getAttribute("data-emotion").split(" "),g=1;g<m.length;g++)i[m[g]]=!0;o.push(c)});var f,p=[fr,ur];{var d,h=[nr,ir(function(c){d.insert(c)})],E=ar(p.concat(a,h)),T=function(m){return M(rr(m),E)};f=function(m,g,v,C){d=v,T(m?m+"{"+g.styles+"}":g.styles),C&&(x.inserted[g.name]=!0)}}var x={key:t,sheet:new He({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:f};return x.sheet.hydrate(o),x};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ae.apply(null,arguments)}var pr=!0;function Te(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var ue=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||pr===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},Re=function(r,t,n){ue(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function mr(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var gr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yr=/[A-Z]|^ms/g,vr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Oe=function(r){return r.charCodeAt(1)===45},me=function(r){return r!=null&&typeof r!="boolean"},re=Ae(function(e){return Oe(e)?e:e.replace(yr,"-$&").toLowerCase()}),ge=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(vr,function(n,a,i){return $={name:a,styles:i,next:$},a})}return gr[r]!==1&&!Oe(r)&&typeof t=="number"&&t!==0?t+"px":t};function U(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return $={name:a.name,styles:a.styles,next:$},a.name;var i=t;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)$={name:s.name,styles:s.styles,next:$},s=s.next;var o=i.styles+";";return o}return br(e,r,t)}case"function":{if(e!==void 0){var f=$,p=t(e);return $=f,U(e,r,p)}break}}var d=t;if(r==null)return d;var h=r[d];return h!==void 0?h:d}function br(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=U(e,r,t[a])+";";else for(var i in t){var s=t[i];if(typeof s!="object"){var o=s;r!=null&&r[o]!==void 0?n+=i+"{"+r[o]+"}":me(o)&&(n+=re(i)+":"+ge(i,o)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(r==null||r[s[0]]===void 0))for(var f=0;f<s.length;f++)me(s[f])&&(n+=re(i)+":"+ge(i,s[f])+";");else{var p=U(e,r,s);switch(i){case"animation":case"animationName":{n+=re(i)+":"+p+";";break}default:n+=i+"{"+p+"}"}}}return n}var ye=/label:\s*([^\s;{]+)\s*(;|$)/g,$;function _e(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";$=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=U(t,r,i);else{var s=i;a+=s[0]}for(var o=1;o<e.length;o++)if(a+=U(t,r,e[o]),n){var f=i;a+=f[o]}ye.lastIndex=0;for(var p="",d;(d=ye.exec(a))!==null;)p+="-"+d[1];var h=mr(a)+p;return{name:h,styles:a,next:$}}const ie=await Z("react");var xr=function(r){return r()},$e=ie.useInsertionEffect?ie.useInsertionEffect:!1,Ie=$e||xr;$e||ie.useLayoutEffect;const N=await Z("react"),{useContext:wr,forwardRef:kr}=await Z("react");var Ne=N.createContext(typeof HTMLElement<"u"?hr({key:"css"}):null);Ne.Provider;var Me=function(r){return kr(function(t,n){var a=wr(Ne);return r(t,a,n)})},Fe=N.createContext({}),Le={}.hasOwnProperty,se="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_r=function(r,t){var n={};for(var a in t)Le.call(t,a)&&(n[a]=t[a]);return n[se]=r,n},Sr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Cr=Me(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var a=e[se],i=[n],s="";typeof e.className=="string"?s=Te(r.registered,i,e.className):e.className!=null&&(s=e.className+" ");var o=_e(i,void 0,N.useContext(Fe));s+=r.key+"-"+o.name;var f={};for(var p in e)Le.call(e,p)&&p!=="css"&&p!==se&&(f[p]=e[p]);return f.className=s,t&&(f.ref=t),N.createElement(N.Fragment,null,N.createElement(Sr,{cache:r,serialized:o,isStringTag:typeof a=="string"}),N.createElement(a,f))}),$r=Cr,Pr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ar=Ae(function(e){return Pr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const W=await Z("react");var Er=Ar,Tr=function(r){return r!=="theme"},ve=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Er:Tr},be=function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},Rr=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return ue(t,n,a),Ie(function(){return Re(t,n,a)}),null},Ir=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,i,s;t!==void 0&&(i=t.label,s=t.target);var o=be(r,t,n),f=o||ve(a),p=!f("as");return function(){var d=arguments,h=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var E=d[0];h.push(E[0]);for(var T=d.length,x=1;x<T;x++)h.push(d[x],E[x])}var c=Me(function(m,g,v){var C=p&&m.as||a,R="",O=[],S=m;if(m.theme==null){S={};for(var y in m)S[y]=m[y];S.theme=W.useContext(Fe)}typeof m.className=="string"?R=Te(g.registered,O,m.className):m.className!=null&&(R=m.className+" ");var le=_e(h.concat(O),g.registered,S);R+=g.key+"-"+le.name,s!==void 0&&(R+=" "+s);var ze=p&&o===void 0?ve(C):f,B={};for(var q in m)p&&q==="as"||ze(q)&&(B[q]=m[q]);return B.className=R,v&&(B.ref=v),W.createElement(W.Fragment,null,W.createElement(Rr,{cache:g,serialized:le,isStringTag:typeof C=="string"}),W.createElement(C,B))});return c.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",c.defaultProps=r.defaultProps,c.__emotion_real=c,c.__emotion_base=a,c.__emotion_styles=h,c.__emotion_forwardProp=o,Object.defineProperty(c,"toString",{value:function(){return"."+s}}),c.withComponent=function(m,g){var v=e(m,ae({},t,g,{shouldForwardProp:be(c,g,!0)}));return v.apply(void 0,h)},c}};export{$r as E,ae as _,_r as a,Ir as c,Le as h,_e as s};
@@ -1,3 +1,3 @@
1
- import{l as c}from"./__federation_expose_App.MoFBQejr.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./__federation_expose_App.BtK24QCB.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(a,t),i=_(r,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const b={conf:l(a),language:_(a,k)},x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,p)},E={conf:l(r),language:_(r,p)},B={conf:g(),language:A(k)},D={conf:g(),language:A(p)};export{$ as TagAngleInterpolationBracket,b as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,B as TagAutoInterpolationDollar,E as TagBracketInterpolationBracket,x as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{l as e}from"./__federation_expose_App.MoFBQejr.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
1
+ import{l as e}from"./__federation_expose_App.BtK24QCB.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],a={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{a as conf,m as language};
@@ -1 +1 @@
1
- import{l as e}from"./__federation_expose_App.MoFBQejr.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};
1
+ import{l as e}from"./__federation_expose_App.BtK24QCB.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},r={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{i as conf,r as language};
@@ -1 +1 @@
1
- import{a as D,l as t}from"./__federation_expose_App.MoFBQejr.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as _,C as R}from"./lspLanguageFeatures.qBXuaIUh.js";import{a as E,e as H,d as b,R as y,i as T,j as U,t as x,k as M}from"./lspLanguageFeatures.qBXuaIUh.js";const I=120*1e3;class f{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/assets/html.worker-C8KWqYYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...s)=>n.getLanguageServiceWorker(...s);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function A(i){const n=[],e=[],r=new f(i);n.push(r);const s=(...o)=>r.getLanguageServiceWorker(...o);function P(){const{languageId:o,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(o,new v(s))),a.hovers&&e.push(t.registerHoverProvider(o,new d(s))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(o,new l(s))),a.links&&e.push(t.registerLinkProvider(o,new c(s))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(o,new h(s))),a.rename&&e.push(t.registerRenameProvider(o,new p(s))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(o,new u(s))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(o,new m(s))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(o,new w(s))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(o,new _(s)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,E as DefinitionAdapter,H as DiagnosticsAdapter,b as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,y as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,T as fromPosition,U as fromRange,A as setupMode,W as setupMode1,x as toRange,M as toTextEdit};
1
+ import{a as D,l as t}from"./__federation_expose_App.BtK24QCB.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as _,C as R}from"./lspLanguageFeatures.DgJgA_Mi.js";import{a as E,e as H,d as b,R as y,i as T,j as U,t as x,k as M}from"./lspLanguageFeatures.DgJgA_Mi.js";const I=120*1e3;class f{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL("/assets/html.worker-C8KWqYYR.js",import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new f(i),e=(...s)=>n.getLanguageServiceWorker(...s);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new _(e)))}function A(i){const n=[],e=[],r=new f(i);n.push(r);const s=(...o)=>r.getLanguageServiceWorker(...o);function P(){const{languageId:o,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(o,new v(s))),a.hovers&&e.push(t.registerHoverProvider(o,new d(s))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(o,new l(s))),a.links&&e.push(t.registerLinkProvider(o,new c(s))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(o,new h(s))),a.rename&&e.push(t.registerRenameProvider(o,new p(s))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(o,new u(s))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(o,new m(s))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(o,new w(s))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(o,new _(s)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,E as DefinitionAdapter,H as DiagnosticsAdapter,b as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,_ as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,y as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,f as WorkerManager,T as fromPosition,U as fromRange,A as setupMode,W as setupMode1,x as toRange,M as toTextEdit};
@@ -1 +1 @@
1
- import{importShared as n}from"./__federation_fn_import.ByOnqCI5.js";import{j as s}from"./RbLocalizationProvider.929YVAAi.js";import d,{c as f}from"./__federation_expose_App.MoFBQejr.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function c(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=c(e);fetch(e.href,r)}})();const{StrictMode:l}=await n("react");f.createRoot(document.getElementById("root")).render(s(l,{children:s(d,{})}));
1
+ import{importShared as n}from"./__federation_fn_import.DdkEuT6t.js";import{j as s}from"./RbLocalizationProvider.CMEaJz_8.js";import d,{c as f}from"./__federation_expose_App.BtK24QCB.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function c(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(e){if(e.ep)return;e.ep=!0;const r=c(e);fetch(e.href,r)}})();const{StrictMode:l}=await n("react");f.createRoot(document.getElementById("root")).render(s(l,{children:s(d,{})}));
@@ -0,0 +1 @@
1
+ import{j as g,cx as z,U as F,a$ as K,x as _,bg as Q,cV as Y,eo as E,g7 as X,dg as P,el as U,cQ as Z,gI as u}from"./RbLocalizationProvider.CMEaJz_8.js";import{importShared as k}from"./__federation_fn_import.DdkEuT6t.js";const x=()=>!0,L=()=>typeof window<"u"&&window.__RB_ROBOT_HOST__||void 0||void 0,ke=()=>x()&&!!L(),J=()=>x()&&!L(),Le=(e,t)=>e?.find(s=>s.point===t),ye=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]},_e=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]||e?.en},Pe=e=>e.toLocaleLowerCase()==="rainbowrobotics";var y=(e=>(e[e.SUPERVISOR=0]="SUPERVISOR",e[e.ADMIN=1]="ADMIN",e[e.MANAGER=2]="MANAGER",e[e.OPERATOR=3]="OPERATOR",e[e.USER=4]="USER",e[e.GUEST=999999]="GUEST",e))(y||{});const Ue={SUPERVISOR:0,ADMIN:1,MANAGER:2,OPERATOR:3,USER:4,GUEST:999999};function v(e){try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(atob(t))}catch{return null}}function w(e){if(!e)return null;const t=v(e);return t?t.exp*1e3:null}function O(){const e=c();return e?v(e)?.sid??"":""}const o={isAutoLogin:"isAutoLogin",accessToken:"access_token",refreshToken:"refresh_token"};function A(){localStorage.removeItem(o.accessToken),localStorage.removeItem(o.refreshToken),sessionStorage.removeItem(o.accessToken),sessionStorage.removeItem(o.refreshToken)}function h(){return localStorage.getItem(o.isAutoLogin)==="true"}function we(e){localStorage.setItem(o.isAutoLogin,e?"true":"false")}function c(){return h()?localStorage.getItem(o.accessToken):sessionStorage.getItem(o.accessToken)}function p(){return h()?localStorage.getItem(o.refreshToken):sessionStorage.getItem(o.refreshToken)}function ee(e,t,s){s?(localStorage.setItem(o.isAutoLogin,"true"),localStorage.setItem(o.accessToken,e),localStorage.setItem(o.refreshToken,t)):(localStorage.setItem(o.isAutoLogin,"false"),sessionStorage.setItem(o.accessToken,e),sessionStorage.setItem(o.refreshToken,t))}const{useQuery:te}=await k("@tanstack/react-query"),N="/auth/me",se=[N],ne=()=>V.get(N,{}),oe=({enabled:e})=>te({queryKey:se,queryFn:ne,enabled:e}),{createContext:re,useCallback:ae,useContext:ie,useEffect:C,useState:ce}=await k("react"),ue={id:"GUEST",username:"게스트",role:y.SUPERVISOR,sid:""},G=re({isLoggedIn:!1,setLoggedIn:()=>{}});let R=null;function $(e){R?.(e)}function be({children:e}){const[t,s]=ce(!!c()),n=ae(r=>{s(r)},[]);return C(()=>(R=n,()=>{R=null}),[n]),g(G.Provider,{value:{isLoggedIn:t,setLoggedIn:n},children:e})}function le(){const{isLoggedIn:e,setLoggedIn:t}=ie(G),s=c(),n=p(),r=h(),{data:a}=oe({enabled:e}),i=a?{id:a.user_id,username:a.username??a.user_id,role:a.role??y.GUEST,sid:O()}:ue;return C(()=>{const d=!!s&&!!n;e!==d&&t(d)},[e,s,n,t]),{isLoggedIn:e,setLoggedIn:t,user:i,accessToken:s,refreshToken:n,isAutoLogin:r,isAtLeast:d=>i.role<=d,hasRole:d=>i.role===d}}const fe=({className:e,open:t,onOpenChange:s,onConfirm:n})=>{const{t:r}=z(),a=()=>{s(!1),n()};return g(Q,{className:_(e,"w-100 max-w-full border-none p-0"),enableDimClose:!1,hideCloseButton:!0,open:t,onOpenChange:s,header:{title:r("login.modal.title.sessionExpired")},footer:g(F,{className:_("w-full gap-1","[&_button]:h-8 [&_button]:w-20"),justifyContent:"end",children:g(K,{variant:"brand",size:"sm",onClick:a,children:r("login.modal.button.sessionExpiredConfirm")})}),children:g("div",{className:"px-4 pt-3 pb-0",children:g("span",{className:"text-fg-default typo-compact-sm-normal",children:r("login.modal.desc.sessionExpired")})})})},Me="/muscat/app/log",T="/muscat/app/login",{useMutation:de}=await k("@tanstack/react-query"),ge="/logout",D=async e=>V.post(ge,{sid:e}),xe=()=>{const{setLoggedIn:e,user:t}=le(),s=Y();return de({mutationFn:async()=>{if(t?.sid)return D(t.sid)},onSettled:()=>{A(),e(!1),s(T)}})},me=`http://${window.location.hostname}:undefined`,he=1e4,pe=1e4,b=5e3;let j=null,H=null;function ve(e){j=e}function Oe(e){H=e}let I=!1,W=0;function Se(){return!!(I||Date.now()-W<he)}const M=()=>{if(window.location.pathname===T)return;const e=async()=>{const t=O();if(t)try{await D(t)}catch{}A(),$(!1),H?.(T)};X.openModal({component:fe,props:{onConfirm:e,onClose:e},options:{componentName:"SessionExpiredModal"}})};async function B(){if(Se())return null;const e=p();if(!e)return M(),null;I=!0;try{const t=await E.post(`${me}/common/refresh`,{refresh_token:e}),{access_token:s,refresh_token:n}=t.data;return ee(s,n,h()),$(!0),j?.("auth",{token:s,autoLogin:h()?"true":"false"}),W=Date.now(),S(),s}catch(t){console.log("Token refresh failed:",t);const s=E.isAxiosError(t)?t.response?.status:null;if(s===403||s===401||s===409)return A(),M(),null;throw t}finally{I=!1}}let m=null;function q(){m&&(clearTimeout(m),m=null)}function S(){q();const e=w(c());if(!e)return;const t=Math.max(e-Date.now(),0),s=Math.min(Math.max(e-Date.now()-pe,b),t);m=setTimeout(async()=>{try{if(!p())return;!await B()&&p()&&S()}catch{if(c()){const n=w(c());if(n&&n>Date.now()){const r=Math.min(b*2,n-Date.now());r>0&&(m=setTimeout(S,r))}}}},s)}window.addEventListener("storage",e=>{e.key!==o.accessToken&&e.key!==o.refreshToken||(c()&&p()?S():q())});const l={onRequest({config:e}){if(e.url?.endsWith("/login")||e.url?.endsWith("/logout")||e.url?.endsWith("/refresh")||/^https?:\/\//i.test(e.url??"")&&!e.url?.startsWith(e.baseURL??""))return e;const n=c();return n&&e.headers&&(e.headers.Authorization=`Bearer ${n}`),e},onResponse({response:e}){return e?.data},async onResponseError({error:e}){const t=e.config;if(!t)return Promise.reject(e);if(t.url?.endsWith("/login")||t.url?.endsWith("/logout")||t.url?.endsWith("/refresh"))return A(),Promise.reject(e);if(e.response?.status===401&&!t._retry){t._retry=!0;try{const i=await B();return i?(t.headers.Authorization=`Bearer ${i}`,E(t)):Promise.reject(e)}catch(i){return Promise.reject(i)}}const n=e?.response?.data;P("useSimulator")!=="false"&&P("useSimulator");const r=typeof n=="object"&&"message"in n&&typeof n.message=="string"?n.message:U("common.toast.apiError.content"),a=e.status??e.response?.status;return[502,504].includes(a)||e.code==="ERR_NETWORK"||J()||t.skipErrorToast||Z.openToast({title:e.config.url?`[API Error] ${e.config.url}`:U("common.toast.apiError.title"),content:r,type:"basic",variant:"warning"}),Promise.reject(e)}},Ae=3e3,f=`http://${L()||window.location.hostname}:${Ae}`,V=u({baseURL:`${f}/common`},l),Ne=u({baseURL:`${f}/manipulate`},l),Ce=u({baseURL:`${f}/log`},l),Ge=u({baseURL:`${f}/amr`},l),$e=u({baseURL:`${f}/rby1`},l);u({baseURL:`${f}/deploy`},l);const De=u({baseURL:`${f}/host`},l);export{De as A,be as B,c as C,y as J,Me as L,f as M,Ue as R,ye as a,Ge as b,V as c,_e as d,T as e,Le as f,L as g,xe as h,x as i,ve as j,B as k,Ce as l,Ne as m,q as n,Oe as o,se as p,ke as q,$e as r,Pe as s,ee as t,le as u,S as v,h as w,we as x,A as y,D as z};