sunpeak 0.20.42 → 0.20.49

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 (74) hide show
  1. package/bin/commands/inspect.mjs +142 -40
  2. package/bin/commands/test-init.mjs +2 -0
  3. package/bin/lib/eval/eval-runner.mjs +4 -0
  4. package/bin/lib/eval/model-registry.mjs +3 -6
  5. package/bin/lib/inspect/inspect-config.d.mts +8 -0
  6. package/bin/lib/inspect/inspect-config.mjs +9 -0
  7. package/bin/lib/inspect/inspect-server.d.mts +2 -0
  8. package/bin/lib/test/test-config.d.mts +6 -0
  9. package/bin/lib/test/test-config.mjs +11 -0
  10. package/bin/sunpeak.js +1 -0
  11. package/dist/chatgpt/index.cjs +1 -1
  12. package/dist/chatgpt/index.js +1 -1
  13. package/dist/claude/index.cjs +1 -1
  14. package/dist/claude/index.js +1 -1
  15. package/dist/hooks/tool-data-store.d.ts +26 -0
  16. package/dist/hooks/use-tool-data.d.ts +3 -9
  17. package/dist/host/chatgpt/index.cjs +1 -1
  18. package/dist/host/chatgpt/index.js +1 -1
  19. package/dist/index.cjs +36 -22
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.js +36 -22
  22. package/dist/index.js.map +1 -1
  23. package/dist/inspector/index.cjs +1 -1
  24. package/dist/inspector/index.js +1 -1
  25. package/dist/{inspector-DOmiG64-.cjs → inspector-BGnxpdOn.cjs} +46 -20
  26. package/dist/inspector-BGnxpdOn.cjs.map +1 -0
  27. package/dist/{inspector-C6n8zap3.js → inspector-DvduUVNG.js} +46 -20
  28. package/dist/inspector-DvduUVNG.js.map +1 -0
  29. package/dist/lib/utils.d.ts +8 -7
  30. package/dist/mcp/index.cjs +6 -4
  31. package/dist/mcp/index.cjs.map +1 -1
  32. package/dist/mcp/index.js +6 -4
  33. package/dist/mcp/index.js.map +1 -1
  34. package/dist/mcp/server.d.ts +12 -1
  35. package/dist/{use-app-Duar2Ipu.js → use-app-CmrLc3wz.js} +63 -2
  36. package/dist/use-app-CmrLc3wz.js.map +1 -0
  37. package/dist/{use-app-DUdnDLP5.cjs → use-app-fizR-zbu.cjs} +63 -2
  38. package/dist/use-app-fizR-zbu.cjs.map +1 -0
  39. package/package.json +9 -9
  40. package/template/dist/albums/albums.html +2 -2
  41. package/template/dist/albums/albums.json +1 -1
  42. package/template/dist/carousel/carousel.html +2 -2
  43. package/template/dist/carousel/carousel.json +1 -1
  44. package/template/dist/map/map.html +3 -3
  45. package/template/dist/map/map.json +1 -1
  46. package/template/dist/review/review.html +2 -2
  47. package/template/dist/review/review.json +1 -1
  48. package/template/node_modules/.bin/tsc +2 -2
  49. package/template/node_modules/.bin/tsserver +2 -2
  50. package/template/node_modules/.bin/vitest +2 -2
  51. package/template/node_modules/.vite/deps/_metadata.json +3 -3
  52. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +1 -1
  53. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
  54. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +1 -1
  55. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
  56. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +1 -1
  57. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
  58. package/template/node_modules/.vite-mcp/deps/_metadata.json +23 -23
  59. package/template/node_modules/.vite-mcp/deps/vitest.js +7 -7
  60. package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
  61. package/template/package.json +1 -1
  62. package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-chatgpt-linux.png +0 -0
  63. package/template/tests/e2e/visual.spec.ts-snapshots/albums-dark-claude-linux.png +0 -0
  64. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-darwin.png +0 -0
  65. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-linux.png +0 -0
  66. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
  67. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-linux.png +0 -0
  68. package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-chatgpt-linux.png +0 -0
  69. package/template/tests/e2e/visual.spec.ts-snapshots/albums-light-claude-linux.png +0 -0
  70. package/template/tsconfig.json +2 -0
  71. package/dist/inspector-C6n8zap3.js.map +0 -1
  72. package/dist/inspector-DOmiG64-.cjs.map +0 -1
  73. package/dist/use-app-DUdnDLP5.cjs.map +0 -1
  74. package/dist/use-app-Duar2Ipu.js.map +0 -1
@@ -18,5 +18,5 @@
18
18
  }
19
19
  },
20
20
  "name": "map",
21
- "uri": "ui://map-mpr4phm7"
21
+ "uri": "ui://map-mpy8qdy0"
22
22
  }
@@ -125,8 +125,8 @@ Boolean requesting whether a visible border and background is provided by the ho
125
125
  - omitted: host decides border`)}),W({method:q(`ui/request-display-mode`),params:W({mode:Mv.describe(`The display mode being requested.`)})});var Jv=W({mode:Mv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Yv=G([q(`model`),q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);W({resourceUri:V().optional(),visibility:U(Yv).optional().describe(`Who can access this tool. Default: ["model", "app"]
126
126
  - "model": Tool visible to and callable by the agent
127
127
  - "app": Tool callable by the app from this server only`),csp:ap().optional(),permissions:ap().optional()}),W({mimeTypes:U(V()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),W({method:q(`ui/download-file`),params:W({contents:U(G([w_,T_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),W({method:q(`ui/message`),params:W({role:q(`user`).describe(`Message role, currently only "user" is supported.`),content:U(E_).describe(`Message content blocks (text, image, etc.).`)})}),W({method:q(`ui/notifications/sandbox-resource-ready`),params:W({html:V().describe(`HTML content to load into the inner iframe.`),sandbox:V().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Lv.optional().describe(`CSP configuration from resource metadata.`),permissions:Rv.optional().describe(`Sandbox permissions from resource metadata.`)})});var Xv=W({method:q(`ui/notifications/tool-result`),params:F_.describe(`Standard MCP tool execution result.`)}),Zv=W({toolInfo:W({id:eg.optional().describe(`JSON-RPC id of the tools/call request.`),tool:M_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:jv.optional().describe(`Current color theme preference.`),styles:Uv.optional().describe(`Style configuration for theming the app.`),displayMode:Mv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:U(Mv).optional().describe(`Display modes the host supports.`),containerDimensions:G([W({height:H().describe(`Fixed container height in pixels.`)}),W({maxHeight:G([H(),tp()]).optional().describe(`Maximum container height in pixels.`)})]).and(G([W({width:H().describe(`Fixed container width in pixels.`)}),W({maxWidth:G([H(),tp()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
128
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:V().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:V().optional().describe(`User's timezone in IANA format.`),userAgent:V().optional().describe(`Host application identifier.`),platform:G([q(`web`),q(`desktop`),q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:W({touch:Xf().optional().describe(`Whether the device supports touch input.`),hover:Xf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:W({top:H().describe(`Top safe area inset in pixels.`),right:H().describe(`Right safe area inset in pixels.`),bottom:H().describe(`Bottom safe area inset in pixels.`),left:H().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Qv=W({method:q(`ui/notifications/host-context-changed`),params:Zv.describe(`Partial context update containing only changed fields.`)});W({method:q(`ui/update-model-context`),params:W({content:U(E_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:K(V(),ip().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),W({method:q(`ui/initialize`),params:W({appInfo:gg.describe(`App identification (name and version).`),appCapabilities:qv.describe(`Features and capabilities this app provides.`),protocolVersion:V().describe(`Protocol version this app supports.`)})});var $v=W({protocolVersion:V().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:gg.describe(`Host application identification and version.`),hostCapabilities:Kv.describe(`Features and capabilities provided by the host.`),hostContext:Zv.describe(`Rich context about the host environment.`)}).passthrough(),ey={target:`draft-2020-12`};async function ty(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](ey);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(zh(),Lh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function ny(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function ry(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function iy(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function ay(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var oy=class e extends Ov{_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),x(this,`_appInfo`,void 0),x(this,`_capabilities`,void 0),x(this,`options`,void 0),x(this,`_hostCapabilities`,void 0),x(this,`_hostInfo`,void 0),x(this,`_hostContext`,void 0),x(this,`_registeredTools`,{}),x(this,`_initializedSent`,!1),x(this,`eventSchemas`,{toolinput:zv,toolinputpartial:Bv,toolresult:Xv,toolcancelled:Vv,hostcontextchanged:Qv}),x(this,`_everHadListener`,new Set),x(this,`_toolHandlersInitialized`,!1),x(this,`_onteardown`,void 0),x(this,`_oncalltool`,void 0),x(this,`_onlisttools`,void 0),x(this,`sendOpenLink`,this.openLink),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||C({jitless:!0}),this.setRequestHandler(Eg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Dv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await ny(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await ny(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await ty(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await ty(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Wv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(L_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(N_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},F_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},o_,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},e_,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?$_:Q_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Iv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},dg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Pv,t)}downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Fv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Jv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Av(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:kv}},$v,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};x(oy,`ONE_SHOT_EVENTS`,new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]));var sy=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),cy=s(((e,t)=>{t.exports=sy()})),ly=u(m(),1),X=cy(),uy={app:null,isConnected:!1,error:null},dy=(0,ly.createContext)(uy),fy=null,py=null,my=5e3,hy=3,gy=500;function _y(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Connection timed out`)),t);e.then(e=>{clearTimeout(i),n(e)},e=>{clearTimeout(i),r(e)})})}async function vy(e,t,n){let r=null;for(let i=0;i<=hy;i++){if(i>0){let e=gy*2**(i-1);await new Promise(t=>setTimeout(t,e))}let a=null;try{a=new Av(window.parent,window.parent);let r=new oy(e,t);return n?.(r),await _y(r.connect(a),my),r}catch(e){if(a)try{await a.close()}catch{}r=e instanceof Error?e:Error(`Connection failed`),i<hy&&console.warn(`[sunpeak] Connection attempt ${i+1}/4 failed, retrying...`,r.message)}}throw console.error(`[sunpeak] All connection attempts failed. Try refreshing the page or opening a new chat.
129
- Troubleshooting: https://sunpeak.ai/docs/app-framework/guides/troubleshooting`),r??Error(`Failed to connect`)}function yy({appInfo:e,capabilities:t,onAppCreated:n,children:r}){let[i,a]=(0,ly.useState)(()=>fy?{app:fy,isConnected:!0,error:null}:uy);return(0,ly.useEffect)(()=>{let r=!1;return fy?(a({app:fy,isConnected:!0,error:null}),()=>{r=!0}):(py||(py=vy(e,t??{},n)),py.then(e=>{fy=e,r||a({app:e,isConnected:!0,error:null})},e=>{py=null,r||a({app:null,isConnected:!1,error:e instanceof Error?e:Error(`Failed to connect`)})}),()=>{r=!0})},[]),(0,X.jsx)(dy.Provider,{value:i,children:r})}function by(){return(0,ly.useContext)(dy).app}var xy={"--color-background-primary":`light-dark(#ffffff, #1a1a1a)`,"--color-background-secondary":`light-dark(#f5f5f5, #2d2d2d)`,"--color-background-tertiary":`light-dark(#e5e5e5, #404040)`,"--color-background-inverse":`light-dark(#1a1a1a, #ffffff)`,"--color-background-ghost":`light-dark(rgba(255,255,255,0), rgba(26,26,26,0))`,"--color-background-info":`light-dark(#eff6ff, #1e3a5f)`,"--color-background-danger":`light-dark(#fef2f2, #7f1d1d)`,"--color-background-success":`light-dark(#f0fdf4, #14532d)`,"--color-background-warning":`light-dark(#fefce8, #713f12)`,"--color-background-disabled":`light-dark(rgba(255,255,255,0.5), rgba(26,26,26,0.5))`,"--color-text-primary":`light-dark(#1f2937, #f3f4f6)`,"--color-text-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-text-tertiary":`light-dark(#9ca3af, #6b7280)`,"--color-text-inverse":`light-dark(#f3f4f6, #1f2937)`,"--color-text-ghost":`light-dark(rgba(107,114,128,0.5), rgba(156,163,175,0.5))`,"--color-text-info":`light-dark(#1d4ed8, #60a5fa)`,"--color-text-danger":`light-dark(#b91c1c, #f87171)`,"--color-text-success":`light-dark(#15803d, #4ade80)`,"--color-text-warning":`light-dark(#a16207, #fbbf24)`,"--color-text-disabled":`light-dark(rgba(31,41,55,0.5), rgba(243,244,246,0.5))`,"--color-border-primary":`light-dark(#e5e7eb, #404040)`,"--color-border-secondary":`light-dark(#d1d5db, #525252)`,"--color-border-tertiary":`light-dark(#f3f4f6, #374151)`,"--color-border-inverse":`light-dark(rgba(255,255,255,0.3), rgba(0,0,0,0.3))`,"--color-border-ghost":`light-dark(rgba(229,231,235,0), rgba(64,64,64,0))`,"--color-border-info":`light-dark(#93c5fd, #1e40af)`,"--color-border-danger":`light-dark(#fca5a5, #991b1b)`,"--color-border-success":`light-dark(#86efac, #166534)`,"--color-border-warning":`light-dark(#fde047, #854d0e)`,"--color-border-disabled":`light-dark(rgba(229,231,235,0.5), rgba(64,64,64,0.5))`,"--color-ring-primary":`light-dark(#3b82f6, #60a5fa)`,"--color-ring-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-ring-inverse":`light-dark(#ffffff, #1f2937)`,"--color-ring-info":`light-dark(#2563eb, #3b82f6)`,"--color-ring-danger":`light-dark(#dc2626, #ef4444)`,"--color-ring-success":`light-dark(#16a34a, #22c55e)`,"--color-ring-warning":`light-dark(#ca8a04, #eab308)`,"--font-sans":`system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,"--font-mono":`ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace`,"--font-weight-normal":`400`,"--font-weight-medium":`500`,"--font-weight-semibold":`600`,"--font-weight-bold":`700`,"--font-text-xs-size":`0.75rem`,"--font-text-sm-size":`0.875rem`,"--font-text-md-size":`1rem`,"--font-text-lg-size":`1.125rem`,"--font-heading-xs-size":`0.75rem`,"--font-heading-sm-size":`0.875rem`,"--font-heading-md-size":`1rem`,"--font-heading-lg-size":`1.25rem`,"--font-heading-xl-size":`1.5rem`,"--font-heading-2xl-size":`1.875rem`,"--font-heading-3xl-size":`2.25rem`,"--font-text-xs-line-height":`1.4`,"--font-text-sm-line-height":`1.4`,"--font-text-md-line-height":`1.5`,"--font-text-lg-line-height":`1.5`,"--font-heading-xs-line-height":`1.4`,"--font-heading-sm-line-height":`1.4`,"--font-heading-md-line-height":`1.4`,"--font-heading-lg-line-height":`1.3`,"--font-heading-xl-line-height":`1.25`,"--font-heading-2xl-line-height":`1.2`,"--font-heading-3xl-line-height":`1.1`,"--border-radius-xs":`2px`,"--border-radius-sm":`4px`,"--border-radius-md":`6px`,"--border-radius-lg":`8px`,"--border-radius-xl":`12px`,"--border-radius-full":`9999px`,"--border-width-regular":`1px`,"--shadow-hairline":`0 1px 2px 0 rgba(0, 0, 0, 0.05)`,"--shadow-sm":`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`,"--shadow-md":`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,"--shadow-lg":`0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)`},Sy=new WeakMap;function Cy(e){iy(xy),e&&iy(e)}function wy(e){let t=Sy.get(e);if(!t){t=new Set,Sy.set(e,t);let n=e.getHostContext();n?.theme&&ry(n.theme),Cy(n?.styles?.variables),n?.styles?.css?.fonts&&ay(n.styles.css.fonts);let r=null;e.onhostcontextchanged=()=>{let n=e.getHostContext();n?.theme&&ry(n.theme),Cy(n?.styles?.variables),n?.styles?.css?.fonts&&ay(n.styles.css.fonts),r&&clearTimeout(r),r=setTimeout(()=>{r=null;for(let e of t)e()},50)}}return t}function Ty(){let e=by(),t=(0,ly.useCallback)(t=>{if(!e)return()=>{};let n=wy(e);return n.add(t),()=>{n.delete(t)}},[e]),n=(0,ly.useCallback)(()=>e?.getHostContext()??null,[e]);return(0,ly.useSyncExternalStore)(t,n,n)}var Ey=new WeakMap;function Dy(e,t,n){let r=Ey.get(e);if(!r){r={data:{input:t??null,inputPartial:null,output:n??null,isError:!1,isLoading:!n,isCancelled:!1,cancelReason:null},listeners:new Set},Ey.set(e,r);let i=()=>{for(let e of r.listeners)e()};e.ontoolinput=e=>{r.data={...r.data,input:e.arguments,inputPartial:null},i()},e.ontoolinputpartial=e=>{r.data={...r.data,inputPartial:e.arguments},i()},e.ontoolresult=e=>{r.data={...r.data,output:e.structuredContent??e.content,isError:e.isError??!1,isLoading:!1},i()},e.ontoolcancelled=e=>{r.data={...r.data,isCancelled:!0,cancelReason:e.reason??null,isLoading:!1},i()}}return r}function Oy(e,t){let n=by(),r=(0,ly.useRef)(e),i=(0,ly.useRef)(t),a=(0,ly.useMemo)(()=>({input:e??null,inputPartial:null,output:t??null,isError:!1,isLoading:!t,isCancelled:!1,cancelReason:null}),[]),o=(0,ly.useCallback)(e=>{if(!n)return()=>{};let t=Dy(n,r.current,i.current);return t.listeners.add(e),()=>{t.listeners.delete(e)}},[n]),s=(0,ly.useCallback)(()=>n?Dy(n,r.current,i.current).data:a,[n,a]);return(0,ly.useSyncExternalStore)(o,s,s)}function ky(){return Ty()?.deviceCapabilities??{}}function Ay(){return Ty()?.displayMode??`inline`}function jy(){return Ty()?.locale??`en-US`}var My={top:0,bottom:0,left:0,right:0};function Ny(){return Ty()?.safeAreaInsets??My}var Py=Intl.DateTimeFormat().resolvedOptions().timeZone;function Fy(){return Ty()?.timeZone??Py}function Iy(){return Ty()?.containerDimensions??null}var Ly=(0,ly.forwardRef)(function({children:e,style:t,...n},r){let i=Ny(),a=Iy(),o=Ay()===`fullscreen`?`100dvh`:void 0;return(0,X.jsx)(`div`,{ref:r,style:{paddingTop:i.top||void 0,paddingBottom:i.bottom||void 0,paddingLeft:i.left||void 0,paddingRight:i.right||void 0,height:o,maxHeight:a?.maxHeight,overflow:a?.maxHeight==null?void 0:`hidden`,width:a?.width,maxWidth:a?.maxWidth,...t},...n,children:e})});function Ry(){let e=by();return(0,ly.useCallback)(async t=>{if(!e){console.warn(`[useCallServerTool] App not connected`);return}return e.callServerTool(t)},[e])}function zy(){let e=by(),t=Ty();return{requestDisplayMode:(0,ly.useCallback)(async t=>{if(!e){console.warn(`[useRequestDisplayMode] App not connected`);return}await e.requestDisplayMode({mode:t})},[e]),availableModes:t?.availableDisplayModes}}function By(){let e=by();return(0,ly.useCallback)(async t=>{e&&await e.updateModelContext(t)},[e])}function Vy(){let e=by();return{hostVersion:e?.getHostVersion(),hostCapabilities:e?.getHostCapabilities()}}function Hy(e){let t=by(),[n,r]=(0,ly.useState)(e),i=(0,ly.useRef)(null);return(0,ly.useEffect)(()=>{if(typeof window>`u`)return;let e=e=>{if(e.source!==window.parent)return;let t=e.data;t&&typeof t==`object`&&t.method===`sunpeak/injectState`&&t.params?.state!=null&&r(t.params.state)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,ly.useEffect)(()=>{if(i.current!=null&&t){let e=i.current;i.current=null,t.updateModelContext({structuredContent:e}).catch(()=>{})}}),[n,(0,ly.useCallback)(e=>{r(t=>{let n=typeof e==`function`?e(t):e;return i.current=n,n})},[])]}function Uy(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Uy(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Wy(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Uy(e))&&(r&&(r+=` `),r+=t);return r}var Gy=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ky=(e,t)=>({classGroupId:e,validator:t}),qy=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Jy=`-`,Yy=[],Xy=`arbitrary..`,Zy=e=>{let t=eb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return $y(e);let n=e.split(Jy);return Qy(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Gy(i,t):t:i||Yy}return n[e]||Yy}}},Qy=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Qy(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Jy):e.slice(t).join(Jy),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},$y=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Xy+r:void 0})(),eb=e=>{let{theme:t,classGroups:n}=e;return tb(n,t)},tb=(e,t)=>{let n=qy();for(let r in e){let i=e[r];nb(i,n,r,t)}return n},nb=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];rb(i,t,n,r)}},rb=(e,t,n,r)=>{if(typeof e==`string`){ib(e,t,n);return}if(typeof e==`function`){ab(e,t,n,r);return}ob(e,t,n,r)},ib=(e,t,n)=>{let r=e===``?t:sb(t,e);r.classGroupId=n},ab=(e,t,n,r)=>{if(cb(e)){nb(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ky(n,e))},ob=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];nb(o,sb(t,a),n,r)}},sb=(e,t)=>{let n=e,r=t.split(Jy),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=qy(),n.nextPart.set(t,i)),n=i}return n},cb=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,lb=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ub=`!`,db=`:`,fb=[],pb=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),mb=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===db){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ub)?(c=s.slice(0,-1),l=!0):s.startsWith(ub)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return pb(t,l,c,u)};if(t){let e=t+db,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):pb(fb,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},hb=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},gb=e=>({cache:lb(e.cacheSize),parseClassName:mb(e),sortModifiers:hb(e),postfixLookupClassGroupIds:_b(e),...Zy(e)}),_b=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},vb=/\s+/,yb=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(vb),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ub:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},bb=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=xb(n))&&(i&&(i+=` `),i+=r);return i},xb=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=xb(e[r]))&&(n&&(n+=` `),n+=t);return n},Sb=(e,...t)=>{let n,r,i,a,o=o=>(n=gb(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=yb(e,n);return i(e,a),a};return a=o,(...e)=>a(bb(...e))},Cb=[],wb=e=>{let t=t=>t[e]||Cb;return t.isThemeGetter=!0,t},Tb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Eb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Db=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ob=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ab=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nb=e=>Db.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Pb=e=>!!e&&Number.isInteger(Number(e)),Fb=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Ib=e=>Ob.test(e),Lb=()=>!0,Rb=e=>kb.test(e)&&!Ab.test(e),zb=()=>!1,Bb=e=>jb.test(e),Vb=e=>Mb.test(e),Hb=e=>!Q(e)&&!$(e),Ub=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Wb=e=>ax(e,lx,zb),Q=e=>Tb.test(e),Gb=e=>ax(e,ux,Rb),Kb=e=>ax(e,dx,Z),qb=e=>ax(e,px,Lb),Jb=e=>ax(e,fx,zb),Yb=e=>ax(e,sx,zb),Xb=e=>ax(e,cx,Vb),Zb=e=>ax(e,mx,Bb),$=e=>Eb.test(e),Qb=e=>ox(e,ux),$b=e=>ox(e,fx),ex=e=>ox(e,sx),tx=e=>ox(e,lx),nx=e=>ox(e,cx),rx=e=>ox(e,mx,!0),ix=e=>ox(e,px,!0),ax=(e,t,n)=>{let r=Tb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ox=(e,t,n=!1)=>{let r=Eb.exec(e);return r?r[1]?t(r[1]):n:!1},sx=e=>e===`position`||e===`percentage`,cx=e=>e===`image`||e===`url`,lx=e=>e===`length`||e===`size`||e===`bg-size`,ux=e=>e===`length`,dx=e=>e===`number`,fx=e=>e===`family-name`,px=e=>e===`number`||e===`weight`,mx=e=>e===`shadow`,hx=Sb(()=>{let e=wb(`color`),t=wb(`font`),n=wb(`text`),r=wb(`font-weight`),i=wb(`tracking`),a=wb(`leading`),o=wb(`breakpoint`),s=wb(`container`),c=wb(`spacing`),l=wb(`radius`),u=wb(`shadow`),d=wb(`inset-shadow`),f=wb(`text-shadow`),p=wb(`drop-shadow`),m=wb(`blur`),h=wb(`perspective`),g=wb(`aspect`),_=wb(`ease`),v=wb(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),$,Q],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],S=()=>[`auto`,`contain`,`none`],C=()=>[$,Q,c],te=()=>[Nb,`full`,`auto`,...C()],ne=()=>[Pb,`none`,`subgrid`,$,Q],re=()=>[`auto`,{span:[`full`,Pb,$,Q]},Pb,$,Q],ie=()=>[Pb,`auto`,$,Q],ae=()=>[`auto`,`min`,`max`,`fr`,$,Q],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],se=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ce=()=>[`auto`,...C()],le=()=>[Nb,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],ue=()=>[Nb,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],de=()=>[Nb,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],w=()=>[e,$,Q],T=()=>[...b(),ex,Yb,{position:[$,Q]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],E=()=>[`auto`,`cover`,`contain`,tx,Wb,{size:[$,Q]}],pe=()=>[Fb,Qb,Gb],me=()=>[``,`none`,`full`,l,$,Q],D=()=>[``,Z,Qb,Gb],he=()=>[`solid`,`dashed`,`dotted`,`double`],ge=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],O=()=>[Z,Fb,ex,Yb],_e=()=>[``,`none`,m,$,Q],ve=()=>[`none`,Z,$,Q],ye=()=>[`none`,Z,$,Q],be=()=>[Z,$,Q],xe=()=>[Nb,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ib],breakpoint:[Ib],color:[Lb],container:[Ib],"drop-shadow":[Ib],ease:[`in`,`out`,`in-out`],font:[Hb],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ib],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ib],shadow:[Ib],spacing:[`px`,Z],text:[Ib],"text-shadow":[Ib],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Nb,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Ub],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Pb,`auto`,$,Q]}],basis:[{basis:[Nb,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Nb,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Pb,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...se(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...se()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...se(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...se(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...se(),`baseline`]}],"place-self":[{"place-self":[`auto`,...se()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mbs:[{mbs:ce()}],mbe:[{mbe:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:le()}],"inline-size":[{inline:[`auto`,...ue()]}],"min-inline-size":[{"min-inline":[`auto`,...ue()]}],"max-inline-size":[{"max-inline":[`none`,...ue()]}],"block-size":[{block:[`auto`,...de()]}],"min-block-size":[{"min-block":[`auto`,...de()]}],"max-block-size":[{"max-block":[`none`,...de()]}],w:[{w:[s,`screen`,...le()]}],"min-w":[{"min-w":[s,`screen`,`none`,...le()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...le()]}],h:[{h:[`screen`,`lh`,...le()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...le()]}],"max-h":[{"max-h":[`screen`,`lh`,...le()]}],"font-size":[{text:[`base`,n,Qb,Gb]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ix,qb]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Fb,Q]}],"font-family":[{font:[$b,Jb,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Kb]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...he(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Gb]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[Pb,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:E()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Pb,$,Q],radial:[``,$,Q],conic:[Pb,$,Q]},nx,Xb]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":D()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...he(),`hidden`,`none`]}],"divide-style":[{divide:[...he(),`hidden`,`none`]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...he(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,Qb,Gb]}],"outline-color":[{outline:w()}],shadow:[{shadow:[``,`none`,u,rx,Zb]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":[`none`,d,rx,Zb]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:D()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Z,Gb]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":[`none`,f,rx,Zb]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...ge(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:_e()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,rx,Zb]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":[`scale-3d`],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Pb,$,Q]}],accent:[{accent:w()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...w()]}],"stroke-w":[{stroke:[Z,Qb,Gb,Kb]}],stroke:[{stroke:[`none`,...w()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function gx(...e){return hx(Wy(e))}var _x=v(),vx={xs:`h-6 px-2 text-xs gap-1`,sm:`h-7 px-3 text-sm gap-1.5`,md:`h-8 px-3.5 text-sm gap-2`,lg:`h-10 px-4 text-base gap-2`},yx={solid:{primary:`bg-[var(--color-background-inverse)] text-[var(--color-text-inverse)] hover:opacity-85 active:opacity-75`,secondary:`bg-[var(--color-background-tertiary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-text-warning)] text-white hover:opacity-85 active:opacity-75`,danger:`bg-[var(--color-text-danger)] text-white hover:opacity-85 active:opacity-75`},soft:{primary:`bg-[var(--color-background-info)] text-[var(--color-text-info)] hover:opacity-75 active:opacity-65`,secondary:`bg-[var(--color-background-secondary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-background-warning)] text-[var(--color-text-warning)] hover:opacity-75 active:opacity-65`,danger:`bg-[var(--color-background-danger)] text-[var(--color-text-danger)] hover:opacity-75 active:opacity-65`},ghost:{primary:`bg-transparent text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,secondary:`bg-transparent text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,warning:`bg-transparent text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)] active:bg-[var(--color-background-tertiary)]`,danger:`bg-transparent text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)] active:bg-[var(--color-background-tertiary)]`},outline:{primary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)]`,secondary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)]`,warning:`bg-transparent border border-[var(--color-border-warning)] text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)]`,danger:`bg-transparent border border-[var(--color-border-danger)] text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)]`}},bx=ly.forwardRef(({variant:e=`solid`,color:t=`primary`,size:n=`md`,className:r,children:i,...a},o)=>(0,X.jsx)(`button`,{ref:o,type:`button`,className:gx(`inline-flex items-center justify-center font-medium transition-colors rounded-full cursor-pointer select-none flex-shrink-0 whitespace-nowrap`,`disabled:opacity-50 disabled:cursor-not-allowed`,vx[n],yx[e][t],r),...a,children:i}));bx.displayName=`Button`;var xx=e=>(0,X.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,X.jsx)(`path`,{d:`M13 4C13 3.44772 13.4477 3 14 3H20C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V6.41421L15.2071 10.2071C14.8166 10.5976 14.1834 10.5976 13.7929 10.2071C13.4024 9.81658 13.4024 9.18342 13.7929 8.79289L17.5858 5H14C13.4477 5 13 4.55228 13 4ZM4 13C4.55228 13 5 13.4477 5 14V17.5858L8.79289 13.7929C9.18342 13.4024 9.81658 13.4024 10.2071 13.7929C10.5976 14.1834 10.5976 14.8166 10.2071 15.2071L6.41421 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13Z`,fill:`currentColor`})}),Sx={create:(0,X.jsxs)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,children:[(0,X.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,X.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})]}),modify:(0,X.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,children:(0,X.jsx)(`path`,{d:`M4 15c2-3 5-5 8-2s6 1 8-2`})}),delete:(0,X.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,children:(0,X.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})}),action:(0,X.jsxs)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,X.jsx)(`polyline`,{points:`12 5 19 12 12 19`})]})},Cx={create:{color:`light-dark(#16a34a, #4ade80)`,bg:`light-dark(#f0fdf4, #052e16)`},modify:{color:`light-dark(#ca8a04, #facc15)`,bg:`light-dark(#fefce8, #422006)`},delete:{color:`light-dark(#dc2626, #f87171)`,bg:`light-dark(#fef2f2, #450a0a)`},action:{color:`light-dark(#2563eb, #60a5fa)`,bg:`light-dark(#eff6ff, #172554)`}},wx={info:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,X.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]}),warning:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z`}),(0,X.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,X.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),error:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,X.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),success:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`polyline`,{points:`9 12 12 15 16 10`})]})},Tx={info:{bg:`light-dark(#eff6ff, #172554)`,border:`light-dark(#bfdbfe, #1e3a5f)`,text:`light-dark(#1e40af, #93c5fd)`},warning:{bg:`light-dark(#fefce8, #422006)`,border:`light-dark(#fde047, #854d0e)`,text:`light-dark(#a16207, #fde047)`},error:{bg:`light-dark(#fef2f2, #450a0a)`,border:`light-dark(#fecaca, #7f1d1d)`,text:`light-dark(#b91c1c, #fca5a5)`},success:{bg:`light-dark(#f0fdf4, #052e16)`,border:`light-dark(#bbf7d0, #14532d)`,text:`light-dark(#15803d, #86efac)`}};function Ex({content:e}){return(0,X.jsx)(`div`,{className:`space-y-2`,children:e.map((e,t)=>(0,X.jsxs)(`div`,{className:`flex justify-between items-start gap-4 ${e.emphasis?`font-semibold pt-2 border-t border-[var(--color-border-tertiary)]`:``}`,children:[(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,X.jsx)(`span`,{className:e.emphasis?`text-[var(--color-text-primary)]`:`text-[var(--color-text-secondary)]`,children:e.label}),e.sublabel&&(0,X.jsx)(`p`,{className:`text-xs text-[var(--color-text-secondary)] mt-0.5`,children:e.sublabel})]}),(0,X.jsx)(`span`,{className:`text-[var(--color-text-primary)] flex-shrink-0`,children:e.value})]},t))})}function Dx({content:e}){return(0,X.jsx)(`div`,{className:`space-y-3`,children:e.map(e=>(0,X.jsxs)(`div`,{className:`flex items-center gap-3 p-2 rounded-lg bg-[var(--color-background-secondary)]`,children:[e.image&&(0,X.jsx)(`img`,{src:e.image,alt:e.title,className:`w-12 h-12 rounded-lg object-cover flex-shrink-0`}),(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsx)(`span`,{className:`text-sm font-medium text-[var(--color-text-primary)] truncate`,children:e.title}),e.badge&&(0,X.jsx)(`span`,{className:`px-1.5 py-0.5 text-xs rounded bg-[var(--color-ring-primary)] text-white`,children:e.badge})]}),e.subtitle&&(0,X.jsx)(`p`,{className:`text-xs text-[var(--color-text-secondary)] truncate`,children:e.subtitle})]}),e.value&&(0,X.jsx)(`span`,{className:`text-sm font-medium text-[var(--color-text-primary)] flex-shrink-0`,children:e.value})]},e.id))})}function Ox({content:e}){return(0,X.jsx)(`ul`,{className:`space-y-2`,children:e.map(e=>{let t=Cx[e.type];return(0,X.jsx)(`li`,{className:`rounded-lg border border-[var(--color-border-tertiary)] p-3`,style:{backgroundColor:t.bg},children:(0,X.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,X.jsx)(`span`,{className:`flex-shrink-0 w-6 h-6 flex items-center justify-center rounded font-mono font-bold bg-[var(--color-background-primary)]`,style:{color:t.color,borderWidth:1,borderStyle:`solid`,borderColor:t.color},children:Sx[e.type]}),(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[e.path&&(0,X.jsx)(`code`,{className:`block text-xs text-[var(--color-text-secondary)] font-mono truncate mb-1`,children:e.path}),(0,X.jsx)(`p`,{className:`text-sm text-[var(--color-text-primary)]`,children:e.description}),e.details&&(0,X.jsx)(`p`,{className:`mt-1 text-xs text-[var(--color-text-secondary)]`,children:e.details})]})]})},e.id)})})}function kx({content:e}){return(0,X.jsx)(`div`,{className:`p-4 rounded-lg bg-[var(--color-background-secondary)] border border-[var(--color-border-tertiary)]`,children:(0,X.jsx)(`p`,{className:`text-sm text-[var(--color-text-primary)] whitespace-pre-wrap`,children:e})})}function Ax({content:e}){return(0,X.jsx)(`div`,{className:`p-3 rounded-lg bg-[var(--color-background-secondary)] space-y-1`,children:e.map((e,t)=>(0,X.jsxs)(`div`,{className:`flex justify-between items-center ${e.emphasis?`font-semibold text-lg pt-2 border-t border-[var(--color-border-tertiary)] mt-2`:`text-sm`}`,children:[(0,X.jsx)(`span`,{className:e.emphasis?`text-[var(--color-text-primary)]`:`text-[var(--color-text-secondary)]`,children:e.label}),(0,X.jsx)(`span`,{className:`text-[var(--color-text-primary)]`,children:e.value})]},t))})}function jx({section:e}){return(0,X.jsxs)(`div`,{className:`space-y-2`,children:[e.title&&(0,X.jsx)(`h2`,{className:`text-sm font-medium text-[var(--color-text-secondary)] uppercase tracking-wide`,children:e.title}),(()=>{switch(e.type){case`details`:return(0,X.jsx)(Ex,{content:e.content});case`items`:return(0,X.jsx)(Dx,{content:e.content});case`changes`:return(0,X.jsx)(Ox,{content:e.content});case`preview`:return(0,X.jsx)(kx,{content:e.content});case`summary`:return(0,X.jsx)(Ax,{content:e.content})}})()]})}function Mx({alert:e}){let t=Tx[e.type];return(0,X.jsxs)(`div`,{className:`flex items-center gap-2 p-3 rounded-lg`,style:{backgroundColor:t.bg,borderWidth:1,borderStyle:`solid`,borderColor:t.border},children:[(0,X.jsx)(`span`,{className:`flex-shrink-0`,style:{color:t.text},children:wx[e.type]}),(0,X.jsx)(`span`,{className:`text-sm`,style:{color:t.text},children:e.message})]})}function Nx(){let{output:e,isLoading:t,isError:n,isCancelled:r,cancelReason:i}=Oy(),[a,o]=Hy({decision:null,decidedAt:null,pending:!1,serverMessage:null,serverError:!1}),{touch:s=!1}=ky(),{hostCapabilities:c}=Vy(),l=Ay(),{requestDisplayMode:u,availableModes:d}=zy(),f=Ry(),p=By(),m=Fy(),h=jy(),g=d?.includes(`fullscreen`)??!1,_=!!c?.serverTools,v=a.decision??null,y=l===`fullscreen`,b=e??{title:`Review`,sections:[]},ee=()=>{u(`fullscreen`)},x=async e=>{let t=new Date().toISOString(),n=e?`accepted`:`rejected`;p({structuredContent:{decision:n,title:b.title,decidedAt:t}});let r=b.reviewTool;if(!r||!_){o({decision:n,decidedAt:t,pending:!1,serverMessage:null,serverError:!1});return}o({decision:n,decidedAt:t,pending:!0,serverMessage:null,serverError:!1});let i=await f({name:r.name,arguments:{...r.arguments,confirmed:e,decidedAt:t}}),a=i?.structuredContent,s=i?.content?.find(e=>e.type===`text`&&e.text),c=s&&`text`in s?s.text:null;o({decision:n,decidedAt:t,pending:!1,serverMessage:a?.message??c,serverError:a?.status===`error`||a?.status===`cancelled`||!!i?.isError})},S=()=>x(!0),C=()=>x(!1),te=b.acceptLabel??`Confirm`,ne=b.rejectLabel??`Cancel`,re=b.acceptedMessage??`Confirmed`,ie=b.rejectedMessage??`Cancelled`,ae=b.sections??[],oe=b.alerts??[];return t?(0,X.jsxs)(Ly,{className:`flex items-center justify-center gap-2 p-8 text-[var(--color-text-secondary)]`,children:[(0,X.jsx)(`div`,{className:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`}),(0,X.jsx)(`span`,{children:`Loading…`})]}):n?(0,X.jsx)(Ly,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:`Failed to load review data`}):r?(0,X.jsx)(Ly,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:i??`Request was cancelled`}):(0,X.jsxs)(Ly,{className:`px-4 py-4 space-y-4`,children:[(0,X.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,X.jsx)(`h1`,{className:`text-xl font-semibold text-[var(--color-text-primary)]`,children:b.title}),b.description&&(0,X.jsx)(`p`,{className:`mt-1 text-sm text-[var(--color-text-secondary)]`,children:b.description})]}),!y&&g&&(0,X.jsx)(bx,{variant:`ghost`,color:`secondary`,size:`sm`,onClick:ee,"aria-label":`Enter fullscreen`,className:`flex-shrink-0`,children:(0,X.jsx)(xx,{className:`h-4 w-4`,"aria-hidden":`true`})})]}),oe.length>0&&(0,X.jsx)(`div`,{className:`space-y-2`,children:oe.map((e,t)=>(0,X.jsx)(Mx,{alert:e},t))}),ae.map((e,t)=>(0,X.jsx)(jx,{section:e},t)),(0,X.jsx)(`div`,{className:`pt-2`,children:v===null?(0,X.jsxs)(`div`,{className:`flex gap-3`,children:[(0,X.jsx)(bx,{variant:`outline`,color:`secondary`,onClick:C,size:s?`lg`:`md`,className:`flex-1`,children:ne}),(0,X.jsx)(bx,{variant:`solid`,color:b.acceptDanger?`danger`:`primary`,onClick:S,size:s?`lg`:`md`,className:`flex-1`,children:te})]}):a.pending?(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2 text-[var(--color-text-secondary)]`,children:[(0,X.jsx)(`div`,{className:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`}),(0,X.jsx)(`span`,{className:`font-medium`,children:v===`accepted`?`Confirming...`:`Cancelling...`})]}):(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-1`,children:[a.serverMessage?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`text-xs text-[var(--color-text-secondary)]`,children:v===`accepted`?re:ie}),(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2`,style:{color:a.serverError?`light-dark(#dc2626, #f87171)`:`light-dark(#16a34a, #4ade80)`},children:[(0,X.jsx)(`span`,{className:`text-lg`,children:a.serverError?`✗`:`✓`}),(0,X.jsx)(`span`,{className:`font-medium`,children:a.serverMessage})]})]}):(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2`,style:{color:v===`accepted`?`light-dark(#16a34a, #4ade80)`:`light-dark(#dc2626, #f87171)`},children:[(0,X.jsx)(`span`,{className:`text-lg`,children:v===`accepted`?`✓`:`✗`}),(0,X.jsx)(`span`,{className:`font-medium`,children:v===`accepted`?re:ie})]}),a.decidedAt&&(0,X.jsx)(`span`,{className:`text-xs text-[var(--color-text-secondary)]`,children:new Date(a.decidedAt).toLocaleString(h,{timeZone:m})})]})})]})}var Px=document.getElementById(`root`);Px&&(0,_x.createRoot)(Px).render((0,X.jsx)(yy,{appInfo:{name:`sunpeak-app`,version:`0.1.0`},children:(0,X.jsx)(Nx,{})}))})();
128
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:V().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:V().optional().describe(`User's timezone in IANA format.`),userAgent:V().optional().describe(`Host application identifier.`),platform:G([q(`web`),q(`desktop`),q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:W({touch:Xf().optional().describe(`Whether the device supports touch input.`),hover:Xf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:W({top:H().describe(`Top safe area inset in pixels.`),right:H().describe(`Right safe area inset in pixels.`),bottom:H().describe(`Bottom safe area inset in pixels.`),left:H().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Qv=W({method:q(`ui/notifications/host-context-changed`),params:Zv.describe(`Partial context update containing only changed fields.`)});W({method:q(`ui/update-model-context`),params:W({content:U(E_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:K(V(),ip().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),W({method:q(`ui/initialize`),params:W({appInfo:gg.describe(`App identification (name and version).`),appCapabilities:qv.describe(`Features and capabilities this app provides.`),protocolVersion:V().describe(`Protocol version this app supports.`)})});var $v=W({protocolVersion:V().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:gg.describe(`Host application identification and version.`),hostCapabilities:Kv.describe(`Features and capabilities provided by the host.`),hostContext:Zv.describe(`Rich context about the host environment.`)}).passthrough(),ey={target:`draft-2020-12`};async function ty(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](ey);if(n.vendor===`zod`){let{z:n}=await Promise.resolve().then(()=>(zh(),Lh));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function ny(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function ry(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function iy(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function ay(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var oy=class e extends Ov{_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),x(this,`_appInfo`,void 0),x(this,`_capabilities`,void 0),x(this,`options`,void 0),x(this,`_hostCapabilities`,void 0),x(this,`_hostInfo`,void 0),x(this,`_hostContext`,void 0),x(this,`_registeredTools`,{}),x(this,`_initializedSent`,!1),x(this,`eventSchemas`,{toolinput:zv,toolinputpartial:Bv,toolresult:Xv,toolcancelled:Vv,hostcontextchanged:Qv}),x(this,`_everHadListener`,new Set),x(this,`_toolHandlersInitialized`,!1),x(this,`_onteardown`,void 0),x(this,`_oncalltool`,void 0),x(this,`_onlisttools`,void 0),x(this,`sendOpenLink`,this.openLink),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||C({jitless:!0}),this.setRequestHandler(Eg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Dv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await ny(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await ny(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await ty(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await ty(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Wv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(L_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(N_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){switch(e){case`sampling/createMessage`:if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`);break}}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},F_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},o_,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},e_,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?$_:Q_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Iv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},dg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Pv,t)}downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Fv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Jv,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Av(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:kv}},$v,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};x(oy,`ONE_SHOT_EVENTS`,new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]));function sy(e){if(e.__toolDataStore)return e.__toolDataStore;let t={data:{input:null,inputPartial:null,output:null,isError:!1,isLoading:!0,isCancelled:!1,cancelReason:null},listeners:new Set};e.__toolDataStore=t;let n=()=>{for(let e of t.listeners)e()};return e.addEventListener(`toolinput`,e=>{t.data={...t.data,input:e.arguments,inputPartial:null},n()}),e.addEventListener(`toolinputpartial`,e=>{t.data={...t.data,inputPartial:e.arguments},n()}),e.addEventListener(`toolresult`,e=>{t.data={...t.data,output:e.structuredContent??e.content,isError:e.isError??!1,isLoading:!1},n()}),e.addEventListener(`toolcancelled`,e=>{t.data={...t.data,isCancelled:!0,cancelReason:e.reason??null,isLoading:!1},n()}),t}var cy=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ly=s(((e,t)=>{t.exports=cy()})),uy=u(m(),1),X=ly(),dy={app:null,isConnected:!1,error:null},fy=(0,uy.createContext)(dy),py=null,my=null,hy=5e3,gy=3,_y=500;function vy(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Connection timed out`)),t);e.then(e=>{clearTimeout(i),n(e)},e=>{clearTimeout(i),r(e)})})}async function yy(e,t,n){let r=null;for(let i=0;i<=gy;i++){if(i>0){let e=_y*2**(i-1);await new Promise(t=>setTimeout(t,e))}let a=null;try{a=new Av(window.parent,window.parent);let r=new oy(e,t);return sy(r),n?.(r),await vy(r.connect(a),hy),r}catch(e){if(a)try{await a.close()}catch{}r=e instanceof Error?e:Error(`Connection failed`),i<gy&&console.warn(`[sunpeak] Connection attempt ${i+1}/4 failed, retrying...`,r.message)}}throw console.error(`[sunpeak] All connection attempts failed. Try refreshing the page or opening a new chat.
129
+ Troubleshooting: https://sunpeak.ai/docs/app-framework/guides/troubleshooting`),r??Error(`Failed to connect`)}function by({appInfo:e,capabilities:t,onAppCreated:n,children:r}){let[i,a]=(0,uy.useState)(()=>py?{app:py,isConnected:!0,error:null}:dy);return(0,uy.useEffect)(()=>{let r=!1;return py?(a({app:py,isConnected:!0,error:null}),()=>{r=!0}):(my||(my=yy(e,t??{},n)),my.then(e=>{py=e,r||a({app:e,isConnected:!0,error:null})},e=>{my=null,r||a({app:null,isConnected:!1,error:e instanceof Error?e:Error(`Failed to connect`)})}),()=>{r=!0})},[]),(0,X.jsx)(fy.Provider,{value:i,children:r})}function xy(){return(0,uy.useContext)(fy).app}var Sy={"--color-background-primary":`light-dark(#ffffff, #1a1a1a)`,"--color-background-secondary":`light-dark(#f5f5f5, #2d2d2d)`,"--color-background-tertiary":`light-dark(#e5e5e5, #404040)`,"--color-background-inverse":`light-dark(#1a1a1a, #ffffff)`,"--color-background-ghost":`light-dark(rgba(255,255,255,0), rgba(26,26,26,0))`,"--color-background-info":`light-dark(#eff6ff, #1e3a5f)`,"--color-background-danger":`light-dark(#fef2f2, #7f1d1d)`,"--color-background-success":`light-dark(#f0fdf4, #14532d)`,"--color-background-warning":`light-dark(#fefce8, #713f12)`,"--color-background-disabled":`light-dark(rgba(255,255,255,0.5), rgba(26,26,26,0.5))`,"--color-text-primary":`light-dark(#1f2937, #f3f4f6)`,"--color-text-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-text-tertiary":`light-dark(#9ca3af, #6b7280)`,"--color-text-inverse":`light-dark(#f3f4f6, #1f2937)`,"--color-text-ghost":`light-dark(rgba(107,114,128,0.5), rgba(156,163,175,0.5))`,"--color-text-info":`light-dark(#1d4ed8, #60a5fa)`,"--color-text-danger":`light-dark(#b91c1c, #f87171)`,"--color-text-success":`light-dark(#15803d, #4ade80)`,"--color-text-warning":`light-dark(#a16207, #fbbf24)`,"--color-text-disabled":`light-dark(rgba(31,41,55,0.5), rgba(243,244,246,0.5))`,"--color-border-primary":`light-dark(#e5e7eb, #404040)`,"--color-border-secondary":`light-dark(#d1d5db, #525252)`,"--color-border-tertiary":`light-dark(#f3f4f6, #374151)`,"--color-border-inverse":`light-dark(rgba(255,255,255,0.3), rgba(0,0,0,0.3))`,"--color-border-ghost":`light-dark(rgba(229,231,235,0), rgba(64,64,64,0))`,"--color-border-info":`light-dark(#93c5fd, #1e40af)`,"--color-border-danger":`light-dark(#fca5a5, #991b1b)`,"--color-border-success":`light-dark(#86efac, #166534)`,"--color-border-warning":`light-dark(#fde047, #854d0e)`,"--color-border-disabled":`light-dark(rgba(229,231,235,0.5), rgba(64,64,64,0.5))`,"--color-ring-primary":`light-dark(#3b82f6, #60a5fa)`,"--color-ring-secondary":`light-dark(#6b7280, #9ca3af)`,"--color-ring-inverse":`light-dark(#ffffff, #1f2937)`,"--color-ring-info":`light-dark(#2563eb, #3b82f6)`,"--color-ring-danger":`light-dark(#dc2626, #ef4444)`,"--color-ring-success":`light-dark(#16a34a, #22c55e)`,"--color-ring-warning":`light-dark(#ca8a04, #eab308)`,"--font-sans":`system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,"--font-mono":`ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', monospace`,"--font-weight-normal":`400`,"--font-weight-medium":`500`,"--font-weight-semibold":`600`,"--font-weight-bold":`700`,"--font-text-xs-size":`0.75rem`,"--font-text-sm-size":`0.875rem`,"--font-text-md-size":`1rem`,"--font-text-lg-size":`1.125rem`,"--font-heading-xs-size":`0.75rem`,"--font-heading-sm-size":`0.875rem`,"--font-heading-md-size":`1rem`,"--font-heading-lg-size":`1.25rem`,"--font-heading-xl-size":`1.5rem`,"--font-heading-2xl-size":`1.875rem`,"--font-heading-3xl-size":`2.25rem`,"--font-text-xs-line-height":`1.4`,"--font-text-sm-line-height":`1.4`,"--font-text-md-line-height":`1.5`,"--font-text-lg-line-height":`1.5`,"--font-heading-xs-line-height":`1.4`,"--font-heading-sm-line-height":`1.4`,"--font-heading-md-line-height":`1.4`,"--font-heading-lg-line-height":`1.3`,"--font-heading-xl-line-height":`1.25`,"--font-heading-2xl-line-height":`1.2`,"--font-heading-3xl-line-height":`1.1`,"--border-radius-xs":`2px`,"--border-radius-sm":`4px`,"--border-radius-md":`6px`,"--border-radius-lg":`8px`,"--border-radius-xl":`12px`,"--border-radius-full":`9999px`,"--border-width-regular":`1px`,"--shadow-hairline":`0 1px 2px 0 rgba(0, 0, 0, 0.05)`,"--shadow-sm":`0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)`,"--shadow-md":`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)`,"--shadow-lg":`0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)`},Cy=new WeakMap;function wy(e){iy(Sy),e&&iy(e)}function Ty(e){let t=Cy.get(e);if(!t){t=new Set,Cy.set(e,t);let n=e.getHostContext();n?.theme&&ry(n.theme),wy(n?.styles?.variables),n?.styles?.css?.fonts&&ay(n.styles.css.fonts);let r=null;e.onhostcontextchanged=()=>{let n=e.getHostContext();n?.theme&&ry(n.theme),wy(n?.styles?.variables),n?.styles?.css?.fonts&&ay(n.styles.css.fonts),r&&clearTimeout(r),r=setTimeout(()=>{r=null;for(let e of t)e()},50)}}return t}function Ey(){let e=xy(),t=(0,uy.useCallback)(t=>{if(!e)return()=>{};let n=Ty(e);return n.add(t),()=>{n.delete(t)}},[e]),n=(0,uy.useCallback)(()=>e?.getHostContext()??null,[e]);return(0,uy.useSyncExternalStore)(t,n,n)}var Dy=new WeakMap;function Oy(e,t,n){let r=e.__toolDataStore;if(r)return t!==void 0&&r.data.input===null&&(r.data={...r.data,input:t}),n!==void 0&&r.data.output===null&&(r.data={...r.data,output:n,isLoading:!1}),r;let i=Dy.get(e);if(!i){let r={data:{input:t??null,inputPartial:null,output:n??null,isError:!1,isLoading:!n,isCancelled:!1,cancelReason:null},listeners:new Set};Dy.set(e,r),i=r;let a=()=>{for(let e of r.listeners)e()};e.addEventListener(`toolinput`,e=>{r.data={...r.data,input:e.arguments,inputPartial:null},a()}),e.addEventListener(`toolinputpartial`,e=>{r.data={...r.data,inputPartial:e.arguments},a()}),e.addEventListener(`toolresult`,e=>{r.data={...r.data,output:e.structuredContent??e.content,isError:e.isError??!1,isLoading:!1},a()}),e.addEventListener(`toolcancelled`,e=>{r.data={...r.data,isCancelled:!0,cancelReason:e.reason??null,isLoading:!1},a()})}return i}function ky(e,t){let n=xy(),r=(0,uy.useRef)(e),i=(0,uy.useRef)(t),a=(0,uy.useMemo)(()=>({input:e??null,inputPartial:null,output:t??null,isError:!1,isLoading:!t,isCancelled:!1,cancelReason:null}),[]),o=(0,uy.useCallback)(e=>{if(!n)return()=>{};let t=Oy(n,r.current,i.current);return t.listeners.add(e),()=>{t.listeners.delete(e)}},[n]),s=(0,uy.useCallback)(()=>n?Oy(n,r.current,i.current).data:a,[n,a]);return(0,uy.useSyncExternalStore)(o,s,s)}function Ay(){return Ey()?.deviceCapabilities??{}}function jy(){return Ey()?.displayMode??`inline`}function My(){return Ey()?.locale??`en-US`}var Ny={top:0,bottom:0,left:0,right:0};function Py(){return Ey()?.safeAreaInsets??Ny}var Fy=Intl.DateTimeFormat().resolvedOptions().timeZone;function Iy(){return Ey()?.timeZone??Fy}function Ly(){return Ey()?.containerDimensions??null}var Ry=(0,uy.forwardRef)(function({children:e,style:t,...n},r){let i=Py(),a=Ly(),o=jy()===`fullscreen`?`100dvh`:void 0;return(0,X.jsx)(`div`,{ref:r,style:{paddingTop:i.top||void 0,paddingBottom:i.bottom||void 0,paddingLeft:i.left||void 0,paddingRight:i.right||void 0,height:o,maxHeight:a?.maxHeight,overflow:a?.maxHeight==null?void 0:`hidden`,width:a?.width,maxWidth:a?.maxWidth,...t},...n,children:e})});function zy(){let e=xy();return(0,uy.useCallback)(async t=>{if(!e){console.warn(`[useCallServerTool] App not connected`);return}return e.callServerTool(t)},[e])}function By(){let e=xy(),t=Ey();return{requestDisplayMode:(0,uy.useCallback)(async t=>{if(!e){console.warn(`[useRequestDisplayMode] App not connected`);return}await e.requestDisplayMode({mode:t})},[e]),availableModes:t?.availableDisplayModes}}function Vy(){let e=xy();return(0,uy.useCallback)(async t=>{e&&await e.updateModelContext(t)},[e])}function Hy(){let e=xy();return{hostVersion:e?.getHostVersion(),hostCapabilities:e?.getHostCapabilities()}}function Uy(e){let t=xy(),[n,r]=(0,uy.useState)(e),i=(0,uy.useRef)(null);return(0,uy.useEffect)(()=>{if(typeof window>`u`)return;let e=e=>{if(e.source!==window.parent)return;let t=e.data;t&&typeof t==`object`&&t.method===`sunpeak/injectState`&&t.params?.state!=null&&r(t.params.state)};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)},[]),(0,uy.useEffect)(()=>{if(i.current!=null&&t){let e=i.current;i.current=null,t.updateModelContext({structuredContent:e}).catch(()=>{})}}),[n,(0,uy.useCallback)(e=>{r(t=>{let n=typeof e==`function`?e(t):e;return i.current=n,n})},[])]}function Wy(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Wy(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Gy(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wy(e))&&(r&&(r+=` `),r+=t);return r}var Ky=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},qy=(e,t)=>({classGroupId:e,validator:t}),Jy=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yy=`-`,Xy=[],Zy=`arbitrary..`,Qy=e=>{let t=tb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return eb(e);let n=e.split(Yy);return $y(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ky(i,t):t:i||Xy}return n[e]||Xy}}},$y=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=$y(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Yy):e.slice(t).join(Yy),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},eb=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Zy+r:void 0})(),tb=e=>{let{theme:t,classGroups:n}=e;return nb(n,t)},nb=(e,t)=>{let n=Jy();for(let r in e){let i=e[r];rb(i,n,r,t)}return n},rb=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ib(i,t,n,r)}},ib=(e,t,n,r)=>{if(typeof e==`string`){ab(e,t,n);return}if(typeof e==`function`){ob(e,t,n,r);return}sb(e,t,n,r)},ab=(e,t,n)=>{let r=e===``?t:cb(t,e);r.classGroupId=n},ob=(e,t,n,r)=>{if(lb(e)){rb(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(qy(n,e))},sb=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];rb(o,cb(t,a),n,r)}},cb=(e,t)=>{let n=e,r=t.split(Yy),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Jy(),n.nextPart.set(t,i)),n=i}return n},lb=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ub=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},db=`!`,fb=`:`,pb=[],mb=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),hb=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===fb){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(db)?(c=s.slice(0,-1),l=!0):s.startsWith(db)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return mb(t,l,c,u)};if(t){let e=t+fb,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):mb(pb,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},gb=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},_b=e=>({cache:ub(e.cacheSize),parseClassName:hb(e),sortModifiers:gb(e),postfixLookupClassGroupIds:vb(e),...Qy(e)}),vb=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},yb=/\s+/,bb=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(yb),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+db:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},xb=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Sb(n))&&(i&&(i+=` `),i+=r);return i},Sb=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Sb(e[r]))&&(n&&(n+=` `),n+=t);return n},Cb=(e,...t)=>{let n,r,i,a,o=o=>(n=_b(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=bb(e,n);return i(e,a),a};return a=o,(...e)=>a(xb(...e))},wb=[],Tb=e=>{let t=t=>t[e]||wb;return t.isThemeGetter=!0,t},Eb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Db=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ob=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ab=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pb=e=>Ob.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Fb=e=>!!e&&Number.isInteger(Number(e)),Ib=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Lb=e=>kb.test(e),Rb=()=>!0,zb=e=>Ab.test(e)&&!jb.test(e),Bb=()=>!1,Vb=e=>Mb.test(e),Hb=e=>Nb.test(e),Ub=e=>!Q(e)&&!$(e),Wb=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Gb=e=>ox(e,ux,Bb),Q=e=>Eb.test(e),Kb=e=>ox(e,dx,zb),qb=e=>ox(e,fx,Z),Jb=e=>ox(e,mx,Rb),Yb=e=>ox(e,px,Bb),Xb=e=>ox(e,cx,Bb),Zb=e=>ox(e,lx,Hb),Qb=e=>ox(e,hx,Vb),$=e=>Db.test(e),$b=e=>sx(e,dx),ex=e=>sx(e,px),tx=e=>sx(e,cx),nx=e=>sx(e,ux),rx=e=>sx(e,lx),ix=e=>sx(e,hx,!0),ax=e=>sx(e,mx,!0),ox=(e,t,n)=>{let r=Eb.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},sx=(e,t,n=!1)=>{let r=Db.exec(e);return r?r[1]?t(r[1]):n:!1},cx=e=>e===`position`||e===`percentage`,lx=e=>e===`image`||e===`url`,ux=e=>e===`length`||e===`size`||e===`bg-size`,dx=e=>e===`length`,fx=e=>e===`number`,px=e=>e===`family-name`,mx=e=>e===`number`||e===`weight`,hx=e=>e===`shadow`,gx=Cb(()=>{let e=Tb(`color`),t=Tb(`font`),n=Tb(`text`),r=Tb(`font-weight`),i=Tb(`tracking`),a=Tb(`leading`),o=Tb(`breakpoint`),s=Tb(`container`),c=Tb(`spacing`),l=Tb(`radius`),u=Tb(`shadow`),d=Tb(`inset-shadow`),f=Tb(`text-shadow`),p=Tb(`drop-shadow`),m=Tb(`blur`),h=Tb(`perspective`),g=Tb(`aspect`),_=Tb(`ease`),v=Tb(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),$,Q],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],S=()=>[`auto`,`contain`,`none`],C=()=>[$,Q,c],te=()=>[Pb,`full`,`auto`,...C()],ne=()=>[Fb,`none`,`subgrid`,$,Q],re=()=>[`auto`,{span:[`full`,Fb,$,Q]},Fb,$,Q],ie=()=>[Fb,`auto`,$,Q],ae=()=>[`auto`,`min`,`max`,`fr`,$,Q],oe=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],se=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ce=()=>[`auto`,...C()],le=()=>[Pb,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],ue=()=>[Pb,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],de=()=>[Pb,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],w=()=>[e,$,Q],T=()=>[...b(),tx,Xb,{position:[$,Q]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],E=()=>[`auto`,`cover`,`contain`,nx,Gb,{size:[$,Q]}],pe=()=>[Ib,$b,Kb],me=()=>[``,`none`,`full`,l,$,Q],D=()=>[``,Z,$b,Kb],he=()=>[`solid`,`dashed`,`dotted`,`double`],ge=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],O=()=>[Z,Ib,tx,Xb],_e=()=>[``,`none`,m,$,Q],ve=()=>[`none`,Z,$,Q],ye=()=>[`none`,Z,$,Q],be=()=>[Z,$,Q],xe=()=>[Pb,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Lb],breakpoint:[Lb],color:[Rb],container:[Lb],"drop-shadow":[Lb],ease:[`in`,`out`,`in-out`],font:[Ub],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Lb],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Lb],shadow:[Lb],spacing:[`px`,Z],text:[Lb],"text-shadow":[Lb],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Pb,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Wb],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{"inset-s":te(),start:te()}],end:[{"inset-e":te(),end:te()}],"inset-bs":[{"inset-bs":te()}],"inset-be":[{"inset-be":te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Fb,`auto`,$,Q]}],basis:[{basis:[Pb,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Pb,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Fb,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...oe(),`normal`]}],"justify-items":[{"justify-items":[...se(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...se()]}],"align-content":[{content:[`normal`,...oe()]}],"align-items":[{items:[...se(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...se(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...se(),`baseline`]}],"place-self":[{"place-self":[`auto`,...se()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mbs:[{mbs:ce()}],mbe:[{mbe:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:le()}],"inline-size":[{inline:[`auto`,...ue()]}],"min-inline-size":[{"min-inline":[`auto`,...ue()]}],"max-inline-size":[{"max-inline":[`none`,...ue()]}],"block-size":[{block:[`auto`,...de()]}],"min-block-size":[{"min-block":[`auto`,...de()]}],"max-block-size":[{"max-block":[`none`,...de()]}],w:[{w:[s,`screen`,...le()]}],"min-w":[{"min-w":[s,`screen`,`none`,...le()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...le()]}],h:[{h:[`screen`,`lh`,...le()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...le()]}],"max-h":[{"max-h":[`screen`,`lh`,...le()]}],"font-size":[{text:[`base`,n,$b,Kb]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ax,Jb]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ib,Q]}],"font-family":[{font:[ex,Yb,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,qb]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...he(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,Kb]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"tab-size":[{tab:[Fb,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:E()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Fb,$,Q],radial:[``,$,Q],conic:[Fb,$,Q]},rx,Zb]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":D()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...he(),`hidden`,`none`]}],"divide-style":[{divide:[...he(),`hidden`,`none`]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...he(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,$b,Kb]}],"outline-color":[{outline:w()}],shadow:[{shadow:[``,`none`,u,ix,Qb]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":[`none`,d,ix,Qb]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:D()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Z,Kb]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":[`none`,f,ix,Qb]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...ge(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:_e()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ix,Qb]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":[`scale-3d`],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Fb,$,Q]}],accent:[{accent:w()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...w()]}],"stroke-w":[{stroke:[Z,$b,Kb,qb]}],stroke:[{stroke:[`none`,...w()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function _x(...e){return gx(Gy(e))}var vx=v(),yx={xs:`h-6 px-2 text-xs gap-1`,sm:`h-7 px-3 text-sm gap-1.5`,md:`h-8 px-3.5 text-sm gap-2`,lg:`h-10 px-4 text-base gap-2`},bx={solid:{primary:`bg-[var(--color-background-inverse)] text-[var(--color-text-inverse)] hover:opacity-85 active:opacity-75`,secondary:`bg-[var(--color-background-tertiary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-text-warning)] text-white hover:opacity-85 active:opacity-75`,danger:`bg-[var(--color-text-danger)] text-white hover:opacity-85 active:opacity-75`},soft:{primary:`bg-[var(--color-background-info)] text-[var(--color-text-info)] hover:opacity-75 active:opacity-65`,secondary:`bg-[var(--color-background-secondary)] text-[var(--color-text-primary)] hover:opacity-80 active:opacity-70`,warning:`bg-[var(--color-background-warning)] text-[var(--color-text-warning)] hover:opacity-75 active:opacity-65`,danger:`bg-[var(--color-background-danger)] text-[var(--color-text-danger)] hover:opacity-75 active:opacity-65`},ghost:{primary:`bg-transparent text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,secondary:`bg-transparent text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)] active:bg-[var(--color-background-tertiary)]`,warning:`bg-transparent text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)] active:bg-[var(--color-background-tertiary)]`,danger:`bg-transparent text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)] active:bg-[var(--color-background-tertiary)]`},outline:{primary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-info)] hover:bg-[var(--color-background-secondary)]`,secondary:`bg-transparent border border-[var(--color-border-primary)] text-[var(--color-text-secondary)] hover:bg-[var(--color-background-secondary)]`,warning:`bg-transparent border border-[var(--color-border-warning)] text-[var(--color-text-warning)] hover:bg-[var(--color-background-warning)]`,danger:`bg-transparent border border-[var(--color-border-danger)] text-[var(--color-text-danger)] hover:bg-[var(--color-background-danger)]`}},xx=uy.forwardRef(({variant:e=`solid`,color:t=`primary`,size:n=`md`,className:r,children:i,...a},o)=>(0,X.jsx)(`button`,{ref:o,type:`button`,className:_x(`inline-flex items-center justify-center font-medium transition-colors rounded-full cursor-pointer select-none flex-shrink-0 whitespace-nowrap`,`disabled:opacity-50 disabled:cursor-not-allowed`,yx[n],bx[e][t],r),...a,children:i}));xx.displayName=`Button`;var Sx=e=>(0,X.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 24`,fill:`currentColor`,...e,children:(0,X.jsx)(`path`,{d:`M13 4C13 3.44772 13.4477 3 14 3H20C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11C19.4477 11 19 10.5523 19 10V6.41421L15.2071 10.2071C14.8166 10.5976 14.1834 10.5976 13.7929 10.2071C13.4024 9.81658 13.4024 9.18342 13.7929 8.79289L17.5858 5H14C13.4477 5 13 4.55228 13 4ZM4 13C4.55228 13 5 13.4477 5 14V17.5858L8.79289 13.7929C9.18342 13.4024 9.81658 13.4024 10.2071 13.7929C10.5976 14.1834 10.5976 14.8166 10.2071 15.2071L6.41421 19H10C10.5523 19 11 19.4477 11 20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13Z`,fill:`currentColor`})}),Cx={create:(0,X.jsxs)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,children:[(0,X.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,X.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})]}),modify:(0,X.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,children:(0,X.jsx)(`path`,{d:`M4 15c2-3 5-5 8-2s6 1 8-2`})}),delete:(0,X.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,children:(0,X.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})}),action:(0,X.jsxs)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,X.jsx)(`polyline`,{points:`12 5 19 12 12 19`})]})},wx={create:{color:`light-dark(#16a34a, #4ade80)`,bg:`light-dark(#f0fdf4, #052e16)`},modify:{color:`light-dark(#ca8a04, #facc15)`,bg:`light-dark(#fefce8, #422006)`},delete:{color:`light-dark(#dc2626, #f87171)`,bg:`light-dark(#fef2f2, #450a0a)`},action:{color:`light-dark(#2563eb, #60a5fa)`,bg:`light-dark(#eff6ff, #172554)`}},Tx={info:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,X.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]}),warning:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z`}),(0,X.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,X.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),error:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,X.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),success:(0,X.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`polyline`,{points:`9 12 12 15 16 10`})]})},Ex={info:{bg:`light-dark(#eff6ff, #172554)`,border:`light-dark(#bfdbfe, #1e3a5f)`,text:`light-dark(#1e40af, #93c5fd)`},warning:{bg:`light-dark(#fefce8, #422006)`,border:`light-dark(#fde047, #854d0e)`,text:`light-dark(#a16207, #fde047)`},error:{bg:`light-dark(#fef2f2, #450a0a)`,border:`light-dark(#fecaca, #7f1d1d)`,text:`light-dark(#b91c1c, #fca5a5)`},success:{bg:`light-dark(#f0fdf4, #052e16)`,border:`light-dark(#bbf7d0, #14532d)`,text:`light-dark(#15803d, #86efac)`}};function Dx({content:e}){return(0,X.jsx)(`div`,{className:`space-y-2`,children:e.map((e,t)=>(0,X.jsxs)(`div`,{className:`flex justify-between items-start gap-4 ${e.emphasis?`font-semibold pt-2 border-t border-[var(--color-border-tertiary)]`:``}`,children:[(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,X.jsx)(`span`,{className:e.emphasis?`text-[var(--color-text-primary)]`:`text-[var(--color-text-secondary)]`,children:e.label}),e.sublabel&&(0,X.jsx)(`p`,{className:`text-xs text-[var(--color-text-secondary)] mt-0.5`,children:e.sublabel})]}),(0,X.jsx)(`span`,{className:`text-[var(--color-text-primary)] flex-shrink-0`,children:e.value})]},t))})}function Ox({content:e}){return(0,X.jsx)(`div`,{className:`space-y-3`,children:e.map(e=>(0,X.jsxs)(`div`,{className:`flex items-center gap-3 p-2 rounded-lg bg-[var(--color-background-secondary)]`,children:[e.image&&(0,X.jsx)(`img`,{src:e.image,alt:e.title,className:`w-12 h-12 rounded-lg object-cover flex-shrink-0`}),(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsx)(`span`,{className:`text-sm font-medium text-[var(--color-text-primary)] truncate`,children:e.title}),e.badge&&(0,X.jsx)(`span`,{className:`px-1.5 py-0.5 text-xs rounded bg-[var(--color-ring-primary)] text-white`,children:e.badge})]}),e.subtitle&&(0,X.jsx)(`p`,{className:`text-xs text-[var(--color-text-secondary)] truncate`,children:e.subtitle})]}),e.value&&(0,X.jsx)(`span`,{className:`text-sm font-medium text-[var(--color-text-primary)] flex-shrink-0`,children:e.value})]},e.id))})}function kx({content:e}){return(0,X.jsx)(`ul`,{className:`space-y-2`,children:e.map(e=>{let t=wx[e.type];return(0,X.jsx)(`li`,{className:`rounded-lg border border-[var(--color-border-tertiary)] p-3`,style:{backgroundColor:t.bg},children:(0,X.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,X.jsx)(`span`,{className:`flex-shrink-0 w-6 h-6 flex items-center justify-center rounded font-mono font-bold bg-[var(--color-background-primary)]`,style:{color:t.color,borderWidth:1,borderStyle:`solid`,borderColor:t.color},children:Cx[e.type]}),(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[e.path&&(0,X.jsx)(`code`,{className:`block text-xs text-[var(--color-text-secondary)] font-mono truncate mb-1`,children:e.path}),(0,X.jsx)(`p`,{className:`text-sm text-[var(--color-text-primary)]`,children:e.description}),e.details&&(0,X.jsx)(`p`,{className:`mt-1 text-xs text-[var(--color-text-secondary)]`,children:e.details})]})]})},e.id)})})}function Ax({content:e}){return(0,X.jsx)(`div`,{className:`p-4 rounded-lg bg-[var(--color-background-secondary)] border border-[var(--color-border-tertiary)]`,children:(0,X.jsx)(`p`,{className:`text-sm text-[var(--color-text-primary)] whitespace-pre-wrap`,children:e})})}function jx({content:e}){return(0,X.jsx)(`div`,{className:`p-3 rounded-lg bg-[var(--color-background-secondary)] space-y-1`,children:e.map((e,t)=>(0,X.jsxs)(`div`,{className:`flex justify-between items-center ${e.emphasis?`font-semibold text-lg pt-2 border-t border-[var(--color-border-tertiary)] mt-2`:`text-sm`}`,children:[(0,X.jsx)(`span`,{className:e.emphasis?`text-[var(--color-text-primary)]`:`text-[var(--color-text-secondary)]`,children:e.label}),(0,X.jsx)(`span`,{className:`text-[var(--color-text-primary)]`,children:e.value})]},t))})}function Mx({section:e}){return(0,X.jsxs)(`div`,{className:`space-y-2`,children:[e.title&&(0,X.jsx)(`h2`,{className:`text-sm font-medium text-[var(--color-text-secondary)] uppercase tracking-wide`,children:e.title}),(()=>{switch(e.type){case`details`:return(0,X.jsx)(Dx,{content:e.content});case`items`:return(0,X.jsx)(Ox,{content:e.content});case`changes`:return(0,X.jsx)(kx,{content:e.content});case`preview`:return(0,X.jsx)(Ax,{content:e.content});case`summary`:return(0,X.jsx)(jx,{content:e.content})}})()]})}function Nx({alert:e}){let t=Ex[e.type];return(0,X.jsxs)(`div`,{className:`flex items-center gap-2 p-3 rounded-lg`,style:{backgroundColor:t.bg,borderWidth:1,borderStyle:`solid`,borderColor:t.border},children:[(0,X.jsx)(`span`,{className:`flex-shrink-0`,style:{color:t.text},children:Tx[e.type]}),(0,X.jsx)(`span`,{className:`text-sm`,style:{color:t.text},children:e.message})]})}function Px(){let{output:e,isLoading:t,isError:n,isCancelled:r,cancelReason:i}=ky(),[a,o]=Uy({decision:null,decidedAt:null,pending:!1,serverMessage:null,serverError:!1}),{touch:s=!1}=Ay(),{hostCapabilities:c}=Hy(),l=jy(),{requestDisplayMode:u,availableModes:d}=By(),f=zy(),p=Vy(),m=Iy(),h=My(),g=d?.includes(`fullscreen`)??!1,_=!!c?.serverTools,v=a.decision??null,y=l===`fullscreen`,b=e??{title:`Review`,sections:[]},ee=()=>{u(`fullscreen`)},x=async e=>{let t=new Date().toISOString(),n=e?`accepted`:`rejected`;p({structuredContent:{decision:n,title:b.title,decidedAt:t}});let r=b.reviewTool;if(!r||!_){o({decision:n,decidedAt:t,pending:!1,serverMessage:null,serverError:!1});return}o({decision:n,decidedAt:t,pending:!0,serverMessage:null,serverError:!1});let i=await f({name:r.name,arguments:{...r.arguments,confirmed:e,decidedAt:t}}),a=i?.structuredContent,s=i?.content?.find(e=>e.type===`text`&&e.text),c=s&&`text`in s?s.text:null;o({decision:n,decidedAt:t,pending:!1,serverMessage:a?.message??c,serverError:a?.status===`error`||a?.status===`cancelled`||!!i?.isError})},S=()=>x(!0),C=()=>x(!1),te=b.acceptLabel??`Confirm`,ne=b.rejectLabel??`Cancel`,re=b.acceptedMessage??`Confirmed`,ie=b.rejectedMessage??`Cancelled`,ae=b.sections??[],oe=b.alerts??[];return t?(0,X.jsxs)(Ry,{className:`flex items-center justify-center gap-2 p-8 text-[var(--color-text-secondary)]`,children:[(0,X.jsx)(`div`,{className:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`}),(0,X.jsx)(`span`,{children:`Loading…`})]}):n?(0,X.jsx)(Ry,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:`Failed to load review data`}):r?(0,X.jsx)(Ry,{className:`flex items-center justify-center p-8 text-[var(--color-text-secondary)]`,children:i??`Request was cancelled`}):(0,X.jsxs)(Ry,{className:`px-4 py-4 space-y-4`,children:[(0,X.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,X.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,X.jsx)(`h1`,{className:`text-xl font-semibold text-[var(--color-text-primary)]`,children:b.title}),b.description&&(0,X.jsx)(`p`,{className:`mt-1 text-sm text-[var(--color-text-secondary)]`,children:b.description})]}),!y&&g&&(0,X.jsx)(xx,{variant:`ghost`,color:`secondary`,size:`sm`,onClick:ee,"aria-label":`Enter fullscreen`,className:`flex-shrink-0`,children:(0,X.jsx)(Sx,{className:`h-4 w-4`,"aria-hidden":`true`})})]}),oe.length>0&&(0,X.jsx)(`div`,{className:`space-y-2`,children:oe.map((e,t)=>(0,X.jsx)(Nx,{alert:e},t))}),ae.map((e,t)=>(0,X.jsx)(Mx,{section:e},t)),(0,X.jsx)(`div`,{className:`pt-2`,children:v===null?(0,X.jsxs)(`div`,{className:`flex gap-3`,children:[(0,X.jsx)(xx,{variant:`outline`,color:`secondary`,onClick:C,size:s?`lg`:`md`,className:`flex-1`,children:ne}),(0,X.jsx)(xx,{variant:`solid`,color:b.acceptDanger?`danger`:`primary`,onClick:S,size:s?`lg`:`md`,className:`flex-1`,children:te})]}):a.pending?(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2 text-[var(--color-text-secondary)]`,children:[(0,X.jsx)(`div`,{className:`w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin`}),(0,X.jsx)(`span`,{className:`font-medium`,children:v===`accepted`?`Confirming...`:`Cancelling...`})]}):(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-1`,children:[a.serverMessage?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`text-xs text-[var(--color-text-secondary)]`,children:v===`accepted`?re:ie}),(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2`,style:{color:a.serverError?`light-dark(#dc2626, #f87171)`:`light-dark(#16a34a, #4ade80)`},children:[(0,X.jsx)(`span`,{className:`text-lg`,children:a.serverError?`✗`:`✓`}),(0,X.jsx)(`span`,{className:`font-medium`,children:a.serverMessage})]})]}):(0,X.jsxs)(`div`,{className:`flex items-center justify-center gap-2`,style:{color:v===`accepted`?`light-dark(#16a34a, #4ade80)`:`light-dark(#dc2626, #f87171)`},children:[(0,X.jsx)(`span`,{className:`text-lg`,children:v===`accepted`?`✓`:`✗`}),(0,X.jsx)(`span`,{className:`font-medium`,children:v===`accepted`?re:ie})]}),a.decidedAt&&(0,X.jsx)(`span`,{className:`text-xs text-[var(--color-text-secondary)]`,children:new Date(a.decidedAt).toLocaleString(h,{timeZone:m})})]})})]})}var Fx=document.getElementById(`root`);Fx&&(0,vx.createRoot)(Fx).render((0,X.jsx)(by,{appInfo:{name:`sunpeak-app`,version:`0.1.0`},children:(0,X.jsx)(Px,{})}))})();
130
130
  </script>
131
131
  </body>
132
132
  </html>
@@ -12,5 +12,5 @@
12
12
  }
13
13
  },
14
14
  "name": "review",
15
- "uri": "ui://review-mpr4phm7"
15
+ "uri": "ui://review-mpy8qdy0"
16
16
  }
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.0_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__2716be3cfdded4061524efe028da79d6/node_modules/vitest/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.0_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__2716be3cfdded4061524efe028da79d6/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.1_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__9862c6f699a7149a2b9d1e1df7532c52/node_modules/vitest/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.1_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__9862c6f699a7149a2b9d1e1df7532c52/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.0_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__2716be3cfdded4061524efe028da79d6/node_modules/vitest/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.0_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__2716be3cfdded4061524efe028da79d6/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.1_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__9862c6f699a7149a2b9d1e1df7532c52/node_modules/vitest/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/vitest@4.1.7_@opentelemetry+api@1.9.1_@types+node@25.9.1_happy-dom@20.9.0_jsdom@29.0.1__9862c6f699a7149a2b9d1e1df7532c52/node_modules:/home/runner/work/sunpeak/sunpeak/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
@@ -1,8 +1,8 @@
1
1
  {
2
- "hash": "d633bff1",
2
+ "hash": "7eee5aab",
3
3
  "configHash": "88b9bff9",
4
- "lockfileHash": "a0e60896",
5
- "browserHash": "57aad99b",
4
+ "lockfileHash": "a687e9a7",
5
+ "browserHash": "90bbbff6",
6
6
  "optimized": {},
7
7
  "chunks": {}
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { r as __require } from "./chunk-B4lejLz5.js";
2
2
  import { At as _undefined, Bn as record, Dn as never, Lt as boolean, Mn as object, Nt as array, Wn as string, jn as number, nr as union, rr as unknown, vn as literal, wi as config } from "./external-FYuy9xf8.js";
3
3
  import { A as ToolSchema, D as ResourceLinkSchema, E as RequestIdSchema, S as PingRequestSchema, T as ReadResourceResultSchema, a as ContentBlockSchema, c as CreateMessageResultWithToolsSchema, d as ImplementationSchema, f as JSONRPCMessageSchema, i as CallToolResultSchema, l as EmbeddedResourceSchema, n as mergeCapabilities, r as CallToolRequestSchema, s as CreateMessageResultSchema, t as Protocol, u as EmptyResultSchema, v as ListResourcesResultSchema, y as ListToolsRequestSchema } from "./protocol-C6CgfjXq.js";
4
- //#region ../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.2_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_f5b843da9146ebea748e10ad8dfce46a/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js
4
+ //#region ../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.3_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_198afb8973c94867da191e43eebfe140/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js
5
5
  ((X) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(X, { get: (Y, Z) => (typeof __require < "u" ? __require : Y)[Z] }) : X)(function(X) {
6
6
  if (typeof __require < "u") return __require.apply(this, arguments);
7
7
  throw Error("Dynamic require of \"" + X + "\" is not supported");