muryshev commited on
Commit
9923f3d
·
1 Parent(s): 8c41171
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. build/client/_app/immutable/assets/0.YNxs9fuA.css +0 -0
  2. build/client/_app/immutable/assets/2.JoL8Jh2O.css +1 -0
  3. build/client/_app/immutable/assets/SearchResults.-5bLgY4Z.css +1 -0
  4. build/client/_app/immutable/assets/SearchResults.6mpV3Zmb.css +1 -0
  5. build/client/_app/immutable/assets/SearchUtils.-5bLgY4Z.css +1 -0
  6. build/client/_app/immutable/assets/_layout.0FXghMCB.css +0 -0
  7. build/client/_app/immutable/assets/_page.JoL8Jh2O.css +1 -0
  8. build/client/_app/immutable/assets/fa-brands-400.7q-YOPLl.ttf +0 -0
  9. build/client/_app/immutable/assets/fa-brands-400.Du52WpXz.woff2 +0 -0
  10. build/client/_app/immutable/assets/fa-regular-400.4BH2UmBK.woff2 +0 -0
  11. build/client/_app/immutable/assets/fa-regular-400.X96xuTcY.ttf +0 -0
  12. build/client/_app/immutable/assets/fa-solid-900.VdwmxDNg.ttf +0 -0
  13. build/client/_app/immutable/assets/fa-solid-900.zkCRIXEm.woff2 +0 -0
  14. build/client/_app/immutable/assets/fa-v4compatibility.V_F1ibRM.woff2 +0 -0
  15. build/client/_app/immutable/assets/fa-v4compatibility.fTFiPhOk.ttf +0 -0
  16. build/client/_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js +0 -0
  17. build/client/_app/immutable/chunks/LlmSelector.Snki38ql.js +1 -0
  18. build/client/_app/immutable/chunks/ModalPromptEditor.x-CfuIKj.js +1 -0
  19. build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js +1 -0
  20. build/client/_app/immutable/chunks/SearchResults.3ZkY-Bmy.js +8 -0
  21. build/client/_app/immutable/chunks/SearchUtils.tAbMbmlw.js +5 -0
  22. build/client/_app/immutable/chunks/each.C7pZUaX1.js +1 -0
  23. build/client/_app/immutable/chunks/entry.dO1U_WKI.js +3 -0
  24. build/client/_app/immutable/chunks/exceljs.min.ptB2ikW7.js +0 -0
  25. build/client/_app/immutable/chunks/index.7IiDzEZn.js +4 -0
  26. build/client/_app/immutable/chunks/index.G3yBo0_P.js +1 -0
  27. build/client/_app/immutable/chunks/popup.dE7t2hhe.js +1 -0
  28. build/client/_app/immutable/chunks/scheduler.5WtVptCO.js +1 -0
  29. build/client/_app/immutable/chunks/stores.Cb2RXlYi.js +1 -0
  30. build/client/_app/immutable/chunks/stores.XS_YoCyo.js +1 -0
  31. build/client/_app/immutable/chunks/transitions.QBIMuVLc.js +3 -0
  32. build/client/_app/immutable/entry/app.rOUEZsXE.js +7 -0
  33. build/client/_app/immutable/entry/start.P2Y1uHp-.js +1 -0
  34. build/client/_app/immutable/nodes/0.B6fEv7mp.js +3 -0
  35. build/client/_app/immutable/nodes/1.1x2Pwkux.js +1 -0
  36. build/client/_app/immutable/nodes/2.pzDxSecI.js +10 -0
  37. build/client/_app/immutable/nodes/3.L0oIytRD.js +1 -0
  38. build/client/_app/immutable/nodes/4.5fEHNIuc.js +6 -0
  39. build/client/_app/immutable/nodes/5.saWmi_tN.js +3 -0
  40. build/client/_app/immutable/nodes/6.2grtlPHK.js +0 -0
  41. build/client/_app/version.json +1 -1
  42. build/client/icons/1.svg +73 -0
  43. build/client/icons/telescope.png +0 -0
  44. build/client/icons/telescope.svg +8 -0
  45. build/server/chunks/0-kKrOmzhb.js +9 -0
  46. build/server/chunks/0-kKrOmzhb.js.map +1 -0
  47. build/server/chunks/1-4kmamOJS.js +9 -0
  48. build/server/chunks/1-4kmamOJS.js.map +1 -0
  49. build/server/chunks/2-R5cCYEv-.js +41 -0
  50. build/server/chunks/2-R5cCYEv-.js.map +1 -0
build/client/_app/immutable/assets/0.YNxs9fuA.css ADDED
The diff for this file is too large to render. See raw diff
 
build/client/_app/immutable/assets/2.JoL8Jh2O.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .llm-health-status.svelte-1wcf73j{color:#708090;font-size:12px;display:inline-flex;align-items:center}.dot.svelte-1wcf73j{width:20px;height:20px}.modal.svelte-sfudwy{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:999}.popup.svelte-sfudwy{background:#fff;padding:20px;border-radius:8px;box-shadow:0 0 10px #0000004d;max-width:80%;width:50%}textarea.svelte-sfudwy{min-height:200px;resize:vertical;padding:10px;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box}button.svelte-sfudwy{margin-top:10px;padding:10px 20px;background-color:#1976d2;color:#fff;border:1px solid transparent;border-radius:4px;cursor:pointer;transition:background-color .3s;box-sizing:border-box}button.svelte-sfudwy:hover{background-color:#1565c0}textarea.svelte-3qvypm{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}.search-result.svelte-1ijmx03{margin-bottom:20px}.title.svelte-1ijmx03{font-weight:700}a.svelte-1ijmx03{cursor:pointer;font-weight:500}.title.svelte-1ijmx03{color:#1a0dab}.search-results.svelte-14obzoi{flex:1;overflow-y:auto;padding:1rem}.star-rating.svelte-zykxm3{display:inline-block;margin-bottom:10px}.star.svelte-zykxm3{font-size:30px;color:gray;background:none;border:none;cursor:pointer}.star.selected.svelte-zykxm3{color:gold}button[disabled].svelte-zykxm3{opacity:.5;cursor:not-allowed}textarea[disabled].svelte-zykxm3{background-color:#f5f5f5}.annotation.svelte-1uvb5ib{overflow:hidden;display:block;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}.loading-container.svelte-fiifsz.svelte-fiifsz{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-fiifsz.svelte-fiifsz{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-fiifsz.svelte-fiifsz{display:grid}.grow-wrap.svelte-fiifsz.svelte-fiifsz:after{content:attr(data-replicated-value) " ";white-space:pre-wrap;visibility:hidden;max-width:100%;max-height:250px;display:block;overflow-x:hidden}.grow-wrap.svelte-fiifsz>textarea.svelte-fiifsz{resize:none}.grow-wrap.svelte-fiifsz>textarea.svelte-fiifsz,.grow-wrap.svelte-fiifsz.svelte-fiifsz:after{border:1px solid #ccc;width:100%;padding:1rem;font-size:14px;box-sizing:border-box;grid-area:1/1/2/2}.grow-wrap.svelte-fiifsz>textarea .svelte-fiifsz:focus,.grow-wrap.svelte-fiifsz:after .svelte-fiifsz:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-fiifsz>textarea .svelte-fiifsz:placeholder,.grow-wrap.svelte-fiifsz:after .svelte-fiifsz:placeholder{color:#aaa}.auto-expand-textarea.svelte-fiifsz.svelte-fiifsz{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:auto;min-height:1rem}.search-column.svelte-fiifsz.svelte-fiifsz{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-fiifsz textarea.svelte-fiifsz{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-fiifsz.svelte-fiifsz{flex:1;display:flex;flex-direction:column;padding-left:10px}.textarea.svelte-fiifsz.svelte-fiifsz{width:100%;height:100%;margin:10px 10px 10px 0;border:none;outline:none;resize:none;background:transparent}@media (max-width: 767px){.search-column.svelte-fiifsz.svelte-fiifsz,.textarea-column.svelte-fiifsz.svelte-fiifsz{border-right:none}}.search-second-bar.svelte-fiifsz.svelte-fiifsz{display:flex;flex-wrap:wrap}@media (max-width: 600px){.search-second-bar.svelte-fiifsz.svelte-fiifsz{flex-direction:column}}textarea.svelte-fiifsz.svelte-fiifsz{border:1px solid #ccc;width:100%;font-size:14px;box-sizing:border-box;padding:1rem}a.svelte-fiifsz.svelte-fiifsz{cursor:pointer}.reference-btn.svelte-fiifsz.svelte-fiifsz,.reference-btn.svelte-fiifsz.svelte-fiifsz:hover{text-decoration:none;color:#000}
build/client/_app/immutable/assets/SearchResults.-5bLgY4Z.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .search-result.svelte-vfddhm{margin-bottom:20px}.title.svelte-vfddhm{font-weight:700}.annotation.svelte-vfddhm{overflow:hidden;display:-webkit-box;line-clamp:5;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-vfddhm{cursor:pointer}.full-text.svelte-vfddhm{display:block;white-space:normal}.title.svelte-vfddhm{color:#1a0dab}.search-result.svelte-1egz4bg{margin-bottom:20px}.title.svelte-1egz4bg{font-weight:700}.annotation.svelte-1egz4bg{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}.full-text.svelte-1egz4bg{display:block;white-space:normal}.title.svelte-1egz4bg{color:#1a0dab}.search-results.svelte-1egz4bg{flex:1;overflow-y:auto;padding:1rem}.settings-bar.svelte-1egz4bg{margin-bottom:10px}.blinking.svelte-1egz4bg{animation:svelte-1egz4bg-blink-animation .5s ease-in-out infinite alternate}@keyframes svelte-1egz4bg-blink-animation{0%{opacity:1}to{opacity:.2}}
build/client/_app/immutable/assets/SearchResults.6mpV3Zmb.css ADDED
@@ -0,0 +1 @@
 
 
1
+ div.splitpanes--horizontal.splitpanes--dragging{cursor:row-resize}div.splitpanes--vertical.splitpanes--dragging{cursor:col-resize}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--vertical>.splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal>.splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none;pointer-events:none}.splitpanes--freeze .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;cursor:col-resize}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;cursor:row-resize}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}
build/client/_app/immutable/assets/SearchUtils.-5bLgY4Z.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .search-result.svelte-vfddhm{margin-bottom:20px}.title.svelte-vfddhm{font-weight:700}.annotation.svelte-vfddhm{overflow:hidden;display:-webkit-box;line-clamp:5;-webkit-line-clamp:5;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}a.svelte-vfddhm{cursor:pointer}.full-text.svelte-vfddhm{display:block;white-space:normal}.title.svelte-vfddhm{color:#1a0dab}.search-result.svelte-1egz4bg{margin-bottom:20px}.title.svelte-1egz4bg{font-weight:700}.annotation.svelte-1egz4bg{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}.full-text.svelte-1egz4bg{display:block;white-space:normal}.title.svelte-1egz4bg{color:#1a0dab}.search-results.svelte-1egz4bg{flex:1;overflow-y:auto;padding:1rem}.settings-bar.svelte-1egz4bg{margin-bottom:10px}.blinking.svelte-1egz4bg{animation:svelte-1egz4bg-blink-animation .5s ease-in-out infinite alternate}@keyframes svelte-1egz4bg-blink-animation{0%{opacity:1}to{opacity:.2}}
build/client/_app/immutable/assets/_layout.0FXghMCB.css ADDED
The diff for this file is too large to render. See raw diff
 
build/client/_app/immutable/assets/_page.JoL8Jh2O.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .llm-health-status.svelte-1wcf73j{color:#708090;font-size:12px;display:inline-flex;align-items:center}.dot.svelte-1wcf73j{width:20px;height:20px}.modal.svelte-sfudwy{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:999}.popup.svelte-sfudwy{background:#fff;padding:20px;border-radius:8px;box-shadow:0 0 10px #0000004d;max-width:80%;width:50%}textarea.svelte-sfudwy{min-height:200px;resize:vertical;padding:10px;border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box}button.svelte-sfudwy{margin-top:10px;padding:10px 20px;background-color:#1976d2;color:#fff;border:1px solid transparent;border-radius:4px;cursor:pointer;transition:background-color .3s;box-sizing:border-box}button.svelte-sfudwy:hover{background-color:#1565c0}textarea.svelte-3qvypm{border:1px solid #ccc;border-radius:4px;width:100%;font-size:14px;margin-bottom:10px;box-sizing:border-box;padding:1rem}.search-result.svelte-1ijmx03{margin-bottom:20px}.title.svelte-1ijmx03{font-weight:700}a.svelte-1ijmx03{cursor:pointer;font-weight:500}.title.svelte-1ijmx03{color:#1a0dab}.search-results.svelte-14obzoi{flex:1;overflow-y:auto;padding:1rem}.star-rating.svelte-zykxm3{display:inline-block;margin-bottom:10px}.star.svelte-zykxm3{font-size:30px;color:gray;background:none;border:none;cursor:pointer}.star.selected.svelte-zykxm3{color:gold}button[disabled].svelte-zykxm3{opacity:.5;cursor:not-allowed}textarea[disabled].svelte-zykxm3{background-color:#f5f5f5}.annotation.svelte-1uvb5ib{overflow:hidden;display:block;-webkit-box-orient:vertical;text-overflow:ellipsis;white-space:normal}.loading-container.svelte-fiifsz.svelte-fiifsz{display:flex;justify-content:center;align-items:center;align-self:center;width:3rem;height:90%;margin-left:5px}.loading-status.svelte-fiifsz.svelte-fiifsz{display:flex;justify-content:center;align-items:center;align-self:center}.grow-wrap.svelte-fiifsz.svelte-fiifsz{display:grid}.grow-wrap.svelte-fiifsz.svelte-fiifsz:after{content:attr(data-replicated-value) " ";white-space:pre-wrap;visibility:hidden;max-width:100%;max-height:250px;display:block;overflow-x:hidden}.grow-wrap.svelte-fiifsz>textarea.svelte-fiifsz{resize:none}.grow-wrap.svelte-fiifsz>textarea.svelte-fiifsz,.grow-wrap.svelte-fiifsz.svelte-fiifsz:after{border:1px solid #ccc;width:100%;padding:1rem;font-size:14px;box-sizing:border-box;grid-area:1/1/2/2}.grow-wrap.svelte-fiifsz>textarea .svelte-fiifsz:focus,.grow-wrap.svelte-fiifsz:after .svelte-fiifsz:focus{outline:none;border-color:#1976d2}.grow-wrap.svelte-fiifsz>textarea .svelte-fiifsz:placeholder,.grow-wrap.svelte-fiifsz:after .svelte-fiifsz:placeholder{color:#aaa}.auto-expand-textarea.svelte-fiifsz.svelte-fiifsz{box-sizing:border-box;width:100%;font-size:16px;border:1px solid #ccc;resize:vertical;overflow-y:auto;min-height:1rem}.search-column.svelte-fiifsz.svelte-fiifsz{flex:1;display:flex;flex-direction:column;border-right:1px solid #ccc}.search-bar.svelte-fiifsz textarea.svelte-fiifsz{width:100%;max-width:100%;padding:1rem;box-sizing:border-box}.textarea-column.svelte-fiifsz.svelte-fiifsz{flex:1;display:flex;flex-direction:column;padding-left:10px}.textarea.svelte-fiifsz.svelte-fiifsz{width:100%;height:100%;margin:10px 10px 10px 0;border:none;outline:none;resize:none;background:transparent}@media (max-width: 767px){.search-column.svelte-fiifsz.svelte-fiifsz,.textarea-column.svelte-fiifsz.svelte-fiifsz{border-right:none}}.search-second-bar.svelte-fiifsz.svelte-fiifsz{display:flex;flex-wrap:wrap}@media (max-width: 600px){.search-second-bar.svelte-fiifsz.svelte-fiifsz{flex-direction:column}}textarea.svelte-fiifsz.svelte-fiifsz{border:1px solid #ccc;width:100%;font-size:14px;box-sizing:border-box;padding:1rem}a.svelte-fiifsz.svelte-fiifsz{cursor:pointer}.reference-btn.svelte-fiifsz.svelte-fiifsz,.reference-btn.svelte-fiifsz.svelte-fiifsz:hover{text-decoration:none;color:#000}
build/client/_app/immutable/assets/fa-brands-400.7q-YOPLl.ttf ADDED
Binary file (209 kB). View file
 
build/client/_app/immutable/assets/fa-brands-400.Du52WpXz.woff2 ADDED
Binary file (118 kB). View file
 
build/client/_app/immutable/assets/fa-regular-400.4BH2UmBK.woff2 ADDED
Binary file (25.5 kB). View file
 
build/client/_app/immutable/assets/fa-regular-400.X96xuTcY.ttf ADDED
Binary file (68 kB). View file
 
build/client/_app/immutable/assets/fa-solid-900.VdwmxDNg.ttf ADDED
Binary file (424 kB). View file
 
build/client/_app/immutable/assets/fa-solid-900.zkCRIXEm.woff2 ADDED
Binary file (157 kB). View file
 
build/client/_app/immutable/assets/fa-v4compatibility.V_F1ibRM.woff2 ADDED
Binary file (4.8 kB). View file
 
build/client/_app/immutable/assets/fa-v4compatibility.fTFiPhOk.ttf ADDED
Binary file (10.8 kB). View file
 
build/client/_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js ADDED
The diff for this file is too large to render. See raw diff
 
build/client/_app/immutable/chunks/LlmSelector.Snki38ql.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as w,L as x,e as B,d as O,f as j,i as k,u as _,k as P,M as $,N as ee,O as le,s as U,P as K,Q as W,c as Q,j as z,l as A,w as S,r as fe,R as Ue,g as q,S as F,p as H,T as qe,v as J,q as Fe,n as ne,t as ue,F as X,h as se,z as Qe,m as ye,o as ze,A as Ge,y as Ke,x as Ce}from"./scheduler.5WtVptCO.js";import{S as te,i as ie,a as T,t as p,g as Y,f as Z,c as re,d as ce,m as de,e as me,b as Te}from"./index.7IiDzEZn.js";import{e as _e}from"./each.C7pZUaX1.js";import{w as We}from"./index.G3yBo0_P.js";import{p as He}from"./popup.dE7t2hhe.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Je}from"./stores.XS_YoCyo.js";function Xe(i){let e,t,s;const n=i[12].default,a=x(n,i,i[11],null);return{c(){e=B("div"),a&&a.c(),this.h()},l(l){e=O(l,"DIV",{class:!0,role:!0,"aria-labelledby":!0,"data-testid":!0});var u=j(e);a&&a.l(u),u.forEach(k),this.h()},h(){_(e,"class",t="listbox "+i[1]),_(e,"role","listbox"),_(e,"aria-labelledby",i[0]),_(e,"data-testid","listbox")},m(l,u){P(l,e,u),a&&a.m(e,null),s=!0},p(l,[u]){a&&a.p&&(!s||u&2048)&&$(a,n,l,l[11],s?le(n,l[11],u,null):ee(l[11]),null),(!s||u&2&&t!==(t="listbox "+l[1]))&&_(e,"class",t),(!s||u&1)&&_(e,"aria-labelledby",l[0])},i(l){s||(T(a,l),s=!0)},o(l){p(a,l),s=!1},d(l){l&&k(e),a&&a.d(l)}}}const Ye="";function Ze(i,e,t){let s,{$$slots:n={},$$scope:a}=e,{multiple:l=!1}=e,{spacing:u="space-y-1"}=e,{rounded:f="rounded-token"}=e,{active:m="variant-filled"}=e,{hover:C="hover:variant-soft"}=e,{padding:E="px-4 py-2"}=e,{regionLead:D=""}=e,{regionDefault:c=""}=e,{regionTrail:d=""}=e,{labelledby:g=""}=e;return U("multiple",l),U("rounded",f),U("active",m),U("hover",C),U("padding",E),U("regionLead",D),U("regionDefault",c),U("regionTrail",d),i.$$set=o=>{t(13,e=K(K({},e),W(o))),"multiple"in o&&t(2,l=o.multiple),"spacing"in o&&t(3,u=o.spacing),"rounded"in o&&t(4,f=o.rounded),"active"in o&&t(5,m=o.active),"hover"in o&&t(6,C=o.hover),"padding"in o&&t(7,E=o.padding),"regionLead"in o&&t(8,D=o.regionLead),"regionDefault"in o&&t(9,c=o.regionDefault),"regionTrail"in o&&t(10,d=o.regionTrail),"labelledby"in o&&t(0,g=o.labelledby),"$$scope"in o&&t(11,a=o.$$scope)},i.$$.update=()=>{t(1,s=`${Ye} ${u} ${f} ${e.class??""}`)},e=W(e),[g,s,l,u,f,m,C,E,D,c,d,a,n]}class we extends te{constructor(e){super(),ie(this,e,Ze,Xe,w,{multiple:2,spacing:3,rounded:4,active:5,hover:6,padding:7,regionLead:8,regionDefault:9,regionTrail:10,labelledby:0})}}const xe=i=>({}),he=i=>({}),$e=i=>({}),ge=i=>({});function el(i){let e,t=!1,s,n,a;return s=qe(i[35][0]),{c(){e=B("input"),this.h()},l(l){e=O(l,"INPUT",{type:!0,name:!0,tabindex:!0}),this.h()},h(){_(e,"type","radio"),_(e,"name",i[1]),e.__value=i[2],J(e,e.__value),_(e,"tabindex","-1"),s.p(e)},m(l,u){P(l,e,u),i[33](e),e.checked=e.__value===i[0],n||(a=[S(e,"change",i[34]),S(e,"click",i[29]),S(e,"change",i[30])],n=!0)},p(l,u){u[0]&2&&_(e,"name",l[1]),u[0]&4&&(e.__value=l[2],J(e,e.__value),t=!0),(t||u[0]&1)&&(e.checked=e.__value===l[0])},d(l){l&&k(e),i[33](null),s.r(),n=!1,fe(a)}}}function ll(i){let e,t,s;return{c(){e=B("input"),this.h()},l(n){e=O(n,"INPUT",{type:!0,name:!0,tabindex:!0}),this.h()},h(){_(e,"type","checkbox"),_(e,"name",i[1]),e.__value=i[2],J(e,e.__value),_(e,"tabindex","-1")},m(n,a){P(n,e,a),i[31](e),e.checked=i[4],t||(s=[S(e,"change",i[32]),S(e,"click",i[27]),S(e,"change",i[28])],t=!0)},p(n,a){a[0]&2&&_(e,"name",n[1]),a[0]&4&&(e.__value=n[2],J(e,e.__value)),a[0]&16&&(e.checked=n[4])},d(n){n&&k(e),i[31](null),t=!1,fe(s)}}}function be(i){let e,t,s;const n=i[23].lead,a=x(n,i,i[22],ge);return{c(){e=B("div"),a&&a.c(),this.h()},l(l){e=O(l,"DIV",{class:!0});var u=j(e);a&&a.l(u),u.forEach(k),this.h()},h(){_(e,"class",t="listbox-label-lead "+i[9])},m(l,u){P(l,e,u),a&&a.m(e,null),s=!0},p(l,u){a&&a.p&&(!s||u[0]&4194304)&&$(a,n,l,l[22],s?le(n,l[22],u,$e):ee(l[22]),ge),(!s||u[0]&512&&t!==(t="listbox-label-lead "+l[9]))&&_(e,"class",t)},i(l){s||(T(a,l),s=!0)},o(l){p(a,l),s=!1},d(l){l&&k(e),a&&a.d(l)}}}function ke(i){let e,t,s;const n=i[23].trail,a=x(n,i,i[22],he);return{c(){e=B("div"),a&&a.c(),this.h()},l(l){e=O(l,"DIV",{class:!0});var u=j(e);a&&a.l(u),u.forEach(k),this.h()},h(){_(e,"class",t="listbox-label-trail "+i[7])},m(l,u){P(l,e,u),a&&a.m(e,null),s=!0},p(l,u){a&&a.p&&(!s||u[0]&4194304)&&$(a,n,l,l[22],s?le(n,l[22],u,xe):ee(l[22]),he),(!s||u[0]&128&&t!==(t="listbox-label-trail "+l[7]))&&_(e,"class",t)},i(l){s||(T(a,l),s=!0)},o(l){p(a,l),s=!1},d(l){l&&k(e),a&&a.d(l)}}}function tl(i){let e,t,s,n,a,l,u,f,m,C,E,D,c,d;function g(h,y){return h[3]?ll:el}let o=g(i),L=o(i),b=i[13].lead&&be(i);const I=i[23].default,M=x(I,i,i[22],null);let v=i[13].trail&&ke(i);return{c(){e=B("label"),t=B("div"),s=B("div"),L.c(),n=Q(),a=B("div"),b&&b.c(),l=Q(),u=B("div"),M&&M.c(),m=Q(),v&&v.c(),this.h()},l(h){e=O(h,"LABEL",{});var y=j(e);t=O(y,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-selected":!0,tabindex:!0});var V=j(t);s=O(V,"DIV",{class:!0});var N=j(s);L.l(N),N.forEach(k),n=z(V),a=O(V,"DIV",{class:!0});var R=j(a);b&&b.l(R),l=z(R),u=O(R,"DIV",{class:!0});var G=j(u);M&&M.l(G),G.forEach(k),m=z(R),v&&v.l(R),R.forEach(k),V.forEach(k),y.forEach(k),this.h()},h(){_(s,"class","h-0 w-0 overflow-hidden"),_(u,"class",f="listbox-label-content "+i[8]),_(a,"class",C="listbox-label "+i[10]),_(t,"class",E="listbox-item "+i[11]),_(t,"data-testid","listbox-item"),_(t,"role","option"),_(t,"aria-selected",i[5]),_(t,"tabindex","0")},m(h,y){P(h,e,y),A(e,t),A(t,s),L.m(s,null),A(t,n),A(t,a),b&&b.m(a,null),A(a,l),A(a,u),M&&M.m(u,null),A(a,m),v&&v.m(a,null),D=!0,c||(d=[S(t,"keydown",i[12]),S(t,"keydown",i[24]),S(t,"keyup",i[25]),S(t,"keypress",i[26])],c=!0)},p(h,y){o===(o=g(h))&&L?L.p(h,y):(L.d(1),L=o(h),L&&(L.c(),L.m(s,null))),h[13].lead?b?(b.p(h,y),y[0]&8192&&T(b,1)):(b=be(h),b.c(),T(b,1),b.m(a,l)):b&&(Y(),p(b,1,1,()=>{b=null}),Z()),M&&M.p&&(!D||y[0]&4194304)&&$(M,I,h,h[22],D?le(I,h[22],y,null):ee(h[22]),null),(!D||y[0]&256&&f!==(f="listbox-label-content "+h[8]))&&_(u,"class",f),h[13].trail?v?(v.p(h,y),y[0]&8192&&T(v,1)):(v=ke(h),v.c(),T(v,1),v.m(a,null)):v&&(Y(),p(v,1,1,()=>{v=null}),Z()),(!D||y[0]&1024&&C!==(C="listbox-label "+h[10]))&&_(a,"class",C),(!D||y[0]&2048&&E!==(E="listbox-item "+h[11]))&&_(t,"class",E),(!D||y[0]&32)&&_(t,"aria-selected",h[5])},i(h){D||(T(b),T(M,h),T(v),D=!0)},o(h){p(b),p(M,h),p(v),D=!1},d(h){h&&k(e),L.d(),b&&b.d(),M&&M.d(h),v&&v.d(),c=!1,fe(d)}}}const il="cursor-pointer -outline-offset-[3px]",al="flex items-center space-x-4",nl="",ul="flex-1",sl="";function oe(i,e){if(i===e)return!0;if(!(i instanceof Object)||!(e instanceof Object))return!1;const t=Object.keys(i),s=Object.keys(e);if(t.length!==s.length)return!1;for(const n of t){const a=i[n],l=e[n];if(!oe(a,l))return!1}return!0}function ol(i,e,t){let s,n,a,l,u,f,m,{$$slots:C={},$$scope:E}=e;const D=Ue(C);let{group:c}=e,{name:d}=e,{value:g}=e,{multiple:o=q("multiple")}=e,{rounded:L=q("rounded")}=e,{active:b=q("active")}=e,{hover:I=q("hover")}=e,{padding:M=q("padding")}=e,{regionLead:v=q("regionLead")}=e,{regionDefault:h=q("regionDefault")}=e,{regionTrail:y=q("regionTrail")}=e,V,N;function R(r){t(4,V=r.indexOf(g)>=0)}function G(r){const ae=c.indexOf(g);r?ae<0&&(c.push(g),t(0,c)):ae>=0&&(c.splice(ae,1),t(0,c))}function Ee(r){["Enter","Space"].includes(r.code)&&(r.preventDefault(),N.click())}const Ie=[[]];function Me(r){F.call(this,i,r)}function Pe(r){F.call(this,i,r)}function pe(r){F.call(this,i,r)}function Be(r){F.call(this,i,r)}function Oe(r){F.call(this,i,r)}function je(r){F.call(this,i,r)}function Se(r){F.call(this,i,r)}function Ve(r){H[r?"unshift":"push"](()=>{N=r,t(6,N)})}function Ae(){V=this.checked,t(4,V)}function Ne(r){H[r?"unshift":"push"](()=>{N=r,t(6,N)})}function Re(){c=this.__value,t(0,c)}return i.$$set=r=>{t(38,e=K(K({},e),W(r))),"group"in r&&t(0,c=r.group),"name"in r&&t(1,d=r.name),"value"in r&&t(2,g=r.value),"multiple"in r&&t(3,o=r.multiple),"rounded"in r&&t(14,L=r.rounded),"active"in r&&t(15,b=r.active),"hover"in r&&t(16,I=r.hover),"padding"in r&&t(17,M=r.padding),"regionLead"in r&&t(18,v=r.regionLead),"regionDefault"in r&&t(19,h=r.regionDefault),"regionTrail"in r&&t(20,y=r.regionTrail),"$$scope"in r&&t(22,E=r.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&9&&o&&R(c),i.$$.dirty[0]&24&&o&&G(V),i.$$.dirty[0]&13&&t(5,s=o?c.some(r=>oe(g,r)):oe(c,g)),i.$$.dirty[0]&98336&&t(21,n=s?b:I),t(11,a=`${il} ${L} ${M} ${n} ${e.class??""}`),i.$$.dirty[0]&262144&&t(9,u=`${nl} ${v}`),i.$$.dirty[0]&524288&&t(8,f=`${ul} ${h}`),i.$$.dirty[0]&1048576&&t(7,m=`${sl} ${y}`)},t(10,l=`${al}`),e=W(e),[c,d,g,o,V,s,N,m,f,u,l,a,Ee,D,L,b,I,M,v,h,y,n,E,C,Me,Pe,pe,Be,Oe,je,Se,Ve,Ae,Ne,Re,Ie]}class fl extends te{constructor(e){super(),ie(this,e,ol,tl,w,{group:0,name:1,value:2,multiple:3,rounded:14,active:15,hover:16,padding:17,regionLead:18,regionDefault:19,regionTrail:20},null,[-1,-1])}}function rl(i){let e,t="Настроить LLM",s,n;return{c(){e=B("button"),e.textContent=t,this.h()},l(a){e=O(a,"BUTTON",{class:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-qhip0s"&&(e.textContent=t),this.h()},h(){_(e,"class","btn variant-outline-tertiary")},m(a,l){P(a,e,l),s||(n=S(e,"click",i[0]),s=!0)},p:ne,i:ne,o:ne,d(a){a&&k(e),s=!1,n()}}}function cl(i,e,t){const s=Je();let{llmParams:n}=e,{addLlmCallback:a}=e,{removeCallback:l}=e;({...n});function u(){const f={type:"component",title:"Изменение настроек LLM",component:"llmSettingsModal",meta:n,response:m=>{m&&m.delete?l(m.delete):m!==!1&&a(m)}};s.update(m=>(m.unshift(f),m))}return i.$$set=f=>{"llmParams"in f&&t(1,n=f.llmParams),"addLlmCallback"in f&&t(2,a=f.addLlmCallback),"removeCallback"in f&&t(3,l=f.removeCallback)},[u,n,a,l]}class dl extends te{constructor(e){super(),ie(this,e,cl,rl,w,{llmParams:1,addLlmCallback:2,removeCallback:3})}}function ve(i,e,t){const s=i.slice();return s[13]=e[t],s}function ml(i){let e=i[13].name+"",t,s;return{c(){t=ue(e),s=Q()},l(n){t=se(n,e),s=z(n)},m(n,a){P(n,t,a),P(n,s,a)},p(n,a){a&4&&e!==(e=n[13].name+"")&&ye(t,e)},d(n){n&&(k(t),k(s))}}}function Le(i){let e,t,s;function n(l){i[9](l)}let a={name:"medium",value:i[13],$$slots:{default:[ml]},$$scope:{ctx:i}};return i[0]!==void 0&&(a.group=i[0]),e=new fl({props:a}),H.push(()=>Te(e,"group",n)),{c(){re(e.$$.fragment)},l(l){ce(e.$$.fragment,l)},m(l,u){de(e,l,u),s=!0},p(l,u){const f={};u&4&&(f.value=l[13]),u&65540&&(f.$$scope={dirty:u,ctx:l}),!t&&u&1&&(t=!0,f.group=l[0],Ce(()=>t=!1)),e.$set(f)},i(l){s||(T(e.$$.fragment,l),s=!0)},o(l){p(e.$$.fragment,l),s=!1},d(l){me(e,l)}}}function _l(i){let e,t,s=_e(i[2]),n=[];for(let l=0;l<s.length;l+=1)n[l]=Le(ve(i,s,l));const a=l=>p(n[l],1,1,()=>{n[l]=null});return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=X()},l(l){for(let u=0;u<n.length;u+=1)n[u].l(l);e=X()},m(l,u){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(l,u);P(l,e,u),t=!0},p(l,u){if(u&5){s=_e(l[2]);let f;for(f=0;f<s.length;f+=1){const m=ve(l,s,f);n[f]?(n[f].p(m,u),T(n[f],1)):(n[f]=Le(m),n[f].c(),T(n[f],1),n[f].m(e.parentNode,e))}for(Y(),f=s.length;f<n.length;f+=1)a(f);Z()}},i(l){if(!t){for(let u=0;u<s.length;u+=1)T(n[u]);t=!0}},o(l){n=n.filter(Boolean);for(let u=0;u<n.length;u+=1)p(n[u]);t=!1},d(l){l&&k(e),Ke(n,l)}}}function De(i){let e,t,s;function n(l){i[10](l)}let a={addLlmCallback:i[6],removeCallback:i[7]};return i[0]!==void 0&&(a.llmParams=i[0]),e=new dl({props:a}),H.push(()=>Te(e,"llmParams",n)),{c(){re(e.$$.fragment)},l(l){ce(e.$$.fragment,l)},m(l,u){de(e,l,u),s=!0},p(l,u){const f={};!t&&u&1&&(t=!0,f.llmParams=l[0],Ce(()=>t=!1)),e.$set(f)},i(l){s||(T(e.$$.fragment,l),s=!0)},o(l){p(e.$$.fragment,l),s=!1},d(l){me(e,l)}}}function hl(i){let e,t,s,n,a,l,u,f,m,C,E,D;u=new we({props:{rounded:"rounded-none",$$slots:{default:[_l]},$$scope:{ctx:i}}});let c=i[0]&&De(i);return{c(){e=B("button"),t=ue(i[1]),s=ue(" "),n=B("i"),a=Q(),l=B("div"),re(u.$$.fragment),f=Q(),c&&c.c(),m=X(),this.h()},l(d){e=O(d,"BUTTON",{class:!0});var g=j(e);t=se(g,i[1]),s=se(g," "),n=O(g,"I",{class:!0}),j(n).forEach(k),g.forEach(k),a=z(d),l=O(d,"DIV",{class:!0,"data-popup":!0});var o=j(l);ce(u.$$.fragment,o),o.forEach(k),f=z(d),c&&c.l(d),m=X(),this.h()},h(){_(n,"class","fa-solid fa-angle-down"),_(e,"class","btn variant-filled w-72 justify-between"),_(l,"class","card w-72 shadow-xl py-2"),_(l,"data-popup","listPopup"+i[3])},m(d,g){P(d,e,g),A(e,t),A(e,s),A(e,n),P(d,a,g),P(d,l,g),de(u,l,null),P(d,f,g),c&&c.m(d,g),P(d,m,g),C=!0,E||(D=Qe(He.call(null,e,i[4])),E=!0)},p(d,[g]){(!C||g&2)&&ye(t,d[1]);const o={};g&65541&&(o.$$scope={dirty:g,ctx:d}),u.$set(o),d[0]?c?(c.p(d,g),g&1&&T(c,1)):(c=De(d),c.c(),T(c,1),c.m(m.parentNode,m)):c&&(Y(),p(c,1,1,()=>{c=null}),Z())},i(d){C||(T(u.$$.fragment,d),T(c),C=!0)},o(d){p(u.$$.fragment,d),p(c),C=!1},d(d){d&&(k(e),k(a),k(l),k(f),k(m)),me(u),c&&c.d(d),E=!1,D()}}}function gl(i,e,t){let s,{selectedLLM:n=null}=e,{skipLoadList:a=!1}=e,{label:l=n?.name||"Выбрать LLM"}=e;const u=Math.random(),f={event:"click",target:"listPopup"+u,placement:"bottom",closeQuery:".listbox-item"},m=We([]);ze(i,m,o=>t(2,s=o)),Ge(async()=>{if(!a)try{const L=await(await fetch("/llm/list")).json();m.set(L.list);const b=s.filter(I=>I.default);b.length>0&&t(0,n=b[0])}catch(o){console.error("Ошибка при загрузке списка LLM:",o)}});const C=o=>{m.update(L=>{let b=!1;for(let I of L)if(o.name.endsWith(" (изменено)")&&I.name===o.name){Object.assign(I,o),b=!0;break}if(!b){const I={...o,name:o.name+" (изменено)"};L.push(I),t(0,n=I)}return L})},E=o=>{C(o)},D=o=>{m.update(L=>L.filter(I=>I.name!==o))},c=o=>{D(o),t(0,n=s[0])};function d(o){n=o,t(0,n)}function g(o){n=o,t(0,n)}return i.$$set=o=>{"selectedLLM"in o&&t(0,n=o.selectedLLM),"skipLoadList"in o&&t(8,a=o.skipLoadList),"label"in o&&t(1,l=o.label)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=n?.name||"Выбрать LLM")},[n,l,s,u,f,m,E,c,a,d,g]}class Tl extends te{constructor(e){super(),ie(this,e,gl,hl,w,{selectedLLM:0,skipLoadList:8,label:1})}}export{Tl as L};
build/client/_app/immutable/chunks/ModalPromptEditor.x-CfuIKj.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as M,e as d,t as p,c as b,d as k,f as g,h as y,j as E,i as c,u as T,B as j,k as _,l as m,v,w,m as A,n as B,r as S}from"./scheduler.5WtVptCO.js";import{S as q,i as C}from"./index.7IiDzEZn.js";function U(e,n){const s={},r={},f={$$scope:1};let l=e.length;for(;l--;){const u=e[l],t=n[l];if(t){for(const a in u)a in t||(r[a]=1);for(const a in t)f[a]||(s[a]=t[a],f[a]=1);e[l]=t}else for(const a in u)f[a]=1}for(const u in r)u in s||(s[u]=void 0);return s}function V(e){return typeof e=="object"&&e!==null?e:{}}function N(e){let n,s=e[2]?"Скрыть":"Показать",r,f,l,u,t,a,h;return{c(){n=d("button"),r=p(s),f=b(),l=p(e[1]),u=b(),t=d("textarea"),this.h()},l(i){n=k(i,"BUTTON",{class:!0});var o=g(n);r=y(o,s),f=E(o),l=y(o,e[1]),o.forEach(c),u=E(i),t=k(i,"TEXTAREA",{class:!0}),g(t).forEach(c),this.h()},h(){T(n,"class","btn variant-outline-tertiary"),T(t,"class","w-full min-h-96 variant-filled"),j(t,"hidden",!e[2])},m(i,o){_(i,n,o),m(n,r),m(n,f),m(n,l),_(i,u,o),_(i,t,o),v(t,e[0]),a||(h=[w(n,"click",e[3]),w(t,"input",e[4])],a=!0)},p(i,[o]){o&4&&s!==(s=i[2]?"Скрыть":"Показать")&&A(r,s),o&2&&A(l,i[1]),o&1&&v(t,i[0]),o&4&&j(t,"hidden",!i[2])},i:B,o:B,d(i){i&&(c(n),c(u),c(t)),a=!1,S(h)}}}function O(e,n,s){let{prompt:r}=n,{label:f}=n,l=!1;const u=()=>{s(2,l=!l)};function t(){r=this.value,s(0,r)}return e.$$set=a=>{"prompt"in a&&s(0,r=a.prompt),"label"in a&&s(1,f=a.label)},[r,f,l,u,t]}class X extends q{constructor(n){super(),C(this,n,O,N,M,{prompt:0,label:1})}}export{X as M,V as a,U as g};
build/client/_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{w as S,r as h}from"./index.G3yBo0_P.js";import{a as M}from"./scheduler.5WtVptCO.js";const d={};function w(e){return e==="local"?localStorage:sessionStorage}function u(e,n,r){const o=r?.serializer??JSON,l=r?.storage??"local";function f(a,i){w(l).setItem(a,o.stringify(i))}if(!d[e]){const a=S(n,t=>{const s=w(l).getItem(e);s&&t(o.parse(s));{const g=c=>{c.key===e&&t(c.newValue?o.parse(c.newValue):null)};return window.addEventListener("storage",g),()=>window.removeEventListener("storage",g)}}),{subscribe:i,set:m}=a;d[e]={set(t){f(e,t),m(t)},update(t){const s=t(M(a));f(e,s),m(s)},subscribe:i}}return d[e]}u("modeOsPrefers",!1);u("modeUserPrefers",void 0);u("modeCurrent",!1);const p="(prefers-reduced-motion: reduce)";function v(){return window.matchMedia(p).matches}const E=h(v(),e=>{{const n=o=>{e(o.matches)},r=window.matchMedia(p);return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}}});export{E as p};
build/client/_app/immutable/chunks/SearchResults.3ZkY-Bmy.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import{b as pe,L as _e,e as G,d as j,f as q,i as z,u as S,k as F,M as be,N as ge,O as Se,o as ve,s as x,P as Ve,Q as He,c as te,j as ne,l as W,w as ee,r as tt,R as rn,ac as wt,g as $,X as cn,n as ke,ad as un,S as Fe,t as ae,h as oe,H as nt,C as lt,F as re,B as ue,A as Vt,ae as Ht,G as fn,aa as Pe,K as dn,p as Ge,I as Gt,m as Oe,y as je,q as jt,x as Kt}from"./scheduler.5WtVptCO.js";import{S as ye,i as Ce,a as A,t as H,g as de,f as he,h as hn,j as mn,c as Ke,d as We,m as qe,e as Xe,b as Wt}from"./index.7IiDzEZn.js";import{w as we}from"./index.G3yBo0_P.js";import{e as me}from"./each.C7pZUaX1.js";import{p as _n}from"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{s as ft,d as dt}from"./transitions.QBIMuVLc.js";import{b as bn}from"./SearchUtils.tAbMbmlw.js";const qt=!0;function gn(i){let e,t,n;const l=i[19].default,a=_e(l,i,i[18],null);return{c(){e=G("div"),a&&a.c(),this.h()},l(s){e=j(s,"DIV",{class:!0,"data-testid":!0});var o=q(e);a&&a.l(o),o.forEach(z),this.h()},h(){S(e,"class",t="accordion "+i[0]),S(e,"data-testid","accordion")},m(s,o){F(s,e,o),a&&a.m(e,null),n=!0},p(s,[o]){a&&a.p&&(!n||o&262144)&&be(a,l,s,s[18],n?Se(l,s[18],o,null):ge(s[18]),null),(!n||o&1&&t!==(t="accordion "+s[0]))&&S(e,"class",t)},i(s){n||(A(a,s),n=!0)},o(s){H(a,s),n=!1},d(s){s&&z(e),a&&a.d(s)}}}function Sn(i,e,t){let n,l;ve(i,_n,m=>t(20,l=m));let{$$slots:a={},$$scope:s}=e,{autocollapse:o=!1}=e,{width:r="w-full"}=e,{spacing:f="space-y-1"}=e,{disabled:u=!1}=e,{padding:b="py-2 px-4"}=e,{hover:P="hover:bg-primary-hover-token"}=e,{rounded:k="rounded-container-token"}=e,{caretOpen:d="rotate-180"}=e,{caretClosed:p=""}=e,{regionControl:R=""}=e,{regionPanel:y="space-y-4"}=e,{regionCaret:M=""}=e,{transitions:N=!l}=e,{transitionIn:K=ft}=e,{transitionInParams:w={duration:200}}=e,{transitionOut:O=ft}=e,{transitionOutParams:g={duration:200}}=e;const T=we(null);return x("active",T),x("autocollapse",o),x("disabled",u),x("padding",b),x("hover",P),x("rounded",k),x("caretOpen",d),x("caretClosed",p),x("regionControl",R),x("regionPanel",y),x("regionCaret",M),x("transitions",N),x("transitionIn",K),x("transitionInParams",w),x("transitionOut",O),x("transitionOutParams",g),i.$$set=m=>{t(22,e=Ve(Ve({},e),He(m))),"autocollapse"in m&&t(1,o=m.autocollapse),"width"in m&&t(2,r=m.width),"spacing"in m&&t(3,f=m.spacing),"disabled"in m&&t(4,u=m.disabled),"padding"in m&&t(5,b=m.padding),"hover"in m&&t(6,P=m.hover),"rounded"in m&&t(7,k=m.rounded),"caretOpen"in m&&t(8,d=m.caretOpen),"caretClosed"in m&&t(9,p=m.caretClosed),"regionControl"in m&&t(10,R=m.regionControl),"regionPanel"in m&&t(11,y=m.regionPanel),"regionCaret"in m&&t(12,M=m.regionCaret),"transitions"in m&&t(13,N=m.transitions),"transitionIn"in m&&t(14,K=m.transitionIn),"transitionInParams"in m&&t(15,w=m.transitionInParams),"transitionOut"in m&&t(16,O=m.transitionOut),"transitionOutParams"in m&&t(17,g=m.transitionOutParams),"$$scope"in m&&t(18,s=m.$$scope)},i.$$.update=()=>{t(0,n=`${r} ${f} ${e.class??""}`)},e=He(e),[n,o,r,f,u,b,P,k,d,p,R,y,M,N,K,w,O,g,s,a]}class vn extends ye{constructor(e){super(),Ce(this,e,Sn,gn,pe,{autocollapse:1,width:2,spacing:3,disabled:4,padding:5,hover:6,rounded:7,caretOpen:8,caretClosed:9,regionControl:10,regionPanel:11,regionCaret:12,transitions:13,transitionIn:14,transitionInParams:15,transitionOut:16,transitionOutParams:17})}}const kn=i=>({}),ht=i=>({}),zn=i=>({}),mt=i=>({}),Pn=i=>({}),_t=i=>({}),pn=i=>({}),bt=i=>({}),yn=i=>({}),gt=i=>({});function St(i){let e,t;const n=i[30].lead,l=_e(n,i,i[29],gt);return{c(){e=G("div"),l&&l.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var s=q(e);l&&l.l(s),s.forEach(z),this.h()},h(){S(e,"class","accordion-lead")},m(a,s){F(a,e,s),l&&l.m(e,null),t=!0},p(a,s){l&&l.p&&(!t||s[0]&536870912)&&be(l,n,a,a[29],t?Se(n,a[29],s,yn):ge(a[29]),gt)},i(a){t||(A(l,a),t=!0)},o(a){H(l,a),t=!1},d(a){a&&z(e),l&&l.d(a)}}}function Cn(i){let e;return{c(){e=ae("(summary)")},l(t){e=oe(t,"(summary)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Rn(i){let e,t,n;return{c(){e=G("div"),t=new nt(!1),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);t=lt(a,!1),a.forEach(z),this.h()},h(){t.a=null,S(e,"class",n="accordion-summary-caret "+i[11])},m(l,a){F(l,e,a),t.m(i[14],e)},p(l,a){a[0]&2048&&n!==(n="accordion-summary-caret "+l[11])&&S(e,"class",n)},i:ke,o:ke,d(l){l&&z(e)}}}function Dn(i){let e,t,n,l,a;const s=[On,In],o=[];function r(f,u){return f[8]?0:1}return t=r(i),n=o[t]=s[t](i),{c(){e=G("div"),n.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var u=q(e);n.l(u),u.forEach(z),this.h()},h(){S(e,"class",l="accordion-summary-icons "+i[10])},m(f,u){F(f,e,u),o[t].m(e,null),a=!0},p(f,u){let b=t;t=r(f),t===b?o[t].p(f,u):(de(),H(o[b],1,1,()=>{o[b]=null}),he(),n=o[t],n?n.p(f,u):(n=o[t]=s[t](f),n.c()),A(n,1),n.m(e,null)),(!a||u[0]&1024&&l!==(l="accordion-summary-icons "+f[10]))&&S(e,"class",l)},i(f){a||(A(n),a=!0)},o(f){H(n),a=!1},d(f){f&&z(e),o[t].d()}}}function In(i){let e;const t=i[30].iconOpen,n=_e(t,i,i[29],mt),l=n||En(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,zn):ge(a[29]),mt)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function On(i){let e;const t=i[30].iconClosed,n=_e(t,i,i[29],_t),l=n||Mn(i);return{c(){l&&l.c()},l(a){l&&l.l(a)},m(a,s){l&&l.m(a,s),e=!0},p(a,s){n&&n.p&&(!e||s[0]&536870912)&&be(n,t,a,a[29],e?Se(t,a[29],s,Pn):ge(a[29]),_t)},i(a){e||(A(l,a),e=!0)},o(a){H(l,a),e=!1},d(a){l&&l.d(a)}}}function En(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function Mn(i){let e,t;return{c(){e=new nt(!1),t=re(),this.h()},l(n){e=lt(n,!1),t=re(),this.h()},h(){e.a=t},m(n,l){e.m(i[14],n,l),F(n,t,l)},p:ke,d(n){n&&(z(t),e.d())}}}function vt(i){let e,t,n,l,a,s,o;const r=i[30].content,f=_e(r,i,i[29],ht),u=f||Tn();return{c(){e=G("div"),u&&u.c(),this.h()},l(b){e=j(b,"DIV",{class:!0,id:!0,role:!0,"aria-hidden":!0,"aria-labelledby":!0});var P=q(e);u&&u.l(P),P.forEach(z),this.h()},h(){S(e,"class",t="accordion-panel "+i[9]),S(e,"id",n="accordion-panel-"+i[0]),S(e,"role","region"),S(e,"aria-hidden",l=!i[8]),S(e,"aria-labelledby",i[0])},m(b,P){F(b,e,P),u&&u.m(e,null),o=!0},p(b,P){i=b,f&&f.p&&(!o||P[0]&536870912)&&be(f,r,i,i[29],o?Se(r,i[29],P,kn):ge(i[29]),ht),(!o||P[0]&512&&t!==(t="accordion-panel "+i[9]))&&S(e,"class",t),(!o||P[0]&1&&n!==(n="accordion-panel-"+i[0]))&&S(e,"id",n),(!o||P[0]&256&&l!==(l=!i[8]))&&S(e,"aria-hidden",l),(!o||P[0]&1)&&S(e,"aria-labelledby",i[0])},i(b){o||(A(u,b),b&&cn(()=>{o&&(s&&s.end(1),a=hn(e,dt,{transition:i[4],params:i[5],enabled:i[3]}),a.start())}),o=!0)},o(b){H(u,b),a&&a.invalidate(),b&&(s=mn(e,dt,{transition:i[6],params:i[7],enabled:i[3]})),o=!1},d(b){b&&z(e),u&&u.d(b),b&&s&&s.end()}}}function Tn(i){let e;return{c(){e=ae("(content)")},l(t){e=oe(t,"(content)")},m(t,n){F(t,e,n)},d(t){t&&z(e)}}}function Bn(i){let e,t,n,l,a,s,o,r,f,u,b,P,k,d,p=i[16].lead&&St(i);const R=i[30].summary,y=_e(R,i,i[29],bt),M=y||Cn(),N=[Dn,Rn],K=[];function w(g,T){return g[16].iconClosed||g[16].iconOpen?0:1}s=w(i),o=K[s]=N[s](i);let O=i[8]&&vt(i);return{c(){e=G("div"),t=G("button"),p&&p.c(),n=te(),l=G("div"),M&&M.c(),a=te(),o.c(),u=te(),O&&O.c(),this.h()},l(g){e=j(g,"DIV",{class:!0,"data-testid":!0});var T=q(e);t=j(T,"BUTTON",{type:!0,class:!0,id:!0,"aria-expanded":!0,"aria-controls":!0});var m=q(t);p&&p.l(m),n=ne(m),l=j(m,"DIV",{class:!0});var L=q(l);M&&M.l(L),L.forEach(z),a=ne(m),o.l(m),m.forEach(z),u=ne(T),O&&O.l(T),T.forEach(z),this.h()},h(){S(l,"class","accordion-summary flex-1"),S(t,"type","button"),S(t,"class",r="accordion-control "+i[12]),S(t,"id",i[0]),S(t,"aria-expanded",i[8]),S(t,"aria-controls",f="accordion-panel-"+i[0]),t.disabled=i[2],S(e,"class",b="accordion-item "+i[13]),S(e,"data-testid","accordion-item")},m(g,T){F(g,e,T),W(e,t),p&&p.m(t,null),W(t,n),W(t,l),M&&M.m(l,null),W(t,a),K[s].m(t,null),W(e,u),O&&O.m(e,null),P=!0,k||(d=[ee(t,"click",i[15]),ee(t,"click",i[31]),ee(t,"keydown",i[32]),ee(t,"keyup",i[33]),ee(t,"keypress",i[34])],k=!0)},p(g,T){g[16].lead?p?(p.p(g,T),T[0]&65536&&A(p,1)):(p=St(g),p.c(),A(p,1),p.m(t,n)):p&&(de(),H(p,1,1,()=>{p=null}),he()),y&&y.p&&(!P||T[0]&536870912)&&be(y,R,g,g[29],P?Se(R,g[29],T,pn):ge(g[29]),bt);let m=s;s=w(g),s===m?K[s].p(g,T):(de(),H(K[m],1,1,()=>{K[m]=null}),he(),o=K[s],o?o.p(g,T):(o=K[s]=N[s](g),o.c()),A(o,1),o.m(t,null)),(!P||T[0]&4096&&r!==(r="accordion-control "+g[12]))&&S(t,"class",r),(!P||T[0]&1)&&S(t,"id",g[0]),(!P||T[0]&256)&&S(t,"aria-expanded",g[8]),(!P||T[0]&1&&f!==(f="accordion-panel-"+g[0]))&&S(t,"aria-controls",f),(!P||T[0]&4)&&(t.disabled=g[2]),g[8]?O?(O.p(g,T),T[0]&256&&A(O,1)):(O=vt(g),O.c(),A(O,1),O.m(e,null)):O&&(de(),H(O,1,1,()=>{O=null}),he()),(!P||T[0]&8192&&b!==(b="accordion-item "+g[13]))&&S(e,"class",b)},i(g){P||(A(p),A(M,g),A(o),A(O),P=!0)},o(g){H(p),H(M,g),H(o),H(O),P=!1},d(g){g&&z(e),p&&p.d(),M&&M.d(g),K[s].d(),O&&O.d(),k=!1,tt(d)}}}const Ln="",Nn="text-start w-full flex items-center space-x-4",kt="fill-current w-3 transition-transform duration-[200ms]",Fn="";function Un(i,e,t){let n,l,a,s,o,r,f,u,b=ke,P=()=>(b(),b=un(K,I=>t(28,u=I)),K);i.$$.on_destroy.push(()=>b());let{$$slots:k={},$$scope:d}=e;const p=rn(k),R=wt();let{open:y=!1}=e,{id:M=String(Math.random())}=e,{autocollapse:N=$("autocollapse")}=e,{active:K=$("active")}=e;P();let{disabled:w=$("disabled")}=e,{padding:O=$("padding")}=e,{hover:g=$("hover")}=e,{rounded:T=$("rounded")}=e,{caretOpen:m=$("caretOpen")}=e,{caretClosed:L=$("caretClosed")}=e,{regionControl:h=$("regionControl")}=e,{regionPanel:Z=$("regionPanel")}=e,{regionCaret:J=$("regionCaret")}=e,{transitions:ie=$("transitions")}=e,{transitionIn:V=$("transitionIn")}=e,{transitionInParams:fe=$("transitionInParams")}=e,{transitionOut:Ye=$("transitionOut")}=e,{transitionOutParams:Ee=$("transitionOutParams")}=e;const Qe=`
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class={classesControlCaret}>
3
+ <path d="M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" />
4
+ </svg>`;function Re(I){N===!0?K.set(M):t(17,y=!y),Ze(I)}function Ze(I){const Ie=N?u===M:y;R("toggle",{event:I,id:M,panelId:`accordion-panel-${M}`,open:Ie,autocollapse:N})}N&&y&&Re();function Me(I){Fe.call(this,i,I)}function Je(I){Fe.call(this,i,I)}function Te(I){Fe.call(this,i,I)}function De(I){Fe.call(this,i,I)}return i.$$set=I=>{t(37,e=Ve(Ve({},e),He(I))),"open"in I&&t(17,y=I.open),"id"in I&&t(0,M=I.id),"autocollapse"in I&&t(18,N=I.autocollapse),"active"in I&&P(t(1,K=I.active)),"disabled"in I&&t(2,w=I.disabled),"padding"in I&&t(19,O=I.padding),"hover"in I&&t(20,g=I.hover),"rounded"in I&&t(21,T=I.rounded),"caretOpen"in I&&t(22,m=I.caretOpen),"caretClosed"in I&&t(23,L=I.caretClosed),"regionControl"in I&&t(24,h=I.regionControl),"regionPanel"in I&&t(25,Z=I.regionPanel),"regionCaret"in I&&t(26,J=I.regionCaret),"transitions"in I&&t(3,ie=I.transitions),"transitionIn"in I&&t(4,V=I.transitionIn),"transitionInParams"in I&&t(5,fe=I.transitionInParams),"transitionOut"in I&&t(6,Ye=I.transitionOut),"transitionOutParams"in I&&t(7,Ee=I.transitionOutParams),"$$scope"in I&&t(29,d=I.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&393216&&y&&N&&Re(),i.$$.dirty[0]&268828673&&t(8,n=N?u===M:y),t(13,l=`${Ln} ${e.class??""}`),i.$$.dirty[0]&20447232&&t(12,a=`${Nn} ${O} ${g} ${T} ${h}`),i.$$.dirty[0]&12583168&&t(27,s=n?m:L),i.$$.dirty[0]&201326592&&t(11,o=`${kt} ${J} ${s}`),i.$$.dirty[0]&67108864&&t(10,r=`${kt} ${J}`),i.$$.dirty[0]&36175872&&t(9,f=`${Fn} ${O} ${T} ${Z}`)},e=He(e),[M,K,w,ie,V,fe,Ye,Ee,n,f,r,o,a,l,Qe,Re,p,y,N,O,g,T,m,L,h,Z,J,s,u,d,k,Me,Je,Te,De]}class An extends ye{constructor(e){super(),Ce(this,e,Un,Bn,pe,{open:17,id:0,autocollapse:18,active:1,disabled:2,padding:19,hover:20,rounded:21,caretOpen:22,caretClosed:23,regionControl:24,regionPanel:25,regionCaret:26,transitions:3,transitionIn:4,transitionInParams:5,transitionOut:6,transitionOutParams:7},null,[-1,-1])}}function Ue(i){if(!i.endsWith("px"))return;const e=parseFloat(i.slice(0,i.length-2));return isNaN(e)?void 0:e}const Xt=i=>i?"height":"width",$e=i=>window.getComputedStyle(i),et=i=>i.getBoundingClientRect(),wn=(i,e=!0)=>{if(i.getPropertyValue("box-sizing")==="border-box")return;const t=Ue(i.getPropertyValue("border-left-width"));if(t===void 0){console.error("Splitpanes Error: Fail to parse container `border-left-width`.");return}const n=Ue(i.getPropertyValue("border-top-width"));if(n===void 0){console.error("Splitpanes Error: Fail to parse container `border-top-width`.");return}const l={left:t,top:n};if(e){const a=Ue(i.getPropertyValue("border-right-width"));if(a===void 0){console.error("Splitpanes Error: Fail to parse container `border-right-width`.");return}const s=Ue(i.getPropertyValue("border-bottom-width"));if(s===void 0){console.error("Splitpanes Error: Fail to parse container `border-bottom-width`.");return}const o=l;o.right=a,o.bottom=s}return l};function Vn(i,e){e||(e=$e(i));const t=et(i),n=wn(e,!0)||{left:0,top:0,right:0,bottom:0};return{width:t.width-n.left-n.right,height:t.height-n.top-n.bottom,left:t.left+n.left,top:t.top+n.top}}const zt=(i,e)=>({left:i.left-e.left,top:i.top-e.top});function Pt(i){const e=i,t=i,{clientX:n,clientY:l}="ontouchstart"in window&&t.touches?t.touches[0]:e;return{left:n,top:l}}function pt(i,e,t,n){let l=0;for(let a=e;a<t;a++)l+=n(i[a],a);return l}function Ae(i,e,t,n){for(let l=e;l<t;l++)n(i[l],l)}function Hn(i){let e,t,n,l,a=!qt;const s=i[16].default,o=_e(s,i,i[18],null);return{c(){e=G("div"),t=te(),o&&o.c(),this.h()},l(r){e=j(r,"DIV",{id:!0,class:!0,style:!0});var f=q(e);t=ne(f),o&&o.l(f),f.forEach(z),this.h()},h(){S(e,"id",i[0]),S(e,"class",n=`splitpanes ${i[3]||""} ${i[4]||""}`),S(e,"style",i[2]),ue(e,"splitpanes--horizontal",i[1]),ue(e,"splitpanes--vertical",!i[1]),ue(e,"splitpanes--dragging",i[7]||i[8]),ue(e,"splitpanes--freeze",!i[6])},m(r,f){F(r,e,f),W(e,t),o&&o.m(e,null),i[17](e),l=!0},p(r,f){o&&o.p&&(!l||f[0]&262144)&&be(o,s,r,r[18],l?Se(s,r[18],f,null):ge(r[18]),null),(!l||f[0]&1)&&S(e,"id",r[0]),(!l||f[0]&24&&n!==(n=`splitpanes ${r[3]||""} ${r[4]||""}`))&&S(e,"class",n),(!l||f[0]&4)&&S(e,"style",r[2]),(!l||f[0]&26)&&ue(e,"splitpanes--horizontal",r[1]),(!l||f[0]&26)&&ue(e,"splitpanes--vertical",!r[1]),(!l||f[0]&408)&&ue(e,"splitpanes--dragging",r[7]||r[8]),(!l||f[0]&88)&&ue(e,"splitpanes--freeze",!r[6])},i(r){l||(A(a),A(o,r),l=!0)},o(r){H(a),H(o,r),l=!1},d(r){r&&z(e),o&&o.d(r),i[17](null)}}}const Yt={};function Gn(i,e,t){let n,l,a,{$$slots:s={},$$scope:o}=e,{id:r=void 0}=e,{horizontal:f=!1}=e,{pushOtherPanes:u=!0}=e,{dblClickSplitter:b=!0}=e,{rtl:P="auto"}=e,{firstSplitter:k=!1}=e,{style:d=null}=e,{theme:p="default-theme"}=e,{class:R=""}=e;const y=wt();let M,N=!1,K=!1,w=!1,O=!1,g=!1,T=-1,m=-1,L,h=new Array,Z=we(f);ve(i,Z,c=>t(31,a=c));const J=we(k);ve(i,J,c=>t(30,l=c));const ie=we(void 0);ve(i,ie,c=>t(29,n=c));let V=null,fe=null;x(Yt,{showFirstSplitter:J,veryFirstPaneKey:ie,isHorizontal:Z,ssrRegisterPaneSize:void 0,onPaneInit:c=>(n===void 0&&Pe(ie,n=c,n),{undefinedPaneInitSize:0}),clientOnly:{onPaneAdd:Ee,onPaneRemove:Qe}});function Ee(c){let v=-1;Array.from(c.element.parentNode.children).some(_=>(_.className.includes("splitpanes__pane")&&v++,_===c.element)),v===0&&Pe(ie,n=c.key,n),h.splice(v,0,c);for(let _=0;_<h.length;_++)h[_].index=_;N&&xe().then(()=>{c.isReady=!0,y("pane-add",{index:v,panes:ze()})});const E=(_,B=!0)=>D=>{(B||c.index>0)&&_(D,c)};return{onSplitterDown:E(Zt,!1),onSplitterClick:E(Jt,!1),onSplitterDblClick:E(it),onPaneClick:E(Re),reportGivenSizeChange:E(Ze)}}async function Qe(c){const v=h.findIndex(E=>E.key===c);if(v>=0){const E=h.splice(v,1)[0];for(let _=0;_<h.length;_++)h[_].index=_;v===0&&Pe(ie,n=h.length>0?h[0].key:void 0,n),N&&(await xe(),y("pane-remove",{removed:E,panes:ze()}))}}function Re(c,v){y("pane-click",v)}function Ze(c,v){v.setSz(c),xe()}Vt(()=>{ct(),rt();for(let c=0;c<h.length;c++)h[c].isReady=!0;N=!0,y("ready"),setTimeout(()=>{t(6,w=!0)},0)}),Ht(()=>{N&&Te(),N=!1}),fn(()=>{ct()});function Me(c){if(P==="auto")try{return(c??$e(M)).direction==="rtl"}catch{}return P===!0}function Je(){document.body.style.cursor=Z?"col-resize":"row-resize",document.addEventListener("mousemove",Be,{passive:!1}),document.addEventListener("mouseup",Le),"ontouchstart"in window&&(document.addEventListener("touchmove",Be,{passive:!1}),document.addEventListener("touchend",Le))}function Te(){document.body.style.cursor="",document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Le),"ontouchstart"in window&&(document.removeEventListener("touchmove",Be),document.removeEventListener("touchend",Le))}const De=c=>c.nodeType===Node.ELEMENT_NODE&&c.classList.contains("splitpanes__splitter");function I(c,v,E){let _=c[f?"top":"left"];return E&&!f&&(_=v-_),_}const Ie=()=>Xt(f);function Zt(c,v){t(7,O=!0),T=v.index,v.setSplitterActive(!0);let _=v.element;for(;_!=null&&(_=_.previousSibling,!De(_)););if(_==null){console.error("Splitpane Error: Active splitter wasn't found!");return}V=_;const B=Pt(c),D=et(V);fe=I(zt(B,D),D[Ie()],Me()),Je()}function Be(c){if(O){c.preventDefault(),t(8,g=!0);const v=Pt(c),E=$e(M),_=Vn(M,E),B=_[Ie()],D=Me(E),C=zt(v,_),U=I(C,B,D);$t(U,B),y("resize",ze())}}function Le(){g&&y("resized",ze()),t(7,O=!1),h[T].setSplitterActive(!1),setTimeout(()=>{t(8,g=!1),Te()},100)}function Jt(c,v){if("ontouchstart"in window){c.preventDefault();const E=v.index;b&&(m===E?(L&&clearTimeout(L),L=null,it(c,v),m=-1):(m=E,L=setTimeout(()=>{m=-1},500)))}g||y("splitter-click",v)}function it(c,v){if(b){const E=v.index;let _=0;for(let C=0;C<h.length;C++){const U=h[C];C!==E&&(_+=U.min())}const B=Math.min(Math.max(0,100-_),v.max()),D=_+B;if(D>=100)for(let C=0;C<h.length;C++){const U=h[C];U!==v?U.setSz(U.min()):U.setSz(100-_)}else{let C=100-D;v.setSz(B);const U=X=>{const Q=X.min(),le=X.max(),se=Math.min(Math.max(0,C),le-Q);X.setSz(Q+se),C-=se};for(let X=E-1;X>=0;X--)U(h[X]);for(let X=E+1;X<h.length;X++)U(h[X]);C!=0&&console.warn("Splitpanes: there is a left spare size after computation of splitter double click, which means there are issues on the size constains of the panes.")}y("pane-maximize",v),y("resized",ze())}t(7,O=!1)}const ze=()=>h.map(c=>({min:c.min(),max:c.max(),size:c.sz(),snap:c.snap()}));function xt(c,v){const E=le=>et(le)[Ie()],_=E(V);let B=0,D=V.previousSibling;for(;D!=null;)De(D)&&(B+=E(D)),D=D.previousSibling;let C=0,U=V.nextSibling;for(;U!=null;)De(U)&&(C+=E(U)),U=U.nextSibling;const X=B+fe,Q=B+_+C;return(c-X)/(v-Q)*100}function $t(c,v){let E=T-1,_=h[E],B=T,D=h[B],C={prevPanesSize:at(E),nextPanesSize:ot(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const U=0+(u?0:C.prevPanesSize),X=100-(u?0:C.nextPanesSize),Q=Math.max(Math.min(xt(c,v),X),U),le=C.prevPanesSize+_.min()+_.snap(),se=100-(C.nextPanesSize+D.min()+D.snap());let Y=Q,ce=!1;Q<=le?Q>C.prevPanesSize+_.min()&&(Y=Math.max(_.min()+C.prevPanesSize,100-(D.max()+C.nextPanesSize)),ce=!0):Q>=se&&Q<100-C.nextPanesSize-D.min()&&(Y=Math.min(100-(D.min()+C.nextPanesSize),_.max()+C.prevPanesSize),ce=!0);const Ne=_.max()<100&&Y>=_.max()+C.prevPanesSize,on=D.max()<100&&Y<=100-(D.max()+C.nextPanesSize);if(Ne||on)Ne?(_.setSz(_.max()),D.setSz(Math.max(100-_.max()-C.prevPanesSize-C.nextPanesSize,0))):(_.setSz(Math.max(100-D.max()-C.prevPanesSize-C.nextPanesSize,0)),D.setSz(D.max()));else{if(u&&!ce){const ut=en(C,Y);if(!ut)return;({sums:C,paneBeforeIndex:E,paneAfterIndex:B}=ut),_=h[E],D=h[B]}E!=null&&_.setSz(Math.min(Math.max(Y-C.prevPanesSize-C.prevReachedMinPanes,_.min()),_.max())),B!=null&&D.setSz(Math.min(Math.max(100-Y-C.nextPanesSize-C.nextReachedMinPanes,D.min()),D.max()))}}function en(c,v){const E=T-1;let _=E,B=E+1;if(v<c.prevPanesSize+h[_].min()&&(_=tn(E)?.index,c.prevReachedMinPanes=0,_<E&&Ae(h,_+1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),c.prevPanesSize=at(_),_==null))return c.prevReachedMinPanes=0,h[0].setSz(h[0].min()),Ae(h,1,E+1,D=>{D.setSz(D.min()),c.prevReachedMinPanes+=D.min()}),h[B].setSz(100-c.prevReachedMinPanes-h[0].min()-c.prevPanesSize-c.nextPanesSize),null;if(v>100-c.nextPanesSize-h[B].min()){B=nn(E)?.index,c.nextReachedMinPanes=0,B>E+1&&Ae(h,E+1,B,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),c.nextPanesSize=ot(B);const D=h.length;if(B==null)return c.nextReachedMinPanes=0,h[D-1].setSz(h[D-1].min()),Ae(h,E+1,D-1,C=>{C.setSz(C.min()),c.nextReachedMinPanes+=C.min()}),h[_].setSz(100-c.prevPanesSize-c.nextReachedMinPanes-h[D-1].min()-c.nextPanesSize),null}return{sums:c,paneBeforeIndex:_,paneAfterIndex:B}}const st=c=>c.sz(),at=c=>pt(h,0,c,st),ot=c=>pt(h,c+1,h.length,st),tn=c=>[...h].reverse().find(v=>v.index<c&&v.sz()>v.min()),nn=c=>h.find(v=>v.index>c+1&&v.sz()>v.min());async function xe(){K=!0,await dn(),K&&(rt(),K=!1)}function rt(){ln(),N&&y("resized",ze())}function ln(){if(h.length===0)return;const c=h.length;let v=100,E=0,_=0,B=0,D=[],C=[];for(let se=0;se<c;se++){const Y=h[se],ce=Y.sz();Y.givenSize==null?Y.isReady?(B+=ce,ce>=Y.max()&&D.push(Y),ce<=Y.min()&&C.push(Y)):_+=1:(v-=ce,E++,D.push(Y),C.push(Y))}const U=c-E,X=U-_;let Q,le;if(X>0?(Q=B/X,Q>.1&&v>.1?(B+=_*Q,le=v/B):(Q=0,le=1)):(Q=v/U,le=1),v+B>.1){v=100;for(let se=0;se<c;se++){const Y=h[se];if(Y.givenSize==null){const ce=Y.isReady?Y.sz():Q,Ne=Math.max(Math.min(ce*le,Y.max()),Y.min());Y.setSz(Ne)}v-=Y.sz()}Math.abs(v)>.1&&(v=sn(v,D,C))}isFinite(v)?Math.abs(v)>.1&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints."):console.warn("Splitpanes: Internal error, sizes might be NaN as a result.")}function sn(c,v,E){const B=h.length-(c>0?v.length:E.length);if(B<=0)return c;const D=c/B;if(h.length===1)h[0].setSz(100),c=0;else for(let C=0;C<h.length;C++){const U=h[C],X=U.sz();if(c>0&&!v.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}else if(!E.includes(U)){const Q=Math.max(Math.min(X+D,U.max()),U.min()),le=Q-X;c-=le,U.setSz(Q)}}return c}function ct(){const{children:c}=M;let v=0,E=!1;for(let _=0;_<c.length;_++){const B=c.item(_),D=B.classList.contains("splitpanes__pane"),C=B.classList.contains("splitpanes__splitter");if(!D&&!C){B.parentNode?.removeChild(B),console.warn("Splitpanes: Only <Pane> elements are allowed at the root of <Splitpanes>. One of your DOM nodes was removed.");return}else D&&(!E&&h[v].element!==B&&(E=!0),v++)}if(E){const _=[];for(let B=0;B<c.length;B++){const D=c.item(B);if(D.classList.contains("splitpanes__pane")){const U=h.find(X=>X.element===D);U!=null?(U.index=_.length,_.push(U)):console.warn("Splitpanes: Internal error - found a <Pane> elements which isn't tracked.")}}h=_,Pe(ie,n=h.length>0?h[0].key:void 0,n)}}function an(c){Ge[c?"unshift":"push"](()=>{M=c,t(5,M)})}return i.$$set=c=>{"id"in c&&t(0,r=c.id),"horizontal"in c&&t(1,f=c.horizontal),"pushOtherPanes"in c&&t(12,u=c.pushOtherPanes),"dblClickSplitter"in c&&t(13,b=c.dblClickSplitter),"rtl"in c&&t(14,P=c.rtl),"firstSplitter"in c&&t(15,k=c.firstSplitter),"style"in c&&t(2,d=c.style),"theme"in c&&t(3,p=c.theme),"class"in c&&t(4,R=c.class),"$$scope"in c&&t(18,o=c.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&2&&Pe(Z,a=f,a),i.$$.dirty[0]&32768&&Pe(J,l=k,l)},[r,f,d,p,R,M,w,O,g,Z,J,ie,u,b,P,k,s,an,o]}class bl extends ye{constructor(e){super(),Ce(this,e,Gn,Hn,pe,{id:0,horizontal:1,pushOtherPanes:12,dblClickSplitter:13,rtl:14,firstSplitter:15,style:2,theme:3,class:4},null,[-1,-1,-1])}}const jn=(i,e)=>t=>{const n=i();n?.[e](t)},Kn=i=>jn.bind(null,i);function Wn(i){let e,t,n,l,a,s,o=(i[4]!==i[9]||i[5])&&yt(i);const r=i[20].default,f=_e(r,i,i[19],null);return{c(){o&&o.c(),e=te(),t=G("div"),f&&f.c(),this.h()},l(u){o&&o.l(u),e=ne(u),t=j(u,"DIV",{class:!0,style:!0});var b=q(t);f&&f.l(b),b.forEach(z),this.h()},h(){S(t,"class",n=`splitpanes__pane ${i[0]||""}`),S(t,"style",i[3])},m(u,b){o&&o.m(u,b),F(u,e,b),F(u,t,b),f&&f.m(t,null),i[21](t),l=!0,a||(s=ee(t,"click",i[11]("onPaneClick")),a=!0)},p(u,b){u[4]!==u[9]||u[5]?o?o.p(u,b):(o=yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),f&&f.p&&(!l||b&524288)&&be(f,r,u,u[19],l?Se(r,u[19],b,null):ge(u[19]),null),(!l||b&1&&n!==(n=`splitpanes__pane ${u[0]||""}`))&&S(t,"class",n),(!l||b&8)&&S(t,"style",u[3])},i(u){l||(A(f,u),l=!0)},o(u){H(f,u),l=!1},d(u){u&&(z(e),z(t)),o&&o.d(u),f&&f.d(u),i[21](null),a=!1,s()}}}function yt(i){let e,t,n,l;return{c(){e=G("div"),this.h()},l(a){e=j(a,"DIV",{class:!0}),q(e).forEach(z),this.h()},h(){S(e,"class",t="splitpanes__splitter "+(i[2]?"splitpanes__splitter__active":""))},m(a,s){F(a,e,s),n||(l=[ee(e,"mousedown",i[11]("onSplitterDown")),ee(e,"touchstart",i[11]("onSplitterDown")),ee(e,"click",i[11]("onSplitterClick")),ee(e,"dblclick",i[11]("onSplitterDblClick"))],n=!0)},p(a,s){s&4&&t!==(t="splitpanes__splitter "+(a[2]?"splitpanes__splitter__active":""))&&S(e,"class",t)},d(a){a&&z(e),n=!1,tt(l)}}}function qn(i){let e,t,n=!i[10]&&Wn(i);return{c(){n&&n.c(),e=re()},l(l){n&&n.l(l),e=re()},m(l,a){n&&n.m(l,a),F(l,e,a),t=!0},p(l,[a]){l[10]||n.p(l,a)},i(l){t||(A(n),t=!0)},o(l){H(n),t=!1},d(l){l&&z(e),n&&n.d(l)}}}function Xn(i,e,t){let n,l,a,s,o,{$$slots:r={},$$scope:f}=e;const{ssrRegisterPaneSize:u,onPaneInit:b,clientOnly:P,isHorizontal:k,showFirstSplitter:d,veryFirstPaneKey:p}=$(Yt);ve(i,k,V=>t(18,a=V)),ve(i,d,V=>t(5,o=V)),ve(i,p,V=>t(4,s=V));let{size:R=null}=e,{minSize:y=0}=e,{maxSize:M=100}=e,{snapSize:N=0}=e,{class:K=""}=e;const w={},O=!qt,{undefinedPaneInitSize:g}=b(w);let T,m=R??g,L=!1,h;const Z=Kn(()=>h),J=V=>{V!=m&&Z("reportGivenSizeChange")(V)};Vt(()=>{const V={key:w,element:T,givenSize:R,sz:()=>m,setSz:fe=>{t(16,m=fe),R!=null&&R!=m&&t(12,R=m)},min:()=>y,max:()=>M,snap:()=>N,setSplitterActive:fe=>{t(2,L=fe)},isReady:!1};h=P.onPaneAdd(V)}),Ht(()=>{P.onPaneRemove(w)});function ie(V){Ge[V?"unshift":"push"](()=>{T=V,t(1,T)})}return i.$$set=V=>{"size"in V&&t(12,R=V.size),"minSize"in V&&t(13,y=V.minSize),"maxSize"in V&&t(14,M=V.maxSize),"snapSize"in V&&t(15,N=V.snapSize),"class"in V&&t(0,K=V.class),"$$scope"in V&&t(19,f=V.$$scope)},i.$$.update=()=>{i.$$.dirty&4096&&R!=null&&J(R),i.$$.dirty&262144&&t(17,n=Xt(a)),i.$$.dirty&196608&&t(3,l=`${n}: ${m}%;`)},[K,T,L,l,s,o,k,d,p,w,O,Z,R,y,M,N,m,n,a,f,r,ie]}class gl extends ye{constructor(e){super(),Ce(this,e,Xn,qn,pe,{size:12,minSize:13,maxSize:14,snapSize:15,class:0})}}function Ct(i,e,t){const n=i.slice();return n[11]=e[t],n}function Rt(i){let e,t,n;return{c(){e=G("input"),this.h()},l(l){e=j(l,"INPUT",{type:!0}),this.h()},h(){S(e,"type","checkbox")},m(l,a){F(l,e,a),e.checked=i[1][i[2].title],t||(n=ee(e,"change",i[9]),t=!0)},p(l,a){a&6&&(e.checked=l[1][l[2].title])},d(l){l&&z(e),t=!1,n()}}}function Yn(i){let e,t=i[2].teaser+"",n;return{c(){e=G("div"),n=ae(t),this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);n=oe(a,t),a.forEach(z),this.h()},h(){S(e,"class","annotation svelte-vfddhm")},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&4&&t!==(t=l[2].teaser+"")&&Oe(n,t)},d(l){l&&z(e)}}}function Qn(i){let e,t=me(i[7].split(`
5
+ `)),n=[];for(let l=0;l<t.length;l+=1)n[l]=Dt(Ct(i,t,l));return{c(){e=G("div");for(let l=0;l<n.length;l+=1)n[l].c();this.h()},l(l){e=j(l,"DIV",{class:!0});var a=q(e);for(let s=0;s<n.length;s+=1)n[s].l(a);a.forEach(z),this.h()},h(){S(e,"class","annotation full-text svelte-vfddhm")},m(l,a){F(l,e,a);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(l,a){if(a&128){t=me(l[7].split(`
6
+ `));let s;for(s=0;s<t.length;s+=1){const o=Ct(l,t,s);n[s]?n[s].p(o,a):(n[s]=Dt(o),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(l){l&&z(e),je(n,l)}}}function Dt(i){let e,t=i[11]+"",n;return{c(){e=G("p"),n=ae(t)},l(l){e=j(l,"P",{});var a=q(e);n=oe(a,t),a.forEach(z)},m(l,a){F(l,e,a),W(e,n)},p(l,a){a&128&&t!==(t=l[11]+"")&&Oe(n,t)},d(l){l&&z(e)}}}function It(i){let e,t,n;return{c(){e=G("a"),t=ae("Открыть документ"),this.h()},l(l){e=j(l,"A",{href:!0,target:!0,style:!0,class:!0});var a=q(e);t=oe(a,"Открыть документ"),a.forEach(z),this.h()},h(){S(e,"href",n=i[5]+"s/"+encodeURIComponent(i[2].title)),S(e,"target","_blank"),Gt(e,"font-weight","500"),S(e,"class","svelte-vfddhm")},m(l,a){F(l,e,a),W(e,t)},p(l,a){a&36&&n!==(n=l[5]+"s/"+encodeURIComponent(l[2].title))&&S(e,"href",n)},d(l){l&&z(e)}}}function Ot(i){let e,t,n;function l(o,r){return o[0][o[3]]?Jn:Zn}let a=l(i),s=a(i);return{c(){e=G("button"),s.c(),this.h()},l(o){e=j(o,"BUTTON",{class:!0});var r=q(e);s.l(r),r.forEach(z),this.h()},h(){S(e,"class","btn-link ml-3")},m(o,r){F(o,e,r),s.m(e,null),t||(n=ee(e,"click",i[10]),t=!0)},p(o,r){a!==(a=l(o))&&(s.d(1),s=a(o),s&&(s.c(),s.m(e,null)))},d(o){o&&z(e),s.d(),t=!1,n()}}}function Zn(i){let e,t;return{c(){e=ae("развернуть "),t=G("i"),this.h()},l(n){e=oe(n,"развернуть "),t=j(n,"I",{class:!0}),q(t).forEach(z),this.h()},h(){S(t,"class","fa fa-angle-down text-xs")},m(n,l){F(n,e,l),F(n,t,l)},d(n){n&&(z(e),z(t))}}}function Jn(i){let e,t;return{c(){e=ae("свернуть "),t=G("i"),this.h()},l(n){e=oe(n,"свернуть "),t=j(n,"I",{class:!0}),q(t).forEach(z),this.h()},h(){S(t,"class","fa fa-angle-up text-xs")},m(n,l){F(n,e,l),F(n,t,l)},d(n){n&&(z(e),z(t))}}}function xn(i){let e,t,n,l,a=i[2].title+"",s,o,r,f,u=i[6]&&Rt(i);function b(R,y){return R[0][R[3]]?Qn:Yn}let P=b(i),k=P(i),d=i[4]&&i[5]&&It(i),p=i[7].length>100&&Ot(i);return{c(){e=G("div"),t=G("div"),n=G("label"),u&&u.c(),l=te(),s=ae(a),o=te(),k.c(),r=te(),d&&d.c(),f=te(),p&&p.c(),this.h()},l(R){e=j(R,"DIV",{class:!0});var y=q(e);t=j(y,"DIV",{class:!0});var M=q(t);n=j(M,"LABEL",{style:!0});var N=q(n);u&&u.l(N),l=ne(N),s=oe(N,a),N.forEach(z),M.forEach(z),o=ne(y),k.l(y),r=ne(y),d&&d.l(y),f=ne(y),p&&p.l(y),y.forEach(z),this.h()},h(){Gt(n,"cursor","pointer"),S(t,"class","title svelte-vfddhm"),S(e,"class","search-result svelte-vfddhm")},m(R,y){F(R,e,y),W(e,t),W(t,n),u&&u.m(n,null),W(n,l),W(n,s),W(e,o),k.m(e,null),W(e,r),d&&d.m(e,null),W(e,f),p&&p.m(e,null)},p(R,[y]){R[6]?u?u.p(R,y):(u=Rt(R),u.c(),u.m(n,l)):u&&(u.d(1),u=null),y&4&&a!==(a=R[2].title+"")&&Oe(s,a),P===(P=b(R))&&k?k.p(R,y):(k.d(1),k=P(R),k&&(k.c(),k.m(e,r))),R[4]&&R[5]?d?d.p(R,y):(d=It(R),d.c(),d.m(e,f)):d&&(d.d(1),d=null),R[7].length>100?p?p.p(R,y):(p=Ot(R),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:ke,o:ke,d(R){R&&z(e),u&&u.d(),k.d(),d&&d.d(),p&&p.d()}}}function $n(i,e,t){let{value:n}=e,{showFullText:l=Array(10).fill(!1)}=e,{useSearchResult:a}=e,{index:s}=e,{enableDocumentDb:o=!1}=e,{documentDbUrl:r=""}=e,{enableSearchResultSelection:f=!1}=e,u="";function b(d){t(0,l[d]=!l[d],l)}function P(){a[n.title]=this.checked,t(1,a)}const k=()=>b(s);return i.$$set=d=>{"value"in d&&t(2,n=d.value),"showFullText"in d&&t(0,l=d.showFullText),"useSearchResult"in d&&t(1,a=d.useSearchResult),"index"in d&&t(3,s=d.index),"enableDocumentDb"in d&&t(4,o=d.enableDocumentDb),"documentDbUrl"in d&&t(5,r=d.documentDbUrl),"enableSearchResultSelection"in d&&t(6,f=d.enableSearchResultSelection)},i.$$.update=()=>{i.$$.dirty&4&&t(7,u=n?n.text_for_llm||n.text:"")},[l,a,n,s,o,r,f,u,b,P,k]}class Qt extends ye{constructor(e){super(),Ce(this,e,$n,xn,pe,{value:2,showFullText:0,useSearchResult:1,index:3,enableDocumentDb:4,documentDbUrl:5,enableSearchResultSelection:6})}}function Et(i,e,t){const n=i.slice();return n[31]=e[t],n[34]=e,n[33]=t,n}function Mt(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n}function Tt(i,e,t){const n=i.slice();return n[31]=e[t],n[32]=e,n[33]=t,n}function Bt(i){let e,t,n,l,a=i[3]?"Выбрано LLM":"Все результаты",s,o,r,f,u,b,P,k="Выбрать источники для LLM",d,p,R,y,M,N,K,w=i[2]&&Lt();return{c(){e=G("div"),t=G("button"),n=G("i"),l=ae(` \r
7
+ `),s=ae(a),f=te(),u=G("button"),w&&w.c(),b=te(),P=G("span"),P.textContent=k,p=te(),R=G("button"),y=ae("Группировать по типу"),this.h()},l(O){e=j(O,"DIV",{class:!0});var g=q(e);t=j(g,"BUTTON",{class:!0});var T=q(t);n=j(T,"I",{class:!0}),q(n).forEach(z),l=oe(T,` \r
8
+ `),s=oe(T,a),T.forEach(z),f=ne(g),u=j(g,"BUTTON",{class:!0});var m=q(u);w&&w.l(m),b=ne(m),P=j(m,"SPAN",{"data-svelte-h":!0}),jt(P)!=="svelte-u1xxg4"&&(P.textContent=k),m.forEach(z),p=ne(g),R=j(g,"BUTTON",{class:!0});var L=q(R);y=oe(L,"Группировать по типу"),L.forEach(z),g.forEach(z),this.h()},h(){S(n,"class","fa-solid fa-check"),S(t,"class",o="chip "+(i[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg"),t.disabled=r=i[8].length==0,ue(t,"blinking",i[11]),S(u,"class",d="chip "+i[14]+" svelte-1egz4bg"),u.disabled=i[7],S(R,"class",M="chip "+i[13]+" svelte-1egz4bg"),S(e,"class","w-full flex space-x-2 items-center mb-4")},m(O,g){F(O,e,g),W(e,t),W(t,n),W(t,l),W(t,s),W(e,f),W(e,u),w&&w.m(u,null),W(u,b),W(u,P),W(e,p),W(e,R),W(R,y),N||(K=[ee(t,"click",i[17]),ee(u,"click",i[18]),ee(R,"click",i[19])],N=!0)},p(O,g){g[0]&8&&a!==(a=O[3]?"Выбрано LLM":"Все результаты")&&Oe(s,a),g[0]&8&&o!==(o="chip "+(O[3]?"variant-filled-primary":"variant-soft-primary")+" svelte-1egz4bg")&&S(t,"class",o),g[0]&256&&r!==(r=O[8].length==0)&&(t.disabled=r),g[0]&2056&&ue(t,"blinking",O[11]),O[2]?w||(w=Lt(),w.c(),w.m(u,b)):w&&(w.d(1),w=null),g[0]&16384&&d!==(d="chip "+O[14]+" svelte-1egz4bg")&&S(u,"class",d),g[0]&128&&(u.disabled=O[7]),g[0]&8192&&M!==(M="chip "+O[13]+" svelte-1egz4bg")&&S(R,"class",M)},d(O){O&&z(e),w&&w.d(),N=!1,tt(K)}}}function Lt(i){let e,t='<i class="fa-solid fa-check"></i>';return{c(){e=G("span"),e.innerHTML=t},l(n){e=j(n,"SPAN",{"data-svelte-h":!0}),jt(e)!=="svelte-104b754"&&(e.innerHTML=t)},m(n,l){F(n,e,l)},d(n){n&&z(e)}}}function el(i){let e,t,n=me(i[9]),l=[];for(let s=0;s<n.length;s+=1)l[s]=Nt(Et(i,n,s));const a=s=>H(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=re()},l(s){for(let o=0;o<l.length;o+=1)l[o].l(s);e=re()},m(s,o){for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(s,o);F(s,e,o),t=!0},p(s,o){if(o[0]&629){n=me(s[9]);let r;for(r=0;r<n.length;r+=1){const f=Et(s,n,r);l[r]?(l[r].p(f,o),A(l[r],1)):(l[r]=Nt(f),l[r].c(),A(l[r],1),l[r].m(e.parentNode,e))}for(de(),r=n.length;r<l.length;r+=1)a(r);he()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)A(l[o]);t=!0}},o(s){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)H(l[o]);t=!1},d(s){s&&z(e),je(l,s)}}}function tl(i){let e,t;return e=new vn({props:{$$slots:{default:[sl]},$$scope:{ctx:i}}}),{c(){Ke(e.$$.fragment)},l(n){We(e.$$.fragment,n)},m(n,l){qe(e,n,l),t=!0},p(n,l){const a={};l[0]&4213|l[1]&16&&(a.$$scope={dirty:l,ctx:n}),e.$set(a)},i(n){t||(A(e.$$.fragment,n),t=!0)},o(n){H(e.$$.fragment,n),t=!1},d(n){Xe(e,n)}}}function Nt(i){let e,t,n;function l(s){i[21](s,i[31],i[34],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&512&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function Ft(i){let e,t,n,l;return{c(){e=G("input"),this.h()},l(a){e=j(a,"INPUT",{type:!0,"data-doctype":!0}),this.h()},h(){S(e,"type","checkbox"),S(e,"data-doctype",t=i[27])},m(a,s){F(a,e,s),n||(l=ee(e,"click",i[15]),n=!0)},p(a,s){s[0]&4096&&t!==(t=a[27])&&S(e,"data-doctype",t)},d(a){a&&z(e),n=!1,l()}}}function nl(i){let e,t=i[2]&&Ft(i);return{c(){t&&t.c(),e=te()},l(n){t&&t.l(n),e=ne(n)},m(n,l){t&&t.m(n,l),F(n,e,l)},p(n,l){n[2]?t?t.p(n,l):(t=Ft(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&z(e),t&&t.d(n)}}}function ll(i){let e=i[27]+"",t;return{c(){t=ae(e)},l(n){t=oe(n,e)},m(n,l){F(n,t,l)},p(n,l){l[0]&4096&&e!==(e=n[27]+"")&&Oe(t,e)},d(n){n&&z(t)}}}function Ut(i){let e,t,n;function l(s){i[20](s,i[31],i[32],i[33])}let a={index:i[33],enableSearchResultSelection:i[2],useSearchResult:i[0],showFullText:i[4],enableDocumentDb:i[5],documentDbUrl:i[6]};return i[31]!==void 0&&(a.value=i[31]),e=new Qt({props:a}),Ge.push(()=>Wt(e,"value",l)),{c(){Ke(e.$$.fragment)},l(s){We(e.$$.fragment,s)},m(s,o){qe(e,s,o),n=!0},p(s,o){i=s;const r={};o[0]&4&&(r.enableSearchResultSelection=i[2]),o[0]&1&&(r.useSearchResult=i[0]),o[0]&16&&(r.showFullText=i[4]),o[0]&32&&(r.enableDocumentDb=i[5]),o[0]&64&&(r.documentDbUrl=i[6]),!t&&o[0]&4096&&(t=!0,r.value=i[31],Kt(()=>t=!1)),e.$set(r)},i(s){n||(A(e.$$.fragment,s),n=!0)},o(s){H(e.$$.fragment,s),n=!1},d(s){Xe(e,s)}}}function il(i){let e,t,n=me(i[28]),l=[];for(let s=0;s<n.length;s+=1)l[s]=Ut(Tt(i,n,s));const a=s=>H(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=te()},l(s){for(let o=0;o<l.length;o+=1)l[o].l(s);e=ne(s)},m(s,o){for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(s,o);F(s,e,o),t=!0},p(s,o){if(o[0]&4213){n=me(s[28]);let r;for(r=0;r<n.length;r+=1){const f=Tt(s,n,r);l[r]?(l[r].p(f,o),A(l[r],1)):(l[r]=Ut(f),l[r].c(),A(l[r],1),l[r].m(e.parentNode,e))}for(de(),r=n.length;r<l.length;r+=1)a(r);he()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)A(l[o]);t=!0}},o(s){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)H(l[o]);t=!1},d(s){s&&z(e),je(l,s)}}}function At(i){let e,t;return e=new An({props:{$$slots:{content:[il],summary:[ll],lead:[nl]},$$scope:{ctx:i}}}),{c(){Ke(e.$$.fragment)},l(n){We(e.$$.fragment,n)},m(n,l){qe(e,n,l),t=!0},p(n,l){const a={};l[0]&4213|l[1]&16&&(a.$$scope={dirty:l,ctx:n}),e.$set(a)},i(n){t||(A(e.$$.fragment,n),t=!0)},o(n){H(e.$$.fragment,n),t=!1},d(n){Xe(e,n)}}}function sl(i){let e,t,n=me(Object.entries(i[12])),l=[];for(let s=0;s<n.length;s+=1)l[s]=At(Mt(i,n,s));const a=s=>H(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s<l.length;s+=1)l[s].c();e=re()},l(s){for(let o=0;o<l.length;o+=1)l[o].l(s);e=re()},m(s,o){for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(s,o);F(s,e,o),t=!0},p(s,o){if(o[0]&36981){n=me(Object.entries(s[12]));let r;for(r=0;r<n.length;r+=1){const f=Mt(s,n,r);l[r]?(l[r].p(f,o),A(l[r],1)):(l[r]=At(f),l[r].c(),A(l[r],1),l[r].m(e.parentNode,e))}for(de(),r=n.length;r<l.length;r+=1)a(r);he()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)A(l[o]);t=!0}},o(s){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)H(l[o]);t=!1},d(s){s&&z(e),je(l,s)}}}function al(i){let e,t,n,l,a,s,o,r=i[1]&&i[1].length>0&&Bt(i);const f=[tl,el],u=[];function b(k,d){return k[10]&&k[12]?0:1}n=b(i),l=u[n]=f[n](i);let P=ol;return{c(){e=G("div"),r&&r.c(),t=te(),l.c(),a=te(),s=re(),this.h()},l(k){e=j(k,"DIV",{class:!0});var d=q(e);r&&r.l(d),t=ne(d),l.l(d),d.forEach(z),a=ne(k),s=re(),this.h()},h(){S(e,"class","search-results svelte-1egz4bg")},m(k,d){F(k,e,d),r&&r.m(e,null),W(e,t),u[n].m(e,null),F(k,a,d),F(k,s,d),o=!0},p(k,d){k[1]&&k[1].length>0?r?r.p(k,d):(r=Bt(k),r.c(),r.m(e,t)):r&&(r.d(1),r=null);let p=n;n=b(k),n===p?u[n].p(k,d):(de(),H(u[p],1,1,()=>{u[p]=null}),he(),l=u[n],l?l.p(k,d):(l=u[n]=f[n](k),l.c()),A(l,1),l.m(e,null))},i(k){o||(A(l),A(P),o=!0)},o(k){H(l),H(P),o=!1},d(k){k&&(z(e),z(a),z(s)),r&&r.d(),u[n].d()}}}let ol=!1;function rl(i,e,t){let n,l,{enableDocumentDb:a=!1}=e,{documentDbUrl:s=""}=e,{showFullText:o=Array(10).fill(!1)}=e,{useSearchResult:r}=e,{searchInTransactionLedger:f=!1}=e,{searchResults:u=[]}=e,{usedSearchResults:b=[]}=e,P=[],{enableSearchResultSelection:k=!1}=e,{showOnlyLlmUsed:d=!1}=e,p=!1;const R=()=>{t(11,p=!0),setTimeout(()=>{t(11,p=!1)},5e3)};let y=!1,M;const N=L=>L.reduce((h,Z)=>{const J=Z.docType||"Другие документы";return h[J]||(h[J]=[]),h[J].push(Z),h},{}),K=L=>{L.stopPropagation();const h=L.target.dataset.doctype;Object.keys(M[h]).forEach(Z=>{t(0,r[M[h][Z].title]=L.target.checked,r)})},w=()=>{t(3,d=!d)},O=()=>{t(2,k=!k)},g=()=>{t(10,y=!y)};function T(L,h,Z,J){Z[J]=L}function m(L,h,Z,J){Z[J]=L,t(9,P),t(10,y),t(3,d),t(8,b),t(1,u)}return i.$$set=L=>{"enableDocumentDb"in L&&t(5,a=L.enableDocumentDb),"documentDbUrl"in L&&t(6,s=L.documentDbUrl),"showFullText"in L&&t(4,o=L.showFullText),"useSearchResult"in L&&t(0,r=L.useSearchResult),"searchInTransactionLedger"in L&&t(7,f=L.searchInTransactionLedger),"searchResults"in L&&t(1,u=L.searchResults),"usedSearchResults"in L&&t(8,b=L.usedSearchResults),"enableSearchResultSelection"in L&&t(2,k=L.enableSearchResultSelection),"showOnlyLlmUsed"in L&&t(3,d=L.showOnlyLlmUsed)},i.$$.update=()=>{i.$$.dirty[0]&1536&&(y&&t(12,M=N(P)),t(9,P=bn.sortByRelevance(P))),i.$$.dirty[0]&1&&r===void 0&&t(0,r={}),i.$$.dirty[0]&4&&t(14,n=k?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&1024&&t(13,l=y?"variant-filled-primary":"variant-soft-primary"),i.$$.dirty[0]&264&&t(3,d=b.length!==0&&d),i.$$.dirty[0]&266&&t(9,P=d?b:u)},[r,u,k,d,o,a,s,f,b,P,y,p,M,l,n,K,R,w,O,g,T,m]}class Sl extends ye{constructor(e){super(),Ce(this,e,rl,al,pe,{enableDocumentDb:5,documentDbUrl:6,showFullText:4,useSearchResult:0,searchInTransactionLedger:7,searchResults:1,usedSearchResults:8,enableSearchResultSelection:2,showOnlyLlmUsed:3,blinkButton:16},null,[-1,-1])}get blinkButton(){return this.$$.ctx[16]}}export{gl as P,bl as S,Sl as a};
build/client/_app/immutable/chunks/SearchUtils.tAbMbmlw.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import"./index.7IiDzEZn.js";import"./ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";globalThis.__sveltekit_q3nw9i.env;class i{static findDateInText(e){const s=/\b\d{1,2}\.\d{1,2}\.\d{4}\b/g,t=e.match(s);if(t&&t.length>0){const n=t[0],[o,r,a]=n.split(".").map(Number);return new Date(a,r-1,o)}return null}static sortByRelevanceAndDate(e){return e.sort((s,t)=>{const n=t.relevance-s.relevance;if(n!==0)return n;const o=i.findDateInText(s.title),r=i.findDateInText(t.title);return o&&r?r.getTime()-o.getTime():o?-1:r?1:0})}static sortByDate(e){const s=e.filter(a=>i.findDateInText(a.title)),t=e.filter(a=>!i.findDateInText(a.title)),n=s.sort((a,l)=>{const p=i.findDateInText(a.title),f=i.findDateInText(l.title);return p&&f?f.getTime()-p.getTime():p?-1:f?1:0}),o=[];let r=0;for(const a of e)if(i.findDateInText(a.title)){let l=n.shift();l&&o.push(l)}else o.push(t[r]),r++;return o}static sortByRelevance(e){return e.sort((s,t)=>s.relevance&&t.relevance?t.relevance-s.relevance:s.relevance?-1:t.relevance?1:0)}static identifyDocumentType(e){const s=[{regexp:/(ФАС |АС |КС |ВС |[Сс]удебн|[Сс]уд)|(\(Судебный документ\))/,docType:"Решение суда"},{regexp:/[Пп]исьмо [Мм]инфина/,docType:"Письмо Минфина"},{regexp:/[Пп]исьмо (ФНС|фнс)/,docType:"Письмо ФНС"},{regexp:/(НКРФ)|(НК РФ)/,docType:"Налоговый кодекс"},{regexp:/(ГКРФ)|(ГК РФ)/,docType:"Гражданский кодекс"},{regexp:/(ТКРФ)|(ТК РФ)/,docType:"Трудовой кодекс"},{regexp:/Приказ ФНС РФ/,docType:"Приказ ФНС РФ"},{regexp:/Постановление Правительства РФ/,docType:"Постановление Правительства РФ"},{regexp:/Решение Коллегии Евразийской экономической комиссии/,docType:"Решение Коллегии ЕЭК"},{regexp:/Федеральный закон/,docType:"Федеральные законы"},{regexp:/\(Внутренний документ\)|\(ВНД\)/,docType:"Внутренние документы"}];return e.map(t=>{for(const{regexp:n,docType:o}of s)if(n.test(t.title))return t.docType=o,t;return t.docType="Другие документы",t})}static mergeResultsByTitle(e){const s=/(ст\.\d+)\s(НКРФ|НК РФ|ГКРФ|ГК РФ|ТКРФ|ТК РФ)$/,t={},n=[],o=r=>{const a=r.match(s);return a?a[0]:null};return e.forEach(r=>{const a=o(r.title);if(a)if(t[a]){t[a].relevance=Math.max(t[a].relevance,r.relevance);const l=t[a].title.match(/п[\w\.]+/g)||[],p=r.title.match(/п[\w\.]+/g)||[],f=[...new Set([...l,...p])].join(", ");t[a].title=`${f} ст.${a.split(" ")[0].split(".")[1]} ${a.split(" ")[1]}`,t[a].text+=`
2
+ ${r.title}
3
+ ${r.text}`,r.text_for_llm&&(t[a].text_for_llm+=`
4
+ ${r.title}
5
+ ${r.text_for_llm}`)}else t[a]={...r};else n.push(r)}),Object.keys(t).forEach(r=>{n.push(t[r])}),n}}var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}const d={query:"",use_qe:!1,use_olympic:!1,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1,categories:{НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}};function h(c={}){return{...d,...c,categories:{...d.categories,...c.categories||{}}}}class u{abbreviationDict;data;dataPreProcessed;allRefs;patterns;refCollections;constructor(){this.data={},this.dataPreProcessed={},this.allRefs={},this.abbreviationDict=this.createAbbreviationDict(),this.refCollections=this.createRefCollections(),this.patterns=this.createPatterns()}createAbbreviationDict(){return{"Министерством Финансов":"Минфина","Министерство Финансов":"Минфина","Министерства Финансов":"Минфина","Министерству Финансов":"Минфина","Министерстве Финансов":"Минфина","Налоговый кодекс":"НК","Налоговому кодексу":"НК","Налоговым кодексом":"НК","Налоговом кодексе":"НК","Налогового кодекса":"НК","Трудовой кодекс":"ТК","Трудовым кодексом":"ТК","Трудового кодекса":"ТК","Трудовому кодексу":"ТК","Трудовом кодексе":"ТК","Гражданский кодекс":"ГК","Гражданским кодексом":"ГК","Гражданского кодекса":"ГК","Гражданскому кодексу":"ГК","Гражданском кодексе":"ГК","Российская Федерация":"РФ","Российской Федерацией":"РФ","Российской Федерации":"РФ","Российскую Федерацию":"РФ","Федеральная налоговая служба":"ФНС","Федеральной налоговой службы":"ФНС","Федеральной налоговой службе":"ФНС","Федеральную налоговую службу":"ФНС","Федеральной налоговой службой":"ФНС",N:"№",Статьей:"ст.",Статьёй:"ст.",статьей:"ст.",статьёй:"ст.",Статья:"ст.",Статьи:"ст.",Статье:"ст.",Статью:"ст.",статья:"ст.",статьи:"ст.",статье:"ст.",статью:"ст.",Подпунктом:"пп.",подпунктом:"пп.",Подпункта:"пп.",подпункта:"пп.",Подпункту:"пп.",подпункту:"пп.",Подпункте:"пп.",подпункте:"пп.",Подпункт:"пп.",подпункт:"пп.",Пунктом:"п.",пунктом:"п.",Пункта:"п.",пункта:"п.",Пункту:"п.",пункту:"п.",Пункте:"п.",пункте:"п.",Пункт:"п.",пункт:"п.",Приказа:"Приказ",Приказом:"Приказ",Приказу:"Приказ",Приказе:"Приказ",приказа:"Приказ",приказом:"Приказ",приказу:"Приказ",приказе:"Приказ",приказ:"Приказ",Письмом:"Письмо",Письму:"Письмо",Письма:"Письмо",Письме:"Письмо",письмом:"Письмо",письмо:"Письмо",письму:"Письмо",письма:"Письмо",письме:"Письмо",Постановлением:"Постановление",Постановления:"Постановление",Постановлению:"Постановление",Постановлении:"Постановление",постановлением:"Постановление",постановление:"Постановление",постановления:"Постановление",постановлению:"Постановление",постановлении:"Постановление",абзацем:"абз.",абзацу:"абз.",абзацами:"абз.",абзацы:"абз.",Положения:"Положение",Положению:"Положение"}}createRefCollections(){return{"НК РФ":{},"ГК РФ":{},"ТК РФ":{},"Федеральные законы":{},"Письма Минфина":{},"Приказы Минфина":{},"Письма ФНС":{},"Приказы ФНС":{},"Постановления Правительства":{}}}createPatterns(){return{"НК РФ":{pattern:/(?:[Пп]п\.\s*(?:\d+(?:\.\d+)*)\s*)?(?:[Пп]\.\s*(?:\d+(?:\.\д+)*)\s*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) НК\s*РФ/g,postProcess:this.postReplace},"ГК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ГК\s*РФ/g,postProcess:this.postReplace},"ТК РФ":{pattern:/(?:[Пп]п\.\с*(?:\д+(?:\.\д+)*)\с*)?(?:[Пп]\.\с*(?:\д+(?:\.\д+)*)\с*)?[Сс]т\.\с*(?:\д+(?:\.\д+)*) ТК\s*РФ/g,postProcess:this.postReplace},"Федеральные законы":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+-ФЗ/g,postProcess:this.postProcessLaw},"Письма Минфина":{pattern:/от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д{2}-\д{2}-\д{2}\/\д+/g,postProcess:this.postProcessMinfinLetter},"Приказы Минфина":{pattern:/Приказ Минфина (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [а-я0-9]+/g,postProcess:e=>e},"Письма ФНС":{pattern:/Письмо ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:e=>e},"Приказы ФНС":{pattern:/Приказ ФНС (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № [А-Яа-яA-Za-z0-9-]+\/\д+/g,postProcess:this.postProcessFNSOrder},"Постановления Правительства":{pattern:/Постановление Правительства (?:РФ|России) от (?:\д{2}\.\д{2}\.\д{4}|\д{1,2} \в+ \д{4} г\.) № \д+/g,postProcess:e=>e},ВНД:{pattern:/п\.\d+\s*(?=.*\(ВНД\))/g,postProcess:this.postReplace}}}postProcessFNSOrder(e){const s=e.split(" ");return s[0]="Приказ",s[1]="ФНС",s[2]="РФ",s.join(" ")}postProcessLaw(e){return`Федеральный закон ${e}`}postProcessMinfinLetter(e){return`Письмо Минфина ${e}`}preprocessData(){Object.entries(this.data).forEach(([e,s])=>{this.dataPreProcessed[e]=this.replaceWithAbbreviations(s.expert_answer)})}replaceWithAbbreviations(e){return Object.entries(this.abbreviationDict).forEach(([s,t])=>{const n=new RegExp(s.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"),"g");e=e.replace(n,t)}),e}postReplace(e){return e=e.replaceAll("НК РФ","НКРФ"),e=e.replaceAll("ТК РФ","ТКРФ"),e=e.replaceAll("ГК РФ","ГКРФ"),e=e.replaceAll("п. ","п."),e=e.replaceAll("пп. ","пп."),e=e.replaceAll("ст. ","ст."),e=e.replaceAll("абз. ","абз."),e}addKeyToDict(e,s,t){e[s]?e[s]=[...e[s],...t]:e[s]=t}processMatches(e,s,t,n,o){const r=o.match(e);if(r&&r.length>0){const a=r.map(t),l=[...new Set(a)];this.addKeyToDict(s,n,l)}}processAllMatches(){Object.entries(this.dataPreProcessed).forEach(([e,s])=>{Object.entries(this.patterns).forEach(([t,{pattern:n,postProcess:o}])=>{this.processMatches(n,this.refCollections[t],o,e,s)})})}printResults(){}mergeAllRefs(){Object.values(this.refCollections).forEach(e=>{Object.entries(e).forEach(([s,t])=>{this.allRefs[s]?this.allRefs[s]=[...this.allRefs[s],...t]:this.allRefs[s]=t})})}getProcessedData(){const e={};return Object.entries(this.data).forEach(([s,t])=>{e[s]={title:t.title,question:t.question,expert_answer:t.expert_answer,refs:this.allRefs[s]?this.allRefs[s]:[]}}),e}}const g=async(c,e)=>{const s=h(c),t=await fetch("/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s),signal:e.signal});if(!t.ok)throw new Error(`Failed to fetch search results: ${t.statusText}`);const n=await t.json();let o=null;return n.results!=null?(o=n.results,o=i.identifyDocumentType(o),o.map(r=>r.teaser=r.text_for_llm||r.teaser)):o=[],{searchResults:o,relevantConsultations:n.consultations||[],explanations:n.explanations,transactionMaps:n.transactionMapResults,modifiedQuery:n?.query,metrics:n?.metrics}},T=async(c,e)=>{let s=c;const t=new u;s=t.replaceWithAbbreviations(s),s=t.postReplace(s);function n(r){return r=r.replace(/пп\.(\d+(\.\d+)?)/,"п.$1"),r.replace(/([Пп]\.?\s?\d+(\.\d+)?)\s[Пп]\.\d+/g,"$1")}let o=e.filter(r=>{const a=n(r.title);return s.indexOf(a)>-1});return{modifiedText:s,searchResults:o}},D={doRequest:g,extractUsedSearchResults:T};export{d as D,D as S,h as a,i as b,P as c,y as g};
build/client/_app/immutable/chunks/each.C7pZUaX1.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{t as q,a as z}from"./index.7IiDzEZn.js";import{r as B}from"./scheduler.5WtVptCO.js";function F(n){return n?.length!==void 0?n:Array.from(n)}function G(n,a){n.d(1),a.delete(n.key)}function C(n,a){q(n,1,1,()=>{a.delete(n.key)})}function H(n,a){n.f(),C(n,a)}function I(n,a,M,v,x,y,f,S,m,A,_,j){let i=n.length,d=y.length,o=i;const h={};for(;o--;)h[n[o].key]=o;const c=[],r=new Map,u=new Map,g=[];for(o=d;o--;){const e=j(x,y,o),t=M(e);let s=f.get(t);s?v&&g.push(()=>s.p(e,a)):(s=A(t,e),s.c()),r.set(t,c[o]=s),t in h&&u.set(t,Math.abs(o-h[t]))}const p=new Set,k=new Set;function w(e){z(e,1),e.m(S,_),f.set(e.key,e),_=e.first,d--}for(;i&&d;){const e=c[d-1],t=n[i-1],s=e.key,l=t.key;e===t?(_=e.first,i--,d--):r.has(l)?!f.has(s)||p.has(s)?w(e):k.has(l)?i--:u.get(s)>u.get(l)?(k.add(s),w(e)):(p.add(l),i--):(m(t,f),i--)}for(;i--;){const e=n[i];r.has(e.key)||m(e,f)}for(;d;)w(c[d-1]);return B(g),c}export{G as d,F as e,H as f,C as o,I as u};
build/client/_app/immutable/chunks/entry.dO1U_WKI.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{K as tt}from"./scheduler.5WtVptCO.js";import{w as de}from"./index.G3yBo0_P.js";new URL("sveltekit-internal://");function nt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function at(e){return e.split("%25").map(decodeURI).join("%25")}function rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function se({href:e}){return e.split("#")[0]}const ot=["href","pathname","search","toString","toJSON"];function st(e,t,n){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),r[o](s));t();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ot)Object.defineProperty(a,r,{get(){return t(),e[r]},enumerable:!0,configurable:!0});return a}const it="/__data.json",ct=".html__data.json";function lt(e){return e.endsWith(".html")?e.replace(/\.html$/,ct):e.replace(/\/$/,"")+it}function ft(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ue=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&$.delete(he(e)),Ue(e,t));const $=new Map;function ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n.buffer}function dt(e,t){const n=he(e,t),a=document.querySelector(n);if(a?.textContent){let{body:r,...o}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&$.set(n,{body:r,init:o,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=ut(r)),Promise.resolve(new Response(r,o))}return window.fetch(e,t)}function ht(e,t,n){if($.size>0){const a=he(e,n),r=$.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);$.delete(a)}}return window.fetch(t,n)}function he(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${ft(...r)}"]`}return a}const pt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function gt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${mt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return ie(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=pt.exec(c),[,g,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!g,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":g?"([^/]*)?":"([^/]+?)"}return ie(c)}).join("")}).join("")}/?$`),params:t}}function _t(e){return!/^\([^)]+\)$/.test(e)}function mt(e){return e.slice(1).split("/").filter(_t)}function yt(e,t,n){const a={},r=e.slice(1),o=r.filter(s=>s!==void 0);let i=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-i];if(c.chained&&c.rest&&i&&(l=r.slice(s-i,s+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=t[s+1],g=r[s+1];d&&!d.rest&&d.optional&&g&&c.chained&&(i=0),!d&&!g&&Object.keys(a).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function wt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:g,params:u}=gt(s),f={id:s,exec:h=>{const p=g.exec(h);if(p)return yt(p,u,a)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[r.has(s),e[s]]}}function xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const S=globalThis.__sveltekit_q3nw9i?.base??"",vt=globalThis.__sveltekit_q3nw9i?.assets??S,bt="1737383820461",Ne="sveltekit:snapshot",Oe="sveltekit:scroll",je="sveltekit:states",Et="sveltekit:pageurl",x="sveltekit:history",V="sveltekit:navigation",B={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},M=location.origin;function De(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function pe(){return{x:pageXOffset,y:pageYOffset}}function U(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Se={...B,"":B.hover};function $e(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=$e(e)}}function le(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!a||ee(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===M&&e.hasAttribute("download");return{url:n,external:r,target:a,download:o}}function Y(e){let t=null,n=null,a=null,r=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=U(s,"preload-code")),r===null&&(r=U(s,"preload-data")),t===null&&(t=U(s,"keepfocus")),n===null&&(n=U(s,"noscroll")),o===null&&(o=U(s,"reload")),i===null&&(i=U(s,"replacestate")),s=$e(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Se[a??"off"],preload_data:Se[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Re(e){const t=de(e);let n=!0;function a(){n=!0,t.update(i=>i)}function r(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:a,set:r,subscribe:o}}function kt(){const{set:e,subscribe:t}=de(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==bt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:a}}function ee(e,t){return e.origin!==M||!e.pathname.startsWith(t)}const At=-1,St=-2,Rt=-3,It=-4,Lt=-5,Pt=-6;function Tt(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,a=Array(n.length);function r(o,i=!1){if(o===At)return;if(o===Rt)return NaN;if(o===It)return 1/0;if(o===Lt)return-1/0;if(o===Pt)return-0;if(i)throw new Error("Invalid input");if(o in a)return a[o];const s=n[o];if(!s||typeof s!="object")a[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return a[o]=l(r(s[1]));switch(c){case"Date":a[o]=new Date(s[1]);break;case"Set":const d=new Set;a[o]=d;for(let f=1;f<s.length;f+=1)d.add(r(s[f]));break;case"Map":const g=new Map;a[o]=g;for(let f=1;f<s.length;f+=2)g.set(r(s[f]),r(s[f+1]));break;case"RegExp":a[o]=new RegExp(s[1],s[2]);break;case"Object":a[o]=Object(s[1]);break;case"BigInt":a[o]=BigInt(s[1]);break;case"null":const u=Object.create(null);a[o]=u;for(let f=1;f<s.length;f+=2)u[s[f]]=r(s[f+1]);break;default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(s.length);a[o]=c;for(let l=0;l<s.length;l+=1){const d=s[l];d!==St&&(c[l]=r(d))}}else{const c={};a[o]=c;for(const l in s){const d=s[l];c[l]=r(d)}}return a[o]}return r(0)}const Ve=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Ve];const Ut=new Set([...Ve]);[...Ut];function xt(e){return e.filter(t=>t!=null)}class te{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(t,n){this.status=t,this.location=n}}class ge extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}const Nt="x-sveltekit-invalidated",Ot="x-sveltekit-trailing-slash";function J(e){return e instanceof te||e instanceof ge?e.status:500}function jt(e){return e instanceof ge?e.text:"Internal Error"}const T=xe(Oe)??{},F=xe(Ne)??{},Dt=history.pushState,_e=history.replaceState,L={url:Re({}),page:Re({}),navigating:de(null),updated:kt()};function me(e){T[e]=pe()}function $t(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function O(e){return location.href=e.href,new Promise(()=>{})}function Ie(){}let ne,fe,W,I,ue,j;const qe=[],z=[];let N=null;const Ge=[],Ct=[];let C=[],y={branch:[],error:null,url:null},ye=!1,X=!1,Le=!0,q=!1,D=!1,Me=!1,we=!1,ve,w,k,A,Z;async function Wt(e,t,n){document.URL!==location.href&&(location.href=location.href),j=e,ne=wt(e),I=document.documentElement,ue=t,fe=e.nodes[0],W=e.nodes[1],fe(),W(),w=history.state?.[x],k=history.state?.[V],w||(w=k=Date.now(),_e.call(history,{...history.state,[x]:w,[V]:k},""));const a=T[w];a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y)),n?await Kt(ue,n):Mt(location.href,{replaceState:!0}),Ht()}function He(e){z.some(t=>t?.snapshot)&&(F[e]=z.map(t=>t?.snapshot?.capture()))}function Ke(e){F[e]?.forEach((t,n)=>{z[n]?.snapshot?.restore(t)})}function Pe(){me(w),Ae(Oe,T),He(k),Ae(Ne,F)}async function Be(e,t,n,a){return K({type:"goto",url:De(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(we=!0)}})}async function Vt(e){return N={id:e.id,promise:Je(e).then(t=>(t.type==="loaded"&&t.state.error&&(N=null),t))},N.promise}async function ce(e){const t=ne.find(n=>n.exec(We(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ye(e,t){y=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),A=e.props.page,ve=new j.root({target:t,props:{...e.props,stores:L,components:z},hydrate:!0}),Ke(k);const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};C.forEach(r=>r(a)),X=!0}async function Q({url:e,params:t,branch:n,status:a,error:r,route:o,form:i}){let s="never";if(S&&(e.pathname===S||e.pathname===S+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=nt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:o},props:{constructors:xt(n).map(f=>f.node.component),page:A}};i!==void 0&&(c.props.form=i);let l={},d=!A,g=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const h=n[f],p=y.branch[f];h?.data!==p?.data&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${g}`]=l),g+=1)}return(!y.url||e.href!==y.url.href||y.error!==r||i!==void 0&&i!==A.form||d)&&(c.props.page={error:r,params:t,route:{id:o?.id??null},state:{},status:a,url:new URL(e),form:i??null,data:d?l:A.data}),c}async function be({loader:e,parent:t,url:n,params:a,route:r,server_data_node:o}){let i=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);c.dependencies.add(h)}};const g={route:new Proxy(r,{get:(u,f)=>(s&&(c.route=!0),u[f])}),params:new Proxy(a,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:st(n,()=>{s&&(c.url=!0)},u=>{s&&c.search_params.add(u)}),async fetch(u,f){let h;u instanceof Request?(h=u.url,f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f}):h=u;const p=new URL(h,n);return s&&d(p.href),p.origin===n.origin&&(h=p.href.slice(n.origin.length)),X?ht(h,p.href,f):dt(h,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,g)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Te(e,t,n,a,r,o){if(we)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(o[i]!==y.params[i])return!0;for(const i of r.dependencies)if(qe.some(s=>s(new URL(i))))return!0;return!1}function Ee(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),o=t.searchParams.getAll(a);r.every(i=>o.includes(i))&&o.every(i=>r.includes(i))&&n.delete(a)}return n}async function Je({id:e,invalidating:t,url:n,params:a,route:r}){if(N?.id===e)return N.promise;const{errors:o,layouts:i,leaf:s}=r,c=[...i,s];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));let l=null;const d=y.url?e!==y.url.pathname+y.url.search:!1,g=y.route?r.id!==y.route.id:!1,u=Ft(y.url,n);let f=!1;const h=c.map((_,m)=>{const v=y.branch[m],b=!!_?.[0]&&(v?.loader!==_[1]||Te(f,g,d,u,v.server?.uses,a));return b&&(f=!0),b});if(h.some(Boolean)){try{l=await Ze(n,h)}catch(_){return ae({status:J(_),error:await G(_,{url:n,params:a,route:{id:r.id}}),url:n,route:r})}if(l.type==="redirect")return l}const p=l?.nodes;let R=!1;const E=c.map(async(_,m)=>{if(!_)return;const v=y.branch[m],b=p?.[m];if((!b||b.type==="skip")&&_[1]===v?.loader&&!Te(R,g,d,u,v.universal?.uses,a))return v;if(R=!0,b?.type==="error")throw b;return be({loader:_[1],url:n,params:a,route:r,parent:async()=>{const re={};for(let oe=0;oe<m;oe+=1)Object.assign(re,(await E[oe])?.data);return re},server_data_node:Ee(b===void 0&&_[0]?{type:"skip"}:b??null,_[0]?v?.server:void 0)})});for(const _ of E)_.catch(()=>{});const P=[];for(let _=0;_<c.length;_+=1)if(c[_])try{P.push(await E[_])}catch(m){if(m instanceof Fe)return{type:"redirect",location:m.location};let v=J(m),b;if(p?.includes(m))v=m.status??v,b=m.error;else if(m instanceof te)b=m.body;else{if(await L.updated.check())return await O(n);b=await G(m,{params:a,url:n,route:{id:r.id}})}const H=await qt(_,P,o);return H?await Q({url:n,params:a,branch:P.slice(0,H.idx).concat(H.node),status:v,error:b,route:r}):await Xe(n,{id:r.id},b,v)}else P.push(void 0);return await Q({url:n,params:a,branch:P,status:200,error:null,route:r,form:t?void 0:null})}async function qt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ae({status:e,error:t,url:n,route:a}){const r={};let o=null;if(j.server_loads[0]===0)try{const l=await Ze(n,[!0]);if(l.type!=="data"||l.nodes[0]&&l.nodes[0].type!=="data")throw 0;o=l.nodes[0]??null}catch{(n.origin!==M||n.pathname!==location.pathname||ye)&&await O(n)}const s=await be({loader:fe,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ee(o)}),c={node:await W(),loader:W,universal:null,server:null,data:null};return await Q({url:n,params:r,branch:[s,c],status:e,error:t,route:null})}function ke(e,t){if(!e||ee(e,S))return;let n;try{n=j.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const a=We(n);for(const r of ne){const o=r.exec(a);if(o)return{id:e.pathname+e.search,invalidating:t,route:r,params:rt(o),url:e}}}function We(e){return at(e.slice(S.length)||"/")}function ze({url:e,type:t,intent:n,delta:a}){let r=!1;const o=et(y,n,e,t);a!==void 0&&(o.navigation.delta=a);const i={...o.navigation,cancel:()=>{r=!0,o.reject(new Error("navigation cancelled"))}};return q||Ge.forEach(s=>s(i)),r?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Ie,block:d=Ie}){const g=ke(t,!1),u=ze({url:t,type:e,delta:n?.delta,intent:g});if(!u){d();return}const f=w,h=k;l(),q=!0,X&&L.navigating.set(u.navigation),Z=c;let p=g&&await Je(g);if(!p){if(ee(t,S))return await O(t);p=await Xe(t,{id:null},await G(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=g?.url||t,Z!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(s>=20)p=await ae({status:500,error:await G(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Be(new URL(p.location,t).href,{},s+1,c),!1;else p.props.page.status>=400&&await L.updated.check()&&await O(t);if(qe.length=0,we=!1,me(f),He(h),p.props.page.url.pathname!==t.pathname&&(t.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const _=o?0:1,m={[x]:w+=_,[V]:k+=_,[je]:i};(o?_e:Dt).call(history,m,"",t),o||$t(w,k)}if(N=null,p.props.page.state=i,X){y=p.state,p.props.page&&(p.props.page.url=t);const _=(await Promise.all(Ct.map(m=>m(u.navigation)))).filter(m=>typeof m=="function");if(_.length>0){let m=function(){C=C.filter(v=>!_.includes(v))};_.push(m),callbacks.after_navigate.push(..._)}ve.$set(p.props),Me=!0}else Ye(p,ue);const{activeElement:R}=document;await tt();const E=n?n.scroll:r?pe():null;if(Le){const _=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):_?_.scrollIntoView():scrollTo(0,0)}const P=document.activeElement!==R&&document.activeElement!==document.body;!a&&!P&&Bt(),Le=!0,p.props.page&&(A=p.props.page),q=!1,e==="popstate"&&Ke(k),u.fulfil(void 0),C.forEach(_=>_(u.navigation)),L.navigating.set(null)}async function Xe(e,t,n,a){return e.origin===M&&e.pathname===location.pathname&&!ye?await ae({status:a,error:n,url:e,route:t}):await O(e)}function Gt(){let e;I.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{a(i,2)},20)});function t(o){a(o.composedPath()[0],1)}I.addEventListener("mousedown",t),I.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ce(i.target.href),n.unobserve(i.target))},{threshold:0});function a(o,i){const s=Ce(o,I);if(!s)return;const{url:c,external:l,download:d}=le(s,S);if(l||d)return;const g=Y(s);if(!g.reload)if(i<=g.preload_data){const u=ke(c,!1);u&&Vt(u)}else i<=g.preload_code&&ce(c.pathname)}function r(){n.disconnect();for(const o of I.querySelectorAll("a")){const{url:i,external:s,download:c}=le(o,S);if(s||c)continue;const l=Y(o);l.reload||(l.preload_code===B.viewport&&n.observe(o),l.preload_code===B.eager&&ce(i.pathname))}}C.push(r),r()}function G(e,t){if(e instanceof te)return e.body;const n=J(e),a=jt(e);return j.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function Mt(e,t={}){return e=De(e),e.origin!==M?Promise.reject(new Error("goto: invalid URL")):Be(e,t,0)}function Ht(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Pe(),!q){const a=et(y,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};Ge.forEach(o=>o(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Pe()}),navigator.connection?.saveData||Gt(),I.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Ce(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:o,download:i}=le(n,S);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=Y(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;if(r||s.reload){ze({url:a,type:"link"})?q=!0:t.preventDefault();return}const[l,d]=a.href.split("#");if(d!==void 0&&l===se(location)){const[,g]=y.url.href.split("#");if(g===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(D=!0,me(w),e(a),!s.replace_state)return;D=!1}t.preventDefault(),K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ee(o,S))return;const i=t.target,s=Y(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=a?.getAttribute("name");l&&c.append(l,a?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),K({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[x]){const n=t.state[x];if(Z={},n===w)return;const a=T[n],r=t.state[je]??{},o=new URL(t.state[Et]??location.href),i=t.state[V],s=se(location)===se(y.url);if(i===k&&(Me||s)){e(o),T[w]=pe(),a&&scrollTo(a.x,a.y),r!==A.state&&(A={...A,state:r},ve.$set({page:A})),w=n;return}const l=n-w;await K({type:"popstate",url:o,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,k=i},block:()=>{history.go(-l)},nav_token:Z})}else if(!D){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{D&&(D=!1,_e.call(history,{...history.state,[x]:++w,[V]:k},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&L.navigating.set(null)});function e(t){y.url=t,L.page.set({...A,url:t}),L.page.notify()}}async function Kt(e,{status:t=200,error:n,node_ids:a,params:r,route:o,data:i,form:s}){ye=!0;const c=new URL(location.href);({params:r={},route:o={id:null}}=ke(c,!1)||{});let l;try{const d=a.map(async(f,h)=>{const p=i[h];return p?.uses&&(p.uses=Qe(p.uses)),be({loader:j.nodes[f],url:c,params:r,route:o,parent:async()=>{const R={};for(let E=0;E<h;E+=1)Object.assign(R,(await d[E]).data);return R},server_data_node:Ee(p)})}),g=await Promise.all(d),u=ne.find(({id:f})=>f===o.id);if(u){const f=u.layouts;for(let h=0;h<f.length;h++)f[h]||g.splice(h,0,void 0)}l=await Q({url:c,params:r,branch:g,status:t,error:n,form:s,route:u??null})}catch(d){if(d instanceof Fe){await O(new URL(d.location,location.href));return}l=await ae({status:J(d),error:await G(d,{url:c,params:r,route:o}),url:c,route:o})}l.props.page&&(l.props.page.state={}),Ye(l,e)}async function Ze(e,t){const n=new URL(e);n.pathname=lt(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Ot,"1"),n.searchParams.append(Nt,t.map(r=>r?"1":"0").join(""));const a=await Ue(n.href);if(!a.ok){let r;throw a.headers.get("content-type")?.includes("application/json")?r=await a.json():a.status===404?r="Not Found":a.status===500&&(r="Internal Error"),new te(a.status,r)}return new Promise(async r=>{const o=new Map,i=a.body.getReader(),s=new TextDecoder;function c(d){return Tt(d,{Promise:g=>new Promise((u,f)=>{o.set(g,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:g}=await i.read();if(d&&!l)break;for(l+=!g&&l?`
2
+ `:s.decode(g,{stream:!0});;){const u=l.indexOf(`
3
+ `);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return r(f);if(f.type==="data")f.nodes?.forEach(h=>{h?.type==="data"&&(h.uses=Qe(h.uses),h.data=c(h.data))}),r(f);else if(f.type==="chunk"){const{id:h,data:p,error:R}=f,E=o.get(h);o.delete(h),R?E.reject(c(R)):E.fulfil(c(p))}}}})}function Qe(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Bt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let o=0;o<a.rangeCount;o+=1)r.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===r.length){for(let o=0;o<a.rangeCount;o+=1){const i=r[o],s=a.getRangeAt(o);if(i.commonAncestorContainer!==s.commonAncestorContainer||i.startContainer!==s.startContainer||i.endContainer!==s.endContainer||i.startOffset!==s.startOffset||i.endOffset!==s.endOffset)return}a.removeAllRanges()}})}}}function et(e,t,n,a){let r,o;const i=new Promise((c,l)=>{r=c,o=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:i},fulfil:r,reject:o}}export{Wt as a,L as s};
build/client/_app/immutable/chunks/exceljs.min.ptB2ikW7.js ADDED
The diff for this file is too large to render. See raw diff
 
build/client/_app/immutable/chunks/index.7IiDzEZn.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import{n as w,U as q,i as W,V as G,r as E,W as j,X as O,Y as H,D,Z as F,f as J,_ as K,$ as Q,a0 as T,a1 as tt,a2 as L,a3 as et,a4 as nt,a5 as it,a6 as st,a7 as rt}from"./scheduler.5WtVptCO.js";const X=typeof window<"u";let I=X?()=>window.performance.now():()=>Date.now(),N=X?t=>requestAnimationFrame(t):w;const k=new Set;function Y(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&N(Y)}function U(t){let e;return k.size===0&&N(Y),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const P=new Map;let R=0;function at(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function ot(t,e){const n={stylesheet:G(e),rules:{}};return P.set(t,n),n}function z(t,e,n,s,u,a,l,i=0){const c=16.666/s;let r=`{
2
+ `;for(let $=0;$<=1;$+=c){const m=e+(n-e)*a($);r+=$*100+`%{${l(m,1-m)}}
3
+ `}const d=r+`100% {${l(n,1-n)}}
4
+ }`,f=`__svelte_${at(d)}_${i}`,g=q(t),{stylesheet:h,rules:o}=P.get(g)||ot(g,t);o[f]||(o[f]=!0,h.insertRule(`@keyframes ${f} ${d}`,h.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${s}ms linear ${u}ms 1 both`,R+=1,f}function A(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),u=n.length-s.length;u&&(t.style.animation=s.join(", "),R-=u,R||ft())}function ft(){N(()=>{R||(P.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&W(e)}),P.clear())})}let S;function V(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function v(t,e,n){t.dispatchEvent(H(`${e?"intro":"outro"}${n}`))}const M=new Set;let p;function ht(){p={r:0,c:[],p}}function gt(){p.r||E(p.c),p=p.p}function ut(t,e){t&&t.i&&(M.delete(t),t.i(e))}function mt(t,e,n,s){if(t&&t.o){if(M.has(t))return;M.add(t),p.c.push(()=>{M.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const B={duration:0};function pt(t,e,n){const s={direction:"in"};let u=e(t,n,s),a=!1,l,i,c=0;function r(){l&&A(t,l)}function d(){const{delay:g=0,duration:h=300,easing:o=D,tick:_=w,css:$}=u||B;$&&(l=z(t,0,1,h,g,o,$,c++)),_(0,1);const m=I()+g,y=m+h;i&&i.abort(),a=!0,O(()=>v(t,!0,"start")),i=U(x=>{if(a){if(x>=y)return _(1,0),v(t,!0,"end"),r(),a=!1;if(x>=m){const b=o((x-m)/h);_(b,1-b)}}return a})}let f=!1;return{start(){f||(f=!0,A(t),j(u)?(u=u(s),V().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function yt(t,e,n){const s={direction:"out"};let u=e(t,n,s),a=!0,l;const i=p;i.r+=1;let c;function r(){const{delay:d=0,duration:f=300,easing:g=D,tick:h=w,css:o}=u||B;o&&(l=z(t,1,0,f,d,g,o));const _=I()+d,$=_+f;O(()=>v(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),U(m=>{if(a){if(m>=$)return h(0,1),v(t,!1,"end"),--i.r||E(i.c),!1;if(m>=_){const y=g((m-_)/f);h(1-y,y)}}return a})}return j(u)?V().then(()=>{u=u(s),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=c),d&&u.tick&&u.tick(1,0),a&&(l&&A(t,l),a=!1)}}}function xt(t,e,n,s){let a=e(t,n,{direction:"both"}),l=s?0:1,i=null,c=null,r=null,d;function f(){r&&A(t,r)}function g(o,_){const $=o.b-l;return _*=Math.abs($),{a:l,b:o.b,d:$,duration:_,start:o.start,end:o.start+_,group:o.group}}function h(o){const{delay:_=0,duration:$=300,easing:m=D,tick:y=w,css:x}=a||B,b={start:I()+_,b:o};o||(b.group=p,p.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),i||c?c=b:(x&&(f(),r=z(t,l,o,$,_,m,x)),o&&y(0,1),i=g(b,$),O(()=>v(t,o,"start")),U(C=>{if(c&&C>c.start&&(i=g(c,$),c=null,v(t,i.b,"start"),x&&(f(),r=z(t,l,i.b,i.duration,0,m,a.css))),i){if(C>=i.end)y(l=i.b,1-l),v(t,i.b,"end"),c||(i.b?f():--i.group.r||E(i.group.c)),i=null;else if(C>=i.start){const Z=C-i.start;l=i.a+i.d*m(Z/i.duration),y(l,1-l)}}return!!(i||c)}))}return{run(o){j(a)?V().then(()=>{a=a({direction:o?"in":"out"}),h(o)}):h(o)},end(){f(),i=c=null}}}function vt(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function wt(t){t&&t.c()}function bt(t,e){t&&t.l(e)}function lt(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),O(()=>{const a=t.$$.on_mount.map(et).filter(j);t.$$.on_destroy?t.$$.on_destroy.push(...a):E(a),t.$$.on_mount=[]}),u.forEach(O)}function ct(t,e){const n=t.$$;n.fragment!==null&&(T(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function dt(t,e){t.$$.dirty[0]===-1&&(nt.push(t),it(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function kt(t,e,n,s,u,a,l=null,i=[-1]){const c=tt;L(t);const r=t.$$={fragment:null,ctx:[],props:a,update:w,not_equal:u,bound:F(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:F(),dirty:i,skip_bound:!1,root:e.target||c.$$.root};l&&l(r.root);let d=!1;if(r.ctx=n?n(t,e.props||{},(f,g,...h)=>{const o=h.length?h[0]:g;return r.ctx&&u(r.ctx[f],r.ctx[f]=o)&&(!r.skip_bound&&r.bound[f]&&r.bound[f](o),d&&dt(t,f)),g}):[],r.update(),d=!0,E(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){st();const f=J(e.target);r.fragment&&r.fragment.l(f),f.forEach(W)}else r.fragment&&r.fragment.c();e.intro&&ut(t.$$.fragment),lt(t,e.target,e.anchor),rt(),K()}L(c)}class Et{$$=void 0;$$set=void 0;$destroy(){ct(this,1),this.$destroy=w}$on(e,n){if(!j(n))return w;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!Q(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _t="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);export{Et as S,ut as a,vt as b,wt as c,bt as d,ct as e,gt as f,ht as g,pt as h,kt as i,yt as j,z as k,U as l,lt as m,I as n,A as o,xt as p,mt as t};
build/client/_app/immutable/chunks/index.G3yBo0_P.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{n as c,b as l}from"./scheduler.5WtVptCO.js";const n=[];function h(e,o){return{subscribe:p(e,o).subscribe}}function p(e,o=c){let r;const i=new Set;function u(t){if(l(e,t)&&(e=t,r)){const b=!n.length;for(const s of i)s[1](),n.push(s,e);if(b){for(let s=0;s<n.length;s+=2)n[s][0](n[s+1]);n.length=0}}}function f(t){u(t(e))}function a(t,b=c){const s=[t,b];return i.add(s),i.size===1&&(r=o(u,f)||c),t(e),()=>{i.delete(s),i.size===0&&r&&(r(),r=null)}}return{set:u,update:f,subscribe:a}}export{h as r,p as w};
build/client/_app/immutable/chunks/popup.dE7t2hhe.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{w as I}from"./index.G3yBo0_P.js";import{a as M}from"./scheduler.5WtVptCO.js";const T=I(void 0);function z(n,e){const{computePosition:E,autoUpdate:P,offset:h,shift:y,flip:b,arrow:L,size:$,autoPlacement:k,hide:x,inline:A}=M(T),r={open:!1,autoUpdateCleanup:()=>{}},d=':is(a[href], button, input, textarea, select, details, [tabindex]):not([tabindex="-1"])';let s;const a="https://www.skeleton.dev/utilities/popups";let t,p;function U(){t=document.querySelector(`[data-popup="${e.target}"]`)??document.createElement("div"),p=t.querySelector(".arrow")??document.createElement("div")}U();function c(){if(!t)throw new Error(`The data-popup="${e.target}" element was not found. ${a}`);if(!E)throw new Error(`Floating UI 'computePosition' not found for data-popup="${e.target}". ${a}`);if(!h)throw new Error(`Floating UI 'offset' not found for data-popup="${e.target}". ${a}`);if(!y)throw new Error(`Floating UI 'shift' not found for data-popup="${e.target}". ${a}`);if(!b)throw new Error(`Floating UI 'flip' not found for data-popup="${e.target}". ${a}`);if(!L)throw new Error(`Floating UI 'arrow' not found for data-popup="${e.target}". ${a}`);const o=[];$&&o.push($(e.middleware?.size)),k&&o.push(k(e.middleware?.autoPlacement)),x&&o.push(x(e.middleware?.hide)),A&&o.push(A(e.middleware?.inline)),E(n,t,{placement:e.placement??"bottom",middleware:[h(e.middleware?.offset??8),y(e.middleware?.shift??{padding:8}),b(e.middleware?.flip),L(e.middleware?.arrow??{element:p||null}),...o]}).then(({x:i,y:m,placement:v,middlewareData:C})=>{if(Object.assign(t.style,{left:`${i}px`,top:`${m}px`}),p){const{x:F,y:D}=C.arrow,q={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]];Object.assign(p.style,{left:F!=null?`${F}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",[q]:"-4px"})}})}function l(){t&&(r.open=!0,e.state&&e.state({state:r.open}),c(),t.style.display="block",t.style.opacity="1",t.style.pointerEvents="auto",t.removeAttribute("inert"),r.autoUpdateCleanup=P(n,t,c),s=Array.from(t?.querySelectorAll(d)))}function u(o){if(!t)return;const i=parseFloat(window.getComputedStyle(t).transitionDuration.replace("s",""))*1e3;setTimeout(()=>{r.open=!1,e.state&&e.state({state:r.open}),t.style.opacity="0",t.setAttribute("inert",""),r.autoUpdateCleanup&&r.autoUpdateCleanup(),o&&o()},i)}function f(){r.open===!1?l():u()}function w(o){if(r.open===!1||n.contains(o.target))return;if(t&&t.contains(o.target)===!1){u();return}const i=e.closeQuery===void 0?"a[href], button":e.closeQuery;if(i==="")return;t?.querySelectorAll(i)?.forEach(v=>{v.contains(o.target)&&u()})}const S=o=>{if(r.open===!1)return;const i=o.key;if(i==="Escape"){o.preventDefault(),n.focus(),u();return}s=Array.from(t?.querySelectorAll(d)),r.open&&document.activeElement===n&&(i==="ArrowDown"||i==="Tab")&&d.length>0&&s.length>0&&(o.preventDefault(),s[0].focus())};switch(e.event){case"click":n.addEventListener("click",f,!0),window.addEventListener("click",w,!0);break;case"hover":n.addEventListener("mouseover",l,!0),n.addEventListener("mouseleave",()=>u(),!0);break;case"focus-blur":n.addEventListener("focus",f,!0),n.addEventListener("blur",()=>u(),!0);break;case"focus-click":n.addEventListener("focus",l,!0),window.addEventListener("click",w,!0);break;default:throw new Error(`Event value of '${e.event}' is not supported. ${a}`)}return window.addEventListener("keydown",S,!0),c(),{update(o){u(()=>{e=o,c(),U()})},destroy(){n.removeEventListener("click",f,!0),n.removeEventListener("mouseover",l,!0),n.removeEventListener("mouseleave",()=>u(),!0),n.removeEventListener("focus",f,!0),n.removeEventListener("focus",l,!0),n.removeEventListener("blur",()=>u(),!0),window.removeEventListener("click",w,!0),window.removeEventListener("keydown",S,!0)}}}export{z as p,T as s};
build/client/_app/immutable/chunks/scheduler.5WtVptCO.js ADDED
@@ -0,0 +1 @@
 
 
1
+ function D(){}const rt=t=>t;function B(t,e){for(const n in e)t[n]=e[n];return t}function R(t){return t()}function ct(){return Object.create(null)}function F(t){t.forEach(R)}function G(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let m;function ot(t,e){return t===e?!0:(m||(m=document.createElement("a")),m.href=e,t===m.href)}function at(t){return Object.keys(t).length===0}function H(t,...e){if(t==null){for(const i of e)i(void 0);return D}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function ut(t){let e;return H(t,n=>e=n)(),e}function ft(t,e,n){t.$$.on_destroy.push(H(e,n))}function _t(t,e,n,i){if(t){const s=L(t,e,n,i);return t[0](s)}}function L(t,e,n,i){return t[1]&&i?B(n.ctx.slice(),t[1](i(e))):n.ctx}function ht(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const l=[],r=Math.max(e.dirty.length,s.length);for(let o=0;o<r;o+=1)l[o]=e.dirty[o]|s[o];return l}return e.dirty|s}return e.dirty}function dt(t,e,n,i,s,l){if(s){const r=L(e,n,i,l);t.p(r,s)}}function mt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function pt(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function yt(t,e){const n={};e=new Set(e);for(const i in t)!e.has(i)&&i[0]!=="$"&&(n[i]=t[i]);return n}function gt(t){const e={};for(const n in t)e[n]=!0;return e}function bt(t,e,n){return t.set(n),e}function xt(t){return t&&G(t.destroy)?t.destroy:D}function Et(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}let y=!1;function wt(){y=!0}function vt(){y=!1}function z(t,e,n,i){for(;t<e;){const s=t+(e-t>>1);n(s)<=i?t=s+1:e=s}return t}function I(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let a=0;a<e.length;a++){const u=e[a];u.claim_order!==void 0&&c.push(u)}e=c}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let s=0;for(let c=0;c<e.length;c++){const a=e[c].claim_order,u=(s>0&&e[n[s]].claim_order<=a?s+1:z(1,s,q=>e[n[q]].claim_order,a))-1;i[c]=n[u]+1;const A=u+1;n[A]=c,s=Math.max(A,s)}const l=[],r=[];let o=e.length-1;for(let c=n[s]+1;c!=0;c=i[c-1]){for(l.push(e[c-1]);o>=c;o--)r.push(e[o]);o--}for(;o>=0;o--)r.push(e[o]);l.reverse(),r.sort((c,a)=>c.claim_order-a.claim_order);for(let c=0,a=0;c<r.length;c++){for(;a<l.length&&r[c].claim_order>=l[a].claim_order;)a++;const u=a<l.length?l[a]:null;t.insertBefore(r[c],u)}}function U(t,e){t.appendChild(e)}function W(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Tt(t){const e=T("style");return e.textContent="/* empty */",J(W(t),e),e.sheet}function J(t,e){return U(t.head||t,e),e.sheet}function K(t,e){if(y){for(I(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function Q(t,e,n){t.insertBefore(e,n||null)}function V(t,e,n){y&&!n?K(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function Nt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function T(t){return document.createElement(t)}function M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function N(t){return document.createTextNode(t)}function At(){return N(" ")}function kt(){return N("")}function Ct(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function X(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Y=["width","height"];function Dt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set&&Y.indexOf(i)===-1?t[i]=e[i]:X(t,i,e[i])}function Ht(t){return t.dataset.svelteH}function Lt(t){let e;return{p(...n){e=n,e.forEach(i=>t.push(i))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function Mt(t){return t===""?null:+t}function St(t){return Array.from(t.childNodes)}function S(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function j(t,e,n,i,s=!1){S(t);const l=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const c=n(o);return c===void 0?t.splice(r,1):t[r]=c,s||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const c=n(o);return c===void 0?t.splice(r,1):t[r]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function P(t,e,n,i){return j(t,s=>s.nodeName===e,s=>{const l=[];for(let r=0;r<s.attributes.length;r++){const o=s.attributes[r];n[o.name]||l.push(o.name)}l.forEach(r=>s.removeAttribute(r))},()=>i(e))}function jt(t,e,n){return P(t,e,n,T)}function Pt(t,e,n){return P(t,e,n,M)}function Z(t,e){return j(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>N(e),!0)}function Ot(t){return Z(t," ")}function k(t,e,n){for(let i=n;i<t.length;i+=1){const s=t[i];if(s.nodeType===8&&s.textContent.trim()===e)return i}return-1}function qt(t,e){const n=k(t,"HTML_TAG_START",0),i=k(t,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new g(e);S(t);const s=t.splice(n,i-n+1);E(s[0]),E(s[s.length-1]);const l=s.slice(1,s.length-1);if(l.length===0)return new g(e);for(const r of l)r.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new g(e,l)}function Bt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Rt(t,e){t.value=e??""}function Ft(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function Gt(t,e,n){t.classList.toggle(e,!!n)}function $(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function zt(t,e){const n=[];let i=0;for(const s of e.childNodes)if(s.nodeType===8){const l=s.textContent.trim();l===`HEAD_${t}_END`?(i-=1,n.push(s)):l===`HEAD_${t}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}class tt{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(e=!1){this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=M(n.nodeName):this.e=T(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)Q(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(E)}}class g extends tt{l=void 0;constructor(e=!1,n){super(e),this.e=this.n=null,this.l=n}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)V(this.t,this.n[n],e)}}function It(t,e){return new t(e)}let p;function b(t){p=t}function h(){if(!p)throw new Error("Function called outside component initialization");return p}function Ut(t){h().$$.on_mount.push(t)}function Wt(t){h().$$.after_update.push(t)}function Jt(t){h().$$.on_destroy.push(t)}function Kt(){const t=h();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const l=$(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,l)}),!l.defaultPrevented}return!0}}function Qt(t,e){return h().$$.context.set(t,e),e}function Vt(t){return h().$$.context.get(t)}function Xt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const d=[],C=[];let _=[];const w=[],O=Promise.resolve();let v=!1;function et(){v||(v=!0,O.then(it))}function Yt(){return et(),O}function nt(t){_.push(t)}function Zt(t){w.push(t)}const x=new Set;let f=0;function it(){if(f!==0)return;const t=p;do{try{for(;f<d.length;){const e=d[f];f++,b(e),st(e.$$)}}catch(e){throw d.length=0,f=0,e}for(b(null),d.length=0,f=0;C.length;)C.pop()();for(let e=0;e<_.length;e+=1){const n=_[e];x.has(n)||(x.add(n),n())}_.length=0}while(d.length);for(;w.length;)w.pop()();v=!1,x.clear(),b(t)}function st(t){if(t.fragment!==null){t.update(),F(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(nt)}}function $t(t){const e=[],n=[];_.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),_=e}export{at as $,Ut as A,Gt as B,qt as C,rt as D,Et as E,kt as F,Wt as G,g as H,Ft as I,It as J,Yt as K,_t as L,dt as M,mt as N,ht as O,B as P,pt as Q,gt as R,Xt as S,Lt as T,W as U,Tt as V,G as W,nt as X,$ as Y,ct as Z,it as _,ut as a,$t as a0,p as a1,b as a2,R as a3,d as a4,et as a5,wt as a6,vt as a7,Dt as a8,yt as a9,bt as aa,Mt as ab,Kt as ac,H as ad,Jt as ae,ot as af,zt as ag,M as ah,Pt as ai,lt as b,At as c,jt as d,T as e,St as f,Vt as g,Z as h,E as i,Ot as j,V as k,K as l,Bt as m,D as n,ft as o,C as p,Ht as q,F as r,Qt as s,N as t,X as u,Rt as v,Ct as w,Zt as x,Nt as y,xt as z};
build/client/_app/immutable/chunks/stores.Cb2RXlYi.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{w as d}from"./index.G3yBo0_P.js";import{s as f,g as m}from"./scheduler.5WtVptCO.js";const g={message:"Missing Toast Message",autohide:!0,timeout:5e3},a="toastStore";function I(){const n=m(a);if(!n)throw new Error("toastStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");return n}function k(){const n=T();return f(a,n)}function h(){const n=Math.random();return Number(n).toString(32)}function T(){const{subscribe:n,set:c,update:s}=d([]),r=e=>s(t=>{if(t.length>0){const o=t.findIndex(l=>l.id===e),i=t[o];i&&(i.callback&&i.callback({id:e,status:"closed"}),i.timeoutId&&clearTimeout(i.timeoutId),t.splice(o,1))}return t});function u(e){if(e.autohide===!0)return setTimeout(()=>{r(e.id)},e.timeout)}return{subscribe:n,close:r,trigger:e=>{const t=h();return s(o=>{e&&e.callback&&e.callback({id:t,status:"queued"}),e.hideDismiss&&(e.autohide=!0);const i={...g,...e,id:t};return i.timeoutId=u(i),o.push(i),o}),t},freeze:e=>s(t=>(t.length>0&&clearTimeout(t[e].timeoutId),t)),unfreeze:e=>s(t=>(t.length>0&&(t[e].timeoutId=u(t[e])),t)),clear:()=>c([])}}export{I as g,k as i};
build/client/_app/immutable/chunks/stores.XS_YoCyo.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{w as s}from"./index.G3yBo0_P.js";import{s as a,g as l}from"./scheduler.5WtVptCO.js";const n="modalStore";function f(){const t=l(n);if(!t)throw new Error("modalStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");return t}function g(){const t=u();return a(n,t)}function u(){const{subscribe:t,set:i,update:o}=s([]);return{subscribe:t,set:i,update:o,trigger:e=>o(r=>(r.push(e),r)),close:()=>o(e=>(e.length>0&&e.shift(),e)),clear:()=>i([])}}export{f as g,g as i};
build/client/_app/immutable/chunks/transitions.QBIMuVLc.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{D as b,E as g}from"./scheduler.5WtVptCO.js";function h(n){const a=n-1;return a*a*a+1}function v(n,{delay:a=0,duration:e=400,easing:s=b}={}){const i=+getComputedStyle(n).opacity;return{delay:a,duration:e,easing:s,css:t=>`opacity: ${t*i}`}}function F(n,{delay:a=0,duration:e=400,easing:s=h,x:i=0,y:t=0,opacity:u=0}={}){const c=getComputedStyle(n),d=+c.opacity,o=c.transform==="none"?"":c.transform,p=d*(1-u),[$,y]=g(i),[_,m]=g(t);return{delay:a,duration:e,easing:s,css:(l,f)=>`
2
+ transform: ${o} translate(${(1-l)*$}${y}, ${(1-l)*_}${m});
3
+ opacity: ${d-p*f}`}}function w(n,{delay:a=0,duration:e=400,easing:s=h,axis:i="y"}={}){const t=getComputedStyle(n),u=+t.opacity,c=i==="y"?"height":"width",d=parseFloat(t[c]),o=i==="y"?["top","bottom"]:["left","right"],p=o.map(r=>`${r[0].toUpperCase()}${r.slice(1)}`),$=parseFloat(t[`padding${p[0]}`]),y=parseFloat(t[`padding${p[1]}`]),_=parseFloat(t[`margin${p[0]}`]),m=parseFloat(t[`margin${p[1]}`]),l=parseFloat(t[`border${p[0]}Width`]),f=parseFloat(t[`border${p[1]}Width`]);return{delay:a,duration:e,easing:s,css:r=>`overflow: hidden;opacity: ${Math.min(r*20,1)*u};${c}: ${r*d}px;padding-${o[0]}: ${r*$}px;padding-${o[1]}: ${r*y}px;margin-${o[0]}: ${r*_}px;margin-${o[1]}: ${r*m}px;border-${o[0]}-width: ${r*l}px;border-${o[1]}-width: ${r*f}px;`}}function C(n,a){const{transition:e,params:s,enabled:i}=a;return i?e(n,s):"duration"in s?e(n,{duration:0}):{duration:0}}export{F as a,h as c,C as d,v as f,w as s};
build/client/_app/immutable/entry/app.rOUEZsXE.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import{b as B,c as U,F as p,j as q,k,i as h,G as j,A as F,e as G,d as J,f as K,u as I,I as d,t as M,h as W,m as z,p as A,J as E,K as H}from"../chunks/scheduler.5WtVptCO.js";import{S as Q,i as X,t as g,f as y,a as w,g as L,c as v,d as D,m as R,e as P}from"../chunks/index.7IiDzEZn.js";const Y="modulepreload",Z=function(a,e){return new URL(a,e).href},O={},b=function(e,n,i){let s=Promise.resolve();if(n&&n.length>0){const c=document.getElementsByTagName("link");s=Promise.all(n.map(t=>{if(t=Z(t,i),t in O)return;O[t]=!0;const r=t.endsWith(".css"),l=r?'[rel="stylesheet"]':"";if(!!i)for(let u=c.length-1;u>=0;u--){const m=c[u];if(m.href===t&&(!r||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${l}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Y,r||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),r)return new Promise((u,m)=>{o.addEventListener("load",u),o.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${t}`)))})}))}return s.then(()=>e()).catch(c=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=c,window.dispatchEvent(t),!t.defaultPrevented)throw c})},re={};function $(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,c(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{P(l,1)}),y()}s?(e=E(s,c(t)),t[12](e),v(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[12](null),e&&P(e,t)}}}function x(a){let e,n,i;var s=a[1][0];function c(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,c(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{P(l,1)}),y()}s?(e=E(s,c(t)),t[11](e),v(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[11](null),e&&P(e,t)}}}function ee(a){let e,n,i;var s=a[1][1];function c(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,c(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=p()},l(t){e&&D(e.$$.fragment,t),n=p()},m(t,r){e&&R(e,t,r),k(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){L();const l=e;g(l.$$.fragment,1,0,()=>{P(l,1)}),y()}s?(e=E(s,c(t)),t[10](e),v(e.$$.fragment),w(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&w(e.$$.fragment,t),i=!0)},o(t){e&&g(e.$$.fragment,t),i=!1},d(t){t&&h(n),a[10](null),e&&P(e,t)}}}function T(a){let e,n=a[6]&&V(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=J(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=K(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),d(e,"position","absolute"),d(e,"left","0"),d(e,"top","0"),d(e,"clip","rect(0 0 0 0)"),d(e,"clip-path","inset(50%)"),d(e,"overflow","hidden"),d(e,"white-space","nowrap"),d(e,"width","1px"),d(e,"height","1px")},m(i,s){k(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=V(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&h(e),n&&n.d()}}}function V(a){let e;return{c(){e=M(a[7])},l(n){e=W(n,a[7])},m(n,i){k(n,e,i)},p(n,i){i&128&&z(e,n[7])},d(n){n&&h(e)}}}function te(a){let e,n,i,s,c;const t=[x,$],r=[];function l(o,u){return o[1][1]?0:1}e=l(a),n=r[e]=t[e](a);let _=a[5]&&T(a);return{c(){n.c(),i=U(),_&&_.c(),s=p()},l(o){n.l(o),i=q(o),_&&_.l(o),s=p()},m(o,u){r[e].m(o,u),k(o,i,u),_&&_.m(o,u),k(o,s,u),c=!0},p(o,[u]){let m=e;e=l(o),e===m?r[e].p(o,u):(L(),g(r[m],1,1,()=>{r[m]=null}),y(),n=r[e],n?n.p(o,u):(n=r[e]=t[e](o),n.c()),w(n,1),n.m(i.parentNode,i)),o[5]?_?_.p(o,u):(_=T(o),_.c(),_.m(s.parentNode,s)):_&&(_.d(1),_=null)},i(o){c||(w(n),c=!0)},o(o){g(n),c=!1},d(o){o&&(h(i),h(s)),r[e].d(o),_&&_.d(o)}}}function ne(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:c}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:_=null}=e;j(i.page.notify);let o=!1,u=!1,m=null;F(()=>{const f=i.page.subscribe(()=>{o&&(n(6,u=!0),H().then(()=>{n(7,m=document.title||"untitled page")}))});return n(5,o=!0),f});function N(f){A[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function S(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function C(f){A[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return a.$$set=f=>{"stores"in f&&n(8,i=f.stores),"page"in f&&n(9,s=f.page),"constructors"in f&&n(1,c=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,r=f.form),"data_0"in f&&n(3,l=f.data_0),"data_1"in f&&n(4,_=f.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,c,r,l,_,o,u,m,i,s,N,S,C]}class oe extends Q{constructor(e){super(),X(this,e,ne,te,B,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>b(()=>import("../nodes/0.B6fEv7mp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),()=>b(()=>import("../nodes/1.1x2Pwkux.js"),__vite__mapDeps([13,1,2,14,4]),import.meta.url),()=>b(()=>import("../nodes/2.pzDxSecI.js"),__vite__mapDeps([15,1,2,16,4,11,7,8,10,17,18,19,20,3,9,5,21,22,6,23]),import.meta.url),()=>b(()=>import("../nodes/3.L0oIytRD.js"),__vite__mapDeps([24,1,2,11,21,4,3,7,8,5,25]),import.meta.url),()=>b(()=>import("../nodes/4.5fEHNIuc.js"),__vite__mapDeps([26,1,2,22,3,4,7,8,27]),import.meta.url),()=>b(()=>import("../nodes/5.saWmi_tN.js"),__vite__mapDeps([28,1,2,11,4,29,17,7,8,18,9,20,3,5,21]),import.meta.url),()=>b(()=>import("../nodes/6.2grtlPHK.js"),__vite__mapDeps([30,1,2,7,4,8,29,17,18,16,11,10,19]),import.meta.url)],le=[],fe={"/":[-3],"/chat":[3],"/logs":[4],"/test/expert":[-6],"/test/extract":[6]},ce={handleError:({error:a})=>{console.error(a)},reroute:()=>{}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
2
+ function __vite__mapDeps(indexes) {
3
+ if (!__vite__mapDeps.viteFileDeps) {
4
+ __vite__mapDeps.viteFileDeps = ["../nodes/0.B6fEv7mp.js","../chunks/scheduler.5WtVptCO.js","../chunks/index.7IiDzEZn.js","../chunks/popup.dE7t2hhe.js","../chunks/index.G3yBo0_P.js","../chunks/stores.XS_YoCyo.js","../chunks/stores.Cb2RXlYi.js","../chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js","../assets/ProgressBar.oq5aOWfL.css","../chunks/ModalPromptEditor.x-CfuIKj.js","../chunks/transitions.QBIMuVLc.js","../chunks/each.C7pZUaX1.js","../assets/0.YNxs9fuA.css","../nodes/1.1x2Pwkux.js","../chunks/entry.dO1U_WKI.js","../nodes/2.pzDxSecI.js","../chunks/SearchResults.3ZkY-Bmy.js","../chunks/SearchUtils.tAbMbmlw.js","../assets/SearchUtils.-5bLgY4Z.css","../assets/SearchResults.6mpV3Zmb.css","../chunks/InvestigatorSettings.5lll9SsD.js","../chunks/LlmSelector.Snki38ql.js","../chunks/LogService.hUlSDADx.js","../assets/2.JoL8Jh2O.css","../nodes/3.L0oIytRD.js","../assets/3.zBATg92h.css","../nodes/4.5fEHNIuc.js","../assets/4.wLw7i_OC.css","../nodes/5.saWmi_tN.js","../chunks/exceljs.min.ptB2ikW7.js","../nodes/6.2grtlPHK.js"]
5
+ }
6
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
7
+ }
build/client/_app/immutable/entry/start.P2Y1uHp-.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{a as t}from"../chunks/entry.dO1U_WKI.js";export{t as start};
build/client/_app/immutable/nodes/0.B6fEv7mp.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{n as de,D as fl,b as ge,s as pl,W as Jn,X as en,F as Dt,k as Y,w as j,i as y,r as Kt,o as Le,ac as dl,P as Ae,Q as nn,e as b,d as v,f as A,u,l as c,z as ml,S as kn,p as _e,c as C,j as T,H as Ge,C as Je,af as En,J as ln,t as Lt,h as At,a8 as Cn,v as N,m as he,q as it,B as Re,ab as G,x as Be,L as _l,ag as hl,M as bl,N as vl,O as gl}from"../chunks/scheduler.5WtVptCO.js";import{n as yl,l as wl,k as kl,o as El,S as Pe,i as Ne,a as lt,g as Yt,t as ut,f as Gt,h as Zn,p as Tn,j as xn,c as Mt,d as Wt,m as zt,e as qt,b as Se}from"../chunks/index.7IiDzEZn.js";import{s as Cl}from"../chunks/popup.dE7t2hhe.js";import{i as Tl,g as cn}from"../chunks/stores.XS_YoCyo.js";import{i as Il,g as Ll}from"../chunks/stores.Cb2RXlYi.js";import{w as Al}from"../chunks/index.G3yBo0_P.js";import{p as $n}from"../chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Ke,a as sn,M as Ve}from"../chunks/ModalPromptEditor.x-CfuIKj.js";import{c as Dl,d as Fe,f as In,a as rn}from"../chunks/transitions.QBIMuVLc.js";import{e as Ln,u as Ol,f as Pl}from"../chunks/each.C7pZUaX1.js";function Nl(e,t,n,l){if(!t)return de;const i=e.getBoundingClientRect();if(t.left===i.left&&t.right===i.right&&t.top===i.top&&t.bottom===i.bottom)return de;const{delay:r=0,duration:s=300,easing:o=fl,start:a=yl()+r,end:f=a+s,tick:d=de,css:m}=n(e,{from:t,to:i},l);let _=!0,p=!1,g;function k(){m&&(g=kl(e,0,1,s,r,o,m)),r||(p=!0)}function h(){m&&El(e,g),_=!1}return wl(w=>{if(!p&&w>=a&&(p=!0),p&&w>=f&&(d(1,0),h()),!_)return!1;if(p){const E=w-a,O=0+1*o(E/s);d(O,1-O)}return!0}),k(),d(0,1),h}function Bl(e){const t=getComputedStyle(e);if(t.position!=="absolute"&&t.position!=="fixed"){const{width:n,height:l}=t,i=e.getBoundingClientRect();e.style.position="absolute",e.style.width=n,e.style.height=l,tl(e,i)}}function tl(e,t){const n=e.getBoundingClientRect();if(t.left!==n.left||t.top!==n.top){const l=getComputedStyle(e),i=l.transform==="none"?"":l.transform;e.style.transform=`${i} translate(${t.left-n.left}px, ${t.top-n.top}px)`}}class Sl extends Pe{constructor(t){super(),Ne(this,t,null,null,ge,{})}}const Me=Math.min,Ie=Math.max,on=Math.round,tn=Math.floor,be=e=>({x:e,y:e}),Vl={left:"right",right:"left",bottom:"top",top:"bottom"},Rl={start:"end",end:"start"};function mn(e,t,n){return Ie(e,Me(t,n))}function Ze(e,t){return typeof e=="function"?e(t):e}function De(e){return e.split("-")[0]}function xe(e){return e.split("-")[1]}function el(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}function ze(e){return["top","bottom"].includes(De(e))?"y":"x"}function vn(e){return el(ze(e))}function Fl(e,t,n){n===void 0&&(n=!1);const l=xe(e),i=vn(e),r=bn(i);let s=i==="x"?l===(n?"end":"start")?"right":"left":l==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=an(s)),[s,an(s)]}function Ul(e){const t=an(e);return[_n(e),t,_n(t)]}function _n(e){return e.replace(/start|end/g,t=>Rl[t])}function Ml(e,t,n){const l=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:l:t?l:i;case"left":case"right":return t?r:s;default:return[]}}function zl(e,t,n,l){const i=xe(e);let r=Ml(De(e),n==="start",l);return i&&(r=r.map(s=>s+"-"+i),t&&(r=r.concat(r.map(_n)))),r}function an(e){return e.replace(/left|right|bottom|top/g,t=>Vl[t])}function ql(e){return{top:0,right:0,bottom:0,left:0,...e}}function nl(e){return typeof e!="number"?ql(e):{top:e,right:e,bottom:e,left:e}}function un(e){const{x:t,y:n,width:l,height:i}=e;return{width:l,height:i,top:n,left:t,right:t+l,bottom:n+i,x:t,y:n}}function An(e,t,n){let{reference:l,floating:i}=e;const r=ze(t),s=vn(t),o=bn(s),a=De(t),f=r==="y",d=l.x+l.width/2-i.width/2,m=l.y+l.height/2-i.height/2,_=l[o]/2-i[o]/2;let p;switch(a){case"top":p={x:d,y:l.y-i.height};break;case"bottom":p={x:d,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:m};break;case"left":p={x:l.x-i.width,y:m};break;default:p={x:l.x,y:l.y}}switch(xe(t)){case"start":p[s]-=_*(n&&f?-1:1);break;case"end":p[s]+=_*(n&&f?-1:1);break}return p}const jl=async(e,t,n)=>{const{placement:l="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,o=r.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:m}=An(f,l,a),_=l,p={},g=0;for(let k=0;k<o.length;k++){const{name:h,fn:w}=o[k],{x:E,y:O,data:H,reset:P}=await w({x:d,y:m,initialPlacement:l,placement:_,strategy:i,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});d=E??d,m=O??m,p={...p,[h]:{...p[h],...H}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(_=P.placement),P.rects&&(f=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:d,y:m}=An(f,_,a)),k=-1)}return{x:d,y:m,placement:_,strategy:i,middlewareData:p}};async function ll(e,t){var n;t===void 0&&(t={});const{x:l,y:i,platform:r,rects:s,elements:o,strategy:a}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:_=!1,padding:p=0}=Ze(t,e),g=nl(p),h=o[_?m==="floating"?"reference":"floating":m],w=un(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(h)))==null||n?h:h.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(o.floating)),boundary:f,rootBoundary:d,strategy:a})),E=m==="floating"?{x:l,y:i,width:s.floating.width,height:s.floating.height}:s.reference,O=await(r.getOffsetParent==null?void 0:r.getOffsetParent(o.floating)),H=await(r.isElement==null?void 0:r.isElement(O))?await(r.getScale==null?void 0:r.getScale(O))||{x:1,y:1}:{x:1,y:1},P=un(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:E,offsetParent:O,strategy:a}):E);return{top:(w.top-P.top+g.top)/H.y,bottom:(P.bottom-w.bottom+g.bottom)/H.y,left:(w.left-P.left+g.left)/H.x,right:(P.right-w.right+g.right)/H.x}}const Hl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:l,placement:i,rects:r,platform:s,elements:o,middlewareData:a}=t,{element:f,padding:d=0}=Ze(e,t)||{};if(f==null)return{};const m=nl(d),_={x:n,y:l},p=vn(i),g=bn(p),k=await s.getDimensions(f),h=p==="y",w=h?"top":"left",E=h?"bottom":"right",O=h?"clientHeight":"clientWidth",H=r.reference[g]+r.reference[p]-_[p]-r.floating[g],P=_[p]-r.reference[p],V=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let R=V?V[O]:0;(!R||!await(s.isElement==null?void 0:s.isElement(V)))&&(R=o.floating[O]||r.floating[g]);const B=H/2-P/2,q=R/2-k[g]/2-1,Z=Me(m[w],q),J=Me(m[E],q),S=Z,W=R-k[g]-J,M=R/2-k[g]/2+B,K=mn(S,M,W),st=!a.arrow&&xe(i)!=null&&M!==K&&r.reference[g]/2-(M<S?Z:J)-k[g]/2<0,Q=st?M<S?M-S:M-W:0;return{[p]:_[p]+Q,data:{[p]:K,centerOffset:M-K-Q,...st&&{alignmentOffset:Q}},reset:st}}}),Wl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,l;const{placement:i,middlewareData:r,rects:s,initialPlacement:o,platform:a,elements:f}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:_,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:k=!0,...h}=Ze(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const w=De(i),E=ze(o),O=De(o)===o,H=await(a.isRTL==null?void 0:a.isRTL(f.floating)),P=_||(O||!k?[an(o)]:Ul(o)),V=g!=="none";!_&&V&&P.push(...zl(o,k,g,H));const R=[o,...P],B=await ll(t,h),q=[];let Z=((l=r.flip)==null?void 0:l.overflows)||[];if(d&&q.push(B[w]),m){const M=Fl(i,s,H);q.push(B[M[0]],B[M[1]])}if(Z=[...Z,{placement:i,overflows:q}],!q.every(M=>M<=0)){var J,S;const M=(((J=r.flip)==null?void 0:J.index)||0)+1,K=R[M];if(K)return{data:{index:M,overflows:Z},reset:{placement:K}};let st=(S=Z.filter(Q=>Q.overflows[0]<=0).sort((Q,X)=>Q.overflows[1]-X.overflows[1])[0])==null?void 0:S.placement;if(!st)switch(p){case"bestFit":{var W;const Q=(W=Z.filter(X=>{if(V){const tt=ze(X.placement);return tt===E||tt==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(tt=>tt>0).reduce((tt,z)=>tt+z,0)]).sort((X,tt)=>X[1]-tt[1])[0])==null?void 0:W[0];Q&&(st=Q);break}case"initialPlacement":st=o;break}if(i!==st)return{reset:{placement:st}}}return{}}}};async function Ql(e,t){const{placement:n,platform:l,elements:i}=e,r=await(l.isRTL==null?void 0:l.isRTL(i.floating)),s=De(n),o=xe(n),a=ze(n)==="y",f=["left","top"].includes(s)?-1:1,d=r&&a?-1:1,m=Ze(t,e);let{mainAxis:_,crossAxis:p,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return o&&typeof g=="number"&&(p=o==="end"?g*-1:g),a?{x:p*d,y:_*f}:{x:_*f,y:p*d}}const Xl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,l;const{x:i,y:r,placement:s,middlewareData:o}=t,a=await Ql(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(l=o.arrow)!=null&&l.alignmentOffset?{}:{x:i+a.x,y:r+a.y,data:{...a,placement:s}}}}},Kl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:l,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:o={fn:h=>{let{x:w,y:E}=h;return{x:w,y:E}}},...a}=Ze(e,t),f={x:n,y:l},d=await ll(t,a),m=ze(De(i)),_=el(m);let p=f[_],g=f[m];if(r){const h=_==="y"?"top":"left",w=_==="y"?"bottom":"right",E=p+d[h],O=p-d[w];p=mn(E,p,O)}if(s){const h=m==="y"?"top":"left",w=m==="y"?"bottom":"right",E=g+d[h],O=g-d[w];g=mn(E,g,O)}const k=o.fn({...t,[_]:p,[m]:g});return{...k,data:{x:k.x-n,y:k.y-l}}}}};function je(e){return sl(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(sl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sl(e){return e instanceof Node||e instanceof jt(e).Node}function Qt(e){return e instanceof Element||e instanceof jt(e).Element}function $t(e){return e instanceof HTMLElement||e instanceof jt(e).HTMLElement}function Dn(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot}function $e(e){const{overflow:t,overflowX:n,overflowY:l,display:i}=Xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+n)&&!["inline","contents"].includes(i)}function Yl(e){return["table","td","th"].includes(je(e))}function fn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gn(e){const t=yn(),n=Qt(e)?Xt(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(l=>(n.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(n.contain||"").includes(l))}function Gl(e){let t=ve(e);for(;$t(t)&&!qe(t);){if(gn(t))return t;if(fn(t))return null;t=ve(t)}return null}function yn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qe(e){return["html","body","#document"].includes(je(e))}function Xt(e){return jt(e).getComputedStyle(e)}function pn(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ve(e){if(je(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dn(e)&&e.host||me(e);return Dn(t)?t.host:t}function il(e){const t=ve(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:$t(t)&&$e(t)?t:il(t)}function Ye(e,t,n){var l;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=il(e),r=i===((l=e.ownerDocument)==null?void 0:l.body),s=jt(i);if(r){const o=hn(s);return t.concat(s,s.visualViewport||[],$e(i)?i:[],o&&n?Ye(o):[])}return t.concat(i,Ye(i,[],n))}function hn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){const t=Xt(e);let n=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const i=$t(e),r=i?e.offsetWidth:n,s=i?e.offsetHeight:l,o=on(n)!==r||on(l)!==s;return o&&(n=r,l=s),{width:n,height:l,$:o}}function wn(e){return Qt(e)?e:e.contextElement}function Ue(e){const t=wn(e);if(!$t(t))return be(1);const n=t.getBoundingClientRect(),{width:l,height:i,$:r}=rl(t);let s=(r?on(n.width):n.width)/l,o=(r?on(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const Jl=be(0);function ol(e){const t=jt(e);return!yn()||!t.visualViewport?Jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jt(e)?!1:t}function Oe(e,t,n,l){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=wn(e);let s=be(1);t&&(l?Qt(l)&&(s=Ue(l)):s=Ue(e));const o=Zl(r,n,l)?ol(r):be(0);let a=(i.left+o.x)/s.x,f=(i.top+o.y)/s.y,d=i.width/s.x,m=i.height/s.y;if(r){const _=jt(r),p=l&&Qt(l)?jt(l):l;let g=_,k=hn(g);for(;k&&l&&p!==g;){const h=Ue(k),w=k.getBoundingClientRect(),E=Xt(k),O=w.left+(k.clientLeft+parseFloat(E.paddingLeft))*h.x,H=w.top+(k.clientTop+parseFloat(E.paddingTop))*h.y;a*=h.x,f*=h.y,d*=h.x,m*=h.y,a+=O,f+=H,g=jt(k),k=hn(g)}}return un({width:d,height:m,x:a,y:f})}function xl(e){let{elements:t,rect:n,offsetParent:l,strategy:i}=e;const r=i==="fixed",s=me(l),o=t?fn(t.floating):!1;if(l===s||o&&r)return n;let a={scrollLeft:0,scrollTop:0},f=be(1);const d=be(0),m=$t(l);if((m||!m&&!r)&&((je(l)!=="body"||$e(s))&&(a=pn(l)),$t(l))){const _=Oe(l);f=Ue(l),d.x=_.x+l.clientLeft,d.y=_.y+l.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+d.x,y:n.y*f.y-a.scrollTop*f.y+d.y}}function $l(e){return Array.from(e.getClientRects())}function al(e){return Oe(me(e)).left+pn(e).scrollLeft}function ts(e){const t=me(e),n=pn(e),l=e.ownerDocument.body,i=Ie(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),r=Ie(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let s=-n.scrollLeft+al(e);const o=-n.scrollTop;return Xt(l).direction==="rtl"&&(s+=Ie(t.clientWidth,l.clientWidth)-i),{width:i,height:r,x:s,y:o}}function es(e,t){const n=jt(e),l=me(e),i=n.visualViewport;let r=l.clientWidth,s=l.clientHeight,o=0,a=0;if(i){r=i.width,s=i.height;const f=yn();(!f||f&&t==="fixed")&&(o=i.offsetLeft,a=i.offsetTop)}return{width:r,height:s,x:o,y:a}}function ns(e,t){const n=Oe(e,!0,t==="fixed"),l=n.top+e.clientTop,i=n.left+e.clientLeft,r=$t(e)?Ue(e):be(1),s=e.clientWidth*r.x,o=e.clientHeight*r.y,a=i*r.x,f=l*r.y;return{width:s,height:o,x:a,y:f}}function On(e,t,n){let l;if(t==="viewport")l=es(e,n);else if(t==="document")l=ts(me(e));else if(Qt(t))l=ns(t,n);else{const i=ol(e);l={...t,x:t.x-i.x,y:t.y-i.y}}return un(l)}function ul(e,t){const n=ve(e);return n===t||!Qt(n)||qe(n)?!1:Xt(n).position==="fixed"||ul(n,t)}function ls(e,t){const n=t.get(e);if(n)return n;let l=Ye(e,[],!1).filter(o=>Qt(o)&&je(o)!=="body"),i=null;const r=Xt(e).position==="fixed";let s=r?ve(e):e;for(;Qt(s)&&!qe(s);){const o=Xt(s),a=gn(s);!a&&o.position==="fixed"&&(i=null),(r?!a&&!i:!a&&o.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$e(s)&&!a&&ul(e,s))?l=l.filter(d=>d!==s):i=o,s=ve(s)}return t.set(e,l),l}function ss(e){let{element:t,boundary:n,rootBoundary:l,strategy:i}=e;const s=[...n==="clippingAncestors"?fn(t)?[]:ls(t,this._c):[].concat(n),l],o=s[0],a=s.reduce((f,d)=>{const m=On(t,d,i);return f.top=Ie(m.top,f.top),f.right=Me(m.right,f.right),f.bottom=Me(m.bottom,f.bottom),f.left=Ie(m.left,f.left),f},On(t,o,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function is(e){const{width:t,height:n}=rl(e);return{width:t,height:n}}function rs(e,t,n){const l=$t(t),i=me(t),r=n==="fixed",s=Oe(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const a=be(0);if(l||!l&&!r)if((je(t)!=="body"||$e(i))&&(o=pn(t)),l){const m=Oe(t,!0,r,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else i&&(a.x=al(i));const f=s.left+o.scrollLeft-a.x,d=s.top+o.scrollTop-a.y;return{x:f,y:d,width:s.width,height:s.height}}function dn(e){return Xt(e).position==="static"}function Pn(e,t){return!$t(e)||Xt(e).position==="fixed"?null:t?t(e):e.offsetParent}function cl(e,t){const n=jt(e);if(fn(e))return n;if(!$t(e)){let i=ve(e);for(;i&&!qe(i);){if(Qt(i)&&!dn(i))return i;i=ve(i)}return n}let l=Pn(e,t);for(;l&&Yl(l)&&dn(l);)l=Pn(l,t);return l&&qe(l)&&dn(l)&&!gn(l)?n:l||Gl(e)||n}const os=async function(e){const t=this.getOffsetParent||cl,n=this.getDimensions,l=await n(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function as(e){return Xt(e).direction==="rtl"}const us={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:me,getClippingRect:ss,getOffsetParent:cl,getElementRects:os,getClientRects:$l,getDimensions:is,getScale:Ue,isElement:Qt,isRTL:as};function cs(e,t){let n=null,l;const i=me(e);function r(){var o;clearTimeout(l),(o=n)==null||o.disconnect(),n=null}function s(o,a){o===void 0&&(o=!1),a===void 0&&(a=1),r();const{left:f,top:d,width:m,height:_}=e.getBoundingClientRect();if(o||t(),!m||!_)return;const p=tn(d),g=tn(i.clientWidth-(f+m)),k=tn(i.clientHeight-(d+_)),h=tn(f),E={rootMargin:-p+"px "+-g+"px "+-k+"px "+-h+"px",threshold:Ie(0,Me(1,a))||1};let O=!0;function H(P){const V=P[0].intersectionRatio;if(V!==a){if(!O)return s();V?s(!1,V):l=setTimeout(()=>{s(!1,1e-7)},1e3)}O=!1}try{n=new IntersectionObserver(H,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(H,E)}n.observe(e)}return s(!0),r}function fs(e,t,n,l){l===void 0&&(l={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:a=!1}=l,f=wn(e),d=i||r?[...f?Ye(f):[],...Ye(t)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),r&&w.addEventListener("resize",n)});const m=f&&o?cs(f,n):null;let _=-1,p=null;s&&(p=new ResizeObserver(w=>{let[E]=w;E&&E.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var O;(O=p)==null||O.observe(t)})),n()}),f&&!a&&p.observe(f),p.observe(t));let g,k=a?Oe(e):null;a&&h();function h(){const w=Oe(e);k&&(w.x!==k.x||w.y!==k.y||w.width!==k.width||w.height!==k.height)&&n(),k=w,g=requestAnimationFrame(h)}return n(),()=>{var w;d.forEach(E=>{i&&E.removeEventListener("scroll",n),r&&E.removeEventListener("resize",n)}),m?.(),(w=p)==null||w.disconnect(),p=null,a&&cancelAnimationFrame(g)}}const ps=Xl,ds=Kl,ms=Wl,_s=Hl,hs=(e,t,n)=>{const l=new Map,i={platform:us,...n},r={...i.platform,_c:l};return jl(e,t,{...i,platform:r})},bs="drawerStore";function vs(){const e=gs();return pl(bs,e)}function gs(){const{subscribe:e,set:t,update:n}=Al({});return{subscribe:e,set:t,update:n,open:l=>n(()=>({open:!0,...l})),close:()=>n(l=>(l.open=!1,l))}}function ys(){Tl(),Il(),vs()}function ws(e,t){const n='a[href]:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])';let l,i;function r(p){p.shiftKey&&p.code==="Tab"&&(p.preventDefault(),i.focus())}function s(p){!p.shiftKey&&p.code==="Tab"&&(p.preventDefault(),l.focus())}const o=p=>p.filter(g=>g.tabIndex>=0).sort((g,k)=>g.tabIndex===0&&k.tabIndex>0?1:g.tabIndex>0&&k.tabIndex===0?-1:g.tabIndex-k.tabIndex),a=p=>{const g=[...e.querySelectorAll("[data-focusindex]")];return!g||g.length===0?p:g.sort((k,h)=>+k.dataset.focusindex-+h.dataset.focusindex)[0]||p},f=p=>{if(t===!1)return;const g=o(Array.from(e.querySelectorAll(n)));g.length&&(l=g[0],i=g[g.length-1],p||a(l).focus(),l.addEventListener("keydown",r),i.addEventListener("keydown",s))};f(!1);function d(){l&&l.removeEventListener("keydown",r),i&&i.removeEventListener("keydown",s)}const m=(p,g)=>(p.length&&(d(),f(!0)),g),_=new MutationObserver(m);return _.observe(e,{childList:!0,subtree:!0}),{update(p){t=p,p?f(!1):d()},destroy(){d(),_.disconnect()}}}function ks(e,{from:t,to:n},l={}){const i=getComputedStyle(e),r=i.transform==="none"?"":i.transform,[s,o]=i.transformOrigin.split(" ").map(parseFloat),a=t.left+t.width*s/n.width-(n.left+s),f=t.top+t.height*o/n.height-(n.top+o),{delay:d=0,duration:m=p=>Math.sqrt(p)*120,easing:_=Dl}=l;return{delay:d,duration:Jn(m)?m(Math.sqrt(a*a+f*f)):m,easing:_,css:(p,g)=>{const k=g*a,h=g*f,w=p+g*t.width/n.width,E=p+g*t.height/n.height;return`transform: ${r} translate(${k}px, ${h}px) scale(${w}, ${E});`}}}function Nn(e){let t=e[14],n,l,i=Rn(e);return{c(){i.c(),n=Dt()},l(r){i.l(r),n=Dt()},m(r,s){i.m(r,s),Y(r,n,s),l=!0},p(r,s){s[0]&16384&&ge(t,t=r[14])?(Yt(),ut(i,1,1,de),Gt(),i=Rn(r),i.c(),lt(i,1),i.m(n.parentNode,n)):i.p(r,s)},i(r){l||(lt(i),l=!0)},o(r){ut(i),l=!1},d(r){r&&y(n),i.d(r)}}}function Es(e){let t,n,l,i,r,s;const o=[Is,Ts],a=[];function f(d,m){return d[16]?.slot?0:1}return n=f(e),l=a[n]=o[n](e),{c(){t=b("div"),l.c(),this.h()},l(d){t=v(d,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-modal":!0,"aria-label":!0});var m=A(t);l.l(m),m.forEach(y),this.h()},h(){u(t,"class",i="modal contents "+(e[14][0]?.modalClasses??"")),u(t,"data-testid","modal-component"),u(t,"role","dialog"),u(t,"aria-modal","true"),u(t,"aria-label",r=e[14][0].title??"")},m(d,m){Y(d,t,m),a[n].m(t,null),e[47](t),s=!0},p(d,m){let _=n;n=f(d),n===_?a[n].p(d,m):(Yt(),ut(a[_],1,1,()=>{a[_]=null}),Gt(),l=a[n],l?l.p(d,m):(l=a[n]=o[n](d),l.c()),lt(l,1),l.m(t,null)),(!s||m[0]&16384&&i!==(i="modal contents "+(d[14][0]?.modalClasses??"")))&&u(t,"class",i),(!s||m[0]&16384&&r!==(r=d[14][0].title??""))&&u(t,"aria-label",r)},i(d){s||(lt(l),s=!0)},o(d){ut(l),s=!1},d(d){d&&y(t),a[n].d(),e[47](null)}}}function Cs(e){let t,n,l,i,r,s,o=e[14][0]?.title&&Bn(e),a=e[14][0]?.body&&Sn(e),f=e[14][0]?.image&&typeof e[14][0]?.image=="string"&&Vn(e);function d(p,g){if(p[14][0].type==="alert")return Os;if(p[14][0].type==="confirm")return Ds;if(p[14][0].type==="prompt")return As}let m=d(e),_=m&&m(e);return{c(){t=b("div"),o&&o.c(),n=C(),a&&a.c(),l=C(),f&&f.c(),i=C(),_&&_.c(),this.h()},l(p){t=v(p,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-modal":!0,"aria-label":!0});var g=A(t);o&&o.l(g),n=T(g),a&&a.l(g),l=T(g),f&&f.l(g),i=T(g),_&&_.l(g),g.forEach(y),this.h()},h(){u(t,"class",r="modal "+e[20]),u(t,"data-testid","modal"),u(t,"role","dialog"),u(t,"aria-modal","true"),u(t,"aria-label",s=e[14][0].title??"")},m(p,g){Y(p,t,g),o&&o.m(t,null),c(t,n),a&&a.m(t,null),c(t,l),f&&f.m(t,null),c(t,i),_&&_.m(t,null),e[46](t)},p(p,g){p[14][0]?.title?o?o.p(p,g):(o=Bn(p),o.c(),o.m(t,n)):o&&(o.d(1),o=null),p[14][0]?.body?a?a.p(p,g):(a=Sn(p),a.c(),a.m(t,l)):a&&(a.d(1),a=null),p[14][0]?.image&&typeof p[14][0]?.image=="string"?f?f.p(p,g):(f=Vn(p),f.c(),f.m(t,i)):f&&(f.d(1),f=null),m===(m=d(p))&&_?_.p(p,g):(_&&_.d(1),_=m&&m(p),_&&(_.c(),_.m(t,null))),g[0]&1048576&&r!==(r="modal "+p[20])&&u(t,"class",r),g[0]&16384&&s!==(s=p[14][0].title??"")&&u(t,"aria-label",s)},i:de,o:de,d(p){p&&y(t),o&&o.d(),a&&a.d(),f&&f.d(),_&&_.d(),e[46](null)}}}function Ts(e){let t,n,l;const i=[e[16]?.props,{parent:e[19]}];var r=e[16]?.ref;function s(o,a){let f={};if(a!==void 0&&a[0]&589824)f=Ke(i,[a[0]&65536&&sn(o[16]?.props),a[0]&524288&&{parent:o[19]}]);else for(let d=0;d<i.length;d+=1)f=Ae(f,i[d]);return{props:f}}return r&&(t=ln(r,s(e))),{c(){t&&Mt(t.$$.fragment),n=Dt()},l(o){t&&Wt(t.$$.fragment,o),n=Dt()},m(o,a){t&&zt(t,o,a),Y(o,n,a),l=!0},p(o,a){if(a[0]&65536&&r!==(r=o[16]?.ref)){if(t){Yt();const f=t;ut(f.$$.fragment,1,0,()=>{qt(f,1)}),Gt()}r?(t=ln(r,s(o,a)),Mt(t.$$.fragment),lt(t.$$.fragment,1),zt(t,n.parentNode,n)):t=null}else if(r){const f=a[0]&589824?Ke(i,[a[0]&65536&&sn(o[16]?.props),a[0]&524288&&{parent:o[19]}]):{};t.$set(f)}},i(o){l||(t&&lt(t.$$.fragment,o),l=!0)},o(o){t&&ut(t.$$.fragment,o),l=!1},d(o){o&&y(n),t&&qt(t,o)}}}function Is(e){let t,n,l;const i=[e[16]?.props,{parent:e[19]}];var r=e[16]?.ref;function s(o,a){let f={$$slots:{default:[Ls]},$$scope:{ctx:o}};if(a!==void 0&&a[0]&589824)f=Ke(i,[a[0]&65536&&sn(o[16]?.props),a[0]&524288&&{parent:o[19]}]);else for(let d=0;d<i.length;d+=1)f=Ae(f,i[d]);return{props:f}}return r&&(t=ln(r,s(e))),{c(){t&&Mt(t.$$.fragment),n=Dt()},l(o){t&&Wt(t.$$.fragment,o),n=Dt()},m(o,a){t&&zt(t,o,a),Y(o,n,a),l=!0},p(o,a){if(a[0]&65536&&r!==(r=o[16]?.ref)){if(t){Yt();const f=t;ut(f.$$.fragment,1,0,()=>{qt(f,1)}),Gt()}r?(t=ln(r,s(o,a)),Mt(t.$$.fragment),lt(t.$$.fragment,1),zt(t,n.parentNode,n)):t=null}else if(r){const f=a[0]&589824?Ke(i,[a[0]&65536&&sn(o[16]?.props),a[0]&524288&&{parent:o[19]}]):{};a[0]&65536|a[1]&16777216&&(f.$$scope={dirty:a,ctx:o}),t.$set(f)}},i(o){l||(t&&lt(t.$$.fragment,o),l=!0)},o(o){t&&ut(t.$$.fragment,o),l=!1},d(o){o&&y(n),t&&qt(t,o)}}}function Ls(e){let t,n=e[16]?.slot+"",l;return{c(){t=new Ge(!1),l=Dt(),this.h()},l(i){t=Je(i,!1),l=Dt(),this.h()},h(){t.a=l},m(i,r){t.m(n,i,r),Y(i,l,r)},p(i,r){r[0]&65536&&n!==(n=i[16]?.slot+"")&&t.p(n)},d(i){i&&(y(l),t.d())}}}function Bn(e){let t,n,l=e[14][0].title+"",i;return{c(){t=b("header"),n=new Ge(!1),this.h()},l(r){t=v(r,"HEADER",{class:!0});var s=A(t);n=Je(s,!1),s.forEach(y),this.h()},h(){n.a=null,u(t,"class",i="modal-header "+e[5])},m(r,s){Y(r,t,s),n.m(l,t)},p(r,s){s[0]&16384&&l!==(l=r[14][0].title+"")&&n.p(l),s[0]&32&&i!==(i="modal-header "+r[5])&&u(t,"class",i)},d(r){r&&y(t)}}}function Sn(e){let t,n,l=e[14][0].body+"",i;return{c(){t=b("article"),n=new Ge(!1),this.h()},l(r){t=v(r,"ARTICLE",{class:!0});var s=A(t);n=Je(s,!1),s.forEach(y),this.h()},h(){n.a=null,u(t,"class",i="modal-body "+e[6])},m(r,s){Y(r,t,s),n.m(l,t)},p(r,s){s[0]&16384&&l!==(l=r[14][0].body+"")&&n.p(l),s[0]&64&&i!==(i="modal-body "+r[6])&&u(t,"class",i)},d(r){r&&y(t)}}}function Vn(e){let t,n;return{c(){t=b("img"),this.h()},l(l){t=v(l,"IMG",{class:!0,src:!0,alt:!0}),this.h()},h(){u(t,"class","modal-image "+Vs),En(t.src,n=e[14][0]?.image)||u(t,"src",n),u(t,"alt","Modal")},m(l,i){Y(l,t,i)},p(l,i){i[0]&16384&&!En(t.src,n=l[14][0]?.image)&&u(t,"src",n)},d(l){l&&y(t)}}}function As(e){let t,n,l,i,r,s,o,a,f,d,m,_,p,g,k=[{class:"modal-prompt-input input"},{name:"prompt"},{type:"text"},e[14][0].valueAttr],h={};for(let w=0;w<k.length;w+=1)h=Ae(h,k[w]);return{c(){t=b("form"),n=b("input"),l=C(),i=b("footer"),r=b("button"),s=Lt(e[0]),a=C(),f=b("button"),d=Lt(e[2]),this.h()},l(w){t=v(w,"FORM",{class:!0});var E=A(t);n=v(E,"INPUT",{class:!0,name:!0,type:!0}),l=T(E),i=v(E,"FOOTER",{class:!0});var O=A(i);r=v(O,"BUTTON",{type:!0,class:!0});var H=A(r);s=At(H,e[0]),H.forEach(y),a=T(O),f=v(O,"BUTTON",{type:!0,class:!0});var P=A(f);d=At(P,e[2]),P.forEach(y),O.forEach(y),E.forEach(y),this.h()},h(){Cn(n,h),u(r,"type","button"),u(r,"class",o="btn "+e[3]),u(f,"type","submit"),u(f,"class",m="btn "+e[4]),u(i,"class",_="modal-footer "+e[7]),u(t,"class","space-y-4")},m(w,E){Y(w,t,E),c(t,n),n.autofocus&&n.focus(),N(n,e[15]),c(t,l),c(t,i),c(i,r),c(r,s),c(i,a),c(i,f),c(f,d),p||(g=[j(n,"input",e[45]),j(r,"click",e[26]),j(t,"submit",e[28])],p=!0)},p(w,E){Cn(n,h=Ke(k,[{class:"modal-prompt-input input"},{name:"prompt"},{type:"text"},E[0]&16384&&w[14][0].valueAttr])),E[0]&32768&&n.value!==w[15]&&N(n,w[15]),E[0]&1&&he(s,w[0]),E[0]&8&&o!==(o="btn "+w[3])&&u(r,"class",o),E[0]&4&&he(d,w[2]),E[0]&16&&m!==(m="btn "+w[4])&&u(f,"class",m),E[0]&128&&_!==(_="modal-footer "+w[7])&&u(i,"class",_)},d(w){w&&y(t),p=!1,Kt(g)}}}function Ds(e){let t,n,l,i,r,s,o,a,f,d,m;return{c(){t=b("footer"),n=b("button"),l=Lt(e[0]),r=C(),s=b("button"),o=Lt(e[1]),this.h()},l(_){t=v(_,"FOOTER",{class:!0});var p=A(t);n=v(p,"BUTTON",{type:!0,class:!0});var g=A(n);l=At(g,e[0]),g.forEach(y),r=T(p),s=v(p,"BUTTON",{type:!0,class:!0});var k=A(s);o=At(k,e[1]),k.forEach(y),p.forEach(y),this.h()},h(){u(n,"type","button"),u(n,"class",i="btn "+e[3]),u(s,"type","button"),u(s,"class",a="btn "+e[4]),u(t,"class",f="modal-footer "+e[7])},m(_,p){Y(_,t,p),c(t,n),c(n,l),c(t,r),c(t,s),c(s,o),d||(m=[j(n,"click",e[26]),j(s,"click",e[27])],d=!0)},p(_,p){p[0]&1&&he(l,_[0]),p[0]&8&&i!==(i="btn "+_[3])&&u(n,"class",i),p[0]&2&&he(o,_[1]),p[0]&16&&a!==(a="btn "+_[4])&&u(s,"class",a),p[0]&128&&f!==(f="modal-footer "+_[7])&&u(t,"class",f)},d(_){_&&y(t),d=!1,Kt(m)}}}function Os(e){let t,n,l,i,r,s,o;return{c(){t=b("footer"),n=b("button"),l=Lt(e[0]),this.h()},l(a){t=v(a,"FOOTER",{class:!0});var f=A(t);n=v(f,"BUTTON",{type:!0,class:!0});var d=A(n);l=At(d,e[0]),d.forEach(y),f.forEach(y),this.h()},h(){u(n,"type","button"),u(n,"class",i="btn "+e[3]),u(t,"class",r="modal-footer "+e[7])},m(a,f){Y(a,t,f),c(t,n),c(n,l),s||(o=j(n,"click",e[26]),s=!0)},p(a,f){f[0]&1&&he(l,a[0]),f[0]&8&&i!==(i="btn "+a[3])&&u(n,"class",i),f[0]&128&&r!==(r="modal-footer "+a[7])&&u(t,"class",r)},d(a){a&&y(t),s=!1,o()}}}function Rn(e){let t,n,l,i,r,s,o,a,f,d,m,_;const p=[Cs,Es],g=[];function k(h,w){return h[14][0].type!=="component"?0:1}return l=k(e),i=g[l]=p[l](e),{c(){t=b("div"),n=b("div"),i.c(),this.h()},l(h){t=v(h,"DIV",{class:!0,"data-testid":!0});var w=A(t);n=v(w,"DIV",{class:!0});var E=A(n);i.l(E),E.forEach(y),w.forEach(y),this.h()},h(){u(n,"class",r="modal-transition "+e[21]),u(t,"class",a="modal-backdrop "+e[22]+" "+e[18]),u(t,"data-testid","modal-backdrop")},m(h,w){Y(h,t,w),c(t,n),g[l].m(n,null),d=!0,m||(_=[j(t,"mousedown",e[24]),j(t,"mouseup",e[25]),j(t,"touchstart",e[42],{passive:!0}),j(t,"touchend",e[43],{passive:!0}),ml(ws.call(null,t,!0))],m=!0)},p(h,w){e=h;let E=l;l=k(e),l===E?g[l].p(e,w):(Yt(),ut(g[E],1,1,()=>{g[E]=null}),Gt(),i=g[l],i?i.p(e,w):(i=g[l]=p[l](e),i.c()),lt(i,1),i.m(n,null)),(!d||w[0]&2097152&&r!==(r="modal-transition "+e[21]))&&u(n,"class",r),(!d||w[0]&4456448&&a!==(a="modal-backdrop "+e[22]+" "+e[18]))&&u(t,"class",a)},i(h){d||(lt(i),en(()=>{d&&(o&&o.end(1),s=Zn(n,Fe,{transition:e[9],params:e[10],enabled:e[8]}),s.start())}),en(()=>{d&&(f||(f=Tn(t,Fe,{transition:In,params:{duration:150},enabled:e[8]},!0)),f.run(1))}),d=!0)},o(h){ut(i),s&&s.invalidate(),o=xn(n,Fe,{transition:e[11],params:e[12],enabled:e[8]}),f||(f=Tn(t,Fe,{transition:In,params:{duration:150},enabled:e[8]},!1)),f.run(0),d=!1},d(h){h&&y(t),g[l].d(),h&&o&&o.end(),h&&f&&f.end(),m=!1,Kt(_)}}}function Ps(e){let t,n,l,i;en(e[44]);let r=e[14].length>0&&Nn(e);return{c(){r&&r.c(),t=Dt()},l(s){r&&r.l(s),t=Dt()},m(s,o){r&&r.m(s,o),Y(s,t,o),n=!0,l||(i=[j(window,"keydown",e[29]),j(window,"resize",e[44])],l=!0)},p(s,o){s[14].length>0?r?(r.p(s,o),o[0]&16384&&lt(r,1)):(r=Nn(s),r.c(),lt(r,1),r.m(t.parentNode,t)):r&&(Yt(),ut(r,1,1,()=>{r=null}),Gt())},i(s){n||(lt(r),n=!0)},o(s){ut(r),n=!1},d(s){s&&y(t),r&&r.d(s),l=!1,Kt(i)}}}const Ns="fixed top-0 left-0 right-0 bottom-0 bg-surface-backdrop-token p-4",Bs="w-full h-fit min-h-full overflow-y-auto flex justify-center",Ss="block overflow-y-auto",Vs="w-full h-auto";function Rs(e,t,n){let l,i,r,s,o,a,f;Le(e,$n,L=>n(49,f=L));const d=dl();let{components:m={}}=t,{position:_="items-center"}=t,{background:p="bg-surface-100-800-token"}=t,{width:g="w-modal"}=t,{height:k="h-auto"}=t,{padding:h="p-4"}=t,{spacing:w="space-y-4"}=t,{rounded:E="rounded-container-token"}=t,{shadow:O="shadow-xl"}=t,{zIndex:H="z-[999]"}=t,{buttonNeutral:P="variant-ghost-surface"}=t,{buttonPositive:V="variant-filled"}=t,{buttonTextCancel:R="Cancel"}=t,{buttonTextConfirm:B="Confirm"}=t,{buttonTextSubmit:q="Submit"}=t,{regionBackdrop:Z=""}=t,{regionHeader:J="text-2xl font-bold"}=t,{regionBody:S="max-h-[200px] overflow-hidden"}=t,{regionFooter:W="flex justify-end space-x-2"}=t,{transitions:M=!f}=t,{transitionIn:K=rn}=t,{transitionInParams:st={duration:150,opacity:0,x:0,y:100}}=t,{transitionOut:Q=rn}=t,{transitionOutParams:X={duration:150,opacity:0,x:0,y:100}}=t,tt;const z={buttonTextCancel:R,buttonTextConfirm:B,buttonTextSubmit:q};let $,I=!1,vt,_t,ot="overflow-y-hidden";const ct=cn();Le(e,ct,L=>n(14,a=L));function F(L){L[0].type==="prompt"&&n(15,tt=L[0].value),n(0,R=L[0].buttonTextCancel||z.buttonTextCancel),n(1,B=L[0].buttonTextConfirm||z.buttonTextConfirm),n(2,q=L[0].buttonTextSubmit||z.buttonTextSubmit),n(16,$=typeof L[0].component=="string"?m[L[0].component]:L[0].component)}function x(L){let ft=L?.clientHeight;ft||(ft=L?.firstChild?.clientHeight),ft&&(ft>_t?n(18,ot="overflow-y-auto"):n(18,ot="overflow-y-hidden"))}function kt(L){if(!(L.target instanceof Element))return;const ft=L.target.classList;(ft.contains("modal-backdrop")||ft.contains("modal-transition"))&&(I=!0)}function pt(L){if(!(L.target instanceof Element))return;const ft=L.target.classList;(ft.contains("modal-backdrop")||ft.contains("modal-transition"))&&I&&(a[0].response&&a[0].response(void 0),ct.close(),d("backdrop",L)),I=!1}function at(){a[0].response&&a[0].response(!1),ct.close()}function Ot(){a[0].response&&a[0].response(!0),ct.close()}function dt(L){L.preventDefault(),a[0].response&&(a[0].valueAttr!==void 0&&"type"in a[0].valueAttr&&a[0].valueAttr.type==="number"?a[0].response(parseInt(tt)):a[0].response(tt)),ct.close()}function ht(L){a.length&&L.code==="Escape"&&at()}function Jt(L){kn.call(this,e,L)}function mt(L){kn.call(this,e,L)}function nt(){n(17,_t=window.innerHeight)}function Pt(){tt=this.value,n(15,tt)}function et(L){_e[L?"unshift":"push"](()=>{vt=L,n(13,vt)})}function gt(L){_e[L?"unshift":"push"](()=>{vt=L,n(13,vt)})}return e.$$set=L=>{n(54,t=Ae(Ae({},t),nn(L))),"components"in L&&n(30,m=L.components),"position"in L&&n(31,_=L.position),"background"in L&&n(32,p=L.background),"width"in L&&n(33,g=L.width),"height"in L&&n(34,k=L.height),"padding"in L&&n(35,h=L.padding),"spacing"in L&&n(36,w=L.spacing),"rounded"in L&&n(37,E=L.rounded),"shadow"in L&&n(38,O=L.shadow),"zIndex"in L&&n(39,H=L.zIndex),"buttonNeutral"in L&&n(3,P=L.buttonNeutral),"buttonPositive"in L&&n(4,V=L.buttonPositive),"buttonTextCancel"in L&&n(0,R=L.buttonTextCancel),"buttonTextConfirm"in L&&n(1,B=L.buttonTextConfirm),"buttonTextSubmit"in L&&n(2,q=L.buttonTextSubmit),"regionBackdrop"in L&&n(40,Z=L.regionBackdrop),"regionHeader"in L&&n(5,J=L.regionHeader),"regionBody"in L&&n(6,S=L.regionBody),"regionFooter"in L&&n(7,W=L.regionFooter),"transitions"in L&&n(8,M=L.transitions),"transitionIn"in L&&n(9,K=L.transitionIn),"transitionInParams"in L&&n(10,st=L.transitionInParams),"transitionOut"in L&&n(11,Q=L.transitionOut),"transitionOutParams"in L&&n(12,X=L.transitionOutParams)},e.$$.update=()=>{e.$$.dirty[0]&16384&&a.length&&F(a),e.$$.dirty[0]&8192&&x(vt),e.$$.dirty[0]&16384|e.$$.dirty[1]&1&&n(41,l=a[0]?.position??_),n(22,i=`${Ns} ${Z} ${H} ${t.class??""} ${a[0]?.backdropClasses??""}`),e.$$.dirty[1]&1024&&n(21,r=`${Bs} ${l??""}`),e.$$.dirty[0]&16384|e.$$.dirty[1]&254&&n(20,s=`${Ss} ${p} ${g} ${k} ${h} ${w} ${E} ${O} ${a[0]?.modalClasses??""}`),e.$$.dirty[0]&255|e.$$.dirty[1]&767&&n(19,o={position:_,background:p,width:g,height:k,padding:h,spacing:w,rounded:E,shadow:O,buttonNeutral:P,buttonPositive:V,buttonTextCancel:R,buttonTextConfirm:B,buttonTextSubmit:q,regionBackdrop:Z,regionHeader:J,regionBody:S,regionFooter:W,onClose:at})},t=nn(t),[R,B,q,P,V,J,S,W,M,K,st,Q,X,vt,a,tt,$,_t,ot,o,s,r,i,ct,kt,pt,at,Ot,dt,ht,m,_,p,g,k,h,w,E,O,H,Z,l,Jt,mt,nt,Pt,et,gt]}class Fs extends Pe{constructor(t){super(),Ne(this,t,Rs,Ps,ge,{components:30,position:31,background:32,width:33,height:34,padding:35,spacing:36,rounded:37,shadow:38,zIndex:39,buttonNeutral:3,buttonPositive:4,buttonTextCancel:0,buttonTextConfirm:1,buttonTextSubmit:2,regionBackdrop:40,regionHeader:5,regionBody:6,regionFooter:7,transitions:8,transitionIn:9,transitionInParams:10,transitionOut:11,transitionOutParams:12},null,[-1,-1])}}function Fn(e,t,n){const l=e.slice();return l[36]=t[n],l[38]=n,l}function Un(e){let t,n,l=[],i=new Map,r,s,o,a=Ln(e[11]);const f=d=>d[36];for(let d=0;d<a.length;d+=1){let m=Fn(e,a,d),_=f(m);i.set(_,l[d]=jn(_,m))}return{c(){t=b("div"),n=b("div");for(let d=0;d<l.length;d+=1)l[d].c();this.h()},l(d){t=v(d,"DIV",{class:!0,"data-testid":!0});var m=A(t);n=v(m,"DIV",{class:!0});var _=A(n);for(let p=0;p<l.length;p+=1)l[p].l(_);_.forEach(y),m.forEach(y),this.h()},h(){u(n,"class",r="snackbar "+e[13]),u(t,"class",s="snackbar-wrapper "+e[14]),u(t,"data-testid","snackbar-wrapper")},m(d,m){Y(d,t,m),c(t,n);for(let _=0;_<l.length;_+=1)l[_]&&l[_].m(n,null);o=!0},p(d,m){if(m[0]&499103){a=Ln(d[11]),Yt();for(let _=0;_<l.length;_+=1)l[_].r();l=Ol(l,m,f,1,d,a,i,n,Pl,jn,null,Fn);for(let _=0;_<l.length;_+=1)l[_].a();Gt()}(!o||m[0]&8192&&r!==(r="snackbar "+d[13]))&&u(n,"class",r),(!o||m[0]&16384&&s!==(s="snackbar-wrapper "+d[14]))&&u(t,"class",s)},i(d){if(!o){for(let m=0;m<a.length;m+=1)lt(l[m]);o=!0}},o(d){for(let m=0;m<l.length;m+=1)ut(l[m]);o=!1},d(d){d&&y(t);for(let m=0;m<l.length;m+=1)l[m].d()}}}function Mn(e){let t,n,l=e[36].action&&zn(e),i=!e[36].hideDismiss&&qn(e);return{c(){t=b("div"),l&&l.c(),n=C(),i&&i.c(),this.h()},l(r){t=v(r,"DIV",{class:!0});var s=A(t);l&&l.l(s),n=T(s),i&&i.l(s),s.forEach(y),this.h()},h(){u(t,"class","toast-actions "+js)},m(r,s){Y(r,t,s),l&&l.m(t,null),c(t,n),i&&i.m(t,null)},p(r,s){r[36].action?l?l.p(r,s):(l=zn(r),l.c(),l.m(t,n)):l&&(l.d(1),l=null),r[36].hideDismiss?i&&(i.d(1),i=null):i?i.p(r,s):(i=qn(r),i.c(),i.m(t,null))},d(r){r&&y(t),l&&l.d(),i&&i.d()}}}function zn(e){let t,n,l=e[36].action.label+"",i,r;function s(){return e[30](e[38])}return{c(){t=b("button"),n=new Ge(!1),this.h()},l(o){t=v(o,"BUTTON",{class:!0});var a=A(t);n=Je(a,!1),a.forEach(y),this.h()},h(){n.a=null,u(t,"class",e[1])},m(o,a){Y(o,t,a),n.m(l,t),i||(r=j(t,"click",s),i=!0)},p(o,a){e=o,a[0]&2048&&l!==(l=e[36].action.label+"")&&n.p(l),a[0]&2&&u(t,"class",e[1])},d(o){o&&y(t),i=!1,r()}}}function qn(e){let t,n,l,i;function r(){return e[31](e[36])}return{c(){t=b("button"),n=Lt(e[3]),this.h()},l(s){t=v(s,"BUTTON",{class:!0,"aria-label":!0});var o=A(t);n=At(o,e[3]),o.forEach(y),this.h()},h(){u(t,"class",e[2]),u(t,"aria-label","Dismiss toast")},m(s,o){Y(s,t,o),c(t,n),l||(i=j(t,"click",r),l=!0)},p(s,o){e=s,o[0]&8&&he(n,e[3]),o[0]&4&&u(t,"class",e[2])},d(s){s&&y(t),l=!1,i()}}}function jn(e,t){let n,l,i,r,s=t[36].message+"",o,a,f,d,m,_,p,g=de,k,h,w,E=(t[36].action||!t[36].hideDismiss)&&Mn(t);function O(){return t[32](t[38])}function H(){return t[33](t[38])}return{key:e,first:null,c(){n=b("div"),l=b("div"),i=b("div"),r=new Ge(!1),o=C(),E&&E.c(),f=C(),this.h()},l(P){n=v(P,"DIV",{role:!0,"aria-live":!0});var V=A(n);l=v(V,"DIV",{class:!0,"data-testid":!0});var R=A(l);i=v(R,"DIV",{class:!0});var B=A(i);r=Je(B,!1),B.forEach(y),o=T(R),E&&E.l(R),R.forEach(y),f=T(V),V.forEach(y),this.h()},h(){r.a=null,u(i,"class","text-base"),u(l,"class",a="toast "+t[12]+" "+(t[36].background??t[0])+" "+(t[36].classes??"")),u(l,"data-testid","toast"),u(n,"role",d=t[36].hideDismiss?"alert":"alertdialog"),u(n,"aria-live","polite"),this.first=n},m(P,V){Y(P,n,V),c(n,l),c(l,i),r.m(s,i),c(l,o),E&&E.m(l,null),c(n,f),k=!0,h||(w=[j(n,"mouseenter",O),j(n,"mouseleave",H)],h=!0)},p(P,V){t=P,(!k||V[0]&2048)&&s!==(s=t[36].message+"")&&r.p(s),t[36].action||!t[36].hideDismiss?E?E.p(t,V):(E=Mn(t),E.c(),E.m(l,null)):E&&(E.d(1),E=null),(!k||V[0]&6145&&a!==(a="toast "+t[12]+" "+(t[36].background??t[0])+" "+(t[36].classes??"")))&&u(l,"class",a),(!k||V[0]&2048&&d!==(d=t[36].hideDismiss?"alert":"alertdialog"))&&u(n,"role",d)},r(){p=n.getBoundingClientRect()},f(){Bl(n),g(),tl(n,p)},a(){g(),g=Nl(n,p,ks,{duration:t[4]?250:0})},i(P){k||(en(()=>{k&&(_&&_.end(1),m=Zn(n,Fe,{transition:t[5],params:{x:t[10].x,y:t[10].y,...t[6]},enabled:t[4]}),m.start())}),k=!0)},o(P){m&&m.invalidate(),_=xn(n,Fe,{transition:t[7],params:{x:t[10].x,y:t[10].y,...t[8]},enabled:t[4]}),k=!1},d(P){P&&y(n),E&&E.d(),P&&_&&_.end(),h=!1,Kt(w)}}}function Us(e){let t,n,l=e[9].length&&Un(e);return{c(){l&&l.c(),t=Dt()},l(i){l&&l.l(i),t=Dt()},m(i,r){l&&l.m(i,r),Y(i,t,r),n=!0},p(i,r){i[9].length?l?(l.p(i,r),r[0]&512&&lt(l,1)):(l=Un(i),l.c(),lt(l,1),l.m(t.parentNode,t)):l&&(Yt(),ut(l,1,1,()=>{l=null}),Gt())},i(i){n||(lt(l),n=!0)},o(i){ut(l),n=!1},d(i){i&&y(t),l&&l.d(i)}}}const Ms="flex fixed top-0 left-0 right-0 bottom-0 pointer-events-none",zs="flex flex-col gap-y-2",qs="flex justify-between items-center pointer-events-auto",js="flex items-center space-x-2";function Hs(e,t,n){let l,i,r,s,o,a;Le(e,$n,I=>n(34,a=I));const f=Ll();Le(e,f,I=>n(9,o=I));let{position:d="b"}=t,{max:m=3}=t,{background:_="variant-filled-secondary"}=t,{width:p="max-w-[640px]"}=t,{color:g=""}=t,{padding:k="p-4"}=t,{spacing:h="space-x-4"}=t,{rounded:w="rounded-container-token"}=t,{shadow:E="shadow-lg"}=t,{zIndex:O="z-[888]"}=t,{buttonAction:H="btn variant-filled"}=t,{buttonDismiss:P="btn-icon btn-icon-sm variant-filled"}=t,{buttonDismissLabel:V="✕"}=t,{transitions:R=!a}=t,{transitionIn:B=rn}=t,{transitionInParams:q={duration:250}}=t,{transitionOut:Z=rn}=t,{transitionOutParams:J={duration:250}}=t,S,W,M={x:0,y:0};switch(d){case"t":S="justify-center items-start",W="items-center",M={x:0,y:-100};break;case"b":S="justify-center items-end",W="items-center",M={x:0,y:100};break;case"l":S="justify-start items-center",W="items-start",M={x:-100,y:0};break;case"r":S="justify-end items-center",W="items-end",M={x:100,y:0};break;case"tl":S="justify-start items-start",W="items-start",M={x:-100,y:0};break;case"tr":S="justify-end items-start",W="items-end",M={x:100,y:0};break;case"bl":S="justify-start items-end",W="items-start",M={x:-100,y:0};break;case"br":S="justify-end items-end",W="items-end",M={x:100,y:0};break}function K(I){o[I]?.action?.response(),f.close(o[I].id)}function st(I){o[I]?.hoverable&&(f.freeze(I),n(13,i+=" scale-[105%]"))}function Q(I){o[I]?.hoverable&&(f.unfreeze(I),n(13,i=i.replace(" scale-[105%]","")))}const X=I=>K(I),tt=I=>f.close(I.id),z=I=>st(I),$=I=>Q(I);return e.$$set=I=>{n(35,t=Ae(Ae({},t),nn(I))),"position"in I&&n(19,d=I.position),"max"in I&&n(20,m=I.max),"background"in I&&n(0,_=I.background),"width"in I&&n(21,p=I.width),"color"in I&&n(22,g=I.color),"padding"in I&&n(23,k=I.padding),"spacing"in I&&n(24,h=I.spacing),"rounded"in I&&n(25,w=I.rounded),"shadow"in I&&n(26,E=I.shadow),"zIndex"in I&&n(27,O=I.zIndex),"buttonAction"in I&&n(1,H=I.buttonAction),"buttonDismiss"in I&&n(2,P=I.buttonDismiss),"buttonDismissLabel"in I&&n(3,V=I.buttonDismissLabel),"transitions"in I&&n(4,R=I.transitions),"transitionIn"in I&&n(5,B=I.transitionIn),"transitionInParams"in I&&n(6,q=I.transitionInParams),"transitionOut"in I&&n(7,Z=I.transitionOut),"transitionOutParams"in I&&n(8,J=I.transitionOutParams)},e.$$.update=()=>{n(14,l=`${Ms} ${S} ${O} ${t.class||""}`),e.$$.dirty[0]&545259520&&n(13,i=`${zs} ${W} ${k}`),e.$$.dirty[0]&132120576&&n(12,r=`${qs} ${p} ${g} ${k} ${h} ${w} ${E}`),e.$$.dirty[0]&1049088&&n(11,s=Array.from(o).slice(0,m))},t=nn(t),[_,H,P,V,R,B,q,Z,J,o,M,s,r,i,l,f,K,st,Q,d,m,p,g,k,h,w,E,O,S,W,X,tt,z,$]}class Ws extends Pe{constructor(t){super(),Ne(this,t,Hs,Us,ge,{position:19,max:20,background:0,width:21,color:22,padding:23,spacing:24,rounded:25,shadow:26,zIndex:27,buttonAction:1,buttonDismiss:2,buttonDismissLabel:3,transitions:4,transitionIn:5,transitionInParams:6,transitionOut:7,transitionOutParams:8},null,[-1,-1])}}function Hn(e){let t,n,l,i,r,s,o="Название",a,f,d,m,_,p="URL",g,k,h,w,E,O="Тип",H,P,V,R,B,q="Контекст",Z,J,S,W,M,K="Шаблон",st,Q,X,tt,z,$,I,vt,_t,ot,ct,F,x,kt,pt,at,Ot,dt,ht,Jt,mt=e[1]?.predict_params&&Wn(e),nt=e[1]?.predict_params&&Qn(e);return{c(){t=b("div"),n=b("form"),l=b("div"),i=b("div"),r=b("div"),s=b("label"),s.textContent=o,a=C(),f=b("input"),d=C(),m=b("div"),_=b("label"),_.textContent=p,g=C(),k=b("input"),h=C(),w=b("div"),E=b("label"),E.textContent=O,H=C(),P=b("input"),V=C(),R=b("div"),B=b("label"),B.textContent=q,Z=C(),J=b("input"),S=C(),W=b("div"),M=b("label"),M.textContent=K,st=C(),Q=b("textarea"),X=C(),mt&&mt.c(),tt=C(),nt&&nt.c(),z=C(),$=b("footer"),I=b("button"),vt=Lt("Удалить"),ot=C(),ct=b("button"),F=Lt("Отмена"),kt=C(),pt=b("button"),at=Lt("Сохранить"),this.h()},l(Pt){t=v(Pt,"DIV",{class:!0});var et=A(t);n=v(et,"FORM",{class:!0});var gt=A(n);l=v(gt,"DIV",{class:!0});var L=A(l);i=v(L,"DIV",{});var ft=A(i);r=v(ft,"DIV",{class:!0});var bt=A(r);s=v(bt,"LABEL",{class:!0,"data-svelte-h":!0}),it(s)!=="svelte-1iuzjaf"&&(s.textContent=o),a=T(bt),f=v(bt,"INPUT",{type:!0,class:!0}),bt.forEach(y),d=T(ft),m=v(ft,"DIV",{class:!0});var Ht=A(m);_=v(Ht,"LABEL",{class:!0,"data-svelte-h":!0}),it(_)!=="svelte-11uwj0a"&&(_.textContent=p),g=T(Ht),k=v(Ht,"INPUT",{type:!0,class:!0}),Ht.forEach(y),h=T(ft),w=v(ft,"DIV",{class:!0});var yt=A(w);E=v(yt,"LABEL",{class:!0,"data-svelte-h":!0}),it(E)!=="svelte-17yflt8"&&(E.textContent=O),H=T(yt),P=v(yt,"INPUT",{type:!0,class:!0}),yt.forEach(y),V=T(ft),R=v(ft,"DIV",{class:!0});var Et=A(R);B=v(Et,"LABEL",{class:!0,"data-svelte-h":!0}),it(B)!=="svelte-mg5e2a"&&(B.textContent=q),Z=T(Et),J=v(Et,"INPUT",{type:!0,class:!0}),Et.forEach(y),S=T(ft),W=v(ft,"DIV",{class:!0});var Zt=A(W);M=v(Zt,"LABEL",{class:!0,"data-svelte-h":!0}),it(M)!=="svelte-iadtw0"&&(M.textContent=K),st=T(Zt),Q=v(Zt,"TEXTAREA",{class:!0}),A(Q).forEach(y),Zt.forEach(y),ft.forEach(y),X=T(L),mt&&mt.l(L),L.forEach(y),tt=T(gt),nt&&nt.l(gt),gt.forEach(y),z=T(et),$=v(et,"FOOTER",{class:!0});var Ut=A($);I=v(Ut,"BUTTON",{class:!0});var wt=A(I);vt=At(wt,"Удалить"),wt.forEach(y),ot=T(Ut),ct=v(Ut,"BUTTON",{class:!0});var xt=A(ct);F=At(xt,"Отмена"),xt.forEach(y),kt=T(Ut),pt=v(Ut,"BUTTON",{class:!0});var Ct=A(pt);at=At(Ct,"Сохранить"),Ct.forEach(y),Ut.forEach(y),et.forEach(y),this.h()},h(){u(s,"class","label"),u(f,"type","text"),f.readOnly=!0,u(f,"class","input input-bordered w-full"),u(r,"class","form-control"),u(_,"class","label"),u(k,"type","text"),k.readOnly=!0,u(k,"class","input input-bordered w-full"),u(m,"class","form-control"),u(E,"class","label"),u(P,"type","text"),P.readOnly=!0,u(P,"class","input input-bordered w-full"),u(w,"class","form-control"),u(B,"class","label"),u(J,"type","number"),J.readOnly=!0,u(J,"class","input input-bordered w-full"),u(R,"class","form-control"),u(M,"class","label"),u(Q,"class","textarea textarea-bordered w-full"),u(W,"class","form-control"),u(l,"class","grid grid-cols-3 gap-4"),u(n,"class","space-y-4"),u(I,"class",_t="btn "+e[0].buttonNeutral),Re(I,"hidden",!e[1].name.endsWith("(изменено)")),u(ct,"class",x="btn "+e[0].buttonNeutral),u(pt,"class",Ot="btn "+e[0].buttonPositive),u($,"class",dt="modal-footer "+e[0].regionFooter),u(t,"class",Xs)},m(Pt,et){Y(Pt,t,et),c(t,n),c(n,l),c(l,i),c(i,r),c(r,s),c(r,a),c(r,f),N(f,e[1].name),c(i,d),c(i,m),c(m,_),c(m,g),c(m,k),N(k,e[1].url),c(i,h),c(i,w),c(w,E),c(w,H),c(w,P),N(P,e[1].type),c(i,V),c(i,R),c(R,B),c(R,Z),c(R,J),N(J,e[1].context),c(i,S),c(i,W),c(W,M),c(W,st),c(W,Q),N(Q,e[1].template),c(l,X),mt&&mt.m(l,null),c(n,tt),nt&&nt.m(n,null),c(t,z),c(t,$),c($,I),c(I,vt),c($,ot),c($,ct),c(ct,F),c($,kt),c($,pt),c(pt,at),ht||(Jt=[j(f,"input",e[9]),j(k,"input",e[10]),j(P,"input",e[11]),j(J,"input",e[12]),j(Q,"input",e[13]),j(I,"click",e[8]),j(ct,"click",function(){Jn(e[0].onClose)&&e[0].onClose.apply(this,arguments)}),j(pt,"click",e[7])],ht=!0)},p(Pt,et){e=Pt,et[0]&2&&f.value!==e[1].name&&N(f,e[1].name),et[0]&2&&k.value!==e[1].url&&N(k,e[1].url),et[0]&2&&P.value!==e[1].type&&N(P,e[1].type),et[0]&2&&G(J.value)!==e[1].context&&N(J,e[1].context),et[0]&2&&N(Q,e[1].template),e[1]?.predict_params?mt?mt.p(e,et):(mt=Wn(e),mt.c(),mt.m(l,null)):mt&&(mt.d(1),mt=null),e[1]?.predict_params?nt?nt.p(e,et):(nt=Qn(e),nt.c(),nt.m(n,null)):nt&&(nt.d(1),nt=null),et[0]&1&&_t!==(_t="btn "+e[0].buttonNeutral)&&u(I,"class",_t),et[0]&3&&Re(I,"hidden",!e[1].name.endsWith("(изменено)")),et[0]&1&&x!==(x="btn "+e[0].buttonNeutral)&&u(ct,"class",x),et[0]&1&&Ot!==(Ot="btn "+e[0].buttonPositive)&&u(pt,"class",Ot),et[0]&1&&dt!==(dt="modal-footer "+e[0].regionFooter)&&u($,"class",dt)},d(Pt){Pt&&y(t),mt&&mt.d(),nt&&nt.d(),ht=!1,Kt(Jt)}}}function Wn(e){let t,n,l,i,r,s,o,a="n_predict",f,d,m,_,p,g="temperature",k,h,w,E,O,H="top_k",P,V,R,B,q,Z="top_p",J,S,W,M,K,st="min_p",Q,X,tt,z,$,I,vt="seed",_t,ot,ct,F,x,kt="repeat_penalty",pt,at,Ot,dt,ht,Jt="repeat_last_n",mt,nt,Pt,et,gt,L="frequency_penalty",ft,bt,Ht,yt,Et,Zt="presence_penalty",Ut,wt,xt,Ct,Vt,He="n_keep",ye,Tt,we,Nt,Rt,We="cache_prompt",ke,Bt,Ee,St,Ft,Qe="stop (разделённые ;)",Ce,It,Te,Xe;return{c(){t=b("input"),n=C(),l=b("input"),i=C(),r=b("div"),s=b("div"),o=b("label"),o.textContent=a,f=C(),d=b("input"),m=C(),_=b("div"),p=b("label"),p.textContent=g,k=C(),h=b("input"),w=C(),E=b("div"),O=b("label"),O.textContent=H,P=C(),V=b("input"),R=C(),B=b("div"),q=b("label"),q.textContent=Z,J=C(),S=b("input"),W=C(),M=b("div"),K=b("label"),K.textContent=st,Q=C(),X=b("input"),tt=C(),z=b("div"),$=b("div"),I=b("label"),I.textContent=vt,_t=C(),ot=b("input"),ct=C(),F=b("div"),x=b("label"),x.textContent=kt,pt=C(),at=b("input"),Ot=C(),dt=b("div"),ht=b("label"),ht.textContent=Jt,mt=C(),nt=b("input"),Pt=C(),et=b("div"),gt=b("label"),gt.textContent=L,ft=C(),bt=b("input"),Ht=C(),yt=b("div"),Et=b("label"),Et.textContent=Zt,Ut=C(),wt=b("input"),xt=C(),Ct=b("div"),Vt=b("label"),Vt.textContent=He,ye=C(),Tt=b("input"),we=C(),Nt=b("div"),Rt=b("label"),Rt.textContent=We,ke=C(),Bt=b("input"),Ee=C(),St=b("div"),Ft=b("label"),Ft.textContent=Qe,Ce=C(),It=b("input"),this.h()},l(D){t=v(D,"INPUT",{type:!0}),n=T(D),l=v(D,"INPUT",{type:!0}),i=T(D),r=v(D,"DIV",{});var U=A(r);s=v(U,"DIV",{class:!0});var te=A(s);o=v(te,"LABEL",{class:!0,"data-svelte-h":!0}),it(o)!=="svelte-1kr1z63"&&(o.textContent=a),f=T(te),d=v(te,"INPUT",{type:!0,class:!0}),te.forEach(y),m=T(U),_=v(U,"DIV",{class:!0});var ee=A(_);p=v(ee,"LABEL",{class:!0,"data-svelte-h":!0}),it(p)!=="svelte-1na66r1"&&(p.textContent=g),k=T(ee),h=v(ee,"INPUT",{type:!0,step:!0,class:!0}),ee.forEach(y),w=T(U),E=v(U,"DIV",{class:!0});var ne=A(E);O=v(ne,"LABEL",{class:!0,"data-svelte-h":!0}),it(O)!=="svelte-8vj08y"&&(O.textContent=H),P=T(ne),V=v(ne,"INPUT",{type:!0,class:!0}),ne.forEach(y),R=T(U),B=v(U,"DIV",{class:!0});var le=A(B);q=v(le,"LABEL",{class:!0,"data-svelte-h":!0}),it(q)!=="svelte-fypyrb"&&(q.textContent=Z),J=T(le),S=v(le,"INPUT",{type:!0,step:!0,class:!0}),le.forEach(y),W=T(U),M=v(U,"DIV",{class:!0});var se=A(M);K=v(se,"LABEL",{class:!0,"data-svelte-h":!0}),it(K)!=="svelte-1jkuvbg"&&(K.textContent=st),Q=T(se),X=v(se,"INPUT",{type:!0,step:!0,class:!0}),se.forEach(y),U.forEach(y),tt=T(D),z=v(D,"DIV",{});var rt=A(z);$=v(rt,"DIV",{class:!0});var ie=A($);I=v(ie,"LABEL",{class:!0,"data-svelte-h":!0}),it(I)!=="svelte-1rdvqbw"&&(I.textContent=vt),_t=T(ie),ot=v(ie,"INPUT",{type:!0,class:!0}),ie.forEach(y),ct=T(rt),F=v(rt,"DIV",{class:!0});var re=A(F);x=v(re,"LABEL",{class:!0,"data-svelte-h":!0}),it(x)!=="svelte-1v8pi60"&&(x.textContent=kt),pt=T(re),at=v(re,"INPUT",{type:!0,step:!0,class:!0}),re.forEach(y),Ot=T(rt),dt=v(rt,"DIV",{class:!0});var oe=A(dt);ht=v(oe,"LABEL",{class:!0,"data-svelte-h":!0}),it(ht)!=="svelte-1pm76em"&&(ht.textContent=Jt),mt=T(oe),nt=v(oe,"INPUT",{type:!0,class:!0}),oe.forEach(y),Pt=T(rt),et=v(rt,"DIV",{class:!0});var ae=A(et);gt=v(ae,"LABEL",{class:!0,"data-svelte-h":!0}),it(gt)!=="svelte-r3dewv"&&(gt.textContent=L),ft=T(ae),bt=v(ae,"INPUT",{type:!0,class:!0}),ae.forEach(y),Ht=T(rt),yt=v(rt,"DIV",{class:!0});var ue=A(yt);Et=v(ue,"LABEL",{class:!0,"data-svelte-h":!0}),it(Et)!=="svelte-1nurpeq"&&(Et.textContent=Zt),Ut=T(ue),wt=v(ue,"INPUT",{type:!0,class:!0}),ue.forEach(y),xt=T(rt),Ct=v(rt,"DIV",{class:!0});var ce=A(Ct);Vt=v(ce,"LABEL",{class:!0,"data-svelte-h":!0}),it(Vt)!=="svelte-16nkph1"&&(Vt.textContent=He),ye=T(ce),Tt=v(ce,"INPUT",{type:!0,class:!0}),ce.forEach(y),we=T(rt),Nt=v(rt,"DIV",{class:!0});var fe=A(Nt);Rt=v(fe,"LABEL",{class:!0,"data-svelte-h":!0}),it(Rt)!=="svelte-4hbiic"&&(Rt.textContent=We),ke=T(fe),Bt=v(fe,"INPUT",{type:!0,class:!0}),fe.forEach(y),Ee=T(rt),St=v(rt,"DIV",{class:!0});var pe=A(St);Ft=v(pe,"LABEL",{class:!0,"data-svelte-h":!0}),it(Ft)!=="svelte-dixh5v"&&(Ft.textContent=Qe),Ce=T(pe),It=v(pe,"INPUT",{type:!0,class:!0}),pe.forEach(y),rt.forEach(y),this.h()},h(){u(t,"type","hidden"),u(l,"type","hidden"),u(o,"class","label"),u(d,"type","number"),u(d,"class","input input-bordered w-full"),u(s,"class","form-control"),u(p,"class","label"),u(h,"type","number"),u(h,"step","0.1"),u(h,"class","input input-bordered w-full"),u(_,"class","form-control"),u(O,"class","label"),u(V,"type","number"),u(V,"class","input input-bordered w-full"),u(E,"class","form-control"),u(q,"class","label"),u(S,"type","number"),u(S,"step","0.1"),u(S,"class","input input-bordered w-full"),u(B,"class","form-control"),u(K,"class","label"),u(X,"type","number"),u(X,"step","0.1"),u(X,"class","input input-bordered w-full"),u(M,"class","form-control"),u(I,"class","label"),u(ot,"type","number"),u(ot,"class","input input-bordered w-full"),u($,"class","form-control"),u(x,"class","label"),u(at,"type","number"),u(at,"step","0.1"),u(at,"class","input input-bordered w-full"),u(F,"class","form-control"),u(ht,"class","label"),u(nt,"type","number"),u(nt,"class","input input-bordered w-full"),u(dt,"class","form-control"),u(gt,"class","label"),u(bt,"type","number"),u(bt,"class","input input-bordered w-full"),u(et,"class","form-control"),u(Et,"class","label"),u(wt,"type","number"),u(wt,"class","input input-bordered w-full"),u(yt,"class","form-control"),u(Vt,"class","label"),u(Tt,"type","number"),u(Tt,"class","input input-bordered w-full"),u(Ct,"class","form-control"),u(Rt,"class","label"),u(Bt,"type","checkbox"),u(Bt,"class","checkbox"),u(Nt,"class","form-control"),u(Ft,"class","label"),u(It,"type","text"),u(It,"class","input input-bordered w-full"),u(St,"class","form-control")},m(D,U){Y(D,t,U),N(t,e[1].predict_params.retry_if_text_not_present),Y(D,n,U),Y(D,l,U),N(l,e[1].predict_params.retry_count),Y(D,i,U),Y(D,r,U),c(r,s),c(s,o),c(s,f),c(s,d),N(d,e[1].predict_params.n_predict),c(r,m),c(r,_),c(_,p),c(_,k),c(_,h),N(h,e[1].predict_params.temperature),c(r,w),c(r,E),c(E,O),c(E,P),c(E,V),N(V,e[1].predict_params.top_k),c(r,R),c(r,B),c(B,q),c(B,J),c(B,S),N(S,e[1].predict_params.top_p),c(r,W),c(r,M),c(M,K),c(M,Q),c(M,X),N(X,e[1].predict_params.min_p),Y(D,tt,U),Y(D,z,U),c(z,$),c($,I),c($,_t),c($,ot),N(ot,e[1].predict_params.seed),c(z,ct),c(z,F),c(F,x),c(F,pt),c(F,at),N(at,e[1].predict_params.repeat_penalty),c(z,Ot),c(z,dt),c(dt,ht),c(dt,mt),c(dt,nt),N(nt,e[1].predict_params.repeat_last_n),c(z,Pt),c(z,et),c(et,gt),c(et,ft),c(et,bt),N(bt,e[1].predict_params.frequency_penalty),c(z,Ht),c(z,yt),c(yt,Et),c(yt,Ut),c(yt,wt),N(wt,e[1].predict_params.presence_penalty),c(z,xt),c(z,Ct),c(Ct,Vt),c(Ct,ye),c(Ct,Tt),N(Tt,e[1].predict_params.n_keep),c(z,we),c(z,Nt),c(Nt,Rt),c(Nt,ke),c(Nt,Bt),Bt.checked=e[1].predict_params.cache_prompt,c(z,Ee),c(z,St),c(St,Ft),c(St,Ce),c(St,It),N(It,e[2]),Te||(Xe=[j(t,"input",e[14]),j(l,"input",e[15]),j(d,"input",e[16]),j(h,"input",e[17]),j(V,"input",e[18]),j(S,"input",e[19]),j(X,"input",e[20]),j(ot,"input",e[21]),j(at,"input",e[22]),j(nt,"input",e[23]),j(bt,"input",e[24]),j(wt,"input",e[25]),j(Tt,"input",e[26]),j(Bt,"change",e[27]),j(It,"input",e[28])],Te=!0)},p(D,U){U[0]&2&&N(t,D[1].predict_params.retry_if_text_not_present),U[0]&2&&N(l,D[1].predict_params.retry_count),U[0]&2&&G(d.value)!==D[1].predict_params.n_predict&&N(d,D[1].predict_params.n_predict),U[0]&2&&G(h.value)!==D[1].predict_params.temperature&&N(h,D[1].predict_params.temperature),U[0]&2&&G(V.value)!==D[1].predict_params.top_k&&N(V,D[1].predict_params.top_k),U[0]&2&&G(S.value)!==D[1].predict_params.top_p&&N(S,D[1].predict_params.top_p),U[0]&2&&G(X.value)!==D[1].predict_params.min_p&&N(X,D[1].predict_params.min_p),U[0]&2&&G(ot.value)!==D[1].predict_params.seed&&N(ot,D[1].predict_params.seed),U[0]&2&&G(at.value)!==D[1].predict_params.repeat_penalty&&N(at,D[1].predict_params.repeat_penalty),U[0]&2&&G(nt.value)!==D[1].predict_params.repeat_last_n&&N(nt,D[1].predict_params.repeat_last_n),U[0]&2&&G(bt.value)!==D[1].predict_params.frequency_penalty&&N(bt,D[1].predict_params.frequency_penalty),U[0]&2&&G(wt.value)!==D[1].predict_params.presence_penalty&&N(wt,D[1].predict_params.presence_penalty),U[0]&2&&G(Tt.value)!==D[1].predict_params.n_keep&&N(Tt,D[1].predict_params.n_keep),U[0]&2&&(Bt.checked=D[1].predict_params.cache_prompt),U[0]&4&&It.value!==D[2]&&N(It,D[2])},d(D){D&&(y(t),y(n),y(l),y(i),y(r),y(tt),y(z)),Te=!1,Kt(Xe)}}}function Qn(e){let t,n=e[4]?"Скрыть":"Показать",l,i,r,s,o,a,f=e[3]?"Скрыть":"Показать",d,m,_,p,g,k;return{c(){t=b("button"),l=Lt(n),i=Lt(" системный промпт"),r=C(),s=b("textarea"),o=C(),a=b("button"),d=Lt(f),m=Lt(" главный промпт"),_=C(),p=b("textarea"),this.h()},l(h){t=v(h,"BUTTON",{class:!0});var w=A(t);l=At(w,n),i=At(w," системный промпт"),w.forEach(y),r=T(h),s=v(h,"TEXTAREA",{class:!0}),A(s).forEach(y),o=T(h),a=v(h,"BUTTON",{class:!0});var E=A(a);d=At(E,f),m=At(E," главный промпт"),E.forEach(y),_=T(h),p=v(h,"TEXTAREA",{class:!0}),A(p).forEach(y),this.h()},h(){u(t,"class","btn variant-outline-tertiary"),u(s,"class","w-full min-h-96"),Re(s,"hidden",!e[4]),u(a,"class","btn variant-outline-tertiary"),u(p,"class","w-full min-h-96"),Re(p,"hidden",!e[3])},m(h,w){Y(h,t,w),c(t,l),c(t,i),Y(h,r,w),Y(h,s,w),N(s,e[1].predict_params.system_prompt),Y(h,o,w),Y(h,a,w),c(a,d),c(a,m),Y(h,_,w),Y(h,p,w),N(p,e[1].predict_params.user_prompt),g||(k=[j(t,"click",e[29]),j(s,"input",e[30]),j(a,"click",e[31]),j(p,"input",e[32])],g=!0)},p(h,w){w[0]&16&&n!==(n=h[4]?"Скрыть":"Показать")&&he(l,n),w[0]&2&&N(s,h[1].predict_params.system_prompt),w[0]&16&&Re(s,"hidden",!h[4]),w[0]&8&&f!==(f=h[3]?"Скрыть":"Показать")&&he(d,f),w[0]&2&&N(p,h[1].predict_params.user_prompt),w[0]&8&&Re(p,"hidden",!h[3])},d(h){h&&(y(t),y(r),y(s),y(o),y(a),y(_),y(p)),g=!1,Kt(k)}}}function Qs(e){let t,n=e[5][0]&&Hn(e);return{c(){n&&n.c(),t=Dt()},l(l){n&&n.l(l),t=Dt()},m(l,i){n&&n.m(l,i),Y(l,t,i)},p(l,i){l[5][0]?n?n.p(l,i):(n=Hn(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:de,o:de,d(l){l&&y(t),n&&n.d(l)}}}const Xs="card p-4 shadow-xl space-y-4 w-3/4";function Ks(e,t,n){let l,{parent:i}=t;const r=cn();Le(e,r,z=>n(5,l=z));let s,o="";l[0].meta&&(s=structuredClone(l[0].meta),s.predict_params==null&&(s.predict_params={}),o=s?.predict_params&&s.predict_params.stop?s.predict_params.stop.join("; "):"");function a(){s.predict_params&&n(1,s.predict_params.stop=o.split(";").map(z=>z.trim()),s),l[0].response&&l[0].response(s),r.close()}function f(){l[0].response&&l[0].response({delete:s.name}),r.close()}let d=!1,m=!1;function _(){s.name=this.value,n(1,s)}function p(){s.url=this.value,n(1,s)}function g(){s.type=this.value,n(1,s)}function k(){s.context=G(this.value),n(1,s)}function h(){s.template=this.value,n(1,s)}function w(){s.predict_params.retry_if_text_not_present=this.value,n(1,s)}function E(){s.predict_params.retry_count=this.value,n(1,s)}function O(){s.predict_params.n_predict=G(this.value),n(1,s)}function H(){s.predict_params.temperature=G(this.value),n(1,s)}function P(){s.predict_params.top_k=G(this.value),n(1,s)}function V(){s.predict_params.top_p=G(this.value),n(1,s)}function R(){s.predict_params.min_p=G(this.value),n(1,s)}function B(){s.predict_params.seed=G(this.value),n(1,s)}function q(){s.predict_params.repeat_penalty=G(this.value),n(1,s)}function Z(){s.predict_params.repeat_last_n=G(this.value),n(1,s)}function J(){s.predict_params.frequency_penalty=G(this.value),n(1,s)}function S(){s.predict_params.presence_penalty=G(this.value),n(1,s)}function W(){s.predict_params.n_keep=G(this.value),n(1,s)}function M(){s.predict_params.cache_prompt=this.checked,n(1,s)}function K(){o=this.value,n(2,o)}const st=()=>{n(4,m=!m)};function Q(){s.predict_params.system_prompt=this.value,n(1,s)}const X=()=>{n(3,d=!d)};function tt(){s.predict_params.user_prompt=this.value,n(1,s)}return e.$$set=z=>{"parent"in z&&n(0,i=z.parent)},[i,s,o,d,m,l,r,a,f,_,p,g,k,h,w,E,O,H,P,V,R,B,q,Z,J,S,W,M,K,st,Q,X,tt]}class Ys extends Pe{constructor(t){super(),Ne(this,t,Ks,Qs,ge,{parent:0},null,[-1,-1])}}function Xn(e){let t,n,l,i,r,s,o="URL",a,f,d,m,_,p="Шаблон",g,k,h,w,E,O,H,P,V,R,B,q,Z,J,S,W,M,K=e[1]?.predict_params&&Kn(e),st=!1;return{c(){t=b("div"),n=b("form"),l=b("div"),i=b("div"),r=b("div"),s=b("label"),s.textContent=o,a=C(),f=b("input"),d=C(),m=b("div"),_=b("label"),_.textContent=p,g=C(),k=b("textarea"),h=C(),K&&K.c(),w=C(),E=C(),O=b("footer"),H=b("button"),P=Lt("Отмена"),R=C(),B=b("button"),q=Lt("Сохранить"),this.h()},l(Q){t=v(Q,"DIV",{class:!0});var X=A(t);n=v(X,"FORM",{class:!0});var tt=A(n);l=v(tt,"DIV",{class:!0});var z=A(l);i=v(z,"DIV",{});var $=A(i);r=v($,"DIV",{class:!0});var I=A(r);s=v(I,"LABEL",{class:!0,"data-svelte-h":!0}),it(s)!=="svelte-11uwj0a"&&(s.textContent=o),a=T(I),f=v(I,"INPUT",{type:!0,class:!0}),I.forEach(y),d=T($),m=v($,"DIV",{class:!0});var vt=A(m);_=v(vt,"LABEL",{class:!0,"data-svelte-h":!0}),it(_)!=="svelte-iadtw0"&&(_.textContent=p),g=T(vt),k=v(vt,"TEXTAREA",{class:!0}),A(k).forEach(y),vt.forEach(y),$.forEach(y),h=T(z),K&&K.l(z),z.forEach(y),w=T(tt),tt.forEach(y),E=T(X),O=v(X,"FOOTER",{class:!0});var _t=A(O);H=v(_t,"BUTTON",{class:!0});var ot=A(H);P=At(ot,"Отмена"),ot.forEach(y),R=T(_t),B=v(_t,"BUTTON",{class:!0});var ct=A(B);q=At(ct,"Сохранить"),ct.forEach(y),_t.forEach(y),X.forEach(y),this.h()},h(){u(s,"class","label"),u(f,"type","text"),f.readOnly=!0,u(f,"class","input input-bordered w-full"),u(r,"class","form-control"),u(_,"class","label"),u(k,"class","textarea textarea-bordered w-full"),u(m,"class","form-control"),u(l,"class","grid grid-cols-3 gap-4"),u(n,"class","space-y-4"),u(H,"class",V="btn "+e[0].buttonNeutral),u(B,"class",Z="btn "+e[0].buttonPositive),u(O,"class",J="modal-footer "+e[0].regionFooter),u(t,"class",Js)},m(Q,X){Y(Q,t,X),c(t,n),c(n,l),c(l,i),c(i,r),c(r,s),c(r,a),c(r,f),N(f,e[1].url),c(i,d),c(i,m),c(m,_),c(m,g),c(m,k),N(k,e[1].template),c(l,h),K&&K.m(l,null),c(n,w),c(t,E),c(t,O),c(O,H),c(H,P),c(O,R),c(O,B),c(B,q),S=!0,W||(M=[j(f,"input",e[7]),j(k,"input",e[8]),j(H,"click",e[6]),j(B,"click",e[5])],W=!0)},p(Q,X){X&2&&f.value!==Q[1].url&&N(f,Q[1].url),X&2&&N(k,Q[1].template),Q[1]?.predict_params?K?K.p(Q,X):(K=Kn(Q),K.c(),K.m(l,null)):K&&(K.d(1),K=null),(!S||X&1&&V!==(V="btn "+Q[0].buttonNeutral))&&u(H,"class",V),(!S||X&1&&Z!==(Z="btn "+Q[0].buttonPositive))&&u(B,"class",Z),(!S||X&1&&J!==(J="modal-footer "+Q[0].regionFooter))&&u(O,"class",J)},i(Q){S||(lt(st),S=!0)},o(Q){ut(st),S=!1},d(Q){Q&&y(t),K&&K.d(),W=!1,Kt(M)}}}function Kn(e){let t,n,l,i,r,s,o,a="n_predict",f,d,m,_,p,g="temperature",k,h,w,E,O,H="top_k",P,V,R,B,q,Z="top_p",J,S,W,M,K,st="min_p",Q,X,tt,z,$,I,vt="seed",_t,ot,ct,F,x,kt="repeat_penalty",pt,at,Ot,dt,ht,Jt="repeat_last_n",mt,nt,Pt,et,gt,L="frequency_penalty",ft,bt,Ht,yt,Et,Zt="presence_penalty",Ut,wt,xt,Ct,Vt,He="n_keep",ye,Tt,we,Nt,Rt,We="cache_prompt",ke,Bt,Ee,St,Ft,Qe="stop (разделённые ;)",Ce,It,Te,Xe;return{c(){t=b("input"),n=C(),l=b("input"),i=C(),r=b("div"),s=b("div"),o=b("label"),o.textContent=a,f=C(),d=b("input"),m=C(),_=b("div"),p=b("label"),p.textContent=g,k=C(),h=b("input"),w=C(),E=b("div"),O=b("label"),O.textContent=H,P=C(),V=b("input"),R=C(),B=b("div"),q=b("label"),q.textContent=Z,J=C(),S=b("input"),W=C(),M=b("div"),K=b("label"),K.textContent=st,Q=C(),X=b("input"),tt=C(),z=b("div"),$=b("div"),I=b("label"),I.textContent=vt,_t=C(),ot=b("input"),ct=C(),F=b("div"),x=b("label"),x.textContent=kt,pt=C(),at=b("input"),Ot=C(),dt=b("div"),ht=b("label"),ht.textContent=Jt,mt=C(),nt=b("input"),Pt=C(),et=b("div"),gt=b("label"),gt.textContent=L,ft=C(),bt=b("input"),Ht=C(),yt=b("div"),Et=b("label"),Et.textContent=Zt,Ut=C(),wt=b("input"),xt=C(),Ct=b("div"),Vt=b("label"),Vt.textContent=He,ye=C(),Tt=b("input"),we=C(),Nt=b("div"),Rt=b("label"),Rt.textContent=We,ke=C(),Bt=b("input"),Ee=C(),St=b("div"),Ft=b("label"),Ft.textContent=Qe,Ce=C(),It=b("input"),this.h()},l(D){t=v(D,"INPUT",{type:!0}),n=T(D),l=v(D,"INPUT",{type:!0}),i=T(D),r=v(D,"DIV",{});var U=A(r);s=v(U,"DIV",{class:!0});var te=A(s);o=v(te,"LABEL",{class:!0,"data-svelte-h":!0}),it(o)!=="svelte-1kr1z63"&&(o.textContent=a),f=T(te),d=v(te,"INPUT",{type:!0,class:!0}),te.forEach(y),m=T(U),_=v(U,"DIV",{class:!0});var ee=A(_);p=v(ee,"LABEL",{class:!0,"data-svelte-h":!0}),it(p)!=="svelte-1na66r1"&&(p.textContent=g),k=T(ee),h=v(ee,"INPUT",{type:!0,step:!0,class:!0}),ee.forEach(y),w=T(U),E=v(U,"DIV",{class:!0});var ne=A(E);O=v(ne,"LABEL",{class:!0,"data-svelte-h":!0}),it(O)!=="svelte-8vj08y"&&(O.textContent=H),P=T(ne),V=v(ne,"INPUT",{type:!0,class:!0}),ne.forEach(y),R=T(U),B=v(U,"DIV",{class:!0});var le=A(B);q=v(le,"LABEL",{class:!0,"data-svelte-h":!0}),it(q)!=="svelte-fypyrb"&&(q.textContent=Z),J=T(le),S=v(le,"INPUT",{type:!0,step:!0,class:!0}),le.forEach(y),W=T(U),M=v(U,"DIV",{class:!0});var se=A(M);K=v(se,"LABEL",{class:!0,"data-svelte-h":!0}),it(K)!=="svelte-1jkuvbg"&&(K.textContent=st),Q=T(se),X=v(se,"INPUT",{type:!0,step:!0,class:!0}),se.forEach(y),U.forEach(y),tt=T(D),z=v(D,"DIV",{});var rt=A(z);$=v(rt,"DIV",{class:!0});var ie=A($);I=v(ie,"LABEL",{class:!0,"data-svelte-h":!0}),it(I)!=="svelte-1rdvqbw"&&(I.textContent=vt),_t=T(ie),ot=v(ie,"INPUT",{type:!0,class:!0}),ie.forEach(y),ct=T(rt),F=v(rt,"DIV",{class:!0});var re=A(F);x=v(re,"LABEL",{class:!0,"data-svelte-h":!0}),it(x)!=="svelte-1v8pi60"&&(x.textContent=kt),pt=T(re),at=v(re,"INPUT",{type:!0,step:!0,class:!0}),re.forEach(y),Ot=T(rt),dt=v(rt,"DIV",{class:!0});var oe=A(dt);ht=v(oe,"LABEL",{class:!0,"data-svelte-h":!0}),it(ht)!=="svelte-1pm76em"&&(ht.textContent=Jt),mt=T(oe),nt=v(oe,"INPUT",{type:!0,class:!0}),oe.forEach(y),Pt=T(rt),et=v(rt,"DIV",{class:!0});var ae=A(et);gt=v(ae,"LABEL",{class:!0,"data-svelte-h":!0}),it(gt)!=="svelte-r3dewv"&&(gt.textContent=L),ft=T(ae),bt=v(ae,"INPUT",{type:!0,class:!0}),ae.forEach(y),Ht=T(rt),yt=v(rt,"DIV",{class:!0});var ue=A(yt);Et=v(ue,"LABEL",{class:!0,"data-svelte-h":!0}),it(Et)!=="svelte-1nurpeq"&&(Et.textContent=Zt),Ut=T(ue),wt=v(ue,"INPUT",{type:!0,class:!0}),ue.forEach(y),xt=T(rt),Ct=v(rt,"DIV",{class:!0});var ce=A(Ct);Vt=v(ce,"LABEL",{class:!0,"data-svelte-h":!0}),it(Vt)!=="svelte-16nkph1"&&(Vt.textContent=He),ye=T(ce),Tt=v(ce,"INPUT",{type:!0,class:!0}),ce.forEach(y),we=T(rt),Nt=v(rt,"DIV",{class:!0});var fe=A(Nt);Rt=v(fe,"LABEL",{class:!0,"data-svelte-h":!0}),it(Rt)!=="svelte-4hbiic"&&(Rt.textContent=We),ke=T(fe),Bt=v(fe,"INPUT",{type:!0,class:!0}),fe.forEach(y),Ee=T(rt),St=v(rt,"DIV",{class:!0});var pe=A(St);Ft=v(pe,"LABEL",{class:!0,"data-svelte-h":!0}),it(Ft)!=="svelte-dixh5v"&&(Ft.textContent=Qe),Ce=T(pe),It=v(pe,"INPUT",{type:!0,class:!0}),pe.forEach(y),rt.forEach(y),this.h()},h(){u(t,"type","hidden"),u(l,"type","hidden"),u(o,"class","label"),u(d,"type","number"),u(d,"class","input input-bordered w-full"),u(s,"class","form-control"),u(p,"class","label"),u(h,"type","number"),u(h,"step","0.1"),u(h,"class","input input-bordered w-full"),u(_,"class","form-control"),u(O,"class","label"),u(V,"type","number"),u(V,"class","input input-bordered w-full"),u(E,"class","form-control"),u(q,"class","label"),u(S,"type","number"),u(S,"step","0.1"),u(S,"class","input input-bordered w-full"),u(B,"class","form-control"),u(K,"class","label"),u(X,"type","number"),u(X,"step","0.1"),u(X,"class","input input-bordered w-full"),u(M,"class","form-control"),u(I,"class","label"),u(ot,"type","number"),u(ot,"class","input input-bordered w-full"),u($,"class","form-control"),u(x,"class","label"),u(at,"type","number"),u(at,"step","0.1"),u(at,"class","input input-bordered w-full"),u(F,"class","form-control"),u(ht,"class","label"),u(nt,"type","number"),u(nt,"class","input input-bordered w-full"),u(dt,"class","form-control"),u(gt,"class","label"),u(bt,"type","number"),u(bt,"class","input input-bordered w-full"),u(et,"class","form-control"),u(Et,"class","label"),u(wt,"type","number"),u(wt,"class","input input-bordered w-full"),u(yt,"class","form-control"),u(Vt,"class","label"),u(Tt,"type","number"),u(Tt,"class","input input-bordered w-full"),u(Ct,"class","form-control"),u(Rt,"class","label"),u(Bt,"type","checkbox"),u(Bt,"class","checkbox"),u(Nt,"class","form-control"),u(Ft,"class","label"),u(It,"type","text"),u(It,"class","input input-bordered w-full"),u(St,"class","form-control")},m(D,U){Y(D,t,U),N(t,e[1].predict_params.retry_if_text_not_present),Y(D,n,U),Y(D,l,U),N(l,e[1].predict_params.retry_count),Y(D,i,U),Y(D,r,U),c(r,s),c(s,o),c(s,f),c(s,d),N(d,e[1].predict_params.n_predict),c(r,m),c(r,_),c(_,p),c(_,k),c(_,h),N(h,e[1].predict_params.temperature),c(r,w),c(r,E),c(E,O),c(E,P),c(E,V),N(V,e[1].predict_params.top_k),c(r,R),c(r,B),c(B,q),c(B,J),c(B,S),N(S,e[1].predict_params.top_p),c(r,W),c(r,M),c(M,K),c(M,Q),c(M,X),N(X,e[1].predict_params.min_p),Y(D,tt,U),Y(D,z,U),c(z,$),c($,I),c($,_t),c($,ot),N(ot,e[1].predict_params.seed),c(z,ct),c(z,F),c(F,x),c(F,pt),c(F,at),N(at,e[1].predict_params.repeat_penalty),c(z,Ot),c(z,dt),c(dt,ht),c(dt,mt),c(dt,nt),N(nt,e[1].predict_params.repeat_last_n),c(z,Pt),c(z,et),c(et,gt),c(et,ft),c(et,bt),N(bt,e[1].predict_params.frequency_penalty),c(z,Ht),c(z,yt),c(yt,Et),c(yt,Ut),c(yt,wt),N(wt,e[1].predict_params.presence_penalty),c(z,xt),c(z,Ct),c(Ct,Vt),c(Ct,ye),c(Ct,Tt),N(Tt,e[1].predict_params.n_keep),c(z,we),c(z,Nt),c(Nt,Rt),c(Nt,ke),c(Nt,Bt),Bt.checked=e[1].predict_params.cache_prompt,c(z,Ee),c(z,St),c(St,Ft),c(St,Ce),c(St,It),N(It,e[2]),Te||(Xe=[j(t,"input",e[9]),j(l,"input",e[10]),j(d,"input",e[11]),j(h,"input",e[12]),j(V,"input",e[13]),j(S,"input",e[14]),j(X,"input",e[15]),j(ot,"input",e[16]),j(at,"input",e[17]),j(nt,"input",e[18]),j(bt,"input",e[19]),j(wt,"input",e[20]),j(Tt,"input",e[21]),j(Bt,"change",e[22]),j(It,"input",e[23])],Te=!0)},p(D,U){U&2&&N(t,D[1].predict_params.retry_if_text_not_present),U&2&&N(l,D[1].predict_params.retry_count),U&2&&G(d.value)!==D[1].predict_params.n_predict&&N(d,D[1].predict_params.n_predict),U&2&&G(h.value)!==D[1].predict_params.temperature&&N(h,D[1].predict_params.temperature),U&2&&G(V.value)!==D[1].predict_params.top_k&&N(V,D[1].predict_params.top_k),U&2&&G(S.value)!==D[1].predict_params.top_p&&N(S,D[1].predict_params.top_p),U&2&&G(X.value)!==D[1].predict_params.min_p&&N(X,D[1].predict_params.min_p),U&2&&G(ot.value)!==D[1].predict_params.seed&&N(ot,D[1].predict_params.seed),U&2&&G(at.value)!==D[1].predict_params.repeat_penalty&&N(at,D[1].predict_params.repeat_penalty),U&2&&G(nt.value)!==D[1].predict_params.repeat_last_n&&N(nt,D[1].predict_params.repeat_last_n),U&2&&G(bt.value)!==D[1].predict_params.frequency_penalty&&N(bt,D[1].predict_params.frequency_penalty),U&2&&G(wt.value)!==D[1].predict_params.presence_penalty&&N(wt,D[1].predict_params.presence_penalty),U&2&&G(Tt.value)!==D[1].predict_params.n_keep&&N(Tt,D[1].predict_params.n_keep),U&2&&(Bt.checked=D[1].predict_params.cache_prompt),U&4&&It.value!==D[2]&&N(It,D[2])},d(D){D&&(y(t),y(n),y(l),y(i),y(r),y(tt),y(z)),Te=!1,Kt(Xe)}}}function Gs(e){let t,n,l=e[3][0]&&Xn(e);return{c(){l&&l.c(),t=Dt()},l(i){l&&l.l(i),t=Dt()},m(i,r){l&&l.m(i,r),Y(i,t,r),n=!0},p(i,[r]){i[3][0]?l?(l.p(i,r),r&8&&lt(l,1)):(l=Xn(i),l.c(),lt(l,1),l.m(t.parentNode,t)):l&&(Yt(),ut(l,1,1,()=>{l=null}),Gt())},i(i){n||(lt(l),n=!0)},o(i){ut(l),n=!1},d(i){i&&y(t),l&&l.d(i)}}}const Js="card p-4 shadow-xl space-y-4 w-3/4";function Zs(e,t,n){let l,{parent:i}=t;const r=cn();Le(e,r,W=>n(3,l=W));let s,o="";l[0].meta&&(s=structuredClone(l[0].meta),console.log("searchLlmParams",s),o=s?.predict_params&&s.predict_params.stop?s.predict_params.stop.join("; "):"");function a(){s.predict_params&&n(1,s.predict_params.stop=o.split(";").map(W=>W.trim()),s),l[0].response&&l[0].response(s),r.close()}function f(){r.close()}function d(){s.url=this.value,n(1,s)}function m(){s.template=this.value,n(1,s)}function _(){s.predict_params.retry_if_text_not_present=this.value,n(1,s)}function p(){s.predict_params.retry_count=this.value,n(1,s)}function g(){s.predict_params.n_predict=G(this.value),n(1,s)}function k(){s.predict_params.temperature=G(this.value),n(1,s)}function h(){s.predict_params.top_k=G(this.value),n(1,s)}function w(){s.predict_params.top_p=G(this.value),n(1,s)}function E(){s.predict_params.min_p=G(this.value),n(1,s)}function O(){s.predict_params.seed=G(this.value),n(1,s)}function H(){s.predict_params.repeat_penalty=G(this.value),n(1,s)}function P(){s.predict_params.repeat_last_n=G(this.value),n(1,s)}function V(){s.predict_params.frequency_penalty=G(this.value),n(1,s)}function R(){s.predict_params.presence_penalty=G(this.value),n(1,s)}function B(){s.predict_params.n_keep=G(this.value),n(1,s)}function q(){s.predict_params.cache_prompt=this.checked,n(1,s)}function Z(){o=this.value,n(2,o)}function J(W){e.$$.not_equal(s.predict_params.system_prompt,W)&&(s.predict_params.system_prompt=W,n(1,s))}function S(W){e.$$.not_equal(s.predict_params.user_prompt,W)&&(s.predict_params.user_prompt=W,n(1,s))}return e.$$set=W=>{"parent"in W&&n(0,i=W.parent)},[i,s,o,l,r,a,f,d,m,_,p,g,k,h,w,E,O,H,P,V,R,B,q,Z,J,S]}class xs extends Pe{constructor(t){super(),Ne(this,t,Zs,Gs,ge,{parent:0})}}function Yn(e){let t,n,l,i,r,s,o,a,f,d,m,_,p,g,k,h,w,E,O,H,P,V,R=e[1]!==null&&Gn(e);return{c(){t=b("div"),n=b("form"),l=b("div"),i=b("div"),r=b("div"),s=b("label"),o=Lt(`Количество потоков для этапа ответов на вопросы
2
+ `),a=b("input"),f=C(),R&&R.c(),d=C(),m=b("footer"),_=b("button"),p=Lt("Отмена"),k=C(),h=b("button"),w=Lt("Сохранить"),this.h()},l(B){t=v(B,"DIV",{class:!0});var q=A(t);n=v(q,"FORM",{class:!0});var Z=A(n);l=v(Z,"DIV",{class:!0});var J=A(l);i=v(J,"DIV",{});var S=A(i);r=v(S,"DIV",{class:!0});var W=A(r);s=v(W,"LABEL",{class:!0});var M=A(s);o=At(M,`Количество потоков для этапа ответов на вопросы
3
+ `),a=v(M,"INPUT",{type:!0,class:!0,max:!0,min:!0}),M.forEach(y),W.forEach(y),S.forEach(y),J.forEach(y),f=T(Z),R&&R.l(Z),Z.forEach(y),d=T(q),m=v(q,"FOOTER",{class:!0});var K=A(m);_=v(K,"BUTTON",{class:!0});var st=A(_);p=At(st,"Отмена"),st.forEach(y),k=T(K),h=v(K,"BUTTON",{class:!0});var Q=A(h);w=At(Q,"Сохранить"),Q.forEach(y),K.forEach(y),q.forEach(y),this.h()},h(){u(a,"type","number"),u(a,"class","input input-bordered w-full"),u(a,"max","30"),u(a,"min","1"),u(s,"class","label"),u(r,"class","form-control"),u(l,"class","grid grid-cols-3 gap-4"),u(n,"class","space-y-4"),u(_,"class",g="btn "+e[0].buttonNeutral),u(h,"class",E="btn "+e[0].buttonPositive),u(m,"class",O="modal-footer "+e[0].regionFooter),u(t,"class",ti)},m(B,q){Y(B,t,q),c(t,n),c(n,l),c(l,i),c(i,r),c(r,s),c(s,o),c(s,a),N(a,e[1].maxThreads),c(n,f),R&&R.m(n,null),c(t,d),c(t,m),c(m,_),c(_,p),c(m,k),c(m,h),c(h,w),H=!0,P||(V=[j(a,"input",e[6]),j(_,"click",e[5]),j(h,"click",e[4])],P=!0)},p(B,q){q&2&&G(a.value)!==B[1].maxThreads&&N(a,B[1].maxThreads),B[1]!==null?R?(R.p(B,q),q&2&&lt(R,1)):(R=Gn(B),R.c(),lt(R,1),R.m(n,null)):R&&(Yt(),ut(R,1,1,()=>{R=null}),Gt()),(!H||q&1&&g!==(g="btn "+B[0].buttonNeutral))&&u(_,"class",g),(!H||q&1&&E!==(E="btn "+B[0].buttonPositive))&&u(h,"class",E),(!H||q&1&&O!==(O="modal-footer "+B[0].regionFooter))&&u(m,"class",O)},i(B){H||(lt(R),H=!0)},o(B){ut(R),H=!1},d(B){B&&y(t),R&&R.d(),P=!1,Kt(V)}}}function Gn(e){let t,n,l="Генерация вопросов",i,r,s,o,a,f,d,m,_,p="Ответы на вопросы",g,k,h,w,E,O,H,P,V,R="Финальный ответ",B,q,Z,J,S,W,M;function K(F){e[7](F)}let st={label:"system промпт"};e[1].prompts.createQuestions[0]!==void 0&&(st.prompt=e[1].prompts.createQuestions[0]),r=new Ve({props:st}),_e.push(()=>Se(r,"prompt",K));function Q(F){e[8](F)}let X={label:"user промпт"};e[1].prompts.createQuestions[1]!==void 0&&(X.prompt=e[1].prompts.createQuestions[1]),a=new Ve({props:X}),_e.push(()=>Se(a,"prompt",Q));function tt(F){e[9](F)}let z={label:"system промпт"};e[1].prompts.answerQuestion[0]!==void 0&&(z.prompt=e[1].prompts.answerQuestion[0]),k=new Ve({props:z}),_e.push(()=>Se(k,"prompt",tt));function $(F){e[10](F)}let I={label:"user промпт"};e[1].prompts.answerQuestion[1]!==void 0&&(I.prompt=e[1].prompts.answerQuestion[1]),E=new Ve({props:I}),_e.push(()=>Se(E,"prompt",$));function vt(F){e[11](F)}let _t={label:"system промпт"};e[1].prompts.generateFinalAnswer[0]!==void 0&&(_t.prompt=e[1].prompts.generateFinalAnswer[0]),q=new Ve({props:_t}),_e.push(()=>Se(q,"prompt",vt));function ot(F){e[12](F)}let ct={label:"user промпт"};return e[1].prompts.generateFinalAnswer[1]!==void 0&&(ct.prompt=e[1].prompts.generateFinalAnswer[1]),S=new Ve({props:ct}),_e.push(()=>Se(S,"prompt",ot)),{c(){t=b("div"),n=b("div"),n.textContent=l,i=C(),Mt(r.$$.fragment),o=C(),Mt(a.$$.fragment),d=C(),m=b("div"),_=b("div"),_.textContent=p,g=C(),Mt(k.$$.fragment),w=C(),Mt(E.$$.fragment),H=C(),P=b("div"),V=b("div"),V.textContent=R,B=C(),Mt(q.$$.fragment),J=C(),Mt(S.$$.fragment)},l(F){t=v(F,"DIV",{});var x=A(t);n=v(x,"DIV",{"data-svelte-h":!0}),it(n)!=="svelte-zzrwnb"&&(n.textContent=l),i=T(x),Wt(r.$$.fragment,x),o=T(x),Wt(a.$$.fragment,x),x.forEach(y),d=T(F),m=v(F,"DIV",{});var kt=A(m);_=v(kt,"DIV",{"data-svelte-h":!0}),it(_)!=="svelte-k26452"&&(_.textContent=p),g=T(kt),Wt(k.$$.fragment,kt),w=T(kt),Wt(E.$$.fragment,kt),kt.forEach(y),H=T(F),P=v(F,"DIV",{});var pt=A(P);V=v(pt,"DIV",{"data-svelte-h":!0}),it(V)!=="svelte-bu8rgi"&&(V.textContent=R),B=T(pt),Wt(q.$$.fragment,pt),J=T(pt),Wt(S.$$.fragment,pt),pt.forEach(y)},m(F,x){Y(F,t,x),c(t,n),c(t,i),zt(r,t,null),c(t,o),zt(a,t,null),Y(F,d,x),Y(F,m,x),c(m,_),c(m,g),zt(k,m,null),c(m,w),zt(E,m,null),Y(F,H,x),Y(F,P,x),c(P,V),c(P,B),zt(q,P,null),c(P,J),zt(S,P,null),M=!0},p(F,x){const kt={};!s&&x&2&&(s=!0,kt.prompt=F[1].prompts.createQuestions[0],Be(()=>s=!1)),r.$set(kt);const pt={};!f&&x&2&&(f=!0,pt.prompt=F[1].prompts.createQuestions[1],Be(()=>f=!1)),a.$set(pt);const at={};!h&&x&2&&(h=!0,at.prompt=F[1].prompts.answerQuestion[0],Be(()=>h=!1)),k.$set(at);const Ot={};!O&&x&2&&(O=!0,Ot.prompt=F[1].prompts.answerQuestion[1],Be(()=>O=!1)),E.$set(Ot);const dt={};!Z&&x&2&&(Z=!0,dt.prompt=F[1].prompts.generateFinalAnswer[0],Be(()=>Z=!1)),q.$set(dt);const ht={};!W&&x&2&&(W=!0,ht.prompt=F[1].prompts.generateFinalAnswer[1],Be(()=>W=!1)),S.$set(ht)},i(F){M||(lt(r.$$.fragment,F),lt(a.$$.fragment,F),lt(k.$$.fragment,F),lt(E.$$.fragment,F),lt(q.$$.fragment,F),lt(S.$$.fragment,F),M=!0)},o(F){ut(r.$$.fragment,F),ut(a.$$.fragment,F),ut(k.$$.fragment,F),ut(E.$$.fragment,F),ut(q.$$.fragment,F),ut(S.$$.fragment,F),M=!1},d(F){F&&(y(t),y(d),y(m),y(H),y(P)),qt(r),qt(a),qt(k),qt(E),qt(q),qt(S)}}}function $s(e){let t,n,l=e[2][0]&&e[1]!==null&&Yn(e);return{c(){l&&l.c(),t=Dt()},l(i){l&&l.l(i),t=Dt()},m(i,r){l&&l.m(i,r),Y(i,t,r),n=!0},p(i,[r]){i[2][0]&&i[1]!==null?l?(l.p(i,r),r&6&&lt(l,1)):(l=Yn(i),l.c(),lt(l,1),l.m(t.parentNode,t)):l&&(Yt(),ut(l,1,1,()=>{l=null}),Gt())},i(i){n||(lt(l),n=!0)},o(i){ut(l),n=!1},d(i){i&&y(t),l&&l.d(i)}}}const ti="card p-4 shadow-xl space-y-4 w-3/4";function ei(e,t,n){let l,{parent:i}=t;const r=cn();Le(e,r,h=>n(2,l=h));let s;l[0].meta&&(s=structuredClone(l[0].meta),console.log("investigator settings",s));function o(){l[0].response&&l[0].response(s),r.close()}function a(){r.close()}function f(){s.maxThreads=G(this.value),n(1,s)}function d(h){e.$$.not_equal(s.prompts.createQuestions[0],h)&&(s.prompts.createQuestions[0]=h,n(1,s))}function m(h){e.$$.not_equal(s.prompts.createQuestions[1],h)&&(s.prompts.createQuestions[1]=h,n(1,s))}function _(h){e.$$.not_equal(s.prompts.answerQuestion[0],h)&&(s.prompts.answerQuestion[0]=h,n(1,s))}function p(h){e.$$.not_equal(s.prompts.answerQuestion[1],h)&&(s.prompts.answerQuestion[1]=h,n(1,s))}function g(h){e.$$.not_equal(s.prompts.generateFinalAnswer[0],h)&&(s.prompts.generateFinalAnswer[0]=h,n(1,s))}function k(h){e.$$.not_equal(s.prompts.generateFinalAnswer[1],h)&&(s.prompts.generateFinalAnswer[1]=h,n(1,s))}return e.$$set=h=>{"parent"in h&&n(0,i=h.parent)},[i,s,l,r,o,a,f,d,m,_,p,g,k]}class ni extends Pe{constructor(t){super(),Ne(this,t,ei,$s,ge,{parent:0})}}function li(e){let t,n,l,i,r,s,o,a,f,d,m;i=new Sl({}),s=new Ws({}),a=new Fs({props:{components:e[0]}});const _=e[2].default,p=_l(_,e,e[1],null);return{c(){t=b("meta"),n=C(),l=b("div"),Mt(i.$$.fragment),r=C(),Mt(s.$$.fragment),o=C(),Mt(a.$$.fragment),f=C(),d=b("main"),p&&p.c(),this.h()},l(g){const k=hl("svelte-1wpbm1r",document.head);t=v(k,"META",{name:!0,content:!0}),k.forEach(y),n=T(g),l=v(g,"DIV",{class:!0});var h=A(l);Wt(i.$$.fragment,h),r=T(h),Wt(s.$$.fragment,h),o=T(h),Wt(a.$$.fragment,h),f=T(h),d=v(h,"MAIN",{class:!0});var w=A(d);p&&p.l(w),w.forEach(y),h.forEach(y),this.h()},h(){document.title="LLM demo app",u(t,"name","description"),u(t,"content","LLM demo app"),u(d,"class","svelte-1w2a1im"),u(l,"class","app svelte-1w2a1im")},m(g,k){c(document.head,t),Y(g,n,k),Y(g,l,k),zt(i,l,null),c(l,r),zt(s,l,null),c(l,o),zt(a,l,null),c(l,f),c(l,d),p&&p.m(d,null),m=!0},p(g,[k]){p&&p.p&&(!m||k&2)&&bl(p,_,g,g[1],m?gl(_,g[1],k,null):vl(g[1]),null)},i(g){m||(lt(i.$$.fragment,g),lt(s.$$.fragment,g),lt(a.$$.fragment,g),lt(p,g),m=!0)},o(g){ut(i.$$.fragment,g),ut(s.$$.fragment,g),ut(a.$$.fragment,g),ut(p,g),m=!1},d(g){g&&(y(n),y(l)),y(t),qt(i),qt(s),qt(a),p&&p.d(g)}}}function si(e,t,n){let{$$slots:l={},$$scope:i}=t;Cl.set({computePosition:hs,autoUpdate:fs,offset:ps,shift:ds,flip:ms,arrow:_s}),ys();const r={llmSettingsModal:{ref:Ys},searchSettingsModal:{ref:xs},investigatorSettingsModal:{ref:ni}};return e.$$set=s=>{"$$scope"in s&&n(1,i=s.$$scope)},[r,i,l]}class _i extends Pe{constructor(t){super(),Ne(this,t,si,li,ge,{})}}export{_i as component};
build/client/_app/immutable/nodes/1.1x2Pwkux.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as E,e as b,t as _,c as S,d as f,f as d,h as g,i as p,j as x,k as u,l as h,m as v,n as $,o as j}from"../chunks/scheduler.5WtVptCO.js";import{S as k,i as q}from"../chunks/index.7IiDzEZn.js";import{s as y}from"../chunks/entry.dO1U_WKI.js";const C=()=>{const s=y;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},H={subscribe(s){return C().page.subscribe(s)}};function P(s){let t,r=s[0].status+"",o,n,i,c=s[0].error?.message+"",l;return{c(){t=b("h1"),o=_(r),n=S(),i=b("p"),l=_(c)},l(e){t=f(e,"H1",{});var a=d(t);o=g(a,r),a.forEach(p),n=x(e),i=f(e,"P",{});var m=d(i);l=g(m,c),m.forEach(p)},m(e,a){u(e,t,a),h(t,o),u(e,n,a),u(e,i,a),h(i,l)},p(e,[a]){a&1&&r!==(r=e[0].status+"")&&v(o,r),a&1&&c!==(c=e[0].error?.message+"")&&v(l,c)},i:$,o:$,d(e){e&&(p(t),p(n),p(i))}}}function w(s,t,r){let o;return j(s,H,n=>r(0,o=n)),[o]}let D=class extends k{constructor(t){super(),q(this,t,w,P,E,{})}};export{D as component};
build/client/_app/immutable/nodes/2.pzDxSecI.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import{b as _e,ah as Pe,ai as Ve,f as D,i as m,u as h,k as I,l as d,n as P,e as E,c as y,t as oe,d as v,j as L,h as ce,I as xe,m as Fe,A as E4,ae as Uu,q as Le,v as nu,w as Q,r as wu,y as pu,F as yu,B as me,z as C4,p as ee,x as le,H as D4,C as w4}from"../chunks/scheduler.5WtVptCO.js";import{S as ge,i as be,a as F,g as Se,f as Te,t as T,c as W,d as Y,m as Z,e as x,b as se}from"../chunks/index.7IiDzEZn.js";import{S as F4,P as Pu,a as A4}from"../chunks/SearchResults.3ZkY-Bmy.js";import{L as Ge,P as Me,H as Ze,F as B4,b as k4,f as S4,T as Vu,I as T4,S as R4,M as y4,U as Ru,a as L4}from"../chunks/InvestigatorSettings.5lll9SsD.js";import{e as Ae}from"../chunks/each.C7pZUaX1.js";import{L as qu}from"../chunks/LogService.hUlSDADx.js";import{g as I4}from"../chunks/stores.Cb2RXlYi.js";import"../chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{D as N4,S as ju}from"../chunks/SearchUtils.tAbMbmlw.js";import{L as U4}from"../chunks/LlmSelector.Snki38ql.js";import{g as v4}from"../chunks/stores.XS_YoCyo.js";import{p as O4}from"../chunks/popup.dE7t2hhe.js";const M4=!1,Y0=Object.freeze(Object.defineProperty({__proto__:null,prerender:M4},Symbol.toStringTag,{value:"Module"}));function P4(l){let e,u,t,n,r,s,a;return{c(){e=Pe("svg"),u=Pe("circle"),t=Pe("animate"),n=Pe("circle"),r=Pe("animate"),s=Pe("circle"),a=Pe("animate"),this.h()},l(c){e=Ve(c,"svg",{version:!0,id:!0,xmlns:!0,"xmlns:xlink":!0,x:!0,y:!0,viewBox:!0,"enable-background":!0,"xml:space":!0});var i=D(e);u=Ve(i,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var o=D(u);t=Ve(o,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),D(t).forEach(m),o.forEach(m),n=Ve(i,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var f=D(n);r=Ve(f,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),D(r).forEach(m),f.forEach(m),s=Ve(i,"circle",{fill:!0,stroke:!0,cx:!0,cy:!0,r:!0});var p=D(s);a=Ve(p,"animate",{attributeName:!0,dur:!0,values:!0,repeatCount:!0,begin:!0}),D(a).forEach(m),p.forEach(m),i.forEach(m),this.h()},h(){h(t,"attributeName","opacity"),h(t,"dur","1s"),h(t,"values","0;1;0"),h(t,"repeatCount","indefinite"),h(t,"begin","0.1"),h(u,"fill","#1976d2"),h(u,"stroke","none"),h(u,"cx","6"),h(u,"cy","50"),h(u,"r","6"),h(r,"attributeName","opacity"),h(r,"dur","1s"),h(r,"values","0;1;0"),h(r,"repeatCount","indefinite"),h(r,"begin","0.2"),h(n,"fill","#1976d2"),h(n,"stroke","none"),h(n,"cx","26"),h(n,"cy","50"),h(n,"r","6"),h(a,"attributeName","opacity"),h(a,"dur","1s"),h(a,"values","0;1;0"),h(a,"repeatCount","indefinite"),h(a,"begin","0.3"),h(s,"fill","#1976d2"),h(s,"stroke","none"),h(s,"cx","46"),h(s,"cy","50"),h(s,"r","6"),h(e,"version","1.1"),h(e,"id","L4"),h(e,"xmlns","http://www.w3.org/2000/svg"),h(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),h(e,"x","0px"),h(e,"y","0px"),h(e,"viewBox","0 0 100 100"),h(e,"enable-background","new 0 0 0 0"),h(e,"xml:space","preserve")},m(c,i){I(c,e,i),d(e,u),d(u,t),d(e,n),d(n,r),d(e,s),d(s,a)},p:P,i:P,o:P,d(c){c&&m(e)}}}function V4(l,e,u){let{size:t=20}=e;return l.$$set=n=>{"size"in n&&u(0,t=n.size)},[t]}class q4 extends ge{constructor(e){super(),be(this,e,V4,P4,_e,{size:0})}}function j4(l){let e,u,t,n,r;return{c(){e=E("div"),u=Pe("svg"),t=Pe("circle"),n=y(),r=oe(l[2]),this.h()},l(s){e=v(s,"DIV",{class:!0});var a=D(e);u=Ve(a,"svg",{class:!0,viewBox:!0,xmlns:!0});var c=D(u);t=Ve(c,"circle",{cx:!0,cy:!0,r:!0,fill:!0,style:!0}),D(t).forEach(m),c.forEach(m),n=L(a),r=ce(a,l[2]),a.forEach(m),this.h()},h(){h(t,"cx","10"),h(t,"cy","10"),h(t,"r","5"),h(t,"fill",l[0]),xe(t,"filter","drop-shadow(0 0 1px "+l[1]+")"),h(u,"class","dot svelte-1wcf73j"),h(u,"viewBox","0 0 20 20"),h(u,"xmlns","http://www.w3.org/2000/svg"),h(e,"class","llm-health-status w-40 inline-block svelte-1wcf73j")},m(s,a){I(s,e,a),d(e,u),d(u,t),d(e,n),d(e,r)},p(s,[a]){a&1&&h(t,"fill",s[0]),a&2&&xe(t,"filter","drop-shadow(0 0 1px "+s[1]+")"),a&4&&Fe(r,s[2])},i:P,o:P,d(s){s&&m(e)}}}function H4(l,e,u){let{disableIntervalChecks:t=!1}=e,{llmName:n=""}=e,r="#af4f4c",s="#af4f4c",a="Сервис LLM недоступен",c=new AbortController;async function i(){const f=`${window.location.origin}/llm/health`;switch((await Ge.fetchHealthStatus(f,{llm:n},"Error fetching Llama health status",c))?.status){case"ok":u(0,r="#4CAF50"),u(1,s="rgba(0, 128, 0, 0.7)"),u(2,a="Сервис LLM работает");break;case"error":u(2,a="Сервис LLM не работает");break;case"loading model":u(0,r="yellow"),u(1,s="rgba(255, 255, 0, 0.7)"),u(2,a="Сервис LLM запускается...");break;case"unavailable":u(0,r="#af4f4c"),u(1,s="#af4f4c"),u(2,a="Сервис LLM не запущен");break;case"unknown":u(0,r="#af4f4c"),u(1,s="#af4f4c"),u(2,a="Сервис LLM недоступен");break}}let o;return E4(async()=>{i(),o=setInterval(async()=>{i()},3e4),t&&clearInterval(o)}),Uu(()=>{clearInterval(o),c.abort("user canceled"),c=new AbortController}),l.$$set=f=>{"disableIntervalChecks"in f&&u(3,t=f.disableIntervalChecks),"llmName"in f&&u(4,n=f.llmName)},[r,s,a,t,n]}class z4 extends ge{constructor(e){super(),be(this,e,H4,j4,_e,{disableIntervalChecks:3,llmName:4})}}function Q4(l){let e,u,t,n,r;return{c(){e=E("div"),u=Pe("svg"),t=Pe("circle"),n=y(),r=oe(l[2]),this.h()},l(s){e=v(s,"DIV",{class:!0});var a=D(e);u=Ve(a,"svg",{class:!0,viewBox:!0,xmlns:!0});var c=D(u);t=Ve(c,"circle",{cx:!0,cy:!0,r:!0,fill:!0,style:!0}),D(t).forEach(m),c.forEach(m),n=L(a),r=ce(a,l[2]),a.forEach(m),this.h()},h(){h(t,"cx","10"),h(t,"cy","10"),h(t,"r","5"),h(t,"fill",l[0]),xe(t,"filter","drop-shadow(0 0 1px "+l[1]+")"),h(u,"class","dot svelte-1wcf73j"),h(u,"viewBox","0 0 20 20"),h(u,"xmlns","http://www.w3.org/2000/svg"),h(e,"class","llm-health-status w-40 inline-block svelte-1wcf73j")},m(s,a){I(s,e,a),d(e,u),d(u,t),d(e,n),d(e,r)},p(s,[a]){a&1&&h(t,"fill",s[0]),a&2&&xe(t,"filter","drop-shadow(0 0 1px "+s[1]+")"),a&4&&Fe(r,s[2])},i:P,o:P,d(s){s&&m(e)}}}function G4(l,e,u){let{disableIntervalChecks:t=!1}=e,n="#af4f4c",r="#af4f4c",s="Поиск недоступен",a=new AbortController;async function c(f,p){try{const k=await fetch(f,{method:"GET",headers:{"Content-Type":"application/json"},signal:a.signal});if(!k.ok)throw new Error(`${p}: ${k.statusText}`);return k.json()}catch(k){return console.error(p,k.message),null}}async function i(){const f=`${window.location.origin}/search/health`,p=await c(f,"Error fetching search health status");if(p)switch(p.status){case"ok":u(0,n="#4CAF50"),u(1,r="rgba(0, 128, 0, 0.7)"),u(2,s="Поиск работает");break;case"unavailable":u(0,n="#af4f4c"),u(1,r="#af4f4c"),u(2,s="Поиск не запущен");break;case"unknown":u(0,n="#af4f4c"),u(1,r="#af4f4c"),u(2,s="Поиск недоступен");break}}let o;return E4(async()=>{i(),o=setInterval(async()=>{i()},3e4),t&&clearInterval(o)}),Uu(()=>{clearInterval(o),a.abort("user canceled"),a=new AbortController}),l.$$set=f=>{"disableIntervalChecks"in f&&u(3,t=f.disableIntervalChecks)},[n,r,s,t]}class J4 extends ge{constructor(e){super(),be(this,e,G4,Q4,_e,{disableIntervalChecks:3})}}function X4(l){let e,u,t,n,r,s="Сохранить",a,c,i="Сбросить",o,f;return{c(){e=E("div"),u=E("div"),t=E("textarea"),n=y(),r=E("button"),r.textContent=s,a=y(),c=E("button"),c.textContent=i,this.h()},l(p){e=v(p,"DIV",{class:!0});var k=D(e);u=v(k,"DIV",{class:!0});var A=D(u);t=v(A,"TEXTAREA",{class:!0}),D(t).forEach(m),n=L(A),r=v(A,"BUTTON",{class:!0,"data-svelte-h":!0}),Le(r)!=="svelte-g0hhac"&&(r.textContent=s),a=L(A),c=v(A,"BUTTON",{class:!0,"data-svelte-h":!0}),Le(c)!=="svelte-16kemh0"&&(c.textContent=i),A.forEach(m),k.forEach(m),this.h()},h(){h(t,"class","svelte-sfudwy"),h(r,"class","svelte-sfudwy"),h(c,"class","svelte-sfudwy"),h(u,"class","popup svelte-sfudwy"),h(e,"class","modal svelte-sfudwy")},m(p,k){I(p,e,k),d(e,u),d(u,t),nu(t,l[0]),d(u,n),d(u,r),d(u,a),d(u,c),o||(f=[Q(t,"input",l[6]),Q(r,"click",l[1]),Q(c,"click",l[2])],o=!0)},p(p,[k]){k&1&&nu(t,p[0])},i:P,o:P,d(p){p&&m(e),o=!1,wu(f)}}}let K4='Ты бухгалтер. Ты отвечаешь на русском языке. Ты всегда следуешь моим инструкциям. Ты отвечаешь на вопросы клиентов. Чтобы ответить, ты обязательно используешь только "источники", которые я тебе предоставляю. Ты используешь только официально-деловой стиль и необходимую терминологию. Соблюдай этические нормы. При ответе на вопрос ты используешь только такой формат ответа: 1) Четкий и краткий ответ на поставленный вопрос. Ты можешь начать свой ответ так: "По Вашему вопросу сообщаем...". Используй по возможности слова: да, можно, нет, нельзя. 2) Обоснование (ты используешь для обоснования "источники". Ты используешь только "источники" для поиска необходимых "законов", "статей", "пунктов" и "подпунктов" для ответа на вопрос пользователя). 3) Аргументация (Ты используешь только "источники" для поиска необходимых "писем" и "судебных решений", чтобы аргументировать свой ответ)." 4) Заключение (ты подводишь итоги всего, что сказал выше. Избегай повторения и сложных конструкций). Если в источниках нельзя найти подходящую информацию для ответа, ты отвечаешь так: "Мы не можем ответить на данный вопрос. Обратитесь к специалисту." Вопрос: {{ВОПРОС}} Источники: {{ИСТОЧНИКИ}}';function W4(l,e,u){let{onSave:t}=e,{onClose:n}=e,{text:r=""}=e,s=r;function a(){t(s),n()}function c(){u(0,s=K4)}function i(){s=this.value,u(0,s)}return l.$$set=o=>{"onSave"in o&&u(3,t=o.onSave),"onClose"in o&&u(4,n=o.onClose),"text"in o&&u(5,r=o.text)},[s,a,c,t,n,r,i]}class Y4 extends ge{constructor(e){super(),be(this,e,W4,X4,_e,{onSave:3,onClose:4,text:5})}}function Hu(l,e,u){const t=l.slice();return t[6]=e[u],t}function zu(l){let e,u=Ae(l[3].split(`
2
+ `)),t=[];for(let n=0;n<u.length;n+=1)t[n]=Qu(Hu(l,u,n));return{c(){e=E("div");for(let n=0;n<t.length;n+=1)t[n].c();this.h()},l(n){e=v(n,"DIV",{class:!0});var r=D(e);for(let s=0;s<t.length;s+=1)t[s].l(r);r.forEach(m),this.h()},h(){h(e,"class","annotation svelte-1uvb5ib")},m(n,r){I(n,e,r);for(let s=0;s<t.length;s+=1)t[s]&&t[s].m(e,null)},p(n,r){if(r&8){u=Ae(n[3].split(`
3
+ `));let s;for(s=0;s<u.length;s+=1){const a=Hu(n,u,s);t[s]?t[s].p(a,r):(t[s]=Qu(a),t[s].c(),t[s].m(e,null))}for(;s<t.length;s+=1)t[s].d(1);t.length=u.length}},d(n){n&&m(e),pu(t,n)}}}function Qu(l){let e,u=l[6]+"",t;return{c(){e=E("p"),t=oe(u),this.h()},l(n){e=v(n,"P",{class:!0});var r=D(e);t=ce(r,u),r.forEach(m),this.h()},h(){h(e,"class","mt-3 mb-3")},m(n,r){I(n,e,r),d(e,t)},p(n,r){r&8&&u!==(u=n[6]+"")&&Fe(t,u)},d(n){n&&m(e)}}}function Z4(l){let e,u,t,n,r,s,a,c=l[0][l[1]]&&zu(l);return{c(){e=E("div"),u=E("div"),t=E("button"),n=oe(l[2]),r=y(),c&&c.c(),this.h()},l(i){e=v(i,"DIV",{class:!0});var o=D(e);u=v(o,"DIV",{class:!0});var f=D(u);t=v(f,"BUTTON",{class:!0});var p=D(t);n=ce(p,l[2]),p.forEach(m),f.forEach(m),r=L(o),c&&c.l(o),o.forEach(m),this.h()},h(){h(t,"class","btn-link ml-3 text-left"),h(u,"class","font-bold"),h(e,"class","mb-5")},m(i,o){I(i,e,o),d(e,u),d(u,t),d(t,n),d(e,r),c&&c.m(e,null),s||(a=Q(t,"click",l[5]),s=!0)},p(i,[o]){o&4&&Fe(n,i[2]),i[0][i[1]]?c?c.p(i,o):(c=zu(i),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:P,o:P,d(i){i&&m(e),c&&c.d(),s=!1,a()}}}function x4(l,e,u){let{showFullText:t=Array(10).fill(!1)}=e,{index:n}=e,{title:r}=e,{text:s}=e;function a(i){u(0,t[i]=!t[i],t)}const c=()=>a(n);return l.$$set=i=>{"showFullText"in i&&u(0,t=i.showFullText),"index"in i&&u(1,n=i.index),"title"in i&&u(2,r=i.title),"text"in i&&u(3,s=i.text)},[t,n,r,s,a,c]}class $4 extends ge{constructor(e){super(),be(this,e,x4,Z4,_e,{showFullText:0,index:1,title:2,text:3})}}function Gu(l,e,u){const t=l.slice();return t[3]=e[u].title,t[4]=e[u].text,t[6]=u,t}function Ju(l){let e,u;return e=new $4({props:{title:l[3],text:l[4],index:l[6],showFullText:l[1]}}),{c(){W(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),u=!0},p(t,n){const r={};n&1&&(r.title=t[3]),n&1&&(r.text=t[4]),n&2&&(r.showFullText=t[1]),e.$set(r)},i(t){u||(F(e.$$.fragment,t),u=!0)},o(t){T(e.$$.fragment,t),u=!1},d(t){x(e,t)}}}function e0(l){let e,u,t="Консультации",n,r,s=Ae(l[0]),a=[];for(let i=0;i<s.length;i+=1)a[i]=Ju(Gu(l,s,i));const c=i=>T(a[i],1,1,()=>{a[i]=null});return{c(){e=E("div"),u=E("h2"),u.textContent=t,n=y();for(let i=0;i<a.length;i+=1)a[i].c();this.h()},l(i){e=v(i,"DIV",{class:!0});var o=D(e);u=v(o,"H2",{class:!0,style:!0,"data-svelte-h":!0}),Le(u)!=="svelte-bhrtd7"&&(u.textContent=t),n=L(o);for(let f=0;f<a.length;f+=1)a[f].l(o);o.forEach(m),this.h()},h(){h(u,"class","w-full p-5 space-y-2 mb-3 text-lg"),xe(u,"border-bottom","2px solid #ccc"),xe(u,"border-top","2px solid #ccc"),h(e,"class","flex-1 overflow-y-auto p-4")},m(i,o){I(i,e,o),d(e,u),d(e,n);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(e,null);r=!0},p(i,[o]){if(o&3){s=Ae(i[0]);let f;for(f=0;f<s.length;f+=1){const p=Gu(i,s,f);a[f]?(a[f].p(p,o),F(a[f],1)):(a[f]=Ju(p),a[f].c(),F(a[f],1),a[f].m(e,null))}for(Se(),f=s.length;f<a.length;f+=1)c(f);Te()}},i(i){if(!r){for(let o=0;o<s.length;o+=1)F(a[o]);r=!0}},o(i){a=a.filter(Boolean);for(let o=0;o<a.length;o+=1)T(a[o]);r=!1},d(i){i&&m(e),pu(a,i)}}}function u0(l,e,u){let t=Array(10).fill(!1),{consultations:n=[]}=e,r=[];return l.$$set=s=>{"consultations"in s&&u(0,n=s.consultations)},l.$$.update=()=>{l.$$.dirty&5&&n!==r&&(u(1,t=Array(n.length).fill(!1)),u(2,r=n))},[n,t,r]}class t0 extends ge{constructor(e){super(),be(this,e,u0,e0,_e,{consultations:0})}}function l0(l){let e,u,t,n;return{c(){e=E("div"),u=E("textarea"),this.h()},l(r){e=v(r,"DIV",{class:!0});var s=D(e);u=v(s,"TEXTAREA",{rows:!0,placeholder:!0,class:!0}),D(u).forEach(m),s.forEach(m),this.h()},h(){h(u,"rows","3"),h(u,"placeholder","Уточнение для LLM"),h(u,"class","svelte-3qvypm"),h(e,"class","w-full flex p-2 space-x-2")},m(r,s){I(r,e,s),d(e,u),nu(u,l[0]),t||(n=Q(u,"input",l[1]),t=!0)},p(r,[s]){s&1&&nu(u,r[0])},i:P,o:P,d(r){r&&m(e),t=!1,n()}}}function s0(l,e,u){let{llmClarification:t=""}=e;function n(){t=this.value,u(0,t)}return l.$$set=r=>{"llmClarification"in r&&u(0,t=r.llmClarification)},[t,n]}class n0 extends ge{constructor(e){super(),be(this,e,s0,l0,_e,{llmClarification:0})}}function r0(l){let e;return{c(){e=oe(l[0])},l(u){e=ce(u,l[0])},m(u,t){I(u,e,t)},p(u,t){t&1&&Fe(e,u[0])},d(u){u&&m(e)}}}function a0(l){let e,u,t;return{c(){e=E("a"),u=oe(l[0]),this.h()},l(n){e=v(n,"A",{href:!0,target:!0,class:!0});var r=D(e);u=ce(r,l[0]),r.forEach(m),this.h()},h(){h(e,"href",t=l[2]+"file/download/name/"+encodeURIComponent(l[0])),h(e,"target","_blank"),h(e,"class","svelte-1ijmx03")},m(n,r){I(n,e,r),d(e,u)},p(n,r){r&1&&Fe(u,n[0]),r&5&&t!==(t=n[2]+"file/download/name/"+encodeURIComponent(n[0]))&&h(e,"href",t)},d(n){n&&m(e)}}}function i0(l){let e,u,t,n,r;function s(i,o){return i[1]&&i[2]?a0:r0}let a=s(l),c=a(l);return{c(){e=E("div"),u=E("div"),c.c(),t=y(),n=E("div"),r=oe(l[3]),this.h()},l(i){e=v(i,"DIV",{class:!0});var o=D(e);u=v(o,"DIV",{class:!0});var f=D(u);c.l(f),f.forEach(m),t=L(o),n=v(o,"DIV",{});var p=D(n);r=ce(p,l[3]),p.forEach(m),o.forEach(m),this.h()},h(){h(u,"class","title svelte-1ijmx03"),h(e,"class","search-result svelte-1ijmx03")},m(i,o){I(i,e,o),d(e,u),c.m(u,null),d(e,t),d(e,n),d(n,r)},p(i,[o]){a===(a=s(i))&&c?c.p(i,o):(c.d(1),c=a(i),c&&(c.c(),c.m(u,null))),o&8&&Fe(r,i[3])},i:P,o:P,d(i){i&&m(e),c.d()}}}function o0(l,e,u){let{title:t}=e,{enableDocumentDb:n=!1}=e,{documentDbUrl:r=""}=e,{source:s=""}=e;return l.$$set=a=>{"title"in a&&u(0,t=a.title),"enableDocumentDb"in a&&u(1,n=a.enableDocumentDb),"documentDbUrl"in a&&u(2,r=a.documentDbUrl),"source"in a&&u(3,s=a.source)},[t,n,r,s]}class c0 extends ge{constructor(e){super(),be(this,e,o0,i0,_e,{title:0,enableDocumentDb:1,documentDbUrl:2,source:3})}}function Xu(l,e,u){const t=l.slice();return t[3]=e[u],t}function Ku(l){let e,u;return e=new c0({props:{title:l[3],enableDocumentDb:l[0],documentDbUrl:l[1],source:l[2][l[3]]}}),{c(){W(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),u=!0},p(t,n){const r={};n&4&&(r.title=t[3]),n&1&&(r.enableDocumentDb=t[0]),n&2&&(r.documentDbUrl=t[1]),n&4&&(r.source=t[2][t[3]]),e.$set(r)},i(t){u||(F(e.$$.fragment,t),u=!0)},o(t){T(e.$$.fragment,t),u=!1},d(t){x(e,t)}}}function f0(l){let e,u,t,n,r=Ae(Object.keys(l[2])),s=[];for(let i=0;i<r.length;i+=1)s[i]=Ku(Xu(l,r,i));const a=i=>T(s[i],1,1,()=>{s[i]=null});let c=h0;return{c(){e=E("div");for(let i=0;i<s.length;i+=1)s[i].c();u=y(),t=yu(),this.h()},l(i){e=v(i,"DIV",{class:!0});var o=D(e);for(let f=0;f<s.length;f+=1)s[f].l(o);o.forEach(m),u=L(i),t=yu(),this.h()},h(){h(e,"class","search-results svelte-14obzoi")},m(i,o){I(i,e,o);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(e,null);I(i,u,o),I(i,t,o),n=!0},p(i,[o]){if(o&7){r=Ae(Object.keys(i[2]));let f;for(f=0;f<r.length;f+=1){const p=Xu(i,r,f);s[f]?(s[f].p(p,o),F(s[f],1)):(s[f]=Ku(p),s[f].c(),F(s[f],1),s[f].m(e,null))}for(Se(),f=r.length;f<s.length;f+=1)a(f);Te()}},i(i){if(!n){for(let o=0;o<r.length;o+=1)F(s[o]);F(c),n=!0}},o(i){s=s.filter(Boolean);for(let o=0;o<s.length;o+=1)T(s[o]);T(c),n=!1},d(i){i&&(m(e),m(u),m(t)),pu(s,i)}}}let h0=!1;function m0(l,e,u){let{enableDocumentDb:t=!1}=e,{documentDbUrl:n=""}=e,{transactionMaps:r={}}=e;return l.$$set=s=>{"enableDocumentDb"in s&&u(0,t=s.enableDocumentDb),"documentDbUrl"in s&&u(1,n=s.documentDbUrl),"transactionMaps"in s&&u(2,r=s.transactionMaps)},[t,n,r]}class d0 extends ge{constructor(e){super(),be(this,e,m0,f0,_e,{enableDocumentDb:0,documentDbUrl:1,transactionMaps:2})}}const{saveAs:p0}=S4;class _0{static createDocxFromObject(e){const u=[],t=c=>c.replace(/[^\r\n\u0020-\u007E\u00A0-\uFFFF]/g,"").replace(/<[^>]*>/g,""),n=c=>t(c).split(`
4
+ `).map(i=>new Me({children:[new Vu({text:i,font:"Calibri"})],spacing:{line:276}})),r=c=>[{label:"Выбрать источники для LLM",value:c.enableSearchResultSelection},{label:"Использовать расширенный поиск",value:c.enableQueryExpansionSearch},{label:"Использовать многоступенчатый поиск",value:c.enableOlympicSearch},{label:"Карты проводок по вопросу",value:c.searchInTransactionLedgerByQuestion}].map(o=>new Me({children:[new Vu({text:`${t(o.label)}: ${o.value?"да":"нет"}`,font:"Calibri"})],spacing:{line:276}}));u.push(new Me({text:"Вопрос:",heading:Ze.HEADING_1,spacing:{line:360,before:300},font:"Calibri"}),...n(e.userRequest)),u.push(new Me({text:"Ответ системы:",heading:Ze.HEADING_1,spacing:{line:360,before:300},font:"Calibri"}),...n(e.llmResponse)),e.searchResults.length>0&&(u.push(new Me({text:"Найденные источники:",heading:Ze.HEADING_1,spacing:{line:360,before:300},font:"Calibri"})),e.searchResults.forEach(c=>{u.push(new Me({text:t(c.title),heading:Ze.HEADING_2,spacing:{line:360,before:200},font:"Calibri"}),...n(c.text))})),e.consultations.length>0&&(u.push(new Me({text:"Найденные консультации:",heading:Ze.HEADING_1,spacing:{line:360,before:300},font:"Calibri"})),e.consultations.forEach(c=>{const i=JSON.parse(c);u.push(new Me({text:t(i.title),heading:Ze.HEADING_2,spacing:{line:360,before:200},font:"Calibri"}),...n(i.text))})),e.explanations.length>0&&(u.push(new Me({text:"Релевантные разъяснения:",heading:Ze.HEADING_1,spacing:{line:360,before:300},font:"Calibri"})),e.explanations.forEach(c=>{const i=JSON.parse(c);u.push(new Me({text:t(i.title),heading:Ze.HEADING_2,spacing:{line:360,before:200},font:"Calibri"}),...n(i.text))})),u.push(new Me({text:"Параметры запроса:",heading:Ze.HEADING_1,spacing:{line:360,before:300},font:"Calibri"}),...r(e.uiSettings));const s=new B4({sections:[{properties:{},children:u}]}),a=()=>{const c=new Date,i=c.toISOString().slice(0,10),o=c.toTimeString().slice(0,8).replace(/:/g,"-");return`Document_${i}_${o}.docx`};k4.toBlob(s).then(c=>{p0(c,a())})}}function Wu(l,e,u){const t=l.slice();return t[18]=e[u],t[20]=u,t}function Yu(l){let e,u,t,n,r;function s(){return l[10](l[20])}function a(){return l[11](l[20])}function c(){return l[12](l[20])}return{c(){e=E("button"),u=oe(`★\r
5
+ `),this.h()},l(i){e=v(i,"BUTTON",{class:!0});var o=D(e);u=ce(o,`★\r
6
+ `),o.forEach(m),this.h()},h(){h(e,"class",t="star "+(l[1]>=l[20]+1||l[0]>=l[20]+1?"selected":"")+" svelte-zykxm3")},m(i,o){I(i,e,o),d(e,u),n||(r=[Q(e,"click",s),Q(e,"mouseover",a),Q(e,"focus",c)],n=!0)},p(i,o){l=i,o&3&&t!==(t="star "+(l[1]>=l[20]+1||l[0]>=l[20]+1?"selected":"")+" svelte-zykxm3")&&h(e,"class",t)},d(i){i&&m(e),n=!1,wu(r)}}}function g0(l){let e,u,t="Оцените ответ:",n,r,s,a,c,i,o,f,p,k,A,S=Ae(Array(5)),U=[];for(let w=0;w<S.length;w+=1)U[w]=Yu(Wu(l,S,w));return{c(){e=E("div"),u=E("span"),u.textContent=t,n=y(),r=E("div");for(let w=0;w<U.length;w+=1)U[w].c();s=y(),a=E("textarea"),i=y(),o=E("button"),f=oe(l[4]),this.h()},l(w){e=v(w,"DIV",{});var _=D(e);u=v(_,"SPAN",{"data-svelte-h":!0}),Le(u)!=="svelte-9pssby"&&(u.textContent=t),n=L(_),r=v(_,"DIV",{class:!0,role:!0});var g=D(r);for(let R=0;R<U.length;R+=1)U[R].l(g);g.forEach(m),s=L(_),a=v(_,"TEXTAREA",{rows:!0,placeholder:!0,class:!0}),D(a).forEach(m),i=L(_),o=v(_,"BUTTON",{class:!0});var B=D(o);f=ce(B,l[4]),B.forEach(m),_.forEach(m),this.h()},h(){h(r,"class","star-rating svelte-zykxm3"),h(r,"role","none"),h(a,"rows","3"),h(a,"placeholder","Комментарий"),a.disabled=c=l[0]===0,h(a,"class","textarea bg-white p-1 svelte-zykxm3"),h(o,"class","btn variant-form-material svelte-zykxm3"),o.disabled=p=l[0]===0||l[3]},m(w,_){I(w,e,_),d(e,u),d(e,n),d(e,r);for(let g=0;g<U.length;g+=1)U[g]&&U[g].m(r,null);d(e,s),d(e,a),nu(a,l[2]),d(e,i),d(e,o),d(o,f),k||(A=[Q(r,"mouseleave",l[7]),Q(a,"input",l[13]),Q(o,"click",l[8])],k=!0)},p(w,[_]){if(_&99){S=Ae(Array(5));let g;for(g=0;g<S.length;g+=1){const B=Wu(w,S,g);U[g]?U[g].p(B,_):(U[g]=Yu(B),U[g].c(),U[g].m(r,null))}for(;g<U.length;g+=1)U[g].d(1);U.length=S.length}_&1&&c!==(c=w[0]===0)&&(a.disabled=c),_&4&&nu(a,w[2]),_&16&&Fe(f,w[4]),_&9&&p!==(p=w[0]===0||w[3])&&(o.disabled=p)},i:P,o:P,d(w){w&&m(e),pu(U,w),k=!1,wu(A)}}}function b0(l,e,u){const t={message:"Спасибо за оценку!",timeout:5e3},n=I4();let r=0,{onSubmit:s=function(R){}}=e,a=0,c="",i=!1,o="Отправить";function f(R){u(0,r=R)}function p(R){u(1,a=R)}function k(){u(1,a=0)}async function A(){r>0&&(s&&(U(),await s({rating:r,comment:c})),S(),n.trigger(t))}function S(){u(0,r=0),u(2,c=""),u(3,i=!1),u(4,o="Отправить")}function U(){u(3,i=!0),u(4,o="Отправляем...")}const w=R=>f(R+1),_=R=>p(R+1),g=R=>p(R+1);function B(){c=this.value,u(2,c)}return l.$$set=R=>{"onSubmit"in R&&u(9,s=R.onSubmit)},[r,a,c,i,o,f,p,k,A,s,w,_,g,B]}class E0 extends ge{constructor(e){super(),be(this,e,b0,g0,_e,{onSubmit:9})}}function v0(l){let e,u="Настроить поиск",t,n;return{c(){e=E("button"),e.textContent=u,this.h()},l(r){e=v(r,"BUTTON",{class:!0,"data-svelte-h":!0}),Le(e)!=="svelte-1np4oyj"&&(e.textContent=u),this.h()},h(){h(e,"class","btn variant-outline-tertiary")},m(r,s){I(r,e,s),t||(n=Q(e,"click",l[0]),t=!0)},p:P,i:P,o:P,d(r){r&&m(e),t=!1,n()}}}function C0(l,e,u){const t=v4();let{llmParams:n}=e;function r(){console.log("openModal",n);const s={type:"component",title:"Настройки поиска",component:"searchSettingsModal",meta:n,response:a=>{u(1,n=a)}};t.trigger(s)}return l.$$set=s=>{"llmParams"in s&&u(1,n=s.llmParams)},[r,n]}class D0 extends ge{constructor(e){super(),be(this,e,C0,v0,_e,{llmParams:1})}}function Zu(l,e,u){const t=l.slice();return t[6]=e[u],t}function xu(l){let e,u=Ae(l[3].split(`
7
+ `)),t=[];for(let n=0;n<u.length;n+=1)t[n]=$u(Zu(l,u,n));return{c(){e=E("div");for(let n=0;n<t.length;n+=1)t[n].c();this.h()},l(n){e=v(n,"DIV",{class:!0});var r=D(e);for(let s=0;s<t.length;s+=1)t[s].l(r);r.forEach(m),this.h()},h(){h(e,"class","annotation svelte-1uvb5ib")},m(n,r){I(n,e,r);for(let s=0;s<t.length;s+=1)t[s]&&t[s].m(e,null)},p(n,r){if(r&8){u=Ae(n[3].split(`
8
+ `));let s;for(s=0;s<u.length;s+=1){const a=Zu(n,u,s);t[s]?t[s].p(a,r):(t[s]=$u(a),t[s].c(),t[s].m(e,null))}for(;s<t.length;s+=1)t[s].d(1);t.length=u.length}},d(n){n&&m(e),pu(t,n)}}}function $u(l){let e,u=l[6]+"",t;return{c(){e=E("p"),t=oe(u),this.h()},l(n){e=v(n,"P",{class:!0});var r=D(e);t=ce(r,u),r.forEach(m),this.h()},h(){h(e,"class","mt-3 mb-3")},m(n,r){I(n,e,r),d(e,t)},p(n,r){r&8&&u!==(u=n[6]+"")&&Fe(t,u)},d(n){n&&m(e)}}}function w0(l){let e,u,t,n,r,s,a,c=l[0][l[1]]&&xu(l);return{c(){e=E("div"),u=E("div"),t=E("button"),n=oe(l[2]),r=y(),c&&c.c(),this.h()},l(i){e=v(i,"DIV",{class:!0});var o=D(e);u=v(o,"DIV",{class:!0});var f=D(u);t=v(f,"BUTTON",{class:!0});var p=D(t);n=ce(p,l[2]),p.forEach(m),f.forEach(m),r=L(o),c&&c.l(o),o.forEach(m),this.h()},h(){h(t,"class","btn-link ml-3 text-left"),h(u,"class","font-bold"),h(e,"class","mb-5")},m(i,o){I(i,e,o),d(e,u),d(u,t),d(t,n),d(e,r),c&&c.m(e,null),s||(a=Q(t,"click",l[5]),s=!0)},p(i,[o]){o&4&&Fe(n,i[2]),i[0][i[1]]?c?c.p(i,o):(c=xu(i),c.c(),c.m(e,null)):c&&(c.d(1),c=null)},i:P,o:P,d(i){i&&m(e),c&&c.d(),s=!1,a()}}}function F0(l,e,u){let{showFullText:t=Array(10).fill(!1)}=e,{index:n}=e,{title:r}=e,{text:s}=e;function a(i){u(0,t[i]=!t[i],t)}const c=()=>a(n);return l.$$set=i=>{"showFullText"in i&&u(0,t=i.showFullText),"index"in i&&u(1,n=i.index),"title"in i&&u(2,r=i.title),"text"in i&&u(3,s=i.text)},[t,n,r,s,a,c]}class A0 extends ge{constructor(e){super(),be(this,e,F0,w0,_e,{showFullText:0,index:1,title:2,text:3})}}function e4(l,e,u){const t=l.slice();return t[3]=e[u].title,t[4]=e[u].text,t[6]=u,t}function u4(l){let e,u;return e=new A0({props:{title:l[3],text:l[4],index:l[6],showFullText:l[1]}}),{c(){W(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),u=!0},p(t,n){const r={};n&1&&(r.title=t[3]),n&1&&(r.text=t[4]),n&2&&(r.showFullText=t[1]),e.$set(r)},i(t){u||(F(e.$$.fragment,t),u=!0)},o(t){T(e.$$.fragment,t),u=!1},d(t){x(e,t)}}}function B0(l){let e,u,t="Разъяснения",n,r,s=Ae(l[0]),a=[];for(let i=0;i<s.length;i+=1)a[i]=u4(e4(l,s,i));const c=i=>T(a[i],1,1,()=>{a[i]=null});return{c(){e=E("div"),u=E("h2"),u.textContent=t,n=y();for(let i=0;i<a.length;i+=1)a[i].c();this.h()},l(i){e=v(i,"DIV",{class:!0});var o=D(e);u=v(o,"H2",{class:!0,style:!0,"data-svelte-h":!0}),Le(u)!=="svelte-81a5qt"&&(u.textContent=t),n=L(o);for(let f=0;f<a.length;f+=1)a[f].l(o);o.forEach(m),this.h()},h(){h(u,"class","w-full p-5 space-y-2 mb-3 text-lg"),xe(u,"border-bottom","2px solid #ccc"),xe(u,"border-top","2px solid #ccc"),h(e,"class","flex-1 overflow-y-auto p-4")},m(i,o){I(i,e,o),d(e,u),d(e,n);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(e,null);r=!0},p(i,[o]){if(o&3){s=Ae(i[0]);let f;for(f=0;f<s.length;f+=1){const p=e4(i,s,f);a[f]?(a[f].p(p,o),F(a[f],1)):(a[f]=u4(p),a[f].c(),F(a[f],1),a[f].m(e,null))}for(Se(),f=s.length;f<a.length;f+=1)c(f);Te()}},i(i){if(!r){for(let o=0;o<s.length;o+=1)F(a[o]);r=!0}},o(i){a=a.filter(Boolean);for(let o=0;o<a.length;o+=1)T(a[o]);r=!1},d(i){i&&m(e),pu(a,i)}}}function k0(l,e,u){let t=Array(10).fill(!1),{explanations:n=[]}=e,r=[];return l.$$set=s=>{"explanations"in s&&u(0,n=s.explanations)},l.$$.update=()=>{l.$$.dirty&5&&n!==r&&(u(1,t=Array(n.length).fill(!1)),u(2,r=n))},[n,t,r]}class S0 extends ge{constructor(e){super(),be(this,e,k0,B0,_e,{explanations:0})}}function t4(l,e,u){const t=l.slice();return t[8]=e[u][0],t[9]=e[u][1],t[10]=e,t[11]=u,t}function l4(l){let e,u,t,n,r=l[9]+"",s,a,c,i;function o(){l[6].call(u,l[8])}return{c(){e=E("label"),u=E("input"),t=y(),n=E("p"),s=oe(r),a=y(),this.h()},l(f){e=v(f,"LABEL",{class:!0});var p=D(e);u=v(p,"INPUT",{class:!0,type:!0}),t=L(p),n=v(p,"P",{});var k=D(n);s=ce(k,r),k.forEach(m),a=L(p),p.forEach(m),this.h()},h(){h(u,"class","checkbox accent-white"),h(u,"type","checkbox"),u.disabled=l[1],h(e,"class","flex items-center space-x-2")},m(f,p){I(f,e,p),d(e,u),u.checked=l[0][l[8]],d(e,t),d(e,n),d(n,s),d(e,a),c||(i=Q(u,"change",o),c=!0)},p(f,p){l=f,p&2&&(u.disabled=l[1]),p&17&&(u.checked=l[0][l[8]])},d(f){f&&m(e),c=!1,i()}}}function T0(l){let e,u,t,n,r,s,a,c,i,o=Ae(Object.entries(l[4])),f=[];for(let p=0;p<o.length;p+=1)f[p]=l4(t4(l,o,p));return{c(){e=E("button"),u=oe(l[3]),t=y(),n=E("i"),r=y(),s=E("div"),a=E("div");for(let p=0;p<f.length;p+=1)f[p].c();this.h()},l(p){e=v(p,"BUTTON",{class:!0});var k=D(e);u=ce(k,l[3]),t=L(k),n=v(k,"I",{class:!0}),D(n).forEach(m),k.forEach(m),r=L(p),s=v(p,"DIV",{class:!0,"data-popup":!0});var A=D(s);a=v(A,"DIV",{});var S=D(a);for(let U=0;U<f.length;U+=1)f[U].l(S);S.forEach(m),A.forEach(m),this.h()},h(){h(n,"class","fa-solid fa-angle-down ml-1"),h(e,"class","chip variant-soft-primary flex items-center min-w-64"),me(e,"variant-soft-error",l[2]),h(s,"class","card p-4 w-150 shadow-xl z-10"),h(s,"data-popup","popupFeatured")},m(p,k){I(p,e,k),d(e,u),d(e,t),d(e,n),I(p,r,k),I(p,s,k),d(s,a);for(let A=0;A<f.length;A+=1)f[A]&&f[A].m(a,null);c||(i=C4(O4.call(null,e,l[5])),c=!0)},p(p,[k]){if(k&8&&Fe(u,p[3]),k&4&&me(e,"variant-soft-error",p[2]),k&19){o=Ae(Object.entries(p[4]));let A;for(A=0;A<o.length;A+=1){const S=t4(p,o,A);f[A]?f[A].p(S,k):(f[A]=l4(S),f[A].c(),f[A].m(a,null))}for(;A<f.length;A+=1)f[A].d(1);f.length=o.length}},i:P,o:P,d(p){p&&(m(e),m(r),m(s)),pu(f,p),c=!1,i()}}}function s4(l,e,u,t){const n=l%10,r=l%100;return r>=11&&r<=19?t:n===1?e:n>=2&&n<=4?u:t}function R0(l,e,u){let t,{disabled:n=!1}=e,{selected:r={НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1}}=e;v4();let s={НКРФ:"НК РФ",ГКРФ:"ГК РФ",ТКРФ:"ТК РФ","Федеральный закон":"Федеральный Закон","Письмо Минфина":"Письмо Минфина","Письмо ФНС":"Письмо ФНС","Приказ ФНС":"Приказ ФНС","Постановление Правительства":"Постановление Правительства","Судебный документ":"Судебный документ",ВНД:"ВНД","Бухгалтерский документ":"ФСБУ"};const a={event:"click",target:"popupFeatured",placement:"bottom",middleware:{flip:{mainAxis:!1}}};let c="Выбрать типы источников для поиска";function i(o){r[o]=this.checked,u(0,r)}return l.$$set=o=>{"disabled"in o&&u(1,n=o.disabled),"selected"in o&&u(0,r=o.selected)},l.$$.update=()=>{l.$$.dirty&1&&u(2,t=Object.values(r).filter(o=>o===!0).length),l.$$.dirty&4&&u(3,c=t>0?`${s4(t,"Выбран","Выбрано","Выбрано")} ${t} ${s4(t,"тип","типа","типов")} источников`:"Выбрать типы источников для поиска")},[r,n,t,c,s,a,i]}class y0 extends ge{constructor(e){super(),be(this,e,R0,T0,_e,{disabled:1,selected:0})}}function n4(l){let e,u,t;function n(s){l[52](s)}let r={};return l[21]!==void 0&&(r.llmParams=l[21]),e=new D0({props:r}),ee.push(()=>se(e,"llmParams",n)),{c(){W(e.$$.fragment)},l(s){Y(e.$$.fragment,s)},m(s,a){Z(e,s,a),t=!0},p(s,a){const c={};!u&&a[0]&2097152&&(u=!0,c.llmParams=s[21],le(()=>u=!1)),e.$set(c)},i(s){t||(F(e.$$.fragment,s),t=!0)},o(s){T(e.$$.fragment,s),t=!1},d(s){x(e,s)}}}function r4(l){let e,u,t;function n(s){l[53](s)}let r={};return l[0].investigatorSettings!==void 0&&(r.settings=l[0].investigatorSettings),e=new T4({props:r}),ee.push(()=>se(e,"settings",n)),{c(){W(e.$$.fragment)},l(s){Y(e.$$.fragment,s)},m(s,a){Z(e,s,a),t=!0},p(s,a){const c={};!u&&a[0]&1&&(u=!0,c.settings=s[0].investigatorSettings,le(()=>u=!1)),e.$set(c)},i(s){t||(F(e.$$.fragment,s),t=!0)},o(s){T(e.$$.fragment,s),t=!1},d(s){x(e,s)}}}function a4(l){let e,u,t,n;function r(c){l[55](c)}function s(c){l[56](c)}let a={};return l[20]!==void 0&&(a.use_olympic=l[20]),l[19]!==void 0&&(a.use_qe=l[19]),e=new R4({props:a}),ee.push(()=>se(e,"use_olympic",r)),ee.push(()=>se(e,"use_qe",s)),{c(){W(e.$$.fragment)},l(c){Y(e.$$.fragment,c)},m(c,i){Z(e,c,i),n=!0},p(c,i){const o={};!u&&i[0]&1048576&&(u=!0,o.use_olympic=c[20],le(()=>u=!1)),!t&&i[0]&524288&&(t=!0,o.use_qe=c[19],le(()=>t=!1)),e.$set(o)},i(c){n||(F(e.$$.fragment,c),n=!0)},o(c){T(e.$$.fragment,c),n=!1},d(c){x(e,c)}}}function i4(l){let e,u='<i class="fa-solid fa-check"></i>';return{c(){e=E("span"),e.innerHTML=u},l(t){e=v(t,"SPAN",{"data-svelte-h":!0}),Le(e)!=="svelte-104b754"&&(e.innerHTML=u)},m(t,n){I(t,e,n)},d(t){t&&m(e)}}}function o4(l){let e,u,t,n,r,s;return r=new q4({}),{c(){e=E("div"),u=oe(l[14]),t=y(),n=E("div"),W(r.$$.fragment),this.h()},l(a){e=v(a,"DIV",{class:!0});var c=D(e);u=ce(c,l[14]),c.forEach(m),t=L(a),n=v(a,"DIV",{class:!0});var i=D(n);Y(r.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class","loading-status svelte-fiifsz"),h(n,"class","loading-container svelte-fiifsz")},m(a,c){I(a,e,c),d(e,u),I(a,t,c),I(a,n,c),Z(r,n,null),s=!0},p(a,c){(!s||c[0]&16384)&&Fe(u,a[14])},i(a){s||(F(r.$$.fragment,a),s=!0)},o(a){T(r.$$.fragment,a),s=!1},d(a){a&&(m(e),m(t),m(n)),x(r)}}}function c4(l){let e,u;return e=new Y4({props:{onSave:l[38],onClose:l[39],text:l[9]}}),{c(){W(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),u=!0},p(t,n){const r={};n[0]&512&&(r.text=t[9]),e.$set(r)},i(t){u||(F(e.$$.fragment,t),u=!0)},o(t){T(e.$$.fragment,t),u=!1},d(t){x(e,t)}}}function f4(l){let e,u,t,n;function r(a){l[61](a)}let s={enableDocumentDb:l[33],documentDbUrl:l[32]};return l[13]!==void 0&&(s.transactionMaps=l[13]),u=new d0({props:s}),ee.push(()=>se(u,"transactionMaps",r)),{c(){e=E("div"),W(u.$$.fragment),this.h()},l(a){e=v(a,"DIV",{class:!0});var c=D(e);Y(u.$$.fragment,c),c.forEach(m),this.h()},h(){h(e,"class","search-column svelte-fiifsz")},m(a,c){I(a,e,c),Z(u,e,null),n=!0},p(a,c){const i={};!t&&c[0]&8192&&(t=!0,i.transactionMaps=a[13],le(()=>t=!1)),u.$set(i)},i(a){n||(F(u.$$.fragment,a),n=!0)},o(a){T(u.$$.fragment,a),n=!1},d(a){a&&m(e),x(u)}}}function h4(l){let e,u='<div class="alert-message"><p>Не могу предоставить консультацию по вашему вопросу, т.к. поиск ничего не нашел.</p> <p>Пожалуйста, попробуйте переформулировать запрос.</p></div>';return{c(){e=E("aside"),e.innerHTML=u,this.h()},l(t){e=v(t,"ASIDE",{class:!0,style:!0,"data-svelte-h":!0}),Le(e)!=="svelte-1jj0c90"&&(e.innerHTML=u),this.h()},h(){h(e,"class","alert variant-filled"),xe(e,"margin","1rem")},m(t,n){I(t,e,n)},d(t){t&&m(e)}}}function m4(l){let e,u,t,n,r,s,a,c,i;function o(_){l[63](_)}function f(_){l[64](_)}function p(_){l[65](_)}function k(_){l[66](_)}function A(_){l[67](_)}function S(_){l[68](_)}function U(_){l[69](_)}let w={enableDocumentDb:l[33],documentDbUrl:l[32]};return l[0].search.searchResults!==void 0&&(w.searchResults=l[0].search.searchResults),l[11]!==void 0&&(w.usedSearchResults=l[11]),l[15]!==void 0&&(w.showFullText=l[15]),l[16]!==void 0&&(w.useSearchResult=l[16]),l[17]!==void 0&&(w.enableSearchResultSelection=l[17]),l[18]!==void 0&&(w.searchInTransactionLedger=l[18]),l[29]!==void 0&&(w.showOnlyLlmUsed=l[29]),e=new A4({props:w}),l[62](e),ee.push(()=>se(e,"searchResults",o)),ee.push(()=>se(e,"usedSearchResults",f)),ee.push(()=>se(e,"showFullText",p)),ee.push(()=>se(e,"useSearchResult",k)),ee.push(()=>se(e,"enableSearchResultSelection",A)),ee.push(()=>se(e,"searchInTransactionLedger",S)),ee.push(()=>se(e,"showOnlyLlmUsed",U)),{c(){W(e.$$.fragment)},l(_){Y(e.$$.fragment,_)},m(_,g){Z(e,_,g),i=!0},p(_,g){const B={};!u&&g[0]&1&&(u=!0,B.searchResults=_[0].search.searchResults,le(()=>u=!1)),!t&&g[0]&2048&&(t=!0,B.usedSearchResults=_[11],le(()=>t=!1)),!n&&g[0]&32768&&(n=!0,B.showFullText=_[15],le(()=>n=!1)),!r&&g[0]&65536&&(r=!0,B.useSearchResult=_[16],le(()=>r=!1)),!s&&g[0]&131072&&(s=!0,B.enableSearchResultSelection=_[17],le(()=>s=!1)),!a&&g[0]&262144&&(a=!0,B.searchInTransactionLedger=_[18],le(()=>a=!1)),!c&&g[0]&536870912&&(c=!0,B.showOnlyLlmUsed=_[29],le(()=>c=!1)),e.$set(B)},i(_){i||(F(e.$$.fragment,_),i=!0)},o(_){T(e.$$.fragment,_),i=!1},d(_){l[62](null),x(e,_)}}}function d4(l){let e,u,t;function n(s){l[70](s)}let r={};return l[0].search.explanations!==void 0&&(r.explanations=l[0].search.explanations),e=new S0({props:r}),ee.push(()=>se(e,"explanations",n)),{c(){W(e.$$.fragment)},l(s){Y(e.$$.fragment,s)},m(s,a){Z(e,s,a),t=!0},p(s,a){const c={};!u&&a[0]&1&&(u=!0,c.explanations=s[0].search.explanations,le(()=>u=!1)),e.$set(c)},i(s){t||(F(e.$$.fragment,s),t=!0)},o(s){T(e.$$.fragment,s),t=!1},d(s){x(e,s)}}}function p4(l){let e,u,t;function n(s){l[71](s)}let r={};return l[12]!==void 0&&(r.consultations=l[12]),e=new t0({props:r}),ee.push(()=>se(e,"consultations",n)),{c(){W(e.$$.fragment)},l(s){Y(e.$$.fragment,s)},m(s,a){Z(e,s,a),t=!0},p(s,a){const c={};!u&&a[0]&4096&&(u=!0,c.consultations=s[12],le(()=>u=!1)),e.$set(c)},i(s){t||(F(e.$$.fragment,s),t=!0)},o(s){T(e.$$.fragment,s),t=!1},d(s){x(e,s)}}}function L0(l){let e,u,t,n,r=l[0].search?.searchResults&&m4(l),s=l[0].search?.explanations&&d4(l),a=l[12]&&l[12].length>0&&p4(l);return{c(){e=E("div"),r&&r.c(),u=y(),s&&s.c(),t=y(),a&&a.c(),this.h()},l(c){e=v(c,"DIV",{class:!0});var i=D(e);r&&r.l(i),u=L(i),s&&s.l(i),t=L(i),a&&a.l(i),i.forEach(m),this.h()},h(){h(e,"class","search-column svelte-fiifsz")},m(c,i){I(c,e,i),r&&r.m(e,null),d(e,u),s&&s.m(e,null),d(e,t),a&&a.m(e,null),n=!0},p(c,i){c[0].search?.searchResults?r?(r.p(c,i),i[0]&1&&F(r,1)):(r=m4(c),r.c(),F(r,1),r.m(e,u)):r&&(Se(),T(r,1,1,()=>{r=null}),Te()),c[0].search?.explanations?s?(s.p(c,i),i[0]&1&&F(s,1)):(s=d4(c),s.c(),F(s,1),s.m(e,t)):s&&(Se(),T(s,1,1,()=>{s=null}),Te()),c[12]&&c[12].length>0?a?(a.p(c,i),i[0]&4096&&F(a,1)):(a=p4(c),a.c(),F(a,1),a.m(e,null)):a&&(Se(),T(a,1,1,()=>{a=null}),Te())},i(c){n||(F(r),F(s),F(a),n=!0)},o(c){T(r),T(s),T(a),n=!1},d(c){c&&m(e),r&&r.d(),s&&s.d(),a&&a.d()}}}function _4(l){let e,u=l[0].llmFinalAnswer.replaceAll(`
9
+ `,"<br>")+"",t;return{c(){e=new D4(!1),t=yu(),this.h()},l(n){e=w4(n,!1),t=yu(),this.h()},h(){e.a=t},m(n,r){e.m(u,n,r),I(n,t,r)},p(n,r){r[0]&1&&u!==(u=n[0].llmFinalAnswer.replaceAll(`
10
+ `,"<br>")+"")&&e.p(u)},d(n){n&&(m(t),e.d())}}}function g4(l){let e,u;return e=new E0({props:{onSubmit:l[46]}}),{c(){W(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),u=!0},p:P,i(t){u||(F(e.$$.fragment,t),u=!0)},o(t){T(e.$$.fragment,t),u=!1},d(t){x(e,t)}}}function I0(l){let e,u,t,n="Получить ответ",r,s,a="Уточнить ответ",c,i,o,f,p="Скачать ответ в Word",k,A,S,U,w=(l[24]&&l[3]||!l[24]&&!l[3]||l[24]&&l[0].llmFinalAnswer&&!l[22]||l[0].llmFinalAnswer&&l[22]&&l[23])&&_4(l),_=l[0].llmFinalAnswer&&l[25]&&l[34]&&g4(l);return{c(){e=E("div"),u=E("div"),t=E("button"),t.textContent=n,r=y(),s=E("button"),s.textContent=a,c=y(),i=E("div"),w&&w.c(),o=y(),f=E("button"),f.textContent=p,k=y(),_&&_.c(),this.h()},l(g){e=v(g,"DIV",{class:!0});var B=D(e);u=v(B,"DIV",{class:!0});var R=D(u);t=v(R,"BUTTON",{class:!0,"data-svelte-h":!0}),Le(t)!=="svelte-1fu5ju8"&&(t.textContent=n),r=L(R),s=v(R,"BUTTON",{class:!0,"data-svelte-h":!0}),Le(s)!=="svelte-1jv1usb"&&(s.textContent=a),c=L(R),i=v(R,"DIV",{class:!0});var j=D(i);w&&w.l(j),j.forEach(m),o=L(R),f=v(R,"BUTTON",{class:!0,"data-svelte-h":!0}),Le(f)!=="svelte-1n8n71z"&&(f.textContent=p),k=L(R),_&&_.l(R),R.forEach(m),B.forEach(m),this.h()},h(){h(t,"class","btn variant-filled"),me(t,"hidden",!(l[17]&&(l[0].search?.searchResults||[]).length>0&&!l[27])),h(s,"class","btn variant-filled"),me(s,"hidden",!l[27]||!l[28]),h(i,"class","textarea svelte-fiifsz"),h(f,"class","btn variant-filled mb-4 mt-4"),me(f,"hidden",!l[0].llmFinalAnswer),h(u,"class","textarea svelte-fiifsz"),h(e,"class","textarea-column svelte-fiifsz")},m(g,B){I(g,e,B),d(e,u),d(u,t),d(u,r),d(u,s),d(u,c),d(u,i),w&&w.m(i,null),d(u,o),d(u,f),d(u,k),_&&_.m(u,null),A=!0,S||(U=[Q(t,"click",l[45]),Q(s,"click",l[43]),Q(f,"click",l[47])],S=!0)},p(g,B){(!A||B[0]&134348801)&&me(t,"hidden",!(g[17]&&(g[0].search?.searchResults||[]).length>0&&!g[27])),(!A||B[0]&402653184)&&me(s,"hidden",!g[27]||!g[28]),g[24]&&g[3]||!g[24]&&!g[3]||g[24]&&g[0].llmFinalAnswer&&!g[22]||g[0].llmFinalAnswer&&g[22]&&g[23]?w?w.p(g,B):(w=_4(g),w.c(),w.m(i,null)):w&&(w.d(1),w=null),(!A||B[0]&1)&&me(f,"hidden",!g[0].llmFinalAnswer),g[0].llmFinalAnswer&&g[25]&&g[34]?_?(_.p(g,B),B[0]&33554433&&F(_,1)):(_=g4(g),_.c(),F(_,1),_.m(u,null)):_&&(Se(),T(_,1,1,()=>{_=null}),Te())},i(g){A||(F(_),A=!0)},o(g){T(_),A=!1},d(g){g&&m(e),w&&w.d(),_&&_.d(),S=!1,wu(U)}}}function N0(l){let e,u,t,n;return e=new Pu({props:{minSize:20,class:"search-column",size:49,$$slots:{default:[L0]},$$scope:{ctx:l}}}),t=new Pu({props:{size:49,$$slots:{default:[I0]},$$scope:{ctx:l}}}),{c(){W(e.$$.fragment),u=y(),W(t.$$.fragment)},l(r){Y(e.$$.fragment,r),u=L(r),Y(t.$$.fragment,r)},m(r,s){Z(e,r,s),I(r,u,s),Z(t,r,s),n=!0},p(r,s){const a={};s[0]&537368705|s[3]&1&&(a.$$scope={dirty:s,ctx:r}),e.$set(a);const c={};s[0]&465698825|s[3]&1&&(c.$$scope={dirty:s,ctx:r}),t.$set(c)},i(r){n||(F(e.$$.fragment,r),F(t.$$.fragment,r),n=!0)},o(r){T(e.$$.fragment,r),T(t.$$.fragment,r),n=!1},d(r){r&&m(u),x(e,r),x(t,r)}}}function U0(l){let e,u,t,n,r,s,a,c,i,o,f,p,k,A,S,U,w,_,g,B,R,j,qe,Ee,fe,O=l[28]?"Свернуть уточнение":"Уточнить",Ie,he,$e,Re,V,ru,Je,bu="Искать карту проводок по вопросу",au,Be,$,je,He,Xe,de,iu,eu,ou,ke,uu,ye,ve,ze,cu,Ke,Ne,tu=l[13]&&Object.keys(l[13]).length>0,lu,fu,We,Qe,Ce,Eu,vu;r=new z4({props:{disableIntervalChecks:!!l[36]}}),a=new J4({props:{disableIntervalChecks:!!l[36]}});function Fu(b){l[51](b)}let Ue={};l[31]!==void 0&&(Ue.selectedLLM=l[31]),i=new U4({props:Ue}),ee.push(()=>se(i,"selectedLLM",Fu));let H=l[21]&&n4(l),q=l[0].useInvestigator&&l[0].investigatorSettings!==null&&r4(l),G=!l[6]&&a4(l),ne=l[6]&&i4();function Lu(b){l[58](b)}function re(b){l[59](b)}let Cu={};l[18]!==void 0&&(Cu.disabled=l[18]),l[10]!==void 0&&(Cu.selected=l[10]),$=new y0({props:Cu}),ee.push(()=>se($,"disabled",Lu)),ee.push(()=>se($,"selected",re));let J=(l[2]||l[3])&&o4(l);function Iu(b){l[60](b)}let Au={};l[1]!==void 0&&(Au.llmClarification=l[1]),ve=new n0({props:Au}),ee.push(()=>se(ve,"llmClarification",Iu));let X=l[8]&&c4(l),K=tu&&f4(l),ae=l[26]&&h4();return Qe=new F4({props:{theme:"modern-theme",$$slots:{default:[N0]},$$scope:{ctx:l}}}),{c(){e=E("div"),u=E("div"),t=E("div"),n=E("div"),W(r.$$.fragment),s=y(),W(a.$$.fragment),c=y(),W(i.$$.fragment),f=y(),H&&H.c(),p=y(),q&&q.c(),k=y(),A=E("section"),S=E("div"),U=E("div"),w=E("textarea"),_=y(),g=E("div"),B=E("div"),R=E("a"),j=E("i"),qe=oe(" Справка"),Ee=y(),fe=E("button"),Ie=oe(O),$e=y(),G&&G.c(),Re=y(),V=E("button"),ne&&ne.c(),ru=y(),Je=E("span"),Je.textContent=bu,Be=y(),W($.$$.fragment),Xe=y(),de=E("button"),iu=oe(l[30]),ou=y(),ke=E("div"),J&&J.c(),uu=y(),ye=E("div"),W(ve.$$.fragment),cu=y(),X&&X.c(),Ke=y(),Ne=E("div"),K&&K.c(),lu=y(),ae&&ae.c(),fu=y(),We=E("div"),W(Qe.$$.fragment),this.h()},l(b){e=v(b,"DIV",{class:!0});var N=D(e);u=v(N,"DIV",{class:!0});var hu=D(u);t=v(hu,"DIV",{class:!0});var su=D(t);n=v(su,"DIV",{class:!0});var pe=D(n);Y(r.$$.fragment,pe),s=L(pe),Y(a.$$.fragment,pe),c=L(pe),Y(i.$$.fragment,pe),f=L(pe),H&&H.l(pe),p=L(pe),q&&q.l(pe),pe.forEach(m),su.forEach(m),hu.forEach(m),N.forEach(m),k=L(b),A=v(b,"SECTION",{});var mu=D(A);S=v(mu,"DIV",{class:!0});var ue=D(S);U=v(ue,"DIV",{class:!0});var Bu=D(U);w=v(Bu,"TEXTAREA",{class:!0,rows:!0,placeholder:!0}),D(w).forEach(m),Bu.forEach(m),_=L(ue),g=v(ue,"DIV",{class:!0});var ku=D(g);B=v(ku,"DIV",{class:!0});var De=D(B);R=v(De,"A",{href:!0,target:!0,rel:!0,class:!0});var Du=D(R);j=v(Du,"I",{class:!0}),D(j).forEach(m),qe=ce(Du," Справка"),Du.forEach(m),Ee=L(De),fe=v(De,"BUTTON",{class:!0});var Su=D(fe);Ie=ce(Su,O),Su.forEach(m),$e=L(De),G&&G.l(De),Re=L(De),V=v(De,"BUTTON",{class:!0});var _u=D(V);ne&&ne.l(_u),ru=L(_u),Je=v(_u,"SPAN",{"data-svelte-h":!0}),Le(Je)!=="svelte-1cu0b9t"&&(Je.textContent=bu),_u.forEach(m),Be=L(De),Y($.$$.fragment,De),Xe=L(De),de=v(De,"BUTTON",{title:!0,class:!0});var Tu=D(de);iu=ce(Tu,l[30]),Tu.forEach(m),De.forEach(m),ku.forEach(m),ou=L(ue),ke=v(ue,"DIV",{class:!0});var C=D(ke);J&&J.l(C),C.forEach(m),uu=L(ue),ye=v(ue,"DIV",{class:!0});var z=D(ye);Y(ve.$$.fragment,z),z.forEach(m),cu=L(ue),X&&X.l(ue),Ke=L(ue),Ne=v(ue,"DIV",{class:!0});var M=D(Ne);K&&K.l(M),M.forEach(m),lu=L(ue),ae&&ae.l(ue),fu=L(ue),We=v(ue,"DIV",{});var te=D(We);Y(Qe.$$.fragment,te),te.forEach(m),ue.forEach(m),mu.forEach(m),this.h()},h(){h(n,"class","flex-wrap justify-between"),h(t,"class","status-components justify-between align-middle flex m-2"),h(u,"class","mx-auto flex items-center justify-between"),h(e,"class","absolute top-0 left-0 w-full bg-black text-white shadow-lg z-50 h-15"),me(e,"hidden",!l[35]),h(w,"class","auto-expand-textarea rounded-sm svelte-fiifsz"),h(w,"rows","1"),h(w,"placeholder","Введите ваш запрос (Ctrl+Enter для отправки)"),h(U,"class","grow-wrap w-full svelte-fiifsz"),h(j,"class","fa-regular fa-circle-question"),h(R,"href",`${l[32]}file/view/id/${l[37]}`),h(R,"target","_blank"),h(R,"rel","noopener noreferrer"),h(R,"class","btn variant-outline-tertiary reference-btn svelte-fiifsz"),h(fe,"class",he="chip "+(l[28]?"variant-filled-primary":"variant-soft-primary")),me(fe,"hidden",!l[4]),h(V,"class",au="chip "+(l[6]?"variant-filled-primary":"variant-soft-primary")),V.disabled=!0,h(de,"title","Ctrl+Enter"),de.disabled=eu=!l[5]&&!l[14],h(de,"class","btn variant-filled-primary w-40"),h(B,"class","flex justify-end flex-wrap gap-2 m-2 mr-0 ml-0"),h(g,"class","search-second-bar w-full flex justify-end svelte-fiifsz"),h(ke,"class","flex space-x-2 items-center justify-center w-full"),h(ye,"class","w-full"),me(ye,"hidden",!l[28]),h(Ne,"class","w-full my-2"),me(We,"hidden",!(((l[0].search?.searchResults||[]).length>0||l[12]&&l[12].length>0)&&!l[18])),h(S,"class","search-bar flex flex-wrap px-2 pt-2 svelte-fiifsz"),me(A,"mt-16",l[35])},m(b,N){I(b,e,N),d(e,u),d(u,t),d(t,n),Z(r,n,null),d(n,s),Z(a,n,null),d(n,c),Z(i,n,null),d(n,f),H&&H.m(n,null),d(n,p),q&&q.m(n,null),I(b,k,N),I(b,A,N),d(A,S),d(S,U),d(U,w),nu(w,l[5]),d(S,_),d(S,g),d(g,B),d(B,R),d(R,j),d(R,qe),d(B,Ee),d(B,fe),d(fe,Ie),d(B,$e),G&&G.m(B,null),d(B,Re),d(B,V),ne&&ne.m(V,null),d(V,ru),d(V,Je),d(B,Be),Z($,B,null),d(B,Xe),d(B,de),d(de,iu),d(S,ou),d(S,ke),J&&J.m(ke,null),d(S,uu),d(S,ye),Z(ve,ye,null),d(S,cu),X&&X.m(S,null),d(S,Ke),d(S,Ne),K&&K.m(Ne,null),d(S,lu),ae&&ae.m(S,null),d(S,fu),d(S,We),Z(Qe,We,null),Ce=!0,Eu||(vu=[Q(w,"input",l[54]),Q(w,"input",l[41]),Q(w,"keydown",l[42]),Q(fe,"click",l[40]),Q(V,"click",l[57]),Q(de,"click",l[44])],Eu=!0)},p(b,N){const hu={};!o&&N[1]&1&&(o=!0,hu.selectedLLM=b[31],le(()=>o=!1)),i.$set(hu),b[21]?H?(H.p(b,N),N[0]&2097152&&F(H,1)):(H=n4(b),H.c(),F(H,1),H.m(n,p)):H&&(Se(),T(H,1,1,()=>{H=null}),Te()),b[0].useInvestigator&&b[0].investigatorSettings!==null?q?(q.p(b,N),N[0]&1&&F(q,1)):(q=r4(b),q.c(),F(q,1),q.m(n,null)):q&&(Se(),T(q,1,1,()=>{q=null}),Te()),N[0]&32&&nu(w,b[5]),(!Ce||N[0]&268435456)&&O!==(O=b[28]?"Свернуть уточнение":"Уточнить")&&Fe(Ie,O),(!Ce||N[0]&268435456&&he!==(he="chip "+(b[28]?"variant-filled-primary":"variant-soft-primary")))&&h(fe,"class",he),(!Ce||N[0]&268435472)&&me(fe,"hidden",!b[4]),b[6]?G&&(Se(),T(G,1,1,()=>{G=null}),Te()):G?(G.p(b,N),N[0]&64&&F(G,1)):(G=a4(b),G.c(),F(G,1),G.m(B,Re)),b[6]?ne||(ne=i4(),ne.c(),ne.m(V,ru)):ne&&(ne.d(1),ne=null),(!Ce||N[0]&64&&au!==(au="chip "+(b[6]?"variant-filled-primary":"variant-soft-primary")))&&h(V,"class",au);const su={};!je&&N[0]&262144&&(je=!0,su.disabled=b[18],le(()=>je=!1)),!He&&N[0]&1024&&(He=!0,su.selected=b[10],le(()=>He=!1)),$.$set(su),(!Ce||N[0]&1073741824)&&Fe(iu,b[30]),(!Ce||N[0]&16416&&eu!==(eu=!b[5]&&!b[14]))&&(de.disabled=eu),b[2]||b[3]?J?(J.p(b,N),N[0]&12&&F(J,1)):(J=o4(b),J.c(),F(J,1),J.m(ke,null)):J&&(Se(),T(J,1,1,()=>{J=null}),Te());const pe={};!ze&&N[0]&2&&(ze=!0,pe.llmClarification=b[1],le(()=>ze=!1)),ve.$set(pe),(!Ce||N[0]&268435456)&&me(ye,"hidden",!b[28]),b[8]?X?(X.p(b,N),N[0]&256&&F(X,1)):(X=c4(b),X.c(),F(X,1),X.m(S,Ke)):X&&(Se(),T(X,1,1,()=>{X=null}),Te()),N[0]&8192&&(tu=b[13]&&Object.keys(b[13]).length>0),tu?K?(K.p(b,N),N[0]&8192&&F(K,1)):(K=f4(b),K.c(),F(K,1),K.m(Ne,null)):K&&(Se(),T(K,1,1,()=>{K=null}),Te()),b[26]?ae||(ae=h4(),ae.c(),ae.m(S,fu)):ae&&(ae.d(1),ae=null);const mu={};N[0]&1002936457|N[3]&1&&(mu.$$scope={dirty:N,ctx:b}),Qe.$set(mu),(!Ce||N[0]&266241)&&me(We,"hidden",!(((b[0].search?.searchResults||[]).length>0||b[12]&&b[12].length>0)&&!b[18]))},i(b){Ce||(F(r.$$.fragment,b),F(a.$$.fragment,b),F(i.$$.fragment,b),F(H),F(q),F(G),F($.$$.fragment,b),F(J),F(ve.$$.fragment,b),F(X),F(K),F(Qe.$$.fragment,b),Ce=!0)},o(b){T(r.$$.fragment,b),T(a.$$.fragment,b),T(i.$$.fragment,b),T(H),T(q),T(G),T($.$$.fragment,b),T(J),T(ve.$$.fragment,b),T(X),T(K),T(Qe.$$.fragment,b),Ce=!1},d(b){b&&(m(e),m(k),m(A)),x(r),x(a),x(i),H&&H.d(),q&&q.d(),G&&G.d(),ne&&ne.d(),x($),J&&J.d(),x(ve),X&&X.d(),K&&K.d(),ae&&ae.d(),x(Qe),Eu=!1,wu(vu)}}}let b4=!1,O0="";function M0(l,e,u){let{data:t}=e;const{ENV_DOCUMENT_DB_URL:n,ENV_ENABLE_DOCUMENT_DB:r,ENV_ENABLE_DB_SUPPORT:s,ENV_ENABLE_DEV_FEATURES:a,ENV_DISABLE_HEALTH_CHECKS:c,ENV_FAQ_DOCUMENT_ID:i}=t;let o=t.Model,f,p="",k=!1,A=y4,S={НКРФ:!1,ГКРФ:!1,ТКРФ:!1,"Федеральный закон":!1,"Письмо Минфина":!1,"Письмо ФНС":!1,"Приказ ФНС":!1,"Постановление Правительства":!1,"Судебный документ":!1,ВНД:!1,"Бухгалтерский документ":!1};function U(C){u(9,A=C)}function w(){u(8,k=!1)}Uu(()=>{q()});let _=[],g=[],B=null,R=!1,j=!1,qe=!1,Ee="",fe=!0,O="",Ie="",he="",$e=[];Array(g.length).fill(!1);let Re,V=!1,ru=!0,Je=!0,bu=!1,au=!0,Be=!1,$=!0,je=!1,He=!1,Xe=N4.llm_params,de=!1,iu=!1,eu=!1,ou=!1,ke=!1,uu=!1,ye=!1,ve=!1,ze=!1,cu,Ke=null,Ne,tu=-1,lu=-1,fu="Отправить";const We=async C=>{u(28,ve=!ve)},Qe=C=>{u(5,O=C.target.value);const z=C.target.parentNode;z&&(z.dataset.replicatedValue=O)},Ce=C=>{C.ctrlKey&&C.key==="Enter"&&(C.preventDefault(),H())};async function Eu(){if(!(p&&Ee)||(fe=!1,!o.search?.searchResults))return;let C=o.search.searchResults,z=o.search.explanations;if(u(3,j=!0),u(14,he="Преобразуем результаты поиска в запрос для ИИ"),V&&(C=o.search.searchResults.filter((te,we)=>Re[te.title]),!C)){u(0,o.llmFinalAnswer="Выберите хотя бы один документ из результатов поиска.",o);return}let M=Ge.convertSearchResultsToLlmSources(C,uu?g:null,z);if(M){let te="",we="",Oe=Ru.Clarification,ie={...re,name:re.name.replace(" (изменено)","")};V?(we=re.predict_params?.user_selected_sources_clarification_system_prompt||"",te=re.predict_params?.user_selected_sources_clarification_prompt||"",Oe=Ru.UserSelectedSearchResults):(we=re.predict_params?.clarification_prompt||"",te=re.predict_params?.clarification_system_prompt||"");const gu=te+we+(o.search.modifiedQuery||O),du=await Ge.sendTrimByTokens(ie.name,M,gu,Ue);M=du.result,tu=du.originalTokenCount,lu=du.slicedTokenCount;const Ye=Ge.buildClarificationPrompt(o.search.modifiedQuery||O,M,Ee,p,we);u(0,o.llmFinalAnswer="",o),await Fu(Ye,Ne,ie,Oe)}}const vu=async C=>{if(!o.search?.searchResults)return;let z=o.search.searchResults,M=o.search.explanations;if(u(3,j=!0),u(14,he="Преобразуем результаты поиска в запрос для ИИ"),V&&(z=o.search.searchResults.filter((we,Oe)=>Re[we.title]),!z)){u(0,o.llmFinalAnswer="Выберите хотя бы один документ из результатов поиска.",o);return}let te=Ge.convertSearchResultsToLlmSources(z,uu?g:null,M);if(te){let we="",Oe="",ie=Ru.Regular,gu={...re,name:re.name.replace(" (изменено)","")};if(o.useInvestigator&&o.investigatorSettings){const du=we+Oe+(o.search.modifiedQuery||O),Ye=await Ge.sendTrimByTokens(gu.name,te,du,Ue);te=Ye.result,tu=Ye.originalTokenCount,lu=Ye.slicedTokenCount;const Nu={llm_params:Xe,query:""},Ou=new L4(o.investigatorSettings,Nu,5);o.investigatorSettings&&Ou.applySettings(o.investigatorSettings);const Mu=await Ou.getResponse(O,te,Ue);u(0,o.llmFinalAnswer=Mu.result,o),u(14,he=""),u(3,j=!1),console.log(Mu.generatedQA)}else{V?(Oe=re.predict_params?.user_selected_sources_prompt||"",we=re.predict_params?.user_selected_sources_system_prompt||"",ie=Ru.UserSelectedSearchResults):(Oe=re.predict_params?.user_prompt||"",we=re.predict_params?.system_prompt||"");const du=we+Oe+(o.search.modifiedQuery||O),Ye=await Ge.sendTrimByTokens(gu.name,te,du,Ue);te=Ye.result,tu=Ye.originalTokenCount,lu=Ye.slicedTokenCount;const Nu=Ge.buildLlmResponsePrompt(o.search.modifiedQuery||O,te,Oe);u(0,o.llmFinalAnswer="",o),await Fu(Nu,o.search.modifiedQuery,gu,ie)}}},Fu=async(C,z,M,te)=>{u(3,j=!0),u(14,he="Запрос поставлен в очередь на генерацию ответа"),u(50,Ie=O);const we=ie=>{u(14,he=ie)};u(0,o.llmFinalAnswer=await Ge.doRequest(M.name,C,te,1,Ue,we,null,M.predict_params,"Конец ответ"),o),u(0,o.llmFinalAnswer=Ge.postProcessLlmAnswer(o.llmFinalAnswer),o);const Oe=await ju.extractUsedSearchResults(o.llmFinalAnswer,o.search?.searchResults||[]);u(29,ze=!0),u(11,_=Oe.searchResults),f.blinkButton(),de||(u(14,he=""),u(3,j=!1),u(25,ou=!0),u(4,Ee=o.llmFinalAnswer),Ke=await qu.log({consultations:(g||[]).map(ie=>JSON.stringify(ie)),explanations:(o.search?.explanations||[]).map(ie=>JSON.stringify(ie)),llmPrompt:C,llmResponse:o.llmFinalAnswer,searchResults:o.search?.searchResults.map(ie=>JSON.stringify(ie)),selectedSearchResults:o.search?.searchResults.filter((ie,gu)=>Re[ie.title]).map(ie=>JSON.stringify(ie)),userScore:void 0,userComment:O0,userRequest:O,modifiedUserRequest:z,searchMetrics:cu,requestOriginalTokenCount:tu,requestSlicedTokenCount:lu,uiSettings:{enableSearchResultSelection:V,enableLLMForTeasers:He,doMultistepSearch:je,useAccountingDocs:ru,useReranking:Je,useLLMForFiltering:bu,disableThresholds:au,searchInTransactionLedgerByOperation:b4,searchInTransactionLedgerByQuestion:$,useShortestPrompt:de,enableRealtimeLlmReponse:eu,sendConsultationToLlm:uu}}))};let Ue=new AbortController;const H=async C=>{if(j||R){await q();return}if(!O)return;u(15,$e=Array(10).fill(!1)),Array(10).fill(!1),u(16,Re={}),u(0,o.llmFinalAnswer="",o),u(4,Ee=""),fe=!0,u(23,iu=!1),u(25,ou=!1),u(2,R=!0),u(3,j=!1),u(49,qe=!0),u(26,ke=!1),u(11,_=[]),u(29,ze=!1),cu=void 0,u(14,he="Ищем релевантные документы"),Ne=void 0,u(28,ve=!1),u(1,p="");let z;try{const M=await ju.doRequest({query:O,use_olympic:He,use_qe:je,find_transaction_maps_by_question:$,find_transaction_maps_by_operation:b4,categories:S,llm_params:Xe},Ue);u(0,o.search=M,o),Ne=M.modifiedQuery,u(12,g=M.relevantConsultations),z=M.explanations||[],u(13,B=M.transactionMaps||null),cu=M.metrics,u(26,ke=Be&&!B),u(14,he=""),u(2,R=!1),u(49,qe=!1)}catch(M){if(u(26,ke=!0),M instanceof Error&&M.name==="AbortError")alert("Сервис поиска не отвечает. Попробуйте изменить и повторить запрос"),console.error("Request was aborted due to timeout"),M.message&&console.error("Fetch error:",M.message);else throw console.error("Fetch error:",M),M}finally{u(14,he=""),u(2,R=!1),u(26,ke=!1),u(49,qe=!1)}Be||(o.search?.searchResults||[]).length>0&&(V||await vu())},q=()=>{Ue.abort("user canceled"),Ue=new AbortController,u(3,j=!1),u(14,he=""),Ke=null,u(49,qe=!1),fe=!0,u(2,R=!1),u(11,_=[]),u(29,ze=!1)};async function G(){u(0,o.llmFinalAnswer="",o),u(4,Ee=""),fe=!0,await q(),setTimeout(async()=>{console.log(fe),await vu()},1e3)}async function ne(C){console.log(`Оценка: ${C.rating} звезд, Комментарий: ${C.comment}`),Ke!==null&&await qu.logUserScore(Ke,C.rating,C.comment)}async function Lu(){let C={consultations:(g||[]).map(z=>JSON.stringify(z)),explanations:(o.search?.explanations||[]).map(z=>JSON.stringify(z)),llmResponse:o.llmFinalAnswer,searchResults:o.search?.searchResults.map(z=>({title:z.title,text:z.text_for_llm||z.text})),userRequest:O,uiSettings:{enableSearchResultSelection:V,enableOlympicSearch:He,enableQueryExpansionSearch:je}};_0.createDocxFromObject(C)}let re;function Cu(C){re=C,u(31,re)}function J(C){Xe=C,u(21,Xe)}function Iu(C){l.$$.not_equal(o.investigatorSettings,C)&&(o.investigatorSettings=C,u(0,o))}function Au(){O=this.value,u(5,O)}function X(C){He=C,u(20,He)}function K(C){je=C,u(19,je)}const ae=()=>{u(6,$=!$)};function b(C){Be=C,u(18,Be),u(6,$),u(1,p),u(0,o),u(4,Ee),u(50,Ie),u(5,O),u(3,j)}function N(C){S=C,u(10,S)}function hu(C){p=C,u(1,p)}function su(C){B=C,u(13,B)}function pe(C){ee[C?"unshift":"push"](()=>{f=C,u(7,f)})}function mu(C){l.$$.not_equal(o.search.searchResults,C)&&(o.search.searchResults=C,u(0,o))}function ue(C){_=C,u(11,_)}function Bu(C){$e=C,u(15,$e)}function ku(C){Re=C,u(16,Re)}function De(C){V=C,u(17,V),u(6,$),u(1,p),u(0,o),u(4,Ee),u(50,Ie),u(5,O),u(3,j)}function Du(C){Be=C,u(18,Be),u(6,$),u(1,p),u(0,o),u(4,Ee),u(50,Ie),u(5,O),u(3,j)}function Su(C){ze=C,u(29,ze)}function _u(C){l.$$.not_equal(o.search.explanations,C)&&(o.search.explanations=C,u(0,o))}function Tu(C){g=C,u(12,g)}return l.$$set=C=>{"data"in C&&u(48,t=C.data)},l.$$.update=()=>{l.$$.dirty[0]&123|l.$$.dirty[1]&524288&&($?(u(18,Be=!0),u(17,V=!1),ru=!1,Je=!1,bu=!1,au=!1,u(22,de=!1),u(24,eu=!1),uu=!1):u(18,Be=!1),p&&(o.search?.searchResults||[]).length>0&&Ee&&Ie==O&&!j?u(27,ye=!0):u(27,ye=!1)),l.$$.dirty[0]&12|l.$$.dirty[1]&262144&&u(30,fu=qe||j||R?"Стоп":"Отправить")},[o,p,R,j,Ee,O,$,f,k,A,S,_,g,B,he,$e,Re,V,Be,je,He,Xe,de,iu,eu,ou,ke,ye,ve,ze,fu,re,n,r,s,a,c,i,U,w,We,Qe,Ce,Eu,H,G,ne,Lu,t,qe,Ie,Cu,J,Iu,Au,X,K,ae,b,N,hu,su,pe,mu,ue,Bu,ku,De,Du,Su,_u,Tu]}class Z0 extends ge{constructor(e){super(),be(this,e,M0,U0,_e,{data:48},null,[-1,-1,-1,-1])}}export{Z0 as component,Y0 as universal};
build/client/_app/immutable/nodes/3.L0oIytRD.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{b as ue,p as se,e as m,c as R,d as _,f as F,j as M,i as C,q as j,u as f,k as J,l as a,v as G,w as U,x as ae,y as ne,r as re,t as H,h as Q,m as W,n as le}from"../chunks/scheduler.5WtVptCO.js";import{S as oe,i as ce,b as ie,c as de,d as fe,m as he,a as pe,t as me,e as _e}from"../chunks/index.7IiDzEZn.js";import{e as Y}from"../chunks/each.C7pZUaX1.js";import{L as ge}from"../chunks/LlmSelector.Snki38ql.js";function Z(s,e,t){const n=s.slice();return n[15]=e[t],n}function $(s){let e,t,n,r="Вы:",u,g,h,o=s[15][0]+"",p,b,B,A="Бот:",L,P,w,I=s[15][1]+"",T,c;return{c(){e=m("div"),t=m("div"),n=m("p"),n.textContent=r,u=R(),g=m("div"),h=m("p"),p=H(o),b=R(),B=m("p"),B.textContent=A,L=R(),P=m("div"),w=m("pre"),T=H(I),c=R(),this.h()},l(i){e=_(i,"DIV",{class:!0});var v=F(e);t=_(v,"DIV",{class:!0});var E=F(t);n=_(E,"P",{class:!0,"data-svelte-h":!0}),j(n)!=="svelte-rp9yxd"&&(n.textContent=r),u=M(E),g=_(E,"DIV",{class:!0});var N=F(g);h=_(N,"P",{class:!0});var O=F(h);p=Q(O,o),O.forEach(C),N.forEach(C),b=M(E),B=_(E,"P",{class:!0,"data-svelte-h":!0}),j(B)!=="svelte-1l7fbwv"&&(B.textContent=A),L=M(E),P=_(E,"DIV",{class:!0});var S=F(P);w=_(S,"PRE",{class:!0});var d=F(w);T=Q(d,I),d.forEach(C),S.forEach(C),E.forEach(C),c=M(v),v.forEach(C),this.h()},h(){f(n,"class","font-bold text-sm"),f(h,"class","text-sm"),f(g,"class","self-start bg-blue-500 text-white p-2 rounded-lg"),f(B,"class","font-bold text-sm"),f(w,"class","text-sm svelte-1m09ey3"),f(P,"class","self-start bg-slate-100 text-black p-2 rounded-lg"),f(t,"class","mb-2 flex flex-col"),f(e,"class","mb-2 flex flex-col")},m(i,v){J(i,e,v),a(e,t),a(t,n),a(t,u),a(t,g),a(g,h),a(h,p),a(t,b),a(t,B),a(t,L),a(t,P),a(P,w),a(w,T),a(e,c)},p(i,v){v&3&&o!==(o=i[15][0]+"")&&W(p,o),v&3&&I!==(I=i[15][1]+"")&&W(T,I)},d(i){i&&C(e)}}}function ee(s){let e,t="Остановить",n,r;return{c(){e=m("button"),e.textContent=t,this.h()},l(u){e=_(u,"BUTTON",{class:!0,"data-svelte-h":!0}),j(e)!=="svelte-9vttci"&&(e.textContent=t),this.h()},h(){f(e,"class","ml-2 px-4 py-2 mb-8 bg-cyan-800 text-white rounded-md")},m(u,g){J(u,e,g),n||(r=U(e,"click",s[7]),n=!0)},p:le,d(u){u&&C(e),n=!1,r()}}}function te(s){let e,t="Отправить",n,r;return{c(){e=m("button"),e.textContent=t,this.h()},l(u){e=_(u,"BUTTON",{class:!0,"data-svelte-h":!0}),j(e)!=="svelte-n2s9cz"&&(e.textContent=t),this.h()},h(){f(e,"class","ml-2 px-4 py-2 mb-8 bg-blue-500 text-white rounded-md")},m(u,g){J(u,e,g),n||(r=U(e,"click",s[5]),n=!0)},p:le,d(u){u&&C(e),n=!1,r()}}}function be(s){let e,t,n,r,u,g,h,o,p,b,B,A,L,P,w,I="Использовать системный промпт",T,c,i,v,E;function N(l){s[8](l)}let O={};s[4]!==void 0&&(O.selectedLLM=s[4]),t=new ge({props:O}),se.push(()=>ie(t,"selectedLLM",N));let S=Y(s[0]?s[1].slice(1):s[1]),d=[];for(let l=0;l<S.length;l+=1)d[l]=$(Z(s,S,l));let y=s[3]&&ee(s),k=!s[3]&&te(s);return{c(){e=m("div"),de(t.$$.fragment),r=R(),u=m("div");for(let l=0;l<d.length;l+=1)d[l].c();g=R(),h=m("div"),o=m("div"),p=m("div"),b=m("textarea"),B=R(),A=m("label"),L=m("input"),P=R(),w=m("p"),w.textContent=I,T=R(),y&&y.c(),c=R(),k&&k.c(),this.h()},l(l){e=_(l,"DIV",{class:!0});var x=F(e);fe(t.$$.fragment,x),r=M(x),u=_(x,"DIV",{class:!0});var V=F(u);for(let X=0;X<d.length;X+=1)d[X].l(V);V.forEach(C),g=M(x),h=_(x,"DIV",{class:!0});var D=F(h);o=_(D,"DIV",{class:!0});var q=F(o);p=_(q,"DIV",{class:!0});var K=F(p);b=_(K,"TEXTAREA",{class:!0,placeholder:!0}),F(b).forEach(C),B=M(K),A=_(K,"LABEL",{class:!0});var z=F(A);L=_(z,"INPUT",{class:!0,type:!0}),P=M(z),w=_(z,"P",{"data-svelte-h":!0}),j(w)!=="svelte-15ltrgi"&&(w.textContent=I),z.forEach(C),K.forEach(C),T=M(q),y&&y.l(q),c=M(q),k&&k.l(q),q.forEach(C),D.forEach(C),x.forEach(C),this.h()},h(){f(u,"class","flex-1 overflow-y-auto p-4 bg-gray-200"),f(b,"class","flex-1 py-2 px-3 rounded-md border-gray-300 w-full"),f(b,"placeholder","Введите ваше сообщение..."),f(L,"class","checkbox accent-white"),f(L,"type","checkbox"),f(A,"class","flex items-center space-x-2"),f(p,"class","w-full"),f(o,"class","flex"),f(h,"class","p-4 bg-gray-300"),f(e,"class","h-screen flex flex-col py-8")},m(l,x){J(l,e,x),he(t,e,null),a(e,r),a(e,u);for(let V=0;V<d.length;V+=1)d[V]&&d[V].m(u,null);a(e,g),a(e,h),a(h,o),a(o,p),a(p,b),G(b,s[2]),a(p,B),a(p,A),a(A,L),L.checked=s[0],a(A,P),a(A,w),a(o,T),y&&y.m(o,null),a(o,c),k&&k.m(o,null),i=!0,v||(E=[U(b,"input",s[9]),U(b,"keydown",s[6]),U(L,"change",s[10])],v=!0)},p(l,[x]){const V={};if(!n&&x&16&&(n=!0,V.selectedLLM=l[4],ae(()=>n=!1)),t.$set(V),x&3){S=Y(l[0]?l[1].slice(1):l[1]);let D;for(D=0;D<S.length;D+=1){const q=Z(l,S,D);d[D]?d[D].p(q,x):(d[D]=$(q),d[D].c(),d[D].m(u,null))}for(;D<d.length;D+=1)d[D].d(1);d.length=S.length}x&4&&G(b,l[2]),x&1&&(L.checked=l[0]),l[3]?y?y.p(l,x):(y=ee(l),y.c(),y.m(o,c)):y&&(y.d(1),y=null),l[3]?k&&(k.d(1),k=null):k?k.p(l,x):(k=te(l),k.c(),k.m(o,null))},i(l){i||(pe(t.$$.fragment,l),i=!0)},o(l){me(t.$$.fragment,l),i=!1},d(l){l&&C(e),_e(t),ne(d,l),y&&y.d(),k&&k.d(),v=!1,re(E)}}}function ve(s,e,t){const n=["Ты - бот, ассистент. Ты помогаешь пользователю с его запросами. Отвечай на русском языке, если пользователь не указал иное. Обращайся на Вы. Следуй инструкциям и указаниям пользователя.","Я отвечаю на русском языке!"];let r=[],u="",g=!1,h=new AbortController,o=!1,p;async function b(){u.trim()!==""&&(t(1,r=[...r,[u,""]]),t(2,u=""),await A())}function B(c){c.key==="Enter"&&!c.shiftKey&&(c.stopPropagation(),c.preventDefault(),b())}const A=async()=>{t(3,g=!0);const c=await fetch("/llm/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({history:r,llm:p.name.replace(" (изменено)",""),predictParams:p.predict_params}),signal:h.signal});try{if(h.signal.aborted){console.log("Request was cancelled.");return}if(!c.body){console.log("Response has no body");return}const i=c.body.pipeThrough(new TextDecoderStream).getReader();let v=!0;for(;v;)try{if(h.signal.aborted){console.log("Request was cancelled during reading.");break}const{value:E,done:N}=await i.read();if(N){v=!1;break}E&&t(1,r[r.length-1][1]+=E,r)}catch(E){if(E.name==="AbortError"){v=!1,console.log("Fetch was aborted during reading.");break}else{v=!1,console.error("Error during reading:",E);break}}t(3,g=!1)}catch(i){i.name==="AbortError"?console.log("Fetch was aborted."):console.error("Error during fetch:",i)}},L=()=>{h.abort("user canceled"),h=new AbortController};function P(c){c?r.unshift(n):t(1,r=r.filter(i=>i!==n))}function w(c){p=c,t(4,p)}function I(){u=this.value,t(2,u)}function T(){o=this.checked,t(0,o)}return s.$$.update=()=>{s.$$.dirty&1&&P(o)},[o,r,u,g,p,b,B,L,w,I,T]}class xe extends oe{constructor(e){super(),ce(this,e,ve,be,ue,{})}}export{xe as component};
build/client/_app/immutable/nodes/4.5fEHNIuc.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import{b as mt,e as t,c,t as bt,d as l,q as x,j as o,f as h,h as xt,i as r,u as a,k as tt,l as e,w as _,z as Ct,n as _t,r as gt,A as Et}from"../chunks/scheduler.5WtVptCO.js";import{S as Lt,i as wt}from"../chunks/index.7IiDzEZn.js";import{L as kt}from"../chunks/LogService.hUlSDADx.js";import{p as Pt}from"../chunks/popup.dE7t2hhe.js";import"../chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";function yt(s){let L,b="Пользовательские логи",w,C,k,p,g,z,P,S,E,R,y,j,m,be=`Поля для экспорта
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 20" fill="currentColor" class="w-6 h-6"><path fill-rule="evenodd" d="M12 14.5a.75.75 0 01-.53-.22l-4.25-4.25a.75.75 0 011.06-1.06L12 12.69l3.72-3.72a.75.75 0 011.06 1.06l-4.25 4.25a.75.75 0 01-.53.22z" clip-rule="evenodd"></path></svg>`,xe,A,se,n,T,I,_e,q,Ce="Промпт",ke,U,B,me,V,Ne="Ответ LLM",D,f,v,N,ce,lt="Результаты поиска",ze,F,M,Se,oe,at="Выбранные результаты поиска",Re,H,O,je,re,nt="Параметры",qe,J,G,Ve,ue,st="Консультации",Fe,K,Q,Me,ie,ct="Разъяснения",He,W,X,Oe,he,ot="Запрос",Je,Y,Z,Ge,de,rt="Комментарий",Ke,$,ee,Qe,pe,ut="Дата создания",We,te,le,Xe,fe,it="Дата обновления",Ye,ve,ae,ht="Экспорт Excel",Ze,dt;return{c(){L=t("h1"),L.textContent=b,w=c(),C=t("div"),k=t("div"),p=t("div"),g=t("label"),z=bt(`Дата начала:
3
+ `),P=t("input"),S=c(),E=t("label"),R=bt(`Дата конца:
4
+ `),y=t("input"),j=c(),m=t("button"),m.innerHTML=be,xe=c(),A=t("div"),se=t("div"),n=t("label"),T=t("div"),I=t("input"),_e=c(),q=t("p"),q.textContent=Ce,ke=c(),U=t("label"),B=t("input"),me=c(),V=t("p"),V.textContent=Ne,D=c(),f=t("label"),v=t("input"),N=c(),ce=t("p"),ce.textContent=lt,ze=c(),F=t("label"),M=t("input"),Se=c(),oe=t("p"),oe.textContent=at,Re=c(),H=t("label"),O=t("input"),je=c(),re=t("p"),re.textContent=nt,qe=c(),J=t("label"),G=t("input"),Ve=c(),ue=t("p"),ue.textContent=st,Fe=c(),K=t("label"),Q=t("input"),Me=c(),ie=t("p"),ie.textContent=ct,He=c(),W=t("label"),X=t("input"),Oe=c(),he=t("p"),he.textContent=ot,Je=c(),Y=t("label"),Z=t("input"),Ge=c(),de=t("p"),de.textContent=rt,Ke=c(),$=t("label"),ee=t("input"),Qe=c(),pe=t("p"),pe.textContent=ut,We=c(),te=t("label"),le=t("input"),Xe=c(),fe=t("p"),fe.textContent=it,Ye=c(),ve=t("div"),ae=t("button"),ae.textContent=ht,this.h()},l(i){L=l(i,"H1",{"data-svelte-h":!0}),x(L)!=="svelte-pofs8j"&&(L.textContent=b),w=o(i),C=l(i,"DIV",{});var d=h(C);k=l(d,"DIV",{class:!0});var ge=h(k);p=l(ge,"DIV",{class:!0});var ne=h(p);g=l(ne,"LABEL",{});var $e=h(g);z=xt($e,`Дата начала:
5
+ `),P=l($e,"INPUT",{type:!0}),$e.forEach(r),S=o(ne),E=l(ne,"LABEL",{});var et=h(E);R=xt(et,`Дата конца:
6
+ `),y=l(et,"INPUT",{type:!0}),et.forEach(r),j=o(ne),m=l(ne,"BUTTON",{class:!0,"data-svelte-h":!0}),x(m)!=="svelte-szcpq9"&&(m.innerHTML=be),xe=o(ne),A=l(ne,"DIV",{class:!0,"data-popup":!0});var pt=h(A);se=l(pt,"DIV",{});var ft=h(se);n=l(ft,"LABEL",{class:!0,id:!0});var u=h(n);T=l(u,"DIV",{class:!0});var Ee=h(T);I=l(Ee,"INPUT",{class:!0,type:!0}),_e=o(Ee),q=l(Ee,"P",{"data-svelte-h":!0}),x(q)!=="svelte-1r1lhxs"&&(q.textContent=Ce),Ee.forEach(r),ke=o(u),U=l(u,"LABEL",{class:!0});var Le=h(U);B=l(Le,"INPUT",{class:!0,type:!0}),me=o(Le),V=l(Le,"P",{"data-svelte-h":!0}),x(V)!=="svelte-1t98vry"&&(V.textContent=Ne),Le.forEach(r),D=o(u),f=l(u,"LABEL",{class:!0});var we=h(f);v=l(we,"INPUT",{class:!0,type:!0}),N=o(we),ce=l(we,"P",{"data-svelte-h":!0}),x(ce)!=="svelte-15yeo0d"&&(ce.textContent=lt),we.forEach(r),ze=o(u),F=l(u,"LABEL",{class:!0});var Pe=h(F);M=l(Pe,"INPUT",{class:!0,type:!0}),Se=o(Pe),oe=l(Pe,"P",{"data-svelte-h":!0}),x(oe)!=="svelte-2trpqh"&&(oe.textContent=at),Pe.forEach(r),Re=o(u),H=l(u,"LABEL",{class:!0});var ye=h(H);O=l(ye,"INPUT",{class:!0,type:!0}),je=o(ye),re=l(ye,"P",{"data-svelte-h":!0}),x(re)!=="svelte-1fv4577"&&(re.textContent=nt),ye.forEach(r),qe=o(u),J=l(u,"LABEL",{class:!0});var Te=h(J);G=l(Te,"INPUT",{class:!0,type:!0}),Ve=o(Te),ue=l(Te,"P",{"data-svelte-h":!0}),x(ue)!=="svelte-1txzs8c"&&(ue.textContent=st),Te.forEach(r),Fe=o(u),K=l(u,"LABEL",{class:!0});var Ie=h(K);Q=l(Ie,"INPUT",{class:!0,type:!0}),Me=o(Ie),ie=l(Ie,"P",{"data-svelte-h":!0}),x(ie)!=="svelte-1x5a08z"&&(ie.textContent=ct),Ie.forEach(r),He=o(u),W=l(u,"LABEL",{class:!0});var Ue=h(W);X=l(Ue,"INPUT",{class:!0,type:!0}),Oe=o(Ue),he=l(Ue,"P",{"data-svelte-h":!0}),x(he)!=="svelte-1s3b98z"&&(he.textContent=ot),Ue.forEach(r),Je=o(u),Y=l(u,"LABEL",{class:!0});var Be=h(Y);Z=l(Be,"INPUT",{class:!0,type:!0}),Ge=o(Be),de=l(Be,"P",{"data-svelte-h":!0}),x(de)!=="svelte-16cwydz"&&(de.textContent=rt),Be.forEach(r),Ke=o(u),$=l(u,"LABEL",{class:!0});var De=h($);ee=l(De,"INPUT",{class:!0,type:!0}),Qe=o(De),pe=l(De,"P",{"data-svelte-h":!0}),x(pe)!=="svelte-tv34i0"&&(pe.textContent=ut),De.forEach(r),We=o(u),te=l(u,"LABEL",{class:!0});var Ae=h(te);le=l(Ae,"INPUT",{class:!0,type:!0}),Xe=o(Ae),fe=l(Ae,"P",{"data-svelte-h":!0}),x(fe)!=="svelte-1g2zmpw"&&(fe.textContent=it),Ae.forEach(r),u.forEach(r),ft.forEach(r),pt.forEach(r),ne.forEach(r),Ye=o(ge),ve=l(ge,"DIV",{class:!0});var vt=h(ve);ae=l(vt,"BUTTON",{class:!0,"data-svelte-h":!0}),x(ae)!=="svelte-77urvm"&&(ae.textContent=ht),vt.forEach(r),ge.forEach(r),d.forEach(r),this.h()},h(){a(P,"type","date"),a(y,"type","date"),a(m,"class","btn variant-outline-tertiary w-48 justify-between"),a(I,"class","checkbox accent-white"),a(I,"type","checkbox"),a(T,"class","flex items-center space-x-2 mx-2"),a(B,"class","checkbox accent-white"),a(B,"type","checkbox"),a(U,"class","flex items-center space-x-2"),a(v,"class","checkbox accent-white"),a(v,"type","checkbox"),a(f,"class","flex items-center space-x-2"),a(M,"class","checkbox accent-white"),a(M,"type","checkbox"),a(F,"class","flex items-center space-x-2"),a(O,"class","checkbox accent-white"),a(O,"type","checkbox"),a(H,"class","flex items-center space-x-2"),a(G,"class","checkbox accent-white"),a(G,"type","checkbox"),a(J,"class","flex items-center space-x-2"),a(Q,"class","checkbox accent-white"),a(Q,"type","checkbox"),a(K,"class","flex items-center space-x-2"),a(X,"class","checkbox accent-white"),a(X,"type","checkbox"),a(W,"class","flex items-center space-x-2"),a(Z,"class","checkbox accent-white"),a(Z,"type","checkbox"),a(Y,"class","flex items-center space-x-2"),a(ee,"class","checkbox accent-white"),a(ee,"type","checkbox"),a($,"class","flex items-center space-x-2"),a(le,"class","checkbox accent-white"),a(le,"type","checkbox"),a(te,"class","flex items-center space-x-2"),a(n,"class","flex items-left space-x-2 svelte-1szjsif"),a(n,"id","fields_container"),a(A,"class","card p-4 w-150 shadow-xl z-10"),a(A,"data-popup","popupFeatured"),a(p,"class","filters svelte-1szjsif"),a(ae,"class","btn variant-filled"),a(ve,"class","flex space-x-2 items-center"),a(k,"class","export_bar svelte-1szjsif")},m(i,d){tt(i,L,d),tt(i,w,d),tt(i,C,d),e(C,k),e(k,p),e(p,g),e(g,z),e(g,P),e(p,S),e(p,E),e(E,R),e(E,y),e(p,j),e(p,m),e(p,xe),e(p,A),e(A,se),e(se,n),e(n,T),e(T,I),I.checked=s[0],e(T,_e),e(T,q),e(n,ke),e(n,U),e(U,B),B.checked=s[1],e(U,me),e(U,V),e(n,D),e(n,f),e(f,v),v.checked=s[2],e(f,N),e(f,ce),e(n,ze),e(n,F),e(F,M),M.checked=s[3],e(F,Se),e(F,oe),e(n,Re),e(n,H),e(H,O),O.checked=s[4],e(H,je),e(H,re),e(n,qe),e(n,J),e(J,G),G.checked=s[5],e(J,Ve),e(J,ue),e(n,Fe),e(n,K),e(K,Q),Q.checked=s[6],e(K,Me),e(K,ie),e(n,He),e(n,W),e(W,X),X.checked=s[7],e(W,Oe),e(W,he),e(n,Je),e(n,Y),e(Y,Z),Z.checked=s[8],e(Y,Ge),e(Y,de),e(n,Ke),e(n,$),e($,ee),ee.checked=s[9],e($,Qe),e($,pe),e(n,We),e(n,te),e(te,le),le.checked=s[10],e(te,Xe),e(te,fe),e(k,Ye),e(k,ve),e(ve,ae),Ze||(dt=[_(P,"change",s[12]),_(y,"change",s[13]),Ct(Pt.call(null,m,s[14])),_(I,"change",s[15]),_(B,"change",s[16]),_(v,"change",s[17]),_(M,"change",s[18]),_(O,"change",s[19]),_(G,"change",s[20]),_(Q,"change",s[21]),_(X,"change",s[22]),_(Z,"change",s[23]),_(ee,"change",s[24]),_(le,"change",s[25]),_(ae,"click",s[26])],Ze=!0)},p(i,[d]){d&1&&(I.checked=i[0]),d&2&&(B.checked=i[1]),d&4&&(v.checked=i[2]),d&8&&(M.checked=i[3]),d&16&&(O.checked=i[4]),d&32&&(G.checked=i[5]),d&64&&(Q.checked=i[6]),d&128&&(X.checked=i[7]),d&256&&(Z.checked=i[8]),d&512&&(ee.checked=i[9]),d&1024&&(le.checked=i[10])},i:_t,o:_t,d(i){i&&(r(L),r(w),r(C)),Ze=!1,gt(dt)}}}function Tt(s,L,b){let w,C,k=!0,p=!0,g=!0,z=!0,P=!0,S=!0,E=!0,R=!0,y=!0,j=!0,m=!0;async function be(D){if(D==="json")await kt.exportToJson(w,C);else if(D==="excel"){const f=await kt.exportToExcel(w,C,[k?"llmPrompt":"",p?"llmResponse":"",g?"searchResults":"",z?"selectedSearchResults":"",P?"uiSettings":"",S?"consultations":"",E?"explanations":"",R?"userRequest":"",y?"userComment":"",j?"dateCreated":"",m?"dateUpdated":"","requestOriginalTokenCount","requestSlicedTokenCount","searchMetrics"]);if(f!=null){const v=window.URL.createObjectURL(f),N=document.createElement("a");N.href=v,N.download=`Журнал ответов с ${w?.toLocaleDateString()??"-"} по ${C?.toLocaleDateString()??"-"}.xlsx`,document.body.appendChild(N),N.click(),N.remove()}}}function xe(D){const f=D.target;if(f.value){const v=new Date(f.value);v.setHours(0,0,0,0),w=v}else w=void 0}function A(D){const f=D.target;if(f.value){const v=new Date(f.value);v.setHours(23,59,59,999),C=v}else C=void 0}Et(async()=>{});const se={event:"click",target:"popupFeatured",placement:"bottom"};function n(){k=this.checked,b(0,k)}function T(){p=this.checked,b(1,p)}function I(){g=this.checked,b(2,g)}function _e(){z=this.checked,b(3,z)}function q(){P=this.checked,b(4,P)}function Ce(){S=this.checked,b(5,S)}function ke(){E=this.checked,b(6,E)}function U(){R=this.checked,b(7,R)}function B(){y=this.checked,b(8,y)}function me(){j=this.checked,b(9,j)}function V(){m=this.checked,b(10,m)}return[k,p,g,z,P,S,E,R,y,j,m,be,xe,A,se,n,T,I,_e,q,Ce,ke,U,B,me,V,()=>be("excel")]}class Nt extends Lt{constructor(L){super(),wt(this,L,Tt,yt,mt,{})}}export{Nt as component};
build/client/_app/immutable/nodes/5.saWmi_tN.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{b as lt,P as Ie,L as We,e as T,c as j,d as C,f as P,j as O,i as m,a8 as ct,u as h,B as ne,k as S,l as A,w as z,M as Ge,N as Qe,O as Je,r as mt,a9 as ft,R as Et,Q as Ve,S as te,p as Me,t as ye,q as me,h as Ae,n as kt,I as At,s as Xe,T as Zt,g as Ye,o as qe,A as xt,F as Pe,aa as he,ab as Jt,x as Ze,v as Tt,m as dt,H as Oe,C as Ne}from"../chunks/scheduler.5WtVptCO.js";import{S as nt,i as st,a as M,g as Ce,t as W,f as Le,c as Fe,d as Ue,m as ze,e as je,b as xe}from"../chunks/index.7IiDzEZn.js";import{e as ht,u as Kt,o as $t,d as el}from"../chunks/each.C7pZUaX1.js";import{w as De}from"../chunks/index.G3yBo0_P.js";import{E as Ct}from"../chunks/exceljs.min.ptB2ikW7.js";import"../chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js";import{g as Xt}from"../chunks/ModalPromptEditor.x-CfuIKj.js";import{S as tl,I as ll,L as Be,a as nl,U as Lt}from"../chunks/InvestigatorSettings.5lll9SsD.js";import{S as sl}from"../chunks/SearchUtils.tAbMbmlw.js";import{L as Yt}from"../chunks/LlmSelector.Snki38ql.js";const al=t=>({}),It=t=>({}),ul=t=>({}),Dt=t=>({}),rl=t=>({}),wt=t=>({});function St(t){let e,l,s;const n=t[18].lead,a=We(n,t,t[17],wt);return{c(){e=T("div"),a&&a.c(),this.h()},l(r){e=C(r,"DIV",{class:!0});var i=P(e);a&&a.l(i),i.forEach(m),this.h()},h(){h(e,"class",l="dropzone-lead "+t[5])},m(r,i){S(r,e,i),a&&a.m(e,null),s=!0},p(r,i){a&&a.p&&(!s||i[0]&131072)&&Ge(a,n,r,r[17],s?Je(n,r[17],i,rl):Qe(r[17]),wt),(!s||i[0]&32&&l!==(l="dropzone-lead "+r[5]))&&h(e,"class",l)},i(r){s||(M(a,r),s=!0)},o(r){W(a,r),s=!1},d(r){r&&m(e),a&&a.d(r)}}}function il(t){let e,l="Upload a file",s;return{c(){e=T("strong"),e.textContent=l,s=ye(" or drag and drop")},l(n){e=C(n,"STRONG",{"data-svelte-h":!0}),me(e)!=="svelte-13uz6lq"&&(e.textContent=l),s=Ae(n," or drag and drop")},m(n,a){S(n,e,a),S(n,s,a)},p:kt,d(n){n&&(m(e),m(s))}}}function Rt(t){let e,l,s;const n=t[18].meta,a=We(n,t,t[17],It);return{c(){e=T("small"),a&&a.c(),this.h()},l(r){e=C(r,"SMALL",{class:!0});var i=P(e);a&&a.l(i),i.forEach(m),this.h()},h(){h(e,"class",l="dropzone-meta "+t[7])},m(r,i){S(r,e,i),a&&a.m(e,null),s=!0},p(r,i){a&&a.p&&(!s||i[0]&131072)&&Ge(a,n,r,r[17],s?Je(n,r[17],i,al):Qe(r[17]),It),(!s||i[0]&128&&l!==(l="dropzone-meta "+r[7]))&&h(e,"class",l)},i(r){s||(M(a,r),s=!0)},o(r){W(a,r),s=!1},d(r){r&&m(e),a&&a.d(r)}}}function ol(t){let e,l,s,n,a,r,i,o,u,c,E,_,I,D,F,U,N=[{type:"file"},{name:t[2]},{class:s="dropzone-input "+t[9]},t[11]()],g={};for(let k=0;k<N.length;k+=1)g=Ie(g,N[k]);let B=t[13].lead&&St(t);const V=t[18].message,p=We(V,t,t[17],Dt),w=p||il();let R=t[13].meta&&Rt(t);return{c(){e=T("div"),l=T("input"),n=j(),a=T("div"),r=T("div"),B&&B.c(),i=j(),o=T("div"),w&&w.c(),c=j(),R&&R.c(),this.h()},l(k){e=C(k,"DIV",{class:!0,"data-testid":!0});var f=P(e);l=C(f,"INPUT",{type:!0,name:!0,class:!0}),n=O(f),a=C(f,"DIV",{class:!0});var H=P(a);r=C(H,"DIV",{class:!0});var q=P(r);B&&B.l(q),i=O(q),o=C(q,"DIV",{class:!0});var se=P(o);w&&w.l(se),se.forEach(m),c=O(q),R&&R.l(q),q.forEach(m),H.forEach(m),f.forEach(m),this.h()},h(){ct(l,g),h(o,"class",u="dropzone-message "+t[6]),h(r,"class",E="dropzone-interface-text "+t[4]),h(a,"class",_="dropzone-interface "+t[8]+" "+t[3]),h(e,"class",I="dropzone "+t[10]),h(e,"data-testid","file-dropzone"),ne(e,"opacity-50",t[12].disabled)},m(k,f){S(k,e,f),A(e,l),l.autofocus&&l.focus(),t[32](l),A(e,n),A(e,a),A(a,r),B&&B.m(r,null),A(r,i),A(r,o),w&&w.m(o,null),A(r,c),R&&R.m(r,null),D=!0,F||(U=[z(l,"change",t[31]),z(l,"change",t[19]),z(l,"dragenter",t[20]),z(l,"dragover",t[21]),z(l,"dragleave",t[22]),z(l,"drop",t[23]),z(l,"click",t[24]),z(l,"keydown",t[25]),z(l,"keyup",t[26]),z(l,"keypress",t[27]),z(l,"focus",t[28]),z(l,"focusin",t[29]),z(l,"focusout",t[30])],F=!0)},p(k,f){ct(l,g=Xt(N,[{type:"file"},(!D||f[0]&4)&&{name:k[2]},(!D||f[0]&512&&s!==(s="dropzone-input "+k[9]))&&{class:s},k[11]()])),k[13].lead?B?(B.p(k,f),f[0]&8192&&M(B,1)):(B=St(k),B.c(),M(B,1),B.m(r,i)):B&&(Ce(),W(B,1,1,()=>{B=null}),Le()),p&&p.p&&(!D||f[0]&131072)&&Ge(p,V,k,k[17],D?Je(V,k[17],f,ul):Qe(k[17]),Dt),(!D||f[0]&64&&u!==(u="dropzone-message "+k[6]))&&h(o,"class",u),k[13].meta?R?(R.p(k,f),f[0]&8192&&M(R,1)):(R=Rt(k),R.c(),M(R,1),R.m(r,null)):R&&(Ce(),W(R,1,1,()=>{R=null}),Le()),(!D||f[0]&16&&E!==(E="dropzone-interface-text "+k[4]))&&h(r,"class",E),(!D||f[0]&264&&_!==(_="dropzone-interface "+k[8]+" "+k[3]))&&h(a,"class",_),(!D||f[0]&1024&&I!==(I="dropzone "+k[10]))&&h(e,"class",I),(!D||f[0]&5120)&&ne(e,"opacity-50",k[12].disabled)},i(k){D||(M(B),M(w,k),M(R),D=!0)},o(k){W(B),W(w,k),W(R),D=!1},d(k){k&&m(e),t[32](null),B&&B.d(),w&&w.d(k),R&&R.d(),F=!1,mt(U)}}}const cl="textarea relative flex justify-center items-center",fl="w-full absolute top-0 left-0 right-0 bottom-0 z-[1] opacity-0 disabled:!opacity-0 cursor-pointer",dl="flex justify-center items-center text-center";function hl(t,e,l){let s,n,a;const r=["files","fileInput","name","border","padding","rounded","regionInterface","regionInterfaceText","slotLead","slotMessage","slotMeta"];let i=ft(e,r),{$$slots:o={},$$scope:u}=e;const c=Et(o);let{files:E=void 0}=e,{fileInput:_=void 0}=e,{name:I}=e,{border:D="border-2 border-dashed"}=e,{padding:F="p-4 py-8"}=e,{rounded:U="rounded-container-token"}=e,{regionInterface:N=""}=e,{regionInterfaceText:g=""}=e,{slotLead:B="mb-4"}=e,{slotMessage:V=""}=e,{slotMeta:p="opacity-75"}=e;function w(){return delete i.class,i}function R(v){te.call(this,t,v)}function k(v){te.call(this,t,v)}function f(v){te.call(this,t,v)}function H(v){te.call(this,t,v)}function q(v){te.call(this,t,v)}function se(v){te.call(this,t,v)}function oe(v){te.call(this,t,v)}function x(v){te.call(this,t,v)}function _e(v){te.call(this,t,v)}function le(v){te.call(this,t,v)}function re(v){te.call(this,t,v)}function ge(v){te.call(this,t,v)}function pe(){E=this.files,l(0,E)}function L(v){Me[v?"unshift":"push"](()=>{_=v,l(1,_)})}return t.$$set=v=>{l(33,e=Ie(Ie({},e),Ve(v))),l(12,i=ft(e,r)),"files"in v&&l(0,E=v.files),"fileInput"in v&&l(1,_=v.fileInput),"name"in v&&l(2,I=v.name),"border"in v&&l(14,D=v.border),"padding"in v&&l(15,F=v.padding),"rounded"in v&&l(16,U=v.rounded),"regionInterface"in v&&l(3,N=v.regionInterface),"regionInterfaceText"in v&&l(4,g=v.regionInterfaceText),"slotLead"in v&&l(5,B=v.slotLead),"slotMessage"in v&&l(6,V=v.slotMessage),"slotMeta"in v&&l(7,p=v.slotMeta),"$$scope"in v&&l(17,u=v.$$scope)},t.$$.update=()=>{l(10,s=`${cl} ${D} ${F} ${U} ${e.class??""}`)},l(9,n=`${fl}`),l(8,a=`${dl}`),e=Ve(e),[E,_,I,N,g,B,V,p,a,n,s,w,i,c,D,F,U,u,o,R,k,f,H,q,se,oe,x,_e,le,re,ge,pe,L]}class ml extends nt{constructor(e){super(),st(this,e,hl,ol,lt,{files:0,fileInput:1,name:2,border:14,padding:15,rounded:16,regionInterface:3,regionInterfaceText:4,slotLead:5,slotMessage:6,slotMeta:7},null,[-1,-1])}}function _l(t){let e,l,s,n=`${t[4]?100:t[7]}%`,a,r;return{c(){e=T("div"),l=T("div"),this.h()},l(i){e=C(i,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-labelledby":!0,"aria-valuenow":!0,"aria-valuemin":!0,"aria-valuemax":!0});var o=P(e);l=C(o,"DIV",{class:!0}),P(l).forEach(m),o.forEach(m),this.h()},h(){h(l,"class",s="progress-bar-meter "+t[5]+" svelte-12wvf64"),At(l,"width",n),h(e,"class",a="progress-bar "+t[6]+" svelte-12wvf64"),h(e,"data-testid","progress-bar"),h(e,"role","progressbar"),h(e,"aria-labelledby",t[3]),h(e,"aria-valuenow",t[0]),h(e,"aria-valuemin",t[1]),h(e,"aria-valuemax",r=t[2]-t[1])},m(i,o){S(i,e,o),A(e,l)},p(i,[o]){o&32&&s!==(s="progress-bar-meter "+i[5]+" svelte-12wvf64")&&h(l,"class",s),o&144&&n!==(n=`${i[4]?100:i[7]}%`)&&At(l,"width",n),o&64&&a!==(a="progress-bar "+i[6]+" svelte-12wvf64")&&h(e,"class",a),o&8&&h(e,"aria-labelledby",i[3]),o&1&&h(e,"aria-valuenow",i[0]),o&2&&h(e,"aria-valuemin",i[1]),o&6&&r!==(r=i[2]-i[1])&&h(e,"aria-valuemax",r)},i:kt,o:kt,d(i){i&&m(e)}}}const gl="w-full overflow-hidden",bl="h-full";function pl(t,e,l){let s,n,a,r,i,{value:o=void 0}=e,{min:u=0}=e,{max:c=100}=e,{height:E="h-2"}=e,{rounded:_="rounded-token"}=e,{transition:I="transition-[width]"}=e,{animIndeterminate:D="anim-indeterminate"}=e,{meter:F="bg-surface-900-50-token"}=e,{track:U="bg-surface-200-700-token"}=e,{labelledby:N=""}=e;return t.$$set=g=>{l(15,e=Ie(Ie({},e),Ve(g))),"value"in g&&l(0,o=g.value),"min"in g&&l(1,u=g.min),"max"in g&&l(2,c=g.max),"height"in g&&l(8,E=g.height),"rounded"in g&&l(9,_=g.rounded),"transition"in g&&l(10,I=g.transition),"animIndeterminate"in g&&l(11,D=g.animIndeterminate),"meter"in g&&l(12,F=g.meter),"track"in g&&l(13,U=g.track),"labelledby"in g&&l(3,N=g.labelledby)},t.$$.update=()=>{t.$$.dirty&7&&l(7,s=o?100*(o-u)/(c-u):0),t.$$.dirty&1&&l(4,n=o===void 0||o<0),t.$$.dirty&2064&&l(14,a=n?D:""),l(6,r=`${gl} ${U} ${E} ${_} ${e.class??""}`),t.$$.dirty&22016&&l(5,i=`${bl} ${F} ${_} ${a} ${I}`)},e=Ve(e),[o,u,c,N,n,i,r,s,E,_,I,D,F,U,a]}class vl extends nt{constructor(e){super(),st(this,e,pl,_l,lt,{value:0,min:1,max:2,height:8,rounded:9,transition:10,animIndeterminate:11,meter:12,track:13,labelledby:3})}}const kl=t=>({}),qt=t=>({});function Bt(t){let e,l,s;const n=t[17].panel,a=We(n,t,t[16],qt);return{c(){e=T("div"),a&&a.c(),this.h()},l(r){e=C(r,"DIV",{class:!0,role:!0,"aria-labelledby":!0,tabindex:!0});var i=P(e);a&&a.l(i),i.forEach(m),this.h()},h(){h(e,"class",l="tab-panel "+t[2]),h(e,"role","tabpanel"),h(e,"aria-labelledby",t[1]),h(e,"tabindex","0")},m(r,i){S(r,e,i),a&&a.m(e,null),s=!0},p(r,i){a&&a.p&&(!s||i&65536)&&Ge(a,n,r,r[16],s?Je(n,r[16],i,kl):Qe(r[16]),qt),(!s||i&4&&l!==(l="tab-panel "+r[2]))&&h(e,"class",l),(!s||i&2)&&h(e,"aria-labelledby",r[1])},i(r){s||(M(a,r),s=!0)},o(r){W(a,r),s=!1},d(r){r&&m(e),a&&a.d(r)}}}function El(t){let e,l,s,n,a,r,i,o;const u=t[17].default,c=We(u,t,t[16],null);let E=t[5].panel&&Bt(t);return{c(){e=T("div"),l=T("div"),c&&c.c(),n=j(),E&&E.c(),this.h()},l(_){e=C(_,"DIV",{class:!0,"data-testid":!0});var I=P(e);l=C(I,"DIV",{class:!0,role:!0,"aria-labelledby":!0});var D=P(l);c&&c.l(D),D.forEach(m),n=O(I),E&&E.l(I),I.forEach(m),this.h()},h(){h(l,"class",s="tab-list "+t[3]),h(l,"role","tablist"),h(l,"aria-labelledby",t[0]),h(e,"class",a="tab-group "+t[4]),h(e,"data-testid","tab-group")},m(_,I){S(_,e,I),A(e,l),c&&c.m(l,null),A(e,n),E&&E.m(e,null),r=!0,i||(o=[z(e,"click",t[18]),z(e,"keypress",t[19]),z(e,"keydown",t[20]),z(e,"keyup",t[21])],i=!0)},p(_,[I]){c&&c.p&&(!r||I&65536)&&Ge(c,u,_,_[16],r?Je(u,_[16],I,null):Qe(_[16]),null),(!r||I&8&&s!==(s="tab-list "+_[3]))&&h(l,"class",s),(!r||I&1)&&h(l,"aria-labelledby",_[0]),_[5].panel?E?(E.p(_,I),I&32&&M(E,1)):(E=Bt(_),E.c(),M(E,1),E.m(e,null)):E&&(Ce(),W(E,1,1,()=>{E=null}),Le()),(!r||I&16&&a!==(a="tab-group "+_[4]))&&h(e,"class",a)},i(_){r||(M(c,_),M(E),r=!0)},o(_){W(c,_),W(E),r=!1},d(_){_&&m(e),c&&c.d(_),E&&E.d(),i=!1,mt(o)}}}const yl="space-y-4",Al="flex overflow-x-auto hide-scrollbar",Tl="";function Cl(t,e,l){let s,n,a,{$$slots:r={},$$scope:i}=e;const o=Et(r);let{justify:u="justify-start"}=e,{border:c="border-b border-surface-400-500-token"}=e,{active:E="border-b-2 border-surface-900-50-token"}=e,{hover:_="hover:variant-soft"}=e,{flex:I="flex-none"}=e,{padding:D="px-4 py-2"}=e,{rounded:F="rounded-tl-container-token rounded-tr-container-token"}=e,{spacing:U="space-y-1"}=e,{regionList:N=""}=e,{regionPanel:g=""}=e,{labelledby:B=""}=e,{panel:V=""}=e;Xe("active",E),Xe("hover",_),Xe("flex",I),Xe("padding",D),Xe("rounded",F),Xe("spacing",U);function p(f){te.call(this,t,f)}function w(f){te.call(this,t,f)}function R(f){te.call(this,t,f)}function k(f){te.call(this,t,f)}return t.$$set=f=>{l(22,e=Ie(Ie({},e),Ve(f))),"justify"in f&&l(6,u=f.justify),"border"in f&&l(7,c=f.border),"active"in f&&l(8,E=f.active),"hover"in f&&l(9,_=f.hover),"flex"in f&&l(10,I=f.flex),"padding"in f&&l(11,D=f.padding),"rounded"in f&&l(12,F=f.rounded),"spacing"in f&&l(13,U=f.spacing),"regionList"in f&&l(14,N=f.regionList),"regionPanel"in f&&l(15,g=f.regionPanel),"labelledby"in f&&l(0,B=f.labelledby),"panel"in f&&l(1,V=f.panel),"$$scope"in f&&l(16,i=f.$$scope)},t.$$.update=()=>{l(4,s=`${yl} ${e.class??""}`),t.$$.dirty&16576&&l(3,n=`${Al} ${u} ${c} ${N}`),t.$$.dirty&32768&&l(2,a=`${Tl} ${g}`)},e=Ve(e),[B,V,a,n,s,o,u,c,E,_,I,D,F,U,N,g,i,r,p,w,R,k]}class Ll extends nt{constructor(e){super(),st(this,e,Cl,El,lt,{justify:6,border:7,active:8,hover:9,flex:10,padding:11,rounded:12,spacing:13,regionList:14,regionPanel:15,labelledby:0,panel:1})}}const Il=t=>({}),Mt=t=>({});function Vt(t){let e,l;const s=t[22].lead,n=We(s,t,t[21],Mt);return{c(){e=T("div"),n&&n.c(),this.h()},l(a){e=C(a,"DIV",{class:!0});var r=P(e);n&&n.l(r),r.forEach(m),this.h()},h(){h(e,"class","tab-lead")},m(a,r){S(a,e,r),n&&n.m(e,null),l=!0},p(a,r){n&&n.p&&(!l||r[0]&2097152)&&Ge(n,s,a,a[21],l?Je(s,a[21],r,Il):Qe(a[21]),Mt)},i(a){l||(M(n,a),l=!0)},o(a){W(n,a),l=!1},d(a){a&&m(e),n&&n.d(a)}}}function Dl(t){let e,l,s,n,a,r,i,o,u,c,E,_,I,D,F,U=[{type:"radio"},{name:t[1]},{__value:t[2]},t[11](),{tabindex:"-1"}],N={};for(let p=0;p<U.length;p+=1)N=Ie(N,U[p]);let g=t[12].lead&&Vt(t);const B=t[22].default,V=We(B,t,t[21],null);return I=Zt(t[30][0]),{c(){e=T("label"),l=T("div"),s=T("div"),n=T("input"),a=j(),r=T("div"),g&&g.c(),i=j(),o=T("div"),V&&V.c(),this.h()},l(p){e=C(p,"LABEL",{class:!0,title:!0});var w=P(e);l=C(w,"DIV",{class:!0,"data-testid":!0,role:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0});var R=P(l);s=C(R,"DIV",{class:!0});var k=P(s);n=C(k,"INPUT",{type:!0,name:!0,tabindex:!0}),k.forEach(m),a=O(R),r=C(R,"DIV",{class:!0});var f=P(r);g&&g.l(f),i=O(f),o=C(f,"DIV",{class:!0});var H=P(o);V&&V.l(H),H.forEach(m),f.forEach(m),R.forEach(m),w.forEach(m),this.h()},h(){ct(n,N),h(s,"class","h-0 w-0 overflow-hidden"),h(o,"class","tab-label"),h(r,"class",u="tab-interface "+t[8]),h(l,"class",c="tab "+t[7]),h(l,"data-testid","tab"),h(l,"role","tab"),h(l,"aria-controls",t[4]),h(l,"aria-selected",t[5]),h(l,"tabindex",E=t[5]?0:-1),h(e,"class",t[9]),h(e,"title",t[3]),I.p(n)},m(p,w){S(p,e,w),A(e,l),A(l,s),A(s,n),n.autofocus&&n.focus(),t[28](n),n.checked=n.__value===t[0],A(l,a),A(l,r),g&&g.m(r,null),A(r,i),A(r,o),V&&V.m(o,null),_=!0,D||(F=[z(n,"change",t[29]),z(n,"click",t[26]),z(n,"change",t[27]),z(l,"keydown",t[10]),z(l,"keydown",t[23]),z(l,"keyup",t[24]),z(l,"keypress",t[25])],D=!0)},p(p,w){ct(n,N=Xt(U,[{type:"radio"},(!_||w[0]&2)&&{name:p[1]},(!_||w[0]&4)&&{__value:p[2]},p[11](),{tabindex:"-1"}])),w[0]&1&&(n.checked=n.__value===p[0]),p[12].lead?g?(g.p(p,w),w[0]&4096&&M(g,1)):(g=Vt(p),g.c(),M(g,1),g.m(r,i)):g&&(Ce(),W(g,1,1,()=>{g=null}),Le()),V&&V.p&&(!_||w[0]&2097152)&&Ge(V,B,p,p[21],_?Je(B,p[21],w,null):Qe(p[21]),null),(!_||w[0]&256&&u!==(u="tab-interface "+p[8]))&&h(r,"class",u),(!_||w[0]&128&&c!==(c="tab "+p[7]))&&h(l,"class",c),(!_||w[0]&16)&&h(l,"aria-controls",p[4]),(!_||w[0]&32)&&h(l,"aria-selected",p[5]),(!_||w[0]&32&&E!==(E=p[5]?0:-1))&&h(l,"tabindex",E),(!_||w[0]&512)&&h(e,"class",p[9]),(!_||w[0]&8)&&h(e,"title",p[3])},i(p){_||(M(g),M(V,p),_=!0)},o(p){W(g),W(V,p),_=!1},d(p){p&&m(e),t[28](null),g&&g.d(),V&&V.d(p),I.r(),D=!1,mt(F)}}}const wl="text-center cursor-pointer transition-colors duration-100",Sl="";function Rl(t,e,l){let s,n,a,r,i;const o=["group","name","value","title","controls","regionTab","active","hover","flex","padding","rounded","spacing"];let u=ft(e,o),{$$slots:c={},$$scope:E}=e;const _=Et(c);let{group:I}=e,{name:D}=e,{value:F}=e,{title:U=""}=e,{controls:N=""}=e,{regionTab:g=""}=e,{active:B=Ye("active")}=e,{hover:V=Ye("hover")}=e,{flex:p=Ye("flex")}=e,{padding:w=Ye("padding")}=e,{rounded:R=Ye("rounded")}=e,{spacing:k=Ye("spacing")}=e,f;function H(L){if(["Enter","Space"].includes(L.code))L.preventDefault(),f.click();else if(L.code==="ArrowRight"){const v=f.closest(".tab-list");if(!v)return;const ce=Array.from(v.querySelectorAll(".tab")),ve=f.closest(".tab");if(!ve)return;const ie=ce.indexOf(ve),we=ie+1>=ce.length?0:ie+1,fe=ce[we],ae=fe?.querySelector("input");fe&&ae&&(ae.click(),fe.focus())}else if(L.code==="ArrowLeft"){const v=f.closest(".tab-list");if(!v)return;const ce=Array.from(v.querySelectorAll(".tab")),ve=f.closest(".tab");if(!ve)return;const ie=ce.indexOf(ve),we=ie-1<0?ce.length-1:ie-1,fe=ce[we],ae=fe?.querySelector("input");fe&&ae&&(ae.click(),fe.focus())}}function q(){return delete u.class,u}const se=[[]];function oe(L){te.call(this,t,L)}function x(L){te.call(this,t,L)}function _e(L){te.call(this,t,L)}function le(L){te.call(this,t,L)}function re(L){te.call(this,t,L)}function ge(L){Me[L?"unshift":"push"](()=>{f=L,l(6,f)})}function pe(){I=this.__value,l(0,I)}return t.$$set=L=>{l(32,e=Ie(Ie({},e),Ve(L))),l(31,u=ft(e,o)),"group"in L&&l(0,I=L.group),"name"in L&&l(1,D=L.name),"value"in L&&l(2,F=L.value),"title"in L&&l(3,U=L.title),"controls"in L&&l(4,N=L.controls),"regionTab"in L&&l(13,g=L.regionTab),"active"in L&&l(14,B=L.active),"hover"in L&&l(15,V=L.hover),"flex"in L&&l(16,p=L.flex),"padding"in L&&l(17,w=L.padding),"rounded"in L&&l(18,R=L.rounded),"spacing"in L&&l(19,k=L.spacing),"$$scope"in L&&l(21,E=L.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&5&&l(5,s=F===I),t.$$.dirty[0]&49184&&l(20,n=s?B:V),l(9,a=`${wl} ${p} ${w} ${R} ${n} ${e.class??""}`),t.$$.dirty[0]&524288&&l(8,r=`${Sl} ${k}`),t.$$.dirty[0]&8192&&l(7,i=`${g}`)},e=Ve(e),[I,D,F,U,N,s,f,i,r,a,H,q,_,g,B,V,p,w,R,k,n,E,c,oe,x,_e,le,re,ge,pe,se]}class ql extends nt{constructor(e){super(),st(this,e,Rl,Dl,lt,{group:0,name:1,value:2,title:3,controls:4,regionTab:13,active:14,hover:15,flex:16,padding:17,rounded:18,spacing:19},null,[-1,-1])}}var ot,Bl=new Uint8Array(16);function Ml(){if(!ot&&(ot=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ot))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ot(Bl)}const Vl=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Pl(t){return typeof t=="string"&&Vl.test(t)}var ue=[];for(var vt=0;vt<256;++vt)ue.push((vt+256).toString(16).substr(1));function Fl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=(ue[t[e+0]]+ue[t[e+1]]+ue[t[e+2]]+ue[t[e+3]]+"-"+ue[t[e+4]]+ue[t[e+5]]+"-"+ue[t[e+6]]+ue[t[e+7]]+"-"+ue[t[e+8]]+ue[t[e+9]]+"-"+ue[t[e+10]]+ue[t[e+11]]+ue[t[e+12]]+ue[t[e+13]]+ue[t[e+14]]+ue[t[e+15]]).toLowerCase();if(!Pl(l))throw TypeError("Stringified UUID is invalid");return l}function Pt(t,e,l){t=t||{};var s=t.random||(t.rng||Ml)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,e){l=l||0;for(var n=0;n<16;++n)e[l+n]=s[n];return e}return Fl(s)}function Ft(t,e,l){const s=t.slice();return s[61]=e[l],s[63]=l,s}function Ut(t,e,l){const s=t.slice();return s[58]=e[l],s}function Ul(t){let e;return{c(){e=ye("Перетащите файл сюда или нажмите, чтобы выбрать файл.")},l(l){e=Ae(l,"Перетащите файл сюда или нажмите, чтобы выбрать файл.")},m(l,s){S(l,e,s)},d(l){l&&m(e)}}}function zl(t){let e;return{c(){e=ye("Только xlsx")},l(l){e=Ae(l,"Только xlsx")},m(l,s){S(l,e,s)},d(l){l&&m(e)}}}function zt(t){let e,l;return e=new Ll({props:{$$slots:{panel:[Yl],default:[Ol]},$$scope:{ctx:t}}}),{c(){Fe(e.$$.fragment)},l(s){Ue(e.$$.fragment,s)},m(s,n){ze(e,s,n),l=!0},p(s,n){const a={};n[0]&262143|n[2]&4&&(a.$$scope={dirty:n,ctx:s}),e.$set(a)},i(s){l||(M(e.$$.fragment,s),l=!0)},o(s){W(e.$$.fragment,s),l=!1},d(s){je(e,s)}}}function jl(t){let e,l=t[61].id+"",s,n,a=t[61].name+"",r,i;return{c(){e=T("span"),s=ye(l),n=j(),r=ye(a),i=j()},l(o){e=C(o,"SPAN",{});var u=P(e);s=Ae(u,l),n=O(u),r=Ae(u,a),u.forEach(m),i=O(o)},m(o,u){S(o,e,u),A(e,s),A(e,n),A(e,r),S(o,i,u)},p(o,u){u[0]&1&&l!==(l=o[61].id+"")&&dt(s,l),u[0]&1&&a!==(a=o[61].name+"")&&dt(r,a)},d(o){o&&(m(e),m(i))}}}function jt(t,e){let l,s,n,a;function r(u){e[51](u)}function i(){return e[52](e[61])}let o={name:e[61].name,value:e[63],$$slots:{default:[jl]},$$scope:{ctx:e}};return e[17]!==void 0&&(o.group=e[17]),s=new ql({props:o}),Me.push(()=>xe(s,"group",r)),s.$on("click",i),{key:t,first:null,c(){l=Pe(),Fe(s.$$.fragment),this.h()},l(u){l=Pe(),Ue(s.$$.fragment,u),this.h()},h(){this.first=l},m(u,c){S(u,l,c),ze(s,u,c),a=!0},p(u,c){e=u;const E={};c[0]&1&&(E.name=e[61].name),c[0]&1&&(E.value=e[63]),c[0]&1|c[2]&4&&(E.$$scope={dirty:c,ctx:e}),!n&&c[0]&131072&&(n=!0,E.group=e[17],Ze(()=>n=!1)),s.$set(E)},i(u){a||(M(s.$$.fragment,u),a=!0)},o(u){W(s.$$.fragment,u),a=!1},d(u){u&&m(l),je(s,u)}}}function Ol(t){let e=[],l=new Map,s,n,a=ht(t[0]);const r=i=>i[61].id;for(let i=0;i<a.length;i+=1){let o=Ft(t,a,i),u=r(o);l.set(u,e[i]=jt(u,o))}return{c(){for(let i=0;i<e.length;i+=1)e[i].c();s=Pe()},l(i){for(let o=0;o<e.length;o+=1)e[o].l(i);s=Pe()},m(i,o){for(let u=0;u<e.length;u+=1)e[u]&&e[u].m(i,o);S(i,s,o),n=!0},p(i,o){o[0]&132097&&(a=ht(i[0]),Ce(),e=Kt(e,o,r,1,i,a,l,s.parentNode,$t,jt,s,Ft),Le())},i(i){if(!n){for(let o=0;o<a.length;o+=1)M(e[o]);n=!0}},o(i){for(let o=0;o<e.length;o+=1)W(e[o]);n=!1},d(i){i&&m(s);for(let o=0;o<e.length;o+=1)e[o].d(i)}}}function Ot(t){let e,l,s,n,a,r,i,o,u,c,E,_,I,D,F,U,N,g,B="Оценивать ответ",V,p,w,R,k,f,H,q,se="Тип поиска:",oe,x,_e,le,re,ge,pe,L,v,ce,ve,ie,we="Скачать",fe,ae,Se,at='<tr><th class="border p-2">Вопрос пользователя</th> <th class="border p-2">Ответ эксперта</th> <th class="border p-2">Ответ LLM</th> <th class="border p-2">Ответ оценки LLM</th> <th class="border p-2">Оценка</th></tr>',$e,Re,de=[],ut=new Map,He,et,rt,K=t[12][t[10].id].processingStarted&&Nt(t),X=t[5]&&t[2].investigatorSettings&&Ht(t);function _t(d){t[35](d)}let it={};t[4]!==void 0&&(it.selectedLLM=t[4]),_=new Yt({props:it}),Me.push(()=>xe(_,"selectedLLM",_t));let Y=t[8]&&Wt(t);function gt(d){t[39](d)}function bt(d){t[40](d)}let tt={};t[7]!==void 0&&(tt.use_olympic=t[7]),t[6]!==void 0&&(tt.use_qe=t[6]),x=new tl({props:tt}),Me.push(()=>xe(x,"use_olympic",gt)),Me.push(()=>xe(x,"use_qe",bt));let b=ht(t[10].data);const $=d=>d[58].id;for(let d=0;d<b.length;d+=1){let y=Ut(t,b,d),J=$(y);ut.set(J,de[d]=Qt(J,y))}return{c(){K&&K.c(),e=j(),l=T("div"),s=T("div"),n=T("label"),a=T("input"),r=ye(`
2
+ Почемучка`),i=j(),X&&X.c(),o=j(),u=T("div"),c=T("div"),E=ye("Отвечает: "),Fe(_.$$.fragment),D=j(),F=T("div"),U=T("input"),N=j(),g=T("p"),g.textContent=B,V=j(),Y&&Y.c(),p=j(),w=T("div"),R=T("label"),k=ye("Количество потоков: "),f=T("input"),H=j(),q=T("div"),q.textContent=se,oe=j(),Fe(x.$$.fragment),re=j(),ge=T("div"),pe=j(),L=T("div"),v=T("button"),ce=ye(t[11]),ve=j(),ie=T("button"),ie.textContent=we,fe=j(),ae=T("table"),Se=T("thead"),Se.innerHTML=at,$e=j(),Re=T("tbody");for(let d=0;d<de.length;d+=1)de[d].c();this.h()},l(d){K&&K.l(d),e=O(d),l=C(d,"DIV",{class:!0});var y=P(l);s=C(y,"DIV",{class:!0});var J=P(s);n=C(J,"LABEL",{});var Z=P(n);a=C(Z,"INPUT",{type:!0,class:!0}),r=Ae(Z,`
3
+ Почемучка`),Z.forEach(m),J.forEach(m),i=O(y),X&&X.l(y),y.forEach(m),o=O(d),u=C(d,"DIV",{class:!0});var be=P(u);c=C(be,"DIV",{});var Te=P(c);E=Ae(Te,"Отвечает: "),Ue(_.$$.fragment,Te),Te.forEach(m),D=O(be),F=C(be,"DIV",{class:!0});var ke=P(F);U=C(ke,"INPUT",{type:!0,class:!0}),N=O(ke),g=C(ke,"P",{"data-svelte-h":!0}),me(g)!=="svelte-da92hf"&&(g.textContent=B),ke.forEach(m),V=O(be),Y&&Y.l(be),be.forEach(m),p=O(d),w=C(d,"DIV",{class:!0});var G=P(w);R=C(G,"LABEL",{});var ee=P(R);k=Ae(ee,"Количество потоков: "),f=C(ee,"INPUT",{type:!0,min:!0,max:!0,class:!0}),ee.forEach(m),H=O(G),q=C(G,"DIV",{"data-svelte-h":!0}),me(q)!=="svelte-711pt3"&&(q.textContent=se),oe=O(G),Ue(x.$$.fragment,G),G.forEach(m),re=O(d),ge=C(d,"DIV",{class:!0}),P(ge).forEach(m),pe=O(d),L=C(d,"DIV",{class:!0});var Q=P(L);v=C(Q,"BUTTON",{class:!0});var Ee=P(v);ce=Ae(Ee,t[11]),Ee.forEach(m),ve=O(Q),ie=C(Q,"BUTTON",{class:!0,"data-svelte-h":!0}),me(ie)!=="svelte-1lfta1"&&(ie.textContent=we),Q.forEach(m),fe=O(d),ae=C(d,"TABLE",{class:!0});var Ke=P(ae);Se=C(Ke,"THEAD",{"data-svelte-h":!0}),me(Se)!=="svelte-7jjxgh"&&(Se.innerHTML=at),$e=O(Ke),Re=C(Ke,"TBODY",{});var yt=P(Re);for(let pt=0;pt<de.length;pt+=1)de[pt].l(yt);yt.forEach(m),Ke.forEach(m),this.h()},h(){h(a,"type","checkbox"),h(a,"class","checkbox"),h(s,"class","flex items-center space-x-2"),h(l,"class","flex justify-start mt-4 space-x-5"),h(U,"type","checkbox"),h(U,"class","checkbox"),h(F,"class","flex items-center space-x-2"),h(u,"class","flex justify-start mt-4 space-x-5"),h(f,"type","number"),h(f,"min","1"),h(f,"max","100"),h(f,"class","input input-bordered w-32"),h(w,"class","flex justify-start mt-4 space-x-5 items-center"),h(ge,"class","flex justify-start mt-4 space-x-5"),h(v,"class","btn variant-filled-primary space-x-2 m-2 w-60"),h(ie,"class","btn variant-filled-primary space-x-2 m-2 w-60"),h(L,"class","flex justify-between mt-4"),h(ae,"class","table-auto w-full mt-4")},m(d,y){K&&K.m(d,y),S(d,e,y),S(d,l,y),A(l,s),A(s,n),A(n,a),a.checked=t[5],A(n,r),A(l,i),X&&X.m(l,null),S(d,o,y),S(d,u,y),A(u,c),A(c,E),ze(_,c,null),A(u,D),A(u,F),A(F,U),U.checked=t[8],A(F,N),A(F,g),A(u,V),Y&&Y.m(u,null),S(d,p,y),S(d,w,y),A(w,R),A(R,k),A(R,f),Tt(f,t[9]),A(w,H),A(w,q),A(w,oe),ze(x,w,null),S(d,re,y),S(d,ge,y),S(d,pe,y),S(d,L,y),A(L,v),A(v,ce),A(L,ve),A(L,ie),S(d,fe,y),S(d,ae,y),A(ae,Se),A(ae,$e),A(ae,Re);for(let J=0;J<de.length;J+=1)de[J]&&de[J].m(Re,null);He=!0,et||(rt=[z(a,"change",t[33]),z(U,"change",t[36]),z(f,"input",t[38]),z(v,"click",t[41]),z(ie,"click",t[42])],et=!0)},p(d,y){d[12][d[10].id].processingStarted?K?(K.p(d,y),y[0]&5120&&M(K,1)):(K=Nt(d),K.c(),M(K,1),K.m(e.parentNode,e)):K&&(Ce(),W(K,1,1,()=>{K=null}),Le()),y[0]&32&&(a.checked=d[5]),d[5]&&d[2].investigatorSettings?X?(X.p(d,y),y[0]&36&&M(X,1)):(X=Ht(d),X.c(),M(X,1),X.m(l,null)):X&&(Ce(),W(X,1,1,()=>{X=null}),Le());const J={};!I&&y[0]&16&&(I=!0,J.selectedLLM=d[4],Ze(()=>I=!1)),_.$set(J),y[0]&256&&(U.checked=d[8]),d[8]?Y?(Y.p(d,y),y[0]&256&&M(Y,1)):(Y=Wt(d),Y.c(),M(Y,1),Y.m(u,null)):Y&&(Ce(),W(Y,1,1,()=>{Y=null}),Le()),y[0]&512&&Jt(f.value)!==d[9]&&Tt(f,d[9]);const Z={};!_e&&y[0]&128&&(_e=!0,Z.use_olympic=d[7],Ze(()=>_e=!1)),!le&&y[0]&64&&(le=!0,Z.use_qe=d[6],Ze(()=>le=!1)),x.$set(Z),(!He||y[0]&2048)&&dt(ce,d[11]),y[0]&123904&&(b=ht(d[10].data),de=Kt(de,y,$,1,d,b,ut,Re,el,Qt,null,Ut))},i(d){He||(M(K),M(X),M(_.$$.fragment,d),M(Y),M(x.$$.fragment,d),He=!0)},o(d){W(K),W(X),W(_.$$.fragment,d),W(Y),W(x.$$.fragment,d),He=!1},d(d){d&&(m(e),m(l),m(o),m(u),m(p),m(w),m(re),m(ge),m(pe),m(L),m(fe),m(ae)),K&&K.d(d),X&&X.d(),je(_),Y&&Y.d(),je(x);for(let y=0;y<de.length;y+=1)de[y].d();et=!1,mt(rt)}}}function Nt(t){let e,l;return e=new vl({props:{value:t[12][t[10].id].completedTasks/t[12][t[10].id].totalTasks*100,max:100}}),{c(){Fe(e.$$.fragment)},l(s){Ue(e.$$.fragment,s)},m(s,n){ze(e,s,n),l=!0},p(s,n){const a={};n[0]&5120&&(a.value=s[12][s[10].id].completedTasks/s[12][s[10].id].totalTasks*100),e.$set(a)},i(s){l||(M(e.$$.fragment,s),l=!0)},o(s){W(e.$$.fragment,s),l=!1},d(s){je(e,s)}}}function Ht(t){let e,l,s,n;function a(i){t[34](i)}let r={};return t[2].investigatorSettings!==void 0&&(r.settings=t[2].investigatorSettings),l=new ll({props:r}),Me.push(()=>xe(l,"settings",a)),{c(){e=T("div"),Fe(l.$$.fragment)},l(i){e=C(i,"DIV",{});var o=P(e);Ue(l.$$.fragment,o),o.forEach(m)},m(i,o){S(i,e,o),ze(l,e,null),n=!0},p(i,o){const u={};!s&&o[0]&4&&(s=!0,u.settings=i[2].investigatorSettings,Ze(()=>s=!1)),l.$set(u)},i(i){n||(M(l.$$.fragment,i),n=!0)},o(i){W(l.$$.fragment,i),n=!1},d(i){i&&m(e),je(l)}}}function Wt(t){let e,l,s,n,a;function r(o){t[37](o)}let i={};return t[3]!==void 0&&(i.selectedLLM=t[3]),s=new Yt({props:i}),Me.push(()=>xe(s,"selectedLLM",r)),{c(){e=T("div"),l=ye("Оценивает: "),Fe(s.$$.fragment)},l(o){e=C(o,"DIV",{});var u=P(e);l=Ae(u,"Оценивает: "),Ue(s.$$.fragment,u),u.forEach(m)},m(o,u){S(o,e,u),A(e,l),ze(s,e,null),a=!0},p(o,u){const c={};!n&&u[0]&8&&(n=!0,c.selectedLLM=o[3],Ze(()=>n=!1)),s.$set(c)},i(o){a||(M(s.$$.fragment,o),a=!0)},o(o){W(s.$$.fragment,o),a=!1},d(o){o&&m(e),je(s)}}}function Nl(t){let e,l=(t[58].request?.replace(/\n/g,"<br>").length>100?t[58].request?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].request?.replace(/\n/g,"<br>"))+"",s,n,a="Развернуть",r,i;function o(){return t[44](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{href:!0,class:!0,"data-svelte-h":!0}),me(n)!=="svelte-ywkf0q"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"href","#"),h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].request?.replace(/\n/g,"<br>").length<=100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=(t[58].request?.replace(/\n/g,"<br>").length>100?t[58].request?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].request?.replace(/\n/g,"<br>"))+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].request?.replace(/\n/g,"<br>").length<=100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Hl(t){let e,l=t[58].request?.replace(/\n/g,"<br>")+"",s,n,a="Свернуть",r,i;function o(){return t[43](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{href:!0,class:!0,"data-svelte-h":!0}),me(n)!=="svelte-4wwxnw"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"href","#"),h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].request?.replace(/\n/g,"<br>").length>100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=t[58].request?.replace(/\n/g,"<br>")+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].request?.replace(/\n/g,"<br>").length>100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Wl(t){let e,l=(t[58].expertAnswer?.replace(/\n/g,"<br>").length>100?t[58].expertAnswer?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].expertAnswer?.replace(/\n/g,"<br>"))+"",s,n,a="Развернуть",r,i;function o(){return t[46](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{href:!0,class:!0,"data-svelte-h":!0}),me(n)!=="svelte-vvsd3m"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"href","#"),h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].expertAnswer?.replace(/\n/g,"<br>").length<=100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=(t[58].expertAnswer?.replace(/\n/g,"<br>").length>100?t[58].expertAnswer?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].expertAnswer?.replace(/\n/g,"<br>"))+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].expertAnswer?.replace(/\n/g,"<br>").length<=100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Gl(t){let e,l=t[58].expertAnswer.replace(/\n/g,"<br>")+"",s,n,a="Свернуть",r,i;function o(){return t[45](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{href:!0,class:!0,"data-svelte-h":!0}),me(n)!=="svelte-12lel02"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"href","#"),h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].llmAnswer?.replace(/\n/g,"<br>").length>100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=t[58].expertAnswer.replace(/\n/g,"<br>")+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].llmAnswer?.replace(/\n/g,"<br>").length>100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Ql(t){let e,l=(t[58].llmAnswer?.replace(/\n/g,"<br>").length>100?t[58].llmAnswer?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].llmAnswer?.replace(/\n/g,"<br>"))+"",s,n,a="Развернуть",r,i;function o(){return t[48](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{class:!0,"data-svelte-h":!0}),me(n)!=="svelte-12v4ty"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].llmAnswer?.replace(/\n/g,"<br>").length<=100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=(t[58].llmAnswer?.replace(/\n/g,"<br>").length>100?t[58].llmAnswer?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].llmAnswer?.replace(/\n/g,"<br>"))+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].llmAnswer?.replace(/\n/g,"<br>").length<=100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Jl(t){let e,l=t[58].llmAnswer?.replace(/\n/g,"<br>")+"",s,n,a="Свернуть",r,i;function o(){return t[47](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{class:!0,"data-svelte-h":!0}),me(n)!=="svelte-8hufxq"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].llmAnswer?.replace(/\n/g,"<br>").length>100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=t[58].llmAnswer?.replace(/\n/g,"<br>")+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].llmAnswer?.replace(/\n/g,"<br>").length>100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Gt(t){let e;function l(a,r){return a[16][a[58].id]?Xl:Kl}let s=l(t),n=s(t);return{c(){n.c(),e=Pe()},l(a){n.l(a),e=Pe()},m(a,r){n.m(a,r),S(a,e,r)},p(a,r){s===(s=l(a))&&n?n.p(a,r):(n.d(1),n=s(a),n&&(n.c(),n.m(e.parentNode,e)))},d(a){a&&m(e),n.d(a)}}}function Kl(t){let e,l=(t[58].evaluation?.replace(/\n/g,"<br>").length>100?t[58].evaluation?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].evaluation?.replace(/\n/g,"<br>"))+"",s,n,a="Развернуть",r,i;function o(){return t[50](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{class:!0,"data-svelte-h":!0}),me(n)!=="svelte-ank2y6"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].evaluation?.replace(/\n/g,"<br>").length<=100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=(t[58].evaluation?.replace(/\n/g,"<br>").length>100?t[58].evaluation?.replace(/\n/g,"<br>").slice(0,100)+"...":t[58].evaluation?.replace(/\n/g,"<br>"))+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].evaluation?.replace(/\n/g,"<br>").length<=100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Xl(t){let e,l=t[58].evaluation?.replace(/\n/g,"<br>")+"",s,n,a="Свернуть",r,i;function o(){return t[49](t[58])}return{c(){e=new Oe(!1),s=j(),n=T("a"),n.textContent=a,this.h()},l(u){e=Ne(u,!1),s=O(u),n=C(u,"A",{class:!0,"data-svelte-h":!0}),me(n)!=="svelte-1ympil6"&&(n.textContent=a),this.h()},h(){e.a=s,h(n,"class","text-blue-500 cursor-pointer"),ne(n,"hidden",t[58].evaluation?.replace(/\n/g,"<br>").length>100)},m(u,c){e.m(l,u,c),S(u,s,c),S(u,n,c),r||(i=z(n,"click",o),r=!0)},p(u,c){t=u,c[0]&1024&&l!==(l=t[58].evaluation?.replace(/\n/g,"<br>")+"")&&e.p(l),c[0]&1024&&ne(n,"hidden",t[58].evaluation?.replace(/\n/g,"<br>").length>100)},d(u){u&&(e.d(),m(s),m(n)),r=!1,i()}}}function Qt(t,e){let l,s,n,a,r,i,o,u,c,E,_,I=e[58].mark+"",D,F;function U(H,q){return H[13][H[58].id]?Hl:Nl}let N=U(e),g=N(e);function B(H,q){return H[14][H[58].id]?Gl:Wl}let V=B(e),p=V(e);function w(H,q){return H[15][H[58].id]?Jl:Ql}let R=w(e),k=R(e),f=e[58].evaluation&&Gt(e);return{key:t,first:null,c(){l=T("tr"),s=T("td"),g.c(),n=j(),a=T("td"),p.c(),r=j(),i=T("td"),o=T("div"),k.c(),u=j(),c=T("td"),f&&f.c(),E=j(),_=T("td"),D=ye(I),F=j(),this.h()},l(H){l=C(H,"TR",{});var q=P(l);s=C(q,"TD",{class:!0});var se=P(s);g.l(se),se.forEach(m),n=O(q),a=C(q,"TD",{class:!0});var oe=P(a);p.l(oe),oe.forEach(m),r=O(q),i=C(q,"TD",{class:!0});var x=P(i);o=C(x,"DIV",{class:!0});var _e=P(o);k.l(_e),_e.forEach(m),x.forEach(m),u=O(q),c=C(q,"TD",{class:!0});var le=P(c);f&&f.l(le),le.forEach(m),E=O(q),_=C(q,"TD",{class:!0});var re=P(_);D=Ae(re,I),re.forEach(m),F=O(q),q.forEach(m),this.h()},h(){h(s,"class","border p-2"),h(a,"class","border p-2"),h(o,"class","whitespace-pre-wrap"),h(i,"class","border p-2"),h(c,"class","border p-2"),h(_,"class","border p-2"),this.first=l},m(H,q){S(H,l,q),A(l,s),g.m(s,null),A(l,n),A(l,a),p.m(a,null),A(l,r),A(l,i),A(i,o),k.m(o,null),A(l,u),A(l,c),f&&f.m(c,null),A(l,E),A(l,_),A(_,D),A(l,F)},p(H,q){e=H,N===(N=U(e))&&g?g.p(e,q):(g.d(1),g=N(e),g&&(g.c(),g.m(s,null))),V===(V=B(e))&&p?p.p(e,q):(p.d(1),p=V(e),p&&(p.c(),p.m(a,null))),R===(R=w(e))&&k?k.p(e,q):(k.d(1),k=R(e),k&&(k.c(),k.m(o,null))),e[58].evaluation?f?f.p(e,q):(f=Gt(e),f.c(),f.m(c,null)):f&&(f.d(1),f=null),q[0]&1024&&I!==(I=e[58].mark+"")&&dt(D,I)},d(H){H&&m(l),g.d(),p.d(),k.d(),f&&f.d()}}}function Yl(t){let e,l="Удалить файл",s,n,a,r,i,o=t[10]&&Ot(t);return{c(){e=T("button"),e.textContent=l,s=j(),o&&o.c(),n=Pe(),this.h()},l(u){e=C(u,"BUTTON",{class:!0,"data-svelte-h":!0}),me(e)!=="svelte-1wp71c2"&&(e.textContent=l),s=O(u),o&&o.l(u),n=Pe(),this.h()},h(){h(e,"class","mb-4 chip variant-filled-error")},m(u,c){S(u,e,c),S(u,s,c),o&&o.m(u,c),S(u,n,c),a=!0,r||(i=z(e,"click",t[32]),r=!0)},p(u,c){u[10]?o?(o.p(u,c),c[0]&1024&&M(o,1)):(o=Ot(u),o.c(),M(o,1),o.m(n.parentNode,n)):o&&(Ce(),W(o,1,1,()=>{o=null}),Le())},i(u){a||(M(o),a=!0)},o(u){W(o),a=!1},d(u){u&&(m(e),m(s),m(n)),o&&o.d(u),r=!1,i()}}}function Zl(t){let e,l,s,n;l=new ml({props:{$$slots:{meta:[zl],message:[Ul]},$$scope:{ctx:t}}}),l.$on("change",t[31]);let a=t[0].length>0&&zt(t);return{c(){e=T("div"),Fe(l.$$.fragment),s=j(),a&&a.c(),this.h()},l(r){e=C(r,"DIV",{class:!0});var i=P(e);Ue(l.$$.fragment,i),s=O(i),a&&a.l(i),i.forEach(m),this.h()},h(){h(e,"class","flex flex-col items-center justify-center p-4")},m(r,i){S(r,e,i),ze(l,e,null),A(e,s),a&&a.m(e,null),n=!0},p(r,i){const o={};i[2]&4&&(o.$$scope={dirty:i,ctx:r}),l.$set(o),r[0].length>0?a?(a.p(r,i),i[0]&1&&M(a,1)):(a=zt(r),a.c(),M(a,1),a.m(e,null)):a&&(Ce(),W(a,1,1,()=>{a=null}),Le())},i(r){n||(M(l.$$.fragment,r),M(a),n=!0)},o(r){W(l.$$.fragment,r),W(a),n=!1},d(r){r&&m(e),je(l),a&&a.d()}}}function xl(t,e,l){let s,n,a,r,i,o,u,c,{data:E}=e,_=E.Model,I,D,F=!1,U=!1,N=!1,g=!0,B=1,V="",p=new AbortController;const w=async b=>{if(D!==null)if(_.useInvestigator&&_.investigatorSettings){const $=systemPrompt+userPrompt+(_.search.modifiedQuery||currentUserRequest),d=await Be.sendTrimByTokens(llmParams.name,sources,$,p);sources=d.result,lastRequestOriginalTokenLength=d.originalTokenCount,lastRequestSlicedTokenLength=d.slicedTokenCount;const y={llm_params:searchLlmParams,query:""},J=new nl(_.investigatorSettings,y,5);_.investigatorSettings&&J.applySettings(_.investigatorSettings);const Z=await J.getResponse(currentUserRequest,sources,p);l(2,_.llmFinalAnswer=Z.result,_),console.log(Z.generatedQA)}else{const $=await sl.doRequest({query:b,use_olympic:N,use_qe:U,find_transaction_maps_by_question:!1,find_transaction_maps_by_operation:!1},p);let d=Be.convertSearchResultsToLlmSources($.searchResults,null);const y=await Be.sendTrimByTokens(D.name,d,(D?.predict_params?.system_prompt||"")+(D?.predict_params?.user_prompt||"")+b,p);d=y.result;const J=Be.buildLlmResponsePrompt(b,d,D.predict_params?.user_prompt);let Z=await Be.doRequest(D.name,J,Lt.Raw,5,p,null,null,D.predict_params,"Конец ответ");return{originalResponse:Z,processedResponse:Be.postProcessLlmAnswer(Z),sourcesTokenCount:y.slicedTokenCount,sourcesOriginalTokenCount:y.originalTokenCount}}},R=async(b,$,d)=>{if(I===null)return;const y=Be.buildResponseEvaluationPrompt(b,d,$);return await Be.doRequest(I.name.replace(" (изменено)",""),y,Lt.Raw,2,p,null,I.predict_params)},k=De(0);qe(t,k,b=>l(17,c=b));let f=De([]);qe(t,f,b=>l(0,s=b));let H=De(null);qe(t,H,b=>l(1,a=b));let q=De({});qe(t,q,b=>l(15,o=b));let se=De({});qe(t,se,b=>l(16,u=b));let oe=De({});qe(t,oe,b=>l(13,r=b));let x=De({});qe(t,x,b=>l(14,i=b));let _e=De({}),le=De({});qe(t,le,b=>l(12,n=b));let re="Запустить обработку";const ge=async b=>{const d=b.target.files?.item(0);if(!d)return;let y=new Ct.Workbook;if(y=await y.xlsx.load(await d.arrayBuffer()),y.worksheets.length>0){const J=y.worksheets[0].id,Z=y.getWorksheet(J),be=Z.getRow(1).values.slice(1),Te=[];let ke=0,G=0;Z.eachRow((Q,Ee)=>{Ee!==1&&(Te.push({id:Pt(),request:Q.values[1]||"",expertAnswer:Q.values[2]||"",llmAnswer:Q.values[3]||"",evaluation:Q.values[4]||"",mark:Q.values[5]||""}),ke+=2,Q.values[3]&&++G,Q.values[4]&&++G)});const ee={id:Pt(),name:d.name,data:Te};f.update(Q=>[...Q,ee]),he(le,n[ee.id]={totalTasks:ke,completedTasks:G},n),H.set(ee.id),_e.set({..._e,[ee.id]:be})}},pe=async b=>{if(I===null){alert("Выберите LLM, которая будет оценивать ответ");return}if(D===null){alert("Выберите LLM, которая будет отвечать на вопрос пользователя");return}if(n[b].processingStarted==!0){p.abort(),p=new AbortController,l(11,re="Запустить обработку"),he(le,n[b].processingStarted=!1,n);return}he(le,n[b].processingStarted=!0,n),l(11,re="Остановить");try{await L(b,g)}catch($){if($ instanceof DOMException&&$.name==="AbortError")return;throw alert("Возникла ошибка, смотри консоль."),console.error($),$}finally{he(le,n[b].processingStarted=!1,n),l(11,re="Запустить обработку")}},L=async(b,$)=>{const d=s.find(G=>G.id===b),y=d.data,J=B,Z=[...y],be=async G=>{if(!G.llmAnswer){const ee=await w(G.request);G.llmAnswer=ee?.processedResponse,G.llmFullAnswer=ee?.originalResponse,G.sourcesTokenCount=ee?.sourcesTokenCount,G.sourcesOriginalTokenCount=ee?.sourcesOriginalTokenCount,f.update(Q=>Q.map(Ee=>Ee.id===b?d:Ee)),he(le,n[b].completedTasks+=1,n)}if($&&!G.evaluation){G.evaluation=await R(G.request,G.llmAnswer,G.expertAnswer);const ee=G.evaluation.match(/\[(\d)([+-]?)\]/);G.mark=ee?ee[1]+ee[2]:"-",f.update(Q=>Q.map(Ee=>Ee.id===b?d:Ee)),he(le,n[b].completedTasks+=1,n)}},Te=async()=>{for(;Z.length>0;){const G=Z.shift();await be(G)}},ke=Array.from({length:J},()=>Te());await Promise.all(ke)},v=b=>{p.abort(),f.update($=>$.filter(d=>d.id!==b))},ce=async b=>{const $=s.find(Q=>Q.id===b),d=new Ct.Workbook,y=d.addWorksheet("Таблица"),J=d.addWorksheet("Оценка");J.addRow(["Средняя оценка"]);const Z=d.addWorksheet("Результаты токенизатора");y.columns=[{header:"Вопрос пользователя",width:70,font:{bold:!0}},{header:"Ответ эксперта",width:70},{header:"Ответ LLM",width:70},{header:"Ответ оценки LLM",width:70},{header:"Оценка",width:10},{header:"Ответ LLM до обработки",width:70}],Z.columns=[{header:"Вопрос пользователя",width:70,font:{bold:!0}},{header:"Токенов до обрезки",width:30},{header:"Токенов после обрезки",width:30}],$.data.forEach(Q=>{y.addRow([Q.request,Q.expertAnswer,Q.llmAnswer,Q.evaluation,Q.mark,Q.llmFullAnswer]).eachCell(Ke=>{Ke.alignment={wrapText:!0,vertical:"top"}}),Z.addRow([Q.request,Q.sourcesOriginalTokenCount,Q.sourcesTokenCount])});const be=y.rowCount;J.getCell("A2").value={formula:`AVERAGE(Таблица!E2:Таблица!E${be})`,result:void 0},J.getCell("A2").font={bold:!0};const Te=await d.xlsx.writeBuffer(),ke=new Blob([Te],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),G=window.URL.createObjectURL(ke),ee=document.createElement("a");ee.href=G,ee.download=`${$.name}`,ee.click()};xt(()=>{setTimeout(()=>{s.length>0&&l(10,V=s[0])},1)});const ve=b=>ge(b),ie=()=>v(V.id);function we(){F=this.checked,l(5,F)}function fe(b){t.$$.not_equal(_.investigatorSettings,b)&&(_.investigatorSettings=b,l(2,_))}function ae(b){D=b,l(4,D)}function Se(){g=this.checked,l(8,g)}function at(b){I=b,l(3,I)}function $e(){B=Jt(this.value),l(9,B)}function Re(b){N=b,l(7,N)}function de(b){U=b,l(6,U)}const ut=()=>pe(a),He=()=>ce(a),et=b=>{he(oe,r[b.id]=!1,r)},rt=b=>{he(oe,r[b.id]=!0,r)},K=b=>{he(q,o[b.id]=!1,o)},X=b=>{he(x,i[b.id]=!0,i)},_t=b=>{he(q,o[b.id]=!1,o)},it=b=>{he(q,o[b.id]=!0,o)},Y=b=>{he(se,u[b.id]=!1,u)},gt=b=>{he(se,u[b.id]=!0,u)};function bt(b){c=b,k.set(c)}const tt=b=>l(10,V=b);return t.$$set=b=>{"data"in b&&l(30,E=b.data)},t.$$.update=()=>{t.$$.dirty[0]&3&&l(10,V=s.find(b=>b.id===a))},[s,a,_,I,D,F,U,N,g,B,V,re,n,r,i,o,u,c,k,f,H,q,se,oe,x,le,ge,pe,v,ce,E,ve,ie,we,fe,ae,Se,at,$e,Re,de,ut,He,et,rt,K,X,_t,it,Y,gt,bt,tt]}class cn extends nt{constructor(e){super(),st(this,e,xl,Zl,lt,{data:30},null,[-1,-1,-1])}}export{cn as component};
build/client/_app/immutable/nodes/6.2grtlPHK.js ADDED
The diff for this file is too large to render. See raw diff
 
build/client/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1726650043044"}
 
1
+ {"version":"1737383820461"}
build/client/icons/1.svg ADDED
build/client/icons/telescope.png ADDED
build/client/icons/telescope.svg ADDED
build/server/chunks/0-kKrOmzhb.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ const index = 0;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_layout.svelte-gqrelTz-.js')).default;
4
+ const imports = ["_app/immutable/nodes/0.B6fEv7mp.js","_app/immutable/chunks/scheduler.5WtVptCO.js","_app/immutable/chunks/index.7IiDzEZn.js","_app/immutable/chunks/popup.dE7t2hhe.js","_app/immutable/chunks/index.G3yBo0_P.js","_app/immutable/chunks/stores.XS_YoCyo.js","_app/immutable/chunks/stores.Cb2RXlYi.js","_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js","_app/immutable/chunks/ModalPromptEditor.x-CfuIKj.js","_app/immutable/chunks/transitions.QBIMuVLc.js","_app/immutable/chunks/each.C7pZUaX1.js"];
5
+ const stylesheets = ["_app/immutable/assets/0.YNxs9fuA.css","_app/immutable/assets/ProgressBar.oq5aOWfL.css"];
6
+ const fonts = ["_app/immutable/assets/fa-brands-400.Du52WpXz.woff2","_app/immutable/assets/fa-brands-400.7q-YOPLl.ttf","_app/immutable/assets/fa-regular-400.4BH2UmBK.woff2","_app/immutable/assets/fa-regular-400.X96xuTcY.ttf","_app/immutable/assets/fa-solid-900.zkCRIXEm.woff2","_app/immutable/assets/fa-solid-900.VdwmxDNg.ttf","_app/immutable/assets/fa-v4compatibility.V_F1ibRM.woff2","_app/immutable/assets/fa-v4compatibility.fTFiPhOk.ttf","_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2","_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff","_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2","_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2","_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2","_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2","_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2"];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=0-kKrOmzhb.js.map
build/server/chunks/0-kKrOmzhb.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"0-kKrOmzhb.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.B6fEv7mp.js\",\"_app/immutable/chunks/scheduler.5WtVptCO.js\",\"_app/immutable/chunks/index.7IiDzEZn.js\",\"_app/immutable/chunks/popup.dE7t2hhe.js\",\"_app/immutable/chunks/index.G3yBo0_P.js\",\"_app/immutable/chunks/stores.XS_YoCyo.js\",\"_app/immutable/chunks/stores.Cb2RXlYi.js\",\"_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js\",\"_app/immutable/chunks/ModalPromptEditor.x-CfuIKj.js\",\"_app/immutable/chunks/transitions.QBIMuVLc.js\",\"_app/immutable/chunks/each.C7pZUaX1.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.YNxs9fuA.css\",\"_app/immutable/assets/ProgressBar.oq5aOWfL.css\"];\nexport const fonts = [\"_app/immutable/assets/fa-brands-400.Du52WpXz.woff2\",\"_app/immutable/assets/fa-brands-400.7q-YOPLl.ttf\",\"_app/immutable/assets/fa-regular-400.4BH2UmBK.woff2\",\"_app/immutable/assets/fa-regular-400.X96xuTcY.ttf\",\"_app/immutable/assets/fa-solid-900.zkCRIXEm.woff2\",\"_app/immutable/assets/fa-solid-900.VdwmxDNg.ttf\",\"_app/immutable/assets/fa-v4compatibility.V_F1ibRM.woff2\",\"_app/immutable/assets/fa-v4compatibility.fTFiPhOk.ttf\",\"_app/immutable/assets/fira-mono-cyrillic-ext-400-normal.dOGCK5uJ.woff2\",\"_app/immutable/assets/fira-mono-all-400-normal.dpry7Ug7.woff\",\"_app/immutable/assets/fira-mono-cyrillic-400-normal.N-vuOVMo.woff2\",\"_app/immutable/assets/fira-mono-greek-ext-400-normal.rKiNtwjr.woff2\",\"_app/immutable/assets/fira-mono-greek-400-normal.At854Oju.woff2\",\"_app/immutable/assets/fira-mono-latin-ext-400-normal.-l34kfv6.woff2\",\"_app/immutable/assets/fira-mono-latin-400-normal.yoy1YEIp.woff2\"];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAC1G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,0CAA0C,CAAC,6EAA6E,CAAC,qDAAqD,CAAC,+CAA+C,CAAC,wCAAwC,EAAE;AACjhB,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,gDAAgD,EAAE;AACzG,MAAC,KAAK,GAAG,CAAC,oDAAoD,CAAC,kDAAkD,CAAC,qDAAqD,CAAC,mDAAmD,CAAC,mDAAmD,CAAC,iDAAiD,CAAC,yDAAyD,CAAC,uDAAuD,CAAC,wEAAwE,CAAC,8DAA8D,CAAC,oEAAoE,CAAC,qEAAqE,CAAC,iEAAiE,CAAC,qEAAqE,CAAC,iEAAiE;;;;"}
build/server/chunks/1-4kmamOJS.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ const index = 1;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./error.svelte-WR-LPUce.js')).default;
4
+ const imports = ["_app/immutable/nodes/1.1x2Pwkux.js","_app/immutable/chunks/scheduler.5WtVptCO.js","_app/immutable/chunks/index.7IiDzEZn.js","_app/immutable/chunks/entry.dO1U_WKI.js","_app/immutable/chunks/index.G3yBo0_P.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=1-4kmamOJS.js.map
build/server/chunks/1-4kmamOJS.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"1-4kmamOJS.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.1x2Pwkux.js\",\"_app/immutable/chunks/scheduler.5WtVptCO.js\",\"_app/immutable/chunks/index.7IiDzEZn.js\",\"_app/immutable/chunks/entry.dO1U_WKI.js\",\"_app/immutable/chunks/index.G3yBo0_P.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AAC5G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,yCAAyC,CAAC,yCAAyC,EAAE;AAC9N,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
build/server/chunks/2-R5cCYEv-.js ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { d as private_env } from './shared-server-49TKSBDM.js';
2
+ import { V as ViewModelFactory } from './ViewModelFactory-KQMUbn1K.js';
3
+ import './LlmUtilsBackend-Xvxfa9ew.js';
4
+ import './constants-GTAueuri.js';
5
+
6
+ const prerender = false;
7
+
8
+ var _page_ts = /*#__PURE__*/Object.freeze({
9
+ __proto__: null,
10
+ prerender: prerender
11
+ });
12
+
13
+ async function load() {
14
+ let viewModel = ViewModelFactory.createMainPageViewModel();
15
+ return {
16
+ ENV_ENABLE_DOCUMENT_DB: private_env.ENABLE_DOCUMENT_DB,
17
+ ENV_DOCUMENT_DB_URL: private_env.DOCUMENT_DB_URL,
18
+ ENV_ENABLE_DB_SUPPORT: private_env.ENABLE_DB_SUPPORT,
19
+ ENV_ENABLE_DEV_FEATURES: private_env.ENV_ENABLE_DEV_FEATURES,
20
+ ENV_DISABLE_HEALTH_CHECKS: private_env.ENV_DISABLE_HEALTH_CHECKS,
21
+ ENV_FAQ_DOCUMENT_ID: private_env.ENV_FAQ_DOCUMENT_ID,
22
+ Model: structuredClone(viewModel)
23
+ };
24
+ }
25
+
26
+ var _page_server_ts = /*#__PURE__*/Object.freeze({
27
+ __proto__: null,
28
+ load: load
29
+ });
30
+
31
+ const index = 2;
32
+ let component_cache;
33
+ const component = async () => component_cache ??= (await import('./_page.svelte-TrHgmXkb.js')).default;
34
+ const universal_id = "src/routes/+page.ts";
35
+ const server_id = "src/routes/+page.server.ts";
36
+ const imports = ["_app/immutable/nodes/2.pzDxSecI.js","_app/immutable/chunks/scheduler.5WtVptCO.js","_app/immutable/chunks/index.7IiDzEZn.js","_app/immutable/chunks/SearchResults.3ZkY-Bmy.js","_app/immutable/chunks/index.G3yBo0_P.js","_app/immutable/chunks/each.C7pZUaX1.js","_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js","_app/immutable/chunks/transitions.QBIMuVLc.js","_app/immutable/chunks/SearchUtils.tAbMbmlw.js","_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js","_app/immutable/chunks/popup.dE7t2hhe.js","_app/immutable/chunks/ModalPromptEditor.x-CfuIKj.js","_app/immutable/chunks/stores.XS_YoCyo.js","_app/immutable/chunks/LlmSelector.Snki38ql.js","_app/immutable/chunks/LogService.hUlSDADx.js","_app/immutable/chunks/stores.Cb2RXlYi.js"];
37
+ const stylesheets = ["_app/immutable/assets/2.JoL8Jh2O.css","_app/immutable/assets/SearchResults.6mpV3Zmb.css","_app/immutable/assets/ProgressBar.oq5aOWfL.css","_app/immutable/assets/SearchUtils.-5bLgY4Z.css"];
38
+ const fonts = [];
39
+
40
+ export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets, _page_ts as universal, universal_id };
41
+ //# sourceMappingURL=2-R5cCYEv-.js.map
build/server/chunks/2-R5cCYEv-.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"2-R5cCYEv-.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.ts.js","../../../.svelte-kit/adapter-node/entries/pages/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["const prerender = false;\nexport {\n prerender\n};\n","import { d as private_env } from \"../../chunks/shared-server.js\";\nimport { V as ViewModelFactory } from \"../../chunks/ViewModelFactory.js\";\nasync function load() {\n let viewModel = ViewModelFactory.createMainPageViewModel();\n return {\n ENV_ENABLE_DOCUMENT_DB: private_env.ENABLE_DOCUMENT_DB,\n ENV_DOCUMENT_DB_URL: private_env.DOCUMENT_DB_URL,\n ENV_ENABLE_DB_SUPPORT: private_env.ENABLE_DB_SUPPORT,\n ENV_ENABLE_DEV_FEATURES: private_env.ENV_ENABLE_DEV_FEATURES,\n ENV_DISABLE_HEALTH_CHECKS: private_env.ENV_DISABLE_HEALTH_CHECKS,\n ENV_FAQ_DOCUMENT_ID: private_env.ENV_FAQ_DOCUMENT_ID,\n Model: structuredClone(viewModel)\n };\n}\nexport {\n load\n};\n","import * as universal from '../entries/pages/_page.ts.js';\nimport * as server from '../entries/pages/_page.server.ts.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+page.ts\";\nexport { server };\nexport const server_id = \"src/routes/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/2.pzDxSecI.js\",\"_app/immutable/chunks/scheduler.5WtVptCO.js\",\"_app/immutable/chunks/index.7IiDzEZn.js\",\"_app/immutable/chunks/SearchResults.3ZkY-Bmy.js\",\"_app/immutable/chunks/index.G3yBo0_P.js\",\"_app/immutable/chunks/each.C7pZUaX1.js\",\"_app/immutable/chunks/ProgressBar.svelte_svelte_type_style_lang.7yc35pDe.js\",\"_app/immutable/chunks/transitions.QBIMuVLc.js\",\"_app/immutable/chunks/SearchUtils.tAbMbmlw.js\",\"_app/immutable/chunks/InvestigatorSettings.5lll9SsD.js\",\"_app/immutable/chunks/popup.dE7t2hhe.js\",\"_app/immutable/chunks/ModalPromptEditor.x-CfuIKj.js\",\"_app/immutable/chunks/stores.XS_YoCyo.js\",\"_app/immutable/chunks/LlmSelector.Snki38ql.js\",\"_app/immutable/chunks/LogService.hUlSDADx.js\",\"_app/immutable/chunks/stores.Cb2RXlYi.js\"];\nexport const stylesheets = [\"_app/immutable/assets/2.JoL8Jh2O.css\",\"_app/immutable/assets/SearchResults.6mpV3Zmb.css\",\"_app/immutable/assets/ProgressBar.oq5aOWfL.css\",\"_app/immutable/assets/SearchUtils.-5bLgY4Z.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;AAAA,MAAM,SAAS,GAAG,KAAK;;;;;;;ACEvB,eAAe,IAAI,GAAG;AACtB,EAAE,IAAI,SAAS,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,CAAC;AAC7D,EAAE,OAAO;AACT,IAAI,sBAAsB,EAAE,WAAW,CAAC,kBAAkB;AAC1D,IAAI,mBAAmB,EAAE,WAAW,CAAC,eAAe;AACpD,IAAI,qBAAqB,EAAE,WAAW,CAAC,iBAAiB;AACxD,IAAI,uBAAuB,EAAE,WAAW,CAAC,uBAAuB;AAChE,IAAI,yBAAyB,EAAE,WAAW,CAAC,yBAAyB;AACpE,IAAI,mBAAmB,EAAE,WAAW,CAAC,mBAAmB;AACxD,IAAI,KAAK,EAAE,eAAe,CAAC,SAAS,CAAC;AACrC,GAAG,CAAC;AACJ;;;;;;;ACVY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE,QAAQ;AAExG,MAAC,YAAY,GAAG,sBAAsB;AAEtC,MAAC,SAAS,GAAG,6BAA6B;AAC1C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,iDAAiD,CAAC,yCAAyC,CAAC,wCAAwC,CAAC,6EAA6E,CAAC,+CAA+C,CAAC,+CAA+C,CAAC,wDAAwD,CAAC,yCAAyC,CAAC,qDAAqD,CAAC,0CAA0C,CAAC,+CAA+C,CAAC,8CAA8C,CAAC,0CAA0C,EAAE;AAC3wB,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,kDAAkD,CAAC,gDAAgD,CAAC,gDAAgD,EAAE;AAC7M,MAAC,KAAK,GAAG;;;;"}