@gui-chat-plugin/sequence 0.2.0 → 0.3.0

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/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./core-AQFO5Vcb.cjs");exports.DEFINE_STORYBOARD=e.s,exports.DEFINE_STORYBOARD_DEFINITION=e.c,exports.MAX_CHARACTERS=e.l,exports.MAX_CHOICES=e.u,exports.MAX_PANELS=e.d,exports.PANEL_ARGS_ERROR=e.f,exports.PRESENT_PANEL=e.p,exports.PRESENT_PANEL_DEFINITION=e.m,exports.PRESENT_SLIDE=e.h,exports.PRESENT_SLIDE_DEFINITION=e.g,exports.PRESENT_SLIDE_PROMPT=e._,exports.SEQUENCE_ID=e.v,exports.SLIDESHOWS_DIR=e.i,exports.SLIDE_ARGS_ERROR=e.y,exports.STORYBOARDS_DIR=e.a,exports.STORYBOARD_PROMPT=e.b,exports.castShownInstructions=e.x,exports.defineStoryboardPluginCore=e.t,exports.loadRecord=e.o,exports.panelShownInstructions=e.S,exports.parsePanelArgs=e.C,exports.parseSlideArgs=e.w,exports.parseStoryboardArgs=e.T,exports.presentPanelPluginCore=e.n,exports.presentSlidePluginCore=e.r,exports.sameName=e.E,exports.slideShownInstructions=e.D;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./core-B1EsmU-q.cjs");exports.DEFINE_STORYBOARD=e.s,exports.DEFINE_STORYBOARD_DEFINITION=e.c,exports.MAX_CHARACTERS=e.l,exports.MAX_CHOICES=e.u,exports.MAX_PANELS=e.d,exports.MAX_SLIDE_HTML=e.k,exports.PANEL_ARGS_ERROR=e.f,exports.PRESENT_PANEL=e.p,exports.PRESENT_PANEL_DEFINITION=e.m,exports.PRESENT_SLIDE=e.h,exports.PRESENT_SLIDE_DEFINITION=e.g,exports.PRESENT_SLIDE_PROMPT=e._,exports.SEQUENCE_ID=e.v,exports.SLIDESHOWS_DIR=e.i,exports.SLIDE_ANIMATIONS=e.A,exports.SLIDE_ARGS_ERROR=e.y,exports.SLIDE_HEIGHT=e.j,exports.SLIDE_HTML_TOO_LONG=e.b,exports.SLIDE_WIDTH=e.M,exports.STORYBOARDS_DIR=e.a,exports.STORYBOARD_PROMPT=e.x,exports.castShownInstructions=e.S,exports.defineStoryboardPluginCore=e.t,exports.loadRecord=e.o,exports.panelShownInstructions=e.C,exports.parsePanelArgs=e.w,exports.parseSlideArgs=e.T,exports.parseStoryboardArgs=e.E,exports.presentPanelPluginCore=e.n,exports.presentSlidePluginCore=e.r,exports.sameName=e.D,exports.slideHtmlDocument=e.N,exports.slideShownInstructions=e.O;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { C as e, D as t, E as n, S as r, T as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, v as C, w, x as T, y as E } from "./core-qe3zK8TI.js";
2
- export { b as DEFINE_STORYBOARD, c as DEFINE_STORYBOARD_DEFINITION, m as MAX_CHARACTERS, S as MAX_CHOICES, l as MAX_PANELS, u as PANEL_ARGS_ERROR, v as PRESENT_PANEL, h as PRESENT_PANEL_DEFINITION, f as PRESENT_SLIDE, d as PRESENT_SLIDE_DEFINITION, a as PRESENT_SLIDE_PROMPT, C as SEQUENCE_ID, p as SLIDESHOWS_DIR, E as SLIDE_ARGS_ERROR, o as STORYBOARDS_DIR, s as STORYBOARD_PROMPT, T as castShownInstructions, x as defineStoryboardPluginCore, _ as loadRecord, r as panelShownInstructions, e as parsePanelArgs, w as parseSlideArgs, i as parseStoryboardArgs, g as presentPanelPluginCore, y as presentSlidePluginCore, n as sameName, t as slideShownInstructions };
1
+ import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, y as M } from "./core-BALd7sgj.js";
2
+ export { E as DEFINE_STORYBOARD, f as DEFINE_STORYBOARD_DEFINITION, b as MAX_CHARACTERS, O as MAX_CHOICES, p as MAX_PANELS, y as MAX_SLIDE_HTML, m as PANEL_ARGS_ERROR, w as PRESENT_PANEL, x as PRESENT_PANEL_DEFINITION, g as PRESENT_SLIDE, h as PRESENT_SLIDE_DEFINITION, l as PRESENT_SLIDE_PROMPT, k as SEQUENCE_ID, _ as SLIDESHOWS_DIR, e as SLIDE_ANIMATIONS, M as SLIDE_ARGS_ERROR, v as SLIDE_HEIGHT, d as SLIDE_HTML_TOO_LONG, i as SLIDE_WIDTH, u as STORYBOARDS_DIR, j as STORYBOARD_PROMPT, s as castShownInstructions, D as defineStoryboardPluginCore, C as loadRecord, t as panelShownInstructions, A as parsePanelArgs, c as parseSlideArgs, r as parseStoryboardArgs, S as presentPanelPluginCore, T as presentSlidePluginCore, n as sameName, a as slideHtmlDocument, o as slideShownInstructions };
package/dist/style.css CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-indigo-600:oklch(51.1% .262 276.966);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.mt-1{margin-top:var(--spacing)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.flex{display:flex}.grid{display:grid}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-0{min-height:0}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.rounded-full{border-radius:2147483647px}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-gray-800{color:var(--color-gray-800)}.text-white{color:var(--color-white)}}@property --tw-font-weight{syntax:"*";inherits:false}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-sky-500:oklch(68.5% .169 237.323);--color-indigo-600:oklch(51.1% .262 276.966);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-900:oklch(20.8% .042 265.755);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--leading-tight:1.25;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--aspect-video:16 / 9;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.mt-1{margin-top:var(--spacing)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.aspect-video{aspect-ratio:var(--aspect-video)}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-0{min-height:0}.w-full{width:100%}.max-w-full{max-width:100%}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.auto-rows-fr{grid-auto-rows:minmax(0,1fr)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.border-0{border-style:var(--tw-border-style);border-width:0}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-white{background-color:var(--color-white)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-indigo-600{--tw-gradient-from:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-sky-500{--tw-gradient-to:var(--color-sky-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.object-contain{object-fit:contain}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.py-2{padding-block:calc(var(--spacing) * 2)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-gray-800{color:var(--color-gray-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-80{opacity:.8}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[animation-delay\:…\]{animation-delay:…}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
3
3
  /*$vite$:1*/
package/dist/vue.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./core-AQFO5Vcb.cjs");let t=require("vue"),n=require("@mulmochat-plugin/ui-image");function r({caption:e,choices:n}){let r=[];return e&&r.push((0,t.h)(`p`,{class:`text-center text-lg text-gray-800 px-4`},e)),n?.length&&r.push((0,t.h)(`ol`,{class:`flex flex-wrap justify-center gap-3 px-4`},n.map((e,n)=>(0,t.h)(`li`,{class:`rounded-full bg-indigo-600 text-white text-xl px-5 py-2 font-medium`},`${n+1}. ${e}`)))),r.length?(0,t.h)(`div`,{class:`flex flex-col gap-2 pb-2`},r):null}function i(e,n=()=>({})){return(0,t.markRaw)((0,t.defineComponent)({name:e,props:{selectedResult:{type:Object,required:!0}},setup(e){return()=>{let i=e.selectedResult.data;return i?.imageData?(0,t.h)(`div`,{class:`h-full w-full flex flex-col bg-white p-2 gap-2`},[(0,t.h)(`div`,{class:`flex-1 min-h-0 flex items-center justify-center`},[(0,t.h)(`img`,{src:i.imageData,alt:i.prompt??``,class:`max-w-full max-h-full object-contain`})]),r(n(i))]):(0,t.h)(`div`,{class:`h-full bg-white`})}}}))}function a(e){return(0,t.markRaw)((0,t.defineComponent)({name:e,props:{result:{type:Object,required:!0}},setup(e){return()=>(0,t.h)(n.ImagePreview,{result:e.result})}}))}var o=(0,t.markRaw)((0,t.defineComponent)({name:`StoryboardCastView`,props:{selectedResult:{type:Object,required:!0}},setup(e){return()=>{let n=e.selectedResult.data,r=n?.characters??[];return(0,t.h)(`div`,{class:`h-full w-full flex flex-col bg-white p-4`},[(0,t.h)(`h2`,{class:`text-center text-xl font-semibold text-gray-800 mb-3`},n?.title??``),(0,t.h)(`div`,{class:`flex-1 min-h-0 grid gap-3 ${r.length>1?`grid-cols-2`:`grid-cols-1`} auto-rows-fr`},r.map(e=>(0,t.h)(`figure`,{class:`min-h-0 flex flex-col items-center`},[e.imageData?(0,t.h)(`img`,{src:e.imageData,alt:e.name,class:`flex-1 min-h-0 max-w-full object-contain`}):(0,t.h)(`div`,{class:`flex-1`}),(0,t.h)(`figcaption`,{class:`text-lg text-gray-800 mt-1`},e.name)])))])}}})),s=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`):[],c={...e.r,viewComponent:i(`PresentSlideView`),previewComponent:a(`PresentSlidePreview`)},l={...e.t,viewComponent:o,previewComponent:a(`StoryboardCastPreview`)},u={...e.n,viewComponent:i(`PresentPanelView`,e=>({caption:typeof e.caption==`string`?e.caption:``,choices:s(e.choices)})),previewComponent:a(`PresentPanelPreview`)},d=[c,l,u];exports.DEFINE_STORYBOARD=e.s,exports.DEFINE_STORYBOARD_DEFINITION=e.c,exports.MAX_CHARACTERS=e.l,exports.MAX_CHOICES=e.u,exports.MAX_PANELS=e.d,exports.PANEL_ARGS_ERROR=e.f,exports.PRESENT_PANEL=e.p,exports.PRESENT_PANEL_DEFINITION=e.m,exports.PRESENT_SLIDE=e.h,exports.PRESENT_SLIDE_DEFINITION=e.g,exports.PRESENT_SLIDE_PROMPT=e._,exports.SEQUENCE_ID=e.v,exports.SLIDESHOWS_DIR=e.i,exports.SLIDE_ARGS_ERROR=e.y,exports.STORYBOARDS_DIR=e.a,exports.STORYBOARD_PROMPT=e.b,exports.castShownInstructions=e.x,exports.defineStoryboardPlugin=l,exports.defineStoryboardPluginCore=e.t,exports.loadRecord=e.o,exports.panelShownInstructions=e.S,exports.parsePanelArgs=e.C,exports.parseSlideArgs=e.w,exports.parseStoryboardArgs=e.T,exports.plugins=d,exports.presentPanelPlugin=u,exports.presentPanelPluginCore=e.n,exports.presentSlidePlugin=c,exports.presentSlidePluginCore=e.r,exports.sameName=e.E,exports.slideShownInstructions=e.D;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./core-B1EsmU-q.cjs");let t=require("vue"),n=require("@mulmochat-plugin/ui-image");function r({caption:e,choices:n}){let r=[];return e&&r.push((0,t.h)(`p`,{class:`text-center text-lg text-gray-800 px-4`},e)),n?.length&&r.push((0,t.h)(`ol`,{class:`flex flex-wrap justify-center gap-3 px-4`},n.map((e,n)=>(0,t.h)(`li`,{class:`rounded-full bg-indigo-600 text-white text-xl px-5 py-2 font-medium`},`${n+1}. ${e}`)))),r.length?(0,t.h)(`div`,{class:`flex flex-col gap-2 pb-2`},r):null}function i(e,n=()=>({})){return(0,t.markRaw)((0,t.defineComponent)({name:e,props:{selectedResult:{type:Object,required:!0}},setup(e){return()=>{let i=e.selectedResult.data;return i?.imageData?(0,t.h)(`div`,{class:`h-full w-full flex flex-col bg-white p-2 gap-2`},[(0,t.h)(`div`,{class:`flex-1 min-h-0 flex items-center justify-center`},[(0,t.h)(`img`,{src:i.imageData,alt:i.prompt??``,class:`max-w-full max-h-full object-contain`})]),r(n(i))]):(0,t.h)(`div`,{class:`h-full bg-white`})}}}))}var a=(0,t.defineComponent)({name:`HtmlSlide`,props:{html:{type:String,required:!0}},setup(n){let r=(0,t.ref)(null),i=(0,t.ref)(0),a,o=()=>{let t=r.value;t&&(i.value=Math.min(t.clientWidth/e.M,t.clientHeight/720))};return(0,t.onMounted)(()=>{o(),a=new ResizeObserver(o),r.value&&a.observe(r.value)}),(0,t.onBeforeUnmount)(()=>a?.disconnect()),()=>(0,t.h)(`div`,{ref:r,class:`flex-1 min-h-0 w-full relative overflow-hidden`},i.value>0?[(0,t.h)(`iframe`,{srcdoc:e.N(n.html),sandbox:`allow-scripts`,title:`slide`,width:e.M,height:720,class:`absolute border-0 bg-white shadow`,style:{left:`50%`,top:`50%`,transform:`translate(-50%, -50%) scale(${i.value})`}})]:[])}}),o=i(`PresentSlideImageView`),s=(0,t.markRaw)((0,t.defineComponent)({name:`PresentSlideView`,props:{selectedResult:{type:Object,required:!0}},setup(e){return()=>{let n=e.selectedResult.data?.html;return n?(0,t.h)(`div`,{class:`h-full w-full flex flex-col bg-slate-100 p-2`},[(0,t.h)(a,{key:e.selectedResult.uuid??n,html:n})]):(0,t.h)(o,{selectedResult:e.selectedResult})}}})),c=(0,t.markRaw)((0,t.defineComponent)({name:`PresentSlidePreview`,props:{result:{type:Object,required:!0}},setup(e){return()=>{let r=e.result.data;return r?.html?(0,t.h)(`div`,{class:`aspect-video w-full rounded bg-gradient-to-br from-indigo-600 to-sky-500 text-white flex flex-col items-center justify-center p-2 text-center`},[(0,t.h)(`div`,{class:`text-xs opacity-80`},`Slide ${r.slide} of ${r.totalSlides}`),(0,t.h)(`div`,{class:`text-sm font-semibold leading-tight line-clamp-2`},r.title||e.result.title||``)]):(0,t.h)(n.ImagePreview,{result:e.result})}}}));function l(e){return(0,t.markRaw)((0,t.defineComponent)({name:e,props:{result:{type:Object,required:!0}},setup(e){return()=>(0,t.h)(n.ImagePreview,{result:e.result})}}))}var u=(0,t.markRaw)((0,t.defineComponent)({name:`StoryboardCastView`,props:{selectedResult:{type:Object,required:!0}},setup(e){return()=>{let n=e.selectedResult.data,r=n?.characters??[];return(0,t.h)(`div`,{class:`h-full w-full flex flex-col bg-white p-4`},[(0,t.h)(`h2`,{class:`text-center text-xl font-semibold text-gray-800 mb-3`},n?.title??``),(0,t.h)(`div`,{class:`flex-1 min-h-0 grid gap-3 ${r.length>1?`grid-cols-2`:`grid-cols-1`} auto-rows-fr`},r.map(e=>(0,t.h)(`figure`,{class:`min-h-0 flex flex-col items-center`},[e.imageData?(0,t.h)(`img`,{src:e.imageData,alt:e.name,class:`flex-1 min-h-0 max-w-full object-contain`}):(0,t.h)(`div`,{class:`flex-1`}),(0,t.h)(`figcaption`,{class:`text-lg text-gray-800 mt-1`},e.name)])))])}}})),d=e=>Array.isArray(e)?e.filter(e=>typeof e==`string`):[],f={...e.r,viewComponent:s,previewComponent:c},p={...e.t,viewComponent:u,previewComponent:l(`StoryboardCastPreview`)},m={...e.n,viewComponent:i(`PresentPanelView`,e=>({caption:typeof e.caption==`string`?e.caption:``,choices:d(e.choices)})),previewComponent:l(`PresentPanelPreview`)},h=[f,p,m];exports.DEFINE_STORYBOARD=e.s,exports.DEFINE_STORYBOARD_DEFINITION=e.c,exports.MAX_CHARACTERS=e.l,exports.MAX_CHOICES=e.u,exports.MAX_PANELS=e.d,exports.MAX_SLIDE_HTML=e.k,exports.PANEL_ARGS_ERROR=e.f,exports.PRESENT_PANEL=e.p,exports.PRESENT_PANEL_DEFINITION=e.m,exports.PRESENT_SLIDE=e.h,exports.PRESENT_SLIDE_DEFINITION=e.g,exports.PRESENT_SLIDE_PROMPT=e._,exports.SEQUENCE_ID=e.v,exports.SLIDESHOWS_DIR=e.i,exports.SLIDE_ANIMATIONS=e.A,exports.SLIDE_ARGS_ERROR=e.y,exports.SLIDE_HEIGHT=e.j,exports.SLIDE_HTML_TOO_LONG=e.b,exports.SLIDE_WIDTH=e.M,exports.STORYBOARDS_DIR=e.a,exports.STORYBOARD_PROMPT=e.x,exports.castShownInstructions=e.S,exports.defineStoryboardPlugin=p,exports.defineStoryboardPluginCore=e.t,exports.loadRecord=e.o,exports.panelShownInstructions=e.C,exports.parsePanelArgs=e.w,exports.parseSlideArgs=e.T,exports.parseStoryboardArgs=e.E,exports.plugins=h,exports.presentPanelPlugin=m,exports.presentPanelPluginCore=e.n,exports.presentSlidePlugin=f,exports.presentSlidePluginCore=e.r,exports.sameName=e.D,exports.slideHtmlDocument=e.N,exports.slideShownInstructions=e.O;
package/dist/vue.js CHANGED
@@ -1,13 +1,13 @@
1
- import { C as e, D as t, E as n, S as r, T as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, v as C, w, x as T, y as E } from "./core-qe3zK8TI.js";
2
- import { defineComponent as D, h as O, markRaw as k } from "vue";
3
- import { ImagePreview as A } from "@mulmochat-plugin/ui-image";
1
+ import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, S as s, T as c, _ as l, a as u, b as d, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, y as M } from "./core-BALd7sgj.js";
2
+ import { defineComponent as N, h as P, markRaw as F, onBeforeUnmount as I, onMounted as L, ref as R } from "vue";
3
+ import { ImagePreview as z } from "@mulmochat-plugin/ui-image";
4
4
  //#region src/vue/index.ts
5
- function j({ caption: e, choices: t }) {
5
+ function B({ caption: e, choices: t }) {
6
6
  let n = [];
7
- return e && n.push(O("p", { class: "text-center text-lg text-gray-800 px-4" }, e)), t?.length && n.push(O("ol", { class: "flex flex-wrap justify-center gap-3 px-4" }, t.map((e, t) => O("li", { class: "rounded-full bg-indigo-600 text-white text-xl px-5 py-2 font-medium" }, `${t + 1}. ${e}`)))), n.length ? O("div", { class: "flex flex-col gap-2 pb-2" }, n) : null;
7
+ return e && n.push(P("p", { class: "text-center text-lg text-gray-800 px-4" }, e)), t?.length && n.push(P("ol", { class: "flex flex-wrap justify-center gap-3 px-4" }, t.map((e, t) => P("li", { class: "rounded-full bg-indigo-600 text-white text-xl px-5 py-2 font-medium" }, `${t + 1}. ${e}`)))), n.length ? P("div", { class: "flex flex-col gap-2 pb-2" }, n) : null;
8
8
  }
9
- function M(e, t = () => ({})) {
10
- return k(D({
9
+ function V(e, t = () => ({})) {
10
+ return F(N({
11
11
  name: e,
12
12
  props: { selectedResult: {
13
13
  type: Object,
@@ -16,28 +16,86 @@ function M(e, t = () => ({})) {
16
16
  setup(e) {
17
17
  return () => {
18
18
  let n = e.selectedResult.data;
19
- return n?.imageData ? O("div", { class: "h-full w-full flex flex-col bg-white p-2 gap-2" }, [O("div", { class: "flex-1 min-h-0 flex items-center justify-center" }, [O("img", {
19
+ return n?.imageData ? P("div", { class: "h-full w-full flex flex-col bg-white p-2 gap-2" }, [P("div", { class: "flex-1 min-h-0 flex items-center justify-center" }, [P("img", {
20
20
  src: n.imageData,
21
21
  alt: n.prompt ?? "",
22
22
  class: "max-w-full max-h-full object-contain"
23
- })]), j(t(n))]) : O("div", { class: "h-full bg-white" });
23
+ })]), B(t(n))]) : P("div", { class: "h-full bg-white" });
24
24
  };
25
25
  }
26
26
  }));
27
27
  }
28
- function N(e) {
29
- return k(D({
28
+ var H = N({
29
+ name: "HtmlSlide",
30
+ props: { html: {
31
+ type: String,
32
+ required: !0
33
+ } },
34
+ setup(e) {
35
+ let t = R(null), n = R(0), r, o = () => {
36
+ let e = t.value;
37
+ e && (n.value = Math.min(e.clientWidth / i, e.clientHeight / 720));
38
+ };
39
+ return L(() => {
40
+ o(), r = new ResizeObserver(o), t.value && r.observe(t.value);
41
+ }), I(() => r?.disconnect()), () => P("div", {
42
+ ref: t,
43
+ class: "flex-1 min-h-0 w-full relative overflow-hidden"
44
+ }, n.value > 0 ? [P("iframe", {
45
+ srcdoc: a(e.html),
46
+ sandbox: "allow-scripts",
47
+ title: "slide",
48
+ width: i,
49
+ height: 720,
50
+ class: "absolute border-0 bg-white shadow",
51
+ style: {
52
+ left: "50%",
53
+ top: "50%",
54
+ transform: `translate(-50%, -50%) scale(${n.value})`
55
+ }
56
+ })] : []);
57
+ }
58
+ }), U = V("PresentSlideImageView"), W = F(N({
59
+ name: "PresentSlideView",
60
+ props: { selectedResult: {
61
+ type: Object,
62
+ required: !0
63
+ } },
64
+ setup(e) {
65
+ return () => {
66
+ let t = e.selectedResult.data?.html;
67
+ return t ? P("div", { class: "h-full w-full flex flex-col bg-slate-100 p-2" }, [P(H, {
68
+ key: e.selectedResult.uuid ?? t,
69
+ html: t
70
+ })]) : P(U, { selectedResult: e.selectedResult });
71
+ };
72
+ }
73
+ })), G = F(N({
74
+ name: "PresentSlidePreview",
75
+ props: { result: {
76
+ type: Object,
77
+ required: !0
78
+ } },
79
+ setup(e) {
80
+ return () => {
81
+ let t = e.result.data;
82
+ return t?.html ? P("div", { class: "aspect-video w-full rounded bg-gradient-to-br from-indigo-600 to-sky-500 text-white flex flex-col items-center justify-center p-2 text-center" }, [P("div", { class: "text-xs opacity-80" }, `Slide ${t.slide} of ${t.totalSlides}`), P("div", { class: "text-sm font-semibold leading-tight line-clamp-2" }, t.title || e.result.title || "")]) : P(z, { result: e.result });
83
+ };
84
+ }
85
+ }));
86
+ function K(e) {
87
+ return F(N({
30
88
  name: e,
31
89
  props: { result: {
32
90
  type: Object,
33
91
  required: !0
34
92
  } },
35
93
  setup(e) {
36
- return () => O(A, { result: e.result });
94
+ return () => P(z, { result: e.result });
37
95
  }
38
96
  }));
39
97
  }
40
- var P = k(D({
98
+ var q = F(N({
41
99
  name: "StoryboardCastView",
42
100
  props: { selectedResult: {
43
101
  type: Object,
@@ -46,32 +104,32 @@ var P = k(D({
46
104
  setup(e) {
47
105
  return () => {
48
106
  let t = e.selectedResult.data, n = t?.characters ?? [];
49
- return O("div", { class: "h-full w-full flex flex-col bg-white p-4" }, [O("h2", { class: "text-center text-xl font-semibold text-gray-800 mb-3" }, t?.title ?? ""), O("div", { class: `flex-1 min-h-0 grid gap-3 ${n.length > 1 ? "grid-cols-2" : "grid-cols-1"} auto-rows-fr` }, n.map((e) => O("figure", { class: "min-h-0 flex flex-col items-center" }, [e.imageData ? O("img", {
107
+ return P("div", { class: "h-full w-full flex flex-col bg-white p-4" }, [P("h2", { class: "text-center text-xl font-semibold text-gray-800 mb-3" }, t?.title ?? ""), P("div", { class: `flex-1 min-h-0 grid gap-3 ${n.length > 1 ? "grid-cols-2" : "grid-cols-1"} auto-rows-fr` }, n.map((e) => P("figure", { class: "min-h-0 flex flex-col items-center" }, [e.imageData ? P("img", {
50
108
  src: e.imageData,
51
109
  alt: e.name,
52
110
  class: "flex-1 min-h-0 max-w-full object-contain"
53
- }) : O("div", { class: "flex-1" }), O("figcaption", { class: "text-lg text-gray-800 mt-1" }, e.name)])))]);
111
+ }) : P("div", { class: "flex-1" }), P("figcaption", { class: "text-lg text-gray-800 mt-1" }, e.name)])))]);
54
112
  };
55
113
  }
56
- })), F = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], I = {
57
- ...y,
58
- viewComponent: M("PresentSlideView"),
59
- previewComponent: N("PresentSlidePreview")
60
- }, L = {
61
- ...x,
62
- viewComponent: P,
63
- previewComponent: N("StoryboardCastPreview")
64
- }, R = {
65
- ...g,
66
- viewComponent: M("PresentPanelView", (e) => ({
114
+ })), J = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], Y = {
115
+ ...T,
116
+ viewComponent: W,
117
+ previewComponent: G
118
+ }, X = {
119
+ ...D,
120
+ viewComponent: q,
121
+ previewComponent: K("StoryboardCastPreview")
122
+ }, Z = {
123
+ ...S,
124
+ viewComponent: V("PresentPanelView", (e) => ({
67
125
  caption: typeof e.caption == "string" ? e.caption : "",
68
- choices: F(e.choices)
126
+ choices: J(e.choices)
69
127
  })),
70
- previewComponent: N("PresentPanelPreview")
71
- }, z = [
72
- I,
73
- L,
74
- R
128
+ previewComponent: K("PresentPanelPreview")
129
+ }, Q = [
130
+ Y,
131
+ X,
132
+ Z
75
133
  ];
76
134
  //#endregion
77
- export { b as DEFINE_STORYBOARD, c as DEFINE_STORYBOARD_DEFINITION, m as MAX_CHARACTERS, S as MAX_CHOICES, l as MAX_PANELS, u as PANEL_ARGS_ERROR, v as PRESENT_PANEL, h as PRESENT_PANEL_DEFINITION, f as PRESENT_SLIDE, d as PRESENT_SLIDE_DEFINITION, a as PRESENT_SLIDE_PROMPT, C as SEQUENCE_ID, p as SLIDESHOWS_DIR, E as SLIDE_ARGS_ERROR, o as STORYBOARDS_DIR, s as STORYBOARD_PROMPT, T as castShownInstructions, L as defineStoryboardPlugin, x as defineStoryboardPluginCore, _ as loadRecord, r as panelShownInstructions, e as parsePanelArgs, w as parseSlideArgs, i as parseStoryboardArgs, z as plugins, R as presentPanelPlugin, g as presentPanelPluginCore, I as presentSlidePlugin, y as presentSlidePluginCore, n as sameName, t as slideShownInstructions };
135
+ export { E as DEFINE_STORYBOARD, f as DEFINE_STORYBOARD_DEFINITION, b as MAX_CHARACTERS, O as MAX_CHOICES, p as MAX_PANELS, y as MAX_SLIDE_HTML, m as PANEL_ARGS_ERROR, w as PRESENT_PANEL, x as PRESENT_PANEL_DEFINITION, g as PRESENT_SLIDE, h as PRESENT_SLIDE_DEFINITION, l as PRESENT_SLIDE_PROMPT, k as SEQUENCE_ID, _ as SLIDESHOWS_DIR, e as SLIDE_ANIMATIONS, M as SLIDE_ARGS_ERROR, v as SLIDE_HEIGHT, d as SLIDE_HTML_TOO_LONG, i as SLIDE_WIDTH, u as STORYBOARDS_DIR, j as STORYBOARD_PROMPT, s as castShownInstructions, X as defineStoryboardPlugin, D as defineStoryboardPluginCore, C as loadRecord, t as panelShownInstructions, A as parsePanelArgs, c as parseSlideArgs, r as parseStoryboardArgs, Q as plugins, Z as presentPanelPlugin, S as presentPanelPluginCore, Y as presentSlidePlugin, T as presentSlidePluginCore, n as sameName, a as slideHtmlDocument, o as slideShownInstructions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gui-chat-plugin/sequence",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Slideshows, step-by-step guides and stories told in pictures (presentSlide, defineStoryboard, presentPanel) for GUI Chat Protocol hosts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1 +0,0 @@
1
- let e=require("gui-chat-protocol");var t=`presentSlide`,n=`defineStoryboard`,r=`presentPanel`,i=4,a=12,o=3,s=/^[0-9a-f]{12}$/,c=e=>typeof e==`object`&&!!e&&!Array.isArray(e),l=e=>typeof e==`string`?e.trim():``,u=(e,t)=>e.toLowerCase()===t.toLowerCase(),d=e=>typeof e==`number`&&Number.isInteger(e),f=`presentSlide needs slide and totalSlides (whole numbers, slide from 1 to totalSlides) and an imagePrompt`;function p(e){let{slide:t,totalSlides:n,title:r,imagePrompt:i}=e;return!d(t)||!d(n)||t<1||n<t||typeof i!=`string`||!i.trim()?null:{slide:t,totalSlides:n,title:typeof r==`string`?r:``,imagePrompt:i,mode:e.mode===`steps`?`steps`:`presentation`}}var m=({slide:e,totalSlides:t,title:n,mode:r})=>{let i=n?` ("${n}")`:``;if(r===`steps`){let n=`Step ${e} of ${t}${i}`;return e<t?`${n} is now on the screen. Explain what to do in this step, then stop and wait while the user does it. When they say they're ready (next, done, go on), call presentSlide for step ${e+1} with mode "steps". If they ask to go back or to see a step again, call presentSlide for that step.`:`${n}, the last one, is now on the screen. Explain what to do, then wrap up the guide once the user is done.`}let a=`Slide ${e} of ${t}${i}`;return e<t?`${a} is now on the screen. Explain it, then, in this same reply and without waiting for the user, call presentSlide for slide ${e+1}. If the user has asked you to stop, or asked something else, since the slideshow began, answer them instead of going on.`:`${a}, the last one, is now on the screen. Explain it, then wrap up the slideshow.`},h=`When the user asks for a slideshow (or to explain something with slides), plan four to six slides, then show them one at a time with presentSlide: slide 1 first, and each next slide only after you have explained the one on the screen. Go on to the last slide without asking whether to continue. When the user wants to be shown how to do something they will do along with you (cooking, folding, fixing, an exercise), make it a step-by-step guide instead: mode "steps", one slide per step, and after each step wait for the user to say they are ready. Use generateImage for a single picture, not for slides.`,g={type:`function`,name:t,prompt:h,description:`Show one slide of a slideshow: a picture generated from imagePrompt, full screen. Call it once per slide, in order, starting with slide 1. With mode "steps" it is a step-by-step guide: one slide per step, and the next step waits for the user.`,parameters:{type:`object`,properties:{slide:{type:`integer`,description:`This slide's number, starting at 1.`},totalSlides:{type:`integer`,description:`How many slides the slideshow has. Keep it the same for every slide.`},title:{type:`string`,description:`The slide's title.`},imagePrompt:{type:`string`,description:`The picture for this slide: a clear illustration or diagram of its point, with the title as its only large text. Be concrete. For a step, show the action: hands, tools and the object.`},mode:{type:`string`,enum:[`presentation`,`steps`],description:`"presentation" (the default) goes on by itself; "steps" is a how-to the user does along with you, and waits for them after each step. Keep it the same for every slide.`}},required:[`slide`,`totalSlides`,`title`,`imagePrompt`]}};function _(e){let{totalPanels:t}=e;if(!d(t)||t<1||t>12)return`totalPanels must be a whole number from 1 to 12`;let n=[];for(let t of Array.isArray(e.characters)?e.characters:[]){let e=c(t)?l(t.name):``,r=c(t)?l(t.description):``;if(!e||!r)return`every character needs a name and a description`;if(n.some(t=>u(t.name,e)))return`two characters are named ${e}`;n.push({name:e,description:r})}return n.length<1||n.length>4?`a storyboard has 1 to 4 characters`:{title:l(e.title),style:l(e.style),totalPanels:t,characters:n,interactive:e.interactive===!0}}var v=({title:e,id:t})=>`The cast of "${e}" is now on the screen. Introduce the characters briefly, then, in this same reply and without waiting for the user, call presentPanel for panel 1 with storyboardId "${t}". If the user has asked you to stop, or asked something else, answer them instead of going on.`,y=`presentPanel needs a storyboardId, a panel number (from 1) and an imagePrompt`;function b(e){let{panel:t}=e,n=l(e.storyboardId),r=l(e.imagePrompt);if(!n||!r||!d(t)||t<1)return null;let i=e=>(Array.isArray(e)?e:[]).map(l).filter(Boolean);return{storyboardId:n,panel:t,characters:i(e.characters),imagePrompt:r,caption:l(e.caption),choices:i(e.choices).slice(0,3)}}function x(e,t,n){let{id:r,totalPanels:i}=e;return n.length?`Panel ${t} of ${i} is now on the screen, with the user's choices: ${n.map((e,t)=>`${t+1}. ${e}`).join(` `)} Tell this part of the story, then read the choices out and ask the user which one they pick, and wait for their answer. Then call presentPanel for panel ${t+1} with storyboardId "${r}", going on the way they chose.`:t<i?`Panel ${t} of ${i} is now on the screen. Tell this part of the story, then, in this same reply and without waiting for the user, call presentPanel for panel ${t+1} with storyboardId "${r}". If the user has asked you to stop, or asked something else, since the story began, answer them instead of going on.`:`Panel ${t} of ${i}, the last one, is now on the screen. Tell this part of the story, then bring it to an end.`}var S=`When the user asks for a story, a picture book, a comic or a storyboard, tell it in pictures: first call defineStoryboard with the art style and the characters who appear more than once (it draws a reference sheet for each, so they look the same in every panel), then show the panels one at a time with presentPanel, naming the characters in each, and tell each part of the story when its panel appears. Go on to the last panel without asking whether to continue, unless the story is interactive. When the user wants to decide what happens (an adventure, a story for a child who wants to choose), set interactive, and give two or three choices on two or three of the panels: the story waits there for the user's pick and goes on their way; it still ends at the last panel whichever way it goes. Use presentSlide to explain a topic, not to tell a story.`,C={type:`function`,name:n,prompt:S,description:`Start a story told in pictures: set its art style and draw a reference sheet for each recurring character, shown as the cast. Then call presentPanel for each panel, in order.`,parameters:{type:`object`,properties:{title:{type:`string`,description:`The story's title.`},style:{type:`string`,description:`The art style of every picture, in one sentence (for example: soft watercolor, children's picture book).`},totalPanels:{type:`integer`,description:`How many panels the story has, at most 12; four to eight is usual.`},interactive:{type:`boolean`,description:`The user chooses what happens: panels can offer choices, and the story waits for the pick.`},characters:{type:`array`,description:`The characters who appear in more than one panel, 1 to 4.`,items:{type:`object`,properties:{name:{type:`string`,description:`A short name, used in presentPanel.`},description:{type:`string`,description:`How they look: age, build, face, hair, clothes and colors. Be concrete: it is drawn once and reused in every panel.`}},required:[`name`,`description`]}}},required:[`title`,`style`,`totalPanels`,`characters`]}},w={type:`function`,name:r,description:`Show one panel of a storyboard made with defineStoryboard: a picture of the scene with its characters drawn as in their reference sheets, and a caption. Call it once per panel, in order, starting with panel 1.`,parameters:{type:`object`,properties:{storyboardId:{type:`string`,description:`The storyboardId defineStoryboard returned.`},panel:{type:`integer`,description:`This panel's number, starting at 1.`},characters:{type:`array`,items:{type:`string`},description:`The names (as in defineStoryboard) of the characters in this panel.`},imagePrompt:{type:`string`,description:`What the panel shows: the setting, what happens, expressions and the camera angle. Refer to characters by name; don't describe their looks again.`},caption:{type:`string`,description:`One short line shown under the picture.`},choices:{type:`array`,items:{type:`string`},description:`Only in an interactive story, and not on the last panel: two or three short options for what happens next. The story waits for the user's pick.`}},required:[`storyboardId`,`panel`,`characters`,`imagePrompt`]}},T=e=>typeof e==`object`&&!!e&&!Array.isArray(e),ee=e=>T(e)&&typeof e.message==`string`;function E(e){let t=T(e?.data)?e.data:{};return{...typeof t.imageData==`string`&&{imageData:t.imageData},...typeof t.imagePath==`string`&&{imagePath:t.imagePath}}}function te(e,t){let n=E(e),r=E(t);return n.imagePath&&r.imagePath?n.imagePath===r.imagePath:!!n.imageData&&n.imageData===r.imageData}var D=(e,t)=>e.userSpokeAt===void 0||e.userSpokeAt>t,O=()=>crypto.randomUUID().replace(/-/g,``).slice(0,12),k=`artifacts/`;async function A(e,t){let n=e.files?.artifacts;if(!e.app?.editImages||!n)return[];let r=[];for(let e of t)if(e.startsWith(k))try{await n.exists(e.slice(10))&&r.push(e)}catch{}return r}async function j(e,t,n=[]){let r=e.app,i=r?.editImages,a=r?.generateImage;try{let e;if(n.length&&i)e=await i(t,[...n]);else if(a)e=await a(t);else return{message:`image generation isn't available`};return ee(e)?e:{message:`image generation returned an unrecognized result`}}catch(e){return{message:`image generation failed: ${e instanceof Error?e.message:String(e)}`}}}var M=50;function N(e){let t=new Map;return n=>{let r=n.conversationId??``,i=t.get(r);if(i===void 0?i=e():t.delete(r),t.set(r,i),t.size>M){let e=t.keys().next().value;e!==void 0&&t.delete(e)}return i}}var P=`slideshows`,F=`storyboards`,I={},L=new WeakMap,R=new WeakMap;function z(e){let t=L.get(e);return t||L.set(e,t=new Map),t}function ne(t,n){let r=R.get(t);r||R.set(t,r=new Map);let i=r.get(n);return i||r.set(n,i=(0,e.createSerialLock)()),i}var B=(e,t)=>`${e}/${t}.json`;async function V(e,t){let n=z(e??I),r=n.get(t);if(r)return r;if(!e)return null;try{let r=JSON.parse(await e.read(t));return n.set(t,r),r}catch{return null}}async function H(e,t,n){return s.test(n)?V(e,B(t,n)):null}async function U(e,t,n,r){let i=B(t,n),a=e??I;return ne(a,i)(async()=>{let t=r(await V(e,i));if(z(a).set(i,t),!e)return!1;try{return await e.write(i,JSON.stringify(t,null,2)),!0}catch(e){return console.warn(`[sequence] could not save`,i,e),!1}})}var W=e=>`the ${e} could not be saved, so it lasts only until the app or server restarts`,re=6e4;function G(){let e=new Map;return{claim:t=>{let n=Date.now();for(let[t,r]of e)n-r.at>re&&e.delete(t);let r=e.get(t);if(r)return{earlier:r.shown};let i=()=>void 0,a=new Promise(e=>i=e);return e.set(t,{at:n,shown:a}),{settle:n=>{!n&&e.get(t)?.shown===a&&e.delete(t),i(n)}}}}}function K({slide:e,totalSlides:t,mode:n}){return n===`steps`?{step:e,total:t,kind:`guide`,label:`Step ${e} of ${t}`,onShown:`explain it`,nextCall:`call presentSlide for step ${e+1} of ${t} with mode "steps"`,waitsForUser:!0}:{step:e,total:t,kind:`slideshow`,label:`Slide ${e} of ${t}`,onShown:`explain it`,nextCall:`call presentSlide for slide ${e+1} of ${t}`}}var q=(e,{slide:t,totalSlides:n,title:r,imagePrompt:i})=>JSON.stringify([e,t,n,r,i]),J=N(()=>({latest:{presentation:null,steps:null},lastShown:null,repeats:G()}));function Y(e,t){let n=e.latest[t.mode],r=n?.totalSlides===t.totalSlides&&(t.slide!==1||n.firstTitle===t.title);if(n&&r)return n;let i={id:O(),mode:t.mode,totalSlides:t.totalSlides,firstTitle:t.slide===1?t.title:``,slides:new Map,current:0,shownAt:-1/0};return e.latest[t.mode]=i,i}function X(e,t,n,r){t.current=n.slide,t.shownAt=Date.now(),e.lastShown=t;let i=n.mode===`steps`?`step`:`slide`,{uuid:a,...o}=r;return{...o,message:`${i} ${n.slide} of ${n.totalSlides} is on the screen again, as it was`,instructions:m(n),instructionsRequired:!0,sequence:K(n)}}function ie(e,t){if(e.mode!==`steps`)return e.title?`A presentation slide titled "${e.title}". ${e.imagePrompt}`:e.imagePrompt;let n=e.title?`, "${e.title}"`:``;return[`An instructional illustration of step ${e.slide} of ${e.totalSlides}${n}. ${e.imagePrompt}`,t?`The reference image is the previous step: keep the same objects, hands, tools and setting, and show what this step changes.`:``,`Show the action clearly, with little or no text.`].filter(Boolean).join(` `)}async function ae(e,t,n){let r=t.slides.get(n.slide-1),i=n.mode===`steps`?E(r).imagePath:void 0,a=i?await A(e,[i]):[],o=ie(n,a.length>0),s=await j(e,o,a),{imageData:c,imagePath:l}=E(s);if(!c)return{...s,sequence:null};let u=t.id,d=await U(e.files?.artifacts,P,u,e=>{let t=e??{id:u,title:``,mode:n.mode,totalSlides:n.totalSlides,slides:{}};return n.slide===1&&(t.title=n.title),t.slides[String(n.slide)]={title:n.title,imagePrompt:n.imagePrompt,...l&&{imagePath:l}},t}),f={imageData:c,...l&&{imagePath:l},prompt:o,slideshowId:u,slide:n.slide,totalSlides:n.totalSlides,title:n.title,mode:n.mode},p=n.mode===`steps`?`step`:`slide`;return{data:f,title:n.title||`Slide ${n.slide}`,message:[`${p} ${n.slide} of ${n.totalSlides} of slideshow "${u}" is on the screen`,l?`saved to ${l}`:``,d?``:W(`slideshow`)].filter(Boolean).join(`; `),instructions:m(n),instructionsRequired:!0,sequence:K(n)}}async function Z(e,t){let n=p(t);if(!n)return{message:f,sequence:null};let r=J(e),i=Y(r,n),a=n.mode===`steps`;if(a&&n.slide>i.current&&i.current>0&&!D(e,i.shownAt)){console.info(`[sequence] holding step ${n.slide} for the user`);let e=i.shownAt===1/0?`is still being drawn`:`is still on the screen`;return{message:`step ${n.slide} was not shown: the user hasn't said they're ready yet, and step ${i.current} ${e}. Wait for them before calling presentSlide for step ${n.slide}.`,cancelled:!0}}let o=a?i.slides.get(n.slide):void 0;if(o)return te(e.currentResult,o)?{message:`step ${n.slide} of ${n.totalSlides} is already on the screen`,cancelled:!0}:X(r,i,n,o);let s=r.repeats.claim(q(i.id,n));if(`earlier`in s){if(!await s.earlier)return Z(e,t);let a=i.slides.get(n.slide);return a&&r.lastShown!==i?X(r,i,n,a):{message:`slide ${n.slide} of ${n.totalSlides} is already on the screen`,cancelled:!0}}let{settle:c}=s,l={current:i.current,shownAt:i.shownAt};i.current=n.slide,i.shownAt=1/0;let u=!1;try{let t=await ae(e,i,n);return u=!!E(t).imageData,u&&(i.slides.set(n.slide,t),i.current=n.slide,i.shownAt=Date.now(),r.lastShown=i),t}finally{c(u),!u&&i.current===n.slide&&(i.current=l.current,i.shownAt=l.shownAt)}}var oe=({id:e,title:t,totalPanels:n})=>({step:0,total:n,kind:`story`,label:`The cast of "${t}"`,onShown:`introduce the characters`,nextCall:`call presentPanel for panel 1 of ${n} with storyboardId "${e}"`}),se=({id:e,totalPanels:t},n,r)=>({step:n,total:t,kind:`story`,label:`Panel ${n} of ${t}`,onShown:`tell that part of the story`,nextCall:`call presentPanel for panel ${n+1} of ${t} with storyboardId "${e}"`,...r.length>0&&{waitsForUser:!0}}),Q=(e,t)=>e?`${e}. ${t}`:t,ce=(e,{name:t,description:n})=>Q(e,`Character reference sheet of ${t}: ${n}. Full body, front, side and back views, on a plain white background. No text or labels.`);async function le(e,t){let n=_(t);if(typeof n==`string`)return{message:n,sequence:null};let r=await Promise.all(n.characters.map(t=>j(e,ce(n.style,t)))),i=r.map(E),a=r.find((e,t)=>!i[t]?.imageData);if(i.every(({imageData:e})=>!e)&&a)return{...a,message:`the character sheets couldn't be made: ${a.message}`,sequence:null};let o={id:O(),...n,characters:n.characters.map((e,t)=>{let n=i[t]?.imagePath;return{...e,...n&&{imagePath:n}}}),panels:{}},s=await U(e.files?.artifacts,F,o.id,()=>o),c=o.characters.filter(e=>e.imagePath).map(e=>`${e.name}: ${e.imagePath}`),l=n.characters.map(({name:e},t)=>i[t]?.imageData?null:`${e} (${r[t]?.message??``})`).filter(e=>!!e),u=i.find(e=>e.imageData)?.imageData;return{data:{storyboardId:o.id,title:o.title,totalPanels:o.totalPanels,...u&&{imageData:u},characters:o.characters.map(({name:e,imagePath:t},n)=>{let r=i[n]?.imageData;return{name:e,...r&&{imageData:r},...t&&{imagePath:t}}})},title:o.title,message:[`storyboard "${o.id}" is ready with ${o.totalPanels} panels; the cast is on the screen`,c.length?`character sheets saved to ${c.join(`, `)}`:``,l.length?`no sheet for ${l.join(`; `)}: they will be drawn from their description`:``,s?``:W(`storyboard`)].filter(Boolean).join(`; `),instructions:v(o),instructionsRequired:!0,sequence:oe(o)}}function ue(e,t,n){let r=[Q(e.style,`Panel ${t.panel} of ${e.totalPanels} of the illustrated story "${e.title}". ${t.imagePrompt}`)],i=0,a=n.map(({character:e,hasSheet:t})=>t?`${e.name} is the character in reference image ${++i}`:`${e.name}: ${e.description}`);return a.length&&r.push(`${a.join(`. `)}.`),i&&r.push(`Draw each character exactly as in their reference image: the same face, hair, clothes and colors. Use the reference images only for how the characters look, not for their pose or the background.`),r.push(`No captions, speech bubbles or other text in the picture.`),r.join(` `)}async function de(e,t,n){let r=[],i=[];for(let a of n.characters){let n=t.characters.find(e=>u(e.name,a));if(!n)r.push(a);else if(!i.some(e=>e.character===n)){let[t]=n.imagePath?await A(e,[n.imagePath]):[];i.push({character:n,sheet:t??null})}}let a=i.map(({sheet:e})=>e).filter(e=>!!e),o=ue(t,n,i.map(({character:e,sheet:t})=>({character:e,hasSheet:!!t}))),s=await j(e,o,a),{imageData:c,imagePath:l}=E(s);if(!c)return{...s,sequence:null};let d=n.panel<t.totalPanels&&n.choices.length>=2?n.choices:[],f=await U(e.files?.artifacts,F,t.id,e=>{let r=e??t;return d.length&&(r.interactive=!0),r.panels[String(n.panel)]={caption:n.caption,characters:i.map(({character:e})=>e.name),imagePrompt:n.imagePrompt,...l&&{imagePath:l},...d.length&&{choices:d}},r});return{data:{imageData:c,...l&&{imagePath:l},prompt:o,storyboardId:t.id,panel:n.panel,totalPanels:t.totalPanels,caption:n.caption,...d.length&&{choices:d}},title:n.caption||`Panel ${n.panel}`,message:[`panel ${n.panel} of ${t.totalPanels} is on the screen`,l?`saved to ${l}`:``,r.length?`not in the cast, so drawn from the prompt alone: ${r.join(`, `)}`:``,f?``:W(`storyboard`)].filter(Boolean).join(`; `),instructions:x(t,n.panel,d),instructionsRequired:!0,sequence:se(t,n.panel,d)}}var fe=N(()=>({repeats:G(),awaitingChoice:new Map}));async function $(e,t){let n=b(t);if(!n)return{message:y,sequence:null};let{storyboardId:r,panel:i}=n,{repeats:a,awaitingChoice:o}=fe(e),s=o.get(r);if(s&&i>s.panel&&!D(e,s.shownAt))return console.info(`[sequence] holding panel ${i} for the user`),{message:s.shownAt===1/0?`panel ${i} was not shown: panel ${s.panel} is still being drawn. Wait for it before going on.`:`panel ${i} was not shown: the user hasn't picked a choice yet, and panel ${s.panel} is still on the screen. Wait for their answer.`,cancelled:!0};let c=a.claim(JSON.stringify(n));if(`earlier`in c)return await c.earlier?{message:`panel ${i} is already on the screen`,cancelled:!0}:$(e,t);let{settle:l}=c,u={panel:i,shownAt:1/0},d=o.get(r);o.set(r,u);let f=()=>o.get(r)===u,p=!1;try{let t=await H(e.files?.artifacts,F,r);if(!t)return{message:`there is no storyboard "${r}"; call defineStoryboard first`,sequence:null};if(i>t.totalPanels)return{message:`storyboard "${t.id}" has ${t.totalPanels} panels`,sequence:null};let a=await de(e,t,n);p=!!E(a).imageData;let s=a.data;return p&&f()&&(s?.choices?.length?o.set(r,{panel:i,shownAt:Date.now()}):o.delete(r)),a}finally{l(p),!p&&f()&&(d?o.set(r,d):o.delete(r))}}var pe={toolDefinition:g,generatingMessage:`Making the slide...`,isEnabled:()=>!0,execute:(e,t)=>Z(e,t)},me={toolDefinition:C,generatingMessage:`Drawing the characters...`,isEnabled:()=>!0,execute:(e,t)=>le(e,t)},he={toolDefinition:w,generatingMessage:`Drawing the panel...`,isEnabled:()=>!0,execute:(e,t)=>$(e,t)};Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return pe}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return f}});