@wippy-fe/proxy 0.0.3 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import * as tailwindcss_types_config from 'tailwindcss/types/config';
1
2
  import * as nanoevents from 'nanoevents';
2
3
  import { ConfirmationOptions } from 'primevue/confirmationoptions';
3
4
  import * as primevue_toast from 'primevue/toast';
@@ -415,15 +416,94 @@ type Events = {
415
416
  [K in string as K extends KnownTopics ? never : K]: (data: WsMessage) => void;
416
417
  };
417
418
 
418
- declare var cssRS = {
419
-
419
+ var session = {
420
+ type: "non-persistent"
420
421
  };
421
- declare var featureRS = {
422
+ var history = "browser";
423
+ var env = {
424
+ APP_API_URL: "",
425
+ APP_AUTH_API_URL: "",
426
+ APP_WEBSOCKET_URL: ""
427
+ };
428
+ var featureRS = {
422
429
  session: session,
423
430
  history: history,
424
431
  env: env
425
432
  };
426
- declare var textRS = {
433
+
434
+ var chat = {
435
+ emptyState: {
436
+ title: "No chat session selected",
437
+ description: "Please select a session from the dropdown above or start a new conversation.",
438
+ goToHome: "Go to Home Page",
439
+ loadingAgents: "Loading agents...",
440
+ selectAgent: "Select Agent",
441
+ startChat: "Start Chat",
442
+ startChatError: "Failed to start chat",
443
+ noAgents: "No agents available. Please contact your administrator.",
444
+ dropFiles: "Drop files here to upload"
445
+ }
446
+ };
447
+ var customPage = {
448
+ loading: {
449
+ title: "Loading page content..."
450
+ },
451
+ error: {
452
+ title: "Failed to load page content"
453
+ }
454
+ };
455
+ var home = {
456
+ loading: "Application is Loading",
457
+ error: {
458
+ title: "Error Loading Application"
459
+ },
460
+ noHomePage: {
461
+ title: "No Home Page Detected",
462
+ message: "Probably backend configuration is malformed"
463
+ }
464
+ };
465
+ var app = {
466
+ title: "Wippy App",
467
+ appName: "Wippy",
468
+ icon: "wippy:logo"
469
+ };
470
+ var login = {
471
+ error: {
472
+ title: "Session Token Expired",
473
+ description: "Your session has expired or is no longer valid. Please close this window and log in again to continue."
474
+ }
475
+ };
476
+ var logout = {
477
+ title: "Logout",
478
+ description: "Logging out..."
479
+ };
480
+ var keeper = {
481
+ controls: {
482
+ newChat: "New Chat",
483
+ searchAgents: "Search agents...",
484
+ undo: "Undo",
485
+ redo: "Redo",
486
+ download: "Registry To File System",
487
+ upload: "File System To Registry",
488
+ codeAssistant: "Wippy Code Assistant",
489
+ syncControls: "Sync Controls",
490
+ confirmUpload: {
491
+ title: "Confirm Upload",
492
+ message: "Do you wish to upload file system changes to registry? This will overwrite current state",
493
+ cancel: "Cancel",
494
+ upload: "Upload",
495
+ cancelled: {
496
+ title: "Upload cancelled",
497
+ message: "The upload operation was cancelled"
498
+ }
499
+ }
500
+ },
501
+ version: {
502
+ label: "Version:",
503
+ tooltip: "Version {{version}}"
504
+ }
505
+ };
506
+ var textRS = {
427
507
  chat: chat,
428
508
  customPage: customPage,
429
509
  home: home,
@@ -435,7 +515,6 @@ declare var textRS = {
435
515
 
436
516
  type I18NFeatureTypes = typeof featureRS;
437
517
  type I18NTextTypes = typeof textRS;
438
- type I18NCssTypes = typeof cssRS;
439
518
 
440
519
  /**
441
520
  * All API route templates, grouped by domain.
@@ -497,8 +576,8 @@ interface ApiRoutes {
497
576
  undo: string;
498
577
  redo: string;
499
578
  };
500
- npm: {
501
- globalAutoload: string;
579
+ components: {
580
+ list: string;
502
581
  };
503
582
  tools: {
504
583
  byName: string;
@@ -559,9 +638,14 @@ interface AppAuthConfig {
559
638
  token: string;
560
639
  expiresAt: string;
561
640
  }
641
+ interface CssVariablesMap {
642
+ [key: string]: string | Record<string, string> | undefined;
643
+ '@dark'?: Record<string, string>;
644
+ '@light'?: Record<string, string>;
645
+ }
562
646
  interface AppCustomization {
563
647
  customCSS?: string;
564
- cssVariables?: I18NCssTypes;
648
+ cssVariables?: CssVariablesMap;
565
649
  i18n?: Partial<I18NTextTypes>;
566
650
  icons?: Record<string, {
567
651
  body: string;
@@ -672,27 +756,32 @@ declare const resolvers: {
672
756
  readonly loadWebComponent: (componentId: string, tagName?: string) => Promise<void>;
673
757
  hostCss: typeof hostCssRaw;
674
758
  tailwindConfig: {
675
- content: string[];
676
- theme: {
677
- extend: {
678
- colors: {
679
- secondary: {
680
- 50: string;
681
- 100: string;
682
- 200: string;
683
- 300: string;
684
- 400: string;
685
- 500: string;
686
- 600: string;
687
- 700: string;
688
- 800: string;
689
- 900: string;
690
- 950: string;
759
+ presets: {
760
+ theme: {
761
+ extend: {
762
+ colors: {
763
+ secondary: {
764
+ 50: string;
765
+ 100: string;
766
+ 200: string;
767
+ 300: string;
768
+ 400: string;
769
+ 500: string;
770
+ 600: string;
771
+ 700: string;
772
+ 800: string;
773
+ 900: string;
774
+ 950: string;
775
+ };
691
776
  };
692
777
  };
693
778
  };
694
- };
695
- plugins: any[];
779
+ plugins: {
780
+ handler: tailwindcss_types_config.PluginCreator;
781
+ config?: Partial<tailwindcss_types_config.Config>;
782
+ }[];
783
+ }[];
784
+ content: string[];
696
785
  };
697
786
  /**
698
787
  * Automatically defines a web component based on the import meta URL if imported with `declare-tag` in the query parameters.
@@ -752,27 +841,32 @@ declare const form: {
752
841
  declare const hostCss: typeof hostCssRaw;
753
842
  declare const loadCss: (cssUrl: string) => Promise<string>;
754
843
  declare const tailwindConfig: {
755
- content: string[];
756
- theme: {
757
- extend: {
758
- colors: {
759
- secondary: {
760
- 50: string;
761
- 100: string;
762
- 200: string;
763
- 300: string;
764
- 400: string;
765
- 500: string;
766
- 600: string;
767
- 700: string;
768
- 800: string;
769
- 900: string;
770
- 950: string;
844
+ presets: {
845
+ theme: {
846
+ extend: {
847
+ colors: {
848
+ secondary: {
849
+ 50: string;
850
+ 100: string;
851
+ 200: string;
852
+ 300: string;
853
+ 400: string;
854
+ 500: string;
855
+ 600: string;
856
+ 700: string;
857
+ 800: string;
858
+ 900: string;
859
+ 950: string;
860
+ };
771
861
  };
772
862
  };
773
863
  };
774
- };
775
- plugins: any[];
864
+ plugins: {
865
+ handler: tailwindcss_types_config.PluginCreator;
866
+ config?: Partial<tailwindcss_types_config.Config>;
867
+ }[];
868
+ }[];
869
+ content: string[];
776
870
  };
777
871
  declare const loadWebComponent: (componentId: string, tagName?: string) => Promise<void>;
778
872
  declare const addIcons: (addCollectionFn: typeof addCollection) => void;
package/index.mjs CHANGED
@@ -1 +1 @@
1
- const I=""+new URL("assets/fonts.css",import.meta.url).href,j=""+new URL("assets/iframe.css",import.meta.url).href,Y=""+new URL("assets/data-content.css",import.meta.url).href,L=""+new URL("assets/tailwind.css",import.meta.url).href,B=""+new URL("assets/theme-config.css",import.meta.url).href,X=I,H=j,V=Y,W=L,T=B,N=Object.freeze(Object.defineProperty({__proto__:null,fontCssUrl:X,iframeCssUrl:H,markdownCssUrl:V,primeVueCssUrl:W,themeConfigUrl:T},Symbol.toStringTag,{value:"Module"})),G="wippy",Z=1772122748,J={agent:{body:'<path fill="currentColor" d="M6.332 3A2.33 2.33 0 004 5.332v1.889a3.943 3.943 0 003.943 3.943h3.776a3.944 3.944 0 003.945-3.943V5.332A2.333 2.333 0 0013.33 3Zm0 1.166h6.998c.644 0 1.166.522 1.166 1.166v1.889a2.777 2.777 0 01-2.777 2.777H7.943a2.777 2.777 0 01-2.777-2.777V5.332c0-.644.522-1.166 1.166-1.166m1.584 1.887a.993.993 0 10.001 1.985.993.993 0 00-.001-1.985m3.732 0a.993.993 0 10.002 1.985.993.993 0 00-.002-1.985m-1.923 5.853a5.72 5.72 0 00-4.047 1.678 5.73 5.73 0 00-1.6 3.104l-.021.144-.022.176c-.038.344.246.625.592.625.3 0 .546-.212.639-.49a1 1 0 00.03-.135l.005-.028a4.48 4.48 0 012.713-3.48 4.47 4.47 0 016.136 3.48l.004.028a1 1 0 00.032.135c.092.278.339.49.638.49.346 0 .63-.281.592-.625l-.021-.176-.022-.145a5.72 5.72 0 00-1.6-3.103 5.73 5.73 0 00-4.048-1.678"/>'},logo:{body:'<g fill="none"><path fill="#FF8201" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11 1-2c3-9 3-19-1-28l8 4c9 6 15 17 19 27a109 109 0 017 64l-2 8 2 13c1 5 4 9 6 13a51 51 0 015 12l1 3c4 24-13 47-30 61a176 176 0 01-127 36c-39-4-90-24-115-55-11-15-16-36-8-53 4-7 10-13 10-21-1-7-4-10-6-16-6-12-6-26-5-39 2-17 10-41 24-52l8-4-2 8 1 16 2 4 1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#FFB90B" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11-2 3c-2 6-6 10-11 14-2 2-3 3-7 3l-13 3-2 1-5 3c-3 2-8 6-9 10l-2 2-5 9c-4 6-10 11-17 13-6 2-16 3-22 2l-10-4c-4-2-6-4-7-8-2-4-1-6-5-9-5-3-15-2-20-4v1-1c-2-4-7-9-11-11l-4-3-3-1c-8-3-15-3-23-3-10 1-23-13-24-21l1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#FE5800" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11-2 3c-2 6-6 10-11 14-2 2-3 3-7 3 10-18 0-38-14-50 1 7 0 14-4 20-2 3-6 3-10 4-7 1-19-6-24-10-4-3-9-9-12-15l-4-9c-4-6-10-9-16-13l-12-8-10-14-3-7-3 5-2 8c-2 7-2 14-1 22 4 13 17 15 19 34 0 4 0 8-3 12-3 5-9 9-15 10-7 1-15 0-21-4-10-7-15-17-18-29l-2-10c-4 6-9 13-10 20-3 10-2 23 4 31l3 3c-10 1-23-13-24-21l1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#00A2E4" d="m230 233 6-1 14-2h34l17 2c4 1 21 4 23 6l-5 3c-3 2-8 6-9 10l-2 2-5 9c-4 6-10 11-17 13-6 2-16 3-22 2l-10-4c-4-2-6-4-7-8-2-4-1-6-5-9-5-3-15-2-20-4v1-1c-2-4-7-9-11-11l-4-3 15-3z"/><path fill="#FEEE5D" d="M255 182c5 2 6 4 10 8 6 7 10 16 16 22 6 5 12 8 19 8 5-1 9-2 13-5v5c-1 5-4 8-8 10l-3 1-1 1-17-2h-34l-14 2-6 1-1-1c1-2 7-5 10-6l9-9c7-9 4-14 5-25z"/><path fill="#2E478E" d="m359 184 8 4c9 6 15 17 19 27a109 109 0 017 64l-2 8 2 13c1 5 4 9 6 13a51 51 0 015 12l1 3c4 24-13 47-30 61a176 176 0 01-127 36c-39-4-90-24-115-55-11-15-16-36-8-53 4-7 10-13 10-21-1-7-4-10-6-16-6-12-6-26-5-39 2-17 10-41 24-52l8-4-2 8 1 16 2 4c1 8 14 22 24 21 8 0 15 0 23 3l3 1 4 3c4 2 9 7 11 11l-1 2c-6-6-11-10-20-13-12-4-20-2-31 4l-2 1-13 12-1 4-3 6-4 10-1 4-1 8c-1 10 0 19-7 26l-3 7c-4 10-2 20 2 29 13 26 48 42 74 51 15 5 35 10 50 11 26 1 54-7 77-18 21-10 46-26 54-49 3-10 3-22-3-31l-5-10c-1-9 0-18-2-26v-20c1-17-4-33-11-48 0 4-2 8-4 12-2 5-4 10-9 14l-3 4-9-3a36 36 0 00-28 9l-2 2c-1 0-6 3-6 1 1-4 6-8 9-10l5-3 2-1 13-3c4 0 5-1 7-3a38 38 0 0013-17l1-2c3-9 3-19-1-28"/><path fill="#FE5800" d="m146 282-3-5a71 71 0 013-65l1 4 2 6c5 10 10 18 21 23l-2 1-13 12-1 4-3 6-4 10z"/><path fill="#FEB509" d="M155 258c-5-8-8-17-8-27l2-9c5 10 10 18 21 23l-2 1zl-1 4-3 6z"/><path fill="#0E0D26" d="m402 319 2 6-1-1z"/><path fill="#0073D1" d="M310 251c0 2 5-1 6-1v1l-2 2-5 14-1 4c-2 12-7 22-18 29-7 5-18 6-27 4-13-3-23-13-28-24l-7-15-5-9-1-1-1-1 1-2v1-1c5 2 15 1 20 4 4 3 3 5 5 9 1 4 3 6 7 8l10 4c6 1 16 0 22-2 7-2 13-7 17-13l5-9z"/><path fill="#0E0D26" d="M222 252v1l1 3-1-1-1-1z"/><path fill="#0A183F" d="m311 253-1 1z"/><path fill="#FEEE5D" d="m316 250 2-2 8-5c6-3 14-5 20-4l9 3 4 2c4 2 7 4 9 7l3 4 2 2v1c-1 1-3 0-4-1l-8-5c-6-3-10-3-16-3-15 0-26 12-34 23v-5 2h-2v-2l5-14 2-2zm-146-5c11-6 19-8 31-4 9 3 14 7 20 13l1 1c-1 1 1 4 1 6 0 4 0 7 2 11l-5-6c-9-9-19-16-32-17-12-1-22 1-30 10l-3 4v-1h-1l1-4 13-12z"/><path fill="#FEB509" d="M367 224h1c2 7 3 15 1 22l-1 5c-2-3-5-5-9-7l-4-2 3-4c5-4 7-9 9-14m2 33c1 1 3 2 4 1v-1l2 4v2c-2 0-5-3-6-4z"/><path fill="#0A183F" d="M208 329c-9 12-23 14-36 8-8-3-15-10-18-18-4-11-4-24 1-35 3-9 13-19 23-20l11 1 1 1 4 1c17 7 25 30 21 47l-1 2c0 4-4 10-6 13"/><path fill="#FEFEFE" d="M208 329c-9 12-23 14-36 8-8-3-15-10-18-18-4-11-4-24 1-35 3-9 13-19 23-20l11 1 1 1c-7 2-12 6-16 12-8 14-6 38 8 47 9 6 23 2 29-5l3-4c0 4-4 10-6 13"/><path fill="#0073D1" d="M208 329a28 28 0 01-39-3c-7-8-9-17-9-27 0-14 10-31 24-34h5l1 1c-7 2-12 6-16 12-8 14-6 38 8 47 9 6 23 2 29-5l3-4c0 4-4 10-6 13"/><path fill="#FEFEFE" d="M195 280a9 9 0 114 18 9 9 0 01-4-18"/><path fill="#0A183F" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8l-7-12-2-8c-3-16 5-38 21-44z"/><path fill="#0073D1" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8l-7-12c1-1 1 0 2 1l8 7c5 2 10 2 15 1 24-8 20-57-6-60v-1z"/><path fill="#FEFEFE" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8 5 3 10 5 16 5 15 0 26-15 27-30a40 40 0 00-1-13c-2-11-8-21-18-25z"/><path fill="#015FD1" d="M373 305h-1l1-8z"/><path fill="#FEFEFE" d="M337 279a9 9 0 113 19 9 9 0 01-3-19"/><path fill="#0A183F" d="M168 345c6 0 9 4 14 7a121 121 0 0053 23c10 0 17-1 26-3a151 151 0 0130 0c10 2 19 3 28 0 13-4 25-11 35-20 5-4 10-11 17-5l1 5c-4 0-5-2-8 1l-10 10c-10 8-23 16-35 19-10 3-19 1-29 0l-12-1c-12 0-23 1-35 3-20 2-40-6-56-18l-9-7c-3-2-6-6-10-7h-6c-3 0-1-2 0-3 1-3 3-4 6-4"/><path fill="#0A183F" d="M241 344c7-1 19 11 10 13-5 0-11-2-13-8-1-2 0-4 3-5m65 0c6-1 7 3 4 7q-3 4.5-9 6c-4 0-7-1-4-6 1-3 5-6 9-7"/></g>',left:110,top:90,width:305,height:340},tool:{body:'<g fill="none"><g clip-path="url(#svgID0)"><path fill="currentColor" d="M12.616 7.432a2.95 2.95 0 01-3.13.873l-3.955 4.55a1.163 1.163 0 01-1.754-1.528l3.962-4.554a2.944 2.944 0 013.378-4.127L9.6 4.414l.495 1.443 1.5.291 1.518-1.772a2.94 2.94 0 01-.496 3.057z"/></g><defs><clipPath id="svgID0"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></g>',width:16,height:16},user:{body:'<path fill="currentColor" d="M14.263 10.613c1.097 0 1.987.89 1.987 1.987v.662c0 2.613-2.464 5.3-6.625 5.3S3 15.876 3 13.263V12.6c0-1.098.89-1.987 1.987-1.987zm0 1.325H4.987a.66.66 0 00-.663.662v.662c0 1.905 1.898 3.976 5.3 3.976s5.3-2.07 5.3-3.976V12.6a.66.66 0 00-.663-.662M9.625 2a3.644 3.644 0 110 7.288 3.644 3.644 0 010-7.288m0 1.325a2.319 2.319 0 100 4.638 2.319 2.319 0 000-4.638"/>'}},K=20,Q=20,aa={prefix:G,lastModified:Z,icons:J,width:K,height:Q};function ta(a,e){var t;const i=(t=e.customization)==null?void 0:t.icons;i&&a({prefix:"custom",icons:i}),a(aa)}function $(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var w={},z={},U;function ea(){return U||(U=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return i}});function e(t,n){return{handler:t,config:n}}e.withOptions=function(t,n=()=>({})){const l=function(p){return{__options:p,handler:t(p),config:n(p)}};return l.__isOptionsFunction=!0,l.__pluginFunction=t,l.__configFunction=n,l};const i=e}(z)),z}var F;function ra(){return F||(F=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return t}});const e=i(ea());function i(n){return n&&n.__esModule?n:{default:n}}const t=e.default}(w)),w}var x,M;function D(){if(M)return x;M=1;let a=ra();return x=(a.__esModule?a:{default:a}).default,x}var _={},R;function ia(){return R||(R=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return i}});const e=t=>Object.assign({},...Object.entries(t??{}).flatMap(([n,l])=>typeof l=="object"?Object.entries(e(l)).map(([p,v])=>({[n+(p==="DEFAULT"?"":`-${p}`)]:v})):[{[`${n}`]:l}])),i=e}(_)),_}var C,O;function oa(){return O||(O=1,C={importDefault:e=>e&&e.__esModule?e.default:e}),C}var P,S;function na(){if(S)return P;S=1;const a=ia(),{importDefault:e}=oa(),i=e(a),t=["track","thumb","corner"],n=(o,s)=>s?{"@supports (-moz-appearance:none)":o}:o,l=({addBase:o},s)=>{o({"*":n({"scrollbar-color":"initial","scrollbar-width":"initial"},s==="pseudoelements")})},p=()=>({...Object.fromEntries(t.map(o=>[[`&::-webkit-scrollbar-${o}`,{"background-color":`var(--scrollbar-${o})`,"border-radius":`var(--scrollbar-${o}-radius)`}]]).flat())}),v=({preferPseudoElements:o})=>({".scrollbar":{...p(),...n({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},o),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...p(),...n({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},o),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...n({"scrollbar-width":"none"},o),"&::-webkit-scrollbar":{display:"none"}}}),f=o=>typeof o=="function"?o({}):o;return P={addBaseStyles:l,addBaseSizeUtilities:({addUtilities:o},s)=>{o(v({preferPseudoElements:s==="pseudoelements"}))},addColorUtilities:({matchUtilities:o,theme:s})=>{const u=i(s("colors")),b=Object.fromEntries(Object.entries(u).map(([y,g])=>[y,f(g)]));t.forEach(y=>{o({[`scrollbar-${y}`]:g=>({[`--scrollbar-${y}`]:f(g)})},{values:b,type:"color"})})},addRoundedUtilities:({theme:o,matchUtilities:s})=>{t.forEach(u=>{s({[`scrollbar-${u}-rounded`]:b=>({[`--scrollbar-${u}-radius`]:b})},{values:o("borderRadius")})})},addSizeUtilities:({matchUtilities:o,theme:s})=>{["width","height"].forEach(u=>{o({[`scrollbar-${u[0]}`]:b=>({[`--scrollbar-${u}`]:b})},{values:s(u)})})}},P}var k,q;function la(){return q||(q=1,k={addVariants:({addVariant:e})=>{e("scrollbar-hover","&::-webkit-scrollbar-thumb:hover"),e("scrollbar-track-hover","&::-webkit-scrollbar-track:hover"),e("scrollbar-corner-hover","&::-webkit-scrollbar-corner:hover"),e("scrollbar-active","&::-webkit-scrollbar-thumb:active"),e("scrollbar-track-active","&::-webkit-scrollbar-track:active")}}),k}var E,A;function sa(){if(A)return E;A=1;const a=D(),{addBaseStyles:e,addBaseSizeUtilities:i,addColorUtilities:t,addRoundedUtilities:n,addSizeUtilities:l}=na(),{addVariants:p}=la();return E=a.withOptions((v={})=>f=>{let h=v.preferredStrategy??v.preferredstrategy??"standard";h!=="standard"&&h!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),h="standard"),e(f,h),i(f,h),t(f),p(f),v.nocompatible&&(n(f),l(f))}),E}var ca=sa();const pa=$(ca);var da=D();const fa=$(da);var r=a=>`color-mix(in srgb, ${a} calc(100% * <alpha-value>), transparent)`,ua={extend:{colors:{primary:r("var(--p-primary-color)"),"primary-emphasis":r("var(--p-primary-hover-color)"),"primary-emphasis-alt":r("var(--p-primary-active-color)"),"primary-contrast":r("var(--p-primary-contrast-color)"),"primary-50":r("var(--p-primary-50)"),"primary-100":r("var(--p-primary-100)"),"primary-200":r("var(--p-primary-200)"),"primary-300":r("var(--p-primary-300)"),"primary-400":r("var(--p-primary-400)"),"primary-500":r("var(--p-primary-500)"),"primary-600":r("var(--p-primary-600)"),"primary-700":r("var(--p-primary-700)"),"primary-800":r("var(--p-primary-800)"),"primary-900":r("var(--p-primary-900)"),"primary-950":r("var(--p-primary-950)"),"surface-0":r("var(--p-surface-0)"),"surface-50":r("var(--p-surface-50)"),"surface-100":r("var(--p-surface-100)"),"surface-200":r("var(--p-surface-200)"),"surface-300":r("var(--p-surface-300)"),"surface-400":r("var(--p-surface-400)"),"surface-500":r("var(--p-surface-500)"),"surface-600":r("var(--p-surface-600)"),"surface-700":r("var(--p-surface-700)"),"surface-800":r("var(--p-surface-800)"),"surface-900":r("var(--p-surface-900)"),"surface-950":r("var(--p-surface-950)")},keyframes:{enter:{from:{opacity:"var(--p-enter-opacity, 1)",transform:"translate3d(var(--p-enter-translate-x, 0), var(--p-enter-translate-y, 0), 0) scale3d(var(--p-enter-scale, 1), var(--p-enter-scale, 1), var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))"}},leave:{to:{opacity:"var(--p-leave-opacity, 1)",transform:"translate3d(var(--p-leave-translate-x, 0), var(--p-leave-translate-y, 0), 0) scale3d(var(--p-leave-scale, 1), var(--p-leave-scale, 1), var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))"}},fadein:{"0%":{opacity:"0"},"100%":{opacity:"1"}},fadeout:{"0%":{opacity:"1"},"100%":{opacity:"0"}},scalein:{"0%":{opacity:"0",transform:"scaleY(0.8)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"scaleY(1)"}},slidedown:{"0%":{maxHeight:"0"},"100%":{maxHeight:"auto"}},slideup:{"0%":{maxHeight:"1000px"},"100%":{maxHeight:"0"}},fadeinleft:{"0%":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateX(0%)"}},fadeoutleft:{"0%":{opacity:"1",transform:"translateX(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateX(-100%)"}},fadeinright:{"0%":{opacity:"0",transform:"translateX(100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateX(0%)"}},fadeoutright:{"0%":{opacity:"1",transform:"translateX(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateX(100%)"}},fadeinup:{"0%":{opacity:"0",transform:"translateY(-100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateY(0%)"}},fadeoutup:{"0%":{opacity:"1",transform:"translateY(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateY(-100%)"}},fadeindown:{"0%":{opacity:"0",transform:"translateY(100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateY(0%)"}},fadeoutdown:{"0%":{opacity:"1",transform:"translateY(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateY(100%)"}},width:{"0%":{width:"0"},"100%":{width:"100%"}},flip:{from:{transform:"perspective(2000px) rotateX(-100deg)"},to:{transform:"perspective(2000px) rotateX(0)"}},flipleft:{from:{transform:"perspective(2000px) rotateY(-100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateY(0)",opacity:"1"}},flipright:{from:{transform:"perspective(2000px) rotateY(100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateY(0)",opacity:"1"}},flipup:{from:{transform:"perspective(2000px) rotateX(-100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateX(0)",opacity:"1"}},zoomin:{from:{transform:"scale3d(0.3, 0.3, 0.3)",opacity:"0"},"50%":{opacity:"1"}},zoomindown:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",opacity:"1"}},zoominleft:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",opacity:"1"}},zoominright:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",opacity:"1"}},zoominup:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",opacity:"1"}}},animation:{fadein:"fadein 0.15s linear",fadeout:"fadeout 0.15s linear",slidedown:"slidedown 0.45s ease-in-out",slideup:"slideup 0.45s cubic-bezier(0, 1, 0, 1)",scalein:"scalein 0.15s linear",fadeinleft:"fadeinleft 0.15s linear",fadeoutleft:"fadeoutleft 0.15s linear",fadeinright:"fadeinright 0.15s linear",fadeoutright:"fadeoutright 0.15s linear",fadeinup:"fadeinup 0.15s linear",fadeoutup:"fadeoutup 0.15s linear",fadeindown:"fadeindown 0.15s linear",fadeoutdown:"fadeoutdown 0.15s linear",width:"width 0.45s linear",flip:"flip 0.15s linear",flipup:"flipup 0.15s linear",flipleft:"flipleft 0.15s linear",flipright:"flipright 0.15s linear",zoomin:"zoomin 0.15s linear",zoomindown:"zoomindown 0.15s linear",zoominleft:"zoominleft 0.15s linear",zoominright:"zoominright 0.15s linear",zoominup:"zoominup 0.15s linear"},animationDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",400:"400ms",500:"500ms",700:"700ms",1e3:"1000ms"},animationDuration:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",400:"400ms",500:"500ms",700:"700ms",1e3:"1000ms",2e3:"2000ms",3e3:"3000ms"},animationOpacity:({theme:a})=>a("opacity"),animationTranslate:({theme:a})=>a("translate"),animationScale:({theme:a})=>a("scale"),animationRotate:({theme:a})=>a("rotate")}},ma=({addUtilities:a})=>{a({".backface-visible":{"backface-visibility":"visible"},".backface-hidden":{"backface-visibility":"hidden"}})},va=({matchUtilities:a,theme:e})=>{a({"animate-delay":i=>({"animation-delay":i})},{values:e("animationDelay")})},ha=({addUtilities:a})=>{a({".animate-normal":{"animation-direction":"normal"},".animate-reverse":{"animation-direction":"reverse"},".animate-alternate":{"animation-direction":"alternate"},".animate-alternate-reverse":{"animation-direction":"alternate-reverse"}})},ba=({matchUtilities:a,theme:e})=>{a({"animate-duration":i=>({"animation-duration":i})},{values:e("animationDuration")})},ya=({addUtilities:a,matchUtilities:e,theme:i})=>{a({"@keyframes enter":i("keyframes.enter"),"@keyframes leave":i("keyframes.leave"),".animate-enter":{"animation-name":"enter","--p-enter-opacity":"initial","--p-enter-scale":"initial","--p-enter-rotate":"initial","--p-enter-translate-x":"initial","--p-enter-translate-y":"initial"},".animate-leave":{"animation-name":"leave","--p-leave-opacity":"initial","--p-leave-scale":"initial","--p-leave-rotate":"initial","--p-leave-translate-x":"initial","--p-leave-translate-y":"initial"}}),e({"fade-in":t=>({"--p-enter-opacity":t}),"fade-out":t=>({"--p-leave-opacity":t})},{values:i("animationOpacity")}),e({"zoom-in":t=>({"--p-enter-scale":t}),"zoom-out":t=>({"--p-leave-scale":t})},{values:i("animationScale")}),e({"spin-in":t=>({"--p-enter-rotate":t}),"spin-out":t=>({"--p-leave-rotate":t})},{values:i("animationRotate")}),e({"slide-in-from-t":t=>({"--p-enter-translate-y":`-${t}`}),"slide-in-from-b":t=>({"--p-enter-translate-y":t}),"slide-in-from-l":t=>({"--p-enter-translate-x":`-${t}`}),"slide-in-from-r":t=>({"--p-enter-translate-x":t}),"slide-out-from-t":t=>({"--p-leave-translate-y":`-${t}`}),"slide-out-from-b":t=>({"--p-leave-translate-y":t}),"slide-out-from-l":t=>({"--p-leave-translate-x":`-${t}`}),"slide-out-from-r":t=>({"--p-leave-translate-x":t})},{values:i("translate")})},ga=({addUtilities:a})=>{a({".animate-fill-none":{"animation-fill-mode":"none"},".animate-fill-forwards":{"animation-fill-mode":"forwards"},".animate-fill-backwards":{"animation-fill-mode":"backwards"},".animate-fill-both":{"animation-fill-mode":"both"}})},wa=({addUtilities:a})=>{a({".animate-infinite":{"animation-iteration-count":"infinite"},".animate-once":{"animation-iteration-count":"1"},".animate-twice":{"animation-iteration-count":"2"}})},za=({addUtilities:a})=>{a({".animate-running":{"animation-play-state":"running"},".animate-paused":{"animation-play-state":"paused"}})},xa=({addUtilities:a})=>{a({".border-surface":{"border-color":"var(--p-content-border-color)"},".bg-emphasis":{background:"var(--p-content-hover-background)",color:"var(--p-content-hover-color)"},".bg-highlight":{background:"var(--p-highlight-background)",color:"var(--p-highlight-color)"},".bg-highlight-emphasis":{background:"var(--p-highlight-focus-background)",color:"var(--p-highlight-focus-color)"},".rounded-border":{"border-radius":"var(--p-content-border-radius)"},".text-color":{color:"var(--p-text-color)"},".text-color-emphasis":{color:"var(--p-text-hover-color)"},".text-muted-color":{color:"var(--p-text-muted-color)"},".text-muted-color-emphasis":{color:"var(--p-text-hover-muted-color)"}})},_a=({addUtilities:a})=>{a({".animate-ease-linear":{"animation-timing-function":"linear"},".animate-ease-in":{"animation-timing-function":"cubic-bezier(0.4, 0, 1, 1)"},".animate-ease-out":{"animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"},".animate-ease-in-out":{"animation-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}})},d={backface:ma,delay:va,direction:ha,duration:ba,enterleave:ya,fillMode:ga,iterationCount:wa,playState:za,preset:xa,timingFunction:_a},Ca=fa(a=>{d.backface(a),d.delay(a),d.direction(a),d.duration(a),d.fillMode(a),d.iterationCount(a),d.playState(a),d.timingFunction(a),d.preset(a),d.enterleave(a)},{theme:ua});const Pa={content:["./index.html","./src/**/*.{vue,ts}"],theme:{extend:{colors:{secondary:{50:"var(--p-secondary-50)",100:"var(--p-secondary-100)",200:"var(--p-secondary-200)",300:"var(--p-secondary-300)",400:"var(--p-secondary-400)",500:"var(--p-secondary-500)",600:"var(--p-secondary-600)",700:"var(--p-secondary-700)",800:"var(--p-secondary-800)",900:"var(--p-secondary-900)",950:"var(--p-secondary-950)"}}}},plugins:[Ca,pa({nocompatible:!0,preferredStrategy:"pseudoelements"})]},ka="__WIPPY_APP_CONFIG__",Ea="__WIPPY_APP_API__";function m(){const a=window[Ea];if(!a)throw new Error('@wippy-fe/proxy: Proxy globals not found. For dev/testing without the Wippy host, add <script src="dev-proxy.js"><\/script> to your HTML.');return a}function Ua(){const a=window[ka];if(!a)throw new Error('@wippy-fe/proxy: App config globals not found. For dev/testing without the Wippy host, add <script src="dev-proxy.js"><\/script> to your HTML.');return a}const c={get api(){return m().api},get host(){return m().host},get iframe(){return console.warn("Attention: `iframe` is deprecated, use `host` instead to host calls"),m().iframe},get on(){return m().on},get config(){return m().config},get form(){return console.warn("Attention: `form` is deprecated, use direct api calls instead"),m().form},get loadWebComponent(){return m().loadWebComponent},hostCss:N,tailwindConfig:Pa,define:(a,e)=>{const i=new URL(a),n=new URLSearchParams(i.search).get("declare-tag");n&&customElements.define(n,e)},loadCss:async a=>(await m().api.get(a)).data,addIcons:a=>{ta(a,Ua())}},Oa=c.define,Sa=c.api,qa=c.host,Aa=c.iframe,$a=c.on,Da=c.config,Ia=c.form,ja=c.hostCss,Ya=c.loadCss,La=c.tailwindConfig,Ba=c.loadWebComponent,Xa=c.addIcons;export{Xa as addIcons,Sa as api,Da as config,c as default,Oa as define,Ia as form,qa as host,ja as hostCss,Aa as iframe,Ya as loadCss,Ba as loadWebComponent,$a as on,La as tailwindConfig};
1
+ const Z=""+new URL("assets/fonts.css",import.meta.url).href,Q=""+new URL("assets/iframe.css",import.meta.url).href,ee=""+new URL("assets/data-content.css",import.meta.url).href,te=""+new URL("assets/tailwind.css",import.meta.url).href,re=""+new URL("assets/theme-config.css",import.meta.url).href,ae=Z,ie=Q,ne=ee,oe=te,le=re,se=Object.freeze(Object.defineProperty({__proto__:null,fontCssUrl:ae,iframeCssUrl:ie,markdownCssUrl:ne,primeVueCssUrl:oe,themeConfigUrl:le},Symbol.toStringTag,{value:"Module"})),ce="wippy",ue=1772122748,de={agent:{body:'<path fill="currentColor" d="M6.332 3A2.33 2.33 0 004 5.332v1.889a3.943 3.943 0 003.943 3.943h3.776a3.944 3.944 0 003.945-3.943V5.332A2.333 2.333 0 0013.33 3Zm0 1.166h6.998c.644 0 1.166.522 1.166 1.166v1.889a2.777 2.777 0 01-2.777 2.777H7.943a2.777 2.777 0 01-2.777-2.777V5.332c0-.644.522-1.166 1.166-1.166m1.584 1.887a.993.993 0 10.001 1.985.993.993 0 00-.001-1.985m3.732 0a.993.993 0 10.002 1.985.993.993 0 00-.002-1.985m-1.923 5.853a5.72 5.72 0 00-4.047 1.678 5.73 5.73 0 00-1.6 3.104l-.021.144-.022.176c-.038.344.246.625.592.625.3 0 .546-.212.639-.49a1 1 0 00.03-.135l.005-.028a4.48 4.48 0 012.713-3.48 4.47 4.47 0 016.136 3.48l.004.028a1 1 0 00.032.135c.092.278.339.49.638.49.346 0 .63-.281.592-.625l-.021-.176-.022-.145a5.72 5.72 0 00-1.6-3.103 5.73 5.73 0 00-4.048-1.678"/>'},logo:{body:'<g fill="none"><path fill="#FF8201" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11 1-2c3-9 3-19-1-28l8 4c9 6 15 17 19 27a109 109 0 017 64l-2 8 2 13c1 5 4 9 6 13a51 51 0 015 12l1 3c4 24-13 47-30 61a176 176 0 01-127 36c-39-4-90-24-115-55-11-15-16-36-8-53 4-7 10-13 10-21-1-7-4-10-6-16-6-12-6-26-5-39 2-17 10-41 24-52l8-4-2 8 1 16 2 4 1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#FFB90B" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11-2 3c-2 6-6 10-11 14-2 2-3 3-7 3l-13 3-2 1-5 3c-3 2-8 6-9 10l-2 2-5 9c-4 6-10 11-17 13-6 2-16 3-22 2l-10-4c-4-2-6-4-7-8-2-4-1-6-5-9-5-3-15-2-20-4v1-1c-2-4-7-9-11-11l-4-3-3-1c-8-3-15-3-23-3-10 1-23-13-24-21l1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#FE5800" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11-2 3c-2 6-6 10-11 14-2 2-3 3-7 3 10-18 0-38-14-50 1 7 0 14-4 20-2 3-6 3-10 4-7 1-19-6-24-10-4-3-9-9-12-15l-4-9c-4-6-10-9-16-13l-12-8-10-14-3-7-3 5-2 8c-2 7-2 14-1 22 4 13 17 15 19 34 0 4 0 8-3 12-3 5-9 9-15 10-7 1-15 0-21-4-10-7-15-17-18-29l-2-10c-4 6-9 13-10 20-3 10-2 23 4 31l3 3c-10 1-23-13-24-21l1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#00A2E4" d="m230 233 6-1 14-2h34l17 2c4 1 21 4 23 6l-5 3c-3 2-8 6-9 10l-2 2-5 9c-4 6-10 11-17 13-6 2-16 3-22 2l-10-4c-4-2-6-4-7-8-2-4-1-6-5-9-5-3-15-2-20-4v1-1c-2-4-7-9-11-11l-4-3 15-3z"/><path fill="#FEEE5D" d="M255 182c5 2 6 4 10 8 6 7 10 16 16 22 6 5 12 8 19 8 5-1 9-2 13-5v5c-1 5-4 8-8 10l-3 1-1 1-17-2h-34l-14 2-6 1-1-1c1-2 7-5 10-6l9-9c7-9 4-14 5-25z"/><path fill="#2E478E" d="m359 184 8 4c9 6 15 17 19 27a109 109 0 017 64l-2 8 2 13c1 5 4 9 6 13a51 51 0 015 12l1 3c4 24-13 47-30 61a176 176 0 01-127 36c-39-4-90-24-115-55-11-15-16-36-8-53 4-7 10-13 10-21-1-7-4-10-6-16-6-12-6-26-5-39 2-17 10-41 24-52l8-4-2 8 1 16 2 4c1 8 14 22 24 21 8 0 15 0 23 3l3 1 4 3c4 2 9 7 11 11l-1 2c-6-6-11-10-20-13-12-4-20-2-31 4l-2 1-13 12-1 4-3 6-4 10-1 4-1 8c-1 10 0 19-7 26l-3 7c-4 10-2 20 2 29 13 26 48 42 74 51 15 5 35 10 50 11 26 1 54-7 77-18 21-10 46-26 54-49 3-10 3-22-3-31l-5-10c-1-9 0-18-2-26v-20c1-17-4-33-11-48 0 4-2 8-4 12-2 5-4 10-9 14l-3 4-9-3a36 36 0 00-28 9l-2 2c-1 0-6 3-6 1 1-4 6-8 9-10l5-3 2-1 13-3c4 0 5-1 7-3a38 38 0 0013-17l1-2c3-9 3-19-1-28"/><path fill="#FE5800" d="m146 282-3-5a71 71 0 013-65l1 4 2 6c5 10 10 18 21 23l-2 1-13 12-1 4-3 6-4 10z"/><path fill="#FEB509" d="M155 258c-5-8-8-17-8-27l2-9c5 10 10 18 21 23l-2 1zl-1 4-3 6z"/><path fill="#0E0D26" d="m402 319 2 6-1-1z"/><path fill="#0073D1" d="M310 251c0 2 5-1 6-1v1l-2 2-5 14-1 4c-2 12-7 22-18 29-7 5-18 6-27 4-13-3-23-13-28-24l-7-15-5-9-1-1-1-1 1-2v1-1c5 2 15 1 20 4 4 3 3 5 5 9 1 4 3 6 7 8l10 4c6 1 16 0 22-2 7-2 13-7 17-13l5-9z"/><path fill="#0E0D26" d="M222 252v1l1 3-1-1-1-1z"/><path fill="#0A183F" d="m311 253-1 1z"/><path fill="#FEEE5D" d="m316 250 2-2 8-5c6-3 14-5 20-4l9 3 4 2c4 2 7 4 9 7l3 4 2 2v1c-1 1-3 0-4-1l-8-5c-6-3-10-3-16-3-15 0-26 12-34 23v-5 2h-2v-2l5-14 2-2zm-146-5c11-6 19-8 31-4 9 3 14 7 20 13l1 1c-1 1 1 4 1 6 0 4 0 7 2 11l-5-6c-9-9-19-16-32-17-12-1-22 1-30 10l-3 4v-1h-1l1-4 13-12z"/><path fill="#FEB509" d="M367 224h1c2 7 3 15 1 22l-1 5c-2-3-5-5-9-7l-4-2 3-4c5-4 7-9 9-14m2 33c1 1 3 2 4 1v-1l2 4v2c-2 0-5-3-6-4z"/><path fill="#0A183F" d="M208 329c-9 12-23 14-36 8-8-3-15-10-18-18-4-11-4-24 1-35 3-9 13-19 23-20l11 1 1 1 4 1c17 7 25 30 21 47l-1 2c0 4-4 10-6 13"/><path fill="#FEFEFE" d="M208 329c-9 12-23 14-36 8-8-3-15-10-18-18-4-11-4-24 1-35 3-9 13-19 23-20l11 1 1 1c-7 2-12 6-16 12-8 14-6 38 8 47 9 6 23 2 29-5l3-4c0 4-4 10-6 13"/><path fill="#0073D1" d="M208 329a28 28 0 01-39-3c-7-8-9-17-9-27 0-14 10-31 24-34h5l1 1c-7 2-12 6-16 12-8 14-6 38 8 47 9 6 23 2 29-5l3-4c0 4-4 10-6 13"/><path fill="#FEFEFE" d="M195 280a9 9 0 114 18 9 9 0 01-4-18"/><path fill="#0A183F" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8l-7-12-2-8c-3-16 5-38 21-44z"/><path fill="#0073D1" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8l-7-12c1-1 1 0 2 1l8 7c5 2 10 2 15 1 24-8 20-57-6-60v-1z"/><path fill="#FEFEFE" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8 5 3 10 5 16 5 15 0 26-15 27-30a40 40 0 00-1-13c-2-11-8-21-18-25z"/><path fill="#015FD1" d="M373 305h-1l1-8z"/><path fill="#FEFEFE" d="M337 279a9 9 0 113 19 9 9 0 01-3-19"/><path fill="#0A183F" d="M168 345c6 0 9 4 14 7a121 121 0 0053 23c10 0 17-1 26-3a151 151 0 0130 0c10 2 19 3 28 0 13-4 25-11 35-20 5-4 10-11 17-5l1 5c-4 0-5-2-8 1l-10 10c-10 8-23 16-35 19-10 3-19 1-29 0l-12-1c-12 0-23 1-35 3-20 2-40-6-56-18l-9-7c-3-2-6-6-10-7h-6c-3 0-1-2 0-3 1-3 3-4 6-4"/><path fill="#0A183F" d="M241 344c7-1 19 11 10 13-5 0-11-2-13-8-1-2 0-4 3-5m65 0c6-1 7 3 4 7q-3 4.5-9 6c-4 0-7-1-4-6 1-3 5-6 9-7"/></g>',left:110,top:90,width:305,height:340},tool:{body:'<g fill="none"><g clip-path="url(#svgID0)"><path fill="currentColor" d="M12.616 7.432a2.95 2.95 0 01-3.13.873l-3.955 4.55a1.163 1.163 0 01-1.754-1.528l3.962-4.554a2.944 2.944 0 013.378-4.127L9.6 4.414l.495 1.443 1.5.291 1.518-1.772a2.94 2.94 0 01-.496 3.057z"/></g><defs><clipPath id="svgID0"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></g>',width:16,height:16},user:{body:'<path fill="currentColor" d="M14.263 10.613c1.097 0 1.987.89 1.987 1.987v.662c0 2.613-2.464 5.3-6.625 5.3S3 15.876 3 13.263V12.6c0-1.098.89-1.987 1.987-1.987zm0 1.325H4.987a.66.66 0 00-.663.662v.662c0 1.905 1.898 3.976 5.3 3.976s5.3-2.07 5.3-3.976V12.6a.66.66 0 00-.663-.662M9.625 2a3.644 3.644 0 110 7.288 3.644 3.644 0 010-7.288m0 1.325a2.319 2.319 0 100 4.638 2.319 2.319 0 000-4.638"/>'}},pe=20,fe=20,me={prefix:ce,lastModified:ue,icons:de,width:pe,height:fe};function ve(e,r){var t;const i=(t=r.customization)==null?void 0:t.icons;i&&e({prefix:"custom",icons:i}),e(me)}function N(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={},E={},q;function he(){return q||(q=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});function r(t,u){return{handler:t,config:u}}r.withOptions=function(t,u=()=>({})){const l=function(s){return{__options:s,handler:t(s),config:u(s)}};return l.__isOptionsFunction=!0,l.__pluginFunction=t,l.__configFunction=u,l};const i=r}(E)),E}var D;function be(){return D||(D=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const r=i(he());function i(u){return u&&u.__esModule?u:{default:u}}const t=r.default}(P)),P}var F,A;function G(){if(A)return F;A=1;let e=be();return F=(e.__esModule?e:{default:e}).default,F}var O={},I;function ye(){return I||(I=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const r=t=>Object.assign({},...Object.entries(t??{}).flatMap(([u,l])=>typeof l=="object"?Object.entries(r(l)).map(([s,d])=>({[u+(s==="DEFAULT"?"":`-${s}`)]:d})):[{[`${u}`]:l}])),i=r}(O)),O}var M={},V;function ge(){return V||(V=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function r(i){return typeof i=="function"?i({}):i}}(M)),M}var U,Y;function we(){return Y||(Y=1,U={importDefault:r=>r&&r.__esModule?r.default:r}),U}var R,j;function ze(){if(j)return R;j=1;const e=ye(),r=ge(),{importDefault:i}=we(),t=i(e),u=i(r),l=["track","thumb","corner"],s=(a,p)=>p?{"@supports (-moz-appearance:none)":a}:a,d=({addBase:a},p)=>{a({"*":s({"scrollbar-color":"initial","scrollbar-width":"initial"},p==="pseudoelements")})},v=()=>({...Object.fromEntries(l.map(a=>{const p=`&::-webkit-scrollbar-${a}`;return[[p,{"background-color":`var(--scrollbar-${a})`,"border-radius":`var(--scrollbar-${a}-radius)`}],[`${p}:hover`,{"background-color":`var(--scrollbar-${a}-hover, var(--scrollbar-${a}))`}],[`${p}:active`,{"background-color":`var(--scrollbar-${a}-active, var(--scrollbar-${a}-hover, var(--scrollbar-${a})))`}]]}).flat())}),n=({preferPseudoElements:a})=>({".scrollbar":{...v(),...s({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},a),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...v(),...s({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},a),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...s({"scrollbar-width":"none"},a),"&::-webkit-scrollbar":{display:"none"}}});return R={addBaseStyles:d,addBaseSizeUtilities:({addUtilities:a},p)=>{a(n({preferPseudoElements:p==="pseudoelements"}))},addColorUtilities:({matchUtilities:a,theme:p})=>{const b=t(p("colors")),w=Object.fromEntries(Object.entries(b).map(([z,_])=>[z,u(_)]));l.forEach(z=>{a({[`scrollbar-${z}`]:_=>{const K=u(_);return{[`--scrollbar-${z}`]:`${K} !important`}}},{values:w,type:"color"})})},addRoundedUtilities:({theme:a,matchUtilities:p})=>{l.forEach(b=>{p({[`scrollbar-${b}-rounded`]:w=>({[`--scrollbar-${b}-radius`]:w})},{values:a("borderRadius")})})},addSizeUtilities:({matchUtilities:a,theme:p})=>{["width","height"].forEach(b=>{a({[`scrollbar-${b[0]}`]:w=>({[`--scrollbar-${b}`]:w})},{values:p(b)})})}},R}var S={},C={exports:{}},L;function J(){if(L)return C.exports;L=1;var e=String,r=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return C.exports=r(),C.exports.createColors=r,C.exports}var B={},W;function xe(){return W||(W=1,function(e){var r={};Object.defineProperty(e,"__esModule",{value:!0});function i(n,f){for(var h in f)Object.defineProperty(n,h,{enumerable:!0,get:f[h]})}i(e,{dim:function(){return d},default:function(){return v}});const t=u(J());function u(n){return n&&n.__esModule?n:{default:n}}let l=new Set;function s(n,f,h){typeof process<"u"&&r.JEST_WORKER_ID||h&&l.has(h)||(h&&l.add(h),console.warn(""),f.forEach(o=>console.warn(n,"-",o)))}function d(n){return t.default.dim(n)}const v={info(n,f){s(t.default.bold(t.default.cyan("info")),...Array.isArray(n)?[n]:[f,n])},warn(n,f){s(t.default.bold(t.default.yellow("warn")),...Array.isArray(n)?[n]:[f,n])},risk(n,f){s(t.default.bold(t.default.magenta("risk")),...Array.isArray(n)?[n]:[f,n])}}}(B)),B}var T;function _e(){return T||(T=1,function(e){var r={};Object.defineProperty(e,"__esModule",{value:!0});function i(o,m){for(var a in m)Object.defineProperty(o,a,{enumerable:!0,get:m[a]})}i(e,{flagEnabled:function(){return v},issueFlagNotices:function(){return f},default:function(){return h}});const t=l(J()),u=l(xe());function l(o){return o&&o.__esModule?o:{default:o}}let s={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},d={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function v(o,m){if(d.future.includes(m)){var a,p,b;return o.future==="all"||((b=(p=o==null||(a=o.future)===null||a===void 0?void 0:a[m])!==null&&p!==void 0?p:s[m])!==null&&b!==void 0?b:!1)}if(d.experimental.includes(m)){var w,z,_;return o.experimental==="all"||((_=(z=o==null||(w=o.experimental)===null||w===void 0?void 0:w[m])!==null&&z!==void 0?z:s[m])!==null&&_!==void 0?_:!1)}return!1}function n(o){if(o.experimental==="all")return d.experimental;var m;return Object.keys((m=o==null?void 0:o.experimental)!==null&&m!==void 0?m:{}).filter(a=>d.experimental.includes(a)&&o.experimental[a])}function f(o){if(r.JEST_WORKER_ID===void 0&&n(o).length>0){let m=n(o).map(a=>t.default.yellow(a)).join(", ");u.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${m}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const h=d}(S)),S}var k,X;function Ce(){if(X)return k;X=1;const{flagEnabled:e}=_e(),r=["hover","focus","focus-visible","active","enabled","disabled"],i=(l,s)=>l==="hover"&&e&&e(s(),"hoverOnlyWhenSupported")?"@media (hover: hover) and (pointer: fine) { &:hover }":`&:${l}`,t=(l,s)=>l==="hover"&&e&&e(s(),"hoverOnlyWhenSupported")?"@media (hover: hover) and (pointer: fine) { & }":"&";return k={addVariantOverrides:({addVariant:l,config:s})=>{r.forEach(d=>{l(d,({container:v})=>{const n=`-${d}`;let f=!1;return v.walkRules(h=>{h.walkDecls(/^--scrollbar-/,o=>{f=!0,o.prop.endsWith(n)||(o.prop+=n)})}),f?t(d,s):i(d,s)})})}},k}var $,H;function Pe(){if(H)return $;H=1;const e=G(),{addBaseStyles:r,addBaseSizeUtilities:i,addColorUtilities:t,addRoundedUtilities:u,addSizeUtilities:l}=ze(),{addVariantOverrides:s}=Ce();return $=e.withOptions((d={})=>v=>{let n=d.preferredStrategy??"standard";n!=="standard"&&n!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),n="standard"),r(v,n),i(v,n),t(v),s(v),d.nocompatible&&(u(v),l(v))}),$}var Ee=Pe();const Fe=N(Ee);var Oe=G();const Me=N(Oe);var c=e=>`color-mix(in srgb, ${e} calc(100% * <alpha-value>), transparent)`,Ue={extend:{colors:{primary:c("var(--p-primary-color)"),"primary-emphasis":c("var(--p-primary-hover-color)"),"primary-emphasis-alt":c("var(--p-primary-active-color)"),"primary-contrast":c("var(--p-primary-contrast-color)"),"primary-50":c("var(--p-primary-50)"),"primary-100":c("var(--p-primary-100)"),"primary-200":c("var(--p-primary-200)"),"primary-300":c("var(--p-primary-300)"),"primary-400":c("var(--p-primary-400)"),"primary-500":c("var(--p-primary-500)"),"primary-600":c("var(--p-primary-600)"),"primary-700":c("var(--p-primary-700)"),"primary-800":c("var(--p-primary-800)"),"primary-900":c("var(--p-primary-900)"),"primary-950":c("var(--p-primary-950)"),"surface-0":c("var(--p-surface-0)"),"surface-50":c("var(--p-surface-50)"),"surface-100":c("var(--p-surface-100)"),"surface-200":c("var(--p-surface-200)"),"surface-300":c("var(--p-surface-300)"),"surface-400":c("var(--p-surface-400)"),"surface-500":c("var(--p-surface-500)"),"surface-600":c("var(--p-surface-600)"),"surface-700":c("var(--p-surface-700)"),"surface-800":c("var(--p-surface-800)"),"surface-900":c("var(--p-surface-900)"),"surface-950":c("var(--p-surface-950)")},keyframes:{enter:{from:{opacity:"var(--p-enter-opacity, 1)",transform:"translate3d(var(--p-enter-translate-x, 0), var(--p-enter-translate-y, 0), 0) scale3d(var(--p-enter-scale, 1), var(--p-enter-scale, 1), var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))"}},leave:{to:{opacity:"var(--p-leave-opacity, 1)",transform:"translate3d(var(--p-leave-translate-x, 0), var(--p-leave-translate-y, 0), 0) scale3d(var(--p-leave-scale, 1), var(--p-leave-scale, 1), var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))"}},fadein:{"0%":{opacity:"0"},"100%":{opacity:"1"}},fadeout:{"0%":{opacity:"1"},"100%":{opacity:"0"}},scalein:{"0%":{opacity:"0",transform:"scaleY(0.8)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"scaleY(1)"}},slidedown:{"0%":{maxHeight:"0"},"100%":{maxHeight:"auto"}},slideup:{"0%":{maxHeight:"1000px"},"100%":{maxHeight:"0"}},fadeinleft:{"0%":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateX(0%)"}},fadeoutleft:{"0%":{opacity:"1",transform:"translateX(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateX(-100%)"}},fadeinright:{"0%":{opacity:"0",transform:"translateX(100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateX(0%)"}},fadeoutright:{"0%":{opacity:"1",transform:"translateX(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateX(100%)"}},fadeinup:{"0%":{opacity:"0",transform:"translateY(-100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateY(0%)"}},fadeoutup:{"0%":{opacity:"1",transform:"translateY(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateY(-100%)"}},fadeindown:{"0%":{opacity:"0",transform:"translateY(100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateY(0%)"}},fadeoutdown:{"0%":{opacity:"1",transform:"translateY(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateY(100%)"}},width:{"0%":{width:"0"},"100%":{width:"100%"}},flip:{from:{transform:"perspective(2000px) rotateX(-100deg)"},to:{transform:"perspective(2000px) rotateX(0)"}},flipleft:{from:{transform:"perspective(2000px) rotateY(-100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateY(0)",opacity:"1"}},flipright:{from:{transform:"perspective(2000px) rotateY(100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateY(0)",opacity:"1"}},flipup:{from:{transform:"perspective(2000px) rotateX(-100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateX(0)",opacity:"1"}},zoomin:{from:{transform:"scale3d(0.3, 0.3, 0.3)",opacity:"0"},"50%":{opacity:"1"}},zoomindown:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",opacity:"1"}},zoominleft:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",opacity:"1"}},zoominright:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",opacity:"1"}},zoominup:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",opacity:"1"}}},animation:{fadein:"fadein 0.15s linear",fadeout:"fadeout 0.15s linear",slidedown:"slidedown 0.45s ease-in-out",slideup:"slideup 0.45s cubic-bezier(0, 1, 0, 1)",scalein:"scalein 0.15s linear",fadeinleft:"fadeinleft 0.15s linear",fadeoutleft:"fadeoutleft 0.15s linear",fadeinright:"fadeinright 0.15s linear",fadeoutright:"fadeoutright 0.15s linear",fadeinup:"fadeinup 0.15s linear",fadeoutup:"fadeoutup 0.15s linear",fadeindown:"fadeindown 0.15s linear",fadeoutdown:"fadeoutdown 0.15s linear",width:"width 0.45s linear",flip:"flip 0.15s linear",flipup:"flipup 0.15s linear",flipleft:"flipleft 0.15s linear",flipright:"flipright 0.15s linear",zoomin:"zoomin 0.15s linear",zoomindown:"zoomindown 0.15s linear",zoominleft:"zoominleft 0.15s linear",zoominright:"zoominright 0.15s linear",zoominup:"zoominup 0.15s linear"},animationDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",400:"400ms",500:"500ms",700:"700ms",1e3:"1000ms"},animationDuration:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",400:"400ms",500:"500ms",700:"700ms",1e3:"1000ms",2e3:"2000ms",3e3:"3000ms"},animationOpacity:({theme:e})=>e("opacity"),animationTranslate:({theme:e})=>e("translate"),animationScale:({theme:e})=>e("scale"),animationRotate:({theme:e})=>e("rotate")}},Re=({addUtilities:e})=>{e({".backface-visible":{"backface-visibility":"visible"},".backface-hidden":{"backface-visibility":"hidden"}})},Se=({matchUtilities:e,theme:r})=>{e({"animate-delay":i=>({"animation-delay":i})},{values:r("animationDelay")})},Be=({addUtilities:e})=>{e({".animate-normal":{"animation-direction":"normal"},".animate-reverse":{"animation-direction":"reverse"},".animate-alternate":{"animation-direction":"alternate"},".animate-alternate-reverse":{"animation-direction":"alternate-reverse"}})},ke=({matchUtilities:e,theme:r})=>{e({"animate-duration":i=>({"animation-duration":i})},{values:r("animationDuration")})},$e=({addUtilities:e,matchUtilities:r,theme:i})=>{e({"@keyframes enter":i("keyframes.enter"),"@keyframes leave":i("keyframes.leave"),".animate-enter":{"animation-name":"enter","--p-enter-opacity":"initial","--p-enter-scale":"initial","--p-enter-rotate":"initial","--p-enter-translate-x":"initial","--p-enter-translate-y":"initial"},".animate-leave":{"animation-name":"leave","--p-leave-opacity":"initial","--p-leave-scale":"initial","--p-leave-rotate":"initial","--p-leave-translate-x":"initial","--p-leave-translate-y":"initial"}}),r({"fade-in":t=>({"--p-enter-opacity":t}),"fade-out":t=>({"--p-leave-opacity":t})},{values:i("animationOpacity")}),r({"zoom-in":t=>({"--p-enter-scale":t}),"zoom-out":t=>({"--p-leave-scale":t})},{values:i("animationScale")}),r({"spin-in":t=>({"--p-enter-rotate":t}),"spin-out":t=>({"--p-leave-rotate":t})},{values:i("animationRotate")}),r({"slide-in-from-t":t=>({"--p-enter-translate-y":`-${t}`}),"slide-in-from-b":t=>({"--p-enter-translate-y":t}),"slide-in-from-l":t=>({"--p-enter-translate-x":`-${t}`}),"slide-in-from-r":t=>({"--p-enter-translate-x":t}),"slide-out-from-t":t=>({"--p-leave-translate-y":`-${t}`}),"slide-out-from-b":t=>({"--p-leave-translate-y":t}),"slide-out-from-l":t=>({"--p-leave-translate-x":`-${t}`}),"slide-out-from-r":t=>({"--p-leave-translate-x":t})},{values:i("translate")})},qe=({addUtilities:e})=>{e({".animate-fill-none":{"animation-fill-mode":"none"},".animate-fill-forwards":{"animation-fill-mode":"forwards"},".animate-fill-backwards":{"animation-fill-mode":"backwards"},".animate-fill-both":{"animation-fill-mode":"both"}})},De=({addUtilities:e})=>{e({".animate-infinite":{"animation-iteration-count":"infinite"},".animate-once":{"animation-iteration-count":"1"},".animate-twice":{"animation-iteration-count":"2"}})},Ae=({addUtilities:e})=>{e({".animate-running":{"animation-play-state":"running"},".animate-paused":{"animation-play-state":"paused"}})},Ie=({addUtilities:e})=>{e({".border-surface":{"border-color":"var(--p-content-border-color)"},".bg-emphasis":{background:"var(--p-content-hover-background)",color:"var(--p-content-hover-color)"},".bg-highlight":{background:"var(--p-highlight-background)",color:"var(--p-highlight-color)"},".bg-highlight-emphasis":{background:"var(--p-highlight-focus-background)",color:"var(--p-highlight-focus-color)"},".rounded-border":{"border-radius":"var(--p-content-border-radius)"},".text-color":{color:"var(--p-text-color)"},".text-color-emphasis":{color:"var(--p-text-hover-color)"},".text-muted-color":{color:"var(--p-text-muted-color)"},".text-muted-color-emphasis":{color:"var(--p-text-hover-muted-color)"}})},Ve=({addUtilities:e})=>{e({".animate-ease-linear":{"animation-timing-function":"linear"},".animate-ease-in":{"animation-timing-function":"cubic-bezier(0.4, 0, 1, 1)"},".animate-ease-out":{"animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"},".animate-ease-in-out":{"animation-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}})},g={backface:Re,delay:Se,direction:Be,duration:ke,enterleave:$e,fillMode:qe,iterationCount:De,playState:Ae,preset:Ie,timingFunction:Ve},Ye=Me(e=>{g.backface(e),g.delay(e),g.direction(e),g.duration(e),g.fillMode(e),g.iterationCount(e),g.playState(e),g.timingFunction(e),g.preset(e),g.enterleave(e)},{theme:Ue});const je={theme:{extend:{colors:{secondary:{50:"var(--p-secondary-50)",100:"var(--p-secondary-100)",200:"var(--p-secondary-200)",300:"var(--p-secondary-300)",400:"var(--p-secondary-400)",500:"var(--p-secondary-500)",600:"var(--p-secondary-600)",700:"var(--p-secondary-700)",800:"var(--p-secondary-800)",900:"var(--p-secondary-900)",950:"var(--p-secondary-950)"}}}},plugins:[Ye,Fe({nocompatible:!0,preferredStrategy:"pseudoelements"})]},Le={presets:[je],content:["./index.html","./src/**/*.{vue,ts}"]},We="__WIPPY_APP_CONFIG__",Te="__WIPPY_APP_API__";function x(){const e=window[Te];if(!e)throw new Error('@wippy-fe/proxy: Proxy globals not found. For dev/testing without the Wippy host, add <script src="dev-proxy.js"><\/script> to your HTML.');return e}function Xe(){const e=window[We];if(!e)throw new Error('@wippy-fe/proxy: App config globals not found. For dev/testing without the Wippy host, add <script src="dev-proxy.js"><\/script> to your HTML.');return e}const y={get api(){return x().api},get host(){return x().host},get iframe(){return console.warn("Attention: `iframe` is deprecated, use `host` instead to host calls"),x().iframe},get on(){return x().on},get config(){return x().config},get form(){return console.warn("Attention: `form` is deprecated, use direct api calls instead"),x().form},get loadWebComponent(){return x().loadWebComponent},hostCss:se,tailwindConfig:Le,define:(e,r)=>{const i=new URL(e),u=new URLSearchParams(i.search).get("declare-tag");u&&customElements.define(u,r)},loadCss:async e=>(await x().api.get(e)).data,addIcons:e=>{ve(e,Xe())}},He=y.define,Ne=y.api,Ge=y.host,Je=y.iframe,Ke=y.on,Ze=y.config,Qe=y.form,et=y.hostCss,tt=y.loadCss,rt=y.tailwindConfig,at=y.loadWebComponent,it=y.addIcons;export{it as addIcons,Ne as api,Ze as config,y as default,He as define,Qe as form,Ge as host,et as hostCss,Je as iframe,tt as loadCss,at as loadWebComponent,Ke as on,rt as tailwindConfig};
package/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // TODO: This package currently gets its compiled output (index.mjs) copied from
2
- // the host's web-component build (public/@wippy/proxy.js). Eventually this should
2
+ // the host's web-component build (public/@wippy-fe/proxy.js). Eventually this should
3
3
  // have its own build pipeline via package.json scripts, with index.ts driving
4
4
  // both types and compiled output from within the package.
5
5
  export {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@wippy-fe/proxy",
3
- "version": "0.0.3",
3
+ "version": "0.0.7",
4
4
  "description": "Proxy API for Wippy child micro-frontends",
5
5
  "main": "index.mjs",
6
6
  "module": "index.mjs",
7
- "types": "index.d.ts",
7
+ "types": "index.d.mts",
8
8
  "scripts": {
9
9
  "build:types": "tsup"
10
10
  }
package/index.d.ts DELETED
@@ -1,780 +0,0 @@
1
- import * as nanoevents from 'nanoevents';
2
- import { ConfirmationOptions } from 'primevue/confirmationoptions';
3
- import * as primevue_toast from 'primevue/toast';
4
- import * as axios from 'axios';
5
- import { AxiosDefaults } from 'axios';
6
- import { addCollection } from '@iconify/vue';
7
-
8
- declare namespace PageApi {
9
- interface Page {
10
- icon: string;
11
- id: string;
12
- name: string;
13
- title: string;
14
- internal?: string;
15
- order: number;
16
- placement?: 'default' | 'bottom';
17
- hidden?: boolean;
18
- badge?: string | number;
19
- badge_icon?: string;
20
- group?: string;
21
- group_order?: number;
22
- group_icon?: string;
23
- group_placement?: 'default' | 'bottom';
24
- content_version?: string;
25
- /** The content of the page artifact, which can be HTML, Markdown, or JSON with wippy specific package.json info */
26
- content_type?: 'text/html' | 'text/markdown' | 'application/json';
27
- }
28
- interface PagesResponse {
29
- count: number;
30
- pages: Page[];
31
- success: boolean;
32
- }
33
- interface PageContentResponse {
34
- content: string;
35
- success: boolean;
36
- }
37
- }
38
-
39
- declare namespace UploadApi {
40
- interface Meta {
41
- filename: string;
42
- content_sample?: string;
43
- }
44
- interface Upload {
45
- uuid: string;
46
- created_at: string;
47
- updated_at: string;
48
- mime_type: string;
49
- size: number;
50
- /**
51
- * Note `@@local` is not part of the API response, it's a local state when file is still only on user PC
52
- */
53
- status: '@@local' | 'uploaded' | 'completed' | 'error' | 'processing';
54
- meta: Meta;
55
- error?: string;
56
- }
57
- interface ListResponse {
58
- success: boolean;
59
- meta: {
60
- limit: number;
61
- offset: number;
62
- total: number;
63
- };
64
- uploads: Upload[];
65
- }
66
- interface GetResponse {
67
- success: boolean;
68
- upload: Upload;
69
- }
70
- interface UploadResponse {
71
- success: boolean;
72
- uuid: string;
73
- }
74
- }
75
-
76
- declare enum ArtifactStatus {
77
- /**
78
- * The artifact is still being generated or processed.
79
- * UI should display a loading indicator or show partial code/content.
80
- * User interactions with the artifact may be limited during this state.
81
- */
82
- PROCESSING = "processing",
83
- /**
84
- * The artifact rendering is complete and it's in an active state.
85
- * For interactive artifacts (forms, calculators, etc.), this indicates
86
- * the artifact is ready and waiting for user input or interaction.
87
- * UI should show the artifact as fully interactive.
88
- */
89
- RUNNING = "running",
90
- /**
91
- * The artifact rendering is complete but it's in an inactive state.
92
- * For interactive artifacts, this indicates the artifact is not expecting
93
- * any further input from the user.
94
- * UI should show the artifact as read-only or with limited interactivity.
95
- */
96
- IDLE = "idle",
97
- /**
98
- * The artifact is being built by the system.
99
- */
100
- BUILDING = "building",
101
- /**
102
- * The artifact is being unit tested by the system.
103
- */
104
- TESTING = "testing",
105
- /**
106
- * The artifact failed to generate
107
- */
108
- ERROR = "error"
109
- }
110
- declare enum ArtifactType {
111
- /**
112
- * The artifact is embedded within chat message, html is sanitized to very basic tags.
113
- * Applies only to text/html and text/markdown content types.
114
- */
115
- INLINE = "inline",
116
- /**
117
- * The artifact is embedded within chat message, in an iframe with support of iframe-proxy API
118
- */
119
- INLINE_INTERACTIVE = "inline-interactive",
120
- /**
121
- * The artifact is rendered as a button that opens artifact in an iframe with support of iframe-proxy API
122
- * @see iframe-proxy.md
123
- */
124
- STANDALONE = "standalone"
125
- }
126
- interface Artifact {
127
- uuid: string;
128
- title: string;
129
- description?: string;
130
- icon?: string;
131
- type: ArtifactType;
132
- /** The content of the artifact, which can be HTML, Markdown, or JSON with wippy specific package.json info */
133
- content_type: 'text/html' | 'text/markdown' | 'application/json';
134
- content_version?: string;
135
- status: ArtifactStatus;
136
- }
137
-
138
- type ArtifactUUID = string;
139
- type PageUUID = string;
140
- type SessionUUID = string;
141
- type EntryUUID = string;
142
- type MessageUUID = string;
143
- type ActionCommand = 'navigate' | 'sidebar';
144
- declare const WsTopicPrefixes: {
145
- readonly Pages: "pages";
146
- readonly Page: "page";
147
- readonly Artifact: "artifact";
148
- readonly Welcome: "welcome";
149
- readonly Update: "update";
150
- readonly Session: "session";
151
- readonly SessionOpen: "session.opened";
152
- readonly SessionClosed: "session.closed";
153
- readonly Error: "error";
154
- readonly Upload: "upload";
155
- readonly Action: "action";
156
- readonly Registry: "registry";
157
- readonly RegistryEntry: "entry";
158
- };
159
- interface WsTopicTypes {
160
- /**
161
- * Welcome info with active sessions
162
- */
163
- Welcome: typeof WsTopicPrefixes.Welcome;
164
- /**
165
- * Artifact are updated
166
- */
167
- Artifact: `${typeof WsTopicPrefixes.Artifact}:${ArtifactUUID}`;
168
- /**
169
- * Dynamic page list is updated
170
- */
171
- Pages: typeof WsTopicPrefixes.Pages;
172
- /**
173
- * Single page is updated and needs reload
174
- */
175
- Page: `${typeof WsTopicPrefixes.Page}:${PageUUID}`;
176
- /**
177
- * Session was opened event
178
- */
179
- SessionOpened: typeof WsTopicPrefixes.SessionOpen;
180
- /**
181
- * Session was closed event
182
- */
183
- SessionClosed: typeof WsTopicPrefixes.SessionClosed;
184
- /**
185
- * Session operation
186
- */
187
- Session: `${typeof WsTopicPrefixes.Session}:${SessionUUID}`;
188
- /**
189
- * Registry operation
190
- */
191
- Registry: `${typeof WsTopicPrefixes.Registry}:${string}`;
192
- /**
193
- * Registry entry updates
194
- */
195
- RegistryEntry: `${typeof WsTopicPrefixes.RegistryEntry}:${EntryUUID}`;
196
- /**
197
- * Registry entry updates
198
- */
199
- Action: `${typeof WsTopicPrefixes.Action}:${ActionCommand}`;
200
- /**
201
- * Session message
202
- */
203
- SessionMessage: `${typeof WsTopicPrefixes.Session}:${SessionUUID}:message:${MessageUUID}`;
204
- /**
205
- * Error message
206
- */
207
- Error: typeof WsTopicPrefixes.Error;
208
- /**
209
- * Upload was created or updated
210
- */
211
- Upload: `${typeof WsTopicPrefixes.Upload}:${string}`;
212
- }
213
- type WsTopic = WsTopicTypes[keyof WsTopicTypes];
214
- declare enum WsMessageType {
215
- /** Contains the actual content of the message */
216
- CONTENT = "content",
217
- /** Contains content of the message to append to current one */
218
- CHUNK = "chunk",
219
- /** User message with contents */
220
- USER = "received",
221
- /** Response started, can create a message placeholder */
222
- RESPONSE_STARTED = "response_started",
223
- /** Kill the message */
224
- INVALIDATE = "invalidate",
225
- /** from to agent, get agent names */
226
- DELEGATION = "delegation",
227
- /** Tool/fn was called */
228
- TOOL_CALL = "tool_call",
229
- FUNCTION_CALL = "function_call",
230
- /** Tool/fn was succesfull */
231
- TOOL_SUCCESS = "tool_success",
232
- FUNCTION_SUCCESS = "function_success",
233
- /** Tool/fn failed */
234
- TOOL_ERROR = "tool_error",
235
- FUNCTION_ERROR = "function_error",
236
- /** Error */
237
- ERROR = "error",
238
- /** Error */
239
- ARTIFACT = "artifact"
240
- }
241
- interface WsMessageBase {
242
- topic: WsTopic;
243
- data?: {
244
- request_id?: string;
245
- };
246
- }
247
- interface WsMessage_Welcome extends WsMessageBase {
248
- topic: WsTopicTypes['Welcome'];
249
- data: {
250
- request_id?: string;
251
- active_session_ids: Array<string>;
252
- active_sessions: number;
253
- client_count: number;
254
- user_id: string;
255
- };
256
- }
257
- interface WsMessage_Action extends WsMessageBase {
258
- topic: WsTopicTypes['Action'];
259
- data: {
260
- request_id?: string;
261
- artifact_uuid?: string;
262
- artifact_content_type?: string;
263
- session_uuid?: string;
264
- path?: string;
265
- };
266
- }
267
- interface WsMessage_Registry extends WsMessageBase {
268
- topic: WsTopicTypes['Registry'];
269
- data: {
270
- request_id?: string;
271
- };
272
- }
273
- interface WsMessage_RegistryEntry extends WsMessageBase {
274
- topic: WsTopicTypes['RegistryEntry'];
275
- data: {
276
- request_id?: string;
277
- content_version?: string;
278
- };
279
- }
280
- interface WsMessage_Pages extends WsMessageBase {
281
- topic: WsTopicTypes['Pages'];
282
- }
283
- interface WsMessage_Page extends WsMessageBase {
284
- topic: WsTopicTypes['Page'];
285
- data: PageApi.Page & {
286
- request_id?: string;
287
- };
288
- }
289
- interface WsMessage_SessionOpen extends WsMessageBase {
290
- topic: WsTopicTypes['SessionOpened'];
291
- data: {
292
- request_id?: string;
293
- active_session_ids: Array<string>;
294
- session_id: string;
295
- };
296
- }
297
- interface WsMessage_Error extends WsMessageBase {
298
- topic: WsTopicTypes['Error'];
299
- data: {
300
- request_id?: string;
301
- error: string;
302
- message: string;
303
- };
304
- }
305
- interface WsMessage_SessionClosed extends WsMessageBase {
306
- topic: WsTopicTypes['SessionClosed'];
307
- data: {
308
- request_id?: string;
309
- active_session_ids: Array<string>;
310
- session_id: string;
311
- };
312
- }
313
- interface WsMessageDataBase {
314
- type: WsMessageType;
315
- }
316
- interface WsMessageDataChunk extends WsMessageDataBase {
317
- type: WsMessageType.CHUNK;
318
- content: string;
319
- }
320
- interface WsMessageDataContent extends WsMessageDataBase {
321
- type: WsMessageType.CONTENT;
322
- content: string;
323
- message_id: MessageUUID;
324
- file_uuids?: string[];
325
- }
326
- interface WsMessageDataUser extends WsMessageDataBase {
327
- type: WsMessageType.USER;
328
- text: string;
329
- message_id: MessageUUID;
330
- file_uuids?: string[];
331
- }
332
- interface WsMessageDataDelegation extends WsMessageDataBase {
333
- type: WsMessageType.DELEGATION;
334
- from: string;
335
- to: string;
336
- }
337
- interface WsMessageDataInvalidate extends WsMessageDataBase {
338
- type: WsMessageType.INVALIDATE;
339
- }
340
- interface WsMessageDataStarted extends WsMessageDataBase {
341
- type: WsMessageType.RESPONSE_STARTED;
342
- message_id: MessageUUID;
343
- }
344
- interface WsMessageDataToolCall extends WsMessageDataBase {
345
- type: WsMessageType.TOOL_CALL | WsMessageType.FUNCTION_CALL;
346
- function_name: string;
347
- artifact_id?: string;
348
- }
349
- interface WsMessageDataArtifact extends WsMessageDataBase {
350
- type: WsMessageType.ARTIFACT;
351
- artifact_id?: string;
352
- }
353
- interface WsMessageDataToolSuccess extends WsMessageDataBase {
354
- type: WsMessageType.TOOL_SUCCESS | WsMessageType.FUNCTION_SUCCESS;
355
- function_name: string;
356
- artifact_id?: string;
357
- }
358
- interface WsMessageDataToolError extends WsMessageDataBase {
359
- type: WsMessageType.TOOL_ERROR | WsMessageType.FUNCTION_ERROR;
360
- function_name: string;
361
- artifact_id?: string;
362
- }
363
- interface WsMessageDataError extends WsMessageDataBase {
364
- type: WsMessageType.ERROR;
365
- message: string;
366
- code: string;
367
- }
368
- interface WsMessage_SessionMessage extends WsMessageBase {
369
- topic: WsTopicTypes['SessionMessage'];
370
- data: (WsMessageDataUser | WsMessageDataContent | WsMessageDataChunk | WsMessageDataDelegation | WsMessageDataToolCall | WsMessageDataError | WsMessageDataInvalidate | WsMessageDataStarted | WsMessageDataToolSuccess | WsMessageDataArtifact | WsMessageDataToolError) & {
371
- request_id?: string;
372
- };
373
- }
374
- interface WsMessage_Session extends WsMessageBase {
375
- topic: WsTopicTypes['Session'];
376
- data: {
377
- request_id?: string;
378
- agent?: string;
379
- last_message_date?: number;
380
- model?: string;
381
- status?: string;
382
- title?: string;
383
- type: 'update';
384
- public_meta?: Array<{
385
- icon?: string;
386
- id: string;
387
- title: string;
388
- url?: string;
389
- }>;
390
- };
391
- }
392
- interface WsMessage_Artifact extends WsMessageBase {
393
- topic: WsTopicTypes['Artifact'];
394
- data: Partial<Artifact> & {
395
- request_id?: string;
396
- };
397
- }
398
- interface WsMessage_Upload extends WsMessageBase {
399
- topic: WsTopicTypes['Upload'];
400
- data: UploadApi.Upload & {
401
- request_id?: string;
402
- };
403
- }
404
- type WsMessage = WsMessage_Welcome | WsMessage_Pages | WsMessage_Page | WsMessage_SessionMessage | WsMessage_Session | WsMessage_SessionClosed | WsMessage_Error | WsMessage_Artifact | WsMessage_SessionOpen | WsMessage_Action | WsMessage_Registry | WsMessage_RegistryEntry | WsMessage_Upload;
405
-
406
- type KnownTopics = '@history' | '@visibility' | '@message';
407
- type Events = {
408
- /** Emitted when pages are updated */
409
- '@history': (data: {
410
- path: string;
411
- }) => void;
412
- '@visibility': (visible: boolean) => void;
413
- '@message': (data: WsMessage) => void;
414
- } & {
415
- [K in string as K extends KnownTopics ? never : K]: (data: WsMessage) => void;
416
- };
417
-
418
- declare var cssRS = {
419
-
420
- };
421
- declare var featureRS = {
422
- session: session,
423
- history: history,
424
- env: env
425
- };
426
- declare var textRS = {
427
- chat: chat,
428
- customPage: customPage,
429
- home: home,
430
- app: app,
431
- login: login,
432
- logout: logout,
433
- keeper: keeper
434
- };
435
-
436
- type I18NFeatureTypes = typeof featureRS;
437
- type I18NTextTypes = typeof textRS;
438
- type I18NCssTypes = typeof cssRS;
439
-
440
- /**
441
- * All API route templates, grouped by domain.
442
- * Dynamic path segments use `{paramName}` placeholders (OpenAPI-style).
443
- * Each leaf value is a flat, fully-formed route — no concatenation needed at call site.
444
- *
445
- * Internally, routes use `@/…` shorthand that resolves against the group's `@prefix`.
446
- * Resolution happens once inside `getApiRoutes()`, so consumers always receive clean strings.
447
- *
448
- * Base URL resolution:
449
- * - HTTP routes: `getEnv().APP_API_URL` + route (handled by axios baseURL)
450
- * - WebSocket: `getEnv().APP_WEBSOCKET_URL` + `getApiRoutes().ws.join` (composed in ws/client.ts)
451
- */
452
- interface ApiRoutes {
453
- agents: {
454
- list: string;
455
- details: string;
456
- byName: string;
457
- };
458
- sessions: {
459
- list: string;
460
- get: string;
461
- messages: string;
462
- };
463
- models: {
464
- list: string;
465
- byName: string;
466
- };
467
- uploads: {
468
- list: string;
469
- get: string;
470
- create: string;
471
- };
472
- artifacts: {
473
- get: string;
474
- content: string;
475
- state: string;
476
- baseUrl: string;
477
- };
478
- pages: {
479
- list: string;
480
- get: string;
481
- content: string;
482
- baseUrl: string;
483
- };
484
- registry: {
485
- namespaces: string;
486
- entries: string;
487
- entry: string;
488
- entryCreate: string;
489
- entryEditors: string;
490
- versions: string;
491
- versionApply: string;
492
- };
493
- keeperSync: {
494
- state: string;
495
- download: string;
496
- upload: string;
497
- undo: string;
498
- redo: string;
499
- };
500
- npm: {
501
- globalAutoload: string;
502
- };
503
- tools: {
504
- byName: string;
505
- };
506
- ws: {
507
- join: string;
508
- };
509
- }
510
- /**
511
- * Override type for `AppConfig.feature.apiRoutes`.
512
- *
513
- * Each group is optional and partially overridable.
514
- * Set `@prefix` to rebase all `@/…` routes in that group at once,
515
- * or override individual routes with absolute paths.
516
- */
517
- type ApiRoutesOverride = {
518
- [K in keyof ApiRoutes]?: Partial<ApiRoutes[K]> & {
519
- '@prefix'?: string;
520
- };
521
- };
522
-
523
- interface AppFeatures extends I18NFeatureTypes {
524
- /**
525
- * If to remember auth details or not
526
- */
527
- session: {
528
- type: 'non-persistent' | 'cookie';
529
- };
530
- history: 'browser' | 'hash';
531
- env: {
532
- APP_API_URL: string;
533
- APP_AUTH_API_URL: string;
534
- APP_WEBSOCKET_URL: string;
535
- };
536
- axiosDefaults?: Partial<AxiosDefaults>;
537
- routePrefix?: string;
538
- showAdmin?: boolean;
539
- allowSelectModel?: boolean;
540
- startNavOpen?: boolean;
541
- hideNavBar?: boolean;
542
- disableRightPanel?: boolean;
543
- /**
544
- * Hide the session selector dropdown in chat views
545
- * @default false
546
- */
547
- hideSessionSelector?: boolean;
548
- additionalNavItems?: Array<PageApi.Page>;
549
- chat?: {
550
- convertPasteToFile?: {
551
- enabled: boolean;
552
- minFileSize: number;
553
- allowHtml: boolean;
554
- };
555
- };
556
- apiRoutes?: ApiRoutesOverride;
557
- }
558
- interface AppAuthConfig {
559
- token: string;
560
- expiresAt: string;
561
- }
562
- interface AppCustomization {
563
- customCSS?: string;
564
- cssVariables?: I18NCssTypes;
565
- i18n?: Partial<I18NTextTypes>;
566
- icons?: Record<string, {
567
- body: string;
568
- width: number;
569
- height: number;
570
- }>;
571
- }
572
- interface AppConfig {
573
- artifactId?: string;
574
- /**
575
- * Starting app or artifact/page path
576
- */
577
- path?: string;
578
- /**
579
- * App features like history mode, session type, etc.
580
- */
581
- feature?: AppFeatures;
582
- /**
583
- * Auth configuration
584
- */
585
- auth: AppAuthConfig;
586
- /**
587
- * App customization like i18n texts, css variables, custom css, etc.
588
- */
589
- customization?: AppCustomization;
590
- externalEvents?: {
591
- enabled: boolean;
592
- wsType: string;
593
- allowedOrigins: string[];
594
- allowedTypes: string[];
595
- };
596
- }
597
-
598
- interface FormState {
599
- data?: Record<string, unknown>;
600
- status: 'active' | 'inactive';
601
- }
602
- interface FormResult {
603
- success: boolean;
604
- message?: string;
605
- errors?: Record<string, string>;
606
- }
607
- type LimitedConfirmationOptions = Omit<ConfirmationOptions, 'target' | 'appendTo' | 'onShow' | 'onHide'>;
608
-
609
- declare const fontCssUrl: string;
610
- declare const iframeCssUrl: string;
611
- declare const markdownCssUrl: string;
612
- declare const primeVueCssUrl: string;
613
- declare const themeConfigUrl: string;
614
-
615
- declare const hostCssRaw_fontCssUrl: typeof fontCssUrl;
616
- declare const hostCssRaw_iframeCssUrl: typeof iframeCssUrl;
617
- declare const hostCssRaw_markdownCssUrl: typeof markdownCssUrl;
618
- declare const hostCssRaw_primeVueCssUrl: typeof primeVueCssUrl;
619
- declare const hostCssRaw_themeConfigUrl: typeof themeConfigUrl;
620
- declare namespace hostCssRaw {
621
- export { hostCssRaw_fontCssUrl as fontCssUrl, hostCssRaw_iframeCssUrl as iframeCssUrl, hostCssRaw_markdownCssUrl as markdownCssUrl, hostCssRaw_primeVueCssUrl as primeVueCssUrl, hostCssRaw_themeConfigUrl as themeConfigUrl };
622
- }
623
-
624
- declare const resolvers: {
625
- readonly api: axios.AxiosInstance;
626
- readonly host: {
627
- toast: (message: primevue_toast.ToastMessageOptions) => void;
628
- confirm: (options: LimitedConfirmationOptions) => Promise<boolean>;
629
- startChat: (start_token: string, options?: {
630
- sidebar?: boolean;
631
- }) => void;
632
- openSession: (sessionUUID: string, options?: {
633
- sidebar?: boolean;
634
- }) => void;
635
- openArtifact: (artifactUUID: string, options?: {
636
- target: "modal" | "sidebar";
637
- }) => void;
638
- navigate: (url: string) => void;
639
- onRouteChanged: (internalRoute: string) => void;
640
- handleError: (code: ("auth-expired" | "other"), error: Record<string, unknown>) => void;
641
- setContext: (context: Record<string, unknown>, sessionUUID?: string, source?: {
642
- type: "page" | "artifact";
643
- uuid: string;
644
- instanceUUID?: string;
645
- }) => void;
646
- formatUrl: (relativeUrl: string) => string;
647
- logout: () => void;
648
- };
649
- /** @deprecated, use `host` instead to host calls */
650
- readonly iframe: {
651
- toast: (message: primevue_toast.ToastMessageOptions) => void;
652
- confirm: (options: LimitedConfirmationOptions) => Promise<boolean>;
653
- startChat: (start_token: string, sidebar?: boolean) => void;
654
- openSession: (sessionUUID: string, sidebar?: boolean) => void;
655
- openArtifact: (artifactUUID: string, target: "modal" | "sidebar") => void;
656
- navigate: (url: string) => void;
657
- handleError: (code: ("auth-expired" | "other"), error: Record<string, unknown>) => void;
658
- setContext: (context: Record<string, unknown>, source?: {
659
- type: "page" | "artifact";
660
- uuid: string;
661
- }) => void;
662
- formatUrl: (relativeUrl: string) => string;
663
- logout: () => void;
664
- };
665
- readonly on: <T extends string>(topicPattern: T, callback: T extends "@history" | "@visibility" | "@message" ? Events[T] : Events["@message"]) => nanoevents.Unsubscribe;
666
- readonly config: AppConfig;
667
- /** @deprecated, use direct api calls instead */
668
- readonly form: {
669
- get: () => Promise<FormState>;
670
- submit: (data: FormData | Record<string, unknown>) => Promise<FormResult>;
671
- };
672
- readonly loadWebComponent: (componentId: string, tagName?: string) => Promise<void>;
673
- hostCss: typeof hostCssRaw;
674
- tailwindConfig: {
675
- content: string[];
676
- theme: {
677
- extend: {
678
- colors: {
679
- secondary: {
680
- 50: string;
681
- 100: string;
682
- 200: string;
683
- 300: string;
684
- 400: string;
685
- 500: string;
686
- 600: string;
687
- 700: string;
688
- 800: string;
689
- 900: string;
690
- 950: string;
691
- };
692
- };
693
- };
694
- };
695
- plugins: any[];
696
- };
697
- /**
698
- * Automatically defines a web component based on the import meta URL if imported with `declare-tag` in the query parameters.
699
- * @param importMetaUrl
700
- * @param ComponentClass
701
- */
702
- define: (importMetaUrl: string, ComponentClass: typeof HTMLElement) => void;
703
- loadCss: (cssUrl: string) => Promise<string>;
704
- addIcons: (addCollectionFn: typeof addCollection) => void;
705
- };
706
- declare const define: (importMetaUrl: string, ComponentClass: typeof HTMLElement) => void;
707
- declare const api: axios.AxiosInstance;
708
- declare const host: {
709
- toast: (message: primevue_toast.ToastMessageOptions) => void;
710
- confirm: (options: LimitedConfirmationOptions) => Promise<boolean>;
711
- startChat: (start_token: string, options?: {
712
- sidebar?: boolean;
713
- }) => void;
714
- openSession: (sessionUUID: string, options?: {
715
- sidebar?: boolean;
716
- }) => void;
717
- openArtifact: (artifactUUID: string, options?: {
718
- target: "modal" | "sidebar";
719
- }) => void;
720
- navigate: (url: string) => void;
721
- onRouteChanged: (internalRoute: string) => void;
722
- handleError: (code: ("auth-expired" | "other"), error: Record<string, unknown>) => void;
723
- setContext: (context: Record<string, unknown>, sessionUUID?: string, source?: {
724
- type: "page" | "artifact";
725
- uuid: string;
726
- instanceUUID?: string;
727
- }) => void;
728
- formatUrl: (relativeUrl: string) => string;
729
- logout: () => void;
730
- };
731
- declare const iframe: {
732
- toast: (message: primevue_toast.ToastMessageOptions) => void;
733
- confirm: (options: LimitedConfirmationOptions) => Promise<boolean>;
734
- startChat: (start_token: string, sidebar?: boolean) => void;
735
- openSession: (sessionUUID: string, sidebar?: boolean) => void;
736
- openArtifact: (artifactUUID: string, target: "modal" | "sidebar") => void;
737
- navigate: (url: string) => void;
738
- handleError: (code: ("auth-expired" | "other"), error: Record<string, unknown>) => void;
739
- setContext: (context: Record<string, unknown>, source?: {
740
- type: "page" | "artifact";
741
- uuid: string;
742
- }) => void;
743
- formatUrl: (relativeUrl: string) => string;
744
- logout: () => void;
745
- };
746
- declare const on: <T extends string>(topicPattern: T, callback: T extends "@history" | "@visibility" | "@message" ? Events[T] : Events["@message"]) => nanoevents.Unsubscribe;
747
- declare const config: AppConfig;
748
- declare const form: {
749
- get: () => Promise<FormState>;
750
- submit: (data: FormData | Record<string, unknown>) => Promise<FormResult>;
751
- };
752
- declare const hostCss: typeof hostCssRaw;
753
- declare const loadCss: (cssUrl: string) => Promise<string>;
754
- declare const tailwindConfig: {
755
- content: string[];
756
- theme: {
757
- extend: {
758
- colors: {
759
- secondary: {
760
- 50: string;
761
- 100: string;
762
- 200: string;
763
- 300: string;
764
- 400: string;
765
- 500: string;
766
- 600: string;
767
- 700: string;
768
- 800: string;
769
- 900: string;
770
- 950: string;
771
- };
772
- };
773
- };
774
- };
775
- plugins: any[];
776
- };
777
- declare const loadWebComponent: (componentId: string, tagName?: string) => Promise<void>;
778
- declare const addIcons: (addCollectionFn: typeof addCollection) => void;
779
-
780
- export { addIcons, api, config, resolvers as default, define, form, host, hostCss, iframe, loadCss, loadWebComponent, on, tailwindConfig };