Spaces:
Sleeping
Sleeping
update the chatbot.csv
Browse files- .zeno_cache/OUTPUTtext-davinci-002.pickle +0 -0
- .zeno_cache/view.mjs +392 -105
.zeno_cache/OUTPUTtext-davinci-002.pickle
ADDED
Binary file (68.8 kB). View file
|
|
.zeno_cache/view.mjs
CHANGED
@@ -17,6 +17,9 @@ function safe_not_equal(a, b) {
|
|
17 |
function is_empty(obj) {
|
18 |
return Object.keys(obj).length === 0;
|
19 |
}
|
|
|
|
|
|
|
20 |
|
21 |
// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM
|
22 |
// at the end of hydration without touching the remaining nodes.
|
@@ -400,12 +403,51 @@ function update($$) {
|
|
400 |
}
|
401 |
}
|
402 |
const outroing = new Set();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
function transition_in(block, local) {
|
404 |
if (block && block.i) {
|
405 |
outroing.delete(block);
|
406 |
block.i(local);
|
407 |
}
|
408 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
function mount_component(component, target, anchor, customElement) {
|
410 |
const { fragment, after_update } = component.$$;
|
411 |
fragment && fragment.m(target, anchor);
|
@@ -540,21 +582,21 @@ class SvelteComponent {
|
|
540 |
}
|
541 |
}
|
542 |
|
543 |
-
/* src/
|
544 |
|
545 |
-
function add_css(target) {
|
546 |
-
append_styles(target, "svelte-
|
547 |
}
|
548 |
|
549 |
-
|
550 |
-
function create_if_block(ctx) {
|
551 |
let div;
|
552 |
let svg;
|
553 |
let path;
|
|
|
554 |
let t0;
|
555 |
let p;
|
556 |
-
let t1_value = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] + "";
|
557 |
let t1;
|
|
|
558 |
|
559 |
return {
|
560 |
c() {
|
@@ -563,7 +605,7 @@ function create_if_block(ctx) {
|
|
563 |
path = svg_element("path");
|
564 |
t0 = space();
|
565 |
p = element("p");
|
566 |
-
t1 = text(
|
567 |
this.h();
|
568 |
},
|
569 |
l(nodes) {
|
@@ -577,7 +619,7 @@ function create_if_block(ctx) {
|
|
577 |
t0 = claim_space(div_nodes);
|
578 |
p = claim_element(div_nodes, "P", { class: true });
|
579 |
var p_nodes = children(p);
|
580 |
-
t1 = claim_text(p_nodes,
|
581 |
p_nodes.forEach(detach);
|
582 |
div_nodes.forEach(detach);
|
583 |
this.h();
|
@@ -586,9 +628,9 @@ function create_if_block(ctx) {
|
|
586 |
attr(path, "d", "M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z");
|
587 |
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
588 |
attr(svg, "viewBox", "0 0 640 512");
|
589 |
-
attr(svg, "class", "svelte-
|
590 |
-
attr(p, "class", "chat svelte-
|
591 |
-
attr(div, "class", "box
|
592 |
},
|
593 |
m(target, anchor) {
|
594 |
insert_hydration(target, div, anchor);
|
@@ -598,143 +640,388 @@ function create_if_block(ctx) {
|
|
598 |
append_hydration(div, p);
|
599 |
append_hydration(p, t1);
|
600 |
},
|
601 |
-
p(ctx, dirty) {
|
602 |
-
if (dirty & /*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
},
|
|
|
|
|
604 |
d(detaching) {
|
605 |
if (detaching) detach(div);
|
606 |
}
|
607 |
};
|
608 |
}
|
609 |
|
610 |
-
function
|
611 |
-
let
|
612 |
-
let
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
613 |
let svg;
|
614 |
let path;
|
615 |
let t0;
|
616 |
-
let
|
617 |
-
let t1_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] + "";
|
618 |
let t1;
|
619 |
-
let t2;
|
620 |
-
let t3;
|
621 |
-
let div1;
|
622 |
-
let span;
|
623 |
-
let t4;
|
624 |
-
let t5;
|
625 |
-
let p1;
|
626 |
-
let t6_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "";
|
627 |
-
let t6;
|
628 |
-
let if_block = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] && create_if_block(ctx);
|
629 |
|
630 |
return {
|
631 |
c() {
|
632 |
-
|
633 |
-
div0 = element("div");
|
634 |
svg = svg_element("svg");
|
635 |
path = svg_element("path");
|
636 |
t0 = space();
|
637 |
-
|
638 |
-
t1 = text(
|
639 |
-
t2 = space();
|
640 |
-
if (if_block) if_block.c();
|
641 |
-
t3 = space();
|
642 |
-
div1 = element("div");
|
643 |
-
span = element("span");
|
644 |
-
t4 = text("label:");
|
645 |
-
t5 = space();
|
646 |
-
p1 = element("p");
|
647 |
-
t6 = text(t6_value);
|
648 |
this.h();
|
649 |
},
|
650 |
l(nodes) {
|
651 |
-
|
652 |
-
var
|
653 |
-
|
654 |
-
var div0_nodes = children(div0);
|
655 |
-
svg = claim_svg_element(div0_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
656 |
var svg_nodes = children(svg);
|
657 |
path = claim_svg_element(svg_nodes, "path", { d: true });
|
658 |
children(path).forEach(detach);
|
659 |
svg_nodes.forEach(detach);
|
660 |
-
t0 = claim_space(
|
661 |
-
|
662 |
-
var
|
663 |
-
t1 = claim_text(
|
664 |
-
|
665 |
-
|
666 |
-
t2 = claim_space(div2_nodes);
|
667 |
-
if (if_block) if_block.l(div2_nodes);
|
668 |
-
t3 = claim_space(div2_nodes);
|
669 |
-
div1 = claim_element(div2_nodes, "DIV", { class: true });
|
670 |
-
var div1_nodes = children(div1);
|
671 |
-
span = claim_element(div1_nodes, "SPAN", { class: true });
|
672 |
-
var span_nodes = children(span);
|
673 |
-
t4 = claim_text(span_nodes, "label:");
|
674 |
-
span_nodes.forEach(detach);
|
675 |
-
t5 = claim_space(div1_nodes);
|
676 |
-
p1 = claim_element(div1_nodes, "P", { class: true });
|
677 |
-
var p1_nodes = children(p1);
|
678 |
-
t6 = claim_text(p1_nodes, t6_value);
|
679 |
-
p1_nodes.forEach(detach);
|
680 |
-
div1_nodes.forEach(detach);
|
681 |
-
div2_nodes.forEach(detach);
|
682 |
this.h();
|
683 |
},
|
684 |
h() {
|
685 |
attr(path, "d", "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z");
|
686 |
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
687 |
attr(svg, "viewBox", "0 0 448 512");
|
688 |
-
attr(svg, "class", "svelte-
|
689 |
-
attr(
|
690 |
-
attr(
|
691 |
-
attr(span, "class", "label svelte-1tmeyfg");
|
692 |
-
attr(p1, "class", "svelte-1tmeyfg");
|
693 |
-
attr(div1, "class", "box svelte-1tmeyfg");
|
694 |
-
attr(div2, "id", "container");
|
695 |
-
attr(div2, "class", "svelte-1tmeyfg");
|
696 |
},
|
697 |
m(target, anchor) {
|
698 |
-
insert_hydration(target,
|
699 |
-
append_hydration(
|
700 |
-
append_hydration(div0, svg);
|
701 |
append_hydration(svg, path);
|
702 |
-
append_hydration(
|
703 |
-
append_hydration(
|
704 |
-
append_hydration(
|
705 |
-
append_hydration(div2, t2);
|
706 |
-
if (if_block) if_block.m(div2, null);
|
707 |
-
append_hydration(div2, t3);
|
708 |
-
append_hydration(div2, div1);
|
709 |
-
append_hydration(div1, span);
|
710 |
-
append_hydration(span, t4);
|
711 |
-
append_hydration(div1, t5);
|
712 |
-
append_hydration(div1, p1);
|
713 |
-
append_hydration(p1, t6);
|
714 |
},
|
715 |
p(ctx, [dirty]) {
|
716 |
-
if (dirty & /*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
717 |
|
718 |
if (/*entry*/ ctx[0][/*modelColumn*/ ctx[1]]) {
|
719 |
-
if (
|
720 |
-
|
|
|
|
|
|
|
|
|
721 |
} else {
|
722 |
-
|
723 |
-
|
724 |
-
|
|
|
725 |
}
|
726 |
-
} else if (
|
727 |
-
|
728 |
-
|
|
|
|
|
|
|
|
|
|
|
729 |
}
|
730 |
|
731 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
732 |
},
|
733 |
-
i: noop,
|
734 |
-
o: noop,
|
735 |
d(detaching) {
|
736 |
-
if (detaching) detach(
|
737 |
-
if (
|
|
|
|
|
738 |
}
|
739 |
};
|
740 |
}
|
|
|
17 |
function is_empty(obj) {
|
18 |
return Object.keys(obj).length === 0;
|
19 |
}
|
20 |
+
function null_to_empty(value) {
|
21 |
+
return value == null ? '' : value;
|
22 |
+
}
|
23 |
|
24 |
// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM
|
25 |
// at the end of hydration without touching the remaining nodes.
|
|
|
403 |
}
|
404 |
}
|
405 |
const outroing = new Set();
|
406 |
+
let outros;
|
407 |
+
function group_outros() {
|
408 |
+
outros = {
|
409 |
+
r: 0,
|
410 |
+
c: [],
|
411 |
+
p: outros // parent group
|
412 |
+
};
|
413 |
+
}
|
414 |
+
function check_outros() {
|
415 |
+
if (!outros.r) {
|
416 |
+
run_all(outros.c);
|
417 |
+
}
|
418 |
+
outros = outros.p;
|
419 |
+
}
|
420 |
function transition_in(block, local) {
|
421 |
if (block && block.i) {
|
422 |
outroing.delete(block);
|
423 |
block.i(local);
|
424 |
}
|
425 |
}
|
426 |
+
function transition_out(block, local, detach, callback) {
|
427 |
+
if (block && block.o) {
|
428 |
+
if (outroing.has(block))
|
429 |
+
return;
|
430 |
+
outroing.add(block);
|
431 |
+
outros.c.push(() => {
|
432 |
+
outroing.delete(block);
|
433 |
+
if (callback) {
|
434 |
+
if (detach)
|
435 |
+
block.d(1);
|
436 |
+
callback();
|
437 |
+
}
|
438 |
+
});
|
439 |
+
block.o(local);
|
440 |
+
}
|
441 |
+
else if (callback) {
|
442 |
+
callback();
|
443 |
+
}
|
444 |
+
}
|
445 |
+
function create_component(block) {
|
446 |
+
block && block.c();
|
447 |
+
}
|
448 |
+
function claim_component(block, parent_nodes) {
|
449 |
+
block && block.l(parent_nodes);
|
450 |
+
}
|
451 |
function mount_component(component, target, anchor, customElement) {
|
452 |
const { fragment, after_update } = component.$$;
|
453 |
fragment && fragment.m(target, anchor);
|
|
|
582 |
}
|
583 |
}
|
584 |
|
585 |
+
/* src/AssistantBlock.svelte generated by Svelte v3.55.1 */
|
586 |
|
587 |
+
function add_css$2(target) {
|
588 |
+
append_styles(target, "svelte-1e3mbn4", ".model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--logo)}.no-model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--G3)}.model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid var(--logo)}.no-model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid rgba(224, 224, 224, 1)}.box.svelte-1e3mbn4.svelte-1e3mbn4{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1e3mbn4 svg.svelte-1e3mbn4{min-width:24px;width:24px;margin-right:10px;margin-top:7px}.chat.svelte-1e3mbn4.svelte-1e3mbn4{border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
589 |
}
|
590 |
|
591 |
+
function create_fragment$2(ctx) {
|
|
|
592 |
let div;
|
593 |
let svg;
|
594 |
let path;
|
595 |
+
let svg_class_value;
|
596 |
let t0;
|
597 |
let p;
|
|
|
598 |
let t1;
|
599 |
+
let p_class_value;
|
600 |
|
601 |
return {
|
602 |
c() {
|
|
|
605 |
path = svg_element("path");
|
606 |
t0 = space();
|
607 |
p = element("p");
|
608 |
+
t1 = text(/*input*/ ctx[0]);
|
609 |
this.h();
|
610 |
},
|
611 |
l(nodes) {
|
|
|
619 |
t0 = claim_space(div_nodes);
|
620 |
p = claim_element(div_nodes, "P", { class: true });
|
621 |
var p_nodes = children(p);
|
622 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
623 |
p_nodes.forEach(detach);
|
624 |
div_nodes.forEach(detach);
|
625 |
this.h();
|
|
|
628 |
attr(path, "d", "M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z");
|
629 |
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
630 |
attr(svg, "viewBox", "0 0 640 512");
|
631 |
+
attr(svg, "class", svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"));
|
632 |
+
attr(p, "class", p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4");
|
633 |
+
attr(div, "class", "box svelte-1e3mbn4");
|
634 |
},
|
635 |
m(target, anchor) {
|
636 |
insert_hydration(target, div, anchor);
|
|
|
640 |
append_hydration(div, p);
|
641 |
append_hydration(p, t1);
|
642 |
},
|
643 |
+
p(ctx, [dirty]) {
|
644 |
+
if (dirty & /*output*/ 2 && svg_class_value !== (svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"))) {
|
645 |
+
attr(svg, "class", svg_class_value);
|
646 |
+
}
|
647 |
+
|
648 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
649 |
+
|
650 |
+
if (dirty & /*output*/ 2 && p_class_value !== (p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4")) {
|
651 |
+
attr(p, "class", p_class_value);
|
652 |
+
}
|
653 |
},
|
654 |
+
i: noop,
|
655 |
+
o: noop,
|
656 |
d(detaching) {
|
657 |
if (detaching) detach(div);
|
658 |
}
|
659 |
};
|
660 |
}
|
661 |
|
662 |
+
function instance$2($$self, $$props, $$invalidate) {
|
663 |
+
let { input } = $$props;
|
664 |
+
let { output = false } = $$props;
|
665 |
+
|
666 |
+
$$self.$$set = $$props => {
|
667 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
668 |
+
if ('output' in $$props) $$invalidate(1, output = $$props.output);
|
669 |
+
};
|
670 |
+
|
671 |
+
return [input, output];
|
672 |
+
}
|
673 |
+
|
674 |
+
class AssistantBlock extends SvelteComponent {
|
675 |
+
constructor(options) {
|
676 |
+
super();
|
677 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { input: 0, output: 1 }, add_css$2);
|
678 |
+
}
|
679 |
+
}
|
680 |
+
|
681 |
+
/* src/UserBlock.svelte generated by Svelte v3.55.1 */
|
682 |
+
|
683 |
+
function add_css$1(target) {
|
684 |
+
append_styles(target, "svelte-1lys9p1", ".box.svelte-1lys9p1.svelte-1lys9p1{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1lys9p1 svg.svelte-1lys9p1{min-width:24px;width:24px;margin-right:10px;margin-top:7px;fill:var(--G3)}.chat.svelte-1lys9p1.svelte-1lys9p1{border:1px solid rgba(224, 224, 224, 1);border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
685 |
+
}
|
686 |
+
|
687 |
+
function create_fragment$1(ctx) {
|
688 |
+
let div;
|
689 |
let svg;
|
690 |
let path;
|
691 |
let t0;
|
692 |
+
let p;
|
|
|
693 |
let t1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
694 |
|
695 |
return {
|
696 |
c() {
|
697 |
+
div = element("div");
|
|
|
698 |
svg = svg_element("svg");
|
699 |
path = svg_element("path");
|
700 |
t0 = space();
|
701 |
+
p = element("p");
|
702 |
+
t1 = text(/*input*/ ctx[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
703 |
this.h();
|
704 |
},
|
705 |
l(nodes) {
|
706 |
+
div = claim_element(nodes, "DIV", { class: true });
|
707 |
+
var div_nodes = children(div);
|
708 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
|
|
|
|
709 |
var svg_nodes = children(svg);
|
710 |
path = claim_svg_element(svg_nodes, "path", { d: true });
|
711 |
children(path).forEach(detach);
|
712 |
svg_nodes.forEach(detach);
|
713 |
+
t0 = claim_space(div_nodes);
|
714 |
+
p = claim_element(div_nodes, "P", { class: true });
|
715 |
+
var p_nodes = children(p);
|
716 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
717 |
+
p_nodes.forEach(detach);
|
718 |
+
div_nodes.forEach(detach);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
this.h();
|
720 |
},
|
721 |
h() {
|
722 |
attr(path, "d", "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z");
|
723 |
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
724 |
attr(svg, "viewBox", "0 0 448 512");
|
725 |
+
attr(svg, "class", "svelte-1lys9p1");
|
726 |
+
attr(p, "class", "chat svelte-1lys9p1");
|
727 |
+
attr(div, "class", "box svelte-1lys9p1");
|
|
|
|
|
|
|
|
|
|
|
728 |
},
|
729 |
m(target, anchor) {
|
730 |
+
insert_hydration(target, div, anchor);
|
731 |
+
append_hydration(div, svg);
|
|
|
732 |
append_hydration(svg, path);
|
733 |
+
append_hydration(div, t0);
|
734 |
+
append_hydration(div, p);
|
735 |
+
append_hydration(p, t1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
},
|
737 |
p(ctx, [dirty]) {
|
738 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
739 |
+
},
|
740 |
+
i: noop,
|
741 |
+
o: noop,
|
742 |
+
d(detaching) {
|
743 |
+
if (detaching) detach(div);
|
744 |
+
}
|
745 |
+
};
|
746 |
+
}
|
747 |
+
|
748 |
+
function instance$1($$self, $$props, $$invalidate) {
|
749 |
+
let { input } = $$props;
|
750 |
+
|
751 |
+
$$self.$$set = $$props => {
|
752 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
753 |
+
};
|
754 |
+
|
755 |
+
return [input];
|
756 |
+
}
|
757 |
+
|
758 |
+
class UserBlock extends SvelteComponent {
|
759 |
+
constructor(options) {
|
760 |
+
super();
|
761 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, { input: 0 }, add_css$1);
|
762 |
+
}
|
763 |
+
}
|
764 |
+
|
765 |
+
/* src/InstanceView.svelte generated by Svelte v3.55.1 */
|
766 |
+
|
767 |
+
function add_css(target) {
|
768 |
+
append_styles(target, "svelte-eoma5v", "#container.svelte-eoma5v{border:0.5px solid rgb(224, 224, 224);min-width:350px;border-radius:2px;padding:10px}.label.svelte-eoma5v{margin-right:5px;font-weight:700}p.svelte-eoma5v{margin:5px;overflow-wrap:anywhere}");
|
769 |
+
}
|
770 |
+
|
771 |
+
// (20:2) {#if entry[dataColumn]}
|
772 |
+
function create_if_block_2(ctx) {
|
773 |
+
let userblock;
|
774 |
+
let current;
|
775 |
+
|
776 |
+
userblock = new UserBlock({
|
777 |
+
props: {
|
778 |
+
input: /*entry*/ ctx[0][/*dataColumn*/ ctx[3]]
|
779 |
+
}
|
780 |
+
});
|
781 |
+
|
782 |
+
return {
|
783 |
+
c() {
|
784 |
+
create_component(userblock.$$.fragment);
|
785 |
+
},
|
786 |
+
l(nodes) {
|
787 |
+
claim_component(userblock.$$.fragment, nodes);
|
788 |
+
},
|
789 |
+
m(target, anchor) {
|
790 |
+
mount_component(userblock, target, anchor);
|
791 |
+
current = true;
|
792 |
+
},
|
793 |
+
p(ctx, dirty) {
|
794 |
+
const userblock_changes = {};
|
795 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
796 |
+
userblock.$set(userblock_changes);
|
797 |
+
},
|
798 |
+
i(local) {
|
799 |
+
if (current) return;
|
800 |
+
transition_in(userblock.$$.fragment, local);
|
801 |
+
current = true;
|
802 |
+
},
|
803 |
+
o(local) {
|
804 |
+
transition_out(userblock.$$.fragment, local);
|
805 |
+
current = false;
|
806 |
+
},
|
807 |
+
d(detaching) {
|
808 |
+
destroy_component(userblock, detaching);
|
809 |
+
}
|
810 |
+
};
|
811 |
+
}
|
812 |
+
|
813 |
+
// (23:2) {#if entry[modelColumn]}
|
814 |
+
function create_if_block_1(ctx) {
|
815 |
+
let assistantblock;
|
816 |
+
let current;
|
817 |
+
|
818 |
+
assistantblock = new AssistantBlock({
|
819 |
+
props: {
|
820 |
+
input: /*entry*/ ctx[0][/*modelColumn*/ ctx[1]],
|
821 |
+
output: true
|
822 |
+
}
|
823 |
+
});
|
824 |
+
|
825 |
+
return {
|
826 |
+
c() {
|
827 |
+
create_component(assistantblock.$$.fragment);
|
828 |
+
},
|
829 |
+
l(nodes) {
|
830 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
831 |
+
},
|
832 |
+
m(target, anchor) {
|
833 |
+
mount_component(assistantblock, target, anchor);
|
834 |
+
current = true;
|
835 |
+
},
|
836 |
+
p(ctx, dirty) {
|
837 |
+
const assistantblock_changes = {};
|
838 |
+
if (dirty & /*entry, modelColumn*/ 3) assistantblock_changes.input = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]];
|
839 |
+
assistantblock.$set(assistantblock_changes);
|
840 |
+
},
|
841 |
+
i(local) {
|
842 |
+
if (current) return;
|
843 |
+
transition_in(assistantblock.$$.fragment, local);
|
844 |
+
current = true;
|
845 |
+
},
|
846 |
+
o(local) {
|
847 |
+
transition_out(assistantblock.$$.fragment, local);
|
848 |
+
current = false;
|
849 |
+
},
|
850 |
+
d(detaching) {
|
851 |
+
destroy_component(assistantblock, detaching);
|
852 |
+
}
|
853 |
+
};
|
854 |
+
}
|
855 |
+
|
856 |
+
// (26:2) {#if entry[labelColumn]}
|
857 |
+
function create_if_block(ctx) {
|
858 |
+
let p;
|
859 |
+
let span;
|
860 |
+
let t0;
|
861 |
+
let t1;
|
862 |
+
let t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "";
|
863 |
+
let t2;
|
864 |
+
|
865 |
+
return {
|
866 |
+
c() {
|
867 |
+
p = element("p");
|
868 |
+
span = element("span");
|
869 |
+
t0 = text("ideal:");
|
870 |
+
t1 = space();
|
871 |
+
t2 = text(t2_value);
|
872 |
+
this.h();
|
873 |
+
},
|
874 |
+
l(nodes) {
|
875 |
+
p = claim_element(nodes, "P", { class: true });
|
876 |
+
var p_nodes = children(p);
|
877 |
+
span = claim_element(p_nodes, "SPAN", { class: true });
|
878 |
+
var span_nodes = children(span);
|
879 |
+
t0 = claim_text(span_nodes, "ideal:");
|
880 |
+
span_nodes.forEach(detach);
|
881 |
+
t1 = claim_space(p_nodes);
|
882 |
+
t2 = claim_text(p_nodes, t2_value);
|
883 |
+
p_nodes.forEach(detach);
|
884 |
+
this.h();
|
885 |
+
},
|
886 |
+
h() {
|
887 |
+
attr(span, "class", "label svelte-eoma5v");
|
888 |
+
attr(p, "class", "svelte-eoma5v");
|
889 |
+
},
|
890 |
+
m(target, anchor) {
|
891 |
+
insert_hydration(target, p, anchor);
|
892 |
+
append_hydration(p, span);
|
893 |
+
append_hydration(span, t0);
|
894 |
+
append_hydration(p, t1);
|
895 |
+
append_hydration(p, t2);
|
896 |
+
},
|
897 |
+
p(ctx, dirty) {
|
898 |
+
if (dirty & /*entry, labelColumn*/ 5 && t2_value !== (t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "")) set_data(t2, t2_value);
|
899 |
+
},
|
900 |
+
d(detaching) {
|
901 |
+
if (detaching) detach(p);
|
902 |
+
}
|
903 |
+
};
|
904 |
+
}
|
905 |
+
|
906 |
+
function create_fragment(ctx) {
|
907 |
+
let div;
|
908 |
+
let t0;
|
909 |
+
let t1;
|
910 |
+
let current;
|
911 |
+
let if_block0 = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] && create_if_block_2(ctx);
|
912 |
+
let if_block1 = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] && create_if_block_1(ctx);
|
913 |
+
let if_block2 = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] && create_if_block(ctx);
|
914 |
+
|
915 |
+
return {
|
916 |
+
c() {
|
917 |
+
div = element("div");
|
918 |
+
if (if_block0) if_block0.c();
|
919 |
+
t0 = space();
|
920 |
+
if (if_block1) if_block1.c();
|
921 |
+
t1 = space();
|
922 |
+
if (if_block2) if_block2.c();
|
923 |
+
this.h();
|
924 |
+
},
|
925 |
+
l(nodes) {
|
926 |
+
div = claim_element(nodes, "DIV", { id: true, class: true });
|
927 |
+
var div_nodes = children(div);
|
928 |
+
if (if_block0) if_block0.l(div_nodes);
|
929 |
+
t0 = claim_space(div_nodes);
|
930 |
+
if (if_block1) if_block1.l(div_nodes);
|
931 |
+
t1 = claim_space(div_nodes);
|
932 |
+
if (if_block2) if_block2.l(div_nodes);
|
933 |
+
div_nodes.forEach(detach);
|
934 |
+
this.h();
|
935 |
+
},
|
936 |
+
h() {
|
937 |
+
attr(div, "id", "container");
|
938 |
+
attr(div, "class", "svelte-eoma5v");
|
939 |
+
},
|
940 |
+
m(target, anchor) {
|
941 |
+
insert_hydration(target, div, anchor);
|
942 |
+
if (if_block0) if_block0.m(div, null);
|
943 |
+
append_hydration(div, t0);
|
944 |
+
if (if_block1) if_block1.m(div, null);
|
945 |
+
append_hydration(div, t1);
|
946 |
+
if (if_block2) if_block2.m(div, null);
|
947 |
+
current = true;
|
948 |
+
},
|
949 |
+
p(ctx, [dirty]) {
|
950 |
+
if (/*entry*/ ctx[0][/*dataColumn*/ ctx[3]]) {
|
951 |
+
if (if_block0) {
|
952 |
+
if_block0.p(ctx, dirty);
|
953 |
+
|
954 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
955 |
+
transition_in(if_block0, 1);
|
956 |
+
}
|
957 |
+
} else {
|
958 |
+
if_block0 = create_if_block_2(ctx);
|
959 |
+
if_block0.c();
|
960 |
+
transition_in(if_block0, 1);
|
961 |
+
if_block0.m(div, t0);
|
962 |
+
}
|
963 |
+
} else if (if_block0) {
|
964 |
+
group_outros();
|
965 |
+
|
966 |
+
transition_out(if_block0, 1, 1, () => {
|
967 |
+
if_block0 = null;
|
968 |
+
});
|
969 |
+
|
970 |
+
check_outros();
|
971 |
+
}
|
972 |
|
973 |
if (/*entry*/ ctx[0][/*modelColumn*/ ctx[1]]) {
|
974 |
+
if (if_block1) {
|
975 |
+
if_block1.p(ctx, dirty);
|
976 |
+
|
977 |
+
if (dirty & /*entry, modelColumn*/ 3) {
|
978 |
+
transition_in(if_block1, 1);
|
979 |
+
}
|
980 |
} else {
|
981 |
+
if_block1 = create_if_block_1(ctx);
|
982 |
+
if_block1.c();
|
983 |
+
transition_in(if_block1, 1);
|
984 |
+
if_block1.m(div, t1);
|
985 |
}
|
986 |
+
} else if (if_block1) {
|
987 |
+
group_outros();
|
988 |
+
|
989 |
+
transition_out(if_block1, 1, 1, () => {
|
990 |
+
if_block1 = null;
|
991 |
+
});
|
992 |
+
|
993 |
+
check_outros();
|
994 |
}
|
995 |
|
996 |
+
if (/*entry*/ ctx[0][/*labelColumn*/ ctx[2]]) {
|
997 |
+
if (if_block2) {
|
998 |
+
if_block2.p(ctx, dirty);
|
999 |
+
} else {
|
1000 |
+
if_block2 = create_if_block(ctx);
|
1001 |
+
if_block2.c();
|
1002 |
+
if_block2.m(div, null);
|
1003 |
+
}
|
1004 |
+
} else if (if_block2) {
|
1005 |
+
if_block2.d(1);
|
1006 |
+
if_block2 = null;
|
1007 |
+
}
|
1008 |
+
},
|
1009 |
+
i(local) {
|
1010 |
+
if (current) return;
|
1011 |
+
transition_in(if_block0);
|
1012 |
+
transition_in(if_block1);
|
1013 |
+
current = true;
|
1014 |
+
},
|
1015 |
+
o(local) {
|
1016 |
+
transition_out(if_block0);
|
1017 |
+
transition_out(if_block1);
|
1018 |
+
current = false;
|
1019 |
},
|
|
|
|
|
1020 |
d(detaching) {
|
1021 |
+
if (detaching) detach(div);
|
1022 |
+
if (if_block0) if_block0.d();
|
1023 |
+
if (if_block1) if_block1.d();
|
1024 |
+
if (if_block2) if_block2.d();
|
1025 |
}
|
1026 |
};
|
1027 |
}
|