@liip/liipgpt 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +8 -8
- package/chat/liipgpt-chat.iife.js +28 -28
- package/config/index.cjs +2 -1
- package/config/index.d.ts +3 -0
- package/config/index.js +2 -1
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/AjvNvpcS.js +143 -0
- package/configurator/_app/immutable/chunks/{CcwBRphY.js → B2WYFJPx.js} +1 -1
- package/configurator/_app/immutable/chunks/CH59pkDp.js +1 -0
- package/configurator/_app/immutable/chunks/{DiV0gc-1.js → CwoM9ZsT.js} +1 -1
- package/configurator/_app/immutable/chunks/{3j9KoXVE.js → DNPn_ns0.js} +11 -11
- package/configurator/_app/immutable/chunks/{C-RdMYBf.js → DUzWHrw7.js} +1 -1
- package/configurator/_app/immutable/chunks/{gDSICh8W.js → DsuhXmiJ.js} +1 -1
- package/configurator/_app/immutable/chunks/{Cd9U58JI.js → DtizvAR3.js} +1 -1
- package/configurator/_app/immutable/chunks/o0VLopO-.js +1 -0
- package/configurator/_app/immutable/entry/{app.CBMrX7pl.js → app.r6kVRVEe.js} +2 -2
- package/configurator/_app/immutable/entry/start.zygD77td.js +1 -0
- package/configurator/_app/immutable/nodes/{0.DCoCRnyp.js → 0.Cb7Wwl1_.js} +5 -3
- package/configurator/_app/immutable/nodes/{1.B4EK-3E3.js → 1.BNEGtkzm.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.C-S8DGUM.js → 2.vvNnVFR_.js} +10 -8
- package/configurator/_app/immutable/nodes/{3.CqG4zRvq.js → 3.DnT0Omxv.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +2 -1
- package/index.d.ts +10 -0
- package/index.js +2 -1
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/3HhYhk9n.js +0 -143
- package/configurator/_app/immutable/chunks/4dkgDADx.js +0 -1
- package/configurator/_app/immutable/chunks/Bs4vwfVG.js +0 -1
- package/configurator/_app/immutable/entry/start.B0QGdK3g.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as G,N as b,a as d,O as M,b as n,d as N,v as k,G as x,P as O,F as q,Q,R as U,c as j,S as A,f as R,s as E,t as D,g as H,T as S,e as w,r as z}from"./PaGpozZ3.js";import{i as F}from"./Cg1M8nhR.js";import{a as I}from"./
|
|
1
|
+
import"./NZTpNUN0.js";import{p as G,N as b,a as d,O as M,b as n,d as N,v as k,G as x,P as O,F as q,Q,R as U,c as j,S as A,f as R,s as E,t as D,g as H,T as S,e as w,r as z}from"./PaGpozZ3.js";import{i as F}from"./Cg1M8nhR.js";import{a as I}from"./DNPn_ns0.js";import{p as P}from"./UUVzZ2eQ.js";var J=(u,a)=>a()(),K=R('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),L=R(" <!>",1);const V={hash:"svelte-4thrqu",code:`
|
|
2
2
|
/* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-4thrqu {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
|
|
3
3
|
BlinkMacSystemFont,
|
|
4
4
|
avenir next,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{o as Be,s as yt}from"./CjlIFGQR.js";import{F as me,aR as wt,P as T,G as x,T as P}from"./PaGpozZ3.js";const F=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(wt(e,o)&&(e=o,n)){const c=!F.length;for(const l of r)l[1](),F.push(l,e);if(c){for(let l=0;l<F.length;l+=2)F[l][0](F[l+1]);F.length=0}}}function s(o){a(o(e))}function i(o,c=me){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||me),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}class fe{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 Ie{constructor(t,n){this.status=t,this.location=n}}class Ue extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function bt(e){return e.split("%25").map(decodeURI).join("%25")}function At(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function St(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function Et(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),Rt(e,t));const H=new Map;function It(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&H.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Et(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Ut(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Pt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return we(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return we(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const d=Lt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return we(c)}).join("")}).join("")}/?$`),params:t}}function xt(e){return!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(xt)}function Ct(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function we(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:u}=Tt(o),f={id:o,exec:p=>{const m=h.exec(p);if(m)return Ct(m,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_be80ab?.base??"/configurator",Nt=globalThis.__sveltekit_be80ab?.assets??U,jt="1770044956094",Xe="sveltekit:snapshot",Ze="sveltekit:scroll",Qe="sveltekit:states",$t="sveltekit:pageurl",V="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Q=location.origin;function Te(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 ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...j,"":j.hover};function et(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function tt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=et(e)}}function Ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===Q&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ne(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=et(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[r??"off"],preload_data:qe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ge(e){const t=Re(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const nt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==jt;return i&&(e(!0),nt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==Q||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Sn(e){}function Me(e){const t=Bt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Ft.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Vt=-1,qt=-2,Gt=-3,Mt=-4,Ht=-5,Kt=-6;function Wt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Vt)return;if(s===Gt)return NaN;if(s===Mt)return 1/0;if(s===Ht)return-1/0;if(s===Kt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=o[1],m=Me(p),_=new f(m);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=Me(f);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==qt&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...rt];const Yt=new Set([...rt]);[...Yt];function zt(e){return e.filter(t=>t!=null)}const Jt="x-sveltekit-invalidated",Xt="x-sveltekit-trailing-slash";function re(e){return e instanceof fe||e instanceof Ue?e.status:500}function Zt(e){return e instanceof Ue?e.text:"Internal Error"}let k,J,ve;const Qt=Be.toString().includes("$$")||/function \w+\(\) \{\}/.test(Be.toString());Qt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ve={current:!1}):(k=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},nt.v=()=>ve.current=!0);function en(e){Object.assign(k,e)}const tn="/__data.json",nn=".html__data.json";function rn(e){return e.endsWith(".html")?e.replace(/\.html$/,nn):e.replace(/\/$/,"")+tn}const{tick:an}=yt,on=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Ze)??{},X=Je(Xe)??{},N={url:Ge({}),page:Ge({}),navigating:Re(null),updated:Dt()};function xe(e){D[e]=ue()}function sn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function G(e){return location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function He(){}let Pe,Se,ae,C,ke,v;const oe=[],se=[];let O=null;const te=new Map,ot=new Set,cn=new Set,K=new Set;let w={branch:[],error:null,url:null},Ce=!1,ie=!1,Ke=!0,Z=!1,M=!1,st=!1,Oe=!1,it,A,I,$;const W=new Set;async function In(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=Ot(e),C=document.documentElement,ke=t,Se=e.nodes[0],ae=e.nodes[1],Se(),ae(),A=history.state?.[V],I=history.state?.[z],A||(A=I=Date.now(),history.replaceState({...history.state,[V]:A,[z]:I},""));const r=D[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await yn(ke,n)):(await Y({type:"enter",url:Te(v.hash?vn(new URL(location.href)):location.href),replace_state:!0}),a()),mn()}function ln(){oe.length=0,Oe=!1}function ct(e){se.some(t=>t?.snapshot)&&(X[e]=se.map(t=>t?.snapshot?.capture()))}function lt(e){X[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function We(){xe(A),Ve(Ze,D),ct(I),Ve(Xe,X)}async function Ne(e,t,n,r){return Y({type:"goto",url:Te(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Oe=!0),t.invalidate&&t.invalidate.forEach(_n)}})}async function fn(e){if(e.id!==O?.id){const t={};W.add(t),O={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(O=null),n))}}return O.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ft(e,t,n){w=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),it=new v.root({target:t,props:{...e.props,stores:N,components:se},hydrate:n,sync:!1}),lt(I),n){const a={from:null,to:{params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(s=>s(a))}ie=!0}function ce({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(U&&(e.pathname===U||e.pathname===U+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=vt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(f=>f.node.component),page:Fe(k)}};i!==void 0&&(c.props.form=i);let l={},d=!k,h=0;for(let f=0;f<Math.max(n.length,w.branch.length);f+=1){const p=n[f],m=w.branch[f];p?.data!==m?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!w.url||e.href!==w.url.href||w.error!==a||i!==void 0&&i!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:k.data}),c}async function je({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!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:p}=new URL(f,n);c.dependencies.add(p)}};const h={route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:St(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,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});const{resolved:p,promise:m}=ut(u,f,n);return o&&d(p.href),m},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=ie?Ut(r,a.href,t):It(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(Oe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(oe.some(o=>o(new URL(i))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function un(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ze({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Fe(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return W.delete(O.token),O.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=w.url?e!==le(w.url):!1,u=w.route?a.id!==w.route.id:!1,f=un(w.url,n);let p=!1;const m=l.map((g,y)=>{const b=w.branch[y],S=!!g?.[0]&&(b?.loader!==g[1]||Ye(p,u,h,f,b.server?.uses,r));return S&&(p=!0),S});if(m.some(Boolean)){try{d=await gt(n,m)}catch(g){const y=await q(g,{url:n,params:r,route:{id:e}});return W.has(s)?ze({error:y,url:n,params:r,route:a}):he({status:re(g),error:y,url:n,route:a})}if(d.type==="redirect")return d}const _=d?.nodes;let R=!1;const E=l.map(async(g,y)=>{if(!g)return;const b=w.branch[y],S=_?.[y];if((!S||S.type==="skip")&&g[1]===b?.loader&&!Ye(R,u,h,f,b.universal?.uses,r))return b;if(R=!0,S?.type==="error")throw S;return je({loader:g[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let _e=0;_e<y;_e+=1)Object.assign(ge,(await E[_e])?.data);return ge},server_data_node:$e(S===void 0&&g[0]?{type:"skip"}:S??null,g[0]?b?.server:void 0)})});for(const g of E)g.catch(()=>{});const L=[];for(let g=0;g<l.length;g+=1)if(l[g])try{L.push(await E[g])}catch(y){if(y instanceof Ie)return{type:"redirect",location:y.location};if(W.has(s))return ze({error:await q(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=re(y),S;if(_?.includes(y))b=y.status??b,S=y.error;else if(y instanceof fe)S=y.body;else{if(await N.updated.check())return await at(),await G(n);S=await q(y,{params:r,url:n,route:{id:a.id}})}const ee=await dn(g,L,i);return ee?ce({url:n,params:r,branch:L.slice(0,ee.idx).concat(ee.node),status:b,error:S,route:a}):await pt(n,{id:a.id},S,b)}else L.push(void 0);return ce({url:n,params:r,branch:L,status:200,error:null,route:a,form:t?void 0:null})}async function dn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await gt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Q||n.pathname!==location.pathname||Ce)&&await G(n)}try{const o=await je({loader:Se,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(s)}),c={node:await ae(),loader:ae,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return Ne(new URL(o.location,location.href),{},0);throw o}}async function hn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ut(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,U,v.hash)){const n=await hn(e);if(!n)return;const r=pn(n);for(const a of Pe){const s=a.exec(r);if(s)return{id:le(e),invalidating:t,route:a,params:At(s),url:e}}}}function pn(e){return bt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r}){let a=!1;const s=De(w,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Z||ot.forEach(o=>o(i)),a?null:s}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=He,block:d=He}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?De(w,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=A,m=I;l(),Z=!0,ie&&f.navigation.type!=="enter"&&N.navigating.set(J.current=f.navigation);let _=u&&await dt(u);if(!_){if(de(t,U,v.hash))return await G(t);_=await pt(t,{id:null},await q(new Ue(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect")if(o>=20)_=await he({status:500,error:await q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Ne(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await N.updated.check()&&(await at(),await G(t));if(ln(),xe(p),ct(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,y={[V]:A+=g,[z]:I+=g,[Qe]:i};(s?history.replaceState:history.pushState).call(history,y,"",t),s||sn(A,I)}if(O=null,_.props.page.state=i,ie){w=_.state,_.props.page&&(_.props.page.url=t);const g=(await Promise.all(Array.from(cn,y=>y(f.navigation)))).filter(y=>typeof y=="function");if(g.length>0){let y=function(){g.forEach(b=>{K.delete(b)})};g.push(y),g.forEach(b=>{K.add(b)})}it.$set(_.props),en(_.props.page),st=!0}else ft(_,ke,!1);const{activeElement:R}=document;await an();const E=n?n.scroll:a?ue():null;if(Ke){const g=t.hash&&document.getElementById(mt(t));E?scrollTo(E.x,E.y):g?g.scrollIntoView():scrollTo(0,0)}const L=document.activeElement!==R&&document.activeElement!==document.body;!r&&!L&&wn(t),Ke=!0,_.props.page&&Object.assign(k,_.props.page),Z=!1,e==="popstate"&<(I),f.fulfil(void 0),K.forEach(g=>g(f.navigation)),N.navigating.set(J.current=null)}async function pt(e,t,n,r){return e.origin===Q&&e.pathname===location.pathname&&!Ce?await he({status:r,error:n,url:e,route:t}):await G(e)}function gn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(be(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=tt(o,C),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:u,download:f}=Ae(l,U,v.hash);if(u||f)return;const p=ne(l),m=h&&le(w.url)===le(h);if(!(p.reload||m))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;fn(_)}else c<=p.preload_code&&(t=l,n=c,be(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:l,download:d}=Ae(o,U,v.hash);if(l||d)continue;const h=ne(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&be(c))}}K.add(i),i()}function q(e,t){if(e instanceof fe)return e.body;const n=re(e),r=Zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Un(e,t={}){return e=new URL(Te(e)),e.origin!==Q?Promise.reject(new Error("goto: invalid URL")):Ne(e,t,0)}function _n(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function mn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Z){const r=De(w,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||gn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=tt(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=Ae(n,U,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ye(location);if(a||o.reload&&(!h||!d)){ht({url:r,type:"link"})?Z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=w.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(M=!0,xe(A),e(r),!o.replace_state)return;M=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await Y({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,U,!1))return;const o=t.target,c=ne(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o),d=r?.getAttribute("name");d&&l.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[V]){const n=t.state[V];if($={},n===A)return;const r=D[n],a=t.state[Qe]??{},s=new URL(t.state[$t]??location.href),i=t.state[z],o=w.url?ye(location)===ye(w.url):!1;if(i===I&&(st||o)){a!==k.state&&(k.state=a),e(s),D[A]=ue(),r&&scrollTo(r.x,r.y),A=n;return}const l=n-A;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{A=n,I=i},block:()=>{history.go(-l)},nav_token:$})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[V]:++A,[z]:I},"",location.href))});for(const t of document.querySelectorAll("link"))on.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(J.current=null)});function e(t){w.url=k.url=t,N.page.set(Fe(k)),N.page.notify()}}async function yn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ce=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=Pe.find(({id:f})=>f===s.id);let h,u=!0;try{const f=r.map(async(m,_)=>{const R=o[_];return R?.uses&&(R.uses=_t(R.uses)),je({loader:v.nodes[m],url:l,params:a,route:s,parent:async()=>{const E={};for(let L=0;L<_;L+=1)Object.assign(E,(await f[L]).data);return E},server_data_node:$e(R)})}),p=await Promise.all(f);if(d){const m=d.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}h=ce({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Ie){await G(new URL(f.location,location.href));return}h=await he({status:re(f),error:await q(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),ft(h,e,u)}async function gt(e,t){const n=new URL(e);n.pathname=rn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Xt,"1"),n.searchParams.append(Jt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new fe(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader(),c=new TextDecoder;function l(h){return Wt(h,{...v.decoders,Promise:u=>new Promise((f,p)=>{i.set(u,{fulfil:f,reject:p})})})}let d="";for(;;){const{done:h,value:u}=await o.read();if(h&&!d)break;for(d+=!u&&d?`
|
|
1
|
+
import{o as Be,s as yt}from"./CjlIFGQR.js";import{F as me,aR as wt,P as T,G as x,T as P}from"./PaGpozZ3.js";const F=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(wt(e,o)&&(e=o,n)){const c=!F.length;for(const l of r)l[1](),F.push(l,e);if(c){for(let l=0;l<F.length;l+=2)F[l][0](F[l+1]);F.length=0}}}function s(o){a(o(e))}function i(o,c=me){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||me),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}class fe{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 Ie{constructor(t,n){this.status=t,this.location=n}}class Ue extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function bt(e){return e.split("%25").map(decodeURI).join("%25")}function At(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function St(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function Et(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}const Rt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),Rt(e,t));const H=new Map;function It(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&H.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Et(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Ut(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${kt(...a)}"]`}return r}const Lt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Pt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return we(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return we(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const d=Lt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return we(c)}).join("")}).join("")}/?$`),params:t}}function xt(e){return!/^\([^)]+\)$/.test(e)}function Pt(e){return e.slice(1).split("/").filter(xt)}function Ct(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function we(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:u}=Tt(o),f={id:o,exec:p=>{const m=h.exec(p);if(m)return Ct(m,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const U=globalThis.__sveltekit_t0xrp5?.base??"/configurator",Nt=globalThis.__sveltekit_t0xrp5?.assets??U,jt="1770707269514",Xe="sveltekit:snapshot",Ze="sveltekit:scroll",Qe="sveltekit:states",$t="sveltekit:pageurl",V="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Q=location.origin;function Te(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 ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...j,"":j.hover};function et(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function tt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=et(e)}}function Ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===Q&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ne(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=et(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[r??"off"],preload_data:qe[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ge(e){const t=Re(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const nt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Nt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==jt;return i&&(e(!0),nt.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==Q||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Sn(e){}function Me(e){const t=Bt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Bt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Ft.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Vt=-1,qt=-2,Gt=-3,Mt=-4,Ht=-5,Kt=-6;function Wt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Vt)return;if(s===Gt)return NaN;if(s===Mt)return 1/0;if(s===Ht)return-1/0;if(s===Kt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=o[1],m=Me(p),_=new f(m);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=Me(f);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==qt&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const rt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...rt];const Yt=new Set([...rt]);[...Yt];function zt(e){return e.filter(t=>t!=null)}const Jt="x-sveltekit-invalidated",Xt="x-sveltekit-trailing-slash";function re(e){return e instanceof fe||e instanceof Ue?e.status:500}function Zt(e){return e instanceof Ue?e.text:"Internal Error"}let k,J,ve;const Qt=Be.toString().includes("$$")||/function \w+\(\) \{\}/.test(Be.toString());Qt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ve={current:!1}):(k=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},nt.v=()=>ve.current=!0);function en(e){Object.assign(k,e)}const tn="/__data.json",nn=".html__data.json";function rn(e){return e.endsWith(".html")?e.replace(/\.html$/,nn):e.replace(/\/$/,"")+tn}const{tick:an}=yt,on=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Ze)??{},X=Je(Xe)??{},N={url:Ge({}),page:Ge({}),navigating:Re(null),updated:Dt()};function xe(e){D[e]=ue()}function sn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function G(e){return location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function He(){}let Pe,Se,ae,C,ke,v;const oe=[],se=[];let O=null;const te=new Map,ot=new Set,cn=new Set,K=new Set;let w={branch:[],error:null,url:null},Ce=!1,ie=!1,Ke=!0,Z=!1,M=!1,st=!1,Oe=!1,it,A,I,$;const W=new Set;async function In(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=Ot(e),C=document.documentElement,ke=t,Se=e.nodes[0],ae=e.nodes[1],Se(),ae(),A=history.state?.[V],I=history.state?.[z],A||(A=I=Date.now(),history.replaceState({...history.state,[V]:A,[z]:I},""));const r=D[A];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await yn(ke,n)):(await Y({type:"enter",url:Te(v.hash?vn(new URL(location.href)):location.href),replace_state:!0}),a()),mn()}function ln(){oe.length=0,Oe=!1}function ct(e){se.some(t=>t?.snapshot)&&(X[e]=se.map(t=>t?.snapshot?.capture()))}function lt(e){X[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function We(){xe(A),Ve(Ze,D),ct(I),Ve(Xe,X)}async function Ne(e,t,n,r){return Y({type:"goto",url:Te(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Oe=!0),t.invalidate&&t.invalidate.forEach(_n)}})}async function fn(e){if(e.id!==O?.id){const t={};W.add(t),O={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(O=null),n))}}return O.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ft(e,t,n){w=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),it=new v.root({target:t,props:{...e.props,stores:N,components:se},hydrate:n,sync:!1}),lt(I),n){const a={from:null,to:{params:w.params,route:{id:w.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(s=>s(a))}ie=!0}function ce({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(U&&(e.pathname===U||e.pathname===U+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=vt(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:zt(n).map(f=>f.node.component),page:Fe(k)}};i!==void 0&&(c.props.form=i);let l={},d=!k,h=0;for(let f=0;f<Math.max(n.length,w.branch.length);f+=1){const p=n[f],m=w.branch[f];p?.data!==m?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!w.url||e.href!==w.url.href||w.error!==a||i!==void 0&&i!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:k.data}),c}async function je({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!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:p}=new URL(f,n);c.dependencies.add(p)}};const h={route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:St(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,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});const{resolved:p,promise:m}=ut(u,f,n);return o&&d(p.href),m},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=ie?Ut(r,a.href,t):It(r,t);return{resolved:a,promise:s}}function Ye(e,t,n,r,a,s){if(Oe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==w.params[i])return!0;for(const i of a.dependencies)if(oe.some(o=>o(new URL(i))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function un(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function ze({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Fe(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(O?.id===e)return W.delete(O.token),O.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=w.url?e!==le(w.url):!1,u=w.route?a.id!==w.route.id:!1,f=un(w.url,n);let p=!1;const m=l.map((g,y)=>{const b=w.branch[y],S=!!g?.[0]&&(b?.loader!==g[1]||Ye(p,u,h,f,b.server?.uses,r));return S&&(p=!0),S});if(m.some(Boolean)){try{d=await gt(n,m)}catch(g){const y=await q(g,{url:n,params:r,route:{id:e}});return W.has(s)?ze({error:y,url:n,params:r,route:a}):he({status:re(g),error:y,url:n,route:a})}if(d.type==="redirect")return d}const _=d?.nodes;let R=!1;const E=l.map(async(g,y)=>{if(!g)return;const b=w.branch[y],S=_?.[y];if((!S||S.type==="skip")&&g[1]===b?.loader&&!Ye(R,u,h,f,b.universal?.uses,r))return b;if(R=!0,S?.type==="error")throw S;return je({loader:g[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let _e=0;_e<y;_e+=1)Object.assign(ge,(await E[_e])?.data);return ge},server_data_node:$e(S===void 0&&g[0]?{type:"skip"}:S??null,g[0]?b?.server:void 0)})});for(const g of E)g.catch(()=>{});const L=[];for(let g=0;g<l.length;g+=1)if(l[g])try{L.push(await E[g])}catch(y){if(y instanceof Ie)return{type:"redirect",location:y.location};if(W.has(s))return ze({error:await q(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=re(y),S;if(_?.includes(y))b=y.status??b,S=y.error;else if(y instanceof fe)S=y.body;else{if(await N.updated.check())return await at(),await G(n);S=await q(y,{params:r,url:n,route:{id:a.id}})}const ee=await dn(g,L,i);return ee?ce({url:n,params:r,branch:L.slice(0,ee.idx).concat(ee.node),status:b,error:S,route:a}):await pt(n,{id:a.id},S,b)}else L.push(void 0);return ce({url:n,params:r,branch:L,status:200,error:null,route:a,form:t?void 0:null})}async function dn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await gt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Q||n.pathname!==location.pathname||Ce)&&await G(n)}try{const o=await je({loader:Se,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(s)}),c={node:await ae(),loader:ae,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return Ne(new URL(o.location,location.href),{},0);throw o}}async function hn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ut(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,U,v.hash)){const n=await hn(e);if(!n)return;const r=pn(n);for(const a of Pe){const s=a.exec(r);if(s)return{id:le(e),invalidating:t,route:a,params:At(s),url:e}}}}function pn(e){return bt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r}){let a=!1;const s=De(w,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Z||ot.forEach(o=>o(i)),a?null:s}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=He,block:d=He}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?De(w,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=A,m=I;l(),Z=!0,ie&&f.navigation.type!=="enter"&&N.navigating.set(J.current=f.navigation);let _=u&&await dt(u);if(!_){if(de(t,U,v.hash))return await G(t);_=await pt(t,{id:null},await q(new Ue(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect")if(o>=20)_=await he({status:500,error:await q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Ne(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await N.updated.check()&&(await at(),await G(t));if(ln(),xe(p),ct(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,y={[V]:A+=g,[z]:I+=g,[Qe]:i};(s?history.replaceState:history.pushState).call(history,y,"",t),s||sn(A,I)}if(O=null,_.props.page.state=i,ie){w=_.state,_.props.page&&(_.props.page.url=t);const g=(await Promise.all(Array.from(cn,y=>y(f.navigation)))).filter(y=>typeof y=="function");if(g.length>0){let y=function(){g.forEach(b=>{K.delete(b)})};g.push(y),g.forEach(b=>{K.add(b)})}it.$set(_.props),en(_.props.page),st=!0}else ft(_,ke,!1);const{activeElement:R}=document;await an();const E=n?n.scroll:a?ue():null;if(Ke){const g=t.hash&&document.getElementById(mt(t));E?scrollTo(E.x,E.y):g?g.scrollIntoView():scrollTo(0,0)}const L=document.activeElement!==R&&document.activeElement!==document.body;!r&&!L&&wn(t),Ke=!0,_.props.page&&Object.assign(k,_.props.page),Z=!1,e==="popstate"&<(I),f.fulfil(void 0),K.forEach(g=>g(f.navigation)),N.navigating.set(J.current=null)}async function pt(e,t,n,r){return e.origin===Q&&e.pathname===location.pathname&&!Ce?await he({status:r,error:n,url:e,route:t}):await G(e)}function gn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(be(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=tt(o,C),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:u,download:f}=Ae(l,U,v.hash);if(u||f)return;const p=ne(l),m=h&&le(w.url)===le(h);if(!(p.reload||m))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;fn(_)}else c<=p.preload_code&&(t=l,n=c,be(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:l,download:d}=Ae(o,U,v.hash);if(l||d)continue;const h=ne(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&be(c))}}K.add(i),i()}function q(e,t){if(e instanceof fe)return e.body;const n=re(e),r=Zt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Un(e,t={}){return e=new URL(Te(e)),e.origin!==Q?Promise.reject(new Error("goto: invalid URL")):Ne(e,t,0)}function _n(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function mn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(We(),!Z){const r=De(w,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&We()}),navigator.connection?.saveData||gn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=tt(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=Ae(n,U,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ye(location);if(a||o.reload&&(!h||!d)){ht({url:r,type:"link"})?Z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=w.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(M=!0,xe(A),e(r),!o.replace_state)return;M=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await Y({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,U,!1))return;const o=t.target,c=ne(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o),d=r?.getAttribute("name");d&&l.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{if(!Ee){if(t.state?.[V]){const n=t.state[V];if($={},n===A)return;const r=D[n],a=t.state[Qe]??{},s=new URL(t.state[$t]??location.href),i=t.state[z],o=w.url?ye(location)===ye(w.url):!1;if(i===I&&(st||o)){a!==k.state&&(k.state=a),e(s),D[A]=ue(),r&&scrollTo(r.x,r.y),A=n;return}const l=n-A;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{A=n,I=i},block:()=>{history.go(-l)},nav_token:$})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[V]:++A,[z]:I},"",location.href))});for(const t of document.querySelectorAll("link"))on.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(J.current=null)});function e(t){w.url=k.url=t,N.page.set(Fe(k)),N.page.notify()}}async function yn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ce=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=Pe.find(({id:f})=>f===s.id);let h,u=!0;try{const f=r.map(async(m,_)=>{const R=o[_];return R?.uses&&(R.uses=_t(R.uses)),je({loader:v.nodes[m],url:l,params:a,route:s,parent:async()=>{const E={};for(let L=0;L<_;L+=1)Object.assign(E,(await f[L]).data);return E},server_data_node:$e(R)})}),p=await Promise.all(f);if(d){const m=d.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}h=ce({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Ie){await G(new URL(f.location,location.href));return}h=await he({status:re(f),error:await q(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),ft(h,e,u)}async function gt(e,t){const n=new URL(e);n.pathname=rn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(Xt,"1"),n.searchParams.append(Jt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new fe(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader(),c=new TextDecoder;function l(h){return Wt(h,{...v.decoders,Promise:u=>new Promise((f,p)=>{i.set(u,{fulfil:f,reject:p})})})}let d="";for(;;){const{done:h,value:u}=await o.read();if(h&&!d)break;for(d+=!u&&d?`
|
|
2
2
|
`:c.decode(u,{stream:!0});;){const f=d.indexOf(`
|
|
3
3
|
`);if(f===-1)break;const p=JSON.parse(d.slice(0,f));if(d=d.slice(f+1),p.type==="redirect")return s(p);if(p.type==="data")p.nodes?.forEach(m=>{m?.type==="data"&&(m.uses=_t(m.uses),m.data=l(m.data))}),s(p);else if(p.type==="chunk"){const{id:m,data:_,error:R}=p,E=i.get(m);i.delete(m),R?E.reject(l(R)):E.fulfil(l(_))}}}})}function _t(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??[])}}let Ee=!1;function wn(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=mt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=ue();setTimeout(()=>{const i=history.state;Ee=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Ee=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function De(e,t,n,r){let a,s;const i=new Promise((c,l)=>{a=c,s=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:r,complete:i},fulfil:a,reject:s}}function Fe(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function vn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{In as a,Un as g,Sn as l,k as p,N as s,Re as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const Ur="https://liipgpt.api.dev.genai.liip.ch/liipgpt",Fr="3.2.2";function Xe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var se,we;function Qe(){if(we)return se;we=1;var t=function(k){return e(k)&&!r(k)};function e(v){return!!v&&typeof v=="object"}function r(v){var k=Object.prototype.toString.call(v);return k==="[object RegExp]"||k==="[object Date]"||n(v)}var a=typeof Symbol=="function"&&Symbol.for,o=a?Symbol.for("react.element"):60103;function n(v){return v.$$typeof===o}function s(v){return Array.isArray(v)?[]:{}}function i(v,k){return k.clone!==!1&&k.isMergeableObject(v)?$(s(v),v,k):v}function f(v,k,w){return v.concat(k).map(function(R){return i(R,w)})}function p(v,k){if(!k.customMerge)return $;var w=k.customMerge(v);return typeof w=="function"?w:$}function _(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(k){return Object.propertyIsEnumerable.call(v,k)}):[]}function B(v){return Object.keys(v).concat(_(v))}function J(v,k){try{return k in v}catch{return!1}}function Ge(v,k){return J(v,k)&&!(Object.hasOwnProperty.call(v,k)&&Object.propertyIsEnumerable.call(v,k))}function qe(v,k,w){var R={};return w.isMergeableObject(v)&&B(v).forEach(function(j){R[j]=i(v[j],w)}),B(k).forEach(function(j){Ge(v,j)||(J(v,j)&&w.isMergeableObject(k[j])?R[j]=p(j,w)(v[j],k[j],w):R[j]=i(k[j],w))}),R}function $(v,k,w){w=w||{},w.arrayMerge=w.arrayMerge||f,w.isMergeableObject=w.isMergeableObject||t,w.cloneUnlessOtherwiseSpecified=i;var R=Array.isArray(k),j=Array.isArray(v),Je=R===j;return Je?R?w.arrayMerge(v,k,w):qe(v,k,w):i(k,w)}$.all=function(k,w){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(R,j){return $(R,j,w)},{})};var Ye=$;return se=Ye,se}var Ke=Qe();const er=Xe(Ke),rr=t=>t===null||typeof t!="object",ce=t=>{if(rr(t))return t;if(Array.isArray(t))return t.map(ce);const e=Object.entries(t).filter(([r,a])=>a!==void 0).map(([r,a])=>[r,ce(a)]);return Object.fromEntries(e)},tr=(t,e)=>{const r=ce(e);return er(t,r)},Le={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:"400",fontWeightBold:"700",fontWeightTitle:"700",lineHeightDefault:"1.5",lineHeightSnug:"1.375",lineHeightTight:"1.25",borderRadius:{minRem:.5,maxRem:.75},lineColor:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)",boxShadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)",focusStyle:"solid"}},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},anchor:{color:"var(--color-brand-700)",hover:{color:"var(--color-brand-950)"}},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:"var(--base-border-radius)",hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"var(--color-grey-900)",background:"var(--color-grey-100)",borderRadius:"var(--base-border-radius)",boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"var(--base-border-radius)",custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)",placeholderOpacity:"1"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},checkbox:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"0.2em",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},radio:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--base-font-weight-bold)",separatorColor:"var(--base-line-color)",errorColor:"var(--message-error-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:"var(--base-border-radius)",boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:"var(--base-border-radius)",borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:"calc(var(--base-border-radius) / 1.25)",hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#DD135A",color:"var(--color-grey-0)",borderColor:"#DD135A",borderWidth:"1px",borderRadius:"var(--chat-input-border-radius)"},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--base-line-color)"}},aside:{background:"var(--card-background)",custom:{width:"400px",containerWidthForMobileLayout:1024,backgroundOverlay:"rgba(0, 0, 0, 0.4)",headerColor:"var(--card-color)",headerBorderColor:"var(--base-line-color)",headerBorderWidth:"1px"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--base-line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--body-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:"var(--card-border-radius)"},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"},custom:{hideTitleWhenCollapsed:0,autoExpandScrollThreshold:100,autoCollapseDelay:5e3,autoExpandOnce:0}},referencesToggle:{color:"var(--color-brand-700)",hover:{color:"var(--anchor-hover-color)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{padding:"0.25em"}},referenceDomain:{color:"var(--color-brand-700)",hover:{color:"var(--color-brand-800)"},custom:{padding:"0px"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--base-box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--body-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceDescription:{color:"var(--reference-color)",hover:{color:"var(--reference-hover-color)"}},referenceNumber:{color:"var(--reference-number-trigger-color)",background:"var(--body-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)",borderRadius:"var(--reference-number-trigger-border-radius)",hover:{color:"var(--reference-number-trigger-color)",background:"var(--reference-number-trigger-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)"},custom:{padding:"var(--reference-number-trigger-padding)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--base-box-shadow)",borderRadius:"var(--card-border-radius)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)"},flyout:{custom:{backdropEnabled:0,backdropColor:"var(--color-brand-800)",backdropOpacity:"0.4",backdropDelayIn:"0",backdropDurationIn:"200",backdropDelayOut:"0",backdropDurationOut:"150",backdropBaseScaleIn:"1",backdropBaseScaleOut:"1",backdropTransformOrigin:"center",backdropScaleDirection:"scale"}}},svgs:{predefinedQuestion:`
|
|
1
|
+
const Ur="https://liipgpt.api.dev.genai.liip.ch/liipgpt",Fr="3.2.4";function Xe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var se,we;function Qe(){if(we)return se;we=1;var t=function(k){return e(k)&&!r(k)};function e(v){return!!v&&typeof v=="object"}function r(v){var k=Object.prototype.toString.call(v);return k==="[object RegExp]"||k==="[object Date]"||n(v)}var a=typeof Symbol=="function"&&Symbol.for,o=a?Symbol.for("react.element"):60103;function n(v){return v.$$typeof===o}function s(v){return Array.isArray(v)?[]:{}}function i(v,k){return k.clone!==!1&&k.isMergeableObject(v)?$(s(v),v,k):v}function f(v,k,w){return v.concat(k).map(function(R){return i(R,w)})}function p(v,k){if(!k.customMerge)return $;var w=k.customMerge(v);return typeof w=="function"?w:$}function _(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(k){return Object.propertyIsEnumerable.call(v,k)}):[]}function B(v){return Object.keys(v).concat(_(v))}function J(v,k){try{return k in v}catch{return!1}}function Ge(v,k){return J(v,k)&&!(Object.hasOwnProperty.call(v,k)&&Object.propertyIsEnumerable.call(v,k))}function qe(v,k,w){var R={};return w.isMergeableObject(v)&&B(v).forEach(function(j){R[j]=i(v[j],w)}),B(k).forEach(function(j){Ge(v,j)||(J(v,j)&&w.isMergeableObject(k[j])?R[j]=p(j,w)(v[j],k[j],w):R[j]=i(k[j],w))}),R}function $(v,k,w){w=w||{},w.arrayMerge=w.arrayMerge||f,w.isMergeableObject=w.isMergeableObject||t,w.cloneUnlessOtherwiseSpecified=i;var R=Array.isArray(k),j=Array.isArray(v),Je=R===j;return Je?R?w.arrayMerge(v,k,w):qe(v,k,w):i(k,w)}$.all=function(k,w){if(!Array.isArray(k))throw new Error("first argument should be an array");return k.reduce(function(R,j){return $(R,j,w)},{})};var Ye=$;return se=Ye,se}var Ke=Qe();const er=Xe(Ke),rr=t=>t===null||typeof t!="object",ce=t=>{if(rr(t))return t;if(Array.isArray(t))return t.map(ce);const e=Object.entries(t).filter(([r,a])=>a!==void 0).map(([r,a])=>[r,ce(a)]);return Object.fromEntries(e)},tr=(t,e)=>{const r=ce(e);return er(t,r)},Le={tokens:{font:{family:"-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif"},colors:{brand:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},highlight:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923"},grey:{0:"#ffffff",50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#2d3748",900:"#1a202c",950:"#171923",1e3:"#000000"}},base:{fontSizeXs:{minRem:.75,maxRem:.875},fontSizeSm:{minRem:1,maxRem:1},fontSizeBody:{minRem:1,maxRem:1.25},fontSizeH3:{minRem:1.125,maxRem:1.5},fontSizeH2:{minRem:1.25,maxRem:1.75},fontSizeH1:{minRem:1.5,maxRem:2},fontWeightNormal:"400",fontWeightBold:"700",fontWeightTitle:"700",lineHeightDefault:"1.5",lineHeightSnug:"1.375",lineHeightTight:"1.25",borderRadius:{minRem:.5,maxRem:.75},lineColor:"color-mix(in srgb, var(--color-brand-950) 20%, transparent)",boxShadow:"0px 0px 2px rgba(0, 0, 0, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"},components:{body:{background:"var(--color-grey-0)",color:"var(--color-grey-900)",focus:{color:"var(--color-highlight-500)"},custom:{selectionColor:"var(--color-grey-0)",selectionBackground:"var(--color-brand-700)",focusWidth:"var(--spacer-3)",focusOffset:"var(--spacer-2)",focusStyle:"solid"}},container:{custom:{maxWidth:"1024px"}},avatar:{color:"var(--color-brand-400)",background:"var(--color-grey-100)"},anchor:{color:"var(--color-brand-700)",hover:{color:"var(--color-brand-950)"}},btnPrimary:{color:"var(--color-grey-0)",background:"var(--color-brand-700)",borderRadius:"var(--base-border-radius)",hover:{background:"var(--color-brand-900)"}},btnSecondary:{color:"var(--color-brand-700)",background:"var(--color-brand-100)",borderRadius:"var(--base-border-radius)",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-200)"}},btnTertiary:{color:"var(--anchor-color)",background:"transparent",borderRadius:"var(--base-border-radius)",hover:{color:"var(--anchor-hover-color)"}},card:{color:"var(--color-grey-900)",background:"var(--color-grey-100)",borderRadius:"var(--base-border-radius)",boxShadow:"none",hover:{color:"var(--color-grey-1000)",background:"var(--color-brand-100)"},custom:{iconColor:"var(--anchor-color)",iconHoverColor:"var(--anchor-hover-color)"}},input:{background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"var(--base-border-radius)",custom:{padding:"var(--spacer-r-16) var(--spacer-r-20)",placeholderColor:"var(--color-grey-500)",placeholderOpacity:"1"}},label:{color:"var(--color-grey-600)"},hr:{color:"var(--base-line-color)"},checkbox:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",borderRadius:"0.2em",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},radio:{color:"transparent",background:"var(--color-grey-0)",borderColor:"var(--color-grey-300)",borderWidth:"1px",custom:{checkedColor:"var(--btn-primary-color)",checkedBorderColor:"var(--color-brand-700)",checkedBackground:"var(--color-brand-700)"}},contextBox:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:200,transitionY:8,titleColor:"var(--color-grey-1000)",titleFontWeight:"var(--base-font-weight-bold)",separatorColor:"var(--base-line-color)",errorColor:"var(--message-error-color)"}},contextBoxMenuItem:{background:"transparent",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{activeColor:"var(--btn-secondary-hover-color)",activeBackground:"var(--btn-secondary-hover-background)"}},chatFooter:{color:"var(--color-grey-400)",background:"var(--body-background)",borderRadius:"var(--base-border-radius)",boxShadow:"0px -10px 20px 5px color-mix(in srgb, var(--body-background) 90%, transparent)"},chatInput:{color:"var(--color-grey-700)",background:"var(--card-background)",borderRadius:"var(--base-border-radius)",borderColor:"transparent",borderWidth:"3px",hover:{background:"var(--card-hover-background)"},focus:{borderColor:"var(--body-focus-color)"}},chatInputSubmit:{color:"var(--btn-primary-color)",background:"var(--btn-primary-background)",borderRadius:"calc(var(--base-border-radius) / 1.25)",hover:{color:"var(--btn-primary-hover-color)",background:"var(--btn-primary-hover-background)"},custom:{strokeWidth:"2",deactivatedBackground:"var(--color-grey-500)",deactivatedOpacity:"0.25",deactivatedScale:"0.8",deactivatedBorderColor:"var(--color-grey-500)"}},chatInputNotification:{background:"#DD135A",color:"var(--color-grey-0)",borderColor:"#DD135A",borderWidth:"1px",borderRadius:"var(--chat-input-border-radius)"},dialog:{background:"var(--card-background)",color:"var(--body-color)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",boxShadow:"var(--base-box-shadow)",custom:{transitionDuration:200,transitionDelay:0,transitionY:30,backgroundOverlay:"rgba(0, 0, 0, 0.25)",headerBorderBottomColor:"var(--base-line-color)"}},aside:{background:"var(--card-background)",custom:{width:"400px",containerWidthForMobileLayout:1024,backgroundOverlay:"rgba(0, 0, 0, 0.4)",headerColor:"var(--card-color)",headerBorderColor:"var(--base-line-color)",headerBorderWidth:"1px"}},message:{color:"var(--body-color)",custom:{errorColor:"#C91658",transitionDuration:300,transitionDelay:0,transitionY:30,transitionBotLoadingDelay:300}},messageOptions:{borderColor:"var(--base-line-color)",borderWidth:"1px",custom:{transitionDuration:300,transitionDelay:0,transitionY:30}},messageUser:{color:"var(--body-color)",background:"var(--card-background)",boxShadow:"var(--card-box-shadow)",borderRadius:"var(--card-border-radius)"},openButton:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-background)",borderWidth:"0",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)"},custom:{hideTitleWhenCollapsed:0,autoExpandScrollThreshold:100,autoCollapseDelay:5e3,autoExpandOnce:0}},referencesToggle:{color:"var(--color-brand-700)",hover:{color:"var(--anchor-hover-color)"}},referenceNumberTrigger:{color:"var(--btn-secondary-color)",background:"var(--btn-secondary-background)",borderRadius:"calc(var(--base-border-radius) / 2)",hover:{color:"var(--btn-secondary-hover-color)",background:"var(--btn-secondary-hover-background)"},custom:{padding:"0.25em"}},referenceDomain:{color:"var(--color-brand-700)",hover:{color:"var(--color-brand-800)"},custom:{padding:"0px"}},referenceNumberContent:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--card-hover-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"},boxShadow:"var(--base-box-shadow)",custom:{width:"95cqi",maxWidth:"450px",transitionDuration:200,transitionDelay:200,transitionY:8}},reference:{color:"var(--card-color)",background:"var(--card-background)",borderColor:"var(--card-border-color)",borderWidth:"var(--card-border-width)",borderRadius:"var(--card-border-radius)",hover:{color:"var(--card-hover-color)",background:"var(--body-background)",borderColor:"var(--card-hover-border-color)",borderWidth:"var(--card-hover-border-width)"}},referenceDescription:{color:"var(--reference-color)",hover:{color:"var(--reference-hover-color)"}},referenceNumber:{color:"var(--reference-number-trigger-color)",background:"var(--body-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)",borderRadius:"var(--reference-number-trigger-border-radius)",hover:{color:"var(--reference-number-trigger-color)",background:"var(--reference-number-trigger-background)",borderColor:"var(--reference-number-trigger-border-color)",borderWidth:"var(--reference-number-trigger-border-width)"},custom:{padding:"var(--reference-number-trigger-padding)"}},toast:{background:"var(--card-background)",color:"var(--body-color)",boxShadow:"var(--base-box-shadow)",borderRadius:"var(--card-border-radius)",custom:{iconSuccessColor:"#22c55e",iconErrorColor:"#ef4444",iconWarningColor:"#f97316",iconInfoColor:"#3b82f6"}},tooltip:{background:"var(--color-grey-200)",color:"var(--body-color)",borderRadius:"calc(var(--base-border-radius) / 2)"},flyout:{custom:{backdropColor:"var(--color-brand-800)",backdropOpacity:"0.4",backdropDelayIn:"0",backdropDurationIn:"200",backdropDelayOut:"0",backdropDurationOut:"150",backdropBaseScaleIn:"1",backdropBaseScaleOut:"1",backdropTransformOrigin:"center",backdropScaleDirection:"scale"}}},svgs:{predefinedQuestion:`
|
|
2
2
|
<svg viewBox="0 0 24 24" >
|
|
3
3
|
<path d="M11 3.5A10.5 10.5 0 0 0 0.5 14v1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
4
4
|
<path d="M0.5 15.498a5 5 0 1 0 10 0 5 5 0 1 0 -10 0" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a7 as r}from"./PaGpozZ3.js";import{s as t,p as e}from"./DsuhXmiJ.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,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
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.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.Cb7Wwl1_.js","../chunks/DtizvAR3.js","../chunks/NZTpNUN0.js","../chunks/PaGpozZ3.js","../chunks/UUVzZ2eQ.js","../nodes/1.BNEGtkzm.js","../chunks/o0VLopO-.js","../chunks/DsuhXmiJ.js","../chunks/CjlIFGQR.js","../chunks/CUA2mQrz.js","../nodes/2.vvNnVFR_.js","../chunks/Cg1M8nhR.js","../chunks/DNPn_ns0.js","../nodes/3.DnT0Omxv.js","../chunks/AjvNvpcS.js","../chunks/B2WYFJPx.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.Cb7Wwl1_.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>E(()=>import("../nodes/1.BNEGtkzm.js"),__vite__mapDeps([5,2,6,3,7,8,9]),import.meta.url),()=>E(()=>import("../nodes/2.vvNnVFR_.js"),__vite__mapDeps([10,11,3,2,12,4,8,1,7,6]),import.meta.url),()=>E(()=>import("../nodes/3.DnT0Omxv.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/DsuhXmiJ.js";export{o as load_css,r as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{P as a}from"../chunks/
|
|
1
|
+
import{P as a}from"../chunks/DtizvAR3.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 n=await v().catch(e=>(console.error("Error fetching org names:",e),[]));n.push("liipgpt");const i=n.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 = {
|
|
@@ -21,7 +21,8 @@ const CHAT_CONFIG_OVERRIDE = {
|
|
|
21
21
|
// sendReferrer: true, // sends referrer path to backend for each question
|
|
22
22
|
// addRetrievalQuestionToUrlParams: true, // when true, adds the retrieval question to the URL search parameter
|
|
23
23
|
// forceConsent: true, // when true, forces the user to accept terms and conditions before using the chat
|
|
24
|
-
// askQuestionAgain: true // when true, the answers of the bot will have an option to ask the corresponding question again
|
|
24
|
+
// askQuestionAgain: true, // when true, the answers of the bot will have an option to ask the corresponding question again
|
|
25
|
+
// enableBackdrop: true, // when true, shows a backdrop when flyout is opened
|
|
25
26
|
/*classification: {
|
|
26
27
|
impact: {
|
|
27
28
|
label: "Impact",
|
|
@@ -82,6 +83,7 @@ const CHAT_CONFIG_OVERRIDE = {
|
|
|
82
83
|
},
|
|
83
84
|
],
|
|
84
85
|
*/
|
|
86
|
+
// enableBackdrop: true,
|
|
85
87
|
};
|
|
86
88
|
|
|
87
89
|
window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
|
|
@@ -123,4 +125,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
|
|
|
123
125
|
</g>
|
|
124
126
|
</svg>
|
|
125
127
|
</div>
|
|
126
|
-
`,C={"api-org":{type:"string",values:[],value:"liipgpt",description:"Select the organization to to get the API URL"},"prod-api":{type:"boolean",value:!1,description:"Select to use the production API URL"},"api-url":{type:"string",required:!0,value:a,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"flyout-style":{type:"string",value:"width: 400px; height: 600px;",description:"This is the style attribute of the flyout container. With this the flyout size and position can be customized."},"flyout-class":{type:"string",value:"custom-flyout-class",description:"This is the class attribute of the flyout container. With this the flyout size and position can be customized."},"
|
|
128
|
+
`,C={"api-org":{type:"string",values:[],value:"liipgpt",description:"Select the organization to to get the API URL"},"prod-api":{type:"boolean",value:!1,description:"Select to use the production API URL"},"api-url":{type:"string",required:!0,value:a,description:"URL of the API endpoint."},lang:{type:"string",values:["en","de","fr","it"],value:"en",description:"This property allows the parent page of the chat to control the chat language. This is useful if the parent page should drive the language selection."},flyout:{type:"boolean",value:!1,description:"If set the chat will be put in a default flyout container."},"flyout-style":{type:"string",value:"width: 400px; height: 600px;",description:"This is the style attribute of the flyout container. With this the flyout size and position can be customized."},"flyout-class":{type:"string",value:"custom-flyout-class",description:"This is the class attribute of the flyout container. With this the flyout size and position can be customized."},"loader-background":{type:"string",value:"linear-gradient(0deg, #1B181E 0%, #2A2440 90%)",description:"This is the background color of the loading spinner."},"loader-color":{type:"string",value:"#9C92EE",description:"This is the color of the loading spinner."},"custom-loader":{type:"string",value:w,description:"This is an example how you can provide a custom loading spinner when the chat is loading."},onclosechat:{type:"string",value:'document.querySelector("liipgpt-chat").addEventListener("closechat", () => console.log("received: closechat"));',description:"This is the event listener create a custom handler to the closechat event. RELOAD the page to avoid multiple listeners."},cdn:{type:"boolean",value:!0,description:"When set, a fixed CDN URL will be used. Instead of providing the code from the backend."},CHAT_CONFIG_OVERRIDE:{type:"string",value:b,description:"This is only for demo purposes and should not be used in production. RELOAD the page to see the effects."},"show-components":{type:"boolean",value:!1,description:"Previews all the components for designing purposes."},"show-link-button":{type:"boolean",value:!1,description:"Previews the button as a link to an external page"},"hide-sidebar":{type:"boolean",value:!1,description:"Once hidden, you can display the sidebar again by removing the parameter from the URL"},"preview-background":{type:"string",value:"",description:"Enter an image URL (.png, .jpg, .webp) for a static background"}},k=async()=>{const n=await y();let i=C;return i["api-org"].values=Object.keys(n),{optionsDefinition:i,apiUrls:n}},O=!1,E=!0,I=(n,i)=>{const e=structuredClone(n);return Object.entries(n).forEach(([t,o])=>{const s=i.get(t);o.type==="boolean"&&(e[t].required=!0),s!==null?(o.type==="boolean"&&(e[t].value=s!=="false"),o.type==="string"&&(e[t].value=String(s))):o.required?e[t].value=n[t].value:e[t].value=void 0}),e},R=async({url:n})=>{const{optionsDefinition:i,apiUrls:e}=await k(),t=I(i,n.searchParams);if(t["api-org"].value){const o=e[t["api-org"].value];t["api-url"].value=t["prod-api"].value?o.prod:o.dev}return{optionsDefinition:i,options:t}},A=Object.freeze(Object.defineProperty({__proto__:null,load:R,prerender:E,ssr:O},Symbol.toStringTag,{value:"Module"}));function x(n,i){l(i,!0);let e=g(i,"children",7);var t=c(),o=u(t);return p(o,e),d(n,t),h({get children(){return e()},set children(s){e(s),f()}})}r(x,{children:{}},[],[],!0);export{x as component,A as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/
|
|
1
|
+
import"../chunks/NZTpNUN0.js";import{p as e}from"../chunks/o0VLopO-.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,8 +1,8 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/
|
|
2
|
-
import{i as
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/CH59pkDp.js","../chunks/NZTpNUN0.js","../chunks/PaGpozZ3.js","../chunks/UUVzZ2eQ.js","../chunks/AjvNvpcS.js","../chunks/CjlIFGQR.js","../chunks/Cg1M8nhR.js","../chunks/DNPn_ns0.js","../chunks/DtizvAR3.js","../chunks/DsuhXmiJ.js","../chunks/o0VLopO-.js","../chunks/CUA2mQrz.js","../chunks/B2WYFJPx.js","../chunks/DUzWHrw7.js","../chunks/CwoM9ZsT.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as f,_ as Pt,b as Et}from"../chunks/Cg1M8nhR.js";import"../chunks/NZTpNUN0.js";import{c as ie,p as Oe,f as b,s as e,e as a,t as J,b as r,d as Re,v as ve,r as t,g as He,S as z,u as ae,o as ca,aE as Ot,N as A,a as C,G as i,H as M,aC as ua,aF as De,P as Dt,aG as Ft,O as va,T as Mt}from"../chunks/PaGpozZ3.js";import{a as me,s as j,l as Rt,m as pa,j as p,n as ha,A as ma,e as ee,i as te,I as ue,o as ga,C as At,t as ba,p as wa,S as n,q as fa,P as Fe,R as Me,r as Ae,N as _a,u as ya,v as xa,w as qa,c as ka,x as Sa,M as Ia,h as Ge,y as Ta,z as Ht,D as Gt,E as La,F as za}from"../chunks/DNPn_ns0.js";import{p as pe,s as Ca,r as Ba}from"../chunks/UUVzZ2eQ.js";import{g as Pa}from"../chunks/DsuhXmiJ.js";import{p as Ea}from"../chunks/o0VLopO-.js";var Da=b('<div class="swatch svelte-18q4g20"><div class="swatch__color svelte-18q4g20"></div> <div class="swatch__label svelte-18q4g20"> </div></div>');const Fa={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
|
-
}}`};function
|
|
5
|
+
}}`};function he(w,u){Oe(u,!1),me(w,Fa);let I=pe(u,"name",12),s=pe(u,"key",12),H=pe(u,"value",12);var _=Da(),U=a(_),$=e(U,2),Y=a($,!0);return t($),t(_),J(()=>{j(_,"title",`Color ${s()}: ${H()}`),Rt(U,`background-color: var(--color-${I()??""}-${s()??""});`),He(Y,s())}),r(w,_),Re({get name(){return I()},set name(T){I(T),ve()},get key(){return s()},set key(T){s(T),ve()},get value(){return H()},set value(T){H(T),ve()}})}ie(he,{name:{},key:{},value:{}},[],[],!0);var Ma=b('<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 jt(w){var u=Ma();r(w,u)}ie(jt,{},[],[],!0);var Aa=b(`<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
|
|
6
6
|
lacus.</p> <p class="text-xs svelte-128qu17">Text-xs: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque
|
|
7
7
|
lacus.</p> <h2>Title h2</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
8
8
|
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <h3>Title h3</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
@@ -10,7 +10,7 @@ import{i as I,_ as Ct,b as Bt}from"../chunks/Cg1M8nhR.js";import"../chunks/NZTpN
|
|
|
10
10
|
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis.</p> <ul><li>Unordered List 1</li> <li>Unordered List 2</li> <li>Unordered List 3</li></ul> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
11
11
|
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet sed sed enim in elit vulputate
|
|
12
12
|
finibus.</p> <table><tbody><tr><th>Name</th><th>Role</th><th>Location</th></tr><tr><td>Sarah Hilse</td><td>Software Developer</td><td>Zürich</td></tr><tr><td>Sarah Perrollaz</td><td>User Experience Designer</td><td>Bern</td></tr><tr><td>Sarah Bähler</td><td>User Experience Designer</td><td>Fribourg</td></tr></tbody></table> <ol><li>Ordered List 1</li> <li>Ordered List 2</li> <li>Ordered List 3</li></ol> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis suscipit nisl at varius. Fusce vitae pellentesque lacus. Sed sed
|
|
13
|
-
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet <a href="https://www.google.com">Check it on google</a> sed sed enim in elit vulputate finibus.</p>`,1);const Ha={hash:"svelte-128qu17",code:".text-sm.svelte-128qu17 {font-size:var(--base-font-size-sm);}.text-xs.svelte-128qu17 {font-size:var(--base-font-size-xs);}"};function
|
|
13
|
+
enim in elit vulputate finibus ac in arcu. Donec venenatis tempus facilisis. Lorem ipsum dolor sit amet <a href="https://www.google.com">Check it on google</a> sed sed enim in elit vulputate finibus.</p>`,1);const Ha={hash:"svelte-128qu17",code:".text-sm.svelte-128qu17 {font-size:var(--base-font-size-sm);}.text-xs.svelte-128qu17 {font-size:var(--base-font-size-xs);}"};function Jt(w){me(w,Ha);var u=Aa();z(30),r(w,u)}ie(Jt,{},[],[],!0);const Ga=[{type:"user",time:"2025-01-22T08:03:11.044Z",message:"Ok, let's inspect this dummy discussion"},{state:"done",errors:[],type:"bot",time:"2025-03-31T15:37:53.914Z",message:{markdown:`Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind.
|
|
14
14
|
|
|
15
15
|
Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über **End-to-End-Tests mit Jest und Puppeteer** von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert[^4].
|
|
16
16
|
|
|
@@ -22,8 +22,10 @@ Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten T
|
|
|
22
22
|
<p>Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über <strong>End-to-End-Tests mit Jest und Puppeteer</strong> von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert <liipgpt-reference-number data-source="{"url":"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks","considered":true,"referencesIndex":{"all":3,"used":1},"display":{"card":{"title":"How to test your Gutenberg blocks with Jest and Puppeteer · Blog","description":"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.","badge":"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},"listItem":{"title":"How to test your Gutenberg blocks with Jest and Puppeteer · Blog","badge":"www.liip.ch"}}}" data-used-index="1" data-all-index="3"></liipgpt-reference-number>. </p>
|
|
23
23
|
<p>Zusätzlich gibt es auch Inhalte über <strong>Debugging von E-Mails auf einem Staging-Server</strong>, die einfache Lösungen für Testumgebungen bieten <liipgpt-reference-number data-source="{"url":"https://www.liip.ch/en/blog/debugging-email-on-staging-server","considered":true,"referencesIndex":{"all":2,"used":2},"display":{"card":{"title":"Debugging Email on Staging Server · Blog","description":"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.","badge":"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},"listItem":{"title":"Debugging Email on Staging Server · Blog","badge":"www.liip.ch"}}}" data-used-index="2" data-all-index="2"></liipgpt-reference-number>. </p>
|
|
24
24
|
<p>Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen! </p>
|
|
25
|
-
`,text:'Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über End-to-End-Tests mit Jest und Puppeteer von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert. Zusätzlich gibt es auch Inhalte über Debugging von E-Mails auf einem Staging-Server, die einfache Lösungen für Testumgebungen bieten. Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!'},references:{used:[{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,score:.9,metadata:{},referenceIndex:{all:3,used:1},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}}],all:[{url:"https://www.liip.ch/en/blog/little-test",considered:!0,referenceIndex:{all:0},score:.9,metadata:{},display:{card:{title:"little test · Blog",description:"The text appears to be a placeholder or test entry on a blog, lacking substantive content or context.",badge:"https://www.liip.ch/en/blog/little-test"},listItem:{title:"little test · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,referenceIndex:{all:3,used:1},score:.9,metadata:{},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}}],unused:[{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}}]},id:"eb8a0123-5143-46e2-8e23-d4e6a76a8ebb"},{type:"component",componentName:"combobox",time:"2025-01-22T08:03:11.044Z",data:{caption:"What is your favorite <b>fruit</b>?",placeholder:"Search a fruit",values:[{value:"mango",label:"Mango"},{value:"watermelon",label:"Watermelon"},{value:"apple",label:"Apple"},{value:"pineapple",label:"Pineapple"},{value:"orange",label:"Orange"},{value:"grape",label:"Grape"},{value:"strawberry",label:"Strawberry"},{value:"banana",label:"Banana"},{value:"kiwi",label:"Kiwi"},{value:"peach",label:"Peach"},{value:"cherry",label:"Cherry"},{value:"blueberry",label:"Blueberry"},{value:"raspberry",label:"Raspberry"},{value:"blackberry",label:"Blackberry"},{value:"plum",label:"Plum"},{value:"apricot",label:"Apricot"},{value:"pear",label:"Pear"},{value:"grapefruit",label:"Grapefruit"}]}},{type:"component",componentName:"buttons",time:"2025-01-22T08:03:11.044Z",data:{caption:"Are you <b>ready</b>?",buttons:[{label:"<b>Yes</b>",value:"yes",variant:"primary"},{label:"No",value:"no",variant:"secondary"},{label:"Well, maybe",value:"no",href:"https://example.com",variant:"tertiary",icon:"externalLink",target:"_blank"}]}}];var Oa=
|
|
25
|
+
`,text:'Leider kann ich Ihnen bei der Frage nach "test" nicht weiterhelfen, da die Informationen dazu nicht in den gelieferten Inhalten enthalten sind. Falls Sie spezifische Informationen zu Tests in der Softwareentwicklung oder zu bestimmten Testmethoden suchen, könnte der Artikel über End-to-End-Tests mit Jest und Puppeteer von Jürg Hunziker interessant sein, der beschreibt, wie man automatisierte Tests für Gutenberg-Blöcke in WordPress implementiert. Zusätzlich gibt es auch Inhalte über Debugging von E-Mails auf einem Staging-Server, die einfache Lösungen für Testumgebungen bieten. Bitte lassen Sie mich wissen, ob Sie weitere Informationen zu einem bestimmten Thema wünschen!'},references:{used:[{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,score:.9,metadata:{},referenceIndex:{all:3,used:1},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}}],all:[{url:"https://www.liip.ch/en/blog/little-test",considered:!0,referenceIndex:{all:0},score:.9,metadata:{},display:{card:{title:"little test · Blog",description:"The text appears to be a placeholder or test entry on a blog, lacking substantive content or context.",badge:"https://www.liip.ch/en/blog/little-test"},listItem:{title:"little test · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/debugging-email-on-staging-server",considered:!0,score:.9,metadata:{},referenceIndex:{all:2,used:2},display:{card:{title:"Debugging Email on Staging Server · Blog",description:"To test email features on a staging server without sending emails to actual recipients, a solution was implemented to trap all outgoing emails and display them through a web interface, ensuring that test emails are preserved while preventing accidental sends to clients.",badge:"https://www.liip.ch/en/blog/debugging-email-on-staging-server"},listItem:{title:"Debugging Email on Staging Server · Blog",badge:"www.liip.ch"}}},{url:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks",considered:!0,referenceIndex:{all:3,used:1},score:.9,metadata:{},display:{card:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",description:"This tutorial explains how to implement automated End-to-End tests for Gutenberg blocks using Jest and Puppeteer, focusing on a custom wrapper block that allows background color, margin, and alignment adjustments.",badge:"https://www.liip.ch/en/blog/how-to-test-your-gutenberg-blocks"},listItem:{title:"How to test your Gutenberg blocks with Jest and Puppeteer · Blog",badge:"www.liip.ch"}}}],unused:[{url:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem",considered:!0,score:.9,metadata:{},referenceIndex:{all:1},display:{card:{title:"How a simple solution alleviated a complex problem · Blog",description:"A developer shares their experience of addressing the issue of insufficient test coverage in a Symfony application by implementing a script that monitors routing changes, thereby enhancing the stability of the API without extensive resource investment.",badge:"https://www.liip.ch/en/blog/how-a-simple-solution-alleviated-a-complex-problem"},listItem:{title:"How a simple solution alleviated a complex problem · Blog",badge:"www.liip.ch"}}}]},id:"eb8a0123-5143-46e2-8e23-d4e6a76a8ebb"},{type:"component",componentName:"combobox",time:"2025-01-22T08:03:11.044Z",data:{caption:"What is your favorite <b>fruit</b>?",placeholder:"Search a fruit",values:[{value:"mango",label:"Mango"},{value:"watermelon",label:"Watermelon"},{value:"apple",label:"Apple"},{value:"pineapple",label:"Pineapple"},{value:"orange",label:"Orange"},{value:"grape",label:"Grape"},{value:"strawberry",label:"Strawberry"},{value:"banana",label:"Banana"},{value:"kiwi",label:"Kiwi"},{value:"peach",label:"Peach"},{value:"cherry",label:"Cherry"},{value:"blueberry",label:"Blueberry"},{value:"raspberry",label:"Raspberry"},{value:"blackberry",label:"Blackberry"},{value:"plum",label:"Plum"},{value:"apricot",label:"Apricot"},{value:"pear",label:"Pear"},{value:"grapefruit",label:"Grapefruit"}]}},{type:"component",componentName:"buttons",time:"2025-01-22T08:03:11.044Z",data:{caption:"Are you <b>ready</b>?",buttons:[{label:"<b>Yes</b>",value:"yes",variant:"primary"},{label:"No",value:"no",variant:"secondary"},{label:"Well, maybe",value:"no",href:"https://example.com",variant:"tertiary",icon:"externalLink",target:"_blank"}]}}];var Oa=b('<link rel="stylesheet"/>'),Ra=b("<!> <!> <!> <!> <!>",1),ja=b('<div class="context-menu svelte-15ybqqo"><!></div>'),Ja=b('<div class="chat-app__loader-container">Loading...</div>'),Ua=b('<div class="container text-container" style="padding-bottom: 200px;"><hr/> <h2>Popups</h2> <div class="dialog-content svelte-15ybqqo"><div class="dialog-header"><div class="dialog-title"><!></div> <div class="dialog-close"><span class="sr-only">Close</span> <!></div></div> <div class="dialog-description text-container"><!></div></div></div>'),$a=b(`<div class="container text-container" style="padding-top: 100px;"><h1>Base</h1> <p>This text has the configured text color. This <a href="https://www.liip.ch">anchor</a> has the configured anchor color. This page has the configured background color.</p> <h2 class="h3">Colors</h2> <h3 class="h4">Brand Colors</h3> <div class="color-swatches svelte-15ybqqo"><!></div> <h3 class="h4">Highlight Colors (optional)</h3> <div class="color-swatches svelte-15ybqqo"><!></div> <h3 class="h4">Grey Colors</h3> <div class="color-swatches svelte-15ybqqo"><!></div></div> <div class="container text-container"><hr/> <h1>Abstractions</h1> <p>The following elements are not components, but abstractions only. Their properties are defined in the configuration
|
|
26
26
|
files and are applied to the components that need them.</p> <div class="card transition-colors svelte-15ybqqo">Card</div></div> <div class="container text-container" style="padding-top: 100px;"><h1>Components</h1> <h2>Buttons</h2> <div><div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><button class="btn btn--primary">Primary</button> <button class="btn btn--secondary">Secondary</button> <button class="btn btn--tertiary">Tertiary</button></div> <div style="display: flex; gap: 1rem;"><button class="btn btn--primary" disabled>Primary</button> <button class="btn btn--secondary" disabled>Secondary</button> <button class="btn btn--tertiary" disabled>Tertiary</button></div></div> <h2>Avatars</h2> <div style="display: flex; gap: 1rem;"><!> <!></div> <h2>ChatInput</h2> <!> <div class="predefined-questions"><!> <!> <!></div> <h2>References</h2> <div class="references__container svelte-15ybqqo"><div class="references__items"><!> <!> <!></div></div> <div><p>hover over the reference number to see the tooltip: <liipgpt-reference-number></liipgpt-reference-number> .</p></div> <div style="position: relative;"><a class="reference-number__content transition-colors no-link-styling" href="https://www.liip.ch" target="_blank" rel="noopener noreferrer"><span class="reference__header"><h3 class="reference__title h4">Reference tooltip example</h3> <!></span> <span class="reference__description line-clamp line-clamp--6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et
|
|
27
|
-
dolore magna aliqua. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span> <span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate">www.very-very-longer-url-to-test.ch</span></span> <span class="reference__breadcrumb transition-colors">Organisation</span> <span class="reference__breadcrumb transition-colors">Über uns</span></span></a></div> <h2>Menu</h2> <div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><div class="chat-app__header-content"><!> <!> <!> <!></div></div> <h3>Menu example</h3> <div class="context-box__content svelte-15ybqqo"><div class="context-box__menu"><div class="context-box__menu-item transition-colors"><!> <span>Menü Beispiel</span></div></div> <div class="context-box__separator"></div> <div><div class="context-box__title">Sprache auswählen</div> <div class="context-box__menu"><div class="context-box__menu-item transition-colors active"><!> <span>Deutsch</span></div> <div class="context-box__menu-item transition-colors"><!> <span>English</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Français</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Italiano</span></div></div></div> <div class="context-box__separator" id="bits-c15" role="group" data-dropdown-menu-separator=""></div> <div id="bits-c16" data-dropdown-menu-radio-group="" role="group"><div class="context-box__color-scheme-selector"><div class="context-box__color-scheme-selector-button transition-colors context-box__color-scheme-selector-button--active"><!> <span>Hell</span></div> <hr class="context-box__color-scheme-selector-separator"/> <div class="context-box__color-scheme-selector-button transition-colors"><!> <span>Dunkel</span></div></div></div></div> <h2>Feedback Form</h2> <div class="dialog-content svelte-15ybqqo"><div class="dialog-header"><div class="dialog-title"><h3 class="h4">Feedback geben, um unseren Chatbot zu verbessern</h3></div> <button class="dialog-close"><span class="sr-only">Close</span> <div aria-hidden="true" class="svg svg--dismiss"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"></path><path d="m18.257 5.742-12.514 12.514"></path></g></svg></div></button></div> <div class="dialog-description" id="bits-92" data-dialog-description="" data-state="open"><form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div></form></div></div> <h2>Tooltip</h2> <div class="tooltip-container" style="height: 100px"><div class="tooltip tooltip-top" style="">I'm a tooltip</div></div></div> <div class="container text-container" style="padding-bottom: var(--spacer-r-40)"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages svelte-15ybqqo"></div> <div class="text-container container"><hr/> <h2>Typography</h2> <!> <hr/> <h2>Icons</h2> <div style="color: currentColor; display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: var(--spacer-r-40)"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div> <!>`,3),Za=f('<main class="chat-app svelte-15ybqqo"><!> <div class="chat-app__container"><div class="chat-app__main svelte-15ybqqo"><div class="chat-app__portals"></div> <!></div></div> <div></div></main>');const $a={hash:"svelte-15ybqqo",code:'.color-swatches.svelte-15ybqqo {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-15ybqqo {display:block;flex-grow:1;&::after {z-index:-1;position:fixed;top:0;left:0;width:100%;height:100%;background:var(--body-background);content:"";}}.chat-page__messages.svelte-15ybqqo {min-height:auto;padding-bottom:200px;}.context-menu.svelte-15ybqqo {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__main.svelte-15ybqqo {overflow:visible;overscroll-behavior:auto;background:transparent;touch-action:auto;}.card.svelte-15ybqqo {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.dialog-content.svelte-15ybqqo {position:relative;top:0;left:0;transform:none;}.references__container.svelte-15ybqqo {background-color:var(--aside-background);}.context-box__content.svelte-15ybqqo {position:relative;}'};function Rt(b,u){De(u,!0),re(b,$a);let y=se(u,"data",7),o=D(()=>p.t);K(()=>{const r={lang:y().options.lang.value,forceTheme:y().options?.["force-theme"]?.value,apiUrl:y().options["api-url"].value,features:""};da(()=>va.init(r).catch(n=>{console.error("Failed to init chat logic",n)}))});const F=Ga;var x=Za();At(r=>{var n=H(),d=C(n);{var _=q=>{var T=Ra(),v=C(T);V(v,17,()=>p.themeBase.fontURLs??[],Y,(B,W)=>{var N=Oa();Z(()=>j(N,"href",i(W))),l(B,N)});var w=e(v,2);ie(w,{id:"font-css",get css(){return p.themeBase.fontCSS}});var k=e(w,2);{let B=D(()=>qa(p.theme));ie(k,{id:"theme-css",get css(){return i(B)}})}var h=e(k,2);ie(h,{id:"app-css",get css(){return ha}});var L=e(h,2);ie(L,{id:"custom-css",get css(){return p.themeBase.customCSS}}),l(q,T)};I(d,q=>{p.initialized&&q(_)})}l(r,n)});let G;var O=a(x);{var $=r=>{var n=Ja(),d=a(n);Ft(d,{}),t(n),l(r,n)};I(O,r=>{p.initialized&&r($)})}var m=e(O,2),R=a(m),Q=a(R);pa(Q,(r,n)=>ka?.(r,n),()=>"portals");var ee=e(Q,2);{var U=r=>{var n=ja();ga(2,n,()=>ba,()=>({duration:200,delay:300})),l(r,n)},te=r=>{var n=Na(),d=C(n),_=e(a(d),8),q=a(_);{var T=c=>{var g=H(),M=C(g);V(M,17,()=>Object.entries(p.theme.colors.brand),Y,(P,E)=>{var z=D(()=>Le(i(E),2));let A=()=>i(z)[0],J=()=>i(z)[1];oe(P,{name:"brand",get key(){return A()},get value(){return J()}})}),l(c,g)};I(q,c=>{p.theme.colors?.brand&&c(T)})}t(_);var v=e(_,4),w=a(v);{var k=c=>{var g=H(),M=C(g);V(M,17,()=>Object.entries(p.theme.colors.highlight),Y,(P,E)=>{var z=D(()=>Le(i(E),2));let A=()=>i(z)[0],J=()=>i(z)[1];oe(P,{name:"highlight",get key(){return A()},get value(){return J()}})}),l(c,g)};I(w,c=>{p.theme?.colors?.highlight&&c(k)})}t(v);var h=e(v,4),L=a(h);{var B=c=>{var g=H(),M=C(g);V(M,17,()=>Object.entries(p.theme.colors.grey),Y,(P,E)=>{var z=D(()=>Le(i(E),2));let A=()=>i(z)[0],J=()=>i(z)[1];oe(P,{name:"grey",get key(){return A()},get value(){return J()}})}),l(c,g)};I(L,c=>{p.theme?.colors?.grey&&c(B)})}t(h),t(d);var W=e(d,4),N=e(a(W),8),Me=a(N);s(Me,{name:"avatar",class:"introduction__avatar"});var Jt=e(Me,2);s(Jt,{name:"avatar",class:"message__bot-avatar"}),t(N);var Ae=e(N,4);wa(Ae,{onSubmit:()=>{},avoidFocusOnMount:!0});var de=e(Ae,2),He=a(de);ze(He,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var Ge=e(He,2);ze(Ge,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var jt=e(Ge,2);ze(jt,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),t(de);var ce=e(de,4),Oe=a(ce),Re=a(Oe);Ce(Re,{reference:{url:"https://www.liip.ch/en/blog/liip-revolutioniert-das-lohnsystem",score:.8279685974121094,metadata:{kwLang:"de",titleAi:"Revolutionizing Salary Systems with the Liip Deal",keywords:["salary system","self-organization","transparency","diversity","inclusion","Swiss HR Award"],documentIdSalt:"en"},considered:!0,display:{card:{title:"Liip revolutioniert das Lohnsystem",description:"A digital agency has developed an innovative, transparent, and self-organized salary system called the 'Liip Deal', which emphasizes equality, self-evaluation, and agility, earning it the Swiss HR Award in the category of diversity and inclusion.",badge:"www.liip.ch"},listItem:{title:"Liip revolutioniert das Lohnsystem",badge:"www.very-very-longer-url-to-test.ch",breadcrumbs:["Organisation","Über uns","Philosophie"]}},referenceIndex:{all:11,used:4}}});var Je=e(Re,2);Ce(Je,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!",description:"The article celebrates 15 years of a Swiss digital agency known for its innovative, sustainable, and client-focused approach, highlighting its history of growth, organizational evolution, and long-standing client relationships, while emphasizing its commitment to Swiss quality and environmental responsibility.",badge:"www.liip.ch"},listItem:{title:"15 years of Liip, and what a journey it's been!",badge:"www.liip.ch",breadcrumbs:["Organisation","Team"]}},referenceIndex:{all:12,used:2}}});var Ut=e(Je,2);Ce(Ut,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!"},listItem:{title:"15 years of Liip, and what a journey it's been!"}},referenceIndex:{all:12,used:10}}}),t(Oe),t(ce);var ue=e(ce,2),je=a(ue),ve=e(a(je));Be(ve,"data-source",JSON.stringify({url:"https://www.liip.ch",considered:!0,referencesIndex:{all:3,used:1},display:{card:{title:"Reference tooltip example",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",breadcrumbs:["Organisation","Über uns","Philosophie"],badge:"www.liip.ch"}}})),Be(ve,"data-used-index","1"),Be(ve,"data-all-index","3"),S(),t(je),t(ue);var pe=e(ue,2),Ue=a(pe),Ne=a(Ue),Nt=e(a(Ne),2);s(Nt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Ne),S(4),t(Ue),t(pe);var me=e(pe,4),Ze=a(me),$e=a(Ze);fa($e,{});var Qe=e($e,2);Ft(Qe,{});var We=e(Qe,2);{let c=D(()=>i(o).aboutThisChat||"");_a(We,{get content(){return i(c)}})}var Zt=e(We,2);ya(Zt,{onclick:()=>{}}),t(Ze),t(me);var he=e(me,4),ge=a(he),Ve=a(ge),$t=a(Ve);s($t,{name:"externalLink"}),S(2),t(Ve),t(ge);var be=e(ge,4),Ye=e(a(be),2),we=a(Ye),Qt=a(we);s(Qt,{name:"internalLink"}),S(2),t(we);var fe=e(we,2),Wt=a(fe);s(Wt,{name:"internalLink"}),S(2),t(fe);var _e=e(fe,2),Vt=a(_e);s(Vt,{name:"internalLink"}),S(2),t(_e);var Ke=e(_e,2),Yt=a(Ke);s(Yt,{name:"internalLink"}),S(2),t(Ke),t(Ye),t(be);var Xe=e(be,4),et=a(Xe),ye=a(et),Kt=a(ye);s(Kt,{name:"lightMode"}),S(2),t(ye);var tt=e(ye,4),Xt=a(tt);s(Xt,{name:"darkMode"}),S(2),t(tt),t(et),t(Xe),t(he);var at=e(he,4),it=e(a(at),2),ae=a(it),nt=a(ae);xa(nt,{classificationConfig:{impact:{label:"Impact",options:[{label:"Positive",value:1},{label:"Negative",value:2}]},quality:{label:"Quality",options:[{label:"Good",value:1},{label:"Bad",value:2}]}},impact:0,quality:0});var xe=e(nt,2),qe=a(xe),ea=a(qe,!0);t(qe);var ta=e(qe,2);t(xe);var st=e(xe,2),ke=a(st),aa=a(ke,!0);t(ke);var ia=e(ke,2);t(st),t(ae),t(it),t(at),S(4),t(W);var Se=e(W,2),na=e(a(Se),4);Gt(na),t(Se);var Ie=e(Se,4);V(Ie,21,()=>F,Y,(c,g)=>{Sa(c,{get message(){return i(g)},onmessageupdate:()=>{},onbotmessageinit:()=>{},onaskQuestion:()=>{}})}),t(Ie);var Te=e(Ie,2),ot=e(a(Te),4);Ot(ot);var rt=e(ot,6),lt=a(rt);s(lt,{name:"predefinedQuestion"});var dt=e(lt,2);s(dt,{name:"edit"});var ct=e(dt,2);s(ct,{name:"newConversation"});var ut=e(ct,2);s(ut,{name:"voteUp"});var vt=e(ut,2);s(vt,{name:"voteDown"});var pt=e(vt,2);s(pt,{name:"retry"});var mt=e(pt,2);s(mt,{name:"message"});var ht=e(mt,2);s(ht,{name:"thread"});var gt=e(ht,2);s(gt,{name:"submit"});var bt=e(gt,2);s(bt,{name:"expand"});var wt=e(bt,2);s(wt,{name:"help"});var ft=e(wt,2);s(ft,{name:"attach"});var _t=e(ft,2);s(_t,{name:"record"});var yt=e(_t,2);s(yt,{name:"reward"});var xt=e(yt,2);s(xt,{name:"share"});var qt=e(xt,2);s(qt,{name:"audio"});var kt=e(qt,2);s(kt,{name:"copy"});var St=e(kt,2);s(St,{name:"dismiss"});var It=e(St,2);s(It,{name:"menu"});var Tt=e(It,2);s(Tt,{name:"listUnordered"});var Lt=e(Tt,2);s(Lt,{name:"lightMode"});var sa=e(Lt,2);s(sa,{name:"darkMode"}),t(rt),t(Te);var oa=e(Te,2);{var ra=c=>{var g=Ua(),M=e(a(g),4),P=a(M),E=a(P),z=a(E);Ee(z,()=>i(o).popups[0].title),t(E);var A=e(E,2),J=e(a(A),2);s(J,{name:"dismiss"}),t(A),t(P);var zt=e(P,2),la=a(zt);Ee(la,()=>i(o).popups[0].content),t(zt),t(M),t(g),l(c,g)};I(oa,c=>{i(o).popups&&i(o).popups?.length>0&&c(ra)})}Z(()=>{j(ae,"aria-label",i(o).feedbackFormTitle),Pe(ea,i(o).feedbackFormMessage),j(ta,"placeholder",i(o).feedbackFormMessagePlaceholder),Pe(aa,i(o).feedbackFormEmail),j(ia,"placeholder",i(o).feedbackFormEmailPlaceholder)}),ca("submit",ae,async()=>{}),l(r,n)};I(ee,r=>{p.initialized?r(te,!1):r(U)})}t(R),t(m);var le=e(m,2);return t(x),Z(r=>{G=Ht(x,"",G,r),j(le,"id",ma)},[()=>({"color-scheme":p.colorScheme})]),l(b,x),Fe({get data(){return y()},set data(r){y(r),ne()}})}X(Rt,{data:{}},[],[],!0);var Qa=f('<iframe title="sidebar" id="sidebar" class="svelte-18d7yq9"></iframe>'),Wa=f('<div id="chat-wrapper" class="svelte-18d7yq9"><div></div> <!> <div></div></div>'),Va=f('<div id="preview"><!> <!></div>');const Ya={hash:"svelte-18d7yq9",code:`html,
|
|
28
|
-
body {width:100%;height:100%;margin:0;padding:0;}#sidebar.svelte-
|
|
29
|
-
|
|
27
|
+
dolore magna aliqua. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span> <span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate">www.very-very-longer-url-to-test.ch</span></span> <span class="reference__breadcrumb transition-colors">Organisation</span> <span class="reference__breadcrumb transition-colors">Über uns</span></span></a></div> <h2>Menu</h2> <div style="display: flex; gap: 1rem; margin-bottom: 1rem;"><div class="chat-app__header-content"><!> <!> <!> <!></div></div> <h3>Menu example</h3> <div class="context-box__content svelte-15ybqqo"><div class="context-box__menu"><div class="context-box__menu-item transition-colors"><!> <span>Menü Beispiel</span></div></div> <div class="context-box__separator"></div> <div><div class="context-box__title">Sprache auswählen</div> <div class="context-box__menu"><div class="context-box__menu-item transition-colors active"><!> <span>Deutsch</span></div> <div class="context-box__menu-item transition-colors"><!> <span>English</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Français</span></div> <div class="context-box__menu-item transition-colors"><!> <span>Italiano</span></div></div></div> <div class="context-box__separator" id="bits-c15" role="group" data-dropdown-menu-separator=""></div> <div id="bits-c16" data-dropdown-menu-radio-group="" role="group"><div class="context-box__color-scheme-selector"><div class="context-box__color-scheme-selector-button transition-colors context-box__color-scheme-selector-button--active"><!> <span>Hell</span></div> <hr class="context-box__color-scheme-selector-separator"/> <div class="context-box__color-scheme-selector-button transition-colors"><!> <span>Dunkel</span></div></div></div></div> <h2>Feedback Form</h2> <div class="dialog-content svelte-15ybqqo"><div class="dialog-header"><div class="dialog-title"><h3 class="h4">Feedback geben, um unseren Chatbot zu verbessern</h3></div> <button class="dialog-close"><span class="sr-only">Close</span> <div aria-hidden="true" class="svg svg--dismiss"><svg viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path d="m5.743 5.742 12.514 12.514"></path><path d="m18.257 5.742-12.514 12.514"></path></g></svg></div></button></div> <div class="dialog-description" id="bits-92" data-dialog-description="" data-state="open"><form name="feedback-form" class="form"><!> <div class="form__item"><label class="form__label" for="feedback"> </label> <textarea id="feedback" class="input"></textarea></div> <div class="form__item"><label class="form__label" for="email"> </label> <input type="email" id="email" class="input"/></div></form></div></div> <h2>Tooltip</h2> <div class="tooltip-container" style="height: 100px"><div class="tooltip tooltip-top" style="">I'm a tooltip</div></div></div> <div class="container text-container" style="padding-bottom: var(--spacer-r-40)"><hr/> <h2>Notifications</h2> <!></div> <div class="container text-container"><hr/> <h2>Chat</h2></div> <div class="chat-page__messages svelte-15ybqqo"></div> <div class="text-container container"><hr/> <h2>Typography</h2> <!> <hr/> <h2>Icons</h2> <div style="color: currentColor; display: flex; flex-wrap: wrap; gap: 1rem; padding-bottom: var(--spacer-r-40)"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div></div> <!>`,3),Na=b('<main class="chat-app svelte-15ybqqo"><!> <div class="chat-app__container"><div class="chat-app__main svelte-15ybqqo"><div class="chat-app__portals"></div> <!></div></div> <div></div></main>');const Za={hash:"svelte-15ybqqo",code:'.color-swatches.svelte-15ybqqo {display:flex;grid-template-columns:repeat(13, 1fr);max-width:100%;margin:0;gap:0.25rem;}.chat-app.svelte-15ybqqo {display:block;flex-grow:1;&::after {z-index:-1;position:fixed;top:0;left:0;width:100%;height:100%;background:var(--body-background);content:"";}}.chat-page__messages.svelte-15ybqqo {min-height:auto;padding-bottom:200px;}.context-menu.svelte-15ybqqo {z-index:1000;position:fixed;top:20px;right:20px;}.chat-app__main.svelte-15ybqqo {overflow:visible;overscroll-behavior:auto;background:transparent;touch-action:auto;}.card.svelte-15ybqqo {padding:1rem;border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);color:var(--card-color);&:hover {background:var(--card-hover-background);color:var(--card-hover-color);}}.dialog-content.svelte-15ybqqo {position:relative;top:0;left:0;transform:none;}.references__container.svelte-15ybqqo {background-color:var(--aside-background);}.context-box__content.svelte-15ybqqo {position:relative;}'};function Ut(w,u){Oe(u,!0),me(w,Za);let I=pe(u,"data",7),s=M(()=>p.t);ae(()=>{const l={lang:I().options.lang.value,forceTheme:I().options?.["force-theme"]?.value,apiUrl:I().options["api-url"].value,features:""};ca(()=>pa.init(l).catch(v=>{console.error("Failed to init chat logic",v)}))});const H=Ga;var _=Na();Ot(l=>{var v=A(),o=C(v);{var d=y=>{var B=Ra(),x=C(B);ee(x,17,()=>p.themeBase.fontURLs??[],te,(S,G)=>{var E=Oa();J(()=>j(E,"href",i(G))),r(S,E)});var h=e(x,2);ue(h,{id:"font-css",get css(){return p.themeBase.fontCSS}});var m=e(h,2);{let S=M(()=>ka(p.theme));ue(m,{id:"theme-css",get css(){return i(S)}})}var q=e(m,2);ue(q,{id:"app-css",get css(){return ga}});var k=e(q,2);ue(k,{id:"custom-css",get css(){return p.themeBase.customCSS}}),r(y,B)};f(o,y=>{p.initialized&&y(d)})}r(l,v)});let U;var $=a(_);{var Y=l=>{var v=ja(),o=a(v);At(o,{}),t(v),r(l,v)};f($,l=>{p.initialized&&l(Y)})}var T=e($,2),N=a(T),Z=a(N);ha(Z,(l,v)=>Sa?.(l,v),()=>"portals");var ne=e(Z,2);{var se=l=>{var v=Ja();ba(2,v,()=>wa,()=>({duration:200,delay:300})),r(l,v)},W=l=>{var v=$a(),o=C(v),d=e(a(o),8),y=a(d);{var B=c=>{var g=A(),O=C(g);ee(O,17,()=>Object.entries(p.theme.colors.brand),te,(D,F)=>{var P=M(()=>De(i(F),2));let R=()=>i(P)[0],Q=()=>i(P)[1];he(D,{name:"brand",get key(){return R()},get value(){return Q()}})}),r(c,g)};f(y,c=>{p.theme.colors?.brand&&c(B)})}t(d);var x=e(d,4),h=a(x);{var m=c=>{var g=A(),O=C(g);ee(O,17,()=>Object.entries(p.theme.colors.highlight),te,(D,F)=>{var P=M(()=>De(i(F),2));let R=()=>i(P)[0],Q=()=>i(P)[1];he(D,{name:"highlight",get key(){return R()},get value(){return Q()}})}),r(c,g)};f(h,c=>{p.theme?.colors?.highlight&&c(m)})}t(x);var q=e(x,4),k=a(q);{var S=c=>{var g=A(),O=C(g);ee(O,17,()=>Object.entries(p.theme.colors.grey),te,(D,F)=>{var P=M(()=>De(i(F),2));let R=()=>i(P)[0],Q=()=>i(P)[1];he(D,{name:"grey",get key(){return R()},get value(){return Q()}})}),r(c,g)};f(k,c=>{p.theme?.colors?.grey&&c(S)})}t(q),t(o);var G=e(o,4),E=e(a(G),8),re=a(E);n(re,{name:"avatar",class:"introduction__avatar"});var L=e(re,2);n(L,{name:"avatar",class:"message__bot-avatar"}),t(E);var K=e(E,4);fa(K,{onSubmit:()=>{},avoidFocusOnMount:!0});var X=e(K,2),le=a(X);Fe(le,{predefinedQuestion:{label:"Question one",question:""},onSubmit:()=>{},index:0});var V=e(le,2);Fe(V,{predefinedQuestion:{label:"Question two",question:""},onSubmit:()=>{},index:1});var de=e(V,2);Fe(de,{predefinedQuestion:{label:"Question three",question:""},onSubmit:()=>{},index:2}),t(X);var ge=e(X,4),je=a(ge),Je=a(je);Me(Je,{reference:{url:"https://www.liip.ch/en/blog/liip-revolutioniert-das-lohnsystem",score:.8279685974121094,metadata:{kwLang:"de",titleAi:"Revolutionizing Salary Systems with the Liip Deal",keywords:["salary system","self-organization","transparency","diversity","inclusion","Swiss HR Award"],documentIdSalt:"en"},considered:!0,display:{card:{title:"Liip revolutioniert das Lohnsystem",description:"A digital agency has developed an innovative, transparent, and self-organized salary system called the 'Liip Deal', which emphasizes equality, self-evaluation, and agility, earning it the Swiss HR Award in the category of diversity and inclusion.",badge:"www.liip.ch"},listItem:{title:"Liip revolutioniert das Lohnsystem",badge:"www.very-very-longer-url-to-test.ch",breadcrumbs:["Organisation","Über uns","Philosophie"]}},referenceIndex:{all:11,used:4}}});var Ue=e(Je,2);Me(Ue,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!",description:"The article celebrates 15 years of a Swiss digital agency known for its innovative, sustainable, and client-focused approach, highlighting its history of growth, organizational evolution, and long-standing client relationships, while emphasizing its commitment to Swiss quality and environmental responsibility.",badge:"www.liip.ch"},listItem:{title:"15 years of Liip, and what a journey it's been!",badge:"www.liip.ch",breadcrumbs:["Organisation","Team"]}},referenceIndex:{all:12,used:2}}});var $t=e(Ue,2);Me($t,{reference:{url:"https://www.liip.ch/en/blog/15-years-liip",score:.8248223662376404,metadata:{kwLang:"de",titleAi:"15 Years of Innovation and Sustainability in a Swiss Digital Agency",keywords:["digital agency","sustainability","agile development","Swiss quality","organizational innovation"],documentIdSalt:"en"},considered:!0,display:{card:{title:"15 years of Liip, and what a journey it's been!"},listItem:{title:"15 years of Liip, and what a journey it's been!"}},referenceIndex:{all:12,used:10}}}),t(je),t(ge);var be=e(ge,2),$e=a(be),we=e(a($e));Ae(we,"data-source",JSON.stringify({url:"https://www.liip.ch",considered:!0,referencesIndex:{all:3,used:1},display:{card:{title:"Reference tooltip example",description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",breadcrumbs:["Organisation","Über uns","Philosophie"],badge:"www.liip.ch"}}})),Ae(we,"data-used-index","1"),Ae(we,"data-all-index","3"),z(),t($e),t(be);var fe=e(be,2),Ne=a(fe),Ze=a(Ne),Nt=e(a(Ze),2);n(Nt,{name:"externalLink",class:"reference__icon transition-colors"}),t(Ze),z(4),t(Ne),t(fe);var _e=e(fe,4),Qe=a(_e),We=a(Qe);_a(We,{});var Ve=e(We,2);At(Ve,{});var Ye=e(Ve,2);{let c=M(()=>i(s).aboutThisChat||"");ya(Ye,{get content(){return i(c)}})}var Zt=e(Ye,2);xa(Zt,{onclick:()=>{}}),t(Qe),t(_e);var ye=e(_e,4),xe=a(ye),Ke=a(xe),Qt=a(Ke);n(Qt,{name:"externalLink"}),z(2),t(Ke),t(xe);var qe=e(xe,4),Xe=e(a(qe),2),ke=a(Xe),Wt=a(ke);n(Wt,{name:"internalLink"}),z(2),t(ke);var Se=e(ke,2),Vt=a(Se);n(Vt,{name:"internalLink"}),z(2),t(Se);var Ie=e(Se,2),Yt=a(Ie);n(Yt,{name:"internalLink"}),z(2),t(Ie);var et=e(Ie,2),Kt=a(et);n(Kt,{name:"internalLink"}),z(2),t(et),t(Xe),t(qe);var tt=e(qe,4),at=a(tt),Te=a(at),Xt=a(Te);n(Xt,{name:"lightMode"}),z(2),t(Te);var it=e(Te,4),ea=a(it);n(ea,{name:"darkMode"}),z(2),t(it),t(at),t(tt),t(ye);var nt=e(ye,4),st=e(a(nt),2),ce=a(st),ot=a(ce);qa(ot,{classificationConfig:{impact:{label:"Impact",options:[{label:"Positive",value:1},{label:"Negative",value:2}]},quality:{label:"Quality",options:[{label:"Good",value:1},{label:"Bad",value:2}]}},impact:0,quality:0});var Le=e(ot,2),ze=a(Le),ta=a(ze,!0);t(ze);var aa=e(ze,2);t(Le);var rt=e(Le,2),Ce=a(rt),ia=a(Ce,!0);t(Ce);var na=e(Ce,2);t(rt),t(ce),t(st),t(nt),z(4),t(G);var Be=e(G,2),sa=e(a(Be),4);jt(sa),t(Be);var Pe=e(Be,4);ee(Pe,21,()=>H,te,(c,g)=>{Ia(c,{get message(){return i(g)},onmessageupdate:()=>{},onbotmessageinit:()=>{},onaskQuestion:()=>{}})}),t(Pe);var Ee=e(Pe,2),lt=e(a(Ee),4);Jt(lt);var dt=e(lt,6),ct=a(dt);n(ct,{name:"predefinedQuestion"});var ut=e(ct,2);n(ut,{name:"edit"});var vt=e(ut,2);n(vt,{name:"newConversation"});var pt=e(vt,2);n(pt,{name:"voteUp"});var ht=e(pt,2);n(ht,{name:"voteDown"});var mt=e(ht,2);n(mt,{name:"retry"});var gt=e(mt,2);n(gt,{name:"message"});var bt=e(gt,2);n(bt,{name:"thread"});var wt=e(bt,2);n(wt,{name:"submit"});var ft=e(wt,2);n(ft,{name:"expand"});var _t=e(ft,2);n(_t,{name:"help"});var yt=e(_t,2);n(yt,{name:"attach"});var xt=e(yt,2);n(xt,{name:"record"});var qt=e(xt,2);n(qt,{name:"reward"});var kt=e(qt,2);n(kt,{name:"share"});var St=e(kt,2);n(St,{name:"audio"});var It=e(St,2);n(It,{name:"copy"});var Tt=e(It,2);n(Tt,{name:"dismiss"});var Lt=e(Tt,2);n(Lt,{name:"menu"});var zt=e(Lt,2);n(zt,{name:"listUnordered"});var Ct=e(zt,2);n(Ct,{name:"lightMode"});var oa=e(Ct,2);n(oa,{name:"darkMode"}),t(dt),t(Ee);var ra=e(Ee,2);{var la=c=>{var g=Ua(),O=e(a(g),4),D=a(O),F=a(D),P=a(F);Ge(P,()=>i(s).popups[0].title),t(F);var R=e(F,2),Q=e(a(R),2);n(Q,{name:"dismiss"}),t(R),t(D);var Bt=e(D,2),da=a(Bt);Ge(da,()=>i(s).popups[0].content),t(Bt),t(O),t(g),r(c,g)};f(ra,c=>{i(s).popups&&i(s).popups?.length>0&&c(la)})}J(()=>{j(ce,"aria-label",i(s).feedbackFormTitle),He(ta,i(s).feedbackFormMessage),j(aa,"placeholder",i(s).feedbackFormMessagePlaceholder),He(ia,i(s).feedbackFormEmail),j(na,"placeholder",i(s).feedbackFormEmailPlaceholder)}),ua("submit",ce,async()=>{}),r(l,v)};f(ne,l=>{p.initialized?l(W,!1):l(se)})}t(N),t(T);var oe=e(T,2);return t(_),J(l=>{U=Rt(_,"",U,l),j(oe,"id",ma)},[()=>({"color-scheme":p.colorScheme})]),r(w,_),Re({get data(){return I()},set data(l){I(l),ve()}})}ie(Ut,{data:{}},[],[],!0);var Qa=b('<iframe title="sidebar" id="sidebar" class="svelte-1fwcoxh"></iframe>'),Wa=b('<img class="preview-bg-image svelte-1fwcoxh" alt="Preview background"/>'),Va=b('<div id="chat-wrapper"><!> <div></div> <!> <div></div></div>'),Ya=b('<div id="preview"><!> <!></div>');const Ka={hash:"svelte-1fwcoxh",code:`html,
|
|
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
|
+
&: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
|
+
/* 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 Xa(w,u){Oe(u,!0),me(w,Ka);let I=Ba(u,["$$slots","$$events","$$legacy","$$host"]),s=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:",""));Pa("?"+d.toString(),{replaceState:!0})}}});const H=o=>`/build/${o}/liipgpt-${o}.iife.js`,_=o=>/\.(png|jpe?g|gif|webp|svg|bmp|ico)(\?.*)?$/i.test(o),U=async o=>{o==="build"&&(await import(H("chat")),await import(H("button"))),o==="dev"&&(await Pt(()=>import("../chunks/CH59pkDp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),await Pt(()=>import("../chunks/CwoM9ZsT.js"),__vite__mapDeps([14,1,2,3,13,6,7,5,8,9,12]),import.meta.url)),o==="server"&&(import(Ht(u.data.options,"chat")),import(Ht(u.data.options,"button")))};let $="server",Y=M(()=>u.data.options?.["preview-mode"]?.value??$);ae(()=>{U(i(Y))});const T=`./sidebar${Ea.url.search}`;let N=Dt(void 0),Z=Dt(void 0);const ne=(o,d)=>{const y=document.createElement("script"),B=document.createTextNode(d);y.appendChild(B),o.replaceChildren(y)};ae(()=>{i(N)&&ne(i(N),i(s).options.CHAT_CONFIG_OVERRIDE.value||"")}),ae(()=>{i(Z)&&ne(i(Z),i(s).options.onclosechat.value||"")});const se=M(()=>i(s)&&i(s).options["show-components"].value);var W=Ya();Ot(o=>{var d=A(),y=C(d);{var B=x=>{var h=A(),m=C(h);{var q=S=>{Ft.title="LiipGPT Configurator | Components"},k=S=>{Ft.title="LiipGPT Configurator"};f(m,S=>{i(s).options["show-components"].value?S(q):S(k,!1)},!0)}r(x,h)};f(y,x=>{x(B,!1)})}r(o,d)});var oe=a(W);{var l=o=>{var d=Qa();J(()=>j(d,"src",T)),r(o,d)};f(oe,o=>{i(s).options["hide-sidebar"].value||o(l)})}var v=e(oe,2);Ta(v,()=>i(s),o=>{var d=A(),y=C(d);{var B=h=>{var m=A(),q=C(m);va(q,{onerror:k=>console.error("Rendering error of components",k)},k=>{Ut(k,Ca(()=>I))}),r(h,m)},x=h=>{var m=Va();let q;var k=a(m);{var S=L=>{var K=A(),X=C(K);{var le=V=>{var de=Wa();J(()=>j(de,"src",i(s).options["preview-background"].value)),r(V,de)};f(X,V=>{_(i(s).options["preview-background"].value)&&V(le)})}r(L,K)};f(k,L=>{i(s).options.flyout.value&&i(s).options["preview-background"].value&&L(S)})}var G=e(k,2);Et(G,L=>Mt(N,L),()=>i(N));var E=e(G,2);Ge(E,()=>La(i(s).options));var re=e(E,2);Et(re,L=>Mt(Z,L),()=>i(Z)),t(m),J(L=>q=Gt(m,1,"svelte-1fwcoxh",null,q,L),[()=>({"has-bg-image":i(s).options.flyout.value&&i(s).options["preview-background"].value&&_(i(s).options["preview-background"].value)})]),r(h,m)};f(y,h=>{i(se)?h(B):h(x,!1)})}r(o,d)}),t(W),J(()=>Gt(W,1,za([{"components-preview":i(se)}]),"svelte-1fwcoxh")),r(w,W),Re()}ie(Xa,{},[],[],!0);export{Xa as component};
|