@liip/liipgpt 3.12.2 → 3.14.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/chat/button-or-link-PGZlLHeY.js +389 -0
  2. package/chat/chat-panel-CMEF6dCY.js +167 -0
  3. package/chat/liipgpt-chat.iife.js +154 -146
  4. package/chat/liipgpt-chat.js +3 -547
  5. package/configurator/_app/env.js +1 -1
  6. package/configurator/_app/immutable/chunks/{BndQp4ie.js → 1875LovI.js} +1 -1
  7. package/configurator/_app/immutable/chunks/{C6xrTJ8-.js → 7SXCsozV.js} +1 -1
  8. package/configurator/_app/immutable/chunks/{DmZKIk3Y.js → BFOCQ3BT.js} +1 -1
  9. package/configurator/_app/immutable/chunks/BY7oLUru.js +151 -0
  10. package/configurator/_app/immutable/chunks/C9E5N_bV.js +1 -0
  11. package/configurator/_app/immutable/chunks/CO3VICxJ.js +2 -0
  12. package/configurator/_app/immutable/chunks/{W0DG3qIi.js → CbotzAWM.js} +1 -1
  13. package/configurator/_app/immutable/chunks/CeK7PEDP.js +16 -0
  14. package/configurator/_app/immutable/chunks/ChVlwB2a.js +1 -0
  15. package/configurator/_app/immutable/chunks/{wBAqx-SG.js → CuN4mAaD.js} +1 -1
  16. package/configurator/_app/immutable/chunks/{nkdIuSLi.js → DOcPbtv_.js} +1 -1
  17. package/configurator/_app/immutable/chunks/DzSGfCej.js +1 -0
  18. package/configurator/_app/immutable/chunks/{B1Joifa9.js → U8ZkcQ3P.js} +1 -1
  19. package/configurator/_app/immutable/chunks/{BpZBEnLx.js → _ctYO-6x.js} +1 -1
  20. package/configurator/_app/immutable/chunks/j6EnY7OK2.js +2 -0
  21. package/configurator/_app/immutable/entry/{app.N8qcqFkp.js → app.sVdrjZAP.js} +2 -2
  22. package/configurator/_app/immutable/entry/start.DaITnMLh.js +1 -0
  23. package/configurator/_app/immutable/nodes/{0.DnB99G2N.js → 0.CVHzDxkZ.js} +2 -2
  24. package/configurator/_app/immutable/nodes/{1.DaqCyvgg.js → 1.CUreVIW4.js} +1 -1
  25. package/configurator/_app/immutable/nodes/{2.F3TuebRJ.js → 2.D9FNKDzU.js} +5 -5
  26. package/configurator/_app/immutable/nodes/{3.BbNw4LYP.js → 3.D2_zL1r0.js} +1 -1
  27. package/configurator/_app/version.json +1 -1
  28. package/configurator/index.html +6 -6
  29. package/configurator/sidebar.html +6 -6
  30. package/index.d.ts +7 -7
  31. package/package.json +1 -1
  32. package/search-summary/liipgpt-search-summary.iife.js +7 -7
  33. package/search-summary/liipgpt-search-summary.js +5 -5
  34. package/configurator/_app/immutable/chunks/C7GamMay.js +0 -16
  35. package/configurator/_app/immutable/chunks/CYSkUxy-.js +0 -2
  36. package/configurator/_app/immutable/chunks/DK5x2wSR.js +0 -1
  37. package/configurator/_app/immutable/chunks/q8gaG5yu.js +0 -143
  38. package/configurator/_app/immutable/entry/start.C7KBUclR.js +0 -1
  39. /package/configurator/_app/immutable/chunks/{CNNudH1c.js → 88r4b_k4.js} +0 -0
  40. /package/configurator/_app/immutable/chunks/{DHHLckcz.js → DQTfiEmH.js} +0 -0
  41. /package/configurator/_app/immutable/chunks/{MqTIsSeD.js → Ti2dF09M.js} +0 -0
@@ -0,0 +1 @@
1
+ import{Lt as e,Mt as t,Rt as n,c as r,i,kt as a,o,ot as s,qt as c}from"./DK3lEKRX.js";import"./Bo0U8J3e.js";import"./CFKVnMbq.js";import"./CsGLkWF6.js";import"./hJTLHSgs.js";import"./BaFk5JeE.js";import"./BJVrdkuG.js";import"./CbotzAWM.js";import"./DzSGfCej.js";import"./DQTfiEmH.js";import"./I5DxyXWx.js";import{t as l}from"./CO3VICxJ.js";import"./BFOCQ3BT.js";import"./Ti2dF09M.js";import{t as u}from"./88r4b_k4.js";function d(i,d){n(d,!0);let f=o(d,`forceTheme`,7),p=o(d,`apiUrl`,7),m=o(d,`apiKey`,7),h=o(d,`speechRecognitionApiKey`,7),g=o(d,`lang`,7),_=o(d,`features`,7),v=o(d,`loaderBackground`,7),y=o(d,`loaderColor`,7),b=o(d,`flyout`,7),x=o(d,`flyoutStyle`,7),S=o(d,`flyoutClass`,7),C=o(d,`chatClass`,7),w=o(d,`inlineLayout`,7),T=o(d,`forceChatPage`,7),E=o(d,`hidePredefinedQuestions`,7),D=o(d,`autofirePredefinedQuestionId`,7),O=o(d,`additionalStartParameters`,7),k=o(d,`question`,7),A=o(d,`mode`,7),j=o(d,`source`,7),M=o(d,`cache`,7),N=a(()=>({forceTheme:f(),apiUrl:p(),apiKey:m(),speechRecognitionApiKey:h(),lang:g(),features:_(),loaderBackground:v(),loaderColor:y(),flyout:b(),flyoutStyle:x(),flyoutClass:S(),chatClass:C(),inlineLayout:w(),forceChatPage:T(),hidePredefinedQuestions:E(),autofirePredefinedQuestionId:D(),additionalStartParameters:O(),question:k(),mode:A(),source:j(),cache:M()}));var P={get forceTheme(){return f()},set forceTheme(e){f(e),t()},get apiUrl(){return p()},set apiUrl(e){p(e),t()},get apiKey(){return m()},set apiKey(e){m(e),t()},get speechRecognitionApiKey(){return h()},set speechRecognitionApiKey(e){h(e),t()},get lang(){return g()},set lang(e){g(e),t()},get features(){return _()},set features(e){_(e),t()},get loaderBackground(){return v()},set loaderBackground(e){v(e),t()},get loaderColor(){return y()},set loaderColor(e){y(e),t()},get flyout(){return b()},set flyout(e){b(e),t()},get flyoutStyle(){return x()},set flyoutStyle(e){x(e),t()},get flyoutClass(){return S()},set flyoutClass(e){S(e),t()},get chatClass(){return C()},set chatClass(e){C(e),t()},get inlineLayout(){return w()},set inlineLayout(e){w(e),t()},get forceChatPage(){return T()},set forceChatPage(e){T(e),t()},get hidePredefinedQuestions(){return E()},set hidePredefinedQuestions(e){E(e),t()},get autofirePredefinedQuestionId(){return D()},set autofirePredefinedQuestionId(e){D(e),t()},get additionalStartParameters(){return O()},set additionalStartParameters(e){O(e),t()},get question(){return k()},set question(e){k(e),t()},get mode(){return A()},set mode(e){A(e),t()},get source(){return j()},set source(e){j(e),t()},get cache(){return M()},set cache(e){M(e),t()}};{let e=(e,t=c)=>{l(e,r({host:d.$$host,get onError(){return t()}},()=>s(N)))},t=a(()=>s(N).flyout??!1);u(i,{get silent(){return s(t)},body:e,$$slots:{body:!0}})}return e(P)}customElements.define(`liipgpt-chat`,i(d,{forceTheme:{attribute:`force-theme`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},speechRecognitionApiKey:{attribute:`speech-recognition-api-key`,type:`String`},lang:{attribute:`lang`,type:`String`},features:{attribute:`features`,type:`String`},loaderBackground:{attribute:`loader-background`,type:`String`},loaderColor:{attribute:`loader-color`,type:`String`},flyout:{attribute:`flyout`,type:`Boolean`},flyoutStyle:{attribute:`flyout-style`,type:`String`},flyoutClass:{attribute:`flyout-class`,type:`String`},chatClass:{attribute:`chat-class`,type:`String`},inlineLayout:{attribute:`inline-layout`,type:`Boolean`},forceChatPage:{attribute:`force-chat-page`,type:`Boolean`},hidePredefinedQuestions:{attribute:`hide-predefined-questions`,type:`Boolean`},autofirePredefinedQuestionId:{attribute:`autofire-predefined-question-id`,type:`String`},additionalStartParameters:{attribute:`additional-start-parameters`,type:`String`},question:{attribute:`question`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[],{mode:`open`}));export{d as LiipGPTChat};
@@ -1 +1 @@
1
- import"./DK3lEKRX.js";import{a as e,i as t,r as n}from"./nkdIuSLi.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
1
+ import"./DK3lEKRX.js";import{a as e,i as t,r as n}from"./DOcPbtv_.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return t.current?t.current.from:null},get to(){return t.current?t.current.to:null},get type(){return t.current?t.current.type:null},get willUnload(){return t.current?t.current.willUnload:null},get delta(){return t.current?t.current.delta:null},get complete(){return t.current?t.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),n.updated.check;var i=r;export{i as t};
@@ -1 +1 @@
1
- import{Dt as e,Nt as t,Tt as n,ct as r,ot as i,r as a,st as o,t as s}from"./DK3lEKRX.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,`searchParams`,{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder,new TextDecoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ee=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),ee(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=_(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function te(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var ne=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function re(e){let t=[];return{pattern:e===`/`?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ne.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_kvl68p?.base??`/configurator`,de=globalThis.__sveltekit_kvl68p?.assets??x??``,fe=`1788984576380`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ge=location.origin;function _e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ve={...w,"":w.hover};function ye(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function be(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ye(e)}}function xe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ge&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=ye(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ve[r??`off`],preload_data:ve[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let n=t(e),r=!0;function i(){r=!0,n.update(e=>e)}function a(e){r=!1,n.set(e)}function o(e){let t;return n.subscribe(n=>{(t===void 0||r&&n!==t)&&e(t=n)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:n}=t(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:n,check:r}}function O(e,t,n){return e.origin!==ge||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Te(e){}var Ee=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ee,`entries`]);var De=new Set([...Ee]);new Set([...De,`actions`,`entries`]);function Oe(e){return e.filter(e=>e!=null)}function ke(e){return e instanceof c||e instanceof u?e.status:500}function Ae(e){return e instanceof u?e.text:`Internal Error`}var k,A,j,je=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Me=`a:`;je?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Me)},A={current:null},j={current:!1}):(k=new class{#e=e({});get data(){return i(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return i(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return i(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return i(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return i(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return i(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return i(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(Me));get url(){return i(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},j=new class{#e=e(!1);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>j.current=!0);function Ne(e){Object.assign(k,e)}var Pe={spanContext(){return Fe},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Fe={traceId:``,spanId:``,traceFlags:0},{onMount:Ie,tick:Le}=s,Re=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:t(null),updated:we()};function ze(e){N[e]=T()}function Be(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ve(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}function He(){}var Ue,We,L,R,Ge,z,B=[],V=[],H=null;function Ke(){H?.fork?.then(e=>e?.discard()),H=null}var U=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,K=!1,Xe=!0,q=!1,J=!1,Ze=!1,Qe=!1,$e,Y,X,Z,et=new Set,tt=new Map;async function nt(e,t,n){globalThis.__sveltekit_kvl68p?.data&&globalThis.__sveltekit_kvl68p.data,document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ue=ce(e),R=document.documentElement,Ge=t,We=e.nodes[0],L=e.nodes[1],We(),L(),Y=history.state?.[S],X=history.state?.[C],Y||(Y=X=Date.now(),history.replaceState({...history.state,[S]:Y,[C]:X},``));let r=N[Y];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await jt(Ge,n)):(await Q({type:`enter`,url:_e(z.hash?Lt(new URL(location.href)):location.href),replace_state:!0}),i()),At()}function rt(){B.length=0,Qe=!1}function it(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function at(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ot(){ze(Y),ue(me,N),it(X),ue(pe,P)}async function st(e,t,n,i){let a;t.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{t.invalidateAll&&(Qe=!0,a=[...tt.keys()]),t.invalidate&&t.invalidate.forEach(kt)}}),t.invalidateAll&&r().then(r).then(()=>{tt.forEach(({resource:e},t)=>{a?.includes(t)&&e.refresh?.()})})}async function ct(e){if(e.id!==H?.id){Ke();let t={};et.add(t),H={id:e.id,token:t,promise:vt({...e,preload:t}).then(e=>(et.delete(t),e.type===`loaded`&&e.state.error&&Ke(),e)),fork:null}}return H.promise}async function lt(e){let t=(await St(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ut(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};G={...e.state,nav:r};let i=document.querySelector(`style[data-sveltekit]`);if(i&&i.remove(),Object.assign(k,e.props.page),$e=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),at(X),n){let e={from:null,to:{...r,scroll:N[Y]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}K=!0}async function dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:It(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Pe,current:Pe},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=pt(t,r,n);return s&&e(i.href),a},setHeaders:()=>{},depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:K?te(r,i.href,t):y(r,t)}}function mt(e,t,n,r,i,a){if(Qe)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function ht(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function gt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function _t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:It(k),constructors:[]}}}async function vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return et.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(()=>{})),d.forEach(e=>e?.[1]().catch(()=>{}));let f=G.url?e!==wt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=gt(G.url,n),h=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!mt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,ft({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:ht(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(()=>{});let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(et.has(a))return _t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),u;if((void 0)?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Ve(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await yt(e,_,o);return d?dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Et(n,{id:i.id},u,s)}else _.push(void 0);return dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function bt({status:e,error:t,url:n,route:r}){let i={};try{return dt({url:n,params:i,branch:[await ft({loader:We,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:ht(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return st(new URL(e.location,location.href),{},0);throw e}}async function xt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>pt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function St(e,t){if(e&&!O(e,x,z.hash)){let n=await xt(e);if(!n)return;let r=Ct(n);for(let n of Ue){let i=n.exec(r);if(i)return{id:wt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Ct(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function wt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Tt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Ft(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return q||qe.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=He,block:p=He,event:m}){let h=Z;Z=d;let g=await St(t,!1),_=e===`enter`?Ft(G,g,t,e):Tt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Z===d&&(Z=h);return}let ee=Y,v=X;f(),q=!0,K&&_.navigation.type!==`enter`&&F.navigating.set(A.current=_.navigation);let y=g&&await vt(g);if(!y){if(O(t,x,z.hash))return await I(t,s);y=await Et(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}y=await bt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(t,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=s?0:1,n={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Be(Y,X)}let te=g&&H?.id===g.id?H.fork:null;H=null,y.props.page.state=c;let b;if(K){let e=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t);let r=te&&await te;r?b=r.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=o?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await r(),await r();let re=null;if(Xe){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(Rt(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!i&&!ie&&Pt(t,!re),Xe=!0,y.props.page&&(M&&Object.assign(y.props.page,M),Object.assign(k,y.props.page)),q=!1,e===`popstate`&&at(X),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),F.navigating.set(A.current=null)}async function Et(e,t,n,r,i){return e.origin===ge&&e.pathname===location.pathname&&!Ye?await bt({status:r,error:n,url:e,route:t}):await I(e,i)}function Dt(){let e,t={element:void 0,href:void 0},n;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,w.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,r),R.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(lt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=be(e,R),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=xe(i,x,z.hash);if(s||c)return;let l=D(i),u=o&&wt(G.url)===wt(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=w.tap;let e=await St(o,!1);if(!e)return;ct(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,lt(o))}function o(){i.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:r}=xe(e,x,z.hash);if(n||r)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&i.observe(e),a.preload_code===w.eager&&lt(t))}}W.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Ot(e,t={}){return e=new URL(_e(e)),e.origin===ge?st(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function kt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function At(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ot(),!q){let e=Ft(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ot()}),navigator.connection?.saveData||Dt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=be(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=xe(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Tt({url:r,type:`link`,event:t})?q=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(J=!0,ze(Y),e(r),!s.replace_state)return;J=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Nt)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Z={},n===Y)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===X&&(Ze||s)){i!==k.state&&(k.state=i),e(a),N[Y]=T(),r&&scrollTo(r.x,r.y),Y=n;return}let c=n-Y;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{Y=n,X=o},block:()=>{history.go(-c)},nav_token:Z,event:t})}else J||(e(new URL(location.href)),z.hash&&location.reload())}),addEventListener(`hashchange`,()=>{J&&(J=!1,history.replaceState({...history.state,[S]:++Y,[C]:X},``,location.href))});for(let e of document.querySelectorAll(`link`))Re.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(A.current=null)});function e(e){G.url=k.url=e,F.page.set(It(k)),F.page.notify()}}async function jt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await St(u,!1)||{}),d=Ue.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Mt(r.uses)),ft({loader:z.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:ht(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await dt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await bt({status:ke(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await ut(f,e,p)}function Mt(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??[])}}var Nt=!1;function Pt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Rt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Nt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Nt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Ft(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function It(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 Lt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Rt(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,A as i,nt as n,j as o,F as r,Te as s,Ot as t};
1
+ import{Dt as e,Nt as t,Tt as n,ct as r,ot as i,r as a,st as o,t as s}from"./DK3lEKRX.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,`searchParams`,{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder,new TextDecoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ee=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),ee(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=_(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function te(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var ne=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function re(e){let t=[];return{pattern:e===`/`?/^\/$/:RegExp(`^${ae(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return se(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return se(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=ne.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return se(e)}).join(``)}).join(``)}/?$`),params:t}}function ie(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ae(e){return e.slice(1).split(`/`).filter(ie)}function oe(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function se(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}function ce({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=re(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return oe(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function le(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ue(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_p1i40r?.base??`/configurator`,de=globalThis.__sveltekit_p1i40r?.assets??x??``,fe=`1789157303831`,pe=`sveltekit:snapshot`,me=`sveltekit:scroll`,he=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ge=location.origin;function _e(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var ve={...w,"":w.hover};function ye(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function be(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=ye(e)}}function xe(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||O(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===ge&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function D(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=ye(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:ve[r??`off`],preload_data:ve[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Se(e){let n=t(e),r=!0;function i(){r=!0,n.update(e=>e)}function a(e){r=!1,n.set(e)}function o(e){let t;return n.subscribe(n=>{(t===void 0||r&&n!==t)&&e(t=n)})}return{notify:i,set:a,subscribe:o}}var Ce={v:()=>{}};function we(){let{set:e,subscribe:n}=t(!1);async function r(){clearTimeout(void 0);try{let t=await fetch(`${de}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==fe;return n&&(e(!0),Ce.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:n,check:r}}function O(e,t,n){return e.origin!==ge||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Te(e){}var Ee=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...Ee,`entries`]);var De=new Set([...Ee]);new Set([...De,`actions`,`entries`]);function Oe(e){return e.filter(e=>e!=null)}function ke(e){return e instanceof c||e instanceof u?e.status:500}function Ae(e){return e instanceof u?e.text:`Internal Error`}var k,A,j,je=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),Me=`a:`;je?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(Me)},A={current:null},j={current:!1}):(k=new class{#e=e({});get data(){return i(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return i(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return i(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return i(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return i(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return i(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return i(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(Me));get url(){return i(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},j=new class{#e=e(!1);get current(){return i(this.#e)}set current(e){n(this.#e,e)}},Ce.v=()=>j.current=!0);function Ne(e){Object.assign(k,e)}var Pe={spanContext(){return Fe},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Fe={traceId:``,spanId:``,traceFlags:0},{onMount:Ie,tick:Le}=s,Re=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),M=null,N=le(`sveltekit:scroll`)??{},P=le(`sveltekit:snapshot`)??{},F={url:Se({}),page:Se({}),navigating:t(null),updated:we()};function ze(e){N[e]=T()}function Be(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;P[n];)delete P[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ve(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}function He(){}var Ue,We,L,R,Ge,z,B=[],V=[],H=null;function Ke(){H?.fork?.then(e=>e?.discard()),H=null}var U=new Map,qe=new Set,Je=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},Ye=!1,K=!1,Xe=!0,q=!1,J=!1,Ze=!1,Qe=!1,$e,Y,X,Z,et=new Set,tt=new Map;async function nt(e,t,n){globalThis.__sveltekit_p1i40r?.data&&globalThis.__sveltekit_p1i40r.data,document.URL!==location.href&&(location.href=location.href),z=e,await e.hooks.init?.(),Ue=ce(e),R=document.documentElement,Ge=t,We=e.nodes[0],L=e.nodes[1],We(),L(),Y=history.state?.[S],X=history.state?.[C],Y||(Y=X=Date.now(),history.replaceState({...history.state,[S]:Y,[C]:X},``));let r=N[Y];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await jt(Ge,n)):(await Q({type:`enter`,url:_e(z.hash?Lt(new URL(location.href)):location.href),replace_state:!0}),i()),At()}function rt(){B.length=0,Qe=!1}function it(e){V.some(e=>e?.snapshot)&&(P[e]=V.map(e=>e?.snapshot?.capture()))}function at(e){P[e]?.forEach((e,t)=>{V[t]?.snapshot?.restore(e)})}function ot(){ze(Y),ue(me,N),it(X),ue(pe,P)}async function st(e,t,n,i){let a;t.invalidateAll&&Ke(),await Q({type:`goto`,url:_e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{t.invalidateAll&&(Qe=!0,a=[...tt.keys()]),t.invalidate&&t.invalidate.forEach(kt)}}),t.invalidateAll&&r().then(r).then(()=>{tt.forEach(({resource:e},t)=>{a?.includes(t)&&e.refresh?.()})})}async function ct(e){if(e.id!==H?.id){Ke();let t={};et.add(t),H={id:e.id,token:t,promise:vt({...e,preload:t}).then(e=>(et.delete(t),e.type===`loaded`&&e.state.error&&Ke(),e)),fork:null}}return H.promise}async function lt(e){let t=(await St(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function ut(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};G={...e.state,nav:r};let i=document.querySelector(`style[data-sveltekit]`);if(i&&i.remove(),Object.assign(k,e.props.page),$e=new z.root({target:t,props:{...e.props,stores:F,components:V},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),at(X),n){let e={from:null,to:{...r,scroll:N[Y]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}K=!0}async function dt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Oe(n).map(e=>e.node.component),page:It(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function ft({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Pe,current:Pe},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},z.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=pt(t,r,n);return s&&e(i.href),a},setHeaders:()=>{},depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:K?te(r,i.href,t):y(r,t)}}function mt(e,t,n,r,i,a){if(Qe)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(B.some(t=>t(new URL(e))))return!0;return!1}function ht(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function gt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function _t({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:It(k),constructors:[]}}}async function vt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(H?.id===e)return et.delete(H.token),H.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(()=>{})),d.forEach(e=>e?.[1]().catch(()=>{}));let f=G.url?e!==wt(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=gt(G.url,n),h=!1,g=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!mt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,ft({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:ht(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(()=>{});let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(et.has(a))return _t({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=ke(t),u;if((void 0)?.includes(t))s=t.status??s,u=t.error;else if(t instanceof c)u=t.body;else{if(await F.updated.check())return await Ve(),await I(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await yt(e,_,o);return d?dt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Et(n,{id:i.id},u,s)}else _.push(void 0);return dt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function bt({status:e,error:t,url:n,route:r}){let i={};try{return dt({url:n,params:i,branch:[await ft({loader:We,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:ht(null)}),{node:await L(),loader:L,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return st(new URL(e.location,location.href),{},0);throw e}}async function xt(e){let t=e.href;if(U.has(t))return U.get(t);let n;try{let r=(async()=>{let t=await z.hooks.reroute({url:new URL(e),fetch:async(t,n)=>pt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);z.hash?n.hash=t:n.pathname=t,t=n}return t})();U.set(t,r),n=await r}catch{U.delete(t);return}return n}async function St(e,t){if(e&&!O(e,x,z.hash)){let n=await xt(e);if(!n)return;let r=Ct(n);for(let n of Ue){let i=n.exec(r);if(i)return{id:wt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Ct(e){return f(z.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function wt(e){return(z.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Tt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Ft(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return q||qe.forEach(e=>e(c)),o?null:s}async function Q({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=He,block:p=He,event:m}){let h=Z;Z=d;let g=await St(t,!1),_=e===`enter`?Ft(G,g,t,e):Tt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Z===d&&(Z=h);return}let ee=Y,v=X;f(),q=!0,K&&_.navigation.type!==`enter`&&F.navigating.set(A.current=_.navigation);let y=g&&await vt(g);if(!y){if(O(t,x,z.hash))return await I(t,s);y=await Et(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=g?.url||t,Z!==d)return _.reject(Error(`navigation aborted`)),!1;if(y.type===`redirect`){if(l<20){await Q({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}y=await bt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else y.props.page.status>=400&&await F.updated.check()&&(await Ve(),await I(t,s));if(rt(),ze(ee),it(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=s?0:1,n={[S]:Y+=e,[C]:X+=e,[he]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||Be(Y,X)}let te=g&&H?.id===g.id?H.fork:null;H=null,y.props.page.state=c;let b;if(K){let e=(await Promise.all(Array.from(Je,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let n=_.navigation.to;G={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t);let r=te&&await te;r?b=r.commit():(M=null,$e.$set(y.props),M&&Object.assign(y.props.page,M),Ne(y.props.page),b=o?.()),Ze=!0}else await ut(y,Ge,!1);let{activeElement:ne}=document;await b,await r(),await r();let re=null;if(Xe){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(re=t.hash&&document.getElementById(Rt(t)))?re.scrollIntoView():scrollTo(0,0)}let ie=document.activeElement!==ne&&document.activeElement!==document.body;!i&&!ie&&Pt(t,!re),Xe=!0,y.props.page&&(M&&Object.assign(y.props.page,M),Object.assign(k,y.props.page)),q=!1,e===`popstate`&&at(X),_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),W.forEach(e=>e(_.navigation)),F.navigating.set(A.current=null)}async function Et(e,t,n,r,i){return e.origin===ge&&e.pathname===location.pathname&&!Ye?await bt({status:r,error:n,url:e,route:t}):await I(e,i)}function Dt(){let e,t={element:void 0,href:void 0},n;R.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{a(n,w.hover)},20)});function r(e){e.defaultPrevented||a(e.composedPath()[0],w.tap)}R.addEventListener(`mousedown`,r),R.addEventListener(`touchstart`,r,{passive:!0});let i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(lt(new URL(t.target.href)),i.unobserve(t.target))},{threshold:0});async function a(e,r){let i=be(e,R),a=i===t.element&&i?.href===t.href&&r>=n;if(!i||a)return;let{url:o,external:s,download:c}=xe(i,x,z.hash);if(s||c)return;let l=D(i),u=o&&wt(G.url)===wt(o);if(!(l.reload||u))if(r<=l.preload_data){t={element:i,href:i.href},n=w.tap;let e=await St(o,!1);if(!e)return;ct(e)}else r<=l.preload_code&&(t={element:i,href:i.href},n=r,lt(o))}function o(){i.disconnect();for(let e of R.querySelectorAll(`a`)){let{url:t,external:n,download:r}=xe(e,x,z.hash);if(n||r)continue;let a=D(e);a.reload||(a.preload_code===w.viewport&&i.observe(e),a.preload_code===w.eager&&lt(t))}}W.add(o),o()}function $(e,t){if(e instanceof c)return e.body;let n=ke(e),r=Ae(e);return z.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Ot(e,t={}){return e=new URL(_e(e)),e.origin===ge?st(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function kt(e){if(typeof e==`function`)B.push(e);else{let{href:t}=new URL(e,location.href);B.push(e=>e.href===t)}}function At(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(ot(),!q){let e=Ft(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};qe.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&ot()}),navigator.connection?.saveData||Dt(),R.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=be(t.composedPath()[0],R);if(!n)return;let{url:r,external:i,target:a,download:o}=xe(n,x,z.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=D(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(z.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){Tt({url:r,type:`link`,event:t})?q=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(J=!0,ze(Y),e(r),!s.replace_state)return;J=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Q({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),R.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(O(r,x,!1))return;let i=e.target,a=D(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Q({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Nt)if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Z={},n===Y)return;let r=N[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=G.url?m(location)===m(G.url):!1;if(o===X&&(Ze||s)){i!==k.state&&(k.state=i),e(a),N[Y]=T(),r&&scrollTo(r.x,r.y),Y=n;return}let c=n-Y;await Q({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{Y=n,X=o},block:()=>{history.go(-c)},nav_token:Z,event:t})}else J||(e(new URL(location.href)),z.hash&&location.reload())}),addEventListener(`hashchange`,()=>{J&&(J=!1,history.replaceState({...history.state,[S]:++Y,[C]:X},``,location.href))});for(let e of document.querySelectorAll(`link`))Re.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&F.navigating.set(A.current=null)});function e(e){G.url=k.url=e,F.page.set(It(k)),F.page.notify()}}async function jt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){Ye=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await St(u,!1)||{}),d=Ue.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Mt(r.uses)),ft({loader:z.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:ht(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await dt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await I(new URL(t.location,location.href));return}f=await bt({status:ke(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await ut(f,e,p)}function Mt(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??[])}}var Nt=!1;function Pt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Rt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Nt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Nt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Ft(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function It(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 Lt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Rt(e){let t;if(z.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{k as a,A as i,nt as n,j as o,F as r,Te as s,Ot as t};
@@ -0,0 +1 @@
1
+ import{r as e,t}from"./CibALFW0.js";import{Ct as n,Dt as r,Ft as i,Ht as a,It as o,Tt as s,ct as c,ft as l,gt as u,ht as d,it as f,jt as p,kt as m,lt as h,ot as g,zt as _}from"./DK3lEKRX.js";import{t as v}from"./DjVmpym-.js";import{i as y,n as b,r as ee,t as x}from"./hJTLHSgs.js";import{a as S,n as te,t as ne}from"./BJVrdkuG.js";import{S as re,_ as ie,f as ae,g as oe,h as C,u as se,x as ce,y as w}from"./CbotzAWM.js";import{n as T}from"./DQTfiEmH.js";var E={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function le(e,t,n){e||={};let r=e.random??e.rng?.()??oe();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return ie(r)}function D(e,t,n){return E.randomUUID&&!t&&!e?E.randomUUID():le(e,t,n)}var ue=t(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}));function de(...e){return e.filter(Boolean).join(` `)}var fe=typeof document<`u`,O=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function pe(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}new class{#e;#t;constructor(e={}){let{window:t=O,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=p(e=>{let n=f(t,`focusin`,e),r=f(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?pe(this.#e):null}};function me(e){return typeof e==`function`}var k=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return o(this.#t)}get(){let e=i(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=i(this.#t);return t===void 0?e:t}set(e){return _(this.#t,e)}};function he(e,t){switch(e){case`post`:d(t);break;case`pre`:u(t);break}}function A(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;he(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=h(()=>n(t,o));return o=t,r})}function j(e,t,n){let r=l(()=>{let i=!1;A(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});d(()=>r)}function M(e,t,n){A(e,`post`,t,n)}function ge(e,t,n){A(e,`pre`,t,n)}M.pre=ge;function _e(e,t){j(e,`post`,t)}function ve(e,t){j(e,`pre`,t)}_e.pre=ve;function N(e){return me(e)?e():e}var ye=class{#e={width:0,height:0};#t=!1;#n;#r;#i;#a=m(()=>(g(this.#s)?.(),this.getSize().width));#o=m(()=>(g(this.#s)?.(),this.getSize().height));#s=m(()=>{let e=N(this.#r);if(e)return p(t=>{if(!this.#i)return;let n=new this.#i.ResizeObserver(e=>{this.#t=!0;for(let t of e){let e=this.#n.box===`content-box`?t.contentBoxSize:t.borderBoxSize,n=Array.isArray(e)?e:[e];this.#e.width=n.reduce((e,t)=>Math.max(e,t.inlineSize),0),this.#e.height=n.reduce((e,t)=>Math.max(e,t.blockSize),0)}t()});return n.observe(e),()=>{this.#t=!1,n.disconnect()}})});constructor(e,t={box:`border-box`}){this.#i=t.window??O,this.#n=t,this.#r=e,this.#e={width:0,height:0}}calculateSize(){let e=N(this.#r);if(!e||!this.#i)return;let t=e.offsetWidth,n=e.offsetHeight;if(this.#n.box===`border-box`)return{width:t,height:n};let r=this.#i.getComputedStyle(e),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),o=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),s=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth);return{width:t-i-o,height:n-a-s}}getSize(){return this.#t?this.#e:this.calculateSize()??this.#e}get current(){return g(this.#s)?.(),this.getSize()}get width(){return g(this.#a)}get height(){return g(this.#o)}},be=class{#e=()=>void 0;#t=m(()=>this.#e());constructor(e,t){let n;t!==void 0&&(n=t),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return g(this.#t)}};function xe(e,t){let n,r=null;return(...i)=>new Promise(a=>{r&&r(void 0),r=a,clearTimeout(n),n=setTimeout(async()=>{let t=await e(...i);r&&=(r(t),null)},t)})}function Se(e,t){let n=0,r=null;return(...i)=>{let a=Date.now();return n&&a-n<t?r??Promise.resolve(void 0):(n=a,r=e(...i),r)}}function P(e,t,i={},a){let{lazy:o=!1,once:c=!1,initialValue:l,debounce:u,throttle:d}=i,f=r(n(l)),p=r(!1),m=r(void 0),h=r(n([])),_=()=>{g(h).forEach(e=>e()),s(h,[],!0)},v=e=>{s(h,[...g(h),e],!0)},y=async(e,n,r=!1)=>{try{s(p,!0),s(m,void 0),_();let i=new AbortController;v(()=>i.abort());let a=await t(e,n,{data:g(f),refetching:r,onCleanup:v,signal:i.signal});return s(f,a,!0),a}catch(e){e instanceof DOMException&&e.name===`AbortError`||s(m,e,!0);return}finally{s(p,!1)}},b=u?xe(y,u):d?Se(y,d):y,ee=Array.isArray(e)?e:[e],x;return a((t,n)=>{c&&x||(x=t,b(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:o}),{get current(){return g(f)},get loading(){return g(p)},get error(){return g(m)},mutate:e=>{s(f,e,!0)},refetch:t=>{let n=ee.map(e=>e());return b(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function Ce(e,t,n){return P(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];M(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function we(e,t,n){return P(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];M.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}Ce.pre=we,new k(`richColorsContext`);var Te=new k(`<Toaster/>`),Ee=0;function F(e){return typeof e?.id==`number`||typeof e?.id==`string`&&e.id.length>0?e.id:Ee++}var De=class{#e=r(n([]));get toasts(){return g(this.#e)}set toasts(e){s(this.#e,e,!0)}#t=r(n([]));get heights(){return g(this.#t)}set heights(e){s(this.#t,e,!0)}#n=new Map;#r=e=>{let t=this.toasts.findIndex(t=>t.id===e);return t===-1?null:t};#i=e=>this.heights.findIndex(t=>t.toastId===e);addToast=e=>{fe&&this.toasts.unshift(e)};updateToast=({id:e,data:t,type:n,message:r})=>{let i=this.toasts.findIndex(t=>t.id===e),a=this.toasts[i];this.toasts[i]={...a,...t,id:e,title:r,type:n,dismiss:!1,delete:!1,updated:!0}};markDismissed=e=>{let t=this.#r(e);if(t===null)return;let n=this.toasts[t];n&&(!n.dismiss||!n.delete)&&(this.toasts[t]={...n,dismiss:!0,delete:!0})};scheduleRemoval=(e,t)=>{this.cancelRemoval(e),this.#n.set(e,setTimeout(()=>{this.#n.delete(e),this.remove(e)},t))};cancelRemoval=e=>{let t=this.#n.get(e);t!==void 0&&(clearTimeout(t),this.#n.delete(e))};create=e=>{let{message:t,...n}=e,r=F(e),i=e.dismissible===void 0?e.dismissable===void 0?!0:e.dismissable:e.dismissible,a=e.type===void 0?`default`:e.type;return h(()=>{this.cancelRemoval(r);let o=this.toasts.find(e=>e.id===r);o?.dismiss||o?.delete?(this.remove(r),this.addToast({...n,id:r,title:t,dismissible:i,type:a,updated:!0})):o?this.updateToast({id:r,data:e,type:a,message:t,dismissible:i}):this.addToast({...n,id:r,title:t,dismissible:i,type:a})}),r};dismiss=e=>(h(()=>{if(e===void 0){this.toasts=this.toasts.map(e=>e.dismiss?e:{...e,dismiss:!0});return}let t=this.toasts.findIndex(t=>t.id===e);this.toasts[t]&&(this.toasts[t]={...this.toasts[t],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}let t=this.#r(e);if(t!==null)return this.toasts.splice(t,1),e};message=(e,t)=>this.create({...t,type:`default`,message:e});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:typeof t.loading==`string`?t.loading:t.loading()}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(e=>{if(typeof e==`object`&&e&&`ok`in e&&typeof e.ok==`boolean`&&!e.ok){i=!1;let t=Oe(e);this.create({id:n,type:`error`,message:t})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?t.success(e):t.success;this.create({id:n,type:`success`,message:r})}}).catch(e=>{if(t.error!==void 0){i=!1;let r=typeof t.error==`function`?t.error(e):t.error;this.create({id:n,type:`error`,message:r})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),n};custom=(e,t)=>{let n=F(t);return this.create({component:e,...t,id:n}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{h(()=>{let t=this.#i(e.toastId);if(t!==-1){this.heights[t]=e;return}let n=new Map(this.toasts.map((e,t)=>[e.id,t])),r=n.get(e.toastId)??-1,i=this.heights.findIndex(e=>(n.get(e.toastId)??1/0)>r);i===-1?this.heights.push(e):this.heights.splice(i,0,e)})};reset=()=>{this.toasts=[],this.heights=[],this.#n.forEach(e=>clearTimeout(e)),this.#n.clear()}};function Oe(e){return e&&typeof e==`object`&&`status`in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}var I=new De;function ke(e,t){return I.message(e,t)}var Ae=class{#e=m(()=>I.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}},L=Object.assign(ke,{success:I.success,info:I.info,warning:I.warning,error:I.error,custom:I.custom,message:I.message,promise:I.promise,dismiss:I.dismiss,loading:I.loading,getActiveToasts:()=>I.toasts.filter(e=>!e.dismiss)}),je=e=>{let t=new Set;Object.getOwnPropertyNames(e).forEach(e=>t.add(e));let n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)},Me=(e,t)=>{let n={};return t.forEach(t=>{n[t]=e[t]}),n},Ne=console.warn,Pe=()=>{},R=(e,t)=>h(()=>{console.warn=Pe;let n=a(t?Me(e,t):e);return console.warn=Ne,n}),Fe=e=>e&&typeof e.then==`function`,Ie=class{config;self;devtools;stateKeys;constructor(e,t){this.config=e,this.self=t,typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&(this.stateKeys=je(this.config.state),this.devtools=window.__REDUX_DEVTOOLS_EXTENSION__.connect({name:this.config.name??`updatelogic`}),this.devtools.init(this.createStateSnapshot()),this.devtools.subscribe(e=>{e.type===`DISPATCH`&&e.state}))}createStateSnapshot(){return R(this.config.state,this.stateKeys)}sendStart(e,t){this.devtools.send({type:`→ ${e}`,args:t},this.createStateSnapshot())}sendError(e,t,n){this.devtools.send({type:`❌ ${e}`,args:t,error:n},this.createStateSnapshot())}sendSuccess(e,t,n){this.devtools.send({type:`✓ ${e}`,args:t,return:n},this.createStateSnapshot())}isIncluded(e){return this.config.excludeInDevTools?!this.config.excludeInDevTools.includes(e):!0}createProxyFunction(e,t){let n=this.devtools&&this.isIncluded(e);return typeof t==`function`?(...r)=>{if(!n)return h(()=>t.call(this.self,...r));let i=R(r);this.sendStart(e,i);try{let n=h(()=>t.call(this.self,...r));return Fe(n)?n.then(t=>(this.sendSuccess(e,i,t),t),t=>{throw this.sendError(e,i,t),t}):(this.sendSuccess(e,i,n),n)}catch(t){throw this.sendError(e,i,t),t}}:t}},Le=(e,t)=>{let n={},r=new Ie(e,n);return Object.keys(t).forEach(e=>{if(e===`state`||e===`name`)return;let i=t[e];n[e]=r.createProxyFunction(e,i)}),n};async function Re(){if(typeof navigator>`u`||!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)return!1;try{return(await navigator.mediaDevices.enumerateDevices()).some(e=>e.kind===`audioinput`)}catch(e){return console.error(`Error checking for microphone:`,e),!1}}function z(){return typeof window>`u`||!window.MediaRecorder?null:MediaRecorder.isTypeSupported(`audio/mp4`)?`audio/mp4`:MediaRecorder.isTypeSupported(`audio/webm`)?`audio/webm`:MediaRecorder.isTypeSupported(`audio/wav`)?`audio/wav`:null}function ze(){return typeof window>`u`?!1:!!(window.MediaRecorder&&z())}function Be(){if(typeof window>`u`)return!1;if(`ontouchstart`in window||navigator.maxTouchPoints>0)return!0;let e=navigator.msMaxTouchPoints;return!!(`msMaxTouchPoints`in navigator&&e&&e>0)}function Ve(){return typeof window>`u`?!1:!!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||Be())}var B=class{mediaRecorder=null;audioChunks=[];started=!1;starting=!1;stream=null;options;audioContext=null;analyser=null;dataArray=null;volumeUpdateInterval=null;constructor(e={}){this.options=e}async start(){if(this.started||this.starting){console.warn(`AudioRecorder: Start already in progress or already started`);return}if(!ze()||!navigator.mediaDevices){let e=Error(`MediaRecorder not supported or no microphone access`);throw this.options.onError?.(e),e}try{if(this.starting=!0,this.stream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0},video:!1}),!this.starting){this.stopStream(this.stream);return}this.mediaRecorder&&this.mediaRecorder.state!==`inactive`&&(console.warn(`AudioRecorder: MediaRecorder already active, stopping previous recording`),this.mediaRecorder.stop(),this.cleanup()),this.started=!0,this.starting=!1;let e=z();if(!e)throw Error(`No supported media type found`);let t={mimeType:e};this.mediaRecorder=new MediaRecorder(this.stream,t),this.audioChunks=[],this.mediaRecorder.ondataavailable=e=>{e.data.size>0&&this.audioChunks.push(e.data)},this.mediaRecorder.onstop=async()=>{let t=this.audioChunks.length>0?new Blob(this.audioChunks,{type:e}):null;await this.options.onDataAvailable?.(t),this.options.onStop?.(),this.cleanup()},this.mediaRecorder.onerror=e=>{let t=Error(`MediaRecorder error: ${e}`);this.options.onError?.(t),this.cleanup()},this.mediaRecorder.start(),this.setupVolumeAnalysis(this.stream),this.options.onStart?.()}catch(e){this.started=!1,this.starting=!1;let t=e instanceof Error?e:Error(String(e));throw this.options.onError?.(t),t}}stop(){this.started=!1,this.starting=!1,this.volumeUpdateInterval&&=(clearInterval(this.volumeUpdateInterval),null),this.mediaRecorder&&this.mediaRecorder.state!==`inactive`?this.mediaRecorder.stop():(this.stream&&this.stopStream(this.stream),this.cleanup())}setupVolumeAnalysis(e){if(this.options.onVolumeChange)try{this.audioContext=new AudioContext,this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=256,this.analyser.smoothingTimeConstant=.8;let t=this.analyser.frequencyBinCount;this.dataArray=new Uint8Array(t),this.audioContext.createMediaStreamSource(e).connect(this.analyser),this.startVolumeMonitoring()}catch(e){console.warn(`Failed to set up volume analysis:`,e)}}startVolumeMonitoring(){!this.analyser||!this.dataArray||!this.options.onVolumeChange||(this.volumeUpdateInterval=window.setInterval(()=>{if(!this.analyser||!this.dataArray||!this.started)return;this.analyser.getByteFrequencyData(this.dataArray);let e=0;for(let t=0;t<this.dataArray.length;t++)e+=this.dataArray[t]*this.dataArray[t];let t=Math.sqrt(e/this.dataArray.length)/255;t=(t*3)**.7;let n=Math.min(100,Math.max(0,Math.round(t*100)));this.options.onVolumeChange?.(n)},100))}get recording(){return this.started&&this.mediaRecorder?.state===`recording`}get isStarting(){return this.starting}stopStream(e){e.getTracks().forEach(e=>e.stop())}cleanup(){this.volumeUpdateInterval&&=(clearInterval(this.volumeUpdateInterval),null),this.audioContext&&=(this.audioContext.close().catch(console.warn),null),this.analyser=null,this.dataArray=null,this.stream&&=(this.stopStream(this.stream),null),this.mediaRecorder=null,this.audioChunks=[],this.started=!1,this.starting=!1}static isSupported(){return ze()}static getSupportedMediaType(){return z()}},He=re(),Ue=(e,t)=>{if(e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement){t.textContent=e.value;return}if(e instanceof HTMLSelectElement&&t instanceof HTMLSelectElement){Array.from(e.options).forEach((e,n)=>{t.options[n]&&(t.options[n].selected=e.selected)});return}e instanceof HTMLInputElement&&t instanceof HTMLInputElement&&(t.setAttribute(`value`,e.value),(e.type===`checkbox`||e.type===`radio`)&&(e.checked?t.setAttribute(`checked`,`checked`):t.removeAttribute(`checked`)))},We=e=>{let t=e.cloneNode(!0);if(!(t instanceof Element))return``;let n=`input, textarea, select`,r=e.querySelectorAll(n),i=t.querySelectorAll(n);return r.forEach((e,t)=>{let n=i[t];n&&Ue(e,n)}),He.sanitize(t.outerHTML,{FORBID_TAGS:[`style`,`script`],FORBID_ATTR:[`style`,`class`]})},Ge=e=>{if(!e?.length)return[];let t=e.join(`,`),n=document.querySelectorAll(t);return Array.from(n,We)},V=`liipgpt:context`,Ke=class{contextVersion=0;#e=r();get currentContext(){return g(this.#e)}set currentContext(e){s(this.#e,e,!0)}getFromLocalStorage(){let e=localStorage.getItem(V);if(e){let t;try{if(t=JSON.parse(e),t.version!==this.contextVersion){localStorage.removeItem(V);return}else return t.context}catch(e){console.error(`Failed to parse liipgpt:context`,e);return}}}storeToLocalStorage(){localStorage.setItem(`liipgpt:context`,JSON.stringify({version:T.data.chatConfig.contextVersion,context:this.currentContext}))}constructor(e){this.init=e,this.currentContext=this.getFromLocalStorage()??e.initialValue}getContext(){return a(this.currentContext)}setContextVersion(e){this.contextVersion=e}setContext(e){this.currentContext=e,this.storeToLocalStorage()}resetContext(){this.currentContext=this.init.initialValue,this.storeToLocalStorage()}updateContext(e){this.setContext(e(this.currentContext))}},qe=()=>localStorage.getItem(V),H=`liipgpt:selectorValues`,U=`liipgpt:selectorKnownDefaults`,W=()=>{try{let e=C.getItem(H),t=C.getItem(U);return e?{values:JSON.parse(e),knownDefaults:t?JSON.parse(t):{}}:null}catch{return null}},Je=e=>{let t={};for(let n of e)t[n.settingName]=n.defaultValues??(n.allowEmpty?[]:[n.values[0]]).filter(Boolean);return t},G=(e,t)=>{try{let n=Je(t);C.setItem(H,JSON.stringify(e)),C.setItem(U,JSON.stringify(n))}catch(e){console.error(`Failed to save selector values:`,e)}},Ye=e=>{try{let t=W();if(!t)return;delete t.values[e],delete t.knownDefaults[e],C.setItem(H,JSON.stringify(t.values)),C.setItem(U,JSON.stringify(t.knownDefaults))}catch(e){console.error(`Failed to clear selector saved state:`,e)}},Xe=e=>{let t=W(),n=e.map(e=>{let n=e.defaultValues??(e.allowEmpty?[]:[e.values[0]]).filter(Boolean);if(!t?.values[e.settingName])return[e.settingName,n];let r=t.values[e.settingName],i=t.knownDefaults[e.settingName]||[],a=r.filter(t=>e.values.includes(t)),o=i.filter(e=>!n.includes(e)),s=a.filter(e=>!o.includes(e)),c=n.filter(e=>!i.includes(e)&&!s.includes(e)),l=[...s,...c];return l.length===0&&!e.allowEmpty?[e.settingName,n]:[e.settingName,l]});return Object.fromEntries(n)},K=class extends Error{constructor(e){super(e),this.name=`UnreachableError`}},Ze=e(ue(),1),q=(e,t)=>{if(!e)return;let n=t.find(t=>t.id===e);return n||console.warn(`autofire-predefined-question-id="${e}" did not match any loaded predefined question. Falling back to default routing.`),n},J=(e,t,n,r,i)=>{if(e&&!t)return{name:`consent-page`};let a=new URLSearchParams(window.location.search),o=a.get(`q`),s=a.get(`id`)??void 0,c=a.get(`sid`)??void 0;return o?{name:`chat-page`,query:o,predefinedQuestionId:s,switchQuestionId:c}:i?{name:`chat-page`,query:i}:r?{name:`chat-page`,query:r.question,predefinedQuestionId:r.id}:n?{name:`chat-page`}:{name:`start-page`}},Y=`follow-up-q`,Qe=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e),$e=()=>{let e=new URLSearchParams(window.location.hash.replace(/^#/,``)).get(`cID`)??void 0;return{cID:e&&Qe(e)?e:void 0,followUpQuestion:new URLSearchParams(window.location.search).get(Y)?.trim()||void 0}},et=()=>{let e=new URLSearchParams(window.location.search);if(!e.has(Y))return;e.delete(Y);let t=e.toString();history.replaceState(null,``,`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`)},X=e=>{if(e)try{let t=JSON.parse(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t;console.warn(`additional-start-parameters must be a JSON object. Received: ${e}`);return}catch(t){console.warn(`Failed to parse additional-start-parameters as JSON: ${e}`,t);return}},tt=e=>{let t=X(e);return t?(e=>Array.isArray(e)?e.map(String):typeof e==`string`?e.split(`,`).map(e=>e.trim()).filter(Boolean):[])(t.scopeAvailableSlugs).length===1:!1},Z=e=>e?e.map(e=>({id:D(),...e})):[],Q,$,nt,rt=Le({name:`chat-logic`,state:T,excludeInDevTools:[`onInput`]},{async init(e){$=e;let t=$.speechRecognitionApiKey||void 0;Q=new ae({apiUrl:$.apiUrl,apiKey:$.apiKey,speechRecognitionApiKey:t,strict:!0,startParameters:X($.additionalStartParameters)});try{let e=await Q.getChatConfig();window.CHAT_CONFIG_OVERRIDE&&Object.assign(e,window.CHAT_CONFIG_OVERRIDE);let t=(await Q.getMetadata()).mode===`maintenance`;t&&this.showErrorToast(`maintenance`);let n=y(e);$.inlineLayout!==void 0&&(n.inlineLayout=$.inlineLayout),$.forceChatPage!==void 0&&(n.forceChatPage=$.forceChatPage);let r;r=$.lang?te($.lang,n.supportedLanguages):ne(n.supportedLanguages),S(r,T.targets.mainElement);let i=await this.getPredefinedQuestions(r),a=n.translations[r]?.ariaOpensInNewTab;a&&Q.setNewTabSrText(a);let o=[];if(n.renderKatex){let e=await v(()=>import(`https://esm.sh/marked-katex-extension@5.1.5`),[],import.meta.url).catch(e=>{console.error(`Couldn't load marked-katex-extension:`,e)});e&&(Q.setMarkedExtensions(e.default({nonStandard:!0,output:`mathml`})),o.push(`https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css`))}let s=Object.keys(n.fullTheme),c=!1;if(n.forceConsent)try{c=C.getItem(`liipgpt:termsAccepted`)===`true`}catch(e){console.warn(`Failed to load terms acceptance from storage:`,e)}let l=q($.autofirePredefinedQuestionId,i);T.data={currentConversationState:`idle`,chatConfig:n,language:r,predefinedQuestions:i,isInMaintenance:t,history:Z(n.messageAdditions.init),selectedColorScheme:b(),has2ColorSchemes:s.length===2,currentColorScheme:x(s),conversationFeedbackId:void 0,conversationFeedbackIsOpen:!1,answerFormMessageId:void 0,openedPopup:void 0,props:$,flyoutIsOpen:!1,questionHasPii:void 0,chatInputValue:``,selectorValues:Xe(n.selectorsConfig),selectorsIsOpen:!1,predefinedQuestionId:void 0,switchQuestionId:void 0,currentReferencesAsideId:void 0,ariaLiveStatusMessage:void 0,ariaLiveStatusMessageClearingTimeout:void 0,wasReferencesAsideClosed:!1,isAsideMobile:!0,route:J(n.forceConsent??!1,c,n.forceChatPage??!1,l,$.question),additionalStylesheets:o,hasOpenedOverlays:!1,isInlineLayoutContained:!1,termsAccepted:c,selectedTopic:void 0},window.LIIPGPT_LISTENERS?.route?.(T.data.route),window.LIIPGPT_LISTENERS?.conversation?.(T.data.currentConversationState),T.data.selectorsIsOpen=T.data.chatConfig.showExpandedSelectors??!1,T.initialized=!0,this.checkForOpenedPopup(),window.addEventListener(`hashchange`,()=>{this.checkForOpenedPopup()}),await this.startFromHandoverOrRoute(()=>this.goto(J(n.forceConsent??!1,c,n.forceChatPage??!1,l,$.question),!0))}catch(e){throw L.error(e instanceof Error?e.message:`Failed to load the chatbot. Please reload the page.`,{duration:1e4,unstyled:!0,classes:{toast:`toast`}}),e}},setTarget(e,t){T.targets[e]=t},goto(e,t=!1){if(!(!t&&(0,Ze.default)(T.data.route,e)))switch(T.data.route=e,window.LIIPGPT_LISTENERS?.route?.(e),e.name){case`consent-page`:break;case`start-page`:e.prefill&&(T.data.chatInputValue=e.prefill);break;case`chat-page`:if(T.data.chatInputValue=e.query??``,T.data.predefinedQuestionId=e.predefinedQuestionId,T.data.switchQuestionId=e.switchQuestionId,e.query&&(this.onSubmit(),T.data.chatConfig.addQueryToUrlParams)){let t=new URLSearchParams(window.location.search);t.set(`q`,e.query),e.predefinedQuestionId?t.set(`id`,e.predefinedQuestionId):t.delete(`id`),e.switchQuestionId?t.set(`sid`,e.switchQuestionId):t.delete(`sid`),history.pushState(null,``,`?${t.toString()}${window.location.hash}`)}break}},getSelectorConfig(e){let t=T.data.chatConfig.selectorsConfig.find(t=>t.settingName===e);if(!t)throw Error(`Setting ${e} not found`);return t},getPrettifiedSelectorValues(){let e=Object.entries(T.data.selectorValues).map(([e,t])=>{let n;try{n=this.getSelectorConfig(e)}catch(t){console.error(`Error getting selector config for ${e}: ${t}`);return}return n.type===`single-select`?[e,t[0]]:[e,t]}).filter(e=>!!e);return Object.fromEntries(e)},setSelectorValue(e,t){let n=this.getSelectorConfig(e);if(!n){console.warn(`Trying to set setting ${e} but it is not defined in the chat config`);return}if(n.type===`single-select`&&t.length>1){console.warn(`Trying to set multiple values for single-select setting ${e}`);return}T.data.selectorValues[e]=t,G(T.data.selectorValues,T.data.chatConfig.selectorsConfig)},resetSelectorToDefaults(e){let t=this.getSelectorConfig(e);if(!t){console.warn(`Trying to reset setting ${e} but it is not defined in the chat config`);return}let n=t.defaultValues??(t.allowEmpty?[]:[t.values[0]]).filter(Boolean);return Ye(e),T.data.selectorValues[e]=n,G(T.data.selectorValues,T.data.chatConfig.selectorsConfig),n},async getPredefinedQuestions(e){if($?.hidePredefinedQuestions)return[];try{return Q.getPredefinedQuestions({url:window.location.origin+window.location.pathname,language:e})}catch(e){return console.warn(`Failed to load predefined questions:`,e),[]}},setColorScheme(e){T.data.selectedColorScheme=e,T.data.currentColorScheme=ee(e),this.setAriaLiveStatusMessage(e===`dark`?T.t.ariaDarkSelected:T.t.ariaLightSelected)},async abort(){await nt?.abort()},changeConversationState(e){T.data.currentConversationState=e,window.LIIPGPT_LISTENERS?.conversation?.(e)},onInput(e){T.data.chatConfig.blockPII&&(T.data.questionHasPii=w(e)),T.data.chatInputValue=e,T.data.predefinedQuestionId=void 0,T.data.switchQuestionId=void 0},onSubmit(e=!1,t,n=!1){let r=Ge(T.data.chatConfig.parentPageContext?.extractSelectors);if(T.data.questionHasPii){console.warn(`Question contains PII, not submitting:`,T.data.questionHasPii);return}let i=T.data.chatConfig.questionPrefix?`${T.data.chatConfig.questionPrefix} ${T.data.chatInputValue}`:T.data.chatInputValue;n||(T.data.history.push(...Z(T.data.chatConfig.messageAdditions.user.before)),T.data.history.push({type:`user`,time:new Date().toISOString(),message:T.data.chatInputValue}),T.data.history.push(...Z(T.data.chatConfig.messageAdditions.user.after)));let a=T.data.history.push(...Z(T.data.chatConfig.messageAdditions.bot.before));T.data.history.push({id:`UNRESOLVED`,state:`loading`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:``,html:``,text:``},references:{all:[],used:[],unused:[]}});let o=!1,s=!1,c={features:$.features?$.features.trim().split(`,`):[`formatting`],mode:$.mode||void 0,cache:$.cache||void 0,onError:(e,t)=>{this.showErrorToast(e,t),window.LIIPGPT_LISTENERS?.error?.(e,t),(e===`pii-detected`||e===`blocked`)&&this.editLatestQuestion()},onMessage:e=>{e.type===`topic-selected`&&(T.data.selectedTopic={label:e.label,placeholder:e.placeholder,locked:tt($.additionalStartParameters)}),e.type===`state`&&e.state!==`history-entry-initialized`&&!s&&(s=!0,this.setAriaLiveStatusMessage(T.t.ariaQuestionSent))},lang:T.data.language,selectorValues:{...this.getPrettifiedSelectorValues(),context:qe(),...t},predefinedQuestionId:T.data.predefinedQuestionId,switchQuestionId:T.data.switchQuestionId,onEmbed:e=>{let t=T.data.history[a];t&&t.type===`bot`&&!t.message.markdown?(T.data.history[a]={...e,id:t.id??D()},o=!0):T.data.history.push({...e,id:D()})}};T.data.predefinedQuestionId=void 0,T.data.switchQuestionId=void 0,r.length&&(c.selectorValues.parentPageContextHtml=r),c.referrer=se(T.data.chatConfig.sendReferrer,{embedded:!!T.data.props.flyout}),T.data.props.source?c.source=T.data.props.source:T.data.props.flyout&&(c.source=`flyout`),T.data.currentConversationId||(T.data.currentConversationId=Q.createConversationId());let l=Q.chat(T.data.currentConversationId,i,c);nt=l,T.data.lastChatResponseId=l.id,T.data.currentConversationState!==`searching`&&this.changeConversationState(`searching`);let u=!1,d,f=!!T.data.currentReferencesAsideId;(e&&f||!e&&T.data.chatConfig.showReferencesByDefault)&&(T.data.isAsideMobile||this.openReferencesAside(l.id)),l.subscribe(e=>{if(!o&&T.data.history[a]&&(T.data.history[a]={question:T.data.chatInputValue,...e}),T.data.chatConfig.addRetrievalQuestionToUrlParams&&e.retrievalQuestion){let t=new URLSearchParams(window.location.search);t.get(`search`)!==e.retrievalQuestion&&(t.set(`search`,e.retrievalQuestion),history.replaceState(null,``,`?${t.toString()}${window.location.hash}`))}T.data.chatConfig.showReferencesByDefault&&!T.data.wasReferencesAsideClosed&&T.data.currentReferencesAsideId!==e.id&&!T.data.isAsideMobile&&this.openReferencesAside(e.id),e.state===`streaming`&&T.data.currentConversationState!==`answering`&&this.changeConversationState(`answering`),e.state===`done`&&(this.changeConversationState(`idle`),u||(u=!0,this.setAriaLiveStatusMessage(`${T.t.ariaAnswerReady} ... ${e.message.text} ... ${T.data.selectedTopic?T.t.ariaAnswerFinishedWithSelectedTopic:T.t.ariaAnswerFinished}`),T.data.history.push(...Z(T.data.chatConfig.messageAdditions.bot.after))),T.data.currentReferencesAsideId&&e.references.used.length>0?(clearTimeout(d),d=setTimeout(()=>{this.openReferencesAside(e.id)},100)):this.closeReferencesAside())}),T.data.chatInputValue=``},async onStartSpeechRecognition(){try{if(!await Re()){this.showErrorToast(`speech-not-supported`);return}if(await navigator.mediaDevices.getUserMedia({audio:!0}),B.isSupported())T.data.chatInputValue=``,T.currentAudioRecorder=new B({onDataAvailable:async e=>{T.isTranscribing=!0,await this.handleTranscription(e)},onError:()=>{this.showErrorToast(`speech-microphone-access-denied`),T.currentAudioRecorder=null,T.isTranscribing=!1},onVolumeChange:e=>{T.currentAudioVolume=e}}),T.currentAudioRecorder.start();else{this.showErrorToast(`speech-not-supported`);return}}catch(e){throw this.showErrorToast(`speech-microphone-access-denied`),T.currentAudioRecorder=null,T.isTranscribing=!1,e}},editLatestQuestion(){let e=T.data.history.findLastIndex(e=>e?.type===`user`);if(e===-1){console.error(`No last user question, available`);return}let t=T.data.history.splice(e)[0];T.data.chatInputValue=t.message},onStopSpeechRecognition(){if(T.currentAudioRecorder){let e=T.currentAudioRecorder;T.currentAudioRecorder=null,e.stop()}T.currentAudioVolume=0},async handleTranscription(e){if(!e){console.warn(`No audio data received`);return}try{let t=await Q.transcribeAudio(e,{lang:T.data.language});if(t.error){this.showErrorToast(`speech-transcription-failed`);return}if(t.transcript.trim()){if(T.data.chatConfig.blockPII&&(T.data.questionHasPii=w(t.transcript.trim()),T.data.questionHasPii))return;T.data.chatInputValue=t.transcript.trim()}else this.showErrorToast(`speech-no-text-detected`)}catch(e){console.error(`Speech transcription error:`,e),this.showErrorToast(`speech-transcription-failed`)}finally{T.currentAudioRecorder=null,T.isTranscribing=!1,T.currentAudioVolume=0}},async startFromHandoverOrRoute(e){let{cID:t,followUpQuestion:n}=$e();if(!t){e();return}let r=await this.rehydrateFromSearchSummaryHandover(t);n?(T.data.route={name:`chat-page`},T.data.chatInputValue=n,this.onSubmit(!0)):r||e(),et()},async rehydrateFromSearchSummaryHandover(e){T.data.currentConversationId=e;let t=await Q.getMetadata(),n=t.mode===`ready`?t.userId:void 0,r=n?await Q.getChatHistory(e,n):[];if(r.length===0)return T.data.currentConversationId=void 0,!1;let i={all:[],used:[],unused:[]},a=new ce({newTabSrText:T.t.ariaOpensInNewTab}),o=[];for(let{question:e,answer:t}of r)o.push({type:`user`,time:new Date().toISOString(),message:e,id:D()}),o.push({id:D(),state:`done`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:t,html:a.toHTML(t,i),text:t},references:{all:[],used:[],unused:[]}});return T.data.history=[...Z(T.data.chatConfig.messageAdditions.init),...o],T.data.route={name:`chat-page`},!0},async onStartConversation(e,t,n){await this.abort(),T.data.history=Z(T.data.chatConfig.messageAdditions.init),T.data.currentConversationId=Q.createConversationId(),this.goto({name:`chat-page`,query:e,predefinedQuestionId:t,switchQuestionId:n})},async onNewConversation(){await this.abort();let e=T.data.currentConversationId;if(T.data.currentConversationId=void 0,T.data.currentReferencesAsideId=void 0,T.data.history=Z(T.data.chatConfig.messageAdditions.init),T.data.predefinedQuestionId=void 0,T.data.switchQuestionId=void 0,T.data.selectedTopic=void 0,T.data.chatConfig.addQueryToUrlParams){let e=new URLSearchParams(window.location.search);e.delete(`q`),e.delete(`id`),e.delete(`sid`),history.pushState(null,``,`?${e.toString()}${window.location.hash}`)}this.goto({name:`start-page`}),e&&Q.userAction(`newDiscussion`,{conversationId:e,lang:T.data.language}).catch(e=>{console.error(`Failed to notify backend of new discussion:`,e)})},async onChangeTopic(){let e=T.data.chatConfig.selectedTopicResetPredefinedQuestionId;if(!e){console.warn("No selectedTopicResetPredefinedQuestionId available to reset the selected topic. Set it in the `Config DB` in the backend, in a `generalConfig` default set.");return}await this.abort(),T.data.selectedTopic=void 0,T.data.predefinedQuestionId=e,T.data.switchQuestionId=void 0,T.data.chatInputValue=``,this.onSubmit(!0,void 0,!0)},showSuccessToast(e){L.success(T.t[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},showErrorToast(e,t){let n=t?.trim()?t:T.errorTranslations[e];L.error(n,{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},async submitFeedback(e){try{let t=T.data.conversationFeedbackId||T.data.lastChatResponseId;if(!t)throw new K(`Tried to give feedback with no id.`);let n=T.data.history.find(e=>e.type===`bot`&&e.id===t);await Q.feedback(t,n?.question??``,e),setTimeout(()=>{this.showSuccessToast(`thankYouForFeedback`)},500)}catch(e){console.error(`Feedback failed:`,e),this.showErrorToast(`feedback-failed`)}},toggleReferencesAside(e){T.data.currentReferencesAsideId===e?this.closeReferencesAside():this.openReferencesAside(e)},openReferencesAside(e){T.data.chatConfig.referencesLayout!==`inline`&&(T.data.currentReferencesAsideId=e,this.setOpenOverlay(!0))},closeReferencesAside(){T.data.currentReferencesAsideId=void 0,T.data.wasReferencesAsideClosed=!0,this.setOpenOverlay(!1)},setAsideMobile(e){T.data.isAsideMobile=e},openFlyout(){T.data.flyoutIsOpen=!0},closeFlyout(){T.data.flyoutIsOpen=!1},openConversationFeedback(){T.data.conversationFeedbackIsOpen=!0,this.setOpenOverlay(!0)},openMessageFeedback(e){T.data.conversationFeedbackId=e},closeFeedback(){T.data.conversationFeedbackIsOpen=!1,T.data.conversationFeedbackId=void 0,this.setOpenOverlay(!1)},openAnswerForm(e){T.data.answerFormMessageId=e,this.setOpenOverlay(!0)},closeAnswerForm(){T.data.answerFormMessageId=void 0,this.setOpenOverlay(!1)},async submitAnswerForm(e){try{let t=T.data.chatConfig.answerForm,n=T.data.answerFormMessageId;if(!t)throw new K(`Tried to submit the answer form with no answerForm config.`);if(!n)throw new K(`Tried to submit the answer form with no message id.`);let r=T.data.history.findIndex(e=>e.type===`bot`&&e.id===n),i=r===-1?void 0:T.data.history[r],a=T.data.history.slice(0,r===-1?void 0:r).findLast(e=>e.type===`user`)?.message,o=i?.question||a||(i?.type===`bot`?i.retrievalQuestion??``:``);await Q.submitAnswerForm({receiverEmail:t.receiverEmail,fields:t.fields.map(t=>({name:t.name,value:e[t.name]??``})),question:o,answer:i?.type===`bot`?i.message.text:``,requestId:n,lang:T.data.language}),setTimeout(()=>{this.showSuccessToast(`answerFormThankYou`)},500)}catch(e){console.error(`Answer form submission failed:`,e),this.showErrorToast(`answer-form-failed`)}},setOpenOverlay(e){T.data.hasOpenedOverlays=e},setAriaLiveStatusMessage(e){T.data.ariaLiveStatusMessage=e,clearTimeout(T.data.ariaLiveStatusMessageClearingTimeout),T.data.ariaLiveStatusMessageClearingTimeout=setTimeout(()=>{T.data.ariaLiveStatusMessage=``},T.ariaLiveMessagesClearingTimeoutDuration)},closePopup(){window.location.hash=``},checkForOpenedPopup(){let e=window.location.hash.slice(1),t=T.t.popups?.find(t=>t.hash===e);t?T.data.openedPopup=t:T.data.openedPopup=void 0},async thumbs(e,t){try{let n=T.data.history.find(t=>t.type===`bot`&&t.id===e),r=n?.type===`bot`?n:void 0;if(r?.feedback===t)return;t===`up`?await Q.thumbsUp(e,n?.question??``):await Q.thumbsDown(e,n?.question??``);let i=!r?.feedback;r&&(r.feedback=t),i&&this.showSuccessToast(`thankYouForFeedback`)}catch(e){console.error(`Feedback failed:`,e),this.showErrorToast(`feedback-failed`)}},async onLanguageChange(e){if(T.data.language=te(e,T.data.chatConfig.supportedLanguages),S(T.data.language,T.targets.mainElement),T.data.predefinedQuestions=await this.getPredefinedQuestions(T.data.language),this.setAriaLiveStatusMessage(T.t.ariaLanguageChanged),T.data.chatConfig.reflectLanguageInPath){let e=new URL(window.location.href);e.pathname=`/${T.data.language}`,window.history.replaceState({},``,e.toString())}},async acceptTerms(){T.data.termsAccepted=!0;try{C.setItem(`liipgpt:termsAccepted`,`true`)}catch(e){console.warn(`Failed to save terms acceptance to storage:`,e)}this.closePopup(),await c(),this.goto(J(T.data.chatConfig.forceConsent??!1,!0,T.data.chatConfig.forceChatPage??!1,q(T.data.props.autofirePredefinedQuestionId,T.data.predefinedQuestions),T.data.props.question))},updateChatInput(e){T.data.chatInputValue=e}});function it(e,{delay:t=0,duration:n=500,resetTop:r=!0}){let i=+getComputedStyle(e).opacity;return e.style.position=`absolute`,r&&(e.style.top=`0px`),{delay:t,duration:n,css:e=>`opacity: ${e*i};`}}export{Ve as a,I as c,ye as d,M as f,D as h,B as i,Te as l,de as m,rt as n,Ae as o,k as p,Ke as r,L as s,it as t,be as u};
@@ -1,4 +1,4 @@
1
- var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.12.2`,n=new Map;async function r(e){let t=n.get(e);if(t)return t;let r=await fetch(e),i=r.url,a=await r.arrayBuffer(),o=await crypto.subtle.digest(`SHA-384`,a),s={versionedUrl:i,integrity:`sha384-${btoa(String.fromCharCode(...new Uint8Array(o)))}`};return n.set(e,s),s}var i=/\/\*\s*@host-class:\s*([a-zA-Z_-][\w-]*)\s*\*\//;function a(e,t=`your-custom-class-wrapper`){let n=e.match(i);if(n)return n[1];let r=e.match(/\.([a-zA-Z_-][\w-]*)\s+\.search-summary\b/);if(r)return r[1];let a=e.match(/liipgpt-search-summary\.([a-zA-Z_-][\w-]*)/);return a?a[1]:t}var o=`/* Host tokens — set on the custom element, inherited by .search-summary and descendants */
1
+ var e=`https://liipgpt.dev.cluster.liipgpt.ch/liipgpt`,t=`3.14.0-rc.1`,n=new Map;async function r(e){let t=n.get(e);if(t)return t;let r=await fetch(e),i=r.url,a=await r.arrayBuffer(),o=await crypto.subtle.digest(`SHA-384`,a),s={versionedUrl:i,integrity:`sha384-${btoa(String.fromCharCode(...new Uint8Array(o)))}`};return n.set(e,s),s}var i=/\/\*\s*@host-class:\s*([a-zA-Z_-][\w-]*)\s*\*\//;function a(e,t=`your-custom-class-wrapper`){let n=e.match(i);if(n)return n[1];let r=e.match(/\.([a-zA-Z_-][\w-]*)\s+\.search-summary\b/);if(r)return r[1];let a=e.match(/liipgpt-search-summary\.([a-zA-Z_-][\w-]*)/);return a?a[1]:t}var o=`/* Host tokens — set on the custom element, inherited by .search-summary and descendants */
2
2
  liipgpt-search-summary.your-custom-class-wrapper {
3
3
  --search-summary-padding: 1rem;
4
4
  --search-summary-background: #fff;
@@ -1,4 +1,4 @@
1
- import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./DK3lEKRX.js";import{t as p}from"./nkdIuSLi.js";import{t as m}from"./wBAqx-SG.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
1
+ import{A as e,J as t,Lt as n,Mt as r,Rt as i,U as a,X as o,Y as s,i as c,nt as l,o as u,tt as d,xt as f}from"./DK3lEKRX.js";import{t as p}from"./DOcPbtv_.js";import{t as m}from"./CuN4mAaD.js";var h=(e,t)=>{let n=new URLSearchParams(m.url.searchParams);t===void 0?n.delete(e):n.set(e,String(t));let r=`?${n.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+r,`*`),p(r,{replaceState:!0})},g=e=>{let t=new URLSearchParams(m.url.searchParams);for(let[n,r]of Object.entries(e))r===void 0?t.delete(n):t.set(n,String(r));let n=`?${t.toString()}`;window.top&&window.top.postMessage(`liipgpt-url:`+n,`*`),p(n,{replaceState:!0})},_=o(`<button type="button" class="sidebar-hide svelte-q6hwt7" aria-label="Hide sidebar">Hide sidebar</button>`),v=o(`<button type="button" class="sidebar-reopen svelte-q6hwt7" aria-label="Show sidebar"><span class="sidebar-reopen__label svelte-q6hwt7" aria-hidden="true">Show sidebar</span></button>`),y={hash:`svelte-q6hwt7`,code:`.sidebar-hide.svelte-q6hwt7 {display:block;padding:0.375rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.375rem;background:#fff;color:#4b5563;font-weight:500;font-size:0.75rem;line-height:1.25;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-hide.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen.svelte-q6hwt7 {display:flex;z-index:50;position:fixed;bottom:5rem;left:0;align-items:center;justify-content:center;padding:0.5rem 0.25rem;border:1px solid #e5e7eb;border-left:none;border-radius:0 0.375rem 0.375rem 0;background:#fff;box-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1),
2
2
  0 1px 2px -1px rgb(0 0 0 / 0.1);color:#4b5563;font-weight:500;font-size:0.6rem;font-family:system-ui, sans-serif;cursor:pointer;}.sidebar-reopen.svelte-q6hwt7:hover {background:#f3f4f6;color:#111827;}.sidebar-reopen__label.svelte-q6hwt7 {letter-spacing:0.04em;text-orientation:mixed;writing-mode:vertical-rl;}
3
3
 
4
4
  @media (prefers-color-scheme: dark) {.sidebar-hide.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-hide.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}.sidebar-reopen.svelte-q6hwt7 {border-color:#4b5563;background:#1f2937;color:#d1d5db;}.sidebar-reopen.svelte-q6hwt7:hover {background:#374151;color:#f3f4f6;}
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./7SXCsozV.js","./CsGLkWF6.js","./CibALFW0.js","./BaFk5JeE.js","./hJTLHSgs.js","./BJVrdkuG.js","./Ti2dF09M.js"])))=>i.map(i=>d[i]);
2
+ import{B as e,Ct as t,Dt as n,E as r,F as i,Gt as a,J as o,K as s,Lt as c,Mt as l,N as u,P as d,Rt as f,St as p,T as m,Tt as h,U as g,X as _,Y as v,Z as y,_ as ee,bt as b,c as x,ct as S,gt as te,ht as C,i as w,kt as T,lt as E,mt as D,n as ne,nt as re,o as O,ot as k,p as ie,pt as A,rt as ae,tt as j,u as M,v as N,x as oe,xt as P,z as se}from"./DK3lEKRX.js";import"./Bo0U8J3e.js";import{t as ce}from"./DjVmpym-.js";import"./CFKVnMbq.js";import"./BaFk5JeE.js";import{n as le}from"./BJVrdkuG.js";import{i as ue,n as de,r as fe,t as pe}from"./BFwiU0IZ.js";import{d as me,l as he,n as ge,t as _e,u as ve,v as F}from"./CbotzAWM.js";import{n as ye,t as be}from"./I5DxyXWx.js";function xe(e){return Object.prototype.toString.call(e)===`[object Date]`}function I(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw Error(`Cannot interpolate values of different type`);if(Array.isArray(e)){let n=t.map((t,n)=>I(e[n],t));return e=>n.map(t=>t(e))}if(n===`object`){if(!e||!t)throw Error(`Object cannot be null`);if(xe(e)&&xe(t)){let n=e.getTime(),r=t.getTime()-n;return e=>new Date(n+e*r)}let n=Object.keys(t),r={};return n.forEach(n=>{r[n]=I(e[n],t[n])}),e=>{let t={};return n.forEach(n=>{t[n]=r[n](e)}),t}}if(n===`number`){let n=t-e;return t=>e+t*n}return()=>t}var Se=class e{#e;#t;#n;#r=null;constructor(e,t={}){this.#e=n(e),this.#t=n(e),this.#n=t}static of(t,n){let r=new e(t(),n);return A(()=>{r.set(t())}),r}set(e,t){h(this.#t,e);let{delay:n=0,duration:r=400,easing:a=ge,interpolate:o=I}={...this.#n,...t};if(r===0)return this.#r?.abort(),h(this.#e,e),Promise.resolve();let s=i.now()+n,c,l=!1,u=this.#r;return this.#r=d(t=>{if(t<s)return!0;if(!l){l=!0;let t=this.#e.v;c=o(t,e),typeof r==`function`&&(r=r(t,e)),u?.abort()}let n=t-s;return n>r?(h(this.#e,e),!1):(h(this.#e,c(a(n/r))),!0)}),this.#r.promise}get current(){return k(this.#e)}get target(){return k(this.#t)}set target(e){this.set(e)}},Ce={de:{searchSummaryExpand:`Gesamte Antwort`,searchSummaryCollapse:`Weniger anzeigen`,searchSummaryOptInDefault:`KI-Suche aktivieren`,searchSummaryOptOut:`KI-Suche deaktivieren`,searchSummaryError:`Etwas ist schiefgelaufen.`,searchSummaryLoading:`Antwort wird generiert…`,searchSummaryDisclaimer:`<p><strong>Ich bin ein KI-Assistent.</strong></p><p>Meine Antworten werden von einer künstlichen Intelligenz generiert und sind deshalb nicht immer korrekt. Wenn Sie mich aktivieren, unterstütze ich Sie bei der Suche nach den richtigen Informationen.</p>`,ariaSearchSummaryExpand:`Vollständige Antwort anzeigen`,ariaSearchSummaryCollapse:`Antwort einklappen`,ariaSearchSummaryOptOut:`KI-Suche deaktivieren`,referencesTitle:`Quellen`,searchSummaryFollowUpPlaceholder:`Stellen Sie eine Folgefrage…`,searchSummaryFollowUpSubmit:`Im Chat fortfahren`,ariaSearchSummaryFollowUpInput:`Frage stellen`},en:{searchSummaryExpand:`Full answer`,searchSummaryCollapse:`Show less`,searchSummaryOptInDefault:`Enable AI search`,searchSummaryOptOut:`Disable AI search`,searchSummaryError:`Something went wrong.`,searchSummaryLoading:`Generating answer…`,searchSummaryDisclaimer:`<p><strong>I am an AI assistant.</strong></p><p>My answers are generated by artificial intelligence and may not always be correct. If you activate me, I will help you find the right information.</p>`,ariaSearchSummaryExpand:`Show full answer`,ariaSearchSummaryCollapse:`Collapse answer`,ariaSearchSummaryOptOut:`Disable AI search`,referencesTitle:`References`,searchSummaryFollowUpPlaceholder:`Ask a follow-up question…`,searchSummaryFollowUpSubmit:`Continue in chat`,ariaSearchSummaryFollowUpInput:`Ask a follow-up question`},it:{searchSummaryExpand:`Risposta completa`,searchSummaryCollapse:`Mostra meno`,searchSummaryOptInDefault:`Attiva la ricerca IA`,searchSummaryOptOut:`Disattiva la ricerca IA`,searchSummaryError:`Si è verificato un errore.`,searchSummaryLoading:`Generazione della risposta…`,searchSummaryDisclaimer:`<p><strong>Sono un assistente IA.</strong></p><p>Le mie risposte sono generate da un'intelligenza artificiale e potrebbero non essere sempre corrette. Se mi attivi, ti aiuto a trovare le informazioni giuste.</p>`,ariaSearchSummaryExpand:`Mostra la risposta completa`,ariaSearchSummaryCollapse:`Comprimi la risposta`,ariaSearchSummaryOptOut:`Disattiva la ricerca IA`,referencesTitle:`Riferimenti`,searchSummaryFollowUpPlaceholder:`Fai una domanda di approfondimento…`,searchSummaryFollowUpSubmit:`Continua nella chat`,ariaSearchSummaryFollowUpInput:`Fai una domanda di approfondimento`},fr:{searchSummaryExpand:`Réponse complète`,searchSummaryCollapse:`Afficher moins`,searchSummaryOptInDefault:`Activer la recherche IA`,searchSummaryOptOut:`Désactiver la recherche IA`,searchSummaryError:`Une erreur s'est produite.`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par une intelligence artificielle et peuvent ne pas toujours être correctes. Si vous m'activez, je vous aide à trouver les bonnes informations.</p>`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,referencesTitle:`Références`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`}},we=`liipgpt-search-summary>[slot]{display:none}@layer components{@keyframes search-summary-spin{to{transform:rotate(360deg)}}@keyframes search-summary-content-appear{0%{opacity:0}}@keyframes search-summary-content-disappear{to{opacity:0}}@keyframes search-summary-action-appear{0%{opacity:0;transform:translateY(12px)}}@keyframes search-summary-action-disappear{to{opacity:0;transform:translateY(12px)}}.search-summary{box-sizing:border-box;padding:var(--search-summary-padding,0);border-width:var(--search-summary-border-width,0);border-style:var(--search-summary-border-style,solid);border-radius:var(--search-summary-border-radius,0);border-color:var(--search-summary-border-color,transparent);background:var(--search-summary-background,transparent);box-shadow:var(--search-summary-box-shadow,none);color:var(--search-summary-color,var(--body-color,inherit));font-weight:var(--base-font-weight-normal,inherit);font-size:var(--base-font-size-body,inherit);line-height:var(--base-line-height-default,inherit);font-family:var(--search-summary-font-family,var(--font-family,inherit));font-optical-sizing:auto;transition:opacity var(--search-summary-fade-duration,.2s) ease-out;flex-direction:column;padding-bottom:0;display:flex;position:relative;overflow:hidden}.search-summary :where(button){cursor:pointer;font-family:inherit}.search-summary :where(.search-summary__sr-only){clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.search-summary:where(.search-summary--ready[data-state=loading]),.search-summary:where(.search-summary--ready[data-state=answering]){opacity:var(--search-summary-loading-opacity,1)}.search-summary:where([data-state=error]){border-color:var(--search-summary-error-border-color,inherit)}.search-summary :where(.search-summary__content){min-height:0;padding-bottom:var(--search-summary-padding,0);flex:1;animation:.35s ease-out both search-summary-content-appear;display:block;position:relative;overflow:hidden}.search-summary :where(.search-summary__content--with-follow-up){flex-direction:column;display:flex}.search-summary:where([data-capped=true]) :where(.search-summary__content){overflow-y:auto}.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving){pointer-events:none;animation:.25s ease-in both search-summary-content-disappear}.search-summary :where(.search-summary__answer-wrap){display:block;position:relative}.search-summary :where(.search-summary__answer){margin-bottom:var(--spacer-16,1rem);line-height:var(--search-summary-answer-line-height,1.5)}.search-summary :where(.search-summary__answer a){color:var(--search-summary-link-color,LinkText);text-decoration:underline}.search-summary :where(.search-summary__answer p){margin-top:0}.search-summary :where(.search-summary__answer--themed){font-size:var(--base-font-size-body,inherit);line-height:var(--search-summary-answer-line-height,var(--base-line-height-default,1.5))}.search-summary :where(.search-summary__answer--themed>:first-child){margin-top:0}.search-summary :where(.search-summary__answer--themed>:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed p,.search-summary__answer--themed ul,.search-summary__answer--themed ol){margin-top:0;margin-bottom:var(--spacer-r-16,1rem)}.search-summary :where(.search-summary__answer--themed h1,.search-summary__answer--themed h2,.search-summary__answer--themed h3,.search-summary__answer--themed h4,.search-summary__answer--themed h5,.search-summary__answer--themed h6){margin-top:var(--spacer-r-24,1.5rem);margin-bottom:var(--spacer-r-12,.75rem);font-weight:var(--base-font-weight-title,700);line-height:var(--base-line-height-tight,1.2)}.search-summary :where(.search-summary__answer--themed ul,.search-summary__answer--themed ol){padding-left:1.5em;list-style-position:outside}.search-summary :where(.search-summary__answer--themed ul){list-style-type:disc}.search-summary :where(.search-summary__answer--themed ol){list-style-type:decimal}.search-summary :where(.search-summary__answer--themed li){margin-bottom:var(--spacer-8,.5rem)}.search-summary :where(.search-summary__answer--themed li:last-child){margin-bottom:0}.search-summary :where(.search-summary__answer--themed b,.search-summary__answer--themed strong){font-weight:var(--base-font-weight-bold,700)}.search-summary :where(.search-summary__answer--themed a){color:var(--search-summary-link-color,var(--anchor-color,LinkText))}.search-summary :where(.search-summary__loading){margin-bottom:var(--spacer-16,1rem);align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__loading-spinner){border:1.5px solid var(--anchor-color,currentColor);border-top-color:#0000;border-radius:50%;flex-shrink:0;width:.5em;height:.5em;animation:.4s linear infinite search-summary-spin;display:inline-block}.search-summary :where(.search-summary__loading-text){font-size:var(--base-font-size-default,inherit)}.search-summary :where(.search-summary__references){padding:0;padding-bottom:var(--spacer-32,2rem);color:var(--search-summary-reference-list-color,inherit);font-size:var(--search-summary-reference-list-font-size,inherit);font-size:var(--base-font-size-sm,inherit);margin:0;list-style-type:none}.search-summary :where(.search-summary__references-title){padding:var(--spacer-2,2px) 0;font-weight:var(--base-font-weight-bold,500);font-size:var(--base-font-size-sm,inherit)}.search-summary :where(.search-summary__reference){display:list-item}.search-summary :where(.search-summary__reference a){padding:var(--spacer-2,2px) 0;color:var(--search-summary-reference-list-color,var(--search-summary-link-color,LinkText));display:block}.search-summary :where(.search-summary__follow-up){padding-top:var(--spacer-12,.75rem);flex-shrink:0;margin-top:auto}.search-summary :where(.search-summary__follow-up-field){align-items:center;gap:var(--spacer-8,.5rem);display:flex}.search-summary :where(.search-summary__follow-up-input){border-width:var(--search-summary-follow-up-border-width,revert);border-style:var(--search-summary-follow-up-border-style,revert);border-radius:var(--search-summary-follow-up-border-radius,revert);border-color:var(--search-summary-follow-up-border-color,revert);background:var(--search-summary-follow-up-background,revert);min-width:0;color:var(--search-summary-follow-up-color,revert);font:inherit;flex:auto}.search-summary :where(.search-summary__follow-up-submit){border-width:var(--search-summary-follow-up-submit-border-width,revert);border-style:var(--search-summary-follow-up-submit-border-style,revert);border-radius:var(--search-summary-follow-up-submit-border-radius,revert);border-color:var(--search-summary-follow-up-submit-border-color,revert);background:var(--search-summary-follow-up-submit-background,revert);color:var(--search-summary-follow-up-submit-color,revert);font:inherit;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.search-summary :where(.search-summary__follow-up-submit-icon){width:var(--spacer-20,1.25rem);height:var(--spacer-20,1.25rem);pointer-events:none}.search-summary :where(.search-summary__follow-up-submit-icon) :where(svg){width:100%;height:100%;display:block}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field){padding:var(--spacer-4,.25rem) var(--spacer-8,.5rem) var(--spacer-4,.25rem) var(--spacer-16,1rem);border-width:var(--chat-input-border-width,var(--spacer-1,1px));border-radius:var(--chat-input-border-radius,1.75rem);border-style:solid;border-color:var(--chat-input-border-color,currentColor);background:var(--chat-input-background,transparent);box-shadow:var(--chat-input-box-shadow,none);transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):hover{background:var(--chat-input-hover-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-field):has(.search-summary__follow-up-input:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width,var(--spacer-1,1px)));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius,1.75rem));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color,currentColor));background:var(--chat-input-focus-background,var(--chat-input-background,transparent));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow,none))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input){color:var(--chat-input-color,inherit);background:0 0;border:0;padding:0}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus,.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-input):focus-visible{outline:none}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit){width:var(--btn-submit-size,2.25rem);height:var(--btn-submit-size,2.25rem);padding:0;border-width:var(--chat-input-submit-border-width,0);border-radius:var(--chat-input-submit-border-radius,50%);border-style:solid;border-color:var(--chat-input-submit-border-color,transparent);background:var(--chat-input-submit-background,var(--search-summary-link-color,LinkText));box-shadow:var(--chat-input-submit-box-shadow,none);color:var(--chat-input-submit-color,Canvas);padding-inline:0;transition:background .2s,border-color .2s,border-width .2s,border-radius .2s,box-shadow .2s,color .2s,transform .2s}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit):hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width,0));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius,50%));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color,transparent));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background,var(--search-summary-link-color,LinkText)));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow,none));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color,Canvas))}.search-summary :where(.search-summary__follow-up--themed .search-summary__follow-up-submit-icon--fallback path){stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,2px)}.search-summary :where(.search-summary__disclaimer){margin-bottom:var(--spacer-16,1rem);line-height:var(--base-line-height-default,1.5)}.search-summary :where(.search-summary__disclaimer a){color:var(--search-summary-disclaimer-link-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__disclaimer p){margin-top:0}.search-summary :where(.search-summary__opt-in-panel){flex-direction:column;flex:1;min-height:0;display:flex}.search-summary :where(.search-summary__opt-in-body){min-height:0;margin-top:var(--spacer-4,.25rem);margin-bottom:var(--spacer-16,1rem);flex:1;position:relative;overflow-y:auto}.search-summary :where(.search-summary__error){color:var(--search-summary-error-color,inherit)}.search-summary :where(.search-summary__footer){margin-right:calc(-1 * var(--search-summary-padding,0));margin-left:calc(-1 * var(--search-summary-padding,0));padding:0 var(--search-summary-padding,0) calc(var(--search-summary-padding,0));justify-content:space-between;align-items:center;gap:var(--spacer-12,.75rem);background:var(--search-summary-footer-background,var(--search-summary-background,white));flex-wrap:wrap;flex-shrink:0;display:flex;position:relative}.search-summary :where(.search-summary__footer):after{height:var(--spacer-48,3rem);background:linear-gradient(to bottom, transparent, var(--search-summary-footer-background,var(--search-summary-background,white)));content:"";pointer-events:none;position:absolute;top:0;left:0;right:0;transform:translateY(-100%)}.search-summary :where(.search-summary__footer--overlay){margin:0;position:absolute;bottom:0;left:0;right:0}.search-summary :where(.search-summary__footer-actions){align-items:center;gap:var(--spacer-8,.5rem);flex-wrap:wrap;display:flex}.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount){animation:.3s cubic-bezier(.25,.46,.45,.94) both search-summary-action-appear}.search-summary :where(.search-summary__opt-in,.search-summary__opt-in-slot-mount){animation-delay:.3s}.search-summary :where(.search-summary__btn--leaving){pointer-events:none;animation:.2s cubic-bezier(.55,0,1,.45) both search-summary-action-disappear}.search-summary :where(.search-summary__expand,.search-summary__opt-in,.search-summary__opt-out):not(:where(.search-summary__btn)){font:inherit;padding:0;padding-inline:0}.search-summary :where(.search-summary__expand,.search-summary__opt-in):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-primary-border-radius,0);border-color:var(--search-summary-action-primary-border-color,transparent);background:var(--search-summary-action-primary-background,transparent);color:var(--search-summary-action-primary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__opt-out):not(:where(.search-summary__btn)){border-width:var(--search-summary-action-border-width,0);border-style:var(--search-summary-action-border-style,solid);border-radius:var(--search-summary-action-secondary-border-radius,0);border-color:var(--search-summary-action-secondary-border-color,transparent);background:var(--search-summary-action-secondary-background,transparent);color:var(--search-summary-action-secondary-color,var(--search-summary-link-color,LinkText));text-decoration:underline}.search-summary :where(.search-summary__btn){padding:var(--btn-padding-y,var(--spacer-8,.5rem)) var(--btn-padding-x,var(--spacer-20,1.25rem));align-items:center;gap:var(--spacer-8,.5rem);border-width:var(--spacer-1,1px);font-size:var(--base-font-size-sm,inherit);cursor:pointer;border-style:solid;font-family:inherit;line-height:1.25;text-decoration:none;display:inline-flex}.search-summary :where(.search-summary__btn--primary){border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color,transparent);background:var(--btn-primary-background);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.search-summary :where(.search-summary__btn--primary):hover{background:var(--btn-primary-hover-background,var(--btn-primary-background));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.search-summary :where(.search-summary__btn--secondary){border-radius:var(--btn-secondary-border-radius);border-color:var(--btn-secondary-border-color,var(--btn-secondary-background));background:var(--btn-secondary-background);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.search-summary :where(.search-summary__btn--secondary):hover{background:var(--btn-secondary-hover-background,var(--btn-secondary-background));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}@media (prefers-reduced-motion:reduce){.search-summary{transition:none}.search-summary :where(.search-summary__content),.search-summary :where(.search-summary__content--leaving),.search-summary :where(.search-summary__footer--leaving),.search-summary :where(.search-summary__expand,.search-summary__expand-slot-mount,.search-summary__opt-in,.search-summary__opt-in-slot-mount,.search-summary__opt-out,.search-summary__opt-out-slot-mount),.search-summary :where(.search-summary__btn--leaving),.search-summary :where(.search-summary__loading-spinner){animation:none!important}}}`,L=`liipgpt:search-summary:opt-in:`;function Te(e){let t=5381;for(let n=0;n<e.length;n++)t=t*33^e.charCodeAt(n);return(t>>>0).toString(36)}function R(e){return`${L}${Te(e??``)}`}function z(){try{return typeof window<`u`&&window.localStorage!==void 0}catch{return!1}}function Ee(e){if(!z())return!1;try{return window.localStorage.getItem(R(e))===`1`}catch{return!1}}function De(e){if(z())try{window.localStorage.setItem(R(e),`1`)}catch{}}function Oe(e){if(z())try{window.localStorage.removeItem(R(e))}catch{}}var B=new WeakMap;function ke(e,t,n){if(!t)return null;let r=B.get(t);return r&&t.removeEventListener(`click`,r),t.removeAttribute(`slot`),t.type=`button`,t.addEventListener(`click`,n),B.set(t,n),e.appendChild(t),({label:e,ariaLabel:n,ariaExpanded:r})=>{e!==void 0&&(t.textContent=e),n!==void 0&&t.setAttribute(`aria-label`,n),r===void 0?t.removeAttribute(`aria-expanded`):t.setAttribute(`aria-expanded`,String(r))}}function Ae(e,t){if(!t)return;let n=B.get(t);n&&(t.removeEventListener(`click`,n),B.delete(t)),e.contains(t)&&e.removeChild(t)}function je(e,t=`.search-summary`){return e.replaceAll(`.chat-app`,t)}var Me=`(prefers-reduced-motion: reduce)`;function Ne(e){if(typeof window>`u`)return e(!1),()=>{};let t=window.matchMedia(Me);e(t.matches);let n=()=>e(t.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Pe=_(`<!> <!> <!>`,1),Fe=_(`<div class="search-summary__disclaimer-text"></div>`),Ie=_(`<div class="search-summary__opt-in-slot-mount"></div>`),Le=_(`<button type="button"> </button>`),Re=_(`<div class="search-summary__opt-in-panel"><div class="search-summary__opt-in-body"><div class="search-summary__disclaimer"><!></div></div> <div class="search-summary__footer"><!></div></div>`),ze=_(`<div class="search-summary__loading" aria-live="polite"><span class="search-summary__loading-spinner" aria-hidden="true"></span> <span class="search-summary__loading-text"> </span></div>`),Be=_(`<div class="search-summary__error" role="alert"> </div>`),Ve=_(`<li class="search-summary__reference"><a target="_blank" rel="noopener noreferrer"> </a></li>`),He=_(`<div class="search-summary__references-title"> </div> <ol class="search-summary__references"></ol>`,1),Ue=_(`<div class="search-summary__follow-up-submit-icon"></div>`),We=y(`<svg class="search-summary__follow-up-submit-icon search-summary__follow-up-submit-icon--fallback" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12 1v22"></path><path d="m4 9 8-8 8 8"></path></g></svg>`),Ge=_(`<form><label class="search-summary__sr-only" for="search-summary-follow-up-input"> </label> <div class="search-summary__follow-up-field"><input id="search-summary-follow-up-input" class="search-summary__follow-up-input" type="text"/> <button type="submit" class="search-summary__follow-up-submit"><span class="search-summary__sr-only"> </span> <!></button></div></form>`),Ke=_(`<div class="search-summary__expand-slot-mount"></div>`),qe=_(`<button type="button"> </button>`),Je=_(`<div class="search-summary__opt-out-slot-mount"></div>`),Ye=_(`<button type="button"> </button>`),Xe=_(`<div><div class="search-summary__footer-actions"><!></div> <!></div>`),Ze=_(`<div><div class="search-summary__answer-wrap"><!> <div aria-live="polite"></div></div> <!> <!> <!></div> <!>`,1),Qe=_(`<!> <!> <div><!></div>`,1);function V(i,d){f(d,!0);function _(e){let t=e.trim();return!(!t||/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(t)||t.startsWith(`//`))}let y=O(d,`lang`,7,`de`),x=O(d,`apiUrl`,7),w=O(d,`apiKey`,7,``),A=O(d,`question`,7),j=O(d,`height`,7,`280`),ge=O(d,`maxHeight`,7),F=O(d,`optIn`,7,!1),xe=O(d,`optInLabel`,7),I=O(d,`expandLabel`,7),L=O(d,`collapseLabel`,7),Te=O(d,`optOutLabel`,7),R=O(d,`useChatConfig`,7,!1),z=O(d,`sendReferrer`,7),B=O(d,`forceTheme`,7),Me=O(d,`disclaimerHtml`,7,``),V=O(d,`labelledBy`,7),H=O(d,`chatUrl`,7),$e=O(d,`mode`,7,`search`),et=O(d,`source`,7,`search-summary`),tt=O(d,`cache`,7,!1),nt=O(d,`activateAiButtonSlot`,7,null),U=O(d,`expandAnswerButtonSlot`,7,null),rt=O(d,`deactivateAiButtonSlot`,7,null),it=n(null),W=n(null),G=n(!1),at=T(()=>{let e=he(z());return z()&&!e&&console.warn(`liipgpt-search-summary: ignoring unknown send-referrer="${z()}". Expected all, own, location or none.`),e??k(W)?.chatConfig.sendReferrer}),ot=[`de`,`en`,`fr`,`it`],st=T(()=>k(W)?.language??le(y(),ot)),K=T(()=>({...Ce[k(st)],...k(it)})),q=n(`loading`),J=n(null),Y=n(null),ct=n(null),lt=n(null),ut=n(!1),X=n(!1),dt=n(!1),ft=n(t(pe)),pt=T(()=>fe(j())),mt=T(()=>ue(k(pt))),ht=T(()=>k(mt)===null),gt=T(()=>k(mt)??pe),_t=T(()=>ge()===void 0?``:fe(ge()));function vt(){if(!k(_t))return null;let e=ue(k(_t));return e===null?k(J)?de(k(J),k(_t)):null:e}let yt=n(!1);C(()=>Ne(e=>h(yt,e,!0)));function bt(e){return k(yt)?0:e}let xt=new Se(E(()=>k(gt)),{duration:400,easing:_e}),St=n(!1);C(()=>{if(!k(St)){if(k(X)){xt.set(k(ft),{duration:bt(400)});return}!k(ht)&&k(mt)!==null&&xt.set(k(mt),{duration:bt(400)})}});function Ct(){return k(J)?k(mt)===null?de(k(J),k(pt)):k(mt):k(gt)}async function wt(e){h(St,!0),await xt.set(e,{duration:bt(400)}),h(St,!1)}function Tt(){if(!k(J))return Ct();if(k(J).offsetHeight>0)return k(J).offsetHeight;let e=k(J).style.height;if(!e)return Ct();let t=ue(e);return t===null?de(k(J),e):t}let Et=n(``),Dt=n(t([])),Ot=n(``),kt=n(null),At=n(!1),jt=n(``),Mt=T(()=>H()&&_(H())?H():void 0),Nt=T(()=>!!k(Mt)&&!!k(kt)),Pt=T(()=>k(Nt)&&k(At)),Ft=T(()=>!k(X)&&k(ut)),It=T(()=>k(q)!==`opt-in`&&k(q)!==`loading`&&k(q)!==`error`&&(k(ut)||k(X))&&!(k(X)&&k(Nt))),Lt=T(()=>F()&&k(q)!==`opt-in`),Rt=T(()=>k(X)?L()||k(K).searchSummaryCollapse:I()||k(K).searchSummaryExpand),zt=T(()=>k(X)?k(K).ariaSearchSummaryCollapse:k(K).ariaSearchSummaryExpand),Bt=n(``),Vt=n(``),Ht=null,Ut=T(()=>k(X)?k(Vt)||L()||k(K).searchSummaryCollapse:I()||k(Bt)||k(K).searchSummaryExpand),Wt=T(()=>k(X)?k(Vt)||L()||k(K).ariaSearchSummaryCollapse:I()||k(Bt)||k(K).ariaSearchSummaryExpand),Gt=T(()=>k(W)?be(k(W).chatConfig.fullTheme[k(W).colorScheme].tokens,{root:`.search-summary`}):``),Kt=T(()=>k(W)?.chatConfig.fullTheme[k(W).colorScheme]?.customCSS?je(k(W).chatConfig.fullTheme[k(W).colorScheme].customCSS):``),qt=T(()=>k(W)?.chatConfig.fullTheme[k(W).colorScheme]?.fontCSS??``),Jt=T(()=>k(W)?.chatConfig.fullTheme[k(W).colorScheme]?.tokens?.svgs?.submit??``),Z=T(()=>k(W)!==null),Yt=T(()=>k(Z)?` search-summary__btn`:``),Xt=T(()=>k(Z)?` search-summary__follow-up--themed`:``);function Zt(){if(!k(J))return k(gt);let e=k(J).style.height;k(J).style.height=`auto`;let t=k(Y)?.style.flex??``;k(Y)&&(k(Y).style.flex=`none`);let n=k(J).scrollHeight;return k(Y)&&(k(Y).style.flex=t),k(J).style.height=e,n}function Qt(){h(ut,(k(Y)?.scrollHeight??0)>(k(Y)?.offsetHeight??0)+1)}function $t(){let e=Zt(),t=vt();h(ft,t===null?e:Math.min(e,t),!0),h(dt,t!==null&&e>t,!0)}async function en(){if(k(J))if(!k(X))$t(),xt.set(Tt(),{duration:0}),h(X,!0),h(q,`expanded`),await S(),Qt(),$t(),await wt(k(ft));else{xt.set(Tt(),{duration:0});let e=Ct();h(X,!1),h(q,k(Et)?`done`:`loading`,!0),await S(),Qt(),await wt(e)}}let tn=n(!1);te(()=>{k(tn)||x()&&(h(q,F()&&!Ee(x())?`opt-in`:`loading`,!0),h(tn,!0))}),C(()=>{if(!x()||!R()){h(W,null),h(it,null),h(G,!0);return}let e=!1;return h(G,!1),ce(async()=>{let{loadChatConfig:e}=await import(`./7SXCsozV.js`);return{loadChatConfig:e}},__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(({loadChatConfig:e})=>e({apiUrl:x(),lang:y(),forceTheme:B()})).then(t=>{e||(h(W,t,!0),h(it,t.chatConfig.translations[t.language]??null,!0))}).catch(()=>{e||(h(W,null),h(it,null))}).finally(()=>{e||h(G,!0)}),()=>{e=!0}});let nn=T(()=>k(tn)&&k(G)),rn=n(!1);C(()=>{if(!k(nn)||k(rn))return;let e=requestAnimationFrame(()=>h(rn,!0));return()=>cancelAnimationFrame(e)}),C(()=>{if(!k(J))return;k(Et),k(Dt).length,k(pt),$t(),Qt();let e=new ResizeObserver(()=>{$t(),Qt()});return e.observe(k(J)),k(Y)&&e.observe(k(Y)),()=>e.disconnect()});function an(e){return e.classList.add(`search-summary__btn--leaving`),{duration:bt(200)}}function on(e,t){if(k(yt)){t();return}let n=e.currentTarget;n.classList.add(`search-summary__btn--leaving`),n.addEventListener(`animationend`,t,{once:!0})}function sn(e=null){if(k(yt)){dn();return}e?.classList.add(`search-summary__btn--leaving`),k(Y)?.classList.add(`search-summary__content--leaving`),k(ct)?.classList.add(`search-summary__footer--leaving`),k(ct)?.querySelector(`.search-summary__expand, .search-summary__expand-slot-mount`)?.classList.add(`search-summary__btn--leaving`);let t=k(Y)??e;t?t.addEventListener(`animationend`,dn,{once:!0}):dn()}function cn(e){sn(e.currentTarget)}function ln(){De(x()),h(q,`loading`)}function un(){mn?.(),Q&&Q.abort().catch(()=>{}),mn=void 0,Q=void 0,h(kt,null),h(At,!1),h(jt,``),fn=!1,h(Et,``),h(Dt,[],!0),h(Ot,``),h(X,!1),h(ut,!1)}function dn(){Oe(x()),un(),h(q,`opt-in`)}let fn=!1,pn,mn,Q;function hn(){if(fn||!k(G))return;fn=!0,pn=A();let e=new me({apiUrl:x(),apiKey:w()});try{let t=e.createConversation();h(kt,t.id,!0),Q=t.chat(A(),{lang:k(st),mode:$e()||void 0,source:et()||void 0,cache:tt()||void 0,referrer:ve(k(at),{embedded:!1})})}catch(e){h(Ot,e instanceof Error&&e.message?e.message:k(K).searchSummaryError,!0),h(q,`error`);return}mn=Q.subscribe(e=>{if(e.errors.length>0){h(Ot,e.errors.join(`, `)||k(K).searchSummaryError,!0),h(q,`error`);return}if(e.state===`loading`){h(q,`loading`);return}h(Et,e.message.html,!0),h(Dt,e.references.used.slice().sort((e,t)=>(e.referenceIndex.used??0)-(t.referenceIndex.used??0)),!0),e.state===`streaming`?k(X)||h(q,`answering`):e.state===`done`&&(h(At,!0),k(X)||h(q,`done`),queueMicrotask(Qt))})}C(()=>{!A()||!x()||!k(G)||k(q)!==`loading`||hn()});function gn(){if(un(),F()&&!Ee(x())){h(q,`opt-in`);return}h(q,`loading`),hn()}C(()=>{let e=A();!e||!fn||e===pn||E(()=>gn())}),ne(()=>{mn?.(),Q&&Q.abort().catch(()=>{})}),C(()=>{k(lt)&&(k(lt).innerHTML=k(Et),k(lt).querySelectorAll(`liipgpt-reference-number`).forEach(e=>e.remove()),queueMicrotask(Qt))});function _n(e){e.preventDefault();let t=k(jt).trim();if(!t||!k(Mt)||!k(kt))return;let n=new URL(k(Mt),window.location.href);if(n.pathname===window.location.pathname){let e=new URLSearchParams(window.location.search);for(let[t,r]of n.searchParams)e.set(t,r);n.search=e.toString()}n.searchParams.set(`follow-up-q`,t),n.hash=`cID=${k(kt)}`,window.location.assign(n.toString())}let vn=n(null),yn=n(null),bn=n(null);C(()=>{let e=k(vn),t=nt();if(!(!e||!t))return ke(e,t,ln)?.({label:xe()||void 0}),()=>Ae(e,t)}),C(()=>{let e=k(yn),t=U();if(!(!e||!t||!k(It)))return Ht!==t&&(Ht=t,h(Bt,t.textContent?.trim()??``,!0),h(Vt,t.dataset.collapseLabel?.trim()??``,!0)),ke(e,t,en)?.({label:k(Ut),ariaLabel:k(Wt),ariaExpanded:k(X)}),()=>Ae(e,t)}),C(()=>{!U()||!k(It)||(U().textContent=k(Ut),U().setAttribute(`aria-label`,k(Wt)),U().setAttribute(`aria-expanded`,String(k(X))))}),C(()=>{let e=k(bn),t=rt();if(!(!e||!t||!k(Lt)))return ke(e,t,()=>sn(e))?.({label:Te()||void 0,ariaLabel:k(K).ariaSearchSummaryOptOut}),()=>Ae(e,t)});var xn={reload:gn,get lang(){return y()},set lang(e=`de`){y(e),l()},get apiUrl(){return x()},set apiUrl(e){x(e),l()},get apiKey(){return w()},set apiKey(e=``){w(e),l()},get question(){return A()},set question(e){A(e),l()},get height(){return j()},set height(e=`280`){j(e),l()},get maxHeight(){return ge()},set maxHeight(e){ge(e),l()},get optIn(){return F()},set optIn(e=!1){F(e),l()},get optInLabel(){return xe()},set optInLabel(e){xe(e),l()},get expandLabel(){return I()},set expandLabel(e){I(e),l()},get collapseLabel(){return L()},set collapseLabel(e){L(e),l()},get optOutLabel(){return Te()},set optOutLabel(e){Te(e),l()},get useChatConfig(){return R()},set useChatConfig(e=!1){R(e),l()},get sendReferrer(){return z()},set sendReferrer(e){z(e),l()},get forceTheme(){return B()},set forceTheme(e){B(e),l()},get disclaimerHtml(){return Me()},set disclaimerHtml(e=``){Me(e),l()},get labelledBy(){return V()},set labelledBy(e){V(e),l()},get chatUrl(){return H()},set chatUrl(e){H(e),l()},get mode(){return $e()},set mode(e=`search`){$e(e),l()},get source(){return et()},set source(e=`search-summary`){et(e),l()},get cache(){return tt()},set cache(e=!1){tt(e),l()},get activateAiButtonSlot(){return nt()},set activateAiButtonSlot(e=null){nt(e),l()},get expandAnswerButtonSlot(){return U()},set expandAnswerButtonSlot(e=null){U(e),l()},get deactivateAiButtonSlot(){return rt()},set deactivateAiButtonSlot(e=null){rt(e),l()}},Sn=Qe(),Cn=P(Sn);ye(Cn,{id:`search-summary-css`,get css(){return we}});var wn=p(Cn,2),Tn=e=>{var t=Pe(),n=P(t);ye(n,{id:`search-summary-font-css`,get css(){return k(qt)}});var r=p(n,2);ye(r,{id:`search-summary-theme-css`,get css(){return k(Gt)}});var i=p(r,2),a=e=>{ye(e,{id:`search-summary-custom-css`,get css(){return k(Kt)}})};g(i,e=>{k(Kt)&&e(a)}),o(e,t)};g(wn,e=>{k(Z)&&k(Gt)&&e(Tn)});var $=p(wn,2);let En,Dn;var On=b($),kn=e=>{var t=Re(),n=b(t),i=b(n),c=b(i),l=e=>{var t=v(),n=P(t),r=e=>{var t=Fe();se(t,()=>k(K).searchSummaryDisclaimer,!0),a(t),o(e,t)};g(n,e=>{k(K).searchSummaryDisclaimer&&e(r)}),o(e,t)},u=e=>{var t=v();se(P(t),Me),o(e,t)};g(c,e=>{R()?e(l):e(u,-1)}),a(i),a(n);var d=p(n,2),f=b(d),m=e=>{var t=Ie();M(t,e=>h(vn,e),()=>k(vn)),o(e,t)},_=e=>{var t=Le(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__opt-in${k(Yt)??``}${k(Z)?` search-summary__btn--secondary`:``}`),s(n,xe()||k(K).searchSummaryOptInDefault)}),re(`click`,t,e=>on(e,ln)),o(e,t)};g(f,e=>{nt()?e(m):e(_,-1)}),a(d),a(t),o(e,t)},An=t=>{var n=Ze(),i=P(n);let c;var l=b(i),d=b(l),f=e=>{var t=ze(),n=p(b(t),2),r=b(n,!0);a(n),a(t),D(()=>s(r,k(K).searchSummaryLoading)),o(e,t)};g(d,e=>{k(q)===`loading`&&e(f)});var m=p(d,2);let _;M(m,e=>h(lt,e),()=>k(lt)),a(l);var y=p(l,2),x=e=>{var t=Be(),n=b(t,!0);a(t),D(()=>s(n,k(Ot)||k(K).searchSummaryError)),o(e,t)};g(y,e=>{k(q)===`error`&&e(x)});var S=p(y,2),te=t=>{var n=He(),r=P(n),i=b(r,!0);a(r);var c=p(r,2);e(c,21,()=>k(Dt),e=>e.referenceIndex.used??e.url,(e,t)=>{var n=Ve(),r=b(n),i=b(r,!0);a(r),a(n),D(()=>{oe(n,k(t).referenceIndex.used??void 0),N(r,`href`,k(t).url),N(r,`tabindex`,k(Ft)?-1:void 0),s(i,k(t).display.listItem.title||k(t).display.card.title||k(t).url)}),o(e,n)}),a(c),D(()=>s(i,k(K).referencesTitle)),o(t,n)};g(S,e=>{k(Dt).length>0&&e(te)});var C=p(S,2),w=e=>{var t=Ge(),n=b(t),i=b(n,!0);a(n);var c=p(n,2),l=b(c);ee(l);var u=p(l,2),d=b(u),f=b(d,!0);a(d);var m=p(d,2),_=e=>{var t=Ue();se(t,()=>k(Jt),!0),a(t),o(e,t)},v=e=>{o(e,We())};g(m,e=>{k(Jt)?e(_):e(v,-1)}),a(u),a(c),a(t),D(()=>{r(t,1,`search-summary__follow-up${k(Xt)??``}`),t.inert=k(Ft),s(i,k(K).ariaSearchSummaryFollowUpInput),N(l,`placeholder`,k(K).searchSummaryFollowUpPlaceholder),N(l,`aria-label`,k(K).ariaSearchSummaryFollowUpInput),N(u,`aria-label`,k(K).searchSummaryFollowUpSubmit),s(f,k(K).searchSummaryFollowUpSubmit)}),ae(`submit`,t,_n),ie(l,()=>k(jt),e=>h(jt,e)),o(e,t)};g(C,e=>{k(Pt)&&e(w)}),a(i),M(i,e=>h(Y,e),()=>k(Y));var T=p(i,2),E=e=>{var t=Xe();let n;var i=b(t),c=b(i),l=e=>{var t=v(),n=P(t),i=e=>{var t=Ke();M(t,e=>h(yn,e),()=>k(yn)),u(2,t,()=>an),o(e,t)},c=e=>{var t=qe(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__expand${k(Yt)??``}${k(Z)?` search-summary__btn--primary`:``}`),N(t,`aria-expanded`,k(X)),N(t,`aria-label`,k(zt)),s(n,k(Rt))}),re(`click`,t,en),u(2,t,()=>an),o(e,t)};g(n,e=>{U()?e(i):e(c,-1)}),o(e,t)};g(c,e=>{k(It)&&e(l)}),a(i);var d=p(i,2),f=e=>{var t=v(),n=P(t),i=e=>{var t=Je();M(t,e=>h(bn,e),()=>k(bn)),o(e,t)},c=e=>{var t=Ye(),n=b(t,!0);a(t),D(()=>{r(t,1,`search-summary__opt-out${k(Yt)??``}${k(Z)?` search-summary__btn--secondary`:``}`),N(t,`aria-label`,k(K).ariaSearchSummaryOptOut),s(n,Te()||k(K).searchSummaryOptOut)}),re(`click`,t,cn),o(e,t)};g(n,e=>{rt()?e(i):e(c,-1)}),o(e,t)};g(d,e=>{k(Lt)&&e(f)}),a(t),M(t,e=>h(ct,e),()=>k(ct)),D(()=>n=r(t,1,`search-summary__footer`,null,n,{"search-summary__footer--overlay":k(Pt)})),o(e,t)};g(T,e=>{(!k(Pt)||k(It)||k(Lt))&&e(E)}),D(()=>{c=r(i,1,`search-summary__content`,null,c,{"search-summary__content--with-follow-up":k(Pt)}),_=r(m,1,`search-summary__answer`,null,_,{"search-summary__answer--themed":k(Z)})}),o(t,n)};return g(On,e=>{k(q)===`opt-in`?e(kn):e(An,-1)}),a($),M($,e=>h(J,e),()=>k(J)),D(()=>{En=r($,1,`search-summary`,null,En,{"search-summary--ready":k(rn)}),N($,`data-state`,k(q)),N($,`data-expanded`,k(X)?`true`:`false`),N($,`data-capped`,k(X)&&k(dt)?`true`:void 0),N($,`role`,V()?`region`:void 0),N($,`aria-labelledby`,V()),Dn=m($,``,Dn,{height:k(X)||k(St)||!k(ht)?`${xt.current}px`:k(pt),"max-height":k(_t)||null})}),o(i,Sn),c(xn)}j([`click`]),w(V,{lang:{},apiUrl:{},apiKey:{},question:{},height:{},maxHeight:{},optIn:{},optInLabel:{},expandLabel:{},collapseLabel:{},optOutLabel:{},useChatConfig:{},sendReferrer:{},forceTheme:{},disclaimerHtml:{},labelledBy:{},chatUrl:{},mode:{},source:{},cache:{},activateAiButtonSlot:{},expandAnswerButtonSlot:{},deactivateAiButtonSlot:{}},[],[`reload`],{mode:`open`});function H(e,t){f(t,!0);let r=O(t,`lang`,7),i=O(t,`apiUrl`,7),a=O(t,`apiKey`,7),o=O(t,`question`,7),s=O(t,`height`,7),u=O(t,`maxHeight`,7),d=O(t,`optIn`,7),p=O(t,`optInLabel`,7),m=O(t,`expandLabel`,7),g=O(t,`collapseLabel`,7),_=O(t,`optOutLabel`,7),v=O(t,`useChatConfig`,7),y=O(t,`sendReferrer`,7),ee=O(t,`forceTheme`,7),b=O(t,`wrapperClass`,7),S=O(t,`labelledBy`,7),w=O(t,`chatUrl`,7),E=O(t,`mode`,7),D=O(t,`source`,7),ne=O(t,`cache`,7),re=T(()=>({lang:r(),apiUrl:i(),apiKey:a(),question:o(),height:s(),maxHeight:u(),optIn:d(),optInLabel:p(),expandLabel:m(),collapseLabel:g(),optOutLabel:_(),useChatConfig:v(),sendReferrer:y(),forceTheme:ee(),labelledBy:S(),chatUrl:w(),mode:E(),source:D(),cache:ne()})),ie=n(void 0),A=t.$$host;C(()=>{A&&b()&&(A.className=b())}),C(()=>{if(!A||!k(ie))return;let e=A;return e.reload=()=>k(ie)?.reload(),()=>{delete e.reload}});let ae=T(()=>A?.querySelector(`[slot="disclaimer"]`)?.innerHTML??``),j=n(null),N=n(null),oe=n(null);return te(()=>{if(v()){h(j,null),h(N,null),h(oe,null);return}h(j,A?.querySelector(`[slot="activate-ai-button"]`)??null,!0),h(N,A?.querySelector(`[slot="expand-answer-button"]`)??null,!0),h(oe,A?.querySelector(`[slot="deactivate-ai-button"]`)??null,!0)}),M(V(e,x(()=>k(re),{get disclaimerHtml(){return k(ae)},get activateAiButtonSlot(){return k(j)},get expandAnswerButtonSlot(){return k(N)},get deactivateAiButtonSlot(){return k(oe)}})),e=>h(ie,e,!0),()=>k(ie)),c({get lang(){return r()},set lang(e){r(e),l()},get apiUrl(){return i()},set apiUrl(e){i(e),l()},get apiKey(){return a()},set apiKey(e){a(e),l()},get question(){return o()},set question(e){o(e),l()},get height(){return s()},set height(e){s(e),l()},get maxHeight(){return u()},set maxHeight(e){u(e),l()},get optIn(){return d()},set optIn(e){d(e),l()},get optInLabel(){return p()},set optInLabel(e){p(e),l()},get expandLabel(){return m()},set expandLabel(e){m(e),l()},get collapseLabel(){return g()},set collapseLabel(e){g(e),l()},get optOutLabel(){return _()},set optOutLabel(e){_(e),l()},get useChatConfig(){return v()},set useChatConfig(e){v(e),l()},get sendReferrer(){return y()},set sendReferrer(e){y(e),l()},get forceTheme(){return ee()},set forceTheme(e){ee(e),l()},get wrapperClass(){return b()},set wrapperClass(e){b(e),l()},get labelledBy(){return S()},set labelledBy(e){S(e),l()},get chatUrl(){return w()},set chatUrl(e){w(e),l()},get mode(){return E()},set mode(e){E(e),l()},get source(){return D()},set source(e){D(e),l()},get cache(){return ne()},set cache(e){ne(e),l()}})}customElements.define(`liipgpt-search-summary`,w(H,{lang:{attribute:`lang`,type:`String`},apiUrl:{attribute:`api-url`,type:`String`},apiKey:{attribute:`api-key`,type:`String`},question:{attribute:`question`,type:`String`},height:{attribute:`height`,type:`String`},maxHeight:{attribute:`max-height`,type:`String`},optIn:{attribute:`opt-in`,type:`Boolean`},optInLabel:{attribute:`opt-in-label`,type:`String`},expandLabel:{attribute:`expand-label`,type:`String`},collapseLabel:{attribute:`collapse-label`,type:`String`},optOutLabel:{attribute:`opt-out-label`,type:`String`},useChatConfig:{attribute:`use-chat-config`,type:`Boolean`},sendReferrer:{attribute:`send-referrer`,type:`String`},forceTheme:{attribute:`force-theme`,type:`String`},wrapperClass:{attribute:`wrapper-class`,type:`String`},labelledBy:{attribute:`labelled-by`,type:`String`},chatUrl:{attribute:`chat-url`,type:`String`},mode:{attribute:`mode`,type:`String`},source:{attribute:`source`,type:`String`},cache:{attribute:`cache`,type:`Boolean`}},[],[]));export{H as LiipGPTSearchSummary,F as PiiChecks};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DnB99G2N.js","../chunks/CibALFW0.js","../chunks/B1Joifa9.js","../chunks/DK3lEKRX.js","../chunks/CsGLkWF6.js","../chunks/BaFk5JeE.js","../chunks/CFKVnMbq.js","../chunks/CLWqXHLZ.js","../chunks/BFwiU0IZ.js","../nodes/1.DaqCyvgg.js","../chunks/nkdIuSLi.js","../chunks/wBAqx-SG.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../nodes/2.F3TuebRJ.js","../chunks/DjVmpym-.js","../chunks/C7GamMay.js","../chunks/W0DG3qIi.js","../chunks/BJVrdkuG.js","../chunks/hJTLHSgs.js","../chunks/DHHLckcz.js","../chunks/BpZBEnLx.js","../chunks/I5DxyXWx.js","../nodes/3.BbNw4LYP.js","../chunks/q8gaG5yu.js","../chunks/DmZKIk3Y.js","../chunks/MqTIsSeD.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/DK3lEKRX.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<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>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.DnB99G2N.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.DaqCyvgg.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.F3TuebRJ.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,4,20,21,11,22,6,12,13,8]),import.meta.url),()=>D(()=>import(`../nodes/3.BbNw4LYP.js`),__vite__mapDeps([23,10,3,1,2,16,15,17,5,18,19,4,20,21,11,24,22,25,26,6,12,13,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CVHzDxkZ.js","../chunks/CibALFW0.js","../chunks/U8ZkcQ3P.js","../chunks/DK3lEKRX.js","../chunks/CsGLkWF6.js","../chunks/BaFk5JeE.js","../chunks/CFKVnMbq.js","../chunks/CLWqXHLZ.js","../chunks/BFwiU0IZ.js","../nodes/1.CUreVIW4.js","../chunks/DOcPbtv_.js","../chunks/CuN4mAaD.js","../chunks/DUHuqsF-.js","../chunks/Bo0U8J3e.js","../nodes/2.D9FNKDzU.js","../chunks/DjVmpym-.js","../chunks/CeK7PEDP.js","../chunks/CbotzAWM.js","../chunks/BJVrdkuG.js","../chunks/DzSGfCej.js","../chunks/hJTLHSgs.js","../chunks/DQTfiEmH.js","../chunks/_ctYO-6x.js","../chunks/I5DxyXWx.js","../chunks/C9E5N_bV.js","../nodes/3.D2_zL1r0.js","../chunks/BFOCQ3BT.js","../chunks/Ti2dF09M.js","../chunks/CO3VICxJ.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,Dt as t,Gt as n,I as r,J as i,K as a,Lt as o,Mt as s,Rt as c,St as l,Tt as u,U as d,X as f,Y as p,a as m,bt as h,ct as g,gt as _,ht as v,i as y,kt as b,mt as x,o as S,ot as C,r as w,u as T,xt as E}from"../chunks/DK3lEKRX.js";import{t as D}from"../chunks/DjVmpym-.js";import"../chunks/CFKVnMbq.js";var O={},k=f(`<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>`),A=f(`<!> <!>`,1);function j(f,m){c(m,!0);let y=S(m,`stores`,7),D=S(m,`page`,7),O=S(m,`constructors`,7),j=S(m,`components`,23,()=>[]),M=S(m,`form`,7),N=S(m,`data_0`,7,null),P=S(m,`data_1`,7,null);_(()=>y().page.set(D())),v(()=>{y(),D(),O(),j(),M(),N(),P(),y().page.notify()});let F=t(!1),I=t(!1),L=t(null);w(()=>{let e=y().page.subscribe(()=>{C(F)&&(u(I,!0),g().then(()=>{u(L,document.title||`untitled page`,!0)}))});return u(F,!0),e});let R=b(()=>O()[1]);var z={get stores(){return y()},set stores(e){y(e),s()},get page(){return D()},set page(e){D(e),s()},get constructors(){return O()},set constructors(e){O(e),s()},get components(){return j()},set components(e=[]){j(e),s()},get form(){return M()},set form(e){M(e),s()},get data_0(){return N()},set data_0(e=null){N(e),s()},get data_1(){return P()},set data_1(e=null){P(e),s()}},B=A(),V=E(B),H=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params},children:(e,t)=>{var n=p();r(E(n),()=>C(R),(e,t)=>{T(t(e,{get data(){return P()},get form(){return M()},get params(){return D().params}}),e=>j()[1]=e,()=>j()?.[1])}),i(e,n)},$$slots:{default:!0}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)},U=e=>{let t=b(()=>O()[0]);var n=p();r(E(n),()=>C(t),(e,t)=>{T(t(e,{get data(){return N()},get form(){return M()},get params(){return D().params}}),e=>j()[0]=e,()=>j()?.[0])}),i(e,n)};d(V,e=>{O()[1]?e(H):e(U,-1)});var W=l(V,2),G=t=>{var r=k(),o=h(r),s=t=>{var n=e();x(()=>a(n,C(L))),i(t,n)};d(o,e=>{C(I)&&e(s)}),n(r),i(t,r)};return d(W,e=>{C(F)&&e(G)}),i(f,B),o(z)}y(j,{stores:{},page:{},constructors:{},components:{},form:{},data_0:{},data_1:{}},[],[],{mode:`open`});var M=m(j),N=[()=>D(()=>import(`../nodes/0.CVHzDxkZ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>D(()=>import(`../nodes/1.CUreVIW4.js`),__vite__mapDeps([9,10,3,1,11,6,12,13]),import.meta.url),()=>D(()=>import(`../nodes/2.D9FNKDzU.js`),__vite__mapDeps([14,10,3,1,2,15,16,17,5,18,19,20,4,21,22,11,23,6,12,13,24,8]),import.meta.url),()=>D(()=>import(`../nodes/3.D2_zL1r0.js`),__vite__mapDeps([25,10,3,1,2,22,11,23,4,5,26,20,18,21,27,17,19,15,6,13,28,24,7,8]),import.meta.url)],P=[],F={"/":[2],"/sidebar":[3]},I={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},L=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.decode])),R=Object.fromEntries(Object.entries(I.transport).map(([e,t])=>[e,t.encode])),z=!1,B=(e,t)=>L[e](t);export{B as decode,L as decoders,F as dictionary,R as encoders,z as hash,I as hooks,O as matchers,N as nodes,M as root,P as server_loads};
@@ -0,0 +1 @@
1
+ import"../chunks/DK3lEKRX.js";import{n as e,s as t}from"../chunks/DOcPbtv_.js";import"../chunks/Bo0U8J3e.js";export{t as load_css,e as start};
@@ -1,4 +1,4 @@
1
- import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DK3lEKRX.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CLWqXHLZ.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/B1Joifa9.js";import"../chunks/CsGLkWF6.js";import"../chunks/BaFk5JeE.js";import"../chunks/BFwiU0IZ.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
1
+ import{n as e}from"../chunks/CibALFW0.js";import{J as t,L as n,Lt as r,Mt as i,Rt as a,Y as o,i as s,o as c,xt as l}from"../chunks/DK3lEKRX.js";import"../chunks/CFKVnMbq.js";import{r as u}from"../chunks/CLWqXHLZ.js";import{n as d,r as f,s as p,t as m,u as h}from"../chunks/U8ZkcQ3P.js";import"../chunks/CsGLkWF6.js";import"../chunks/BaFk5JeE.js";import"../chunks/BFwiU0IZ.js";var g=async e=>await(await e(`https://liipgpt.dev.cluster.liipgpt.ch/configurator/api/all-org-names`)).json(),_=[`baselcitygpt`],v=async e=>{let t=await g(e).catch(e=>(console.error(`Error fetching org names:`,e),[]));t.push(`liipgpt`);let n=t.map(e=>_.includes(e)?[e,{dev:`https://${e}-dev-api.gpt.liip.ch/${e}`,prod:`https://${e}-api.gpt.liip.ch/${e}`}]:[e,{dev:`https://${e}.dev.cluster.liipgpt.ch/${e}`,prod:`https://${e}.prod.cluster.liipgpt.ch/${e}`}]);return Object.fromEntries(n)},y=`/**
2
2
  * @type {import('@liip/liipgpt/config').ChatConfig} ChatConfig
3
3
  */
4
4
  const CHAT_CONFIG_OVERRIDE = {
@@ -230,4 +230,4 @@ window.CHAT_CONFIG_OVERRIDE = CHAT_CONFIG_OVERRIDE;
230
230
  </g>
231
231
  </svg>
232
232
  </div>
233
- `,x={"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:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"scopeAvailableSlugs":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"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.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"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:b,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.`},esm:{type:`boolean`,value:!1,description:'Embeds the ES module build (`<script type="module">`) instead of the IIFE. Chat and button are the same size either way; the search summary splits out its ChatConfig support, so an embed styled through host CSS starts about a quarter smaller. Needs a version-pinned URL, and `https://cdn.jsdelivr.net` must be allowed by the site\'s script-src — the on-demand parts load from there even with the CDN option off, because `/cdn/npm` redirects to jsdelivr. SRI covers only the entry file, not the parts loaded on demand.'},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:y,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},cache:{type:`boolean`,value:!0,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical questions, so tweaking options here does not regenerate an answer every time. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"chat-cache":{type:`boolean`,value:!1,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical first questions, so you do not wait for a fresh answer on every reload. Only the first question of a conversation is cached. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"search-summary-question":{type:`string`,required:!0,value:f,description:"The question the search summary answers. In a real integration this is the visitor's search term, so the embed code uses a placeholder. The URL `q` param overrides this for quick testing."},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:d,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`}},S=async e=>{let t=await v(e),n=x;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},C=e({load:()=>D,prerender:()=>!0,ssr:()=>!1}),w=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},T,E=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},D=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await S(t),i=w(n,E(e.searchParams)),a=!!(T&&T[`api-org`].value!==i[`api-org`].value),o=!!(T&&T[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!T||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return T=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function O(e,s){a(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),i()}},f=o();return n(l(f),u),t(e,f),r(d)}s(O,{children:{}},[],[],{mode:`open`});export{O as component,C as universal};
233
+ `,x={"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:h,description:``},lang:{type:`string`,values:[`en`,`de`,`fr`,`it`],value:`en`,description:`Initial language of the embed.`},"chat-class":{type:`string`,value:``,description:`This is the class attribute of the chat-app container. With this the chat appearance can be customized.`},"inline-layout":{type:`boolean`,value:!1,description:"If set, the layout will be updated to fit into other website layouts: forces 100vh height and scrolls into view on interactions. Per-instance override of the backend's `inlineLayout` config."},flyout:{type:`boolean`,value:!1,description:`If set the chat will be put in a default flyout container.`},"force-chat-page":{type:`boolean`,value:!1,description:'If set, the app starts directly on the chat-page (skipping the start-page) and the "new discussion" button is hidden. Per-instance override of the backend\'s `forceChatPage` config.'},"autofire-predefined-question-id":{type:`string`,value:``,description:'When set, the app routes directly to the chat-page on init and auto-submits the predefined question with the given id. Per-instance only (no backend config equivalent). Composes with `force-chat-page` to also hide the "new discussion" button.'},question:{type:`string`,value:``,description:"When set, the app routes directly to the chat-page on init and auto-submits this free-text question. Per-instance only (no backend config equivalent). The URL `q` param takes precedence if also present."},"hide-predefined-questions":{type:`boolean`,value:!1,description:`When set, the widget skips loading predefined questions so the start-page shows logo + welcome + input only (no question buttons). Per-instance only (no backend config equivalent); leaves autofire on other embeds untouched.`},"additional-start-parameters":{type:`string`,value:`{"scopeAvailableSlugs":["yxx","yyy","aaa"]}`,description:`A JSON object of arbitrary key/value pairs sent to the backend on the very first init (login) call, so it can react on init. Wrap the attribute in single quotes in your HTML so the inner JSON double-quotes stay valid. Clear to omit.`},"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.`},"button-class":{type:`string`,value:``,description:"This is the class attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"button-style":{type:`string`,value:``,description:"This is the style attribute of the `<liipgpt-button>` link button. Only used when `show-link-button` is set."},"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:b,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.`},esm:{type:`boolean`,value:!1,description:'Embeds the ES module build (`<script type="module">`) instead of the IIFE. The chat loads its panel on demand, so a flyout that is never opened starts about 40% smaller; the search summary splits out its ChatConfig support, so an embed styled through host CSS starts about a quarter smaller; the button is the same size either way. Needs a version-pinned URL, and `https://cdn.jsdelivr.net` must be allowed by the site\'s script-src — the on-demand parts load from there even with the CDN option off, because `/cdn/npm` redirects to jsdelivr. SRI covers only the entry file, not the parts loaded on demand.'},"use-sri":{type:`boolean`,value:!1,description:`When enabled, generates embed code with a fixed versioned URL and Subresource Integrity (SRI) hash for stricter security.`},CHAT_CONFIG_OVERRIDE:{type:`string`,value:y,description:`This is only for demo purposes and should not be used in production. RELOAD the page to see the effects.`},"preview-components":{type:`boolean`,value:!1,description:`Previews all the components for designing purposes.`},"hide-sidebar":{type:`boolean`,value:!1,description:``},"preview-background":{type:`string`,value:``,description:`Enter an image URL (.png, .jpg, .webp) for a static background`},"preview-form":{type:`boolean`,value:!1,description:`When true and flyout active it will show a form on the parent page which can be used to demo page context extraction.`},"use-chat-config":{type:`boolean`,value:!1,description:`Enable chatconfig mode: theme and translations are loaded from /chatconfig. Required for FORCE-THEME. When disabled, use the disclaimer slot and HOST-CSS instead.`},"host-css":{type:`string`,value:p,description:`Host-page CSS for the widget and slot buttons. Use a host class as the anchor (e.g. .your-custom-class-wrapper .search-summary). The class is inferred from this CSS and applied to <liipgpt-search-summary class="…"> in the embed snippet.`},cache:{type:`boolean`,value:!0,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical questions, so tweaking options here does not regenerate an answer every time. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"chat-cache":{type:`boolean`,value:!1,description:"FOR DEVELOPMENT ONLY. Lets the backend cache the generated answer (~3h) and replay it for repeated identical first questions, so you do not wait for a fresh answer on every reload. Only the first question of a conversation is cached. This affects the preview only and is deliberately NOT part of the embed code above — a real embed enables it by adding the `cache` attribute itself."},"search-summary-question":{type:`string`,required:!0,value:f,description:"The question the search summary answers. In a real integration this is the visitor's search term, so the embed code uses a placeholder. The URL `q` param overrides this for quick testing."},"opt-in":{type:`boolean`,value:!0,description:`Show an opt-in gate before streaming. Consent is persisted in localStorage. When enabled in Host CSS mode, also reveals DISCLAIMER-SLOT below.`},"disclaimer-slot":{type:`string`,required:!0,value:d,description:`Inner HTML for the <div slot="disclaimer"> injected into the embed code (when OPT-IN is enabled, Host CSS mode only).`},height:{type:`string`,value:`280`,description:`Collapsed widget height before expand. Use a pixel number (e.g. 280) or any CSS height value (e.g. calc(30svh - 30px)).`},"max-height":{type:`string`,value:``,description:`Optional cap on the widget's total height. No cap unless set. Use a pixel number (e.g. 560) or any CSS height value (e.g. 70svh). When the expanded answer is taller than this, the content scrolls instead of growing.`},"buttons-slots":{type:`string`,value:m,description:`HTML for the action slot buttons injected into the embed code (Host CSS mode only). Use class names that match HOST-CSS. Clear to omit slot buttons.`},"chat-url":{type:`string`,value:`?embed-tab=chat`,description:`Relative URL of the full chat page (same-origin only — absolute or protocol-relative URLs are ignored). When set, shows a follow-up question input after the answer streams; submitting appends ?follow-up-q=<question>#cID=<conversation-id> to it and redirects. Defaults to this configurator's own chat tab for easy testing. Clear to disable the follow-up input.`}},S=async e=>{let t=await v(e),n=x;return n[`api-org`].values=Object.keys(t),{optionsDefinition:n,apiUrls:t}},C=e({load:()=>D,prerender:()=>!0,ssr:()=>!1}),w=(e,t)=>{let n=structuredClone(e);return Object.entries(e).forEach(([r,i])=>{let a=t.get(r);i.type===`boolean`&&(n[r].required=!0),a===null?i.required?n[r].value=e[r].value:n[r].value=void 0:(i.type===`boolean`&&(n[r].value=a!==`false`),i.type===`string`&&(n[r].value=String(a)))}),n},T,E=e=>{let t=new URLSearchParams(e);return t.has(`show-components`)&&!t.has(`preview-components`)&&(t.set(`preview-components`,t.get(`show-components`)),t.delete(`show-components`)),t},D=async({url:e,fetch:t})=>{let{optionsDefinition:n,apiUrls:r}=await S(t),i=w(n,E(e.searchParams)),a=!!(T&&T[`api-org`].value!==i[`api-org`].value),o=!!(T&&T[`prod-api`].value!==i[`prod-api`].value),s=e.searchParams.has(`api-url`);if(i[`api-org`].value&&(!T||a||o)&&(a||o||!s)){let e=r[i[`api-org`].value];i[`api-url`].value=i[`prod-api`].value?e.prod:e.dev}return T=i,{optionsDefinition:n,options:i,embedTab:u(e.searchParams)}};function O(e,s){a(s,!0);let u=c(s,`children`,7);var d={get children(){return u()},set children(e){u(e),i()}},f=o();return n(l(f),u),t(e,f),r(d)}s(O,{children:{}},[],[],{mode:`open`});export{O as component,C as universal};
@@ -1 +1 @@
1
- import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/DK3lEKRX.js";import"../chunks/nkdIuSLi.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DUHuqsF-.js";import{t as f}from"../chunks/wBAqx-SG.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};
1
+ import{Gt as e,J as t,K as n,Lt as r,Rt as i,St as a,X as o,bt as s,i as c,l,mt as u,xt as d}from"../chunks/DK3lEKRX.js";import"../chunks/DOcPbtv_.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import"../chunks/DUHuqsF-.js";import{t as f}from"../chunks/CuN4mAaD.js";var p=o(`<h1> </h1> <p> </p>`,1);function m(o,c){i(c,!1),l();var m=p(),h=d(m),g=s(h,!0);e(h);var _=a(h,2),v=s(_,!0);e(_),u(()=>{n(g,f.status),n(v,f.error?.message)}),t(o,m),r()}c(m,{},[],[],{mode:`open`});export{m as component};