@liip/liipgpt 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/button/liipgpt-button.iife.js +15 -15
  2. package/chat/liipgpt-chat.iife.js +41 -41
  3. package/configurator/_app/env.js +1 -1
  4. package/configurator/_app/immutable/chunks/{Dzs3iOAP.js → 3Jx_2Hd6.js} +1 -1
  5. package/configurator/_app/immutable/chunks/{C8ORMuNm.js → B6FwuxF-.js} +1 -1
  6. package/configurator/_app/immutable/chunks/{Bwlnp1Fv.js → BXEdQL9F.js} +1 -1
  7. package/configurator/_app/immutable/chunks/{tg4KZpKp.js → Bjule0iI.js} +1 -1
  8. package/configurator/_app/immutable/chunks/C7PQ7vvk.js +1 -0
  9. package/configurator/_app/immutable/chunks/{BHyoBcMB.js → CCVb_64a.js} +1 -1
  10. package/configurator/_app/immutable/chunks/CKh0DCID.js +116 -0
  11. package/configurator/_app/immutable/chunks/{KwlzJn94.js → DzvSdHYT.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{bzMFxNOM.js → w58EqJ4L.js} +1 -1
  13. package/configurator/_app/immutable/entry/{app.wS03Lw9v.js → app.DaWMcPqV.js} +2 -2
  14. package/configurator/_app/immutable/entry/start.B28NnTz6.js +1 -0
  15. package/configurator/_app/immutable/nodes/{0.B1_BHoHM.js → 0.DMFk0iPH.js} +1 -1
  16. package/configurator/_app/immutable/nodes/{1.Qf-3txMY.js → 1.Dc_xA0Gn.js} +1 -1
  17. package/configurator/_app/immutable/nodes/{2.QF2vvVAB.js → 2.DlerhEWH.js} +3 -3
  18. package/configurator/_app/immutable/nodes/{3.y9o-F-NC.js → 3.BMx6bP8s.js} +1 -1
  19. package/configurator/_app/version.json +1 -1
  20. package/configurator/index.html +6 -6
  21. package/configurator/sidebar.html +6 -6
  22. package/index.cjs +56 -27
  23. package/index.js +56 -27
  24. package/package.json +1 -1
  25. package/configurator/_app/immutable/chunks/DEfNJr1d.js +0 -1
  26. package/configurator/_app/immutable/chunks/DShclvIF.js +0 -116
  27. package/configurator/_app/immutable/entry/start.DC6usZVj.js +0 -1
@@ -1 +1 @@
1
- import{a7 as r}from"./PaGpozZ3.js";import{s as t,p as e}from"./Bwlnp1Fv.js";r();const a={get error(){return e.error},get status(){return e.status},get url(){return e.url}};t.updated.check;const p=a;export{p};
1
+ import{a7 as r}from"./PaGpozZ3.js";import{s as t,p as e}from"./BXEdQL9F.js";r();const a={get error(){return e.error},get status(){return e.status},get url(){return e.url}};t.updated.check;const p=a;export{p};
@@ -1,4 +1,4 @@
1
- import"./NZTpNUN0.js";import{o as ta}from"./CjlIFGQR.js";import{aj as vn,ak as gn,p as Dt,f as T,e as u,b as n,r as d,t as tt,d as Nt,v as f,c as Bt,aJ as mn,aK as Ze,y as hn,x as ya,B as pn,P as R,X as La,u as wt,T as _,G as t,H as C,o as ke,s as B,aC as ve,Q as Mt,F as oe,N as E,a as k,R as ea,a8 as wa,g as Lt,aL as je,aM as bn,aH as _n,aD as fa,Y as yn,aE as wn,ar as xn}from"./PaGpozZ3.js";import{i as I,b as Gt,c as Xt}from"./Cg1M8nhR.js";import{e as de,F as ae,D as Pt,s as G,O as Qt,Q as ye,l as Se,a as Pa,T as kn,U as Ae,V as Cn,W as In,X as Je,Y as xa,Z as Tn,_ as Sn,j as s,$ as Oa,a0 as Bn,a1 as En,a2 as Ln,a3 as Pn,a4 as On,t as $t,a5 as ma,a6 as An,S as aa,a7 as Mn,n as we,a8 as Oe,a9 as Dn,m as jt,h as he,w as Nn,aa as ka,G as Fn,q as Aa,M as Hn,x as Te,ab as Rn,ac as zn,ad as Yn,ae as Ma,y as Da,i as Ce,p as ha,af as qn,ag as jn,ah as Vn,ai as Kn,R as Ca,P as Un,I as Ye,o as Na,aj as Qe,ak as Wn,al as Qn,am as Xn,an as Gn,ao as Zn,ap as Jn,N as $n,aq as to,u as eo,C as ao,v as no,c as oo}from"./DShclvIF.js";import{p as v,s as qe,r as Ve}from"./UUVzZ2eQ.js";import"./KwlzJn94.js";import{i as Fa}from"./CUA2mQrz.js";import{t as ro}from"./C8ORMuNm.js";import{O as so}from"./DEfNJr1d.js";function io(h,e,r,a,i){vn&&gn();var l=e.$$slots?.[r],g=!1;l===!0&&(l=e[r],g=!0),l===void 0?i!==null&&i(h):l(h,g?()=>a:a)}const lo=Array(12).fill(0);var co=T('<div class="sonner-loading-bar"></div>'),uo=T('<div><div class="sonner-spinner"></div></div>');function Ha(h,e){Dt(e,!0);let r=v(e,"visible",7),a=v(e,"class",7);var i=uo(),l=u(i);return de(l,23,()=>lo,(g,p)=>`spinner-bar-${p}`,(g,p)=>{var w=co();n(g,w)}),d(l),d(i),tt(g=>{Pt(i,1,g),G(i,"data-visible",r())},[()=>ae(["sonner-loading-wrapper",a()].filter(Boolean).join(" "))]),n(h,i),Nt({get visible(){return r()},set visible(g){r(g),f()},get class(){return a()},set class(g){a(g),f()}})}Bt(Ha,{visible:{},class:{}},[],[],!0);const fo=typeof window<"u"?window:void 0;function vo(h){let e=h.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}class go{#e;#t;constructor(e={}){const{window:r=fo,document:a=r?.document}=e;r!==void 0&&(this.#e=a,this.#t=mn(i=>{const l=Ze(r,"focusin",i),g=Ze(r,"focusout",i);return()=>{l(),g()}}))}get current(){return this.#t?.(),this.#e?vo(this.#e):null}}new go;class mo{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return hn(this.#t)}get(){const e=ya(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const r=ya(this.#t);return r===void 0?e:r}set(e){return pn(this.#t,e)}}const ho=new mo("<Toaster/>");function $e(h){return h.label!==void 0}function po(){let h=R(La(typeof document<"u"?document.hidden:!1));return wt(()=>Ze(document,"visibilitychange",()=>{_(h,document.hidden,!0)})),{get current(){return t(h)}}}const Ia=4e3,bo=14,_o=45,yo=200,wo=.05,xo={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function ko(h){const[e,r]=h.split("-"),a=[];return e&&a.push(e),r&&a.push(r),a}function Ta(h){return 1/(1.5+Math.abs(h)/20)}var Co=T("<div><!></div>"),Io=(h,e,r,a,i)=>{t(e)||!t(r)||(a(),i().onDismiss?.(i()))},To=T('<button data-close-button=""><!></button>'),So=T('<div data-icon=""><!> <!></div>'),Bo=T('<div data-description=""><!></div>'),Eo=(h,e,r,a)=>{$e(e().cancel)&&t(r)&&(e().cancel?.onClick?.(h),a())},Lo=T('<button data-button="" data-cancel=""> </button>'),Po=(h,e,r)=>{$e(e().action)&&(e().action?.onClick(h),!h.defaultPrevented&&r())},Oo=T('<button data-button=""> </button>'),Ao=T('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),Mo=T('<li data-sonner-toast=""><!> <!></li>');function Ra(h,e){Dt(e,!0);const r=c=>{var ut=E(),yt=k(ut);{var It=rt=>{var _t=Co(),te=u(_t);Mt(te,K),d(_t),tt(re=>{Pt(_t,1,re),G(_t,"data-visible",t(et)==="loading")},[()=>ae(ye(t(o)?.loader,a()?.classes?.loader,"sonner-loader"))]),n(rt,_t)},Et=rt=>{{let _t=C(()=>ye(t(o)?.loader,a().classes?.loader)),te=C(()=>t(et)==="loading");Ha(rt,{get class(){return t(_t)},get visible(){return t(te)}})}};I(yt,rt=>{K()?rt(It):rt(Et,!1)})}n(c,ut)};let a=v(e,"toast",7),i=v(e,"index",7),l=v(e,"expanded",7),g=v(e,"invert",7),p=v(e,"position",7),w=v(e,"visibleToasts",7),b=v(e,"expandByDefault",7),D=v(e,"closeButton",7),M=v(e,"interacting",7),x=v(e,"cancelButtonStyle",7,""),A=v(e,"actionButtonStyle",7,""),m=v(e,"duration",7),P=v(e,"descriptionClass",7,""),z=v(e,"classes",7),it=v(e,"unstyled",7,!1),K=v(e,"loadingIcon",7),lt=v(e,"successIcon",7),vt=v(e,"errorIcon",7),U=v(e,"warningIcon",7),F=v(e,"closeIcon",7),kt=v(e,"infoIcon",7),W=v(e,"defaultRichColors",7,!1),ot=v(e,"swipeDirections",7),y=v(e,"closeButtonAriaLabel",7);const H={...xo};let at=R(!1),gt=R(!1),dt=R(!1),j=R(!1),Y=R(!1),N=R(0),$=R(0),V=a().duration||m()||Ia,xt=R(null),S=R(void 0),Q=R(null),X=R(null);const q=C(()=>i()===0),Z=C(()=>i()+1<=w()),et=C(()=>a().type),zt=C(()=>a().dismissable!==!1),Zt=C(()=>a().class||""),O=C(()=>a().descriptionClass||""),mt=C(()=>Qt.heights.findIndex(c=>c.toastId===a().id)||0),ct=C(()=>a().closeButton??D()),Ct=C(()=>a().duration??m()??Ia);let Tt=null;const se=C(()=>p().split("-")),Vt=C(()=>Qt.heights.reduce((c,ut,yt)=>yt>=t(mt)?c:c+ut.height,0)),Kt=po(),ge=C(()=>a().invert||g()),pe=C(()=>t(et)==="loading"),o=C(()=>({...H,...z()})),L=C(()=>a().title),nt=C(()=>a().description);let Ft=R(0),ie=R(0);const ce=C(()=>Math.round(t(mt)*bo+t(Vt)));wt(()=>{t(L),t(nt);let c;l()||b()?c=1:c=1-i()*wo;const ut=ke(()=>t(S));if(ut===void 0)return;ut.style.setProperty("height","auto");const yt=ut.offsetHeight,It=ut.getBoundingClientRect().height,Et=Math.round(It/c+Number.EPSILON&100)/100;ut.style.removeProperty("height");let rt;Math.abs(Et-yt)<1?rt=Et:rt=yt,_($,rt,!0),ke(()=>{Qt.setHeight({toastId:a().id,height:rt})})});function Ht(){_(gt,!0),_(N,t(ce),!0),Qt.removeHeight(a().id),setTimeout(()=>{Qt.remove(a().id)},yo)}let Jt;const xe=C(()=>a().promise&&t(et)==="loading"||a().duration===Number.POSITIVE_INFINITY);function St(){_(Ft,new Date().getTime(),!0),Jt=setTimeout(()=>{a().onAutoClose?.(a()),Ht()},V)}function Yt(){if(t(ie)<t(Ft)){const c=new Date().getTime()-t(Ft);V=V-c}_(ie,new Date().getTime(),!0)}wt(()=>{a().updated&&(clearTimeout(Jt),V=t(Ct),St())}),wt(()=>(t(xe)||(l()||M()||Kt.current?Yt():St()),()=>clearTimeout(Jt))),ta(()=>{_(at,!0);const c=t(S)?.getBoundingClientRect().height;return _($,c,!0),Qt.setHeight({toastId:a().id,height:c}),()=>{Qt.removeHeight(a().id)}}),wt(()=>{a().delete&&ke(()=>{Ht(),a().onDismiss?.(a())})});const ne=c=>{if(t(pe))return;_(N,t(ce),!0);const ut=c.target;ut.setPointerCapture(c.pointerId),ut.tagName!=="BUTTON"&&(_(dt,!0),Tt={x:c.clientX,y:c.clientY})},Be=()=>{if(t(j)||!t(zt))return;Tt=null;const c=Number(t(S)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),ut=Number(t(S)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),yt=new Date().getTime()-(t(xt)?.getTime()??0),It=t(Q)==="x"?c:ut,Et=Math.abs(It)/yt;if(Math.abs(It)>=_o||Et>.11){_(N,t(ce),!0),a().onDismiss?.(a()),t(Q)==="x"?_(X,c>0?"right":"left",!0):_(X,ut>0?"down":"up",!0),Ht(),_(j,!0);return}else t(S)?.style.setProperty("--swipe-amount-x","0px"),t(S)?.style.setProperty("--swipe-amount-y","0px");_(Y,!1),_(dt,!1),_(Q,null)},Ke=c=>{if(!Tt||!t(zt)||(window.getSelection()?.toString().length??-1)>0)return;const yt=c.clientY-Tt.y,It=c.clientX-Tt.x,Et=ot()??ko(p());!t(Q)&&(Math.abs(It)>1||Math.abs(yt)>1)&&_(Q,Math.abs(It)>Math.abs(yt)?"x":"y",!0);let rt={x:0,y:0};if(t(Q)==="y"){if(Et.includes("top")||Et.includes("bottom"))if(Et.includes("top")&&yt<0||Et.includes("bottom")&&yt>0)rt.y=yt;else{const _t=yt*Ta(yt);rt.y=Math.abs(_t)<Math.abs(yt)?_t:yt}}else if(t(Q)==="x"&&(Et.includes("left")||Et.includes("right")))if(Et.includes("left")&&It<0||Et.includes("right")&&It>0)rt.x=It;else{const _t=It*Ta(It);rt.x=Math.abs(_t)<Math.abs(It)?_t:It}(Math.abs(rt.x)>0||Math.abs(rt.y)>0)&&_(Y,!0),t(S)?.style.setProperty("--swipe-amount-x",`${rt.x}px`),t(S)?.style.setProperty("--swipe-amount-y",`${rt.y}px`)},Me=()=>{_(dt,!1),_(Q,null),Tt=null},Ie=C(()=>a().icon?a().icon:t(et)==="success"?lt():t(et)==="error"?vt():t(et)==="warning"?U():t(et)==="info"?kt():t(et)==="loading"?K():null);var ht=Mo();G(ht,"tabindex",0);let Ue;ht.__pointermove=Ke,ht.__pointerup=Be,ht.__pointerdown=ne;var We=u(ht);{var na=c=>{var ut=To();ut.__click=[Io,pe,zt,Ht,a];var yt=u(ut);Mt(yt,()=>F()??oe),d(ut),tt(It=>{G(ut,"aria-label",y()),G(ut,"data-disabled",t(pe)),Pt(ut,1,It)},[()=>ae(ye(t(o)?.closeButton,a()?.classes?.closeButton))]),n(c,ut)};I(We,c=>{t(ct)&&!a().component&&t(et)!=="loading"&&F()!==null&&c(na)})}var oa=B(We,2);{var ra=c=>{var ut=E();const yt=C(()=>a().component);var It=k(ut);Xt(It,()=>t(yt),(Et,rt)=>{rt(Et,qe(()=>a().componentProps,{closeToast:Ht}))}),n(c,ut)},sa=c=>{var ut=Ao(),yt=k(ut);{var It=J=>{var qt=So(),me=u(qt);{var be=ft=>{var Ut=E(),ee=k(Ut);{var Rt=Wt=>{var le=E(),De=k(le);Xt(De,()=>a().icon,(Ne,Fe)=>{Fe(Ne,{})}),n(Wt,le)},At=Wt=>{r(Wt)};I(ee,Wt=>{a().icon?Wt(Rt):Wt(At,!1)})}n(ft,Ut)};I(me,ft=>{(a().promise||t(et)==="loading")&&ft(be)})}var _e=B(me,2);{var bt=ft=>{var Ut=E(),ee=k(Ut);{var Rt=Wt=>{var le=E(),De=k(le);Xt(De,()=>a().icon,(Ne,Fe)=>{Fe(Ne,{})}),n(Wt,le)},At=Wt=>{var le=E(),De=k(le);{var Ne=Ee=>{var He=E(),ia=k(He);Mt(ia,()=>lt()??oe),n(Ee,He)},Fe=Ee=>{var He=E(),ia=k(He);{var sn=Le=>{var Re=E(),la=k(Re);Mt(la,()=>vt()??oe),n(Le,Re)},ln=Le=>{var Re=E(),la=k(Re);{var dn=Pe=>{var ze=E(),da=k(ze);Mt(da,()=>U()??oe),n(Pe,ze)},cn=Pe=>{var ze=E(),da=k(ze);{var un=ca=>{var _a=E(),fn=k(_a);Mt(fn,()=>kt()??oe),n(ca,_a)};I(da,ca=>{t(et)==="info"&&ca(un)},!0)}n(Pe,ze)};I(la,Pe=>{t(et)==="warning"?Pe(dn):Pe(cn,!1)},!0)}n(Le,Re)};I(ia,Le=>{t(et)==="error"?Le(sn):Le(ln,!1)},!0)}n(Ee,He)};I(De,Ee=>{t(et)==="success"?Ee(Ne):Ee(Fe,!1)},!0)}n(Wt,le)};I(ee,Wt=>{a().icon?Wt(Rt):Wt(At,!1)})}n(ft,Ut)};I(_e,ft=>{a().type!=="loading"&&ft(bt)})}d(qt),tt(ft=>Pt(qt,1,ft),[()=>ae(ye(t(o)?.icon,a()?.classes?.icon))]),n(J,qt)};I(yt,J=>{(t(et)||a().icon||a().promise)&&a().icon!==null&&(t(Ie)!==null||a().icon)&&J(It)})}var Et=B(yt,2),rt=u(Et),_t=u(rt);{var te=J=>{var qt=E(),me=k(qt);{var be=bt=>{var ft=E();const Ut=C(()=>a().title);var ee=k(ft);Xt(ee,()=>t(Ut),(Rt,At)=>{At(Rt,qe(()=>a().componentProps))}),n(bt,ft)},_e=bt=>{var ft=wa();tt(()=>Lt(ft,a().title)),n(bt,ft)};I(me,bt=>{typeof a().title!="string"?bt(be):bt(_e,!1)})}n(J,qt)};I(_t,J=>{a().title&&J(te)})}d(rt);var re=B(rt,2);{var ue=J=>{var qt=Bo(),me=u(qt);{var be=bt=>{var ft=E();const Ut=C(()=>a().description);var ee=k(ft);Xt(ee,()=>t(Ut),(Rt,At)=>{At(Rt,qe(()=>a().componentProps))}),n(bt,ft)},_e=bt=>{var ft=wa();tt(()=>Lt(ft,a().description)),n(bt,ft)};I(me,bt=>{typeof a().description!="string"?bt(be):bt(_e,!1)})}d(qt),tt(bt=>Pt(qt,1,bt),[()=>ae(ye(P(),t(O),t(o)?.description,a().classes?.description))]),n(J,qt)};I(re,J=>{a().description&&J(ue)})}d(Et);var st=B(Et,2);{var pt=J=>{var qt=E(),me=k(qt);{var be=bt=>{var ft=E(),Ut=k(ft);Xt(Ut,()=>a().cancel,(ee,Rt)=>{Rt(ee,{})}),n(bt,ft)},_e=bt=>{var ft=E(),Ut=k(ft);{var ee=Rt=>{var At=Lo();At.__click=[Eo,a,zt,Ht];var Wt=u(At,!0);d(At),tt(le=>{Se(At,a().cancelButtonStyle??x()),Pt(At,1,le),Lt(Wt,a().cancel.label)},[()=>ae(ye(t(o)?.cancelButton,a()?.classes?.cancelButton))]),n(Rt,At)};I(Ut,Rt=>{$e(a().cancel)&&Rt(ee)},!0)}n(bt,ft)};I(me,bt=>{typeof a().cancel=="function"?bt(be):bt(_e,!1)})}n(J,qt)};I(st,J=>{a().cancel&&J(pt)})}var Ot=B(st,2);{var fe=J=>{var qt=E(),me=k(qt);{var be=bt=>{var ft=E(),Ut=k(ft);Xt(Ut,()=>a().action,(ee,Rt)=>{Rt(ee,{})}),n(bt,ft)},_e=bt=>{var ft=E(),Ut=k(ft);{var ee=Rt=>{var At=Oo();At.__click=[Po,a,Ht];var Wt=u(At,!0);d(At),tt(le=>{Se(At,a().actionButtonStyle??A()),Pt(At,1,le),Lt(Wt,a().action.label)},[()=>ae(ye(t(o)?.actionButton,a()?.classes?.actionButton))]),n(Rt,At)};I(Ut,Rt=>{$e(a().action)&&Rt(ee)},!0)}n(bt,ft)};I(me,bt=>{typeof a().action=="function"?bt(be):bt(_e,!1)})}n(J,qt)};I(Ot,J=>{a().action&&J(fe)})}tt(J=>Pt(rt,1,J),[()=>ae(ye(t(o)?.title,a()?.classes?.title))]),n(c,ut)};I(oa,c=>{a().component?c(ra):c(sa,!1)})}return d(ht),Gt(ht,c=>_(S,c),()=>t(S)),tt((c,ut,yt,It)=>{Pt(ht,1,c),G(ht,"data-rich-colors",a().richColors??W()),G(ht,"data-styled",!(a().component||a().unstyled||it())),G(ht,"data-mounted",t(at)),G(ht,"data-promise",ut),G(ht,"data-swiped",t(Y)),G(ht,"data-removed",t(gt)),G(ht,"data-visible",t(Z)),G(ht,"data-y-position",t(se)[0]),G(ht,"data-x-position",t(se)[1]),G(ht,"data-index",i()),G(ht,"data-front",t(q)),G(ht,"data-swiping",t(dt)),G(ht,"data-dismissable",t(zt)),G(ht,"data-type",t(et)),G(ht,"data-invert",t(ge)),G(ht,"data-swipe-out",t(j)),G(ht,"data-swipe-direction",t(X)),G(ht,"data-expanded",yt),Ue=Se(ht,`${e.style} ${a().style}`,Ue,It)},[()=>ae(ye(e.class,t(Zt),t(o)?.toast,a()?.classes?.toast,t(o)?.[t(et)],a()?.classes?.[t(et)])),()=>!!a().promise,()=>!!(l()||b()&&t(at)),()=>({"--index":i(),"--toasts-before":i(),"--z-index":Qt.toasts.length-i(),"--offset":`${t(gt)?t(N):t(ce)}px`,"--initial-height":b()?"auto":`${t($)}px`})]),ve("dragend",ht,Me),n(h,ht),Nt({get toast(){return a()},set toast(c){a(c),f()},get index(){return i()},set index(c){i(c),f()},get expanded(){return l()},set expanded(c){l(c),f()},get invert(){return g()},set invert(c){g(c),f()},get position(){return p()},set position(c){p(c),f()},get visibleToasts(){return w()},set visibleToasts(c){w(c),f()},get expandByDefault(){return b()},set expandByDefault(c){b(c),f()},get closeButton(){return D()},set closeButton(c){D(c),f()},get interacting(){return M()},set interacting(c){M(c),f()},get cancelButtonStyle(){return x()},set cancelButtonStyle(c=""){x(c),f()},get actionButtonStyle(){return A()},set actionButtonStyle(c=""){A(c),f()},get duration(){return m()},set duration(c){m(c),f()},get descriptionClass(){return P()},set descriptionClass(c=""){P(c),f()},get classes(){return z()},set classes(c){z(c),f()},get unstyled(){return it()},set unstyled(c=!1){it(c),f()},get loadingIcon(){return K()},set loadingIcon(c){K(c),f()},get successIcon(){return lt()},set successIcon(c){lt(c),f()},get errorIcon(){return vt()},set errorIcon(c){vt(c),f()},get warningIcon(){return U()},set warningIcon(c){U(c),f()},get closeIcon(){return F()},set closeIcon(c){F(c),f()},get infoIcon(){return kt()},set infoIcon(c){kt(c),f()},get defaultRichColors(){return W()},set defaultRichColors(c=!1){W(c),f()},get swipeDirections(){return ot()},set swipeDirections(c){ot(c),f()},get closeButtonAriaLabel(){return y()},set closeButtonAriaLabel(c){y(c),f()}})}ea(["pointermove","pointerup","pointerdown","click"]);Bt(Ra,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{}},[],[],!0);var Do=je('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function za(h){var e=Do();n(h,e)}Bt(za,{},[],[],!0);var No=je('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function Ya(h){var e=No();n(h,e)}Bt(Ya,{},[],[],!0);var Fo=je('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function qa(h){var e=Fo();n(h,e)}Bt(qa,{},[],[],!0);var Ho=je('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function ja(h){var e=Ho();n(h,e)}Bt(ja,{},[],[],!0);var Ro=je('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function Va(h){var e=Ro();n(h,e)}Bt(Va,{},[],[],!0);const Sa=3,va="24px",ga="16px",Ba=4e3,zo=356,Ea=14,ua="dark",Xe="light";function Yo(h,e){const r={};return[h,e].forEach((a,i)=>{const l=i===1,g=l?"--mobile-offset":"--offset",p=l?ga:va;function w(b){["top","right","bottom","left"].forEach(D=>{r[`${g}-${D}`]=typeof b=="number"?`${b}px`:b})}typeof a=="number"||typeof a=="string"?w(a):typeof a=="object"?["top","right","bottom","left"].forEach(b=>{const D=a[b];D===void 0?r[`${g}-${b}`]=p:r[`${g}-${b}`]=typeof D=="number"?`${D}px`:D}):w(p)}),r}var qo=T("<ol></ol>"),jo=T('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-214svo"><!></section>');const Vo={hash:"svelte-214svo",code:`html[dir='ltr'],
1
+ import"./NZTpNUN0.js";import{o as ta}from"./CjlIFGQR.js";import{aj as vn,ak as gn,p as Dt,f as T,e as u,b as n,r as d,t as tt,d as Nt,v as f,c as Bt,aJ as mn,aK as Ze,y as hn,x as ya,B as pn,P as R,X as La,u as wt,T as _,G as t,H as C,o as ke,s as B,aC as ve,Q as Mt,F as oe,N as E,a as k,R as ea,a8 as wa,g as Lt,aL as je,aM as bn,aH as _n,aD as fa,Y as yn,aE as wn,ar as xn}from"./PaGpozZ3.js";import{i as I,b as Gt,c as Xt}from"./Cg1M8nhR.js";import{e as de,F as ae,D as Pt,s as G,O as Qt,Q as ye,l as Se,a as Pa,T as kn,U as Ae,V as Cn,W as In,X as Je,Y as xa,Z as Tn,_ as Sn,j as s,$ as Oa,a0 as Bn,a1 as En,a2 as Ln,a3 as Pn,a4 as On,t as $t,a5 as ma,a6 as An,S as aa,a7 as Mn,n as we,a8 as Oe,a9 as Dn,m as jt,h as he,w as Nn,aa as ka,G as Fn,q as Aa,M as Hn,x as Te,ab as Rn,ac as zn,ad as Yn,ae as Ma,y as Da,i as Ce,p as ha,af as qn,ag as jn,ah as Vn,ai as Kn,R as Ca,P as Un,I as Ye,o as Na,aj as Qe,ak as Wn,al as Qn,am as Xn,an as Gn,ao as Zn,ap as Jn,N as $n,aq as to,u as eo,C as ao,v as no,c as oo}from"./CKh0DCID.js";import{p as v,s as qe,r as Ve}from"./UUVzZ2eQ.js";import"./DzvSdHYT.js";import{i as Fa}from"./CUA2mQrz.js";import{t as ro}from"./B6FwuxF-.js";import{O as so}from"./C7PQ7vvk.js";function io(h,e,r,a,i){vn&&gn();var l=e.$$slots?.[r],g=!1;l===!0&&(l=e[r],g=!0),l===void 0?i!==null&&i(h):l(h,g?()=>a:a)}const lo=Array(12).fill(0);var co=T('<div class="sonner-loading-bar"></div>'),uo=T('<div><div class="sonner-spinner"></div></div>');function Ha(h,e){Dt(e,!0);let r=v(e,"visible",7),a=v(e,"class",7);var i=uo(),l=u(i);return de(l,23,()=>lo,(g,p)=>`spinner-bar-${p}`,(g,p)=>{var w=co();n(g,w)}),d(l),d(i),tt(g=>{Pt(i,1,g),G(i,"data-visible",r())},[()=>ae(["sonner-loading-wrapper",a()].filter(Boolean).join(" "))]),n(h,i),Nt({get visible(){return r()},set visible(g){r(g),f()},get class(){return a()},set class(g){a(g),f()}})}Bt(Ha,{visible:{},class:{}},[],[],!0);const fo=typeof window<"u"?window:void 0;function vo(h){let e=h.activeElement;for(;e?.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}class go{#e;#t;constructor(e={}){const{window:r=fo,document:a=r?.document}=e;r!==void 0&&(this.#e=a,this.#t=mn(i=>{const l=Ze(r,"focusin",i),g=Ze(r,"focusout",i);return()=>{l(),g()}}))}get current(){return this.#t?.(),this.#e?vo(this.#e):null}}new go;class mo{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return hn(this.#t)}get(){const e=ya(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const r=ya(this.#t);return r===void 0?e:r}set(e){return pn(this.#t,e)}}const ho=new mo("<Toaster/>");function $e(h){return h.label!==void 0}function po(){let h=R(La(typeof document<"u"?document.hidden:!1));return wt(()=>Ze(document,"visibilitychange",()=>{_(h,document.hidden,!0)})),{get current(){return t(h)}}}const Ia=4e3,bo=14,_o=45,yo=200,wo=.05,xo={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function ko(h){const[e,r]=h.split("-"),a=[];return e&&a.push(e),r&&a.push(r),a}function Ta(h){return 1/(1.5+Math.abs(h)/20)}var Co=T("<div><!></div>"),Io=(h,e,r,a,i)=>{t(e)||!t(r)||(a(),i().onDismiss?.(i()))},To=T('<button data-close-button=""><!></button>'),So=T('<div data-icon=""><!> <!></div>'),Bo=T('<div data-description=""><!></div>'),Eo=(h,e,r,a)=>{$e(e().cancel)&&t(r)&&(e().cancel?.onClick?.(h),a())},Lo=T('<button data-button="" data-cancel=""> </button>'),Po=(h,e,r)=>{$e(e().action)&&(e().action?.onClick(h),!h.defaultPrevented&&r())},Oo=T('<button data-button=""> </button>'),Ao=T('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),Mo=T('<li data-sonner-toast=""><!> <!></li>');function Ra(h,e){Dt(e,!0);const r=c=>{var ut=E(),yt=k(ut);{var It=rt=>{var _t=Co(),te=u(_t);Mt(te,K),d(_t),tt(re=>{Pt(_t,1,re),G(_t,"data-visible",t(et)==="loading")},[()=>ae(ye(t(o)?.loader,a()?.classes?.loader,"sonner-loader"))]),n(rt,_t)},Et=rt=>{{let _t=C(()=>ye(t(o)?.loader,a().classes?.loader)),te=C(()=>t(et)==="loading");Ha(rt,{get class(){return t(_t)},get visible(){return t(te)}})}};I(yt,rt=>{K()?rt(It):rt(Et,!1)})}n(c,ut)};let a=v(e,"toast",7),i=v(e,"index",7),l=v(e,"expanded",7),g=v(e,"invert",7),p=v(e,"position",7),w=v(e,"visibleToasts",7),b=v(e,"expandByDefault",7),D=v(e,"closeButton",7),M=v(e,"interacting",7),x=v(e,"cancelButtonStyle",7,""),A=v(e,"actionButtonStyle",7,""),m=v(e,"duration",7),P=v(e,"descriptionClass",7,""),z=v(e,"classes",7),it=v(e,"unstyled",7,!1),K=v(e,"loadingIcon",7),lt=v(e,"successIcon",7),vt=v(e,"errorIcon",7),U=v(e,"warningIcon",7),F=v(e,"closeIcon",7),kt=v(e,"infoIcon",7),W=v(e,"defaultRichColors",7,!1),ot=v(e,"swipeDirections",7),y=v(e,"closeButtonAriaLabel",7);const H={...xo};let at=R(!1),gt=R(!1),dt=R(!1),j=R(!1),Y=R(!1),N=R(0),$=R(0),V=a().duration||m()||Ia,xt=R(null),S=R(void 0),Q=R(null),X=R(null);const q=C(()=>i()===0),Z=C(()=>i()+1<=w()),et=C(()=>a().type),zt=C(()=>a().dismissable!==!1),Zt=C(()=>a().class||""),O=C(()=>a().descriptionClass||""),mt=C(()=>Qt.heights.findIndex(c=>c.toastId===a().id)||0),ct=C(()=>a().closeButton??D()),Ct=C(()=>a().duration??m()??Ia);let Tt=null;const se=C(()=>p().split("-")),Vt=C(()=>Qt.heights.reduce((c,ut,yt)=>yt>=t(mt)?c:c+ut.height,0)),Kt=po(),ge=C(()=>a().invert||g()),pe=C(()=>t(et)==="loading"),o=C(()=>({...H,...z()})),L=C(()=>a().title),nt=C(()=>a().description);let Ft=R(0),ie=R(0);const ce=C(()=>Math.round(t(mt)*bo+t(Vt)));wt(()=>{t(L),t(nt);let c;l()||b()?c=1:c=1-i()*wo;const ut=ke(()=>t(S));if(ut===void 0)return;ut.style.setProperty("height","auto");const yt=ut.offsetHeight,It=ut.getBoundingClientRect().height,Et=Math.round(It/c+Number.EPSILON&100)/100;ut.style.removeProperty("height");let rt;Math.abs(Et-yt)<1?rt=Et:rt=yt,_($,rt,!0),ke(()=>{Qt.setHeight({toastId:a().id,height:rt})})});function Ht(){_(gt,!0),_(N,t(ce),!0),Qt.removeHeight(a().id),setTimeout(()=>{Qt.remove(a().id)},yo)}let Jt;const xe=C(()=>a().promise&&t(et)==="loading"||a().duration===Number.POSITIVE_INFINITY);function St(){_(Ft,new Date().getTime(),!0),Jt=setTimeout(()=>{a().onAutoClose?.(a()),Ht()},V)}function Yt(){if(t(ie)<t(Ft)){const c=new Date().getTime()-t(Ft);V=V-c}_(ie,new Date().getTime(),!0)}wt(()=>{a().updated&&(clearTimeout(Jt),V=t(Ct),St())}),wt(()=>(t(xe)||(l()||M()||Kt.current?Yt():St()),()=>clearTimeout(Jt))),ta(()=>{_(at,!0);const c=t(S)?.getBoundingClientRect().height;return _($,c,!0),Qt.setHeight({toastId:a().id,height:c}),()=>{Qt.removeHeight(a().id)}}),wt(()=>{a().delete&&ke(()=>{Ht(),a().onDismiss?.(a())})});const ne=c=>{if(t(pe))return;_(N,t(ce),!0);const ut=c.target;ut.setPointerCapture(c.pointerId),ut.tagName!=="BUTTON"&&(_(dt,!0),Tt={x:c.clientX,y:c.clientY})},Be=()=>{if(t(j)||!t(zt))return;Tt=null;const c=Number(t(S)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),ut=Number(t(S)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),yt=new Date().getTime()-(t(xt)?.getTime()??0),It=t(Q)==="x"?c:ut,Et=Math.abs(It)/yt;if(Math.abs(It)>=_o||Et>.11){_(N,t(ce),!0),a().onDismiss?.(a()),t(Q)==="x"?_(X,c>0?"right":"left",!0):_(X,ut>0?"down":"up",!0),Ht(),_(j,!0);return}else t(S)?.style.setProperty("--swipe-amount-x","0px"),t(S)?.style.setProperty("--swipe-amount-y","0px");_(Y,!1),_(dt,!1),_(Q,null)},Ke=c=>{if(!Tt||!t(zt)||(window.getSelection()?.toString().length??-1)>0)return;const yt=c.clientY-Tt.y,It=c.clientX-Tt.x,Et=ot()??ko(p());!t(Q)&&(Math.abs(It)>1||Math.abs(yt)>1)&&_(Q,Math.abs(It)>Math.abs(yt)?"x":"y",!0);let rt={x:0,y:0};if(t(Q)==="y"){if(Et.includes("top")||Et.includes("bottom"))if(Et.includes("top")&&yt<0||Et.includes("bottom")&&yt>0)rt.y=yt;else{const _t=yt*Ta(yt);rt.y=Math.abs(_t)<Math.abs(yt)?_t:yt}}else if(t(Q)==="x"&&(Et.includes("left")||Et.includes("right")))if(Et.includes("left")&&It<0||Et.includes("right")&&It>0)rt.x=It;else{const _t=It*Ta(It);rt.x=Math.abs(_t)<Math.abs(It)?_t:It}(Math.abs(rt.x)>0||Math.abs(rt.y)>0)&&_(Y,!0),t(S)?.style.setProperty("--swipe-amount-x",`${rt.x}px`),t(S)?.style.setProperty("--swipe-amount-y",`${rt.y}px`)},Me=()=>{_(dt,!1),_(Q,null),Tt=null},Ie=C(()=>a().icon?a().icon:t(et)==="success"?lt():t(et)==="error"?vt():t(et)==="warning"?U():t(et)==="info"?kt():t(et)==="loading"?K():null);var ht=Mo();G(ht,"tabindex",0);let Ue;ht.__pointermove=Ke,ht.__pointerup=Be,ht.__pointerdown=ne;var We=u(ht);{var na=c=>{var ut=To();ut.__click=[Io,pe,zt,Ht,a];var yt=u(ut);Mt(yt,()=>F()??oe),d(ut),tt(It=>{G(ut,"aria-label",y()),G(ut,"data-disabled",t(pe)),Pt(ut,1,It)},[()=>ae(ye(t(o)?.closeButton,a()?.classes?.closeButton))]),n(c,ut)};I(We,c=>{t(ct)&&!a().component&&t(et)!=="loading"&&F()!==null&&c(na)})}var oa=B(We,2);{var ra=c=>{var ut=E();const yt=C(()=>a().component);var It=k(ut);Xt(It,()=>t(yt),(Et,rt)=>{rt(Et,qe(()=>a().componentProps,{closeToast:Ht}))}),n(c,ut)},sa=c=>{var ut=Ao(),yt=k(ut);{var It=J=>{var qt=So(),me=u(qt);{var be=ft=>{var Ut=E(),ee=k(Ut);{var Rt=Wt=>{var le=E(),De=k(le);Xt(De,()=>a().icon,(Ne,Fe)=>{Fe(Ne,{})}),n(Wt,le)},At=Wt=>{r(Wt)};I(ee,Wt=>{a().icon?Wt(Rt):Wt(At,!1)})}n(ft,Ut)};I(me,ft=>{(a().promise||t(et)==="loading")&&ft(be)})}var _e=B(me,2);{var bt=ft=>{var Ut=E(),ee=k(Ut);{var Rt=Wt=>{var le=E(),De=k(le);Xt(De,()=>a().icon,(Ne,Fe)=>{Fe(Ne,{})}),n(Wt,le)},At=Wt=>{var le=E(),De=k(le);{var Ne=Ee=>{var He=E(),ia=k(He);Mt(ia,()=>lt()??oe),n(Ee,He)},Fe=Ee=>{var He=E(),ia=k(He);{var sn=Le=>{var Re=E(),la=k(Re);Mt(la,()=>vt()??oe),n(Le,Re)},ln=Le=>{var Re=E(),la=k(Re);{var dn=Pe=>{var ze=E(),da=k(ze);Mt(da,()=>U()??oe),n(Pe,ze)},cn=Pe=>{var ze=E(),da=k(ze);{var un=ca=>{var _a=E(),fn=k(_a);Mt(fn,()=>kt()??oe),n(ca,_a)};I(da,ca=>{t(et)==="info"&&ca(un)},!0)}n(Pe,ze)};I(la,Pe=>{t(et)==="warning"?Pe(dn):Pe(cn,!1)},!0)}n(Le,Re)};I(ia,Le=>{t(et)==="error"?Le(sn):Le(ln,!1)},!0)}n(Ee,He)};I(De,Ee=>{t(et)==="success"?Ee(Ne):Ee(Fe,!1)},!0)}n(Wt,le)};I(ee,Wt=>{a().icon?Wt(Rt):Wt(At,!1)})}n(ft,Ut)};I(_e,ft=>{a().type!=="loading"&&ft(bt)})}d(qt),tt(ft=>Pt(qt,1,ft),[()=>ae(ye(t(o)?.icon,a()?.classes?.icon))]),n(J,qt)};I(yt,J=>{(t(et)||a().icon||a().promise)&&a().icon!==null&&(t(Ie)!==null||a().icon)&&J(It)})}var Et=B(yt,2),rt=u(Et),_t=u(rt);{var te=J=>{var qt=E(),me=k(qt);{var be=bt=>{var ft=E();const Ut=C(()=>a().title);var ee=k(ft);Xt(ee,()=>t(Ut),(Rt,At)=>{At(Rt,qe(()=>a().componentProps))}),n(bt,ft)},_e=bt=>{var ft=wa();tt(()=>Lt(ft,a().title)),n(bt,ft)};I(me,bt=>{typeof a().title!="string"?bt(be):bt(_e,!1)})}n(J,qt)};I(_t,J=>{a().title&&J(te)})}d(rt);var re=B(rt,2);{var ue=J=>{var qt=Bo(),me=u(qt);{var be=bt=>{var ft=E();const Ut=C(()=>a().description);var ee=k(ft);Xt(ee,()=>t(Ut),(Rt,At)=>{At(Rt,qe(()=>a().componentProps))}),n(bt,ft)},_e=bt=>{var ft=wa();tt(()=>Lt(ft,a().description)),n(bt,ft)};I(me,bt=>{typeof a().description!="string"?bt(be):bt(_e,!1)})}d(qt),tt(bt=>Pt(qt,1,bt),[()=>ae(ye(P(),t(O),t(o)?.description,a().classes?.description))]),n(J,qt)};I(re,J=>{a().description&&J(ue)})}d(Et);var st=B(Et,2);{var pt=J=>{var qt=E(),me=k(qt);{var be=bt=>{var ft=E(),Ut=k(ft);Xt(Ut,()=>a().cancel,(ee,Rt)=>{Rt(ee,{})}),n(bt,ft)},_e=bt=>{var ft=E(),Ut=k(ft);{var ee=Rt=>{var At=Lo();At.__click=[Eo,a,zt,Ht];var Wt=u(At,!0);d(At),tt(le=>{Se(At,a().cancelButtonStyle??x()),Pt(At,1,le),Lt(Wt,a().cancel.label)},[()=>ae(ye(t(o)?.cancelButton,a()?.classes?.cancelButton))]),n(Rt,At)};I(Ut,Rt=>{$e(a().cancel)&&Rt(ee)},!0)}n(bt,ft)};I(me,bt=>{typeof a().cancel=="function"?bt(be):bt(_e,!1)})}n(J,qt)};I(st,J=>{a().cancel&&J(pt)})}var Ot=B(st,2);{var fe=J=>{var qt=E(),me=k(qt);{var be=bt=>{var ft=E(),Ut=k(ft);Xt(Ut,()=>a().action,(ee,Rt)=>{Rt(ee,{})}),n(bt,ft)},_e=bt=>{var ft=E(),Ut=k(ft);{var ee=Rt=>{var At=Oo();At.__click=[Po,a,Ht];var Wt=u(At,!0);d(At),tt(le=>{Se(At,a().actionButtonStyle??A()),Pt(At,1,le),Lt(Wt,a().action.label)},[()=>ae(ye(t(o)?.actionButton,a()?.classes?.actionButton))]),n(Rt,At)};I(Ut,Rt=>{$e(a().action)&&Rt(ee)},!0)}n(bt,ft)};I(me,bt=>{typeof a().action=="function"?bt(be):bt(_e,!1)})}n(J,qt)};I(Ot,J=>{a().action&&J(fe)})}tt(J=>Pt(rt,1,J),[()=>ae(ye(t(o)?.title,a()?.classes?.title))]),n(c,ut)};I(oa,c=>{a().component?c(ra):c(sa,!1)})}return d(ht),Gt(ht,c=>_(S,c),()=>t(S)),tt((c,ut,yt,It)=>{Pt(ht,1,c),G(ht,"data-rich-colors",a().richColors??W()),G(ht,"data-styled",!(a().component||a().unstyled||it())),G(ht,"data-mounted",t(at)),G(ht,"data-promise",ut),G(ht,"data-swiped",t(Y)),G(ht,"data-removed",t(gt)),G(ht,"data-visible",t(Z)),G(ht,"data-y-position",t(se)[0]),G(ht,"data-x-position",t(se)[1]),G(ht,"data-index",i()),G(ht,"data-front",t(q)),G(ht,"data-swiping",t(dt)),G(ht,"data-dismissable",t(zt)),G(ht,"data-type",t(et)),G(ht,"data-invert",t(ge)),G(ht,"data-swipe-out",t(j)),G(ht,"data-swipe-direction",t(X)),G(ht,"data-expanded",yt),Ue=Se(ht,`${e.style} ${a().style}`,Ue,It)},[()=>ae(ye(e.class,t(Zt),t(o)?.toast,a()?.classes?.toast,t(o)?.[t(et)],a()?.classes?.[t(et)])),()=>!!a().promise,()=>!!(l()||b()&&t(at)),()=>({"--index":i(),"--toasts-before":i(),"--z-index":Qt.toasts.length-i(),"--offset":`${t(gt)?t(N):t(ce)}px`,"--initial-height":b()?"auto":`${t($)}px`})]),ve("dragend",ht,Me),n(h,ht),Nt({get toast(){return a()},set toast(c){a(c),f()},get index(){return i()},set index(c){i(c),f()},get expanded(){return l()},set expanded(c){l(c),f()},get invert(){return g()},set invert(c){g(c),f()},get position(){return p()},set position(c){p(c),f()},get visibleToasts(){return w()},set visibleToasts(c){w(c),f()},get expandByDefault(){return b()},set expandByDefault(c){b(c),f()},get closeButton(){return D()},set closeButton(c){D(c),f()},get interacting(){return M()},set interacting(c){M(c),f()},get cancelButtonStyle(){return x()},set cancelButtonStyle(c=""){x(c),f()},get actionButtonStyle(){return A()},set actionButtonStyle(c=""){A(c),f()},get duration(){return m()},set duration(c){m(c),f()},get descriptionClass(){return P()},set descriptionClass(c=""){P(c),f()},get classes(){return z()},set classes(c){z(c),f()},get unstyled(){return it()},set unstyled(c=!1){it(c),f()},get loadingIcon(){return K()},set loadingIcon(c){K(c),f()},get successIcon(){return lt()},set successIcon(c){lt(c),f()},get errorIcon(){return vt()},set errorIcon(c){vt(c),f()},get warningIcon(){return U()},set warningIcon(c){U(c),f()},get closeIcon(){return F()},set closeIcon(c){F(c),f()},get infoIcon(){return kt()},set infoIcon(c){kt(c),f()},get defaultRichColors(){return W()},set defaultRichColors(c=!1){W(c),f()},get swipeDirections(){return ot()},set swipeDirections(c){ot(c),f()},get closeButtonAriaLabel(){return y()},set closeButtonAriaLabel(c){y(c),f()}})}ea(["pointermove","pointerup","pointerdown","click"]);Bt(Ra,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{}},[],[],!0);var Do=je('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function za(h){var e=Do();n(h,e)}Bt(za,{},[],[],!0);var No=je('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function Ya(h){var e=No();n(h,e)}Bt(Ya,{},[],[],!0);var Fo=je('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function qa(h){var e=Fo();n(h,e)}Bt(qa,{},[],[],!0);var Ho=je('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function ja(h){var e=Ho();n(h,e)}Bt(ja,{},[],[],!0);var Ro=je('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function Va(h){var e=Ro();n(h,e)}Bt(Va,{},[],[],!0);const Sa=3,va="24px",ga="16px",Ba=4e3,zo=356,Ea=14,ua="dark",Xe="light";function Yo(h,e){const r={};return[h,e].forEach((a,i)=>{const l=i===1,g=l?"--mobile-offset":"--offset",p=l?ga:va;function w(b){["top","right","bottom","left"].forEach(D=>{r[`${g}-${D}`]=typeof b=="number"?`${b}px`:b})}typeof a=="number"||typeof a=="string"?w(a):typeof a=="object"?["top","right","bottom","left"].forEach(b=>{const D=a[b];D===void 0?r[`${g}-${b}`]=p:r[`${g}-${b}`]=typeof D=="number"?`${D}px`:D}):w(p)}),r}var qo=T("<ol></ol>"),jo=T('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-214svo"><!></section>');const Vo={hash:"svelte-214svo",code:`html[dir='ltr'],
2
2
  [data-sonner-toaster][dir='ltr'] {--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%);}html[dir='rtl'],
3
3
  [data-sonner-toaster][dir='rtl'] {--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%);}[data-sonner-toaster] {position:fixed;width:var(--width);font-family:ui-sans-serif,
4
4
  system-ui,
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.B1_BHoHM.js","../chunks/C8ORMuNm.js","../chunks/NZTpNUN0.js","../chunks/PaGpozZ3.js","../chunks/UUVzZ2eQ.js","../nodes/1.Qf-3txMY.js","../chunks/KwlzJn94.js","../chunks/Bwlnp1Fv.js","../chunks/CjlIFGQR.js","../chunks/CUA2mQrz.js","../nodes/2.QF2vvVAB.js","../chunks/Cg1M8nhR.js","../chunks/DShclvIF.js","../nodes/3.y9o-F-NC.js","../chunks/bzMFxNOM.js","../chunks/DEfNJr1d.js"])))=>i.map(i=>d[i]);
2
- import{i as x,c as O,b as D,_ as E}from"../chunks/Cg1M8nhR.js";import{c as K,p as Q,I as U,u as W,G as i,P as I,T as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,N as T,H as w,e as $,r as tt,a8 as et,t as rt,g as at,a9 as st}from"../chunks/PaGpozZ3.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/CjlIFGQR.js";import{p as u}from"../chunks/UUVzZ2eQ.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),_=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(_())),W(()=>{m(),_(),o(),r(),d(),f(),b(),m().page.notify()});let y=I(!1),A=I(!1),L=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(A,!0),X().then(()=>{R(L,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=w(()=>o()[1]);var V=it(),k=P(V);{var M=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params},children:(h,mt)=>{var j=T(),z=P(j);O(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return d()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},N=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};x(k,t=>{o()[1]?t(M):t(N,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(L))),p(n,l)};x(v,n=>{i(A)&&n(g)})}tt(a),p(t,a)};x(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return _()},set page(t){_(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}K(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.B1_BHoHM.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.Qf-3txMY.js"),__vite__mapDeps([5,2,6,3,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.QF2vvVAB.js"),__vite__mapDeps([10,11,3,2,12,4,8,1,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.y9o-F-NC.js"),__vite__mapDeps([13,2,4,3,12,11,8,1,7,14,6,9,15]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DMFk0iPH.js","../chunks/B6FwuxF-.js","../chunks/NZTpNUN0.js","../chunks/PaGpozZ3.js","../chunks/UUVzZ2eQ.js","../nodes/1.Dc_xA0Gn.js","../chunks/DzvSdHYT.js","../chunks/BXEdQL9F.js","../chunks/CjlIFGQR.js","../chunks/CUA2mQrz.js","../nodes/2.DlerhEWH.js","../chunks/Cg1M8nhR.js","../chunks/CKh0DCID.js","../nodes/3.BMx6bP8s.js","../chunks/w58EqJ4L.js","../chunks/C7PQ7vvk.js"])))=>i.map(i=>d[i]);
2
+ import{i as x,c as O,b as D,_ as E}from"../chunks/Cg1M8nhR.js";import{c as K,p as Q,I as U,u as W,G as i,P as I,T as R,D as X,f as C,a as P,s as Y,b as p,d as Z,v as c,N as T,H as w,e as $,r as tt,a8 as et,t as rt,g as at,a9 as st}from"../chunks/PaGpozZ3.js";import"../chunks/NZTpNUN0.js";import{o as ot}from"../chunks/CjlIFGQR.js";import{p as u}from"../chunks/UUVzZ2eQ.js";const vt={};var nt=C('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),it=C("<!> <!>",1);function G(s,e){Q(e,!0);let m=u(e,"stores",7),_=u(e,"page",7),o=u(e,"constructors",7),r=u(e,"components",23,()=>[]),d=u(e,"form",7),f=u(e,"data_0",7,null),b=u(e,"data_1",7,null);U(()=>m().page.set(_())),W(()=>{m(),_(),o(),r(),d(),f(),b(),m().page.notify()});let y=I(!1),A=I(!1),L=I(null);ot(()=>{const t=m().page.subscribe(()=>{i(y)&&(R(A,!0),X().then(()=>{R(L,document.title||"untitled page",!0)}))});return R(y,!0),t});const H=w(()=>o()[1]);var V=it(),k=P(V);{var M=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params},children:(h,mt)=>{var j=T(),z=P(j);O(z,()=>i(H),(B,F)=>{D(F(B,{get data(){return b()},get form(){return d()}}),J=>r()[1]=J,()=>r()?.[1])}),p(h,j)},$$slots:{default:!0}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)},N=t=>{var a=T();const v=w(()=>o()[0]);var g=P(a);O(g,()=>i(v),(n,l)=>{D(l(n,{get data(){return f()},get form(){return d()},get params(){return _().params}}),h=>r()[0]=h,()=>r()?.[0])}),p(t,a)};x(k,t=>{o()[1]?t(M):t(N,!1)})}var S=Y(k,2);{var q=t=>{var a=nt(),v=$(a);{var g=n=>{var l=et();rt(()=>at(l,i(L))),p(n,l)};x(v,n=>{i(A)&&n(g)})}tt(a),p(t,a)};x(S,t=>{i(y)&&t(q)})}return p(s,V),Z({get stores(){return m()},set stores(t){m(t),c()},get page(){return _()},set page(t){_(t),c()},get constructors(){return o()},set constructors(t){o(t),c()},get components(){return r()},set components(t=[]){r(t),c()},get form(){return d()},set form(t){d(t),c()},get data_0(){return f()},set data_0(t=null){f(t),c()},get data_1(){return b()},set data_1(t=null){b(t),c()}})}K(G,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],!0);const gt=st(G),ht=[()=>E(()=>import("../nodes/0.DMFk0iPH.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.Dc_xA0Gn.js"),__vite__mapDeps([5,2,6,3,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.DlerhEWH.js"),__vite__mapDeps([10,11,3,2,12,4,8,1,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.BMx6bP8s.js"),__vite__mapDeps([13,2,4,3,12,11,8,1,7,14,6,9,15]),import.meta.url)],bt=[],Et={"/":[2],"/sidebar":[3]},ct={handleError:({error:s})=>{console.error(s)},reroute:()=>{},transport:{}},ut=Object.fromEntries(Object.entries(ct.transport).map(([s,e])=>[s,e.decode])),Pt=!1,yt=(s,e)=>ut[s](e);export{yt as decode,ut as decoders,Et as dictionary,Pt as hash,ct as hooks,vt as matchers,ht as nodes,gt as root,bt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/BXEdQL9F.js";export{o as load_css,r as start};
@@ -1,4 +1,4 @@
1
- import{P as s}from"../chunks/C8ORMuNm.js";import"../chunks/NZTpNUN0.js";import{c as r,p as l,N as c,a as u,Q as p,b as d,d as h,v as f}from"../chunks/PaGpozZ3.js";import{p as g}from"../chunks/UUVzZ2eQ.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),m=["baselcitygpt"],y=async()=>{const t=await v().catch(e=>(console.error("Error fetching org names:",e),[]));t.push("liipgpt");const i=t.map(e=>m.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(i)},b=`/**
1
+ import{P as s}from"../chunks/B6FwuxF-.js";import"../chunks/NZTpNUN0.js";import{c as r,p as l,N as c,a as u,Q as p,b as d,d as h,v as f}from"../chunks/PaGpozZ3.js";import{p as g}from"../chunks/UUVzZ2eQ.js";const v=async()=>await(await fetch("https://liipgpt.api.dev.genai.liip.ch/configurator/api/all-org-names")).json(),m=["baselcitygpt"],y=async()=>{const t=await v().catch(e=>(console.error("Error fetching org names:",e),[]));t.push("liipgpt");const i=t.map(e=>m.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.api.dev.genai.liip.ch/${e}`,prod:`https://${e}.api.prod.genai.liip.ch/${e}`}]);return Object.fromEntries(i)},b=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -1 +1 @@
1
- import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/KwlzJn94.js";import{c,p as h,f as l,a as u,t as _,b as v,d as g,e as s,r as o,s as d,g as p}from"../chunks/PaGpozZ3.js";import{i as x}from"../chunks/CUA2mQrz.js";var b=l("<h1> </h1> <p> </p>",1);function E(m,i){h(i,!1),x();var r=b(),t=u(r),f=s(t,!0);o(t);var a=d(t,2),n=s(a,!0);o(a),_(()=>{p(f,e.status),p(n,e.error?.message)}),v(m,r),g()}c(E,{},[],[],!0);export{E as component};
1
+ import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/DzvSdHYT.js";import{c,p as h,f as l,a as u,t as _,b as v,d as g,e as s,r as o,s as d,g as p}from"../chunks/PaGpozZ3.js";import{i as x}from"../chunks/CUA2mQrz.js";var b=l("<h1> </h1> <p> </p>",1);function E(m,i){h(i,!1),x();var r=b(),t=u(r),f=s(t,!0);o(t);var a=d(t,2),n=s(a,!0);o(a),_(()=>{p(f,e.status),p(n,e.error?.message)}),v(m,r),g()}c(E,{},[],[],!0);export{E as component};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/Dzs3iOAP.js","../chunks/NZTpNUN0.js","../chunks/PaGpozZ3.js","../chunks/UUVzZ2eQ.js","../chunks/bzMFxNOM.js","../chunks/CjlIFGQR.js","../chunks/Cg1M8nhR.js","../chunks/DShclvIF.js","../chunks/C8ORMuNm.js","../chunks/Bwlnp1Fv.js","../chunks/KwlzJn94.js","../chunks/CUA2mQrz.js","../chunks/DEfNJr1d.js","../chunks/BHyoBcMB.js","../chunks/tg4KZpKp.js"])))=>i.map(i=>d[i]);
2
- import{i as f,_ as Dt,b as Ft}from"../chunks/Cg1M8nhR.js";import"../chunks/NZTpNUN0.js";import{c as ie,p as Re,f as p,s as e,e as a,t as R,b as r,d as je,v as ve,r as t,g as Ge,S as B,u as ae,o as ha,aE as jt,N as A,a as P,G as i,H as M,aC as ma,aF as Fe,P as Mt,aG as At,O as ga,T as Ht}from"../chunks/PaGpozZ3.js";import{a as me,s as O,l as Jt,m as ba,j as m,n as wa,A as fa,e as ee,i as te,I as ue,o as _a,C as Gt,t as ya,p as xa,S as s,q as qa,P as Me,R as Ae,r as He,N as ka,u as Sa,v as Ia,w as La,c as Ta,x as za,M as Ca,h as Oe,y as Ba,z as Ot,D as Rt,E as Pa,F as Ea}from"../chunks/DShclvIF.js";import{p as pe,s as Da,r as Fa}from"../chunks/UUVzZ2eQ.js";import{g as Ma}from"../chunks/Bwlnp1Fv.js";import{p as Aa}from"../chunks/KwlzJn94.js";var Ha=p('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const Ga={hash:"svelte-18q4g20",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-18q4g20 {opacity:1;}}.swatch__color.svelte-18q4g20 {aspect-ratio:1;width:100%;}.swatch__label.svelte-18q4g20 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/3Jx_2Hd6.js","../chunks/NZTpNUN0.js","../chunks/PaGpozZ3.js","../chunks/UUVzZ2eQ.js","../chunks/w58EqJ4L.js","../chunks/CjlIFGQR.js","../chunks/Cg1M8nhR.js","../chunks/CKh0DCID.js","../chunks/B6FwuxF-.js","../chunks/BXEdQL9F.js","../chunks/DzvSdHYT.js","../chunks/CUA2mQrz.js","../chunks/C7PQ7vvk.js","../chunks/CCVb_64a.js","../chunks/Bjule0iI.js"])))=>i.map(i=>d[i]);
2
+ import{i as f,_ as Dt,b as Ft}from"../chunks/Cg1M8nhR.js";import"../chunks/NZTpNUN0.js";import{c as ie,p as Re,f as p,s as e,e as a,t as R,b as r,d as je,v as ve,r as t,g as Ge,S as B,u as ae,o as ha,aE as jt,N as A,a as P,G as i,H as M,aC as ma,aF as Fe,P as Mt,aG as At,O as ga,T as Ht}from"../chunks/PaGpozZ3.js";import{a as me,s as O,l as Jt,m as ba,j as m,n as wa,A as fa,e as ee,i as te,I as ue,o as _a,C as Gt,t as ya,p as xa,S as s,q as qa,P as Me,R as Ae,r as He,N as ka,u as Sa,v as Ia,w as La,c as Ta,x as za,M as Ca,h as Oe,y as Ba,z as Ot,D as Rt,E as Pa,F as Ea}from"../chunks/CKh0DCID.js";import{p as pe,s as Da,r as Fa}from"../chunks/UUVzZ2eQ.js";import{g as Ma}from"../chunks/BXEdQL9F.js";import{p as Aa}from"../chunks/DzvSdHYT.js";var Ha=p('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const Ga={hash:"svelte-18q4g20",code:`.swatch {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;overflow:hidden;border:1px solid var(--base-line-color);border-radius:var(--card-border-radius);&:hover .swatch__label.svelte-18q4g20 {opacity:1;}}.swatch__color.svelte-18q4g20 {aspect-ratio:1;width:100%;}.swatch__label.svelte-18q4g20 {display:none;width:100%;padding:6px;background:white;color:black;font-size:10px;transition:opacity 0.2s ease;
3
3
 
4
4
  @media (min-width: 768px) {display:block;
5
5
  }}`};function he(_,u){Re(u,!1),me(_,Ga);let L=pe(u,"name",12),n=pe(u,"key",12),H=pe(u,"value",12);var y=Ha(),j=a(y),J=e(j,2),Y=a(J,!0);return t(J),t(y),R(()=>{O(y,"title",`Color ${n()}: ${H()}`),Jt(j,`background-color: var(--color-${L()??""}-${n()??""});`),Ge(Y,n())}),r(_,y),je({get name(){return L()},set name(T){L(T),ve()},get key(){return n()},set key(T){n(T),ve()},get value(){return H()},set value(T){H(T),ve()}})}ie(he,{name:{},key:{},value:{}},[],[],!0);var Oa=p('<ol><li class="toast" data-type="error"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Error notification</div></div></li> <li class="toast" data-type="warning"><div data-icon=""><svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg></div> <div data-content=""><div data-title="">Warning notification</div></div></li> <li class="toast" data-type="success"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon="" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Success notification</div></div></li> <li class="toast" data-type="info"><div data-icon=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg></div> <div data-content=""><div data-title="">Info notification</div></div></li></ol>');function Ut(_){var u=Oa();r(_,u)}ie(Ut,{},[],[],!0);var Ra=p(`<h1>Title h1</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <em>Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus.</em> <strong>Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. <a href="https://www.google.com">Check it on google</a> . Sed sed enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <p class="text-sm svelte-128qu17">Text-sm: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
@@ -28,4 +28,4 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
28
28
  body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-1fwcoxh {flex-shrink:0;width:378px;height:100%;border:none;}#preview.svelte-1fwcoxh {display:flex;align-items:flex-start;justify-content:flex-start;width:100%;height:100%;&.components-preview,
29
29
  &:has(.has-bg-image:where(.svelte-1fwcoxh)) {height:auto;& #sidebar:where(.svelte-1fwcoxh) {position:sticky;top:0;height:100vh;}}}#chat-wrapper.svelte-1fwcoxh {container-name:preview-container;
30
30
  /* stylelint-disable-next-line property-disallowed-list */container-type:size;width:100%;height:100%;}#chat-wrapper.svelte-1fwcoxh liipgpt-chat {display:block;width:100%;height:100%;}#chat-wrapper.has-bg-image.svelte-1fwcoxh {
31
- /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1fwcoxh {display:block;width:100%;height:auto;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}`};function si(_,u){Re(u,!0),me(_,ni);let L=Fa(u,["$$slots","$$events","$$legacy","$$host"]),n=M(()=>u.data);ae(()=>{window.onmessage=function(o){if(typeof o.data=="string"&&o.data.startsWith("liipgpt-url:")){const d=new URLSearchParams(o.data.replace("liipgpt-url:",""));Ma("?"+d.toString(),{replaceState:!0})}}});const H=o=>`/build/${o}/liipgpt-${o}.iife.js`,y=o=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(o),j=async o=>{o==="build"&&(await import(H("chat")),await import(H("button"))),o==="dev"&&(await Dt(()=>import("../chunks/Dzs3iOAP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Dt(()=>import("../chunks/tg4KZpKp.js"),__vite__mapDeps([14,1,2,3,13,6,7,5,8,9,12]),import.meta.url)),o==="server"&&(import(Ot(u.data.options,"chat")),import(Ot(u.data.options,"button")))};let J="server",Y=M(()=>u.data.options?.["preview-mode"]?.value??J);ae(()=>{j(i(Y))});const T=`./sidebar${Aa.url.search}`;let U=Mt(void 0),N=Mt(void 0);const ne=(o,d)=>{const x=document.createElement("script"),E=document.createTextNode(`{${d}}`);x.appendChild(E),o.replaceChildren(x)};ae(()=>{i(U)&&ne(i(U),i(n).options.CHAT_CONFIG_OVERRIDE.value||"")}),ae(()=>{i(N)&&ne(i(N),i(n).options.onclosechat.value||"")});const se=M(()=>i(n)&&i(n).options["show-components"].value);var W=ii();jt(o=>{var d=A(),x=P(d);{var E=q=>{var g=A(),b=P(g);{var k=I=>{At.title="LiipGPT Configurator | Components"},S=I=>{At.title="LiipGPT Configurator"};f(b,I=>{i(n).options["show-components"].value?I(k):I(S,!1)},!0)}r(q,g)};f(x,q=>{q(E,!1)})}r(o,d)});var oe=a(W);{var l=o=>{var d=ei();R(()=>O(d,"src",T)),r(o,d)};f(oe,o=>{i(n).options["hide-sidebar"].value||o(l)})}var v=e(oe,2);Ba(v,()=>i(n),o=>{var d=A(),x=P(d);{var E=g=>{var b=A(),k=P(b);ga(k,{onerror:S=>console.error("Rendering error of components",S)},S=>{$t(S,Da(()=>L))}),r(g,b)},q=g=>{var b=ai();let k;var S=a(b);{var I=z=>{var K=A(),X=P(K);{var le=V=>{var de=ti();R(()=>O(de,"src",i(n).options["preview-background"].value)),r(V,de)};f(X,V=>{y(i(n).options["preview-background"].value)&&V(le)})}r(z,K)};f(S,z=>{i(n).options.flyout.value&&i(n).options["preview-background"].value&&z(I)})}var G=e(S,2);Ft(G,z=>Ht(U,z),()=>i(U));var D=e(G,2);Oe(D,()=>Pa(i(n).options));var re=e(D,2);Ft(re,z=>Ht(N,z),()=>i(N)),t(b),R(z=>k=Rt(b,1,"svelte-1fwcoxh",null,k,z),[()=>({"has-bg-image":i(n).options.flyout.value&&i(n).options["preview-background"].value&&y(i(n).options["preview-background"].value)})]),r(g,b)};f(x,g=>{i(se)?g(E):g(q,!1)})}r(o,d)}),t(W),R(()=>Rt(W,1,Ea([{"components-preview":i(se)}]),"svelte-1fwcoxh")),r(_,W),je()}ie(si,{},[],[],!0);export{si as component};
31
+ /* stylelint-disable-next-line property-disallowed-list */container-type:inline-size;height:auto;min-height:100%;}.preview-bg-image.svelte-1fwcoxh {display:block;width:100%;height:auto;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}`};function si(_,u){Re(u,!0),me(_,ni);let L=Fa(u,["$$slots","$$events","$$legacy","$$host"]),n=M(()=>u.data);ae(()=>{window.onmessage=function(o){if(typeof o.data=="string"&&o.data.startsWith("liipgpt-url:")){const d=new URLSearchParams(o.data.replace("liipgpt-url:",""));Ma("?"+d.toString(),{replaceState:!0})}}});const H=o=>`/build/${o}/liipgpt-${o}.iife.js`,y=o=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(o),j=async o=>{o==="build"&&(await import(H("chat")),await import(H("button"))),o==="dev"&&(await Dt(()=>import("../chunks/3Jx_2Hd6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Dt(()=>import("../chunks/Bjule0iI.js"),__vite__mapDeps([14,1,2,3,13,6,7,5,8,9,12]),import.meta.url)),o==="server"&&(import(Ot(u.data.options,"chat")),import(Ot(u.data.options,"button")))};let J="server",Y=M(()=>u.data.options?.["preview-mode"]?.value??J);ae(()=>{j(i(Y))});const T=`./sidebar${Aa.url.search}`;let U=Mt(void 0),N=Mt(void 0);const ne=(o,d)=>{const x=document.createElement("script"),E=document.createTextNode(`{${d}}`);x.appendChild(E),o.replaceChildren(x)};ae(()=>{i(U)&&ne(i(U),i(n).options.CHAT_CONFIG_OVERRIDE.value||"")}),ae(()=>{i(N)&&ne(i(N),i(n).options.onclosechat.value||"")});const se=M(()=>i(n)&&i(n).options["show-components"].value);var W=ii();jt(o=>{var d=A(),x=P(d);{var E=q=>{var g=A(),b=P(g);{var k=I=>{At.title="LiipGPT Configurator | Components"},S=I=>{At.title="LiipGPT Configurator"};f(b,I=>{i(n).options["show-components"].value?I(k):I(S,!1)},!0)}r(q,g)};f(x,q=>{q(E,!1)})}r(o,d)});var oe=a(W);{var l=o=>{var d=ei();R(()=>O(d,"src",T)),r(o,d)};f(oe,o=>{i(n).options["hide-sidebar"].value||o(l)})}var v=e(oe,2);Ba(v,()=>i(n),o=>{var d=A(),x=P(d);{var E=g=>{var b=A(),k=P(b);ga(k,{onerror:S=>console.error("Rendering error of components",S)},S=>{$t(S,Da(()=>L))}),r(g,b)},q=g=>{var b=ai();let k;var S=a(b);{var I=z=>{var K=A(),X=P(K);{var le=V=>{var de=ti();R(()=>O(de,"src",i(n).options["preview-background"].value)),r(V,de)};f(X,V=>{y(i(n).options["preview-background"].value)&&V(le)})}r(z,K)};f(S,z=>{i(n).options.flyout.value&&i(n).options["preview-background"].value&&z(I)})}var G=e(S,2);Ft(G,z=>Ht(U,z),()=>i(U));var D=e(G,2);Oe(D,()=>Pa(i(n).options));var re=e(D,2);Ft(re,z=>Ht(N,z),()=>i(N)),t(b),R(z=>k=Rt(b,1,"svelte-1fwcoxh",null,k,z),[()=>({"has-bg-image":i(n).options.flyout.value&&i(n).options["preview-background"].value&&y(i(n).options["preview-background"].value)})]),r(g,b)};f(x,g=>{i(se)?g(E):g(q,!1)})}r(o,d)}),t(W),R(()=>Rt(W,1,Ea([{"components-preview":i(se)}]),"svelte-1fwcoxh")),r(_,W),je()}ie(si,{},[],[],!0);export{si as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/UUVzZ2eQ.js";import{R as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,S as bo,t as Ue,G as Ne,P as Vi,g as ot,b as $e,d as Xt,v as nt,T as uo,N as fo,a as Zt,aH as Ni,aE as Oi,aI as Fi,H as po,aF as Wi}from"../chunks/PaGpozZ3.js";import{D as ho,G as mo,s as He,H as go,e as yo,i as Ui,J as Di,K as Bi,n as Li,L as Mi,a as Ii,E as Ri}from"../chunks/DShclvIF.js";import"../chunks/bzMFxNOM.js";import{b as Hi,i as rt}from"../chunks/Cg1M8nhR.js";import{g as qi}from"../chunks/Bwlnp1Fv.js";import{p as Pi}from"../chunks/KwlzJn94.js";var vo={},wo;function Yi(){return wo||(wo=1,(()=>{var O="4.1.5",M=92,D=47,_=42,re=34,be=39,I=58,ie=59,J=10,X=32,ne=9,P=123,Z=125,G=40,ge=41,we=91,ye=93,de=45,xe=64,qe=33;function fe(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
1
+ import"../chunks/NZTpNUN0.js";import{p as it,s as Ei,r as _i}from"../chunks/UUVzZ2eQ.js";import{R as ko,c as Tt,p as Gt,f as Se,s as De,e as ve,r as me,S as bo,t as Ue,G as Ne,P as Vi,g as ot,b as $e,d as Xt,v as nt,T as uo,N as fo,a as Zt,aH as Ni,aE as Oi,aI as Fi,H as po,aF as Wi}from"../chunks/PaGpozZ3.js";import{D as ho,G as mo,s as He,H as go,e as yo,i as Ui,J as Di,K as Bi,n as Li,L as Mi,a as Ii,E as Ri}from"../chunks/CKh0DCID.js";import"../chunks/w58EqJ4L.js";import{b as Hi,i as rt}from"../chunks/Cg1M8nhR.js";import{g as qi}from"../chunks/BXEdQL9F.js";import{p as Pi}from"../chunks/DzvSdHYT.js";var vo={},wo;function Yi(){return wo||(wo=1,(()=>{var O="4.1.5",M=92,D=47,_=42,re=34,be=39,I=58,ie=59,J=10,X=32,ne=9,P=123,Z=125,G=40,ge=41,we=91,ye=93,de=45,xe=64,qe=33;function fe(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
2
2
  `,`
3
3
  `);let r=[],o=[],t=[],i=null,c=null,s="",u="",l;for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);if(m===M)s+=e.slice(p,p+2),p+=1;else if(m===D&&e.charCodeAt(p+1)===_){let h=p;for(let w=p+2;w<e.length;w++)if(l=e.charCodeAt(w),l===M)w+=1;else if(l===_&&e.charCodeAt(w+1)===D){p=w+1;break}let v=e.slice(h,p+1);v.charCodeAt(2)===qe&&o.push(sr(v.slice(2,-2)))}else if(m===be||m===re){let h=p;for(let v=p+1;v<e.length;v++)if(l=e.charCodeAt(v),l===M)v+=1;else if(l===m){p=v;break}else{if(l===ie&&e.charCodeAt(v+1)===J)throw new Error(`Unterminated string: ${e.slice(h,v+1)+String.fromCharCode(m)}`);if(l===J)throw new Error(`Unterminated string: ${e.slice(h,v)+String.fromCharCode(m)}`)}s+=e.slice(h,p+1)}else{if((m===X||m===J||m===ne)&&(l=e.charCodeAt(p+1))&&(l===X||l===J||l===ne))continue;if(m===J){if(s.length===0)continue;l=s.charCodeAt(s.length-1),l!==X&&l!==J&&l!==ne&&(s+=" ")}else if(m===de&&e.charCodeAt(p+1)===de&&s.length===0){let h="",v=p,w=-1;for(let b=p+2;b<e.length;b++)if(l=e.charCodeAt(b),l===M)b+=1;else if(l===D&&e.charCodeAt(b+1)===_){for(let A=b+2;A<e.length;A++)if(l=e.charCodeAt(A),l===M)A+=1;else if(l===_&&e.charCodeAt(A+1)===D){b=A+1;break}}else if(w===-1&&l===I)w=s.length+b-v;else if(l===ie&&h.length===0){s+=e.slice(v,b),p=b;break}else if(l===G)h+=")";else if(l===we)h+="]";else if(l===P)h+="}";else if((l===Z||e.length-1===b)&&h.length===0){p=b-1,s+=e.slice(v,b);break}else(l===ge||l===ye||l===Z)&&h.length>0&&e[b]===h[h.length-1]&&(h=h.slice(0,-1));let k=Oe(s,w);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):r.push(k),s=""}else if(m===ie&&s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else if(m===ie&&u[u.length-1]!==")"){let h=Oe(s);if(!h)throw s.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${s.trim()}\``);i?i.nodes.push(h):r.push(h),s=""}else if(m===P&&u[u.length-1]!==")")u+="}",c=ae(s.trim()),i&&i.nodes.push(c),t.push(i),i=c,s="",c=null;else if(m===Z&&u[u.length-1]!==")"){if(u==="")throw new Error("Missing opening {");if(u=u.slice(0,-1),s.length>0)if(s.charCodeAt(0)===xe)c=Ke(s),i?i.nodes.push(c):r.push(c),s="",c=null;else{let v=s.indexOf(":");if(i){let w=Oe(s,v);if(!w)throw new Error(`Invalid declaration: \`${s.trim()}\``);i.nodes.push(w)}}let h=t.pop()??null;h===null&&i&&r.push(i),i=h,s="",c=null}else if(m===G)u+=")",s+="(";else if(m===ge){if(u[u.length-1]!==")")throw new Error("Missing opening (");u=u.slice(0,-1),s+=")"}else{if(s.length===0&&(m===X||m===J||m===ne))continue;s+=String.fromCharCode(m)}}}if(s.charCodeAt(0)===xe&&r.push(Ke(s)),u.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return o.length>0?o.concat(r):r}function Ke(e,r=[]){for(let o=5;o<e.length;o++){let t=e.charCodeAt(o);if(t===X||t===G){let i=e.slice(0,o).trim(),c=e.slice(o).trim();return R(i,c,r)}}return R(e.trim(),"",r)}function Oe(e,r=e.indexOf(":")){if(r===-1)return null;let o=e.indexOf("!important",r+1);return n(e.slice(0,r).trim(),e.slice(r+1,o===-1?e.length:o).trim(),o!==-1)}function je(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),o=r.length,t=-1,i,c="",s=r.charCodeAt(0);if(o===1&&s===45)return"\\"+r;for(;++t<o;){if(i=r.charCodeAt(t),i===0){c+="�";continue}if(i>=1&&i<=31||i===127||t===0&&i>=48&&i<=57||t===1&&i>=48&&i<=57&&s===45){c+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){c+=r.charAt(t);continue}c+="\\"+r.charAt(t)}return c}function pe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Ae=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function st(e,r){return(Ae.get(r)??[]).some(o=>e===o||e.startsWith(`${o}-`))}var Ct=class{constructor(e=new Map,r=new Set([])){this.values=e,this.keyframes=r}prefix=null;add(e,r,o=0){if(e.endsWith("-*")){if(r!=="initial")throw new Error(`Invalid theme value \`${r}\` for namespace \`${e}\``);e==="--*"?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(o&4){let t=this.values.get(e);if(t&&!(t.options&4))return}r==="initial"?this.values.delete(e):this.values.set(e,{value:r,options:o})}keysInNamespaces(e){let r=[];for(let o of e){let t=`${o}-`;for(let i of this.values.keys())i.startsWith(t)&&i.indexOf("--",2)===-1&&(st(i,o)||r.push(i.slice(t.length)))}return r}get(e){for(let r of e){let o=this.values.get(r);if(o)return o.value}return null}hasDefault(e){return(this.getOptions(e)&4)===4}getOptions(e){return e=pe(this.#r(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#r(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,r){let o=Ae.get(e)??[];e:for(let t of this.values.keys())if(t.startsWith(e)){if(r!==0&&(this.getOptions(t)&r)!==r)continue;for(let i of o)if(t.startsWith(i))continue e;this.values.delete(t)}}#e(e,r){for(let o of r){let t=e!==null?`${o}-${e}`:o;if(!this.values.has(t))if(e!==null&&e.includes(".")){if(t=`${o}-${e.replaceAll(".","_")}`,!this.values.has(t))continue}else continue;if(!st(t,o))return t}return null}#t(e){let r=this.values.get(e);if(!r)return null;let o=null;return r.options&2&&(o=r.value),`var(${je(this.prefixKey(e))}${o?`, ${o}`:""})`}markUsedVariable(e){let r=pe(this.#r(e)),o=this.values.get(r);if(!o)return!1;let t=o.options&16;return o.options|=16,!t}resolve(e,r,o=0){let t=this.#e(e,r);if(!t)return null;let i=this.values.get(t);return(o|i.options)&1?i.value:this.#t(t)}resolveValue(e,r){let o=this.#e(e,r);return o?this.values.get(o).value:null}resolveWith(e,r,o=[]){let t=this.#e(e,r);if(!t)return null;let i={};for(let s of o){let u=`${t}${s}`,l=this.values.get(u);l&&(l.options&1?i[s]=l.value:i[s]=this.#t(u))}let c=this.values.get(t);return c.options&1?[c.value,i]:[this.#t(t),i]}namespace(e){let r=new Map,o=`${e}-`;for(let[t,i]of this.values)t===e?r.set(null,i.value):t.startsWith(`${o}-`)?r.set(t.slice(e.length),i.value):t.startsWith(o)&&r.set(t.slice(o.length),i.value);return r}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},le=class extends Map{constructor(e){super(),this.factory=e}get(e){let r=super.get(e);return r===void 0&&(r=this.factory(e,this),this.set(e,r)),r}};function Ce(e){return{kind:"word",value:e}}function Q(e,r){return{kind:"function",value:e,nodes:r}}function Pe(e){return{kind:"separator",value:e}}function ke(e,r,o=null){for(let t=0;t<e.length;t++){let i=e[t],c=!1,s=0,u=r(i,{parent:o,replaceWith(l){c||(c=!0,Array.isArray(l)?l.length===0?(e.splice(t,1),s=0):l.length===1?(e[t]=l[0],s=1):(e.splice(t,1,...l),s=l.length):e[t]=l)}})??0;if(c){u===0?t--:t+=s-1;continue}if(u===2||u!==1&&i.kind==="function"&&ke(i.nodes,r,i)===2)return 2}}function ee(e){let r="";for(let o of e)switch(o.kind){case"word":case"separator":{r+=o.value;break}case"function":r+=o.value+"("+ee(o.nodes)+")"}return r}var Fe=92,St=41,Xe=58,Qt=44,zo=34,er=61,tr=62,rr=60,or=10,To=40,jo=39,ar=47,ir=32,nr=9;function oe(e){e=e.replaceAll(`\r
4
4
  `,`
@@ -1 +1 @@
1
- {"version":"1772189050721"}
1
+ {"version":"1772196743631"}
@@ -5,11 +5,11 @@
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.DC6usZVj.js">
9
- <link rel="modulepreload" href="./_app/immutable/chunks/Bwlnp1Fv.js">
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.B28NnTz6.js">
9
+ <link rel="modulepreload" href="./_app/immutable/chunks/BXEdQL9F.js">
10
10
  <link rel="modulepreload" href="./_app/immutable/chunks/CjlIFGQR.js">
11
11
  <link rel="modulepreload" href="./_app/immutable/chunks/PaGpozZ3.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.wS03Lw9v.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.DaWMcPqV.js">
13
13
  <link rel="modulepreload" href="./_app/immutable/chunks/Cg1M8nhR.js">
14
14
  <link rel="modulepreload" href="./_app/immutable/chunks/NZTpNUN0.js">
15
15
  <link rel="modulepreload" href="./_app/immutable/chunks/UUVzZ2eQ.js">
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_996j93 = {
21
+ __sveltekit_4yv7i4 = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.DC6usZVj.js"),
30
- import("./_app/immutable/entry/app.wS03Lw9v.js")
29
+ import("./_app/immutable/entry/start.B28NnTz6.js"),
30
+ import("./_app/immutable/entry/app.DaWMcPqV.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
@@ -5,11 +5,11 @@
5
5
  <link rel="icon" href="./favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.DC6usZVj.js">
9
- <link rel="modulepreload" href="./_app/immutable/chunks/Bwlnp1Fv.js">
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.B28NnTz6.js">
9
+ <link rel="modulepreload" href="./_app/immutable/chunks/BXEdQL9F.js">
10
10
  <link rel="modulepreload" href="./_app/immutable/chunks/CjlIFGQR.js">
11
11
  <link rel="modulepreload" href="./_app/immutable/chunks/PaGpozZ3.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.wS03Lw9v.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.DaWMcPqV.js">
13
13
  <link rel="modulepreload" href="./_app/immutable/chunks/Cg1M8nhR.js">
14
14
  <link rel="modulepreload" href="./_app/immutable/chunks/NZTpNUN0.js">
15
15
  <link rel="modulepreload" href="./_app/immutable/chunks/UUVzZ2eQ.js">
@@ -18,7 +18,7 @@
18
18
  <div style="display: contents">
19
19
  <script>
20
20
  {
21
- __sveltekit_996j93 = {
21
+ __sveltekit_4yv7i4 = {
22
22
  base: new URL(".", location).pathname.slice(0, -1),
23
23
  assets: "/configurator"
24
24
  };
@@ -26,8 +26,8 @@
26
26
  const element = document.currentScript.parentElement;
27
27
 
28
28
  Promise.all([
29
- import("./_app/immutable/entry/start.DC6usZVj.js"),
30
- import("./_app/immutable/entry/app.wS03Lw9v.js")
29
+ import("./_app/immutable/entry/start.B28NnTz6.js"),
30
+ import("./_app/immutable/entry/app.DaWMcPqV.js")
31
31
  ]).then(([kit, app]) => {
32
32
  kit.start(app, element);
33
33
  });
package/index.cjs CHANGED
@@ -10998,38 +10998,67 @@ function rng() {
10998
10998
  return getRandomValues(rnds8);
10999
10999
  }
11000
11000
 
11001
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/native.js
11002
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
11003
- var native_default = { randomUUID };
11004
-
11005
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js
11006
- function _v4(options2, buf, offset) {
11007
- options2 = options2 || {};
11008
- const rnds = options2.random ?? options2.rng?.() ?? rng();
11001
+ // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v7.js
11002
+ var _state = {};
11003
+ function v7(options2, buf, offset) {
11004
+ let bytes;
11005
+ if (options2) {
11006
+ bytes = v7Bytes(options2.random ?? options2.rng?.() ?? rng(), options2.msecs, options2.seq, buf, offset);
11007
+ } else {
11008
+ const now2 = Date.now();
11009
+ const rnds = rng();
11010
+ updateV7State(_state, now2, rnds);
11011
+ bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
11012
+ }
11013
+ return buf ?? unsafeStringify(bytes);
11014
+ }
11015
+ function updateV7State(state2, now2, rnds) {
11016
+ state2.msecs ??= -Infinity;
11017
+ state2.seq ??= 0;
11018
+ if (now2 > state2.msecs) {
11019
+ state2.seq = rnds[6] << 23 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
11020
+ state2.msecs = now2;
11021
+ } else {
11022
+ state2.seq = state2.seq + 1 | 0;
11023
+ if (state2.seq === 0) {
11024
+ state2.msecs++;
11025
+ }
11026
+ }
11027
+ return state2;
11028
+ }
11029
+ function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
11009
11030
  if (rnds.length < 16) {
11010
11031
  throw new Error("Random bytes length must be >= 16");
11011
11032
  }
11012
- rnds[6] = rnds[6] & 15 | 64;
11013
- rnds[8] = rnds[8] & 63 | 128;
11014
- if (buf) {
11015
- offset = offset || 0;
11033
+ if (!buf) {
11034
+ buf = new Uint8Array(16);
11035
+ offset = 0;
11036
+ } else {
11016
11037
  if (offset < 0 || offset + 16 > buf.length) {
11017
11038
  throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
11018
11039
  }
11019
- for (let i = 0;i < 16; ++i) {
11020
- buf[offset + i] = rnds[i];
11021
- }
11022
- return buf;
11023
11040
  }
11024
- return unsafeStringify(rnds);
11025
- }
11026
- function v4(options2, buf, offset) {
11027
- if (native_default.randomUUID && !buf && !options2) {
11028
- return native_default.randomUUID();
11029
- }
11030
- return _v4(options2, buf, offset);
11031
- }
11032
- var v4_default = v4;
11041
+ msecs ??= Date.now();
11042
+ seq ??= rnds[6] * 127 << 24 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
11043
+ buf[offset++] = msecs / 1099511627776 & 255;
11044
+ buf[offset++] = msecs / 4294967296 & 255;
11045
+ buf[offset++] = msecs / 16777216 & 255;
11046
+ buf[offset++] = msecs / 65536 & 255;
11047
+ buf[offset++] = msecs / 256 & 255;
11048
+ buf[offset++] = msecs & 255;
11049
+ buf[offset++] = 112 | seq >>> 28 & 15;
11050
+ buf[offset++] = seq >>> 20 & 255;
11051
+ buf[offset++] = 128 | seq >>> 14 & 63;
11052
+ buf[offset++] = seq >>> 6 & 255;
11053
+ buf[offset++] = seq << 2 & 255 | rnds[10] & 3;
11054
+ buf[offset++] = rnds[11];
11055
+ buf[offset++] = rnds[12];
11056
+ buf[offset++] = rnds[13];
11057
+ buf[offset++] = rnds[14];
11058
+ buf[offset++] = rnds[15];
11059
+ return buf;
11060
+ }
11061
+ var v7_default = v7;
11033
11062
  // src/lib/client/utils/agnostic-storage.ts
11034
11063
  var storage = new Map;
11035
11064
 
@@ -11596,13 +11625,13 @@ class LiipGPTClientPrimitive {
11596
11625
  return this.internalData.metadata;
11597
11626
  }
11598
11627
  createConversationId() {
11599
- const conversationId = v4_default();
11628
+ const conversationId = v7_default();
11600
11629
  this.renderers.set(conversationId, new MarkdownRenderer({ extensions: this.markedExtensions, newTabSrText: this._newTabSrText }));
11601
11630
  return conversationId;
11602
11631
  }
11603
11632
  chat(conversationId, question, options2 = {}) {
11604
11633
  const content = new FutureValue;
11605
- const requestId = v4_default();
11634
+ const requestId = v7_default();
11606
11635
  const readyForFeedback = new Flag;
11607
11636
  const markdownRenderer = this.renderers.get(conversationId) ?? new MarkdownRenderer({ extensions: this.markedExtensions, newTabSrText: this._newTabSrText });
11608
11637
  const chatResultBuilder = new ChatResultBuilder({
package/index.js CHANGED
@@ -10954,38 +10954,67 @@ function rng() {
10954
10954
  return getRandomValues(rnds8);
10955
10955
  }
10956
10956
 
10957
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/native.js
10958
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
10959
- var native_default = { randomUUID };
10960
-
10961
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js
10962
- function _v4(options2, buf, offset) {
10963
- options2 = options2 || {};
10964
- const rnds = options2.random ?? options2.rng?.() ?? rng();
10957
+ // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v7.js
10958
+ var _state = {};
10959
+ function v7(options2, buf, offset) {
10960
+ let bytes;
10961
+ if (options2) {
10962
+ bytes = v7Bytes(options2.random ?? options2.rng?.() ?? rng(), options2.msecs, options2.seq, buf, offset);
10963
+ } else {
10964
+ const now2 = Date.now();
10965
+ const rnds = rng();
10966
+ updateV7State(_state, now2, rnds);
10967
+ bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
10968
+ }
10969
+ return buf ?? unsafeStringify(bytes);
10970
+ }
10971
+ function updateV7State(state2, now2, rnds) {
10972
+ state2.msecs ??= -Infinity;
10973
+ state2.seq ??= 0;
10974
+ if (now2 > state2.msecs) {
10975
+ state2.seq = rnds[6] << 23 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
10976
+ state2.msecs = now2;
10977
+ } else {
10978
+ state2.seq = state2.seq + 1 | 0;
10979
+ if (state2.seq === 0) {
10980
+ state2.msecs++;
10981
+ }
10982
+ }
10983
+ return state2;
10984
+ }
10985
+ function v7Bytes(rnds, msecs, seq, buf, offset = 0) {
10965
10986
  if (rnds.length < 16) {
10966
10987
  throw new Error("Random bytes length must be >= 16");
10967
10988
  }
10968
- rnds[6] = rnds[6] & 15 | 64;
10969
- rnds[8] = rnds[8] & 63 | 128;
10970
- if (buf) {
10971
- offset = offset || 0;
10989
+ if (!buf) {
10990
+ buf = new Uint8Array(16);
10991
+ offset = 0;
10992
+ } else {
10972
10993
  if (offset < 0 || offset + 16 > buf.length) {
10973
10994
  throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
10974
10995
  }
10975
- for (let i = 0;i < 16; ++i) {
10976
- buf[offset + i] = rnds[i];
10977
- }
10978
- return buf;
10979
10996
  }
10980
- return unsafeStringify(rnds);
10981
- }
10982
- function v4(options2, buf, offset) {
10983
- if (native_default.randomUUID && !buf && !options2) {
10984
- return native_default.randomUUID();
10985
- }
10986
- return _v4(options2, buf, offset);
10987
- }
10988
- var v4_default = v4;
10997
+ msecs ??= Date.now();
10998
+ seq ??= rnds[6] * 127 << 24 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
10999
+ buf[offset++] = msecs / 1099511627776 & 255;
11000
+ buf[offset++] = msecs / 4294967296 & 255;
11001
+ buf[offset++] = msecs / 16777216 & 255;
11002
+ buf[offset++] = msecs / 65536 & 255;
11003
+ buf[offset++] = msecs / 256 & 255;
11004
+ buf[offset++] = msecs & 255;
11005
+ buf[offset++] = 112 | seq >>> 28 & 15;
11006
+ buf[offset++] = seq >>> 20 & 255;
11007
+ buf[offset++] = 128 | seq >>> 14 & 63;
11008
+ buf[offset++] = seq >>> 6 & 255;
11009
+ buf[offset++] = seq << 2 & 255 | rnds[10] & 3;
11010
+ buf[offset++] = rnds[11];
11011
+ buf[offset++] = rnds[12];
11012
+ buf[offset++] = rnds[13];
11013
+ buf[offset++] = rnds[14];
11014
+ buf[offset++] = rnds[15];
11015
+ return buf;
11016
+ }
11017
+ var v7_default = v7;
10989
11018
  // src/lib/client/utils/agnostic-storage.ts
10990
11019
  var storage = new Map;
10991
11020
 
@@ -11552,13 +11581,13 @@ class LiipGPTClientPrimitive {
11552
11581
  return this.internalData.metadata;
11553
11582
  }
11554
11583
  createConversationId() {
11555
- const conversationId = v4_default();
11584
+ const conversationId = v7_default();
11556
11585
  this.renderers.set(conversationId, new MarkdownRenderer({ extensions: this.markedExtensions, newTabSrText: this._newTabSrText }));
11557
11586
  return conversationId;
11558
11587
  }
11559
11588
  chat(conversationId, question, options2 = {}) {
11560
11589
  const content = new FutureValue;
11561
- const requestId = v4_default();
11590
+ const requestId = v7_default();
11562
11591
  const readyForFeedback = new Flag;
11563
11592
  const markdownRenderer = this.renderers.get(conversationId) ?? new MarkdownRenderer({ extensions: this.markedExtensions, newTabSrText: this._newTabSrText });
11564
11593
  const chatResultBuilder = new ChatResultBuilder({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {