@liip/liipgpt 3.11.2 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/button/liipgpt-button.iife.js +1 -1
- package/button/liipgpt-button.js +1 -1
- package/chat/liipgpt-chat.iife.js +17 -17
- package/chat/liipgpt-chat.js +17 -17
- package/config/index.cjs +1 -0
- package/config/index.d.ts +4 -0
- package/config/index.js +1 -0
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{BZRp1cWz.js → B4lUgYsH.js} +1 -1
- package/configurator/_app/immutable/chunks/{Bzr04ZcD.js → BAn02Khb.js} +1 -1
- package/configurator/_app/immutable/chunks/{CIHHNprL.js → BJVrdkuG.js} +1 -1
- package/configurator/_app/immutable/chunks/BTdvPkyd.js +1 -0
- package/configurator/_app/immutable/chunks/BndQp4ie.js +1 -0
- package/configurator/_app/immutable/chunks/C6xrTJ8-.js +1 -0
- package/configurator/_app/immutable/chunks/CNNudH1c.js +15 -0
- package/configurator/_app/immutable/chunks/{SzunIEqj.js → DHHLckcz.js} +1 -1
- package/configurator/_app/immutable/chunks/DK3lEKRX.js +3 -0
- package/configurator/_app/immutable/chunks/{MXZgHzgQ.js → DS0EeZTa.js} +1 -1
- package/configurator/_app/immutable/chunks/DUHuqsF-.js +1 -0
- package/configurator/_app/immutable/chunks/{BBBsf1IY.js → DWQwd7UL.js} +2 -2
- package/configurator/_app/immutable/chunks/{CD6_VnKE.js → DmZKIk3Y.js} +1 -1
- package/configurator/_app/immutable/chunks/{hdHt6us6.js → I5DxyXWx.js} +1 -1
- package/configurator/_app/immutable/chunks/IVrT20gg.js +16 -0
- package/configurator/_app/immutable/chunks/MqTIsSeD.js +1 -0
- package/configurator/_app/immutable/chunks/{6ikKRAEA.js → hJTLHSgs.js} +2 -2
- package/configurator/_app/immutable/chunks/{C32fguu7.js → o5n3JJnR.js} +1 -1
- package/configurator/_app/immutable/chunks/qdgQQPPN.js +143 -0
- package/configurator/_app/immutable/chunks/z-U4HNd3.js +1 -0
- package/configurator/_app/immutable/entry/{app.B_61kXQ4.js → app.CFzWtUmE.js} +2 -2
- package/configurator/_app/immutable/entry/start.CmVJPKRp.js +1 -0
- package/configurator/_app/immutable/nodes/{0.Bi08LRX0.js → 0.C5XdevBn.js} +2 -1
- package/configurator/_app/immutable/nodes/1.SYxOPfTY.js +1 -0
- package/configurator/_app/immutable/nodes/{2.BNeVNh0R.js → 2.Bldafw2d.js} +9 -9
- package/configurator/_app/immutable/nodes/{3.D1rPht9H.js → 3.DamO4w17.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +7 -7
- package/configurator/sidebar.html +7 -7
- package/index.cjs +1 -0
- package/index.d.ts +17 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/search-summary/liipgpt-search-summary.iife.js +2 -2
- package/search-summary/liipgpt-search-summary.js +2 -2
- package/search-summary/{load-chat-config-BnSgm085.js → load-chat-config-C0gjKjFi.js} +1 -1
- package/configurator/_app/immutable/chunks/59Qy4pzN.js +0 -1
- package/configurator/_app/immutable/chunks/C1yKSdkL.js +0 -143
- package/configurator/_app/immutable/chunks/COh_IaBC.js +0 -1
- package/configurator/_app/immutable/chunks/CYtlA8cd.js +0 -1
- package/configurator/_app/immutable/chunks/Ct3VxfiR.js +0 -1
- package/configurator/_app/immutable/chunks/CzUv7c8S.js +0 -1
- package/configurator/_app/immutable/chunks/DBQyBiSh.js +0 -16
- package/configurator/_app/immutable/chunks/oxab-KY5.js +0 -15
- package/configurator/_app/immutable/chunks/rEsbAd0y.js +0 -3
- package/configurator/_app/immutable/chunks/s6x81Lfq.js +0 -1
- package/configurator/_app/immutable/entry/start.BOhSSe81.js +0 -1
- package/configurator/_app/immutable/nodes/1.E_trvDMx.js +0 -1
package/chat/liipgpt-chat.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! @liip/liipgpt | Copyright 2025-2026 Liip AG | Apache-2.0 | see LICENSE and NOTICE */
|
|
2
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var l={},u=Symbol(),d=`http://www.w3.org/1999/xhtml`,f=`http://www.w3.org/2000/svg`,p=`http://www.w3.org/1998/Math/MathML`,m=`@attach`,h=Array.isArray,g=Array.prototype.indexOf,_=Array.prototype.includes,v=Array.from,y=Object.keys,b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyDescriptors,C=Object.prototype,ee=Array.prototype,te=Object.getPrototypeOf,ne=Object.isExtensible;function re(e){return typeof e==`function`}var w=()=>{};function ie(e){return typeof e?.then==`function`}function ae(e){return e()}function oe(e){for(var t=0;t<e.length;t++)e[t]()}function se(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var ce=1<<24,le=1024,ue=2048,de=4096,fe=8192,pe=16384,me=32768,he=1<<25,ge=65536,_e=1<<18,ve=1<<19,ye=1<<20,be=1<<25,xe=65536,Se=1<<21,Ce=1<<22,we=1<<23,Te=Symbol(`$state`),Ee=Symbol(`legacy props`),De=Symbol(``),Oe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ke=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ae(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function je(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ne(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Pe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Fe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ie(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Le(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Re(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ze(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Be(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ve(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function He(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ue(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function We(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ge(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var qe=!1;function Je(e){qe=e}var T;function Ye(e){if(e===null)throw We(),l;return T=e}function Xe(){return Ye(Ln(T))}function E(e){if(qe){if(Ln(T)!==null)throw We(),l;T=e}}function Ze(e=1){if(qe){for(var t=e,n=T;t--;)n=Ln(n);T=n}}function Qe(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ln(n);e&&n.remove(),n=i}}function $e(e){if(!e||e.nodeType!==8)throw We(),l;return e.data}function et(e){return e===this.v}function tt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function nt(e){return!tt(e,this.v)}var rt=!1,it=!1;function at(){it=!0}var ot=[];function st(e,t=!1,n=!1){return ct(e,new Map,``,ot,null,n)}function ct(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(h(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=ct(l,t,n,r,null,a))}return s}if(te(e)===C){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=ct(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return ct(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var lt=null;function ut(e){lt=e}function dt(e){return gt(`getContext`).get(e)}function ft(e,t){let n=gt(`setContext`);if(rt){var r=Dr.f;!wr&&r&32&&!lt.i||ze()}return n.set(e,t),t}function pt(e){return gt(`hasContext`).has(e)}function mt(){return gt(`getAllContexts`)}function D(e,t=!1,n){lt={p:lt,i:!1,c:null,e:null,s:e,x:null,r:Dr,l:it&&!t?{s:null,u:null,$:[]}:null}}function O(e){var t=lt,n=t.e;if(n!==null){t.e=null;for(var r of n)$n(r)}return e!==void 0&&(t.x=e),t.i=!0,lt=t.p,e??{}}function ht(){return!it||lt!==null&<.l===null}function gt(e){return lt===null&&Ae(e),lt.c??=new Map(_t(lt)||void 0)}function _t(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var vt=[];function yt(){var e=vt;vt=[],oe(e)}function bt(e){if(vt.length===0&&!zt){var t=vt;queueMicrotask(()=>{t===vt&&yt()})}vt.push(e)}function xt(){for(;vt.length>0;)yt()}function St(e){var t=Dr;if(t===null)return wr.f|=we,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ct(e,t)}function Ct(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var wt=~(ue|de|le);function Tt(e,t){e.f=e.f&wt|t}function Et(e){e.f&512||e.deps===null?Tt(e,le):Tt(e,de)}function Dt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=xe,Dt(t.deps))}function Ot(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Dt(e.deps),Tt(e,le)}var kt=[];function At(e,t=w){let n=null,r=new Set;function i(t){if(tt(e,t)&&(e=t,n)){let t=!kt.length;for(let t of r)t[1](),kt.push(t,e);if(t){for(let e=0;e<kt.length;e+=2)kt[e][0](kt[e+1]);kt.length=0}}}function a(t){i(t(e))}function o(o,s=w){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||w),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var jt=!1,Mt=!1;function Nt(e){var t=Mt;try{return Mt=!1,[e(),Mt]}finally{Mt=t}}var Pt=new Set,Ft=null,It=null,Lt=null,Rt=null,zt=!1,Bt=!1,Vt=null,Ht=null,Ut=0,Wt=1,Gt=class e{id=Wt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)Tt(n,ue),this.schedule(n);for(n of t.m)Tt(n,de),this.schedule(n)}}#d(){if(Ut++>1e3&&(Pt.delete(this),Kt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),Tt(e,ue),this.schedule(e);for(let e of this.#s)Tt(e,de),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=Vt=[],r=[],i=Ht=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw $t(e),t}if(Ft=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Vt=null,Ht=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Qt(e,t)}else{this.#n===0&&Pt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),It=this,Jt(r),Jt(n),It=null,this.#i?.resolve()}var o=Ft;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(Pt.add(o),o.#d()),Pt.has(this)||this.#m()}#f(e,t,n){e.f^=le;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=le:i&4?t.push(r):rt&&i&16777224?n.push(r):Br(r)&&(i&16&&this.#s.add(r),Gr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)Ot(e[t],this.#o,this.#s)}capture(e,t){t!==u&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),Lt?.set(e,e.v))}activate(){Ft=this}deactivate(){Ft=null,Lt=null}flush(){try{Bt=!0,Ft=this,this.#d()}finally{Ut=0,Rt=null,Vt=null,Ht=null,Bt=!1,Ft=null,Lt=null,yn.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),Pt.delete(this)}#m(){for(let s of Pt){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Yt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,bt(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=se()).promise}static ensure(){if(Ft===null){let t=Ft=new e;Bt||(Pt.add(Ft),zt||bt(()=>{Ft===t&&t.flush()}))}return Ft}apply(){if(!rt||!this.is_fork&&Pt.size===1){Lt=null;return}Lt=new Map(this.current);for(let e of Pt)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)Lt.has(t)||Lt.set(t,n)}schedule(e){if(Rt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Vt!==null&&t===Dr&&(rt||(wr===null||!(wr.f&2))&&!jt))return;if(n&96){if(!(n&1024))return;t.f^=le}}this.#a.push(t)}};function k(e){var t=zt;zt=!0;try{var n;for(e&&(Ft!==null&&!Ft.is_fork&&Ft.flush(),n=e());;){if(xt(),Ft===null)return n;Ft.flush()}}finally{zt=t}}function Kt(){try{Ie()}catch(e){Ct(e,Rt)}}var qt=null;function Jt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Br(r)&&(qt=new Set,Gr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mr(r),qt?.size>0)){yn.clear();for(let e of qt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)qt.has(n)&&(qt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Gr(n)}}qt.clear()}}qt=null}}function Yt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Yt(i,t,n,r):e&4194320&&!(e&2048)&&Xt(i,t,r)&&(Tt(i,ue),Zt(i))}}function Xt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(_.call(t,r))return!0;if(r.f&2&&Xt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Zt(e){Ft.schedule(e)}function Qt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Tt(e,le);for(var n=e.first;n!==null;)Qt(n,t),n=n.next}}function $t(e){Tt(e,le);for(var t=e.first;t!==null;)$t(t),t=t.next}function en(e){let t=0,n=xn(0),r;return()=>{Zn()&&(R(n),ar(()=>(t===0&&(r=Yr(()=>e(()=>Tn(n)))),t+=1,()=>{bt(()=>{--t,t===0&&(r?.(),r=void 0,Tn(n))})})))}}var tn=ge|ve;function nn(e,t,n,r){new rn(e,t,n,r)}var rn=class{parent;is_pending=!1;transform_error;#e;#t=qe?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=en(()=>(this.#m=xn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Dr;t.b=this,t.f|=128,n(e)},this.parent=Dr.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=or(()=>{if(qe){let e=this.#t;Xe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},tn),qe&&(this.#e=T)}#g(){try{this.#a=cr(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=cr(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=cr(()=>e(this.#e)),bt(()=>{var e=this.#c=document.createDocumentFragment(),t=Fn();e.append(t),this.#a=this.#x(()=>cr(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,hr(this.#o,()=>{this.#o=null}),this.#b(Ft))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=cr(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();yr(this.#a,e);let t=this.#n.pending;this.#o=cr(()=>t(this.#e))}else this.#b(Ft)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ot(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=Dr,n=wr,r=lt;Or(this.#i),Er(this.#i),ut(this.#i.ctx);try{return Gt.ensure(),e()}catch(e){return St(e),null}finally{Or(t),Er(n),ut(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&hr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,bt(()=>{this.#d=!1,this.#m&&Cn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),R(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(fr(this.#a),null),this.#o&&=(fr(this.#o),null),this.#s&&=(fr(this.#s),null),qe&&(Ye(this.#t),Ze(),Ye(Qe()));var r=!1,i=!1;let a=()=>{if(r){Ke();return}r=!0,i&&Ue(),this.#s!==null&&hr(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ct(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return cr(()=>{var t=Dr;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ct(e,this.#i.parent),null}}))};bt(()=>{var t;try{t=this.transform_error(e)}catch(e){Ct(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ct(e,this.#i&&this.#i.parent)):o(t)})}};function an(e,t,n,r){let i=ht()?ln:dn;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=Dr,s=on(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ct(e,o)}sn()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=cn();function d(){Promise.all(n.map(e=>un(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ct(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),sn()}):d()}function on(){var e=Dr,t=wr,n=lt,r=Ft;return function(i=!0){Or(e),Er(t),ut(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function sn(e=!0){Or(null),Er(null),ut(null),e&&Ft?.deactivate()}function cn(){var e=Dr.b,t=Ft,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function ln(e){var t=2|ue,n=wr!==null&&wr.f&2?wr:null;return Dr!==null&&(Dr.f|=ve),{ctx:lt,deps:null,effects:null,equals:et,f:t,fn:e,reactions:null,rv:0,v:u,wv:0,parent:n??Dr,ac:null}}function un(e,t,n){let r=Dr;r===null&&je();var i=void 0,a=xn(u),o=!wr,s=new Map;return ir(()=>{var t=Dr,n=se();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(sn)}catch(e){n.reject(e),sn()}var c=Ft;if(o){if(t.f&32768)var l=cn();if(r.b.is_rendered())s.get(c)?.reject(Oe),s.delete(c);else{for(let e of s.values())e.reject(Oe);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===Oe),!(n===Oe||t.f&16384)){if(c.activate(),n)a.f|=we,Cn(a,n);else{a.f&8388608&&(a.f^=we),Cn(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(Oe)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),Qn(()=>{for(let e of s.values())e.reject(Oe)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function A(e){let t=ln(e);return rt||Ar(t),t}function dn(e){let t=ln(e);return t.equals=nt,t}function fn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)fr(t[n])}}function pn(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function mn(e){var t,n=Dr;Or(pn(e));try{e.f&=~xe,fn(e),t=Hr(e)}finally{Or(n)}return t}function hn(e){var t=e.v,n=mn(e);if(!e.equals(n)&&(e.wv=zr(),(!Ft?.is_fork||e.deps===null)&&(e.v=n,Ft?.capture(e,t),e.deps===null))){Tt(e,le);return}Sr||(Lt===null?Et(e):(Zn()||Ft?.is_fork)&&Lt.set(e,n))}function gn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Oe),t.teardown=w,t.ac=null,Wr(t,0),ur(t))}function _n(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Gr(t)}var vn=new Set,yn=new Map,bn=!1;function xn(e,t){return{f:0,v:e,reactions:null,equals:et,rv:0,wv:0}}function j(e,t){let n=xn(e,t);return Ar(n),n}function Sn(e,t=!1,n=!0){let r=xn(e);return t||(r.equals=nt),it&&n&<!==null&<.l!==null&&(lt.l.s??=[]).push(r),r}function M(e,t,n=!1){return wr!==null&&(!Tr||wr.f&131072)&&ht()&&wr.f&4325394&&(kr===null||!_.call(kr,e))&&He(),Cn(e,n?Dn(t):t,Ht)}function Cn(e,t,n=null){if(!e.equals(t)){var r=e.v;Sr?yn.set(e,t):yn.set(e,r),e.v=t;var i=Gt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&mn(t),Lt===null&&Et(t)}e.wv=zr(),En(e,ue,n),ht()&&Dr!==null&&Dr.f&1024&&!(Dr.f&96)&&(Nr===null?Pr([e]):Nr.push(e)),!i.is_fork&&vn.size>0&&!bn&&wn()}return t}function wn(){bn=!1;for(let e of vn)e.f&1024&&Tt(e,de),Br(e)&&Gr(e);vn.clear()}function Tn(e){M(e,e.v+1)}function En(e,t,n){var r=e.reactions;if(r!==null)for(var i=ht(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Dr)){var l=(c&ue)===0;if(l&&Tt(s,t),c&2){var u=s;Lt?.delete(u),c&65536||(c&512&&(s.f|=xe),En(u,de,n))}else if(l){var d=s;c&16&&qt!==null&&qt.add(d),n===null?Zt(d):n.push(d)}}}}function Dn(e){if(typeof e!=`object`||!e||Te in e)return e;let t=te(e);if(t!==C&&t!==ee)return e;var n=new Map,r=h(e),i=j(0),a=null,o=Lr,s=e=>{if(Lr===o)return e();var t=wr,n=Lr;Er(null),Rr(o);var r=e();return Er(t),Rr(n),r};return r&&n.set(`length`,j(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Be();var i=n.get(t);return i===void 0?s(()=>{var e=j(r.value,a);return n.set(t,e),e}):M(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>j(u,a));n.set(t,e),Tn(i)}}else M(r,u),Tn(i);return!0},get(t,r,i){if(r===Te)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||x(t,r)?.writable)&&(o=s(()=>j(Dn(c?t[r]:u),a)),n.set(r,o)),o!==void 0){var l=R(o);return l===u?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=R(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==u)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Te)return!0;var r=n.get(t),i=r!==void 0&&r.v!==u||Reflect.has(e,t);return(r!==void 0||Dr!==null&&(!i||x(e,t)?.writable))&&(r===void 0&&(r=s(()=>j(i?Dn(e[t]):u,a)),n.set(t,r)),R(r)===u)?!1:i},set(e,t,o,c){var l=n.get(t),d=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>j(u,a)),n.set(f+``,p)):M(p,u)}if(l===void 0)(!d||x(e,t)?.writable)&&(l=s(()=>j(void 0,a)),M(l,Dn(o)),n.set(t,l));else{d=l.v!==u;var m=s(()=>Dn(o));M(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!d){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&M(g,_+1)}Tn(i)}return!0},ownKeys(e){R(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==u});for(var[r,a]of n)a.v!==u&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ve()}})}function On(e){try{if(typeof e==`object`&&e&&Te in e)return e[Te]}catch{}return e}function kn(e,t){return Object.is(On(e),On(t))}var An,jn,Mn,Nn;function Pn(){if(An===void 0){An=window,jn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Mn=x(t,`firstChild`).get,Nn=x(t,`nextSibling`).get,ne(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ne(n)&&(n.__t=void 0)}}function Fn(e=``){return document.createTextNode(e)}function In(e){return Mn.call(e)}function Ln(e){return Nn.call(e)}function N(e,t){if(!qe)return In(e);var n=In(T);if(n===null)n=T.appendChild(Fn());else if(t&&n.nodeType!==3){var r=Fn();return n?.before(r),Ye(r),r}return t&&Vn(n),Ye(n),n}function P(e,t=!1){if(!qe){var n=In(e);return n instanceof Comment&&n.data===``?Ln(n):n}if(t){if(T?.nodeType!==3){var r=Fn();return T?.before(r),Ye(r),r}Vn(T)}return T}function F(e,t=1,n=!1){let r=qe?T:e;for(var i;t--;)i=r,r=Ln(r);if(!qe)return r;if(n){if(r?.nodeType!==3){var a=Fn();return r===null?i?.after(a):r.before(a),Ye(a),a}Vn(r)}return Ye(r),r}function Rn(e){e.textContent=``}function zn(){return!rt||qt!==null?!1:(Dr.f&me)!==0}function Bn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Vn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Hn(e,t){if(t){let t=document.body;e.autofocus=!0,bt(()=>{document.activeElement===t&&e.focus()})}}function Un(e){qe&&In(e)!==null&&Rn(e)}var Wn=!1;function Gn(){Wn||(Wn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Kn(e){var t=wr,n=Dr;Er(null),Or(null);try{return e()}finally{Er(t),Or(n)}}function qn(e,t,n,r=n){e.addEventListener(t,()=>Kn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Gn()}function Jn(e){Dr===null&&(wr===null&&Fe(e),Pe()),Sr&&Ne(e)}function Yn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Xn(e,t){var n=Dr;n!==null&&n.f&8192&&(e|=fe);var r={ctx:lt,deps:null,nodes:null,f:e|ue|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)Vt===null?Gt.ensure().schedule(r):Vt.push(r);else if(t!==null){try{Gr(r)}catch(e){throw fr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ge))}if(i!==null&&(i.parent=n,n!==null&&Yn(i,n),wr!==null&&wr.f&2&&!(e&64))){var a=wr;(a.effects??=[]).push(i)}return r}function Zn(){return wr!==null&&!Tr}function Qn(e){let t=Xn(8,null);return Tt(t,le),t.teardown=e,t}function I(e){Jn(`$effect`);var t=Dr.f;if(!wr&&t&32&&!(t&32768)){var n=lt;(n.e??=[]).push(e)}else return $n(e)}function $n(e){return Xn(4|ye,e)}function er(e){return Jn(`$effect.pre`),Xn(8|ye,e)}function tr(e){Gt.ensure();let t=Xn(64|ve,e);return()=>{fr(t)}}function nr(e){Gt.ensure();let t=Xn(64|ve,e);return(e={})=>new Promise(n=>{e.outro?hr(t,()=>{fr(t),n(void 0)}):(fr(t),n(void 0))})}function rr(e){return Xn(4,e)}function ir(e){return Xn(Ce|ve,e)}function ar(e,t=0){return Xn(8|t,e)}function L(e,t=[],n=[],r=[]){an(r,t,n,t=>{Xn(8,()=>e(...t.map(R)))})}function or(e,t=0){return Xn(16|t,e)}function sr(e,t=0){return Xn(ce|t,e)}function cr(e){return Xn(32|ve,e)}function lr(e){var t=e.teardown;if(t!==null){let e=Sr,n=wr;Cr(!0),Er(null);try{t.call(null)}finally{Cr(e),Er(n)}}}function ur(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Kn(()=>{e.abort(Oe)});var r=n.next;n.f&64?n.parent=null:fr(n,t),n=r}}function dr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||fr(t),t=n}}function fr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(pr(e.nodes.start,e.nodes.end),n=!0),Tt(e,he),ur(e,t&&!n),Wr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();lr(e),e.f^=he,e.f|=pe;var i=e.parent;i!==null&&i.first!==null&&mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function pr(e,t){for(;e!==null;){var n=e===t?null:Ln(e);e.remove(),e=n}}function mr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hr(e,t,n=!0){var r=[];gr(e,r,!0);var i=()=>{n&&fr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function gr(e,t,n){if(!(e.f&8192)){e.f^=fe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;gr(i,t,o?n:!1),i=a}}}function _r(e){vr(e,!0)}function vr(e,t){if(e.f&8192){e.f^=fe,e.f&1024||(Tt(e,ue),Gt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;vr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function yr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ln(n);t.append(n),n=i}}var br=null,xr=!1,Sr=!1;function Cr(e){Sr=e}var wr=null,Tr=!1;function Er(e){wr=e}var Dr=null;function Or(e){Dr=e}var kr=null;function Ar(e){wr!==null&&(!rt||wr.f&2)&&(kr===null?kr=[e]:kr.push(e))}var jr=null,Mr=0,Nr=null;function Pr(e){Nr=e}var Fr=1,Ir=0,Lr=Ir;function Rr(e){Lr=e}function zr(){return++Fr}function Br(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~xe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Br(a)&&hn(a),a.wv>e.wv)return!0}t&512&&Lt===null&&Tt(e,le)}return!1}function Vr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!rt&&kr!==null&&_.call(kr,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Vr(a,t,!1):t===a&&(n?Tt(a,ue):a.f&1024&&Tt(a,de),Zt(a))}}function Hr(e){var t=jr,n=Mr,r=Nr,i=wr,a=kr,o=lt,s=Tr,c=Lr,l=e.f;jr=null,Mr=0,Nr=null,wr=l&96?null:e,kr=null,ut(e.ctx),Tr=!1,Lr=++Ir,e.ac!==null&&(Kn(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=Se;var u=e.fn,d=u();e.f|=me;var f=e.deps,p=Ft?.is_fork;if(jr!==null){var m;if(p||Wr(e,Mr),f!==null&&Mr>0)for(f.length=Mr+jr.length,m=0;m<jr.length;m++)f[Mr+m]=jr[m];else e.deps=f=jr;if(Zn()&&e.f&512)for(m=Mr;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Mr<f.length&&(Wr(e,Mr),f.length=Mr);if(ht()&&Nr!==null&&!Tr&&f!==null&&!(e.f&6146))for(m=0;m<Nr.length;m++)Vr(Nr[m],e);if(i!==null&&i!==e){if(Ir++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Ir;if(t!==null)for(let e of t)e.rv=Ir;Nr!==null&&(r===null?r=Nr:r.push(...Nr))}return e.f&8388608&&(e.f^=we),d}catch(e){return St(e)}finally{e.f^=Se,jr=t,Mr=n,Nr=r,wr=i,kr=a,ut(o),Tr=s,Lr=c}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=g.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(jr===null||!_.call(jr,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~xe),Et(a),gn(a),Wr(a,0)}}function Wr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function Gr(e){var t=e.f;if(!(t&16384)){Tt(e,le);var n=Dr,r=xr;Dr=e,xr=!0;try{t&16777232?dr(e):ur(e),lr(e);var i=Hr(e);e.teardown=typeof i==`function`?i:null,e.wv=Fr}finally{xr=r,Dr=n}}}async function Kr(){if(rt)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),k()}function R(e){var t=(e.f&2)!=0;if(br?.add(e),wr!==null&&!Tr&&!(Dr!==null&&Dr.f&16384)&&(kr===null||!_.call(kr,e))){var n=wr.deps;if(wr.f&2097152)e.rv<Ir&&(e.rv=Ir,jr===null&&n!==null&&n[Mr]===e?Mr++:jr===null?jr=[e]:jr.push(e));else{(wr.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[wr]:_.call(r,wr)||r.push(wr)}}if(Sr&&yn.has(e))return yn.get(e);if(t){var i=e;if(Sr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Jr(i))&&(a=mn(i)),yn.set(i,a),a}var o=(i.f&512)==0&&!Tr&&wr!==null&&(xr||(wr.f&512)!=0),s=(i.f&me)===0;Br(i)&&(o&&(i.f|=512),hn(i)),o&&!s&&(_n(i),qr(i))}if(Lt?.has(e))return Lt.get(e);if(e.f&8388608)throw e.v;return e.v}function qr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(_n(t),qr(t))}function Jr(e){if(e.v===u)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(yn.has(t)||t.f&2&&Jr(t))return!0;return!1}function Yr(e){var t=Tr;try{return Tr=!0,e()}finally{Tr=t}}function Xr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(Te in e)Zr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&Te in n&&Zr(n)}}}function Zr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Zr(e[n],t)}catch{}let n=te(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=S(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var Qr=Symbol(`events`),$r=new Set,ei=new Set;function ti(e,t,n,r={}){function i(e){if(r.capture||si.call(t,e),!e.cancelBubble)return Kn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?bt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ni(e,t,n,r={}){var i=ti(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ri(e,t,n,r,i){var a={capture:r,passive:i},o=ti(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qn(()=>{t.removeEventListener(e,o,a)})}function ii(e,t,n){(t[Qr]??={})[e]=n}function ai(e){for(var t=0;t<e.length;t++)$r.add(e[t]);for(var n of ei)n(e)}var oi=null;function si(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;oi=e;var o=0,s=oi===e&&e[Qr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Qr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){b(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=wr,d=Dr;Er(null),Or(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Qr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Qr]=t,delete e.currentTarget,Er(u),Or(d)}}}var ci=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function li(e){return ci?.createHTML(e)??e}function ui(e){var t=Bn(`template`);return t.innerHTML=li(e.replaceAll(`<!>`,`<!---->`)),t.content}function di(e,t){var n=Dr;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function z(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(qe)return di(T,null),T;i===void 0&&(i=ui(a?e:`<!>`+e),n||(i=In(i)));var t=r||jn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=In(t),s=t.lastChild;di(o,s)}else di(t,t);return t}}function fi(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(qe)return di(T,null),T;if(!o){var e=In(ui(a));if(i)for(o=document.createDocumentFragment();In(e);)o.appendChild(In(e));else o=In(e)}var t=o.cloneNode(!0);if(i){var n=In(t),r=t.lastChild;di(n,r)}else di(t,t);return t}}function pi(e,t){return fi(e,t,`svg`)}function mi(e=``){if(!qe){var t=Fn(e+``);return di(t,t),t}var n=T;return n.nodeType===3?Vn(n):(n.before(n=Fn()),Ye(n)),di(n,n),n}function B(){if(qe)return di(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=Fn();return e.append(t,n),di(t,n),e}function V(e,t){if(qe){var n=Dr;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),Xe();return}e!==null&&e.before(t)}function hi(){if(qe&&T&&T.nodeType===8&&T.textContent?.startsWith(`$`)){let e=T.textContent.substring(1);return Xe(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function gi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var _i=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function vi(e){return _i.includes(e)}var yi=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),bi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function xi(e){return e=e.toLowerCase(),bi[e]??e}[...yi];var Si=[`touchstart`,`touchmove`];function Ci(e){return Si.includes(e)}var wi=[`textarea`,`script`,`style`,`title`];function Ti(e){return wi.includes(e)}var Ei=!0;function Di(e){Ei=e}function H(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Oi(e,t){return ji(e,t)}function ki(e,t){Pn(),t.intro=t.intro??!1;let n=t.target,r=qe,i=T;try{for(var a=In(n);a&&(a.nodeType!==8||a.data!==`[`);)a=Ln(a);if(!a)throw l;Je(!0),Ye(a);let r=ji(e,{...t,anchor:a});return Je(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
3
|
-
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==l&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Le(),Pn(),Rn(n),Je(!1),Oi(e,t)}finally{Je(r),Ye(i)}}var Ai=new Map;function ji(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Pn();var c=void 0,u=nr(()=>{var u=n??t.appendChild(Fn());nn(u,{pending:()=>{}},t=>{D({});var n=lt;if(a&&(n.c=a),i&&(r.$$events=i),qe&&di(t,null),Ei=o,c=e(t,r)||{},Ei=!0,qe&&(Dr.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw We(),l;O()},s);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=Ci(r);for(let e of[t,document]){var a=Ai.get(e);a===void 0&&(a=new Map,Ai.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,si,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(v($r)),ei.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=Ai.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,si),r.delete(e),r.size===0&&Ai.delete(n)):r.set(e,i)}ei.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return Mi.set(c,u),c}var Mi=new WeakMap;function Ni(e,t){let n=Mi.get(e);return n?(Mi.delete(e),n(t)):Promise.resolve()}var Pi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)_r(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(fr(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();yr(r,t),t.append(Fn()),this.#n.set(e,{effect:r,fragment:t})}else fr(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),hr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(fr(n.effect),this.#n.delete(e))};ensure(e,t){var n=Ft,r=zn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=Fn();i.append(a),this.#n.set(e,{effect:cr(()=>t(a)),fragment:i})}else this.#t.set(e,cr(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else qe&&(this.anchor=T),this.#a(n)}};function U(e,t,...n){var r=new Pi(e);or(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ge)}function Fi(e){lt===null&&Ae(`onMount`),it&<.l!==null?Li(lt).m.push(e):I(()=>{let t=Yr(e);if(typeof t==`function`)return t})}function Ii(e){lt===null&&Ae(`onDestroy`),Fi(()=>()=>Yr(e))}function Li(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Ri(){return Symbol(m)}var zi=0,Bi=1,Vi=2;function Hi(e,t,n,r,i){qe&&Xe();var a=ht(),o=u,s=a?xn(o):Sn(o,!1,!1),c=a?xn(o):Sn(o,!1,!1),l=new Pi(e);or(()=>{var a=Ft;a.deactivate();var o=t();a.activate();var u=!1;let d=qe&&ie(o)===(e.data===`[!`);if(d&&(Ye(Qe()),Je(!1)),ie(o)){var f=on(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Gt.ensure(),qe&&Je(!1);try{e()}finally{sn(!1),zt||k()}}};o.then(t=>{e(()=>{Cn(s,t),l.ensure(Bi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Cn(c,t),l.ensure(Vi,i&&(e=>i(e,c))),!i)throw c.v})}),qe?l.ensure(zi,n):bt(()=>{p||e(()=>{l.ensure(zi,n)})})}else Cn(s,o),l.ensure(Bi,r&&(e=>r(e,s)));return d&&Je(!0),()=>{u=!0}})}function W(e,t,n=!1){var r;qe&&(r=T,Xe());var i=new Pi(e),a=n?ge:0;function o(e,t){if(qe){var n=$e(r);if(e!==parseInt(n.substring(1))){var a=Qe();Ye(a),i.anchor=a,Je(!1),i.ensure(e,t),Je(!0);return}}i.ensure(e,t)}or(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Ui=Symbol(`NaN`);function Wi(e,t,n){qe&&Xe();var r=new Pi(e),i=!ht();or(()=>{var e=t();e!==e&&(e=Ui),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Gi(e,t){return t}function Ki(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];hr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;qi(e,v(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Rn(u),u.append(l),e.items.clear()}qi(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function qi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=be,yr(a,document.createDocumentFragment())):fr(t[i],n)}}var Ji;function Yi(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=qe?Ye(In(c)):c.appendChild(Fn())}qe&&Xe();var l=null,u=dn(()=>{var e=n();return h(e)?e:e==null?[]:v(e)}),d,f=new Map,p=!0;function m(e){_.effect.f&16384||(_.pending.delete(e),_.fallback=l,Zi(_,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=be,$i(l,null,o)):_r(l):hr(l,()=>{l=null})))}function g(e){_.pending.delete(e)}var _={effect:or(()=>{d=R(u);var e=d.length;let c=!1;qe&&$e(o)===`[!`!=(e===0)&&(o=Qe(),Ye(o),Je(!1),c=!0);for(var h=new Set,_=Ft,v=zn(),y=0;y<e;y+=1){qe&&T.nodeType===8&&T.data===`]`&&(o=T,c=!0,Je(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&Cn(S.v,b),S.i&&Cn(S.i,y),v&&_.unskip_effect(S.e)):(S=Qi(s,p?o:Ji??=Fn(),b,x,y,i,t,n),p||(S.e.f|=be),s.set(x,S)),h.add(x)}if(e===0&&a&&!l&&(p?l=cr(()=>a(o)):(l=cr(()=>a(Ji??=Fn())),l.f|=be)),e>h.size&&Me(``,``,``),qe&&e>0&&Ye(Qe()),!p)if(f.set(_,h),v){for(let[e,t]of s)h.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(g)}else m(_);c&&Je(!0),R(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,qe&&(o=T)}function Xi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Zi(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Xi(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(_r(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=be,g===c)$i(g,null,n);else{var y=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),ea(e,u,g),ea(e,g,y),$i(g,y,n),u=g,f=[],p=[],c=Xi(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],C=f[f.length-1];for(x=0;x<f.length;x+=1)$i(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);ea(e,S.prev,C.next),ea(e,u,S),ea(e,C,b),c=b,u=C,--_,f=[],p=[]}else l.delete(g),$i(g,c,n),ea(e,g.prev,g.next),ea(e,g,u===null?e.effect.first:u.next),ea(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=Xi(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=Xi(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(qi(e,v(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var ee=[];if(l!==void 0)for(g of l)g.f&8192||ee.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&ee.push(c),c=Xi(c.next);var te=ee.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(_=0;_<te;_+=1)ee[_].nodes?.a?.measure();for(_=0;_<te;_+=1)ee[_].nodes?.a?.fix()}Ki(e,ee,ne)}}a&&bt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function Qi(e,t,n,r,i,a,o,s){var c=o&1?o&16?xn(n):Sn(n,!1,!1):null,l=o&2?xn(i):null;return{v:c,i:l,e:cr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function $i(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Ln(r);if(a.before(r),r===i)return;r=o}}function ea(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ta(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;qe&&(o=Ye(In(c)))}L(()=>{var e=Dr;if(s===(s=t()??``)){qe&&Xe();return}if(n&&!qe){e.nodes=null,c.innerHTML=s,s!==``&&di(In(c),c.lastChild);return}if(e.nodes!==null&&(pr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(qe){for(var a=T.data,u=Xe(),d=u;u!==null&&(u.nodeType!==8||u.data!==``);)d=u,u=Ln(u);if(u===null)throw We(),l;di(T,d),o=Ye(u);return}var m=Bn(r?`svg`:i?`math`:`template`,r?f:i?p:void 0);m.innerHTML=s;var h=r||i?m:m.content;if(di(In(h),h.lastChild),r||i)for(;In(h);)o.before(In(h));else o.before(h)}})}function na(e,t,n,r,i){qe&&Xe();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function G(e,t,n){var r;qe&&(r=T,Xe());var i=new Pi(e);or(()=>{var e=t()??null;if(qe&&$e(r)===`[`!=(e!==null)){var a=Qe();Ye(a),i.anchor=a,Je(!1),i.ensure(e,e&&(t=>n(t,e))),Je(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ge)}var ra=()=>performance.now(),ia={tick:e=>requestAnimationFrame(e),now:()=>ra(),tasks:new Set};function aa(){let e=ia.now();ia.tasks.forEach(t=>{t.c(e)||(ia.tasks.delete(t),t.f())}),ia.tasks.size!==0&&ia.tick(aa)}function oa(e){let t;return ia.tasks.size===0&&ia.tick(aa),{promise:new Promise(n=>{ia.tasks.add(t={c:e,f:n})}),abort(){ia.tasks.delete(t)}}}function sa(e,t){Kn(()=>{e.dispatchEvent(new CustomEvent(t))})}function ca(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function la(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=ca(n.trim());t[i]=r.trim()}return t}var ua=e=>e;function da(e,t,n,r){var i=(e&1)!=0,a=(e&2)!=0,o=i&&a,s=(e&4)!=0,c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return Kn(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=fa(t,m(),p,1,()=>{sa(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=fa(t,m(),f,0,()=>{sa(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=Dr;if((g.nodes.t??=[]).push(h),i&&Ei){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||(v.f&32768)!=0}_&&rr(()=>{Yr(()=>h.in())})}}function fa(e,t,n,r,i){var a=r===1;if(re(t)){var o,s=!1;return bt(()=>{s||(o=fa(e,t({direction:a?`in`:`out`}),n,r,i))}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return sa(e,a?`introstart`:`outrostart`),i(),{abort:w,deactivate:w,reset:w,t:()=>r};let{delay:c=0,css:l,tick:u,easing:d=ua}=t;var f=[];if(a&&n===void 0&&(u&&u(0,1),l)){var p=la(l(0,1));f.push(p,p)}var m=()=>1-r,h=e.animate(f,{duration:c,fill:`forwards`});return h.onfinish=()=>{h.cancel(),sa(e,a?`introstart`:`outrostart`);var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),f=[];if(c>0){var p=!1;if(l)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*d(_/g),y=la(l(v,1-v));f.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),m=()=>{var e=h.currentTime;return o+s*d(e/c)},u&&oa(()=>{if(h.playState!==`running`)return!1;var e=m();return u(e,1-e),!0})}h=e.animate(f,{duration:c,fill:`forwards`}),h.onfinish=()=>{m=()=>r,u?.(r,1-r),i()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=w)},deactivate:()=>{i=w},reset:()=>{r===0&&u?.(1,0)},t:()=>m()}}function pa(e,t,n,r,i,a){let o=qe;qe&&Xe();var s=null;qe&&T.nodeType===1&&(s=T,Xe());var c=qe?T:e,l=new Pi(c,!1);or(()=>{let e=t()||null;var a=i?i():n||e===`svg`?f:void 0;if(e===null){l.ensure(null,null),Di(!0);return}return l.ensure(e,t=>{if(e){if(s=qe?s:Bn(e,a),di(s,s),r){qe&&Ti(e)&&s.append(document.createComment(``));var n=qe?In(s):s.appendChild(Fn());qe&&(n===null?Je(!1):Ye(n)),r(s,n)}Dr.nodes.end=s,t.before(s)}qe&&Ye(t)}),Di(!0),()=>{e&&Di(!1)}},ge),Qn(()=>{Di(!0)}),o&&(Je(!0),Ye(c))}function ma(e,t){let n=null,r=qe;var i;if(qe){n=T;for(var a=In(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Ln(a);if(a===null)Je(!1);else{var o=Ln(a);a.remove(),Ye(o)}}qe||(i=document.head.appendChild(Fn()));try{or(()=>t(i),_e|ve)}finally{r&&(Je(!0),Ye(n))}}function ha(e,t){rr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Bn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function ga(e,t,n){rr(()=>{var r=Yr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};ar(()=>{var e=n();Xr(e),i&&tt(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function _a(e,t){var n=void 0,r;sr(()=>{n!==(n=t())&&(r&&=(fr(r),null),n&&(r=cr(()=>{rr(()=>n(e))})))})}function va(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=va(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ya(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=va(e))&&(r&&(r+=` `),r+=t);return r}function ba(e){return typeof e==`object`?ya(e):e??``}var xa=[...`
|
|
4
|
-
\r\f\xA0\v`];function Sa(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||xa.includes(r[o-1]))&&(s===r.length||xa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ca(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function wa(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Ta(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(wa)),i&&c.push(...Object.keys(i).map(wa));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=wa(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ca(r)),i&&(n+=Ca(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Ea(e,t,n,r,i,a){var o=e.__className;if(qe||o!==n||o===void 0){var s=Sa(n,r,a);(!qe||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Da(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Oa(e,t,n,r){var i=e.__style;if(qe||i!==t){var a=Ta(t,r);(!qe||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Da(e,n?.[0],r[0]),Da(e,n?.[1],r[1],`important`)):Da(e,n,r));return r}function ka(e,t,n=!1){if(e.multiple){if(t==null)return;if(!h(t))return Ge();for(var r of e.options)r.selected=t.includes(Ma(r));return}for(r of e.options)if(kn(Ma(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Aa(e){var t=new MutationObserver(()=>{ka(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Qn(()=>{t.disconnect()})}function ja(e,t,n=t){var r=new WeakSet,i=!0;qn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Ma);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Ma(o)}n(a),e.__value=a,Ft!==null&&r.add(Ft)}),rr(()=>{var a=t();if(e===document.activeElement){var o=rt?It:Ft;if(r.has(o))return}if(ka(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Ma(s),n(a))}e.__value=a,i=!1}),Aa(e)}function Ma(e){return`__value`in e?e.__value:e.value}var Na=Symbol(`class`),Pa=Symbol(`style`),Fa=Symbol(`is custom element`),Ia=Symbol(`is html`),La=ke?`link`:`LINK`,Ra=ke?`input`:`INPUT`,za=ke?`option`:`OPTION`,Ba=ke?`select`:`SELECT`,Va=ke?`progress`:`PROGRESS`;function Ha(e){if(qe){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e.__on_r=n,bt(n),Gn()}}function Ua(e,t){var n=Ja(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Va)||(e.value=t??``)}function Wa(e,t){var n=Ja(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Ga(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=Ja(e);qe&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===La)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[De]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Xa(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ka(e,t,n,r,i=!1,a=!1){if(qe&&i&&e.nodeName===Ra){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ha(o)}var s=Ja(e),c=s[Fa],l=!s[Ia];let d=qe&&c;d&&Je(!1);var f=t||{},p=e.nodeName===za;for(var m in t)m in n||(n[m]=null);n.class?n.class=ba(n.class):(r||n[Na])&&(n.class=null),n[Pa]&&(n.style??=null);var h=Xa(e);for(let i in n){let o=n[i];if(p&&i===`value`&&o==null){e.value=e.__value=``,f[i]=o;continue}if(i===`class`){Ea(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Na],n[Na]),f[i]=o,f[Na]=n[Na];continue}if(i===`style`){Oa(e,o,t?.[Pa],n[Pa]),f[i]=o,f[Pa]=n[Pa];continue}var g=f[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){f[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=vi(r);if(gi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,f[n],t),f[n]=null}if(v)ii(r,e,o),ai([r]);else if(o!=null){function a(e){f[i].call(this,e)}f[n]=ti(r,e,a,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Hn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&p)Ga(e,o);else{var y=i;l||(y=xi(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||h.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=u)):typeof o!=`function`&&K(e,y,o,a)}}}return d&&Je(!0),f}function qa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){an(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ba,l=!1;if(sr(()=>{var u=t(...n.map(R)),d=Ka(e,r,u,a,o,s);l&&c&&`value`in u&&ka(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||fr(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&fr(i[t]),i[t]=cr(()=>_a(e,()=>f))),d[t]=f}r=d}),c){var u=e;rr(()=>{ka(u,r.value,!0),Aa(u)})}l=!0})}function Ja(e){return e.__attributes??={[Fa]:e.nodeName.includes(`-`),[Ia]:e.namespaceURI===d}}var Ya=new Map;function Xa(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ya.get(t);if(n)return n;Ya.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=S(i),r)r[o].set&&n.push(o);i=te(i)}return n}function Za(e,t,n=t){var r=new WeakSet;qn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=to(e)?no(a):a,n(a),Ft!==null&&r.add(Ft),await Kr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(qe&&e.defaultValue!==e.value||Yr(t)==null&&e.value)&&(n(to(e)?no(e.value):e.value),Ft!==null&&r.add(Ft)),ar(()=>{var n=t();if(e===document.activeElement){var i=rt?It:Ft;if(r.has(i))return}to(e)&&n===no(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var Qa=new Set;function $a(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),qn(n,`change`,()=>{var e=n.__value;a&&(e=eo(o,e,n.checked)),i(e)},()=>i(a?[]:null)),ar(()=>{var e=r();if(qe&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=kn(n.__value,e)}),Qn(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),Qa.has(o)||(Qa.add(o),bt(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),Qa.delete(o)})),bt(()=>{if(s){var e=a?eo(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function eo(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function to(e){var t=e.type;return t===`number`||t===`range`}function no(e){return e===``?null:+e}var ro=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function io(e,t,n){var r=ro.observe(e,()=>n(e[t]));rr(()=>(Yr(()=>n(e[t])),r))}function ao(e,t){return e===t||e?.[Te]===t}function oo(e={},t,n,r){var i=lt.r,a=Dr;return rr(()=>{var o,s;return ar(()=>{o=s,s=r?.()||[],Yr(()=>{e!==n(...s)&&(t(e,...s),o&&ao(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ao(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function so(e=!1){let t=lt,n=t.l.u;if(!n)return;let r=()=>Xr(t.s);if(e){let e=0,n={},i=ln(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>R(i)}n.b.length&&er(()=>{co(t,r),oe(n.b)}),I(()=>{let e=Yr(()=>n.m.map(ae));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&I(()=>{co(t,r),oe(n.a)})}function co(e,t){if(e.l.s)for(let t of e.l.s)R(t);t()}var lo={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function uo(e,t,n){return new Proxy({props:e,exclude:t},lo)}var fo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(re(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];re(i)&&(i=i());let a=x(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(re(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=x(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Te||t===Ee)return!1;for(let n of e.props)if(re(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(re(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function po(...e){return new Proxy({props:e},fo)}function q(e,t,n,r){var i=!it||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Yr(r):r),s);let u;if(a){var d=Te in e||Ee in e;u=x(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=Nt(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Re(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?ln:dn)(()=>(g=!1,m()));a&&R(_);var v=Dr;return(function(e,t){if(arguments.length>0){let n=t?R(_):i&&a?Dn(e):e;return M(_,n),g=!0,s!==void 0&&(s=n),e}return Sr&&g||v.f&16384?_.v:R(_)})}function mo(e){return new ho(e)}var ho=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Sn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return R(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Ee?!0:(R(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return M(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?ki:Oi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!rt&&(!e?.props?.$$host||e.sync===!1)&&k(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||b(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ni(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},go;typeof HTMLElement==`function`&&(go=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Bn(`slot`);e!==`default`&&(n.name=e),V(t,n)}}let t={},n=vo(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=_o(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=mo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=tr(()=>{ar(()=>{this.$$r=!0;for(let e of y(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=_o(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=_o(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return y(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _o(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function vo(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function J(e,t,n,r,i,a){let o=class extends go{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return y(t).map(e=>(t[e].attribute||e).toLowerCase())}};return y(t).forEach(e=>{b(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=_o(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(x(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{b(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var{entries:yo,setPrototypeOf:bo,isFrozen:xo,getPrototypeOf:So,getOwnPropertyDescriptor:Co}=Object,{freeze:wo,seal:To,create:Eo}=Object,{apply:Do,construct:Oo}=typeof Reflect<`u`&&Reflect;wo||=function(e){return e},To||=function(e){return e},Do||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Oo||=function(e){return new e(...[...arguments].slice(1))};var ko=Uo(Array.prototype.forEach),Ao=Uo(Array.prototype.lastIndexOf),jo=Uo(Array.prototype.pop),Mo=Uo(Array.prototype.push),No=Uo(Array.prototype.splice),Po=Uo(String.prototype.toLowerCase),Fo=Uo(String.prototype.toString),Io=Uo(String.prototype.match),Lo=Uo(String.prototype.replace),Ro=Uo(String.prototype.indexOf),zo=Uo(String.prototype.trim),Bo=Uo(Object.prototype.hasOwnProperty),Vo=Uo(RegExp.prototype.test),Ho=Wo(TypeError);function Uo(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Do(e,t,n)}}function Wo(e){return function(){return Oo(e,[...arguments])}}function Go(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;bo&&bo(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(xo(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ko(e){for(let t=0;t<e.length;t++)Bo(e,t)||(e[t]=null);return e}function qo(e){let t=Eo(null);for(let[n,r]of yo(e))Bo(e,n)&&(Array.isArray(r)?t[n]=Ko(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=qo(r):t[n]=r);return t}function Jo(e,t){for(;e!==null;){let n=Co(e,t);if(n){if(n.get)return Uo(n.get);if(typeof n.value==`function`)return Uo(n.value)}e=So(e)}function n(){return null}return n}var Yo=wo(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Xo=wo(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Zo=wo([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Qo=wo([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),$o=wo(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),es=wo([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ts=wo([`#text`]),ns=wo(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),rs=wo(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),is=wo(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),as=wo([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),os=To(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ss=To(/<%[\w\W]*|[\w\W]*%>/gm),cs=To(/\$\{[\w\W]*/gm),ls=To(/^data-[\-\w.\u00B7-\uFFFF]+$/),us=To(/^aria-[\-\w]+$/),ds=To(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fs=To(/^(?:\w+script|data):/i),ps=To(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ms=To(/^html$/i),hs=To(/^[a-z][.\w]*(-[.\w]+)+$/i),gs=Object.freeze({__proto__:null,ARIA_ATTR:us,ATTR_WHITESPACE:ps,CUSTOM_ELEMENT:hs,DATA_ATTR:ls,DOCTYPE_NAME:ms,ERB_EXPR:ss,IS_ALLOWED_URI:ds,IS_SCRIPT_OR_DATA:fs,MUSTACHE_EXPR:os,TMPLIT_EXPR:cs}),_s={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vs=function(){return typeof window>`u`?null:window},ys=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},bs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vs(),t=e=>xs(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==_s.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=Jo(m,`cloneNode`),g=Jo(m,`remove`),_=Jo(m,`nextSibling`),v=Jo(m,`childNodes`),y=Jo(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:ee,getElementsByTagName:te}=n,{importNode:ne}=r,re=bs();t.isSupported=typeof yo==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:w,ERB_EXPR:ie,TMPLIT_EXPR:ae,DATA_ATTR:oe,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:ue}=gs,{IS_ALLOWED_URI:de}=gs,fe=null,pe=Go({},[...Yo,...Xo,...Zo,...$o,...ts]),me=null,he=Go({},[...ns,...rs,...is,...as]),ge=Object.seal(Eo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,ve=null,ye=Object.seal(Eo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),be=!0,xe=!0,Se=!1,Ce=!0,we=!1,Te=!0,Ee=!1,De=!1,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!0,Ne=!1,Pe=!0,Fe=!1,Ie={},Le=null,Re=Go({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),ze=null,Be=Go({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ve=null,He=Go({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ue=`http://www.w3.org/1998/Math/MathML`,We=`http://www.w3.org/2000/svg`,Ge=`http://www.w3.org/1999/xhtml`,Ke=Ge,qe=!1,Je=null,T=Go({},[Ue,We,Ge],Fo),Ye=Go({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Xe=Go({},[`annotation-xml`]),E=Go({},[`title`,`style`,`font`,`a`,`script`]),Ze=null,Qe=[`application/xhtml+xml`,`text/html`],$e=null,et=null,tt=n.createElement(`form`),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(et&&et===e)){if((!e||typeof e!=`object`)&&(e={}),e=qo(e),Ze=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,$e=Ze===`application/xhtml+xml`?Fo:Po,fe=Bo(e,`ALLOWED_TAGS`)?Go({},e.ALLOWED_TAGS,$e):pe,me=Bo(e,`ALLOWED_ATTR`)?Go({},e.ALLOWED_ATTR,$e):he,Je=Bo(e,`ALLOWED_NAMESPACES`)?Go({},e.ALLOWED_NAMESPACES,Fo):T,Ve=Bo(e,`ADD_URI_SAFE_ATTR`)?Go(qo(He),e.ADD_URI_SAFE_ATTR,$e):He,ze=Bo(e,`ADD_DATA_URI_TAGS`)?Go(qo(Be),e.ADD_DATA_URI_TAGS,$e):Be,Le=Bo(e,`FORBID_CONTENTS`)?Go({},e.FORBID_CONTENTS,$e):Re,_e=Bo(e,`FORBID_TAGS`)?Go({},e.FORBID_TAGS,$e):qo({}),ve=Bo(e,`FORBID_ATTR`)?Go({},e.FORBID_ATTR,$e):qo({}),Ie=Bo(e,`USE_PROFILES`)?e.USE_PROFILES:!1,be=e.ALLOW_ARIA_ATTR!==!1,xe=e.ALLOW_DATA_ATTR!==!1,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=e.SAFE_FOR_TEMPLATES||!1,Te=e.SAFE_FOR_XML!==!1,Ee=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=e.SANITIZE_DOM!==!1,Ne=e.SANITIZE_NAMED_PROPS||!1,Pe=e.KEEP_CONTENT!==!1,Fe=e.IN_PLACE||!1,de=e.ALLOWED_URI_REGEXP||ds,Ke=e.NAMESPACE||Ge,Ye=e.MATHML_TEXT_INTEGRATION_POINTS||Ye,Xe=e.HTML_INTEGRATION_POINTS||Xe,ge=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ge.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ge.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(ge.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(xe=!1),Ae&&(ke=!0),Ie&&(fe=Go({},ts),me=Eo(null),Ie.html===!0&&(Go(fe,Yo),Go(me,ns)),Ie.svg===!0&&(Go(fe,Xo),Go(me,rs),Go(me,as)),Ie.svgFilters===!0&&(Go(fe,Zo),Go(me,rs),Go(me,as)),Ie.mathMl===!0&&(Go(fe,$o),Go(me,is),Go(me,as))),Bo(e,`ADD_TAGS`)||(ye.tagCheck=null),Bo(e,`ADD_ATTR`)||(ye.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?ye.tagCheck=e.ADD_TAGS:(fe===pe&&(fe=qo(fe)),Go(fe,e.ADD_TAGS,$e))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?ye.attributeCheck=e.ADD_ATTR:(me===he&&(me=qo(me)),Go(me,e.ADD_ATTR,$e))),e.ADD_URI_SAFE_ATTR&&Go(Ve,e.ADD_URI_SAFE_ATTR,$e),e.FORBID_CONTENTS&&(Le===Re&&(Le=qo(Le)),Go(Le,e.FORBID_CONTENTS,$e)),e.ADD_FORBID_CONTENTS&&(Le===Re&&(Le=qo(Le)),Go(Le,e.ADD_FORBID_CONTENTS,$e)),Pe&&(fe[`#text`]=!0),Ee&&Go(fe,[`html`,`head`,`body`]),fe.table&&(Go(fe,[`tbody`]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=ys(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));wo&&wo(e),et=e}},it=Go({},[...Xo,...Zo,...Qo]),at=Go({},[...$o,...es]),ot=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ke,tagName:`template`});let n=Po(e.tagName),r=Po(t.tagName);return Je[e.namespaceURI]?e.namespaceURI===We?t.namespaceURI===Ge?n===`svg`:t.namespaceURI===Ue?n===`svg`&&(r===`annotation-xml`||Ye[r]):!!it[n]:e.namespaceURI===Ue?t.namespaceURI===Ge?n===`math`:t.namespaceURI===We?n===`math`&&Xe[r]:!!at[n]:e.namespaceURI===Ge?t.namespaceURI===We&&!Xe[r]||t.namespaceURI===Ue&&!Ye[r]?!1:!at[n]&&(E[n]||!it[n]):!!(Ze===`application/xhtml+xml`&&Je[e.namespaceURI]):!1},st=function(e){Mo(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},ct=function(e,n){try{Mo(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Mo(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ke||Ae)try{st(n)}catch{}else try{n.setAttribute(e,``)}catch{}},lt=function(e){let t=null,r=null;if(Oe)e=`<remove></remove>`+e;else{let t=Io(e,/^[\r\n\t ]+/);r=t&&t[0]}Ze===`application/xhtml+xml`&&Ke===Ge&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ke===Ge)try{t=new f().parseFromString(i,Ze)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ke,`template`,null);try{t.documentElement.innerHTML=qe?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ke===Ge?te.call(t,Ee?`html`:`body`)[0]:Ee?t.documentElement:a},ut=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},dt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},ft=function(e){return typeof s==`function`&&e instanceof s};function pt(e,n,r){ko(e,e=>{e.call(t,n,r,et)})}let mt=function(e){let n=null;if(pt(re.beforeSanitizeElements,e,null),dt(e))return st(e),!0;let r=$e(e.nodeName);if(pt(re.uponSanitizeElement,e,{tagName:r,allowedTags:fe}),Te&&e.hasChildNodes()&&!ft(e.firstElementChild)&&Vo(/<[/\w!]/g,e.innerHTML)&&Vo(/<[/\w!]/g,e.textContent)||e.nodeType===_s.progressingInstruction||Te&&e.nodeType===_s.comment&&Vo(/<[/\w]/g,e.data))return st(e),!0;if(!(ye.tagCheck instanceof Function&&ye.tagCheck(r))&&(!fe[r]||_e[r])){if(!_e[r]&&O(r)&&(ge.tagNameCheck instanceof RegExp&&Vo(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r)))return!1;if(Pe&&!Le[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return st(e),!0}return e instanceof c&&!ot(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Vo(/<\/no(script|embed|frames)/i,e.innerHTML)?(st(e),!0):(we&&e.nodeType===_s.text&&(n=e.textContent,ko([w,ie,ae],e=>{n=Lo(n,e,` `)}),e.textContent!==n&&(Mo(t.removed,{element:e.cloneNode()}),e.textContent=n)),pt(re.afterSanitizeElements,e,null),!1)},D=function(e,t,r){if(ve[t]||Me&&(t===`id`||t===`name`)&&(r in n||r in tt))return!1;if(!(xe&&!ve[t]&&Vo(oe,t))&&!(be&&Vo(se,t))&&!(ye.attributeCheck instanceof Function&&ye.attributeCheck(t,e))){if(!me[t]||ve[t]){if(!(O(e)&&(ge.tagNameCheck instanceof RegExp&&Vo(ge.tagNameCheck,e)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(e))&&(ge.attributeNameCheck instanceof RegExp&&Vo(ge.attributeNameCheck,t)||ge.attributeNameCheck instanceof Function&&ge.attributeNameCheck(t,e))||t===`is`&&ge.allowCustomizedBuiltInElements&&(ge.tagNameCheck instanceof RegExp&&Vo(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r))))return!1}else if(!Ve[t]&&!Vo(de,Lo(r,le,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ro(r,`data:`)===0&&ze[e])&&!(Se&&!Vo(ce,Lo(r,le,``)))&&r)return!1}return!0},O=function(e){return e!==`annotation-xml`&&Io(e,ue)},ht=function(e){pt(re.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||dt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=$e(a),l=s,u=a===`value`?l:zo(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,pt(re.uponSanitizeAttribute,e,r),u=r.attrValue,Ne&&(c===`id`||c===`name`)&&(ct(a,e),u=`user-content-`+u),Te&&Vo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){ct(a,e);continue}if(c===`attributename`&&Io(u,`href`)){ct(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ct(a,e);continue}if(!Ce&&Vo(/\/>/i,u)){ct(a,e);continue}we&&ko([w,ie,ae],e=>{u=Lo(u,e,` `)});let d=$e(e.nodeName);if(!D(d,c,u)){ct(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),dt(e)?st(e):jo(t.removed)}catch{ct(a,e)}}pt(re.afterSanitizeAttributes,e,null)},gt=function e(t){let n=null,r=ut(t);for(pt(re.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)pt(re.uponSanitizeShadowNode,n,null),mt(n),ht(n),n.content instanceof a&&e(n.content);pt(re.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(qe=!e,qe&&(e=`<!-->`),typeof e!=`string`&&!ft(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Ho(`dirty is not a string, aborting`)}else throw Ho(`toString is not a function`);if(!t.isSupported)return e;if(De||rt(n),t.removed=[],typeof e==`string`&&(Fe=!1),Fe){if(e.nodeName){let t=$e(e.nodeName);if(!fe[t]||_e[t])throw Ho(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=lt(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===_s.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!ke&&!we&&!Ee&&e.indexOf(`<`)===-1)return b&&je?b.createHTML(e):e;if(i=lt(e),!i)return ke?null:je?x:``}i&&Oe&&st(i.firstChild);let u=ut(Fe?e:i);for(;c=u.nextNode();)mt(c),ht(c),c.content instanceof a&>(c.content);if(Fe)return e;if(ke){if(Ae)for(l=ee.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(me.shadowroot||me.shadowrootmode)&&(l=ne.call(r,l,!0)),l}let d=Ee?i.outerHTML:i.innerHTML;return Ee&&fe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Vo(ms,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
5
|
-
`+d),we&&ko([w,ie,ae],e=>{d=Lo(d,e,` `)}),b&&je?b.createHTML(d):d},t.setConfig=function(){
|
|
2
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var l={},u=Symbol(),d=`http://www.w3.org/1999/xhtml`,f=`http://www.w3.org/2000/svg`,p=`http://www.w3.org/1998/Math/MathML`,m=`@attach`,h=Array.isArray,g=Array.prototype.indexOf,_=Array.prototype.includes,v=Array.from,y=Object.keys,b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyDescriptors,C=Object.prototype,ee=Array.prototype,te=Object.getPrototypeOf,ne=Object.isExtensible;function re(e){return typeof e==`function`}var w=()=>{};function ie(e){return typeof e?.then==`function`}function ae(e){return e()}function oe(e){for(var t=0;t<e.length;t++)e[t]()}function se(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var ce=1<<24,le=1024,ue=2048,de=4096,fe=8192,pe=16384,me=32768,he=1<<25,ge=65536,_e=1<<18,ve=1<<19,ye=1<<20,be=1<<25,xe=65536,Se=1<<21,Ce=1<<22,we=1<<23,Te=Symbol(`$state`),Ee=Symbol(`legacy props`),De=Symbol(``),Oe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ke=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ae(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function je(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ne(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Pe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Fe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ie(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Le(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Re(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ze(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Be(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ve(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function He(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ue(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function We(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ge(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function qe(e){T=e}var E;function Je(e){if(e===null)throw We(),l;return E=e}function Ye(){return Je(In(E))}function D(e){if(T){if(In(E)!==null)throw We(),l;E=e}}function Xe(e=1){if(T){for(var t=e,n=E;t--;)n=In(n);E=n}}function Ze(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=In(n);e&&n.remove(),n=i}}function Qe(e){if(!e||e.nodeType!==8)throw We(),l;return e.data}function $e(e){return e===this.v}function et(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function tt(e){return!et(e,this.v)}var nt=!1,rt=!1;function it(){rt=!0}var at=[];function ot(e,t=!1,n=!1){return st(e,new Map,``,at,null,n)}function st(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(h(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=st(l,t,n,r,null,a))}return s}if(te(e)===C){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=st(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return st(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var ct=null;function lt(e){ct=e}function ut(e){return ht(`getContext`).get(e)}function dt(e,t){let n=ht(`setContext`);if(nt){var r=Dr.f;!wr&&r&32&&!ct.i||ze()}return n.set(e,t),t}function ft(e){return ht(`hasContext`).has(e)}function pt(){return ht(`getAllContexts`)}function O(e,t=!1,n){ct={p:ct,i:!1,c:null,e:null,s:e,x:null,r:Dr,l:rt&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=ct,n=t.e;if(n!==null){t.e=null;for(var r of n)$n(r)}return e!==void 0&&(t.x=e),t.i=!0,ct=t.p,e??{}}function mt(){return!rt||ct!==null&&ct.l===null}function ht(e){return ct===null&&Ae(e),ct.c??=new Map(gt(ct)||void 0)}function gt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var _t=[];function vt(){var e=_t;_t=[],oe(e)}function yt(e){if(_t.length===0&&!Rt){var t=_t;queueMicrotask(()=>{t===_t&&vt()})}_t.push(e)}function bt(){for(;_t.length>0;)vt()}function xt(e){var t=Dr;if(t===null)return wr.f|=we,e;if(!(t.f&32768)&&!(t.f&4))throw e;St(e,t)}function St(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ct=~(ue|de|le);function wt(e,t){e.f=e.f&Ct|t}function Tt(e){e.f&512||e.deps===null?wt(e,le):wt(e,de)}function Et(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=xe,Et(t.deps))}function Dt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Et(e.deps),wt(e,le)}var Ot=[];function kt(e,t=w){let n=null,r=new Set;function i(t){if(et(e,t)&&(e=t,n)){let t=!Ot.length;for(let t of r)t[1](),Ot.push(t,e);if(t){for(let e=0;e<Ot.length;e+=2)Ot[e][0](Ot[e+1]);Ot.length=0}}}function a(t){i(t(e))}function o(o,s=w){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||w),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var At=!1,jt=!1;function Mt(e){var t=jt;try{return jt=!1,[e(),jt]}finally{jt=t}}var Nt=new Set,Pt=null,Ft=null,It=null,Lt=null,Rt=!1,zt=!1,Bt=null,Vt=null,Ht=0,Ut=1,Wt=class e{id=Ut++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)wt(n,ue),this.schedule(n);for(n of t.m)wt(n,de),this.schedule(n)}}#d(){if(Ht++>1e3&&(Nt.delete(this),Gt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),wt(e,ue),this.schedule(e);for(let e of this.#s)wt(e,de),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=Bt=[],r=[],i=Vt=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw Qt(e),t}if(Pt=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Bt=null,Vt=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Zt(e,t)}else{this.#n===0&&Nt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),Ft=this,qt(r),qt(n),Ft=null,this.#i?.resolve()}var o=Pt;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(Nt.add(o),o.#d()),Nt.has(this)||this.#m()}#f(e,t,n){e.f^=le;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=le:i&4?t.push(r):nt&&i&16777224?n.push(r):Br(r)&&(i&16&&this.#s.add(r),Gr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)Dt(e[t],this.#o,this.#s)}capture(e,t){t!==u&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),It?.set(e,e.v))}activate(){Pt=this}deactivate(){Pt=null,It=null}flush(){try{zt=!0,Pt=this,this.#d()}finally{Ht=0,Lt=null,Bt=null,Vt=null,zt=!1,Pt=null,It=null,vn.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),Nt.delete(this)}#m(){for(let s of Nt){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length===0)e&&s.discard();else if(t.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Jt(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,yt(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=se()).promise}static ensure(){if(Pt===null){let t=Pt=new e;zt||(Nt.add(Pt),Rt||yt(()=>{Pt===t&&t.flush()}))}return Pt}apply(){if(!nt||!this.is_fork&&Nt.size===1){It=null;return}It=new Map(this.current);for(let e of Nt)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)It.has(t)||It.set(t,n)}schedule(e){if(Lt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Bt!==null&&t===Dr&&(nt||(wr===null||!(wr.f&2))&&!At))return;if(n&96){if(!(n&1024))return;t.f^=le}}this.#a.push(t)}};function A(e){var t=Rt;Rt=!0;try{var n;for(e&&(Pt!==null&&!Pt.is_fork&&Pt.flush(),n=e());;){if(bt(),Pt===null)return n;Pt.flush()}}finally{Rt=t}}function Gt(){try{Ie()}catch(e){St(e,Lt)}}var Kt=null;function qt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Br(r)&&(Kt=new Set,Gr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mr(r),Kt?.size>0)){vn.clear();for(let e of Kt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Kt.has(n)&&(Kt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Gr(n)}}Kt.clear()}}Kt=null}}function Jt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Jt(i,t,n,r):e&4194320&&!(e&2048)&&Yt(i,t,r)&&(wt(i,ue),Xt(i))}}function Yt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(_.call(t,r))return!0;if(r.f&2&&Yt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Xt(e){Pt.schedule(e)}function Zt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),wt(e,le);for(var n=e.first;n!==null;)Zt(n,t),n=n.next}}function Qt(e){wt(e,le);for(var t=e.first;t!==null;)Qt(t),t=t.next}function $t(e){let t=0,n=bn(0),r;return()=>{Xn()&&(R(n),ar(()=>(t===0&&(r=Yr(()=>e(()=>wn(n)))),t+=1,()=>{yt(()=>{--t,t===0&&(r?.(),r=void 0,wn(n))})})))}}var en=ge|ve;function tn(e,t,n,r){new nn(e,t,n,r)}var nn=class{parent;is_pending=!1;transform_error;#e;#t=T?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=$t(()=>(this.#m=bn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Dr;t.b=this,t.f|=128,n(e)},this.parent=Dr.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=or(()=>{if(T){let e=this.#t;Ye();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},en),T&&(this.#e=E)}#g(){try{this.#a=cr(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=cr(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=cr(()=>e(this.#e)),yt(()=>{var e=this.#c=document.createDocumentFragment(),t=Pn();e.append(t),this.#a=this.#x(()=>cr(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,hr(this.#o,()=>{this.#o=null}),this.#b(Pt))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=cr(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();yr(this.#a,e);let t=this.#n.pending;this.#o=cr(()=>t(this.#e))}else this.#b(Pt)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Dt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=Dr,n=wr,r=ct;Or(this.#i),Er(this.#i),lt(this.#i.ctx);try{return Wt.ensure(),e()}catch(e){return xt(e),null}finally{Or(t),Er(n),lt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&hr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,yt(()=>{this.#d=!1,this.#m&&Sn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),R(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(fr(this.#a),null),this.#o&&=(fr(this.#o),null),this.#s&&=(fr(this.#s),null),T&&(Je(this.#t),Xe(),Je(Ze()));var r=!1,i=!1;let a=()=>{if(r){Ke();return}r=!0,i&&Ue(),this.#s!==null&&hr(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){St(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return cr(()=>{var t=Dr;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return St(e,this.#i.parent),null}}))};yt(()=>{var t;try{t=this.transform_error(e)}catch(e){St(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>St(e,this.#i&&this.#i.parent)):o(t)})}};function rn(e,t,n,r){let i=mt()?cn:un;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=Dr,s=an(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||St(e,o)}on()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=sn();function d(){Promise.all(n.map(e=>ln(e))).then(e=>l([...t.map(i),...e])).catch(e=>St(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),on()}):d()}function an(){var e=Dr,t=wr,n=ct,r=Pt;return function(i=!0){Or(e),Er(t),lt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function on(e=!0){Or(null),Er(null),lt(null),e&&Pt?.deactivate()}function sn(){var e=Dr.b,t=Pt,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function cn(e){var t=2|ue,n=wr!==null&&wr.f&2?wr:null;return Dr!==null&&(Dr.f|=ve),{ctx:ct,deps:null,effects:null,equals:$e,f:t,fn:e,reactions:null,rv:0,v:u,wv:0,parent:n??Dr,ac:null}}function ln(e,t,n){let r=Dr;r===null&&je();var i=void 0,a=bn(u),o=!wr,s=new Map;return ir(()=>{var t=Dr,n=se();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(on)}catch(e){n.reject(e),on()}var c=Pt;if(o){if(t.f&32768)var l=sn();if(r.b.is_rendered())s.get(c)?.reject(Oe),s.delete(c);else{for(let e of s.values())e.reject(Oe);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===Oe),!(n===Oe||t.f&16384)){if(c.activate(),n)a.f|=we,Sn(a,n);else{a.f&8388608&&(a.f^=we),Sn(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(Oe)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),Zn(()=>{for(let e of s.values())e.reject(Oe)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=cn(e);return nt||Ar(t),t}function un(e){let t=cn(e);return t.equals=tt,t}function dn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)fr(t[n])}}function fn(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function pn(e){var t,n=Dr;Or(fn(e));try{e.f&=~xe,dn(e),t=Hr(e)}finally{Or(n)}return t}function mn(e){var t=e.v,n=pn(e);if(!e.equals(n)&&(e.wv=zr(),(!Pt?.is_fork||e.deps===null)&&(e.v=n,Pt?.capture(e,t),e.deps===null))){wt(e,le);return}Sr||(It===null?Tt(e):(Xn()||Pt?.is_fork)&&It.set(e,n))}function hn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Oe),t.teardown=w,t.ac=null,Wr(t,0),ur(t))}function gn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Gr(t)}var _n=new Set,vn=new Map,yn=!1;function bn(e,t){return{f:0,v:e,reactions:null,equals:$e,rv:0,wv:0}}function M(e,t){let n=bn(e,t);return Ar(n),n}function xn(e,t=!1,n=!0){let r=bn(e);return t||(r.equals=tt),rt&&n&&ct!==null&&ct.l!==null&&(ct.l.s??=[]).push(r),r}function N(e,t,n=!1){return wr!==null&&(!Tr||wr.f&131072)&&mt()&&wr.f&4325394&&(kr===null||!_.call(kr,e))&&He(),Sn(e,n?En(t):t,Vt)}function Sn(e,t,n=null){if(!e.equals(t)){var r=e.v;Sr?vn.set(e,t):vn.set(e,r),e.v=t;var i=Wt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&pn(t),It===null&&Tt(t)}e.wv=zr(),Tn(e,ue,n),mt()&&Dr!==null&&Dr.f&1024&&!(Dr.f&96)&&(Nr===null?Pr([e]):Nr.push(e)),!i.is_fork&&_n.size>0&&!yn&&Cn()}return t}function Cn(){yn=!1;for(let e of _n)e.f&1024&&wt(e,de),Br(e)&&Gr(e);_n.clear()}function wn(e){N(e,e.v+1)}function Tn(e,t,n){var r=e.reactions;if(r!==null)for(var i=mt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Dr)){var l=(c&ue)===0;if(l&&wt(s,t),c&2){var u=s;It?.delete(u),c&65536||(c&512&&(s.f|=xe),Tn(u,de,n))}else if(l){var d=s;c&16&&Kt!==null&&Kt.add(d),n===null?Xt(d):n.push(d)}}}}function En(e){if(typeof e!=`object`||!e||Te in e)return e;let t=te(e);if(t!==C&&t!==ee)return e;var n=new Map,r=h(e),i=M(0),a=null,o=Lr,s=e=>{if(Lr===o)return e();var t=wr,n=Lr;Er(null),Rr(o);var r=e();return Er(t),Rr(n),r};return r&&n.set(`length`,M(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Be();var i=n.get(t);return i===void 0?s(()=>{var e=M(r.value,a);return n.set(t,e),e}):N(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>M(u,a));n.set(t,e),wn(i)}}else N(r,u),wn(i);return!0},get(t,r,i){if(r===Te)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||x(t,r)?.writable)&&(o=s(()=>M(En(c?t[r]:u),a)),n.set(r,o)),o!==void 0){var l=R(o);return l===u?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=R(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==u)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Te)return!0;var r=n.get(t),i=r!==void 0&&r.v!==u||Reflect.has(e,t);return(r!==void 0||Dr!==null&&(!i||x(e,t)?.writable))&&(r===void 0&&(r=s(()=>M(i?En(e[t]):u,a)),n.set(t,r)),R(r)===u)?!1:i},set(e,t,o,c){var l=n.get(t),d=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>M(u,a)),n.set(f+``,p)):N(p,u)}if(l===void 0)(!d||x(e,t)?.writable)&&(l=s(()=>M(void 0,a)),N(l,En(o)),n.set(t,l));else{d=l.v!==u;var m=s(()=>En(o));N(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!d){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&N(g,_+1)}wn(i)}return!0},ownKeys(e){R(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==u});for(var[r,a]of n)a.v!==u&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ve()}})}function Dn(e){try{if(typeof e==`object`&&e&&Te in e)return e[Te]}catch{}return e}function On(e,t){return Object.is(Dn(e),Dn(t))}var kn,An,jn,Mn;function Nn(){if(kn===void 0){kn=window,An=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;jn=x(t,`firstChild`).get,Mn=x(t,`nextSibling`).get,ne(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ne(n)&&(n.__t=void 0)}}function Pn(e=``){return document.createTextNode(e)}function Fn(e){return jn.call(e)}function In(e){return Mn.call(e)}function P(e,t){if(!T)return Fn(e);var n=Fn(E);if(n===null)n=E.appendChild(Pn());else if(t&&n.nodeType!==3){var r=Pn();return n?.before(r),Je(r),r}return t&&Bn(n),Je(n),n}function F(e,t=!1){if(!T){var n=Fn(e);return n instanceof Comment&&n.data===``?In(n):n}if(t){if(E?.nodeType!==3){var r=Pn();return E?.before(r),Je(r),r}Bn(E)}return E}function I(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=In(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=Pn();return r===null?i?.after(a):r.before(a),Je(a),a}Bn(r)}return Je(r),r}function Ln(e){e.textContent=``}function Rn(){return!nt||Kt!==null?!1:(Dr.f&me)!==0}function zn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Bn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Vn(e,t){if(t){let t=document.body;e.autofocus=!0,yt(()=>{document.activeElement===t&&e.focus()})}}function Hn(e){T&&Fn(e)!==null&&Ln(e)}var Un=!1;function Wn(){Un||(Un=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Gn(e){var t=wr,n=Dr;Er(null),Or(null);try{return e()}finally{Er(t),Or(n)}}function Kn(e,t,n,r=n){e.addEventListener(t,()=>Gn(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Wn()}function qn(e){Dr===null&&(wr===null&&Fe(e),Pe()),Sr&&Ne(e)}function Jn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Yn(e,t){var n=Dr;n!==null&&n.f&8192&&(e|=fe);var r={ctx:ct,deps:null,nodes:null,f:e|ue|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)Bt===null?Wt.ensure().schedule(r):Bt.push(r);else if(t!==null){try{Gr(r)}catch(e){throw fr(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ge))}if(i!==null&&(i.parent=n,n!==null&&Jn(i,n),wr!==null&&wr.f&2&&!(e&64))){var a=wr;(a.effects??=[]).push(i)}return r}function Xn(){return wr!==null&&!Tr}function Zn(e){let t=Yn(8,null);return wt(t,le),t.teardown=e,t}function Qn(e){qn(`$effect`);var t=Dr.f;if(!wr&&t&32&&!(t&32768)){var n=ct;(n.e??=[]).push(e)}else return $n(e)}function $n(e){return Yn(4|ye,e)}function er(e){return qn(`$effect.pre`),Yn(8|ye,e)}function tr(e){Wt.ensure();let t=Yn(64|ve,e);return()=>{fr(t)}}function nr(e){Wt.ensure();let t=Yn(64|ve,e);return(e={})=>new Promise(n=>{e.outro?hr(t,()=>{fr(t),n(void 0)}):(fr(t),n(void 0))})}function rr(e){return Yn(4,e)}function ir(e){return Yn(Ce|ve,e)}function ar(e,t=0){return Yn(8|t,e)}function L(e,t=[],n=[],r=[]){rn(r,t,n,t=>{Yn(8,()=>e(...t.map(R)))})}function or(e,t=0){return Yn(16|t,e)}function sr(e,t=0){return Yn(ce|t,e)}function cr(e){return Yn(32|ve,e)}function lr(e){var t=e.teardown;if(t!==null){let e=Sr,n=wr;Cr(!0),Er(null);try{t.call(null)}finally{Cr(e),Er(n)}}}function ur(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Gn(()=>{e.abort(Oe)});var r=n.next;n.f&64?n.parent=null:fr(n,t),n=r}}function dr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||fr(t),t=n}}function fr(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(pr(e.nodes.start,e.nodes.end),n=!0),wt(e,he),ur(e,t&&!n),Wr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();lr(e),e.f^=he,e.f|=pe;var i=e.parent;i!==null&&i.first!==null&&mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function pr(e,t){for(;e!==null;){var n=e===t?null:In(e);e.remove(),e=n}}function mr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hr(e,t,n=!0){var r=[];gr(e,r,!0);var i=()=>{n&&fr(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function gr(e,t,n){if(!(e.f&8192)){e.f^=fe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;gr(i,t,o?n:!1),i=a}}}function _r(e){vr(e,!0)}function vr(e,t){if(e.f&8192){e.f^=fe,e.f&1024||(wt(e,ue),Wt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;vr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function yr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:In(n);t.append(n),n=i}}var br=null,xr=!1,Sr=!1;function Cr(e){Sr=e}var wr=null,Tr=!1;function Er(e){wr=e}var Dr=null;function Or(e){Dr=e}var kr=null;function Ar(e){wr!==null&&(!nt||wr.f&2)&&(kr===null?kr=[e]:kr.push(e))}var jr=null,Mr=0,Nr=null;function Pr(e){Nr=e}var Fr=1,Ir=0,Lr=Ir;function Rr(e){Lr=e}function zr(){return++Fr}function Br(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~xe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Br(a)&&mn(a),a.wv>e.wv)return!0}t&512&&It===null&&wt(e,le)}return!1}function Vr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!nt&&kr!==null&&_.call(kr,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Vr(a,t,!1):t===a&&(n?wt(a,ue):a.f&1024&&wt(a,de),Xt(a))}}function Hr(e){var t=jr,n=Mr,r=Nr,i=wr,a=kr,o=ct,s=Tr,c=Lr,l=e.f;jr=null,Mr=0,Nr=null,wr=l&96?null:e,kr=null,lt(e.ctx),Tr=!1,Lr=++Ir,e.ac!==null&&(Gn(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=Se;var u=e.fn,d=u();e.f|=me;var f=e.deps,p=Pt?.is_fork;if(jr!==null){var m;if(p||Wr(e,Mr),f!==null&&Mr>0)for(f.length=Mr+jr.length,m=0;m<jr.length;m++)f[Mr+m]=jr[m];else e.deps=f=jr;if(Xn()&&e.f&512)for(m=Mr;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Mr<f.length&&(Wr(e,Mr),f.length=Mr);if(mt()&&Nr!==null&&!Tr&&f!==null&&!(e.f&6146))for(m=0;m<Nr.length;m++)Vr(Nr[m],e);if(i!==null&&i!==e){if(Ir++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Ir;if(t!==null)for(let e of t)e.rv=Ir;Nr!==null&&(r===null?r=Nr:r.push(...Nr))}return e.f&8388608&&(e.f^=we),d}catch(e){return xt(e)}finally{e.f^=Se,jr=t,Mr=n,Nr=r,wr=i,kr=a,lt(o),Tr=s,Lr=c}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=g.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(jr===null||!_.call(jr,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~xe),Tt(a),hn(a),Wr(a,0)}}function Wr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function Gr(e){var t=e.f;if(!(t&16384)){wt(e,le);var n=Dr,r=xr;Dr=e,xr=!0;try{t&16777232?dr(e):ur(e),lr(e);var i=Hr(e);e.teardown=typeof i==`function`?i:null,e.wv=Fr}finally{xr=r,Dr=n}}}async function Kr(){if(nt)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),A()}function R(e){var t=(e.f&2)!=0;if(br?.add(e),wr!==null&&!Tr&&!(Dr!==null&&Dr.f&16384)&&(kr===null||!_.call(kr,e))){var n=wr.deps;if(wr.f&2097152)e.rv<Ir&&(e.rv=Ir,jr===null&&n!==null&&n[Mr]===e?Mr++:jr===null?jr=[e]:jr.push(e));else{(wr.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[wr]:_.call(r,wr)||r.push(wr)}}if(Sr&&vn.has(e))return vn.get(e);if(t){var i=e;if(Sr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Jr(i))&&(a=pn(i)),vn.set(i,a),a}var o=(i.f&512)==0&&!Tr&&wr!==null&&(xr||(wr.f&512)!=0),s=(i.f&me)===0;Br(i)&&(o&&(i.f|=512),mn(i)),o&&!s&&(gn(i),qr(i))}if(It?.has(e))return It.get(e);if(e.f&8388608)throw e.v;return e.v}function qr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(gn(t),qr(t))}function Jr(e){if(e.v===u)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(vn.has(t)||t.f&2&&Jr(t))return!0;return!1}function Yr(e){var t=Tr;try{return Tr=!0,e()}finally{Tr=t}}function Xr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(Te in e)Zr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&Te in n&&Zr(n)}}}function Zr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Zr(e[n],t)}catch{}let n=te(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=S(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}var Qr=Symbol(`events`),$r=new Set,ei=new Set;function ti(e,t,n,r={}){function i(e){if(r.capture||si.call(t,e),!e.cancelBubble)return Gn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?yt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ni(e,t,n,r={}){var i=ti(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ri(e,t,n,r,i){var a={capture:r,passive:i},o=ti(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Zn(()=>{t.removeEventListener(e,o,a)})}function ii(e,t,n){(t[Qr]??={})[e]=n}function ai(e){for(var t=0;t<e.length;t++)$r.add(e[t]);for(var n of ei)n(e)}var oi=null;function si(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;oi=e;var o=0,s=oi===e&&e[Qr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Qr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){b(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=wr,d=Dr;Er(null),Or(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Qr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Qr]=t,delete e.currentTarget,Er(u),Or(d)}}}var ci=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function li(e){return ci?.createHTML(e)??e}function ui(e){var t=zn(`template`);return t.innerHTML=li(e.replaceAll(`<!>`,`<!---->`)),t.content}function di(e,t){var n=Dr;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function z(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return di(E,null),E;i===void 0&&(i=ui(a?e:`<!>`+e),n||(i=Fn(i)));var t=r||An?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Fn(t),s=t.lastChild;di(o,s)}else di(t,t);return t}}function fi(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(T)return di(E,null),E;if(!o){var e=Fn(ui(a));if(i)for(o=document.createDocumentFragment();Fn(e);)o.appendChild(Fn(e));else o=Fn(e)}var t=o.cloneNode(!0);if(i){var n=Fn(t),r=t.lastChild;di(n,r)}else di(t,t);return t}}function pi(e,t){return fi(e,t,`svg`)}function mi(e=``){if(!T){var t=Pn(e+``);return di(t,t),t}var n=E;return n.nodeType===3?Bn(n):(n.before(n=Pn()),Je(n)),di(n,n),n}function B(){if(T)return di(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=Pn();return e.append(t,n),di(t,n),e}function V(e,t){if(T){var n=Dr;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ye();return}e!==null&&e.before(t)}function hi(){if(T&&E&&E.nodeType===8&&E.textContent?.startsWith(`$`)){let e=E.textContent.substring(1);return Ye(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function gi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var _i=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function vi(e){return _i.includes(e)}var yi=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),bi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function xi(e){return e=e.toLowerCase(),bi[e]??e}[...yi];var Si=[`touchstart`,`touchmove`];function Ci(e){return Si.includes(e)}var wi=[`textarea`,`script`,`style`,`title`];function Ti(e){return wi.includes(e)}var Ei=!0;function Di(e){Ei=e}function H(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Oi(e,t){return ji(e,t)}function ki(e,t){Nn(),t.intro=t.intro??!1;let n=t.target,r=T,i=E;try{for(var a=Fn(n);a&&(a.nodeType!==8||a.data!==`[`);)a=In(a);if(!a)throw l;qe(!0),Je(a);let r=ji(e,{...t,anchor:a});return qe(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
3
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==l&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Le(),Nn(),Ln(n),qe(!1),Oi(e,t)}finally{qe(r),Je(i)}}var Ai=new Map;function ji(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Nn();var c=void 0,u=nr(()=>{var u=n??t.appendChild(Pn());tn(u,{pending:()=>{}},t=>{O({});var n=ct;if(a&&(n.c=a),i&&(r.$$events=i),T&&di(t,null),Ei=o,c=e(t,r)||{},Ei=!0,T&&(Dr.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw We(),l;k()},s);var d=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!d.has(r)){d.add(r);var i=Ci(r);for(let e of[t,document]){var a=Ai.get(e);a===void 0&&(a=new Map,Ai.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,si,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(v($r)),ei.add(f),()=>{for(var e of d)for(let n of[t,document]){var r=Ai.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,si),r.delete(e),r.size===0&&Ai.delete(n)):r.set(e,i)}ei.delete(f),u!==n&&u.parentNode?.removeChild(u)}});return Mi.set(c,u),c}var Mi=new WeakMap;function Ni(e,t){let n=Mi.get(e);return n?(Mi.delete(e),n(t)):Promise.resolve()}var Pi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)_r(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(fr(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();yr(r,t),t.append(Pn()),this.#n.set(e,{effect:r,fragment:t})}else fr(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),hr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(fr(n.effect),this.#n.delete(e))};ensure(e,t){var n=Pt,r=Rn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=Pn();i.append(a),this.#n.set(e,{effect:cr(()=>t(a)),fragment:i})}else this.#t.set(e,cr(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=E),this.#a(n)}};function U(e,t,...n){var r=new Pi(e);or(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ge)}function Fi(e){ct===null&&Ae(`onMount`),rt&&ct.l!==null?Li(ct).m.push(e):Qn(()=>{let t=Yr(e);if(typeof t==`function`)return t})}function Ii(e){ct===null&&Ae(`onDestroy`),Fi(()=>()=>Yr(e))}function Li(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Ri(){return Symbol(m)}var zi=0,Bi=1,Vi=2;function Hi(e,t,n,r,i){T&&Ye();var a=mt(),o=u,s=a?bn(o):xn(o,!1,!1),c=a?bn(o):xn(o,!1,!1),l=new Pi(e);or(()=>{var a=Pt;a.deactivate();var o=t();a.activate();var u=!1;let d=T&&ie(o)===(e.data===`[!`);if(d&&(Je(Ze()),qe(!1)),ie(o)){var f=an(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Wt.ensure(),T&&qe(!1);try{e()}finally{on(!1),Rt||A()}}};o.then(t=>{e(()=>{Sn(s,t),l.ensure(Bi,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Sn(c,t),l.ensure(Vi,i&&(e=>i(e,c))),!i)throw c.v})}),T?l.ensure(zi,n):yt(()=>{p||e(()=>{l.ensure(zi,n)})})}else Sn(s,o),l.ensure(Bi,r&&(e=>r(e,s)));return d&&qe(!0),()=>{u=!0}})}function W(e,t,n=!1){var r;T&&(r=E,Ye());var i=new Pi(e),a=n?ge:0;function o(e,t){if(T){var n=Qe(r);if(e!==parseInt(n.substring(1))){var a=Ze();Je(a),i.anchor=a,qe(!1),i.ensure(e,t),qe(!0);return}}i.ensure(e,t)}or(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Ui=Symbol(`NaN`);function Wi(e,t,n){T&&Ye();var r=new Pi(e),i=!mt();or(()=>{var e=t();e!==e&&(e=Ui),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Gi(e,t){return t}function Ki(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];hr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;qi(e,v(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Ln(u),u.append(l),e.items.clear()}qi(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function qi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=be,yr(a,document.createDocumentFragment())):fr(t[i],n)}}var Ji;function Yi(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=T?Je(Fn(c)):c.appendChild(Pn())}T&&Ye();var l=null,u=un(()=>{var e=n();return h(e)?e:e==null?[]:v(e)}),d,f=new Map,p=!0;function m(e){_.effect.f&16384||(_.pending.delete(e),_.fallback=l,Zi(_,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=be,$i(l,null,o)):_r(l):hr(l,()=>{l=null})))}function g(e){_.pending.delete(e)}var _={effect:or(()=>{d=R(u);var e=d.length;let c=!1;T&&Qe(o)===`[!`!=(e===0)&&(o=Ze(),Je(o),qe(!1),c=!0);for(var h=new Set,_=Pt,v=Rn(),y=0;y<e;y+=1){T&&E.nodeType===8&&E.data===`]`&&(o=E,c=!0,qe(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&Sn(S.v,b),S.i&&Sn(S.i,y),v&&_.unskip_effect(S.e)):(S=Qi(s,p?o:Ji??=Pn(),b,x,y,i,t,n),p||(S.e.f|=be),s.set(x,S)),h.add(x)}if(e===0&&a&&!l&&(p?l=cr(()=>a(o)):(l=cr(()=>a(Ji??=Pn())),l.f|=be)),e>h.size&&Me(``,``,``),T&&e>0&&Je(Ze()),!p)if(f.set(_,h),v){for(let[e,t]of s)h.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(g)}else m(_);c&&qe(!0),R(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,T&&(o=E)}function Xi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Zi(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Xi(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(_r(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=be,g===c)$i(g,null,n);else{var y=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),ea(e,u,g),ea(e,g,y),$i(g,y,n),u=g,f=[],p=[],c=Xi(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var b=p[0],x;u=b.prev;var S=f[0],C=f[f.length-1];for(x=0;x<f.length;x+=1)$i(f[x],b,n);for(x=0;x<p.length;x+=1)l.delete(p[x]);ea(e,S.prev,C.next),ea(e,u,S),ea(e,C,b),c=b,u=C,--_,f=[],p=[]}else l.delete(g),$i(g,c,n),ea(e,g.prev,g.next),ea(e,g,u===null?e.effect.first:u.next),ea(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=Xi(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=Xi(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(qi(e,v(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var ee=[];if(l!==void 0)for(g of l)g.f&8192||ee.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&ee.push(c),c=Xi(c.next);var te=ee.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(_=0;_<te;_+=1)ee[_].nodes?.a?.measure();for(_=0;_<te;_+=1)ee[_].nodes?.a?.fix()}Ki(e,ee,ne)}}a&&yt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function Qi(e,t,n,r,i,a,o,s){var c=o&1?o&16?bn(n):xn(n,!1,!1):null,l=o&2?bn(i):null;return{v:c,i:l,e:cr(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function $i(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=In(r);if(a.before(r),r===i)return;r=o}}function ea(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ta(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;T&&(o=Je(Fn(c)))}L(()=>{var e=Dr;if(s===(s=t()??``)){T&&Ye();return}if(n&&!T){e.nodes=null,c.innerHTML=s,s!==``&&di(Fn(c),c.lastChild);return}if(e.nodes!==null&&(pr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(T){for(var a=E.data,u=Ye(),d=u;u!==null&&(u.nodeType!==8||u.data!==``);)d=u,u=In(u);if(u===null)throw We(),l;di(E,d),o=Je(u);return}var m=zn(r?`svg`:i?`math`:`template`,r?f:i?p:void 0);m.innerHTML=s;var h=r||i?m:m.content;if(di(Fn(h),h.lastChild),r||i)for(;Fn(h);)o.before(Fn(h));else o.before(h)}})}function na(e,t,n,r,i){T&&Ye();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function G(e,t,n){var r;T&&(r=E,Ye());var i=new Pi(e);or(()=>{var e=t()??null;if(T&&Qe(r)===`[`!=(e!==null)){var a=Ze();Je(a),i.anchor=a,qe(!1),i.ensure(e,e&&(t=>n(t,e))),qe(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ge)}var ra=()=>performance.now(),ia={tick:e=>requestAnimationFrame(e),now:()=>ra(),tasks:new Set};function aa(){let e=ia.now();ia.tasks.forEach(t=>{t.c(e)||(ia.tasks.delete(t),t.f())}),ia.tasks.size!==0&&ia.tick(aa)}function oa(e){let t;return ia.tasks.size===0&&ia.tick(aa),{promise:new Promise(n=>{ia.tasks.add(t={c:e,f:n})}),abort(){ia.tasks.delete(t)}}}function sa(e,t){Gn(()=>{e.dispatchEvent(new CustomEvent(t))})}function ca(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function la(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=ca(n.trim());t[i]=r.trim()}return t}var ua=e=>e;function da(e,t,n,r){var i=(e&1)!=0,a=(e&2)!=0,o=i&&a,s=(e&4)!=0,c=o?`both`:i?`in`:`out`,l,u=t.inert,d=t.style.overflow,f,p;function m(){return Gn(()=>l??=n()(t,r?.()??{},{direction:c}))}var h={is_global:s,in(){if(t.inert=u,!i){p?.abort(),p?.reset?.();return}a||f?.abort(),f=fa(t,m(),p,1,()=>{sa(t,`introend`),f?.abort(),f=l=void 0,t.style.overflow=d})},out(e){if(!a){e?.(),l=void 0;return}t.inert=!0,p=fa(t,m(),f,0,()=>{sa(t,`outroend`),e?.()})},stop:()=>{f?.abort(),p?.abort()}},g=Dr;if((g.nodes.t??=[]).push(h),i&&Ei){var _=s;if(!_){for(var v=g.parent;v&&v.f&65536;)for(;(v=v.parent)&&!(v.f&16););_=!v||(v.f&32768)!=0}_&&rr(()=>{Yr(()=>h.in())})}}function fa(e,t,n,r,i){var a=r===1;if(re(t)){var o,s=!1;return yt(()=>{s||(o=fa(e,t({direction:a?`in`:`out`}),n,r,i))}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return sa(e,a?`introstart`:`outrostart`),i(),{abort:w,deactivate:w,reset:w,t:()=>r};let{delay:c=0,css:l,tick:u,easing:d=ua}=t;var f=[];if(a&&n===void 0&&(u&&u(0,1),l)){var p=la(l(0,1));f.push(p,p)}var m=()=>1-r,h=e.animate(f,{duration:c,fill:`forwards`});return h.onfinish=()=>{h.cancel(),sa(e,a?`introstart`:`outrostart`);var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),f=[];if(c>0){var p=!1;if(l)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*d(_/g),y=la(l(v,1-v));f.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),m=()=>{var e=h.currentTime;return o+s*d(e/c)},u&&oa(()=>{if(h.playState!==`running`)return!1;var e=m();return u(e,1-e),!0})}h=e.animate(f,{duration:c,fill:`forwards`}),h.onfinish=()=>{m=()=>r,u?.(r,1-r),i()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=w)},deactivate:()=>{i=w},reset:()=>{r===0&&u?.(1,0)},t:()=>m()}}function pa(e,t,n,r,i,a){let o=T;T&&Ye();var s=null;T&&E.nodeType===1&&(s=E,Ye());var c=T?E:e,l=new Pi(c,!1);or(()=>{let e=t()||null;var a=i?i():n||e===`svg`?f:void 0;if(e===null){l.ensure(null,null),Di(!0);return}return l.ensure(e,t=>{if(e){if(s=T?s:zn(e,a),di(s,s),r){T&&Ti(e)&&s.append(document.createComment(``));var n=T?Fn(s):s.appendChild(Pn());T&&(n===null?qe(!1):Je(n)),r(s,n)}Dr.nodes.end=s,t.before(s)}T&&Je(t)}),Di(!0),()=>{e&&Di(!1)}},ge),Zn(()=>{Di(!0)}),o&&(qe(!0),Je(c))}function ma(e,t){let n=null,r=T;var i;if(T){n=E;for(var a=Fn(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=In(a);if(a===null)qe(!1);else{var o=In(a);a.remove(),Je(o)}}T||(i=document.head.appendChild(Pn()));try{or(()=>t(i),_e|ve)}finally{r&&(qe(!0),Je(n))}}function ha(e,t){rr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=zn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function ga(e,t,n){rr(()=>{var r=Yr(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};ar(()=>{var e=n();Xr(e),i&&et(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function _a(e,t){var n=void 0,r;sr(()=>{n!==(n=t())&&(r&&=(fr(r),null),n&&(r=cr(()=>{rr(()=>n(e))})))})}function va(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=va(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ya(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=va(e))&&(r&&(r+=` `),r+=t);return r}function ba(e){return typeof e==`object`?ya(e):e??``}var xa=[...`
|
|
4
|
+
\r\f\xA0\v`];function Sa(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||xa.includes(r[o-1]))&&(s===r.length||xa.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ca(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function wa(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Ta(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(wa)),i&&c.push(...Object.keys(i).map(wa));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=wa(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ca(r)),i&&(n+=Ca(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Ea(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Sa(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Da(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Oa(e,t,n,r){var i=e.__style;if(T||i!==t){var a=Ta(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Da(e,n?.[0],r[0]),Da(e,n?.[1],r[1],`important`)):Da(e,n,r));return r}function ka(e,t,n=!1){if(e.multiple){if(t==null)return;if(!h(t))return Ge();for(var r of e.options)r.selected=t.includes(Ma(r));return}for(r of e.options)if(On(Ma(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Aa(e){var t=new MutationObserver(()=>{ka(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Zn(()=>{t.disconnect()})}function ja(e,t,n=t){var r=new WeakSet,i=!0;Kn(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Ma);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Ma(o)}n(a),e.__value=a,Pt!==null&&r.add(Pt)}),rr(()=>{var a=t();if(e===document.activeElement){var o=nt?Ft:Pt;if(r.has(o))return}if(ka(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Ma(s),n(a))}e.__value=a,i=!1}),Aa(e)}function Ma(e){return`__value`in e?e.__value:e.value}var Na=Symbol(`class`),Pa=Symbol(`style`),Fa=Symbol(`is custom element`),Ia=Symbol(`is html`),La=ke?`link`:`LINK`,Ra=ke?`input`:`INPUT`,za=ke?`option`:`OPTION`,Ba=ke?`select`:`SELECT`,Va=ke?`progress`:`PROGRESS`;function Ha(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;K(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;K(e,`checked`,null),e.checked=r}}};e.__on_r=n,yt(n),Wn()}}function Ua(e,t){var n=Ja(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Va)||(e.value=t??``)}function Wa(e,t){var n=Ja(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Ga(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function K(e,t,n,r){var i=Ja(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===La)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[De]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Xa(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ka(e,t,n,r,i=!1,a=!1){if(T&&i&&e.nodeName===Ra){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ha(o)}var s=Ja(e),c=s[Fa],l=!s[Ia];let d=T&&c;d&&qe(!1);var f=t||{},p=e.nodeName===za;for(var m in t)m in n||(n[m]=null);n.class?n.class=ba(n.class):(r||n[Na])&&(n.class=null),n[Pa]&&(n.style??=null);var h=Xa(e);for(let i in n){let o=n[i];if(p&&i===`value`&&o==null){e.value=e.__value=``,f[i]=o;continue}if(i===`class`){Ea(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Na],n[Na]),f[i]=o,f[Na]=n[Na];continue}if(i===`style`){Oa(e,o,t?.[Pa],n[Pa]),f[i]=o,f[Pa]=n[Pa];continue}var g=f[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){f[i]=o;var _=i[0]+i[1];if(_!==`$$`)if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=vi(r);if(gi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,f[n],t),f[n]=null}if(v)ii(r,e,o),ai([r]);else if(o!=null){function a(e){f[i].call(this,e)}f[n]=ti(r,e,a,t)}}else if(i===`style`)K(e,i,o);else if(i===`autofocus`)Vn(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&p)Ga(e,o);else{var y=i;l||(y=xi(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||h.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=u)):typeof o!=`function`&&K(e,y,o,a)}}}return d&&qe(!0),f}function qa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){rn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Ba,l=!1;if(sr(()=>{var u=t(...n.map(R)),d=Ka(e,r,u,a,o,s);l&&c&&`value`in u&&ka(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||fr(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&fr(i[t]),i[t]=cr(()=>_a(e,()=>f))),d[t]=f}r=d}),c){var u=e;rr(()=>{ka(u,r.value,!0),Aa(u)})}l=!0})}function Ja(e){return e.__attributes??={[Fa]:e.nodeName.includes(`-`),[Ia]:e.namespaceURI===d}}var Ya=new Map;function Xa(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ya.get(t);if(n)return n;Ya.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=S(i),r)r[o].set&&n.push(o);i=te(i)}return n}function Za(e,t,n=t){var r=new WeakSet;Kn(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=to(e)?no(a):a,n(a),Pt!==null&&r.add(Pt),await Kr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(T&&e.defaultValue!==e.value||Yr(t)==null&&e.value)&&(n(to(e)?no(e.value):e.value),Pt!==null&&r.add(Pt)),ar(()=>{var n=t();if(e===document.activeElement){var i=nt?Ft:Pt;if(r.has(i))return}to(e)&&n===no(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}var Qa=new Set;function $a(e,t,n,r,i=r){var a=n.getAttribute(`type`)===`checkbox`,o=e;let s=!1;if(t!==null)for(var c of t)o=o[c]??=[];o.push(n),Kn(n,`change`,()=>{var e=n.__value;a&&(e=eo(o,e,n.checked)),i(e)},()=>i(a?[]:null)),ar(()=>{var e=r();if(T&&n.defaultChecked!==n.checked){s=!0;return}a?(e||=[],n.checked=e.includes(n.__value)):n.checked=On(n.__value,e)}),Zn(()=>{var e=o.indexOf(n);e!==-1&&o.splice(e,1)}),Qa.has(o)||(Qa.add(o),yt(()=>{o.sort((e,t)=>e.compareDocumentPosition(t)===4?-1:1),Qa.delete(o)})),yt(()=>{if(s){var e=a?eo(o,e,n.checked):o.find(e=>e.checked)?.__value;i(e)}})}function eo(e,t,n){for(var r=new Set,i=0;i<e.length;i+=1)e[i].checked&&r.add(e[i].__value);return n||r.delete(t),Array.from(r)}function to(e){var t=e.type;return t===`number`||t===`range`}function no(e){return e===``?null:+e}var ro=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function io(e,t,n){var r=ro.observe(e,()=>n(e[t]));rr(()=>(Yr(()=>n(e[t])),r))}function ao(e,t){return e===t||e?.[Te]===t}function oo(e={},t,n,r){var i=ct.r,a=Dr;return rr(()=>{var o,s;return ar(()=>{o=s,s=r?.()||[],Yr(()=>{e!==n(...s)&&(t(e,...s),o&&ao(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ao(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function so(e=!1){let t=ct,n=t.l.u;if(!n)return;let r=()=>Xr(t.s);if(e){let e=0,n={},i=cn(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>R(i)}n.b.length&&er(()=>{co(t,r),oe(n.b)}),Qn(()=>{let e=Yr(()=>n.m.map(ae));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Qn(()=>{co(t,r),oe(n.a)})}function co(e,t){if(e.l.s)for(let t of e.l.s)R(t);t()}var lo={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function uo(e,t,n){return new Proxy({props:e,exclude:t},lo)}var fo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(re(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];re(i)&&(i=i());let a=x(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(re(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=x(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Te||t===Ee)return!1;for(let n of e.props)if(re(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(re(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function po(...e){return new Proxy({props:e},fo)}function q(e,t,n,r){var i=!rt||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Yr(r):r),s);let u;if(a){var d=Te in e||Ee in e;u=x(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=Mt(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Re(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?cn:un)(()=>(g=!1,m()));a&&R(_);var v=Dr;return(function(e,t){if(arguments.length>0){let n=t?R(_):i&&a?En(e):e;return N(_,n),g=!0,s!==void 0&&(s=n),e}return Sr&&g||v.f&16384?_.v:R(_)})}function mo(e){return new ho(e)}var ho=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=xn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return R(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===Ee?!0:(R(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return N(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?ki:Oi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!nt&&(!e?.props?.$$host||e.sync===!1)&&A(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||b(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Ni(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},go;typeof HTMLElement==`function`&&(go=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=zn(`slot`);e!==`default`&&(n.name=e),V(t,n)}}let t={},n=vo(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=_o(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=mo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=tr(()=>{ar(()=>{this.$$r=!0;for(let e of y(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=_o(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=_o(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return y(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _o(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function vo(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function J(e,t,n,r,i,a){let o=class extends go{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return y(t).map(e=>(t[e].attribute||e).toLowerCase())}};return y(t).forEach(e=>{b(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=_o(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(x(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{b(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var{entries:yo,setPrototypeOf:bo,isFrozen:xo,getPrototypeOf:So,getOwnPropertyDescriptor:Co}=Object,{freeze:wo,seal:To,create:Eo}=Object,{apply:Do,construct:Oo}=typeof Reflect<`u`&&Reflect;wo||=function(e){return e},To||=function(e){return e},Do||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Oo||=function(e){return new e(...[...arguments].slice(1))};var ko=Uo(Array.prototype.forEach),Ao=Uo(Array.prototype.lastIndexOf),jo=Uo(Array.prototype.pop),Mo=Uo(Array.prototype.push),No=Uo(Array.prototype.splice),Po=Uo(String.prototype.toLowerCase),Fo=Uo(String.prototype.toString),Io=Uo(String.prototype.match),Lo=Uo(String.prototype.replace),Ro=Uo(String.prototype.indexOf),zo=Uo(String.prototype.trim),Bo=Uo(Object.prototype.hasOwnProperty),Vo=Uo(RegExp.prototype.test),Ho=Wo(TypeError);function Uo(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Do(e,t,n)}}function Wo(e){return function(){return Oo(e,[...arguments])}}function Go(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Po;bo&&bo(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(xo(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ko(e){for(let t=0;t<e.length;t++)Bo(e,t)||(e[t]=null);return e}function qo(e){let t=Eo(null);for(let[n,r]of yo(e))Bo(e,n)&&(Array.isArray(r)?t[n]=Ko(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=qo(r):t[n]=r);return t}function Jo(e,t){for(;e!==null;){let n=Co(e,t);if(n){if(n.get)return Uo(n.get);if(typeof n.value==`function`)return Uo(n.value)}e=So(e)}function n(){return null}return n}var Yo=wo(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Xo=wo(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Zo=wo([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Qo=wo([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),$o=wo(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),es=wo([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ts=wo([`#text`]),ns=wo(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),rs=wo(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),is=wo(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),as=wo([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),os=To(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ss=To(/<%[\w\W]*|[\w\W]*%>/gm),cs=To(/\$\{[\w\W]*/gm),ls=To(/^data-[\-\w.\u00B7-\uFFFF]+$/),us=To(/^aria-[\-\w]+$/),ds=To(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fs=To(/^(?:\w+script|data):/i),ps=To(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ms=To(/^html$/i),hs=To(/^[a-z][.\w]*(-[.\w]+)+$/i),gs=Object.freeze({__proto__:null,ARIA_ATTR:us,ATTR_WHITESPACE:ps,CUSTOM_ELEMENT:hs,DATA_ATTR:ls,DOCTYPE_NAME:ms,ERB_EXPR:ss,IS_ALLOWED_URI:ds,IS_SCRIPT_OR_DATA:fs,MUSTACHE_EXPR:os,TMPLIT_EXPR:cs}),_s={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},vs=function(){return typeof window>`u`?null:window},ys=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},bs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vs(),t=e=>xs(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==_s.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=Jo(m,`cloneNode`),g=Jo(m,`remove`),_=Jo(m,`nextSibling`),v=Jo(m,`childNodes`),y=Jo(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:ee,getElementsByTagName:te}=n,{importNode:ne}=r,re=bs();t.isSupported=typeof yo==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:w,ERB_EXPR:ie,TMPLIT_EXPR:ae,DATA_ATTR:oe,ARIA_ATTR:se,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:ue}=gs,{IS_ALLOWED_URI:de}=gs,fe=null,pe=Go({},[...Yo,...Xo,...Zo,...$o,...ts]),me=null,he=Go({},[...ns,...rs,...is,...as]),ge=Object.seal(Eo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,ve=null,ye=Object.seal(Eo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),be=!0,xe=!0,Se=!1,Ce=!0,we=!1,Te=!0,Ee=!1,De=!1,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!0,Ne=!1,Pe=!0,Fe=!1,Ie={},Le=null,Re=Go({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),ze=null,Be=Go({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ve=null,He=Go({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ue=`http://www.w3.org/1998/Math/MathML`,We=`http://www.w3.org/2000/svg`,Ge=`http://www.w3.org/1999/xhtml`,Ke=Ge,T=!1,qe=null,E=Go({},[Ue,We,Ge],Fo),Je=Go({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ye=Go({},[`annotation-xml`]),D=Go({},[`title`,`style`,`font`,`a`,`script`]),Xe=null,Ze=[`application/xhtml+xml`,`text/html`],Qe=null,$e=null,et=n.createElement(`form`),tt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($e&&$e===e)){if((!e||typeof e!=`object`)&&(e={}),e=qo(e),Xe=Ze.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Qe=Xe===`application/xhtml+xml`?Fo:Po,fe=Bo(e,`ALLOWED_TAGS`)?Go({},e.ALLOWED_TAGS,Qe):pe,me=Bo(e,`ALLOWED_ATTR`)?Go({},e.ALLOWED_ATTR,Qe):he,qe=Bo(e,`ALLOWED_NAMESPACES`)?Go({},e.ALLOWED_NAMESPACES,Fo):E,Ve=Bo(e,`ADD_URI_SAFE_ATTR`)?Go(qo(He),e.ADD_URI_SAFE_ATTR,Qe):He,ze=Bo(e,`ADD_DATA_URI_TAGS`)?Go(qo(Be),e.ADD_DATA_URI_TAGS,Qe):Be,Le=Bo(e,`FORBID_CONTENTS`)?Go({},e.FORBID_CONTENTS,Qe):Re,_e=Bo(e,`FORBID_TAGS`)?Go({},e.FORBID_TAGS,Qe):qo({}),ve=Bo(e,`FORBID_ATTR`)?Go({},e.FORBID_ATTR,Qe):qo({}),Ie=Bo(e,`USE_PROFILES`)?e.USE_PROFILES:!1,be=e.ALLOW_ARIA_ATTR!==!1,xe=e.ALLOW_DATA_ATTR!==!1,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=e.SAFE_FOR_TEMPLATES||!1,Te=e.SAFE_FOR_XML!==!1,Ee=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=e.SANITIZE_DOM!==!1,Ne=e.SANITIZE_NAMED_PROPS||!1,Pe=e.KEEP_CONTENT!==!1,Fe=e.IN_PLACE||!1,de=e.ALLOWED_URI_REGEXP||ds,Ke=e.NAMESPACE||Ge,Je=e.MATHML_TEXT_INTEGRATION_POINTS||Je,Ye=e.HTML_INTEGRATION_POINTS||Ye,ge=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ge.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ge.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(ge.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(xe=!1),Ae&&(ke=!0),Ie&&(fe=Go({},ts),me=Eo(null),Ie.html===!0&&(Go(fe,Yo),Go(me,ns)),Ie.svg===!0&&(Go(fe,Xo),Go(me,rs),Go(me,as)),Ie.svgFilters===!0&&(Go(fe,Zo),Go(me,rs),Go(me,as)),Ie.mathMl===!0&&(Go(fe,$o),Go(me,is),Go(me,as))),Bo(e,`ADD_TAGS`)||(ye.tagCheck=null),Bo(e,`ADD_ATTR`)||(ye.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?ye.tagCheck=e.ADD_TAGS:(fe===pe&&(fe=qo(fe)),Go(fe,e.ADD_TAGS,Qe))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?ye.attributeCheck=e.ADD_ATTR:(me===he&&(me=qo(me)),Go(me,e.ADD_ATTR,Qe))),e.ADD_URI_SAFE_ATTR&&Go(Ve,e.ADD_URI_SAFE_ATTR,Qe),e.FORBID_CONTENTS&&(Le===Re&&(Le=qo(Le)),Go(Le,e.FORBID_CONTENTS,Qe)),e.ADD_FORBID_CONTENTS&&(Le===Re&&(Le=qo(Le)),Go(Le,e.ADD_FORBID_CONTENTS,Qe)),Pe&&(fe[`#text`]=!0),Ee&&Go(fe,[`html`,`head`,`body`]),fe.table&&(Go(fe,[`tbody`]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ho(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=ys(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));wo&&wo(e),$e=e}},rt=Go({},[...Xo,...Zo,...Qo]),it=Go({},[...$o,...es]),at=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ke,tagName:`template`});let n=Po(e.tagName),r=Po(t.tagName);return qe[e.namespaceURI]?e.namespaceURI===We?t.namespaceURI===Ge?n===`svg`:t.namespaceURI===Ue?n===`svg`&&(r===`annotation-xml`||Je[r]):!!rt[n]:e.namespaceURI===Ue?t.namespaceURI===Ge?n===`math`:t.namespaceURI===We?n===`math`&&Ye[r]:!!it[n]:e.namespaceURI===Ge?t.namespaceURI===We&&!Ye[r]||t.namespaceURI===Ue&&!Je[r]?!1:!it[n]&&(D[n]||!rt[n]):!!(Xe===`application/xhtml+xml`&&qe[e.namespaceURI]):!1},ot=function(e){Mo(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},st=function(e,n){try{Mo(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Mo(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ke||Ae)try{ot(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ct=function(e){let t=null,r=null;if(Oe)e=`<remove></remove>`+e;else{let t=Io(e,/^[\r\n\t ]+/);r=t&&t[0]}Xe===`application/xhtml+xml`&&Ke===Ge&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ke===Ge)try{t=new f().parseFromString(i,Xe)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ke,`template`,null);try{t.documentElement.innerHTML=T?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ke===Ge?te.call(t,Ee?`html`:`body`)[0]:Ee?t.documentElement:a},lt=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ut=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},dt=function(e){return typeof s==`function`&&e instanceof s};function ft(e,n,r){ko(e,e=>{e.call(t,n,r,$e)})}let pt=function(e){let n=null;if(ft(re.beforeSanitizeElements,e,null),ut(e))return ot(e),!0;let r=Qe(e.nodeName);if(ft(re.uponSanitizeElement,e,{tagName:r,allowedTags:fe}),Te&&e.hasChildNodes()&&!dt(e.firstElementChild)&&Vo(/<[/\w!]/g,e.innerHTML)&&Vo(/<[/\w!]/g,e.textContent)||e.nodeType===_s.progressingInstruction||Te&&e.nodeType===_s.comment&&Vo(/<[/\w]/g,e.data))return ot(e),!0;if(!(ye.tagCheck instanceof Function&&ye.tagCheck(r))&&(!fe[r]||_e[r])){if(!_e[r]&&k(r)&&(ge.tagNameCheck instanceof RegExp&&Vo(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r)))return!1;if(Pe&&!Le[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return ot(e),!0}return e instanceof c&&!at(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Vo(/<\/no(script|embed|frames)/i,e.innerHTML)?(ot(e),!0):(we&&e.nodeType===_s.text&&(n=e.textContent,ko([w,ie,ae],e=>{n=Lo(n,e,` `)}),e.textContent!==n&&(Mo(t.removed,{element:e.cloneNode()}),e.textContent=n)),ft(re.afterSanitizeElements,e,null),!1)},O=function(e,t,r){if(ve[t]||Me&&(t===`id`||t===`name`)&&(r in n||r in et))return!1;if(!(xe&&!ve[t]&&Vo(oe,t))&&!(be&&Vo(se,t))&&!(ye.attributeCheck instanceof Function&&ye.attributeCheck(t,e))){if(!me[t]||ve[t]){if(!(k(e)&&(ge.tagNameCheck instanceof RegExp&&Vo(ge.tagNameCheck,e)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(e))&&(ge.attributeNameCheck instanceof RegExp&&Vo(ge.attributeNameCheck,t)||ge.attributeNameCheck instanceof Function&&ge.attributeNameCheck(t,e))||t===`is`&&ge.allowCustomizedBuiltInElements&&(ge.tagNameCheck instanceof RegExp&&Vo(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r))))return!1}else if(!Ve[t]&&!Vo(de,Lo(r,le,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ro(r,`data:`)===0&&ze[e])&&!(Se&&!Vo(ce,Lo(r,le,``)))&&r)return!1}return!0},k=function(e){return e!==`annotation-xml`&&Io(e,ue)},mt=function(e){ft(re.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||ut(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Qe(a),l=s,u=a===`value`?l:zo(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,ft(re.uponSanitizeAttribute,e,r),u=r.attrValue,Ne&&(c===`id`||c===`name`)&&(st(a,e),u=`user-content-`+u),Te&&Vo(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){st(a,e);continue}if(c===`attributename`&&Io(u,`href`)){st(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){st(a,e);continue}if(!Ce&&Vo(/\/>/i,u)){st(a,e);continue}we&&ko([w,ie,ae],e=>{u=Lo(u,e,` `)});let d=Qe(e.nodeName);if(!O(d,c,u)){st(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),ut(e)?ot(e):jo(t.removed)}catch{st(a,e)}}ft(re.afterSanitizeAttributes,e,null)},ht=function e(t){let n=null,r=lt(t);for(ft(re.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ft(re.uponSanitizeShadowNode,n,null),pt(n),mt(n),n.content instanceof a&&e(n.content);ft(re.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(T=!e,T&&(e=`<!-->`),typeof e!=`string`&&!dt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Ho(`dirty is not a string, aborting`)}else throw Ho(`toString is not a function`);if(!t.isSupported)return e;if(De||nt(n),t.removed=[],typeof e==`string`&&(Fe=!1),Fe){if(e.nodeName){let t=Qe(e.nodeName);if(!fe[t]||_e[t])throw Ho(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=ct(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===_s.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!ke&&!we&&!Ee&&e.indexOf(`<`)===-1)return b&&je?b.createHTML(e):e;if(i=ct(e),!i)return ke?null:je?x:``}i&&Oe&&ot(i.firstChild);let u=lt(Fe?e:i);for(;c=u.nextNode();)pt(c),mt(c),c.content instanceof a&&ht(c.content);if(Fe)return e;if(ke){if(Ae)for(l=ee.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(me.shadowroot||me.shadowrootmode)&&(l=ne.call(r,l,!0)),l}let d=Ee?i.outerHTML:i.innerHTML;return Ee&&fe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Vo(ms,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
5
|
+
`+d),we&&ko([w,ie,ae],e=>{d=Lo(d,e,` `)}),b&&je?b.createHTML(d):d},t.setConfig=function(){nt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),De=!0},t.clearConfig=function(){$e=null,De=!1},t.isValidAttribute=function(e,t,n){return $e||nt({}),O(Qe(e),Qe(t),n)},t.addHook=function(e,t){typeof t==`function`&&Mo(re[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Ao(re[e],t);return n===-1?void 0:No(re[e],n,1)[0]}return jo(re[e])},t.removeHooks=function(e){re[e]=[]},t.removeAllHooks=function(){re=bs()},t}var Ss=xs();function Cs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ws=Cs();function Ts(e){ws=e}var Es={exec:()=>null};function Ds(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Os.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Os={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},ks=/^(?:[ \t]*(?:\n|$))+/,As=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,js=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ms=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ns=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ps=/(?:[*+-]|\d{1,9}[.)])/,Fs=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Is=Ds(Fs).replace(/bull/g,Ps).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Ls=Ds(Fs).replace(/bull/g,Ps).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Rs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zs=/^[^\n]+/,Bs=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Vs=Ds(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Bs).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Hs=Ds(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ps).getRegex(),Us=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Ws=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Gs=Ds(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Ws).replace(`tag`,Us).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ks=Ds(Rs).replace(`hr`,Ms).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Us).getRegex(),qs={blockquote:Ds(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Ks).getRegex(),code:As,def:Vs,fences:js,heading:Ns,hr:Ms,html:Gs,lheading:Is,list:Hs,newline:ks,paragraph:Ks,table:Es,text:zs},Js=Ds(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ms).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Us).getRegex(),Ys={...qs,lheading:Ls,table:Js,paragraph:Ds(Rs).replace(`hr`,Ms).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Js).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Us).getRegex()},Xs={...qs,html:Ds(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Ws).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Es,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ds(Rs).replace(`hr`,Ms).replace(`heading`,` *#{1,6} *[^
|
|
6
6
|
]`).replace(`lheading`,Is).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Zs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Qs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,$s=/^( {2,}|\\)\n(?!\s*$)/,ec=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tc=/[\p{P}\p{S}]/u,nc=/[\s\p{P}\p{S}]/u,rc=/[^\s\p{P}\p{S}]/u,ic=Ds(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,nc).getRegex(),ac=/(?!~)[\p{P}\p{S}]/u,oc=/(?!~)[\s\p{P}\p{S}]/u,sc=/(?:[^\s\p{P}\p{S}]|~)/u,cc=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,lc=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,uc=Ds(lc,`u`).replace(/punct/g,tc).getRegex(),dc=Ds(lc,`u`).replace(/punct/g,ac).getRegex(),fc=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,pc=Ds(fc,`gu`).replace(/notPunctSpace/g,rc).replace(/punctSpace/g,nc).replace(/punct/g,tc).getRegex(),mc=Ds(fc,`gu`).replace(/notPunctSpace/g,sc).replace(/punctSpace/g,oc).replace(/punct/g,ac).getRegex(),hc=Ds(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,rc).replace(/punctSpace/g,nc).replace(/punct/g,tc).getRegex(),gc=Ds(/\\(punct)/,`gu`).replace(/punct/g,tc).getRegex(),_c=Ds(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),vc=Ds(Ws).replace(`(?:-->|$)`,`-->`).getRegex(),yc=Ds(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,vc).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bc=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xc=Ds(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,bc).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Sc=Ds(/^!?\[(label)\]\[(ref)\]/).replace(`label`,bc).replace(`ref`,Bs).getRegex(),Cc=Ds(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Bs).getRegex(),wc={_backpedal:Es,anyPunctuation:gc,autolink:_c,blockSkip:cc,br:$s,code:Qs,del:Es,emStrongLDelim:uc,emStrongRDelimAst:pc,emStrongRDelimUnd:hc,escape:Zs,link:xc,nolink:Cc,punctuation:ic,reflink:Sc,reflinkSearch:Ds(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Sc).replace(`nolink`,Cc).getRegex(),tag:yc,text:ec,url:Es},Tc={...wc,link:Ds(/^!?\[(label)\]\((.*?)\)/).replace(`label`,bc).getRegex(),reflink:Ds(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,bc).getRegex()},Ec={...wc,emStrongRDelimAst:mc,emStrongLDelim:dc,url:Ds(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,`i`).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Dc={...Ec,br:Ds($s).replace(`{2,}`,`*`).getRegex(),text:Ds(Ec.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Oc={normal:qs,gfm:Ys,pedantic:Xs},kc={normal:wc,gfm:Ec,breaks:Dc,pedantic:Tc},Ac={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},jc=e=>Ac[e];function Mc(e,t){if(t){if(Os.escapeTest.test(e))return e.replace(Os.escapeReplace,jc)}else if(Os.escapeTestNoEncode.test(e))return e.replace(Os.escapeReplaceNoEncode,jc);return e}function Nc(e){try{e=encodeURI(e).replace(Os.percentDecode,`%`)}catch{return null}return e}function Pc(e,t){let n=e.replace(Os.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Os.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Os.slashPipe,`|`);return n}function Fc(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Ic(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Lc(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Rc(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
7
7
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
8
8
|
`)}var zc=class{options;rules;lexer;constructor(e){this.options=e||ws}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Fc(e,`
|
|
@@ -57,7 +57,7 @@ ${e}</tr>
|
|
|
57
57
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
58
58
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Mc(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Nc(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Mc(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Nc(e);if(i===null)return Mc(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${Mc(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Mc(e.text)}},Hc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},Uc=class e{options;renderer;textRenderer;constructor(e){this.options=e||ws,this.options.renderer=this.options.renderer||new Vc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hc}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
|
|
59
59
|
`+this.renderer.text(i);t?n+=this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):n+=o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Wc=class{options;block;constructor(e){this.options=e||ws}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Bc.lex:Bc.lexInline}provideParser(){return this.block?Uc.parse:Uc.parseInline}},Gc=class{defaults=Cs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Uc;Renderer=Vc;TextRenderer=Hc;Lexer=Bc;Tokenizer=zc;Hooks=Wc;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Vc(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new zc(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Wc;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Wc.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then(e=>a.call(t,e));let n=i.call(t,e);return a.call(t,n)}:t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Bc.lex(e,t??this.defaults)}parser(e,t){return Uc.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(t==null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));i.hooks&&(i.hooks.options=i,i.hooks.block=e);let o=i.hooks?i.hooks.provideLexer():e?Bc.lex:Bc.lexInline,s=i.hooks?i.hooks.provideParser():e?Uc.parse:Uc.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then(e=>o(e,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>s(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=o(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=s(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
60
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Mc(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Kc=new Gc;function qc(e,t){return Kc.parse(e,t)}qc.options=qc.setOptions=function(e){return Kc.setOptions(e),qc.defaults=Kc.defaults,Ts(qc.defaults),qc},qc.getDefaults=Cs,qc.defaults=ws,qc.use=function(...e){return Kc.use(...e),qc.defaults=Kc.defaults,Ts(qc.defaults),qc},qc.walkTokens=function(e,t){return Kc.walkTokens(e,t)},qc.parseInline=Kc.parseInline,qc.Parser=Uc,qc.parser=Uc.parse,qc.Renderer=Vc,qc.TextRenderer=Hc,qc.Lexer=Bc,qc.lexer=Bc.lex,qc.Tokenizer=zc,qc.Hooks=Wc,qc.parse=qc,qc.options,qc.setOptions,qc.use,qc.walkTokens,qc.parseInline,Uc.parse,Bc.lex;var Jc=e=>(Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n&&typeof n==`object`&&Jc(n)}),Object.freeze(e)),Yc=Jc({all:[],used:[],unused:[]}),Xc=(e,t)=>{let n=Ss(e);return n.addHook(`uponSanitizeElement`,function(e,t){let n=t.tagName||e.nodeName.toLowerCase();n.startsWith(`liipgpt-`)&&(t.allowedTags[n]=!0)}),n.addHook(`afterSanitizeAttributes`,function(e){if(e.tagName!==`A`||!e.getAttribute(`href`)?.startsWith(`http`)||(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`),!t||e.querySelector(`.sr-only`)))return;let n=e.ownerDocument.createElement(`span`);n.className=`sr-only`,n.textContent=` ${t}`,e.appendChild(n)}),n},Zc=class{marked;currentReferences=Yc;lastUsedIndex=0;DomPurity;constructor(e={}){this.marked=new Gc({async:!1,breaks:!0}).use(this.createFootnoteExtension(),...e.extensions??[]),this.DomPurity=Xc(e.window,e.newTabSrText)}createFootnoteExtension=()=>{let e=this;return{extensions:[{name:`footnote`,level:`inline`,start(e){return e.match(/\[\^(\d+(?:\.\d+)?)\]/)?.index},tokenizer(e){let t=/^\[\^(\d+(?:\.\d+)?)\]/.exec(e);if(t){let[e,n]=t;return{type:`footnote`,raw:e,refNumber:n}}},renderer(t){if(t.type===`footnote`){let n=e.currentReferences.all,r=n.some(e=>e.citationId!==void 0)?n.findIndex(e=>e.citationId===t.refNumber):/^\d+$/.test(t.refNumber)?Number(t.refNumber)-1:-1,i=e.currentReferences.all[r];if(!i)return console.error(`Could not find ref for citation:`,t.refNumber),``;let a;return i?.referenceIndex.used?a=i.referenceIndex.used:(e.currentReferences.used.push(i),e.lastUsedIndex++,a=e.lastUsedIndex,i.referenceIndex.used=a),` <liipgpt-reference-number data-all-index="${r}" data-used-index="${a}" data-source="${JSON.stringify(i).replace(/"/g,`"`)}"></liipgpt-reference-number>`}}}]}};parse(e){return this.DomPurity.sanitize(this.marked.parse(e),{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0,mathMl:!0},FORBID_TAGS:[`hr`],ADD_ATTR:[`target`]})}toHTML(e,t){this.currentReferences=t;let n=this.parse(e);return this.currentReferences=Yc,n}};function Qc(){let e,t;return{promise:new Promise((n,r)=>{t=n,e=r}),reject:e,resolve:t}}var $c=class{promise;resolve;reject;constructor(){let{promise:e,resolve:t,reject:n}=Qc();this.promise=e,this.resolve=t,this.reject=n}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}toPromise(){return this.promise}[Symbol.toStringTag]=`Flag`},el=class{hasValue=new $c;currentValue;setValue(e){this.currentValue=e,this.hasValue.resolve()}cleanup(e){this.hasValue.reject(e)}getCurrentValue(){return this.currentValue}async toPromise(){return await this.hasValue,this.currentValue}then(e,t){return this.toPromise().then(e,t)}catch(e){return this.toPromise().catch(e)}finally(e){return this.toPromise().finally(e)}[Symbol.toStringTag]=`FutureValue`},tl=e=>{try{return new URL(e).hostname}catch{return e}};function nl(e){return e.replace(/<[^>]*>/g,``).replace(/ /g,` `).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var rl=({citationId:e,url:t,considered:n,title:r,description:i,summary:a})=>{let o=tl(t),s=i||a;return{...e?{citationId:e}:{},url:t,considered:n,referenceIndex:{},score:0,metadata:{},display:{card:{title:r,description:s,badge:t},listItem:{title:r,badge:o}}}},il=class{store;content=new el;backendSendsMappedRefs=!1;constructor(e){this.options=e,this.store=At({id:e.id,state:`loading`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:``,html:``,text:``},references:{all:[],used:[],unused:[]},retrievalQuestion:e.userQuestion})}pushError(e){this.options.onError?.(e),this.store.update(t=>({...t,errors:[...t.errors,e]}))}updateRequestId(e){this.store.update(t=>({...t,id:e}))}updateText(e){this.store.update(t=>{let n=t.message.markdown+e,r=this.options.markdownRenderer.toHTML(n,t.references);return{...t,state:`streaming`,message:{markdown:n,html:r,text:``}}})}finishMessage(){this.store.update(e=>{let t={...e,state:`done`};return t.references.unused=t.references.all.filter(e=>e.referenceIndex.used===void 0),t.message.text=nl(t.message.html),this.options?.onFinish?.(t),this.content.setValue(t),t})}addReference(e){this.store.update(t=>{let n=t.references.all,r=n.length,i=[...n,{...e,referenceIndex:{all:r}}];return{...t,references:{used:t.references.used,all:i}}})}addMappedReference(e){this.backendSendsMappedRefs=!0,this.addReference(e)}addOldReference(e){this.backendSendsMappedRefs||this.addReference(rl(e))}updateRetrievalQuestion(e){this.store.update(t=>({...t,retrievalQuestion:e}))}setNoFeedback(){this.store.update(e=>({...e,noFeedback:!0}))}getReadableStore(){return{subscribe:this.store.subscribe}}getPromise(){return this.content.toPromise()}},al=[{type:`email`,check:e=>/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/.test(e)},{type:`creditCard`,check:e=>/\b(?:\d[ -]*?){13,16}\b/.test(e)},{type:`ahv`,check:e=>/\b756\.\d{4}\.\d{4}\.\d{2}\b/.test(e)},{type:`phoneSwiss`,check:e=>/\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/.test(e)},{type:`phoneInternational`,check:e=>/(?:\+|00)(?:\s*\d){10,}\b/.test(e)},{type:`swissPassport`,check:e=>/\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/.test(e)},{type:`longNumber`,check:e=>/\b\d{9,}\b/.test(e)}],ol=e=>{for(let t of al)if(t.check(e))return t.type};Object.freeze({status:`aborted`});function sl(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var cl=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ll={};function ul(e){return e&&Object.assign(ll,e),ll}function dl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function fl(e,t){return typeof t==`bigint`?t.toString():t}function pl(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ml(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var hl=Symbol(`evaluating`);function gl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==hl)return r===void 0&&(r=hl,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function _l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function vl(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}var yl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function bl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function xl(e){if(bl(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(bl(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Sl(e){return xl(e)?{...e}:Array.isArray(e)?[...e]:e}var Cl=new Set([`string`,`number`,`symbol`]);function wl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Tl(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function El(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Dl(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Ol={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function kl(e,t){if(!xl(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Tl(e,vl(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return _l(this,`shape`,n),n}}))}function Al(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Tl(t,vl(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return _l(this,`shape`,i),i},checks:[]}))}function jl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ml(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Nl(e){return typeof e==`string`?e:e?.message}function Pl(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Nl(e.inst?._zod.def?.error?.(e))??Nl(t?.error?.(e))??Nl(n.customError?.(e))??Nl(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}var Fl=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,fl,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Il=sl(`$ZodError`,Fl),Ll=sl(`$ZodError`,Fl,{Parent:Error}),Rl=(e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new cl;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Pl(e,a,ul())));throw yl(t,i?.callee),t}return o.value})(Ll),zl=(e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Pl(e,a,ul())));throw yl(t,i?.callee),t}return o.value})(Ll),Bl=(e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new cl;return a.issues.length?{success:!1,error:new(e??Il)(a.issues.map(e=>Pl(e,i,ul())))}:{success:!0,data:a.value}})(Ll),Vl=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Pl(e,i,ul())))}:{success:!0,data:a.value}})(Ll),Hl=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;`${Hl}`;function Ul(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wl(e){let t=Ul({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Hl}T(?:${r})$`)}var Gl=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Kl=/^-?\d+$/,ql=/^-?\d+(?:\.\d+)?$/,Jl=/^(?:true|false)$/i,Yl=sl(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xl=sl(`$ZodCheckNumberFormat`,(e,t)=>{Yl.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ol[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Kl)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Zl=sl(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Yl.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ql={major:4,minor:3,patch:6},$l=sl(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ql;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=jl(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new cl;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=jl(e,t))});else{if(e.issues.length===t)continue;r||=jl(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(jl(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new cl;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new cl;return o.then(e=>t(e,r,a))}return t(o,r,a)}}gl(e,`~standard`,()=>({validate:t=>{try{let n=Bl(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Vl(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),eu=sl(`$ZodString`,(e,t)=>{$l.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gl(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),tu=sl(`$ZodStringFormat`,(e,t)=>{Zl.init(e,t),eu.init(e,t)}),nu=sl(`$ZodURL`,(e,t)=>{tu.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ru=sl(`$ZodISODateTime`,(e,t)=>{t.pattern??=Wl(t),tu.init(e,t)}),iu=sl(`$ZodNumber`,(e,t)=>{$l.init(e,t),e._zod.pattern=e._zod.bag.pattern??ql,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),au=sl(`$ZodNumberFormat`,(e,t)=>{Xl.init(e,t),iu.init(e,t)}),ou=sl(`$ZodBoolean`,(e,t)=>{$l.init(e,t),e._zod.pattern=Jl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),su=sl(`$ZodUnknown`,(e,t)=>{$l.init(e,t),e._zod.parse=e=>e});function cu(e,t,n){e.issues.length&&t.issues.push(...Ml(n,e.issues)),t.value[n]=e.value}var lu=sl(`$ZodArray`,(e,t)=>{$l.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>cu(t,n,e))):cu(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function uu(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Ml(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function du(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Dl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fu(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>uu(e,n,i,t,u))):uu(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var pu=sl(`$ZodObject`,(e,t)=>{if($l.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=pl(()=>du(t));gl(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=bl,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>uu(n,t,e,s,r))):uu(i,t,e,s,r)}return i?fu(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}});function mu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!jl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Pl(e,r,ul())))}),t)}var hu=sl(`$ZodUnion`,(e,t)=>{$l.init(e,t),gl(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),gl(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),gl(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),gl(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ml(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>mu(t,i,e,a)):mu(s,i,e,a)}}),gu=sl(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,hu.init(e,t);let n=e._zod.parse;gl(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=pl(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!bl(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),_u=sl(`$ZodIntersection`,(e,t)=>{$l.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>yu(e,t,n)):yu(e,i,a)}});function vu(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xl(e)&&xl(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=vu(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=vu(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function yu(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),jl(e))return e;let o=vu(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var bu=sl(`$ZodRecord`,(e,t)=>{$l.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!xl(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...Ml(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...Ml(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&ql.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Pl(e,r,ul())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Ml(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Ml(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),xu=sl(`$ZodEnum`,(e,t)=>{$l.init(e,t);let n=dl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Cl.has(typeof e)).map(e=>typeof e==`string`?wl(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Su=sl(`$ZodLiteral`,(e,t)=>{if($l.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?wl(e):e?wl(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}});function Cu(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var wu=sl(`$ZodOptional`,(e,t)=>{$l.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,gl(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),gl(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ml(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Cu(t,e.value)):Cu(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Tu=sl(`$ZodNullable`,(e,t)=>{$l.init(e,t),gl(e._zod,`optin`,()=>t.innerType._zod.optin),gl(e._zod,`optout`,()=>t.innerType._zod.optout),gl(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ml(e.source)}|null)$`):void 0}),gl(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Eu=sl(`$ZodDefault`,(e,t)=>{$l.init(e,t),e._zod.optin=`optional`,gl(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Du(e,t)):Du(r,t)}});function Du(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ou,ku=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Au(){return new ku}(Ou=globalThis).__zod_globalRegistry??(Ou.__zod_globalRegistry=Au()),globalThis.__zod_globalRegistry;function ju(e,t){return new e({type:`string`,...El(t)})}function Mu(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...El(t)})}function Nu(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...El(t)})}function Pu(e,t){return new e({type:`number`,checks:[],...El(t)})}function Fu(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...El(t)})}function Iu(e,t){return new e({type:`boolean`,...El(t)})}function Lu(e){return new e({type:`unknown`})}var Ru=sl(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);$l.init(e,t),e.def=t,e.type=t.type,e.parse=(t,n)=>Rl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Bl(e,t,n),e.parseAsync=async(t,n)=>zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Vl(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]},{parent:!0}),e.with=e.check,e.clone=(t,n)=>Tl(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.apply=t=>t(e)}),zu=sl(`ZodMiniString`,(e,t)=>{eu.init(e,t),Ru.init(e,t)});function Y(e){return ju(zu,e)}var Bu=sl(`ZodMiniStringFormat`,(e,t)=>{tu.init(e,t),zu.init(e,t)}),Vu=sl(`ZodMiniURL`,(e,t)=>{nu.init(e,t),Bu.init(e,t)});function Hu(e){return Mu(Vu,e)}var Uu=sl(`ZodMiniNumber`,(e,t)=>{iu.init(e,t),Ru.init(e,t)});function Wu(e){return Pu(Uu,e)}var Gu=sl(`ZodMiniNumberFormat`,(e,t)=>{au.init(e,t),Uu.init(e,t)});function Ku(e){return Fu(Gu,e)}var qu=sl(`ZodMiniBoolean`,(e,t)=>{ou.init(e,t),Ru.init(e,t)});function Ju(e){return Iu(qu,e)}var Yu=sl(`ZodMiniUnknown`,(e,t)=>{su.init(e,t),Ru.init(e,t)});function Xu(){return Lu(Yu)}var Zu=sl(`ZodMiniArray`,(e,t)=>{lu.init(e,t),Ru.init(e,t)});function Qu(e,t){return new Zu({type:`array`,element:e,...El(t)})}var $u=sl(`ZodMiniObject`,(e,t)=>{pu.init(e,t),Ru.init(e,t),gl(e,`shape`,()=>t.shape)});function ed(e,t){return new $u({type:`object`,shape:e??{},...El(t)})}function td(e,t){return kl(e,t)}function nd(e,t){return Al(gd,e,t)}var rd=sl(`ZodMiniUnion`,(e,t)=>{hu.init(e,t),Ru.init(e,t)});function id(e,t){return new rd({type:`union`,options:e,...El(t)})}var ad=sl(`ZodMiniDiscriminatedUnion`,(e,t)=>{gu.init(e,t),Ru.init(e,t)});function od(e,t,n){return new ad({type:`union`,options:t,discriminator:e,...El(n)})}var sd=sl(`ZodMiniIntersection`,(e,t)=>{_u.init(e,t),Ru.init(e,t)});function cd(e,t){return new sd({type:`intersection`,left:e,right:t})}var ld=sl(`ZodMiniRecord`,(e,t)=>{bu.init(e,t),Ru.init(e,t)});function ud(e,t,n){return new ld({type:`record`,keyType:e,valueType:t,...El(n)})}function dd(e,t,n){let r=Tl(e);return r._zod.values=void 0,new ld({type:`record`,keyType:r,valueType:t,...El(n)})}var fd=sl(`ZodMiniEnum`,(e,t)=>{xu.init(e,t),Ru.init(e,t),e.options=Object.values(t.entries)});function pd(e,t){return new fd({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...El(t)})}var md=sl(`ZodMiniLiteral`,(e,t)=>{Su.init(e,t),Ru.init(e,t)});function hd(e,t){return new md({type:`literal`,values:Array.isArray(e)?e:[e],...El(t)})}var gd=sl(`ZodMiniOptional`,(e,t)=>{wu.init(e,t),Ru.init(e,t)});function X(e){return new gd({type:`optional`,innerType:e})}var _d=sl(`ZodMiniNullable`,(e,t)=>{Tu.init(e,t),Ru.init(e,t)});function vd(e){return new _d({type:`nullable`,innerType:e})}var yd=sl(`ZodMiniDefault`,(e,t)=>{Eu.init(e,t),Ru.init(e,t)});function bd(e,t){return new yd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Sl(t)}})}var xd=sl(`ZodMiniISODateTime`,(e,t)=>{ru.init(e,t),Bu.init(e,t)});function Sd(e){return Nu(xd,e)}var Cd=[`en`,`de`,`fr`,`it`],wd=ed({name:Y(),namePlural:X(Y()),intro:X(Y()),placeholder:Y(),values:ud(Y(),Y())}),Td=ed({introductionTitle:Y(),introductionDisclaimer:X(Y()),termsInvitationToConsent:X(Y()),chatInputPlaceholder:Y(),chatInputPlaceholderListening:X(Y()),chatInputSubmit:Y(),chatInputAbort:Y(),chatInputStartListening:Y(),chatInputStopListening:Y(),referenceLink:Y(),referencesDisplay:Y(),referencesHide:Y(),referencesTitle:Y(),referencesFurtherTitle:Y(),newChat:Y(),maintenanceModeError:Y(),messageBotLoading:Y(),messageBotError:Y(),messageBotDefaultError:Y(),noResultsFound:Y(),chatFooterText:X(Y()),scrollToBottom:Y(),openButtonTitle:X(Y()),openButtonDescription:X(Y()),openMenu:Y(),openInfo:Y(),aboutThisChat:X(Y()),closeMenu:Y(),closeChat:Y(),close:Y(),send:Y(),thankYouForFeedback:Y(),answerFormThankYou:Y(),giveFeedback:Y(),sendFeedback:Y(),feedbackFormTitle:Y(),feedbackFormMessage:Y(),feedbackFormMessagePlaceholder:Y(),feedbackFormEmail:Y(),feedbackFormEmailPlaceholder:Y(),askQuestionAgain:Y(),answerGood:Y(),answerBad:Y(),classificationSubmit:Y(),classificationThankYou:Y(),classificationTitle:Y(),selectLanguage:Y(),languageChanged:Y(),selectColorTheme:Y(),lightMode:Y(),darkMode:Y(),ariaMainNavigation:Y(),ariaMainNavigationInfo:Y(),ariaMainNavigationLinks:Y(),ariaMainNavigationLanguageSwitch:Y(),ariaMainNavigationColorMode:Y(),ariaGotoMainNavigation:Y(),ariaAskQuestion:Y(),ariaAskQuestionRegion:Y(),ariaNotifications:Y(),ariaPredefinedQuestions:Y(),ariaPredefinedQuestionsRegion:Y(),ariaChatHistory:Y(),ariaOpenChat:Y(),ariaQuestionFromYou:Y(),ariaAnswerFromBot:Y(),ariaLastAnswerNavigation:Y(),ariaQuestionSent:Y(),ariaAnswerReady:Y(),ariaAnswerFinished:Y(),ariaAnswerFinishedWithSelectedTopic:Y(),ariaAskQuestionAgain:Y(),ariaAnswerGood:Y(),ariaAnswerBad:Y(),ariaReferenceSource:Y(),ariaGiveFeedback:Y(),ariaAnswerForm:Y(),ariaLanguageChanged:Y(),ariaLightSelected:Y(),ariaDarkSelected:Y(),ariaSettings:Y(),ariaSettingsRegion:Y(),ariaReferencesRegion:Y(),ariaOpensInNewTab:Y(),ariaPageTitle:Y(),ariaCloseWithEsc:Y(),ariaInfoTitle:Y(),ariaFlyoutRegion:Y(),ariaSelected:Y(),ariaUnselected:Y(),ariaAllSelected:Y(),ariaAllUnselected:Y(),ariaAllReseted:Y(),ariaChangeTopic:Y(),popups:X(Qu(ed({hash:Y(),title:Y(),content:Y(),actions:X(Qu(ed({action:Y(),label:Y(),type:X(pd([`primary`,`secondary`]))})))}))),termsAcceptButton:X(Y()),termsReadButton:X(Y()),selectors:X(ud(Y(),wd)),hideSettings:Y(),showSettings:Y(),chooseAtLeastOneOption:Y(),selectAll:Y(),selectNone:Y(),resetToDefaults:Y(),messageTooLong:Y(),selectedTopic:Y(),changeTopic:Y(),searchSummaryExpand:Y(),searchSummaryCollapse:Y(),searchSummaryOptInDefault:Y(),searchSummaryOptOut:Y(),searchSummaryError:Y(),searchSummaryDisclaimer:X(Y()),searchSummaryLoading:Y(),searchSummaryFollowUpPlaceholder:Y(),searchSummaryFollowUpSubmit:Y(),ariaSearchSummaryExpand:Y(),ariaSearchSummaryCollapse:Y(),ariaSearchSummaryOptOut:Y(),ariaSearchSummaryFollowUpInput:Y(),jsonLdEventDate:Y(),jsonLdEventLocation:Y(),jsonLdEventDescription:Y(),jsonLdEventCtaLabel:Y(),jsonLdCtaLabel:Y(),jsonLdMapOpenMap:Y(),ariaJsonLdMapCanvas:Y(),ariaJsonLdEventCard:Y(),ariaJsonLdMapCard:Y(),ariaJsonLdCtaCard:Y()}),Ed=pd(Cd),Dd=dd(Ed,td(nd(Td),{selectors:X(ud(Y(),wd))})),Od=dd(Ed,Y()),kd=cd(od(`componentName`,[ed({componentName:hd(`buttons`),data:ed({caption:X(Y()),buttons:Qu(ed({label:Y(),href:X(Hu()),value:Y(),variant:X(pd([`primary`,`secondary`,`tertiary`])),icon:X(Y()),target:X(Y())}))})}),ed({componentName:hd(`combobox`),data:ed({caption:X(Od),placeholder:Od,values:Qu(ed({label:Od,value:Y(),metadata:X(ud(Y(),Xu()))})),removeComponentAfterValueSelection:X(Ju()),selectorKey:X(Y())})}),ed({componentName:hd(`alva-init`),data:ed({})}),ed({componentName:hd(`alva-score-survey`),data:ed({})})]),ed({type:hd(`component`),id:X(Y()),time:X(Y()),hideAvatar:X(Ju()),noSectionPadding:X(Ju()),hideChatInput:X(Ju())})),Ad=id([Y(),Wu(),Ju(),Qu(Y()),Qu(Wu()),Qu(Ju())]),jd=ed({title:Y(),description:X(Y()),badge:X(Y()),breadcrumbs:X(Qu(Y())),previewImage:X(Y()),date:X(Sd())}),Md=td(ed({url:Hu(),score:Wu(),metadata:ud(Y(),Ad),language:X(Y())}),jd.shape),Nd=ed({type:hd(`user`),time:Y(),message:Y(),id:X(Y())}),Pd=td(ed({citationId:X(Y()),url:Y(),score:Wu(),metadata:ud(Y(),id([Y(),Wu(),Ju(),Qu(Y()),Qu(Wu()),Qu(Ju())])),considered:Ju(),display:ed({card:jd,listItem:jd})}),{referenceIndex:ed({all:Wu(),used:X(Wu())})}),Fd=ed({type:hd(`bot`),time:Y(),id:Y(),message:ed({markdown:Y(),html:Y(),text:Y()}),references:ed({all:Qu(Pd),used:Qu(Pd),unused:Qu(Pd)}),errors:Qu(id([pd([`pii-detected`,`blocked`,`maintenance`,`rate-limit`,`server-error`,`too-short`,`too-long`,`quota-reached`,`aborted`]),hd(`sse-error`),hd(`client-error`),hd(`unexpected-call`)])),retrievalQuestion:X(Y()),noFeedback:X(Ju()),feedback:X(pd([`up`,`down`]))}),Id=id([id([td(Fd,{state:hd(`loading`)}),td(Fd,{state:pd([`streaming`,`done`])})]),Nd,kd]),Ld=Qu(ed({question:Y(),answer:Y()})),Rd={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 0)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 0)`,100:`oklch(97% 0 0)`,200:`oklch(92.2% 0 0)`,300:`oklch(87% 0 0)`,400:`oklch(70.8% 0 0)`,500:`oklch(55.6% 0 0)`,600:`oklch(43.9% 0 0)`,700:`oklch(37.1% 0 0)`,800:`oklch(26.9% 0 0)`,900:`oklch(20.5% 0 0)`,950:`oklch(14.5% 0 0)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 0)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}},zd=id([ed({minRem:Wu(),maxRem:Wu()}),Y()]),Bd=ed({0:X(Y()),50:Y(),100:Y(),200:Y(),300:Y(),400:Y(),500:Y(),600:Y(),700:Y(),800:Y(),900:Y(),950:Y(),1e3:X(Y())}),Vd=ed({color:X(Y()),background:X(Y()),borderWidth:X(Y()),borderColor:X(Y()),boxShadow:X(Y())}),Hd=ed({customCSS:X(Y()),fontCSS:X(Y()),fontURLs:X(Qu(Y())),tokens:X(ed({font:X(ed({family:X(Y())})),colors:X(ed({brand:X(nd(Bd)),accent:X(nd(Bd)),highlight:X(nd(Bd)),grey:X(nd(Bd))})),base:X(ed({fontSizeXs:X(zd),fontSizeSm:X(zd),fontSizeBody:X(zd),fontSizeH3:X(zd),fontSizeH2:X(zd),fontSizeH1:X(zd),fontWeightNormal:X(Y()),fontWeightBold:X(Y()),fontWeightTitle:X(Y()),lineHeightDefault:X(Y()),lineHeightSnug:X(Y()),lineHeightTight:X(Y()),borderRadius:X(zd),lineColor:X(Y()),boxShadow:X(Y())})),components:X(ud(Y(),cd(ed({borderRadius:X(zd),custom:X(ud(Y(),id([Y(),Wu()]))),hover:X(Vd),focus:X(Vd)}),Vd))),svgs:X(dd(pd(`predefinedQuestion.edit.newConversation.voteUp.voteDown.retry.message.messageLoading.thread.submit.abort.expand.help.attach.record.reward.share.audio.copy.dismiss.menu.info.menuClose.chevronDown.chevronUp.chevronTopDown.chevronDownSmall.internalLink.externalLink.liip.avatar.avatarLarge.openChat.speechInput.listUnordered.lightMode.darkMode.settings.settingsClose.sources.model.checkbox.warning.topic.headerLogo.embedAvatar.forward.phone.email`.split(`.`)),Y()))}))}),Ud=ed({light:X(Hd),dark:X(Hd)}),Wd=ed({50:Y(),100:Y(),200:Y(),300:Y(),400:Y(),500:Y(),600:Y(),700:Y(),800:Y(),900:Y(),950:Y()}),Gd=pd([`slate`,`gray`,`zinc`,`neutral`,`stone`,`red`,`orange`,`amber`,`yellow`,`lime`,`green`,`emerald`,`teal`,`cyan`,`sky`,`blue`,`indigo`,`violet`,`purple`,`fuchsia`,`pink`,`rose`]),Kd=id([Wd,Gd]),qd=ed({avatarImageUrl:X(Y()),colors:X(ed({brand:X(Kd),highlight:X(Kd),grey:X(id([cd(Wd,ed({0:Y(),1e3:Y()})),Gd])),background:X(Y()),text:X(Y()),anchor:X(ed({default:X(Y()),hover:X(Y())}))})),font:X(ed({family:X(Y()),urls:X(Qu(Y())),sizeXs:X(zd),sizeSm:X(zd),sizeBody:X(zd),sizeH3:X(zd),sizeH2:X(zd),sizeH1:X(zd),weightNormal:X(Y()),weightBold:X(Y()),weightTitle:X(Y())})),borderRadius:X(zd),fineGrained:X(Ud)}),Jd=ed({label:Y(),options:Qu(ed({label:Y(),value:Wu()}))}),Yd=ed({label:Y(),icon:Y(),url:Y(),target:X(pd([`_blank`,`_self`]))}),Xd=ed({id:X(Y()),label:vd(Y()),question:Y(),switchQuestionId:X(Y())}),Zd=ed({impact:X(Jd),quality:X(Jd),order:X(Qu(pd([`quality`,`impact`])))}),Qd=ed({predefinedQuestions:Qu(Xd)}),$d=id([ed({maintenance:hd(!0)}),ed({id:Y(),cID:Y()})]),ef=ed({settingName:Y(),iconName:Y(),settingIntro:X(Y()),type:pd([`single-select`,`multi-select`]),allowEmpty:Ju(),values:Qu(Y()),defaultValues:X(Qu(Y()))}),tf=ed({receiverEmail:Y(),triggerLabel:Od,title:X(Od),caption:X(Od),submitLabel:Od,fields:Qu(ed({type:pd([`text`,`select`,`checkbox`,`radio`]),name:Y(),label:Od,placeholder:X(Od),required:X(Ju()),options:X(Qu(ed({value:Y(),label:Od})))}))}),nf=ed({before:X(Qu(Id)),after:X(Qu(Id))}),rf=cd(nd(ed({forcePredefinedQuestions:X(Ju()),forceChatPage:X(Ju()),showOverallFeedbackButton:Ju(),showOverallFeedbackEmail:Ju(),showCloseChatButton:Ju(),showContextMenu:Ju(),showContextInfo:Ju(),showReferencesByDefault:Ju(),showExpandedSelectors:Ju(),showTextFeedback:Ju(),inlineLayout:Ju(),allowAudioInput:Ju(),blockPII:Ju(),questionPrefix:Y(),menu:X(dd(Ed,Qu(Yd))),supportedLanguages:Qu(Ed),classification:X(Zd),answerForm:X(tf),theme:qd,translations:Dd,buttonHref:X(Y()),addQueryToUrlParams:X(Ju()),addRetrievalQuestionToUrlParams:X(Ju()),renderKatex:X(Ju()),reflectLanguageInPath:X(Ju()),sendReferrer:X(pd([`all`,`own`,`none`,`location`])),selectorsConfig:bd(Qu(ef),[]),questionLengthLimit:X(Wu()),forceConsent:X(Ju()),askQuestionAgain:Ju(),enableBackdrop:X(Ju()),parentPageContext:ed({extractSelectors:X(Qu(Y()))}),messageAdditions:X(ed({init:X(Qu(Id)),bot:X(nf),user:X(nf)})),contextVersion:X(Wu()),selectedTopicResetPredefinedQuestionId:X(Y())})),ed({theme:X(ed({name:X(Y())}))})),af=class{id;constructor(e){this.chatResponseData=e,this.id=this.chatResponseData.id}async isReadyForFeedback(){return await this.chatResponseData.readyForFeedback.toPromise(),!0}subscribe(e,t){return this.chatResponseData.readableStore.subscribe(e,t)}getContent(){return this.chatResponseData.content.toPromise()}abort(){return this.chatResponseData.abort()}async thumbsUp(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsUp(this.id,this.chatResponseData.question)}async thumbsDown(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsDown(this.id,this.chatResponseData.question)}async feedback(e){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.feedback(this.id,this.chatResponseData.question,e)}},of=[];for(let e=0;e<256;++e)of.push((e+256).toString(16).slice(1));function sf(e,t=0){return(of[e[t+0]]+of[e[t+1]]+of[e[t+2]]+of[e[t+3]]+`-`+of[e[t+4]]+of[e[t+5]]+`-`+of[e[t+6]]+of[e[t+7]]+`-`+of[e[t+8]]+of[e[t+9]]+`-`+of[e[t+10]]+of[e[t+11]]+of[e[t+12]]+of[e[t+13]]+of[e[t+14]]+of[e[t+15]]).toLowerCase()}var cf,lf=new Uint8Array(16);function uf(){if(!cf){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);cf=crypto.getRandomValues.bind(crypto)}return cf(lf)}var df={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ff(e,t,n){e||={};let r=e.random??e.rng?.()??uf();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 sf(r)}function pf(e,t,n){return df.randomUUID&&!t&&!e?df.randomUUID():ff(e,t,n)}var mf={};function hf(e,t,n){let r;if(e)r=_f(e.random??e.rng?.()??uf(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=uf();gf(mf,e,i),r=_f(i,mf.msecs,mf.seq,t,n)}return t??sf(r)}function gf(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function _f(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}var vf=new Map,yf=class{get length(){return vf.size}clear(){vf.clear()}getItem(e){return vf.get(e)||null}key(e){return Array.from(vf.keys())[e]||null}removeItem(e){vf.delete(e)}setItem(e,t){vf.set(e,String(t))}},bf=globalThis.localStorage??new yf,xf=async(e,t)=>{try{let n=bf.getItem(`liipgpt:uID`)||bf.getItem(`uID`),r={method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({referrer:globalThis?.document?.referrer||null,uID:n,...t?{startParameters:t}:{}})},i=await e.fetchData(`/login`,$d,{},r).catch(t=>(console.log(`Failed to /login use /log`,t),e.fetchData(`/log`,$d,{},r)));if(`maintenance`in i&&i.maintenance)return{mode:`maintenance`};if(!(`id`in i))throw Error(`Invalid response format: missing user id`);return bf.setItem(`liipgpt:uID`,i.id),{mode:`ready`,userId:i.id}}catch(e){throw console.error(`Failed to fetch user data:`,e),e}},Sf=function(e,t){if(!(this instanceof Sf))return new Sf(e,t);this.url=e,t||={},this.headers=t.headers||{},this.payload=t.payload===void 0?``:t.payload,this.method=t.method||this.payload&&`POST`||`GET`,this.withCredentials=!!t.withCredentials,this.debug=!!t.debug,this.autoReconnect=t.autoReconnect===void 0?!1:t.autoReconnect,this.reconnectDelay=t.reconnectDelay===void 0?3e3:t.reconnectDelay,this.maxRetries=t.maxRetries===void 0?null:t.maxRetries,this.retryCount=0,this.reconnectTimer=null,this.useLastEventId=t.useLastEventId===void 0?!0:t.useLastEventId,this.FIELD_SEPARATOR=`:`,this.listeners={},this.xhr=null,this.readyState=Sf.INITIALIZING,this.progress=0,this.chunk=``,this.lastEventId=``,this._hasParsedBom=!1,this.addEventListener=function(e,t){this.listeners[e]===void 0&&(this.listeners[e]=[]),this.listeners[e].indexOf(t)===-1&&this.listeners[e].push(t)},this.removeEventListener=function(e,t){if(this.listeners[e]===void 0)return;let n=[];this.listeners[e].forEach(function(e){e!==t&&n.push(e)}),n.length===0?delete this.listeners[e]:this.listeners[e]=n},this.dispatchEvent=function(e){if(!e)return!0;this.debug&&console.debug(e),e.source=this;let t=`on`+e.type;return this.hasOwnProperty(t)&&(this[t].call(this,e),e.defaultPrevented)?!1:this.listeners[e.type]?this.listeners[e.type].every(function(t){return t(e),!e.defaultPrevented}):!0},this._markClosed=function(){if(this.xhr=null,this.progress=0,this.chunk=``,this._setReadyState(Sf.CLOSED),this.autoReconnect){if(this.maxRetries!==null&&this.retryCount>=this.maxRetries){this.debug&&console.debug(`SSE max retries (${this.maxRetries}) reached, stopping reconnection attempts`),this.autoReconnect=!1,this.close();return}this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.debug&&console.debug(`SSE will attempt to reconnect in ${this.reconnectDelay}ms (attempt ${this.retryCount+1}${this.maxRetries?`/`+this.maxRetries:``})`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.retryCount++,this.stream()},this.reconnectDelay)}},this._setReadyState=function(e){let t=new CustomEvent(`readystatechange`);t.readyState=e,this.readyState=e,this.dispatchEvent(t)},this._onStreamFailure=function(e){let t=new CustomEvent(`error`);t.responseCode=e.currentTarget.status,t.data=e.currentTarget.response,this.dispatchEvent(t),this._markClosed()},this._onStreamAbort=function(){this.dispatchEvent(new CustomEvent(`abort`)),this._markClosed()},this._onStreamProgress=function(e){if(!this.xhr)return;if(this.xhr.status<200||this.xhr.status>=300){this._onStreamFailure(e);return}this.retryCount=0;let t=this.xhr.responseText.substring(this.progress);this.progress+=t.length,!this._hasParsedBom&&this.chunk.length===0&&(t.charCodeAt(0)===65279&&(t=t.substring(1)),this._hasParsedBom=!0);let n=(this.chunk+t).split(/(\r\n\r\n|\r\r|\n\n)/g),r=n.pop();n.forEach(function(e){e.trim().length>0&&this.dispatchEvent(this._parseEventChunk(e))}.bind(this)),this.chunk=r},this._onStreamLoaded=function(e){this._onStreamProgress(e),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=``,this._markClosed()},this._parseEventChunk=function(e){if(!e||e.length===0)return null;this.debug&&console.debug(e);let t={id:null,retry:null,data:null,event:null};if(e.split(/\n|\r\n|\r/).forEach(function(e){let n=e.indexOf(this.FIELD_SEPARATOR),r,i;if(n>0){let t=e[n+1]===` `?2:1;r=e.substring(0,n),i=e.substring(n+t)}else if(n<0)r=e,i=``;else return;r in t&&(r===`data`&&t[r]!==null?t.data+=`
|
|
60
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Mc(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Kc=new Gc;function qc(e,t){return Kc.parse(e,t)}qc.options=qc.setOptions=function(e){return Kc.setOptions(e),qc.defaults=Kc.defaults,Ts(qc.defaults),qc},qc.getDefaults=Cs,qc.defaults=ws,qc.use=function(...e){return Kc.use(...e),qc.defaults=Kc.defaults,Ts(qc.defaults),qc},qc.walkTokens=function(e,t){return Kc.walkTokens(e,t)},qc.parseInline=Kc.parseInline,qc.Parser=Uc,qc.parser=Uc.parse,qc.Renderer=Vc,qc.TextRenderer=Hc,qc.Lexer=Bc,qc.lexer=Bc.lex,qc.Tokenizer=zc,qc.Hooks=Wc,qc.parse=qc,qc.options,qc.setOptions,qc.use,qc.walkTokens,qc.parseInline,Uc.parse,Bc.lex;var Jc=e=>(Object.getOwnPropertyNames(e).forEach(t=>{let n=e[t];n&&typeof n==`object`&&Jc(n)}),Object.freeze(e)),Yc=Jc({all:[],used:[],unused:[]}),Xc=(e,t)=>{let n=Ss(e);return n.addHook(`uponSanitizeElement`,function(e,t){let n=t.tagName||e.nodeName.toLowerCase();n.startsWith(`liipgpt-`)&&(t.allowedTags[n]=!0)}),n.addHook(`afterSanitizeAttributes`,function(e){if(e.tagName!==`A`||!e.getAttribute(`href`)?.startsWith(`http`)||(e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`),!t||e.querySelector(`.sr-only`)))return;let n=e.ownerDocument.createElement(`span`);n.className=`sr-only`,n.textContent=` ${t}`,e.appendChild(n)}),n},Zc=class{marked;currentReferences=Yc;lastUsedIndex=0;DomPurity;constructor(e={}){this.marked=new Gc({async:!1,breaks:!0}).use(this.createFootnoteExtension(),...e.extensions??[]),this.DomPurity=Xc(e.window,e.newTabSrText)}createFootnoteExtension=()=>{let e=this;return{extensions:[{name:`footnote`,level:`inline`,start(e){return e.match(/\[\^(\d+(?:\.\d+)?)\]/)?.index},tokenizer(e){let t=/^\[\^(\d+(?:\.\d+)?)\]/.exec(e);if(t){let[e,n]=t;return{type:`footnote`,raw:e,refNumber:n}}},renderer(t){if(t.type===`footnote`){let n=e.currentReferences.all,r=n.some(e=>e.citationId!==void 0)?n.findIndex(e=>e.citationId===t.refNumber):/^\d+$/.test(t.refNumber)?Number(t.refNumber)-1:-1,i=e.currentReferences.all[r];if(!i)return console.error(`Could not find ref for citation:`,t.refNumber),``;let a;return i?.referenceIndex.used?a=i.referenceIndex.used:(e.currentReferences.used.push(i),e.lastUsedIndex++,a=e.lastUsedIndex,i.referenceIndex.used=a),` <liipgpt-reference-number data-all-index="${r}" data-used-index="${a}" data-source="${JSON.stringify(i).replace(/"/g,`"`)}"></liipgpt-reference-number>`}}}]}};parse(e){return this.DomPurity.sanitize(this.marked.parse(e),{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0,mathMl:!0},FORBID_TAGS:[`hr`],ADD_ATTR:[`target`]})}toHTML(e,t){this.currentReferences=t;let n=this.parse(e);return this.currentReferences=Yc,n}};function Qc(){let e,t;return{promise:new Promise((n,r)=>{t=n,e=r}),reject:e,resolve:t}}var $c=class{promise;resolve;reject;constructor(){let{promise:e,resolve:t,reject:n}=Qc();this.promise=e,this.resolve=t,this.reject=n}then(e,t){return this.promise.then(e,t)}catch(e){return this.promise.catch(e)}finally(e){return this.promise.finally(e)}toPromise(){return this.promise}[Symbol.toStringTag]=`Flag`},el=class{hasValue=new $c;currentValue;setValue(e){this.currentValue=e,this.hasValue.resolve()}cleanup(e){this.hasValue.reject(e)}getCurrentValue(){return this.currentValue}async toPromise(){return await this.hasValue,this.currentValue}then(e,t){return this.toPromise().then(e,t)}catch(e){return this.toPromise().catch(e)}finally(e){return this.toPromise().finally(e)}[Symbol.toStringTag]=`FutureValue`},tl=e=>{try{return new URL(e).hostname}catch{return e}};function nl(e){return e.replace(/<[^>]*>/g,``).replace(/ /g,` `).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}var rl=({citationId:e,url:t,considered:n,title:r,description:i,summary:a})=>{let o=tl(t),s=i||a;return{...e?{citationId:e}:{},url:t,considered:n,referenceIndex:{},score:0,metadata:{},display:{card:{title:r,description:s,badge:t},listItem:{title:r,badge:o}}}},il=class{store;content=new el;backendSendsMappedRefs=!1;constructor(e){this.options=e,this.store=kt({id:e.id,state:`loading`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:``,html:``,text:``},references:{all:[],used:[],unused:[]},retrievalQuestion:e.userQuestion})}pushError(e){this.options.onError?.(e),this.store.update(t=>({...t,errors:[...t.errors,e]}))}updateRequestId(e){this.store.update(t=>({...t,id:e}))}updateText(e){this.store.update(t=>{let n=t.message.markdown+e,r=this.options.markdownRenderer.toHTML(n,t.references);return{...t,state:`streaming`,message:{markdown:n,html:r,text:``}}})}finishMessage(){this.store.update(e=>{let t={...e,state:`done`};return t.references.unused=t.references.all.filter(e=>e.referenceIndex.used===void 0),t.message.text=nl(t.message.html),this.options?.onFinish?.(t),this.content.setValue(t),t})}addReference(e){this.store.update(t=>{let n=t.references.all,r=n.length,i=[...n,{...e,referenceIndex:{all:r}}];return{...t,references:{used:t.references.used,all:i}}})}addMappedReference(e){this.backendSendsMappedRefs=!0,this.addReference(e)}addOldReference(e){this.backendSendsMappedRefs||this.addReference(rl(e))}updateRetrievalQuestion(e){this.store.update(t=>({...t,retrievalQuestion:e}))}setNoFeedback(){this.store.update(e=>({...e,noFeedback:!0}))}getReadableStore(){return{subscribe:this.store.subscribe}}getPromise(){return this.content.toPromise()}},al=[{type:`email`,check:e=>/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/.test(e)},{type:`creditCard`,check:e=>/\b(?:\d[ -]*?){13,16}\b/.test(e)},{type:`ahv`,check:e=>/\b756\.\d{4}\.\d{4}\.\d{2}\b/.test(e)},{type:`phoneSwiss`,check:e=>/\b0(?:\s*\d){2}(?:\s*\/\s*)?(?:\s*\d){7,}\b/.test(e)},{type:`phoneInternational`,check:e=>/(?:\+|00)(?:\s*\d){10,}\b/.test(e)},{type:`swissPassport`,check:e=>/\b[A-HJ-NP-Z](?=.*\d)[A-HJ-NP-Z0-9]{7}\b/.test(e)},{type:`longNumber`,check:e=>/\b\d{9,}\b/.test(e)}],ol=e=>{for(let t of al)if(t.check(e))return t.type};Object.freeze({status:`aborted`});function sl(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var cl=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ll={};function ul(e){return e&&Object.assign(ll,e),ll}function dl(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function fl(e,t){return typeof t==`bigint`?t.toString():t}function pl(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function ml(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}var hl=Symbol(`evaluating`);function gl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==hl)return r===void 0&&(r=hl,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function _l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function vl(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}var yl=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function bl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function xl(e){if(bl(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(bl(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function Sl(e){return xl(e)?{...e}:Array.isArray(e)?[...e]:e}var Cl=new Set([`string`,`number`,`symbol`]);function wl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Tl(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function El(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Dl(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var Ol={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function kl(e,t){if(!xl(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Tl(e,vl(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return _l(this,`shape`,n),n}}))}function Al(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return Tl(t,vl(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return _l(this,`shape`,i),i},checks:[]}))}function jl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ml(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Nl(e){return typeof e==`string`?e:e?.message}function Pl(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Nl(e.inst?._zod.def?.error?.(e))??Nl(t?.error?.(e))??Nl(n.customError?.(e))??Nl(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}var Fl=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,fl,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Il=sl(`$ZodError`,Fl),Ll=sl(`$ZodError`,Fl,{Parent:Error}),Rl=(e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new cl;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Pl(e,a,ul())));throw yl(t,i?.callee),t}return o.value})(Ll),zl=(e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Pl(e,a,ul())));throw yl(t,i?.callee),t}return o.value})(Ll),Bl=(e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new cl;return a.issues.length?{success:!1,error:new(e??Il)(a.issues.map(e=>Pl(e,i,ul())))}:{success:!0,data:a.value}})(Ll),Vl=(e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Pl(e,i,ul())))}:{success:!0,data:a.value}})(Ll),Hl=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;`${Hl}`;function Ul(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Wl(e){let t=Ul({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Hl}T(?:${r})$`)}var Gl=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Kl=/^-?\d+$/,ql=/^-?\d+(?:\.\d+)?$/,Jl=/^(?:true|false)$/i,Yl=sl(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xl=sl(`$ZodCheckNumberFormat`,(e,t)=>{Yl.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ol[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Kl)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Zl=sl(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Yl.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ql={major:4,minor:3,patch:6},$l=sl(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ql;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=jl(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new cl;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=jl(e,t))});else{if(e.issues.length===t)continue;r||=jl(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(jl(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new cl;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new cl;return o.then(e=>t(e,r,a))}return t(o,r,a)}}gl(e,`~standard`,()=>({validate:t=>{try{let n=Bl(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Vl(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),eu=sl(`$ZodString`,(e,t)=>{$l.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gl(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),tu=sl(`$ZodStringFormat`,(e,t)=>{Zl.init(e,t),eu.init(e,t)}),nu=sl(`$ZodURL`,(e,t)=>{tu.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ru=sl(`$ZodISODateTime`,(e,t)=>{t.pattern??=Wl(t),tu.init(e,t)}),iu=sl(`$ZodNumber`,(e,t)=>{$l.init(e,t),e._zod.pattern=e._zod.bag.pattern??ql,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),au=sl(`$ZodNumberFormat`,(e,t)=>{Xl.init(e,t),iu.init(e,t)}),ou=sl(`$ZodBoolean`,(e,t)=>{$l.init(e,t),e._zod.pattern=Jl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),su=sl(`$ZodUnknown`,(e,t)=>{$l.init(e,t),e._zod.parse=e=>e});function cu(e,t,n){e.issues.length&&t.issues.push(...Ml(n,e.issues)),t.value[n]=e.value}var lu=sl(`$ZodArray`,(e,t)=>{$l.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>cu(t,n,e))):cu(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function uu(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...Ml(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function du(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=Dl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fu(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>uu(e,n,i,t,u))):uu(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var pu=sl(`$ZodObject`,(e,t)=>{if($l.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=pl(()=>du(t));gl(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=bl,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>uu(n,t,e,s,r))):uu(i,t,e,s,r)}return i?fu(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}});function mu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!jl(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Pl(e,r,ul())))}),t)}var hu=sl(`$ZodUnion`,(e,t)=>{$l.init(e,t),gl(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),gl(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),gl(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),gl(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ml(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>mu(t,i,e,a)):mu(s,i,e,a)}}),gu=sl(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,hu.init(e,t);let n=e._zod.parse;gl(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=pl(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!bl(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),_u=sl(`$ZodIntersection`,(e,t)=>{$l.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>yu(e,t,n)):yu(e,i,a)}});function vu(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xl(e)&&xl(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=vu(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=vu(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function yu(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),jl(e))return e;let o=vu(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var bu=sl(`$ZodRecord`,(e,t)=>{$l.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!xl(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...Ml(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...Ml(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&ql.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Pl(e,r,ul())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Ml(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Ml(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),xu=sl(`$ZodEnum`,(e,t)=>{$l.init(e,t);let n=dl(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Cl.has(typeof e)).map(e=>typeof e==`string`?wl(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Su=sl(`$ZodLiteral`,(e,t)=>{if($l.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?wl(e):e?wl(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}});function Cu(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var wu=sl(`$ZodOptional`,(e,t)=>{$l.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,gl(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),gl(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ml(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Cu(t,e.value)):Cu(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Tu=sl(`$ZodNullable`,(e,t)=>{$l.init(e,t),gl(e._zod,`optin`,()=>t.innerType._zod.optin),gl(e._zod,`optout`,()=>t.innerType._zod.optout),gl(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ml(e.source)}|null)$`):void 0}),gl(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Eu=sl(`$ZodDefault`,(e,t)=>{$l.init(e,t),e._zod.optin=`optional`,gl(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Du(e,t)):Du(r,t)}});function Du(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ou,ku=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Au(){return new ku}(Ou=globalThis).__zod_globalRegistry??(Ou.__zod_globalRegistry=Au()),globalThis.__zod_globalRegistry;function ju(e,t){return new e({type:`string`,...El(t)})}function Mu(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...El(t)})}function Nu(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...El(t)})}function Pu(e,t){return new e({type:`number`,checks:[],...El(t)})}function Fu(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...El(t)})}function Iu(e,t){return new e({type:`boolean`,...El(t)})}function Lu(e){return new e({type:`unknown`})}var Ru=sl(`ZodMiniType`,(e,t)=>{if(!e._zod)throw Error(`Uninitialized schema in ZodMiniType.`);$l.init(e,t),e.def=t,e.type=t.type,e.parse=(t,n)=>Rl(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Bl(e,t,n),e.parseAsync=async(t,n)=>zl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Vl(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]},{parent:!0}),e.with=e.check,e.clone=(t,n)=>Tl(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.apply=t=>t(e)}),zu=sl(`ZodMiniString`,(e,t)=>{eu.init(e,t),Ru.init(e,t)});function Y(e){return ju(zu,e)}var Bu=sl(`ZodMiniStringFormat`,(e,t)=>{tu.init(e,t),zu.init(e,t)}),Vu=sl(`ZodMiniURL`,(e,t)=>{nu.init(e,t),Bu.init(e,t)});function Hu(e){return Mu(Vu,e)}var Uu=sl(`ZodMiniNumber`,(e,t)=>{iu.init(e,t),Ru.init(e,t)});function Wu(e){return Pu(Uu,e)}var Gu=sl(`ZodMiniNumberFormat`,(e,t)=>{au.init(e,t),Uu.init(e,t)});function Ku(e){return Fu(Gu,e)}var qu=sl(`ZodMiniBoolean`,(e,t)=>{ou.init(e,t),Ru.init(e,t)});function Ju(e){return Iu(qu,e)}var Yu=sl(`ZodMiniUnknown`,(e,t)=>{su.init(e,t),Ru.init(e,t)});function Xu(){return Lu(Yu)}var Zu=sl(`ZodMiniArray`,(e,t)=>{lu.init(e,t),Ru.init(e,t)});function Qu(e,t){return new Zu({type:`array`,element:e,...El(t)})}var $u=sl(`ZodMiniObject`,(e,t)=>{pu.init(e,t),Ru.init(e,t),gl(e,`shape`,()=>t.shape)});function ed(e,t){return new $u({type:`object`,shape:e??{},...El(t)})}function td(e,t){return kl(e,t)}function nd(e,t){return Al(gd,e,t)}var rd=sl(`ZodMiniUnion`,(e,t)=>{hu.init(e,t),Ru.init(e,t)});function id(e,t){return new rd({type:`union`,options:e,...El(t)})}var ad=sl(`ZodMiniDiscriminatedUnion`,(e,t)=>{gu.init(e,t),Ru.init(e,t)});function od(e,t,n){return new ad({type:`union`,options:t,discriminator:e,...El(n)})}var sd=sl(`ZodMiniIntersection`,(e,t)=>{_u.init(e,t),Ru.init(e,t)});function cd(e,t){return new sd({type:`intersection`,left:e,right:t})}var ld=sl(`ZodMiniRecord`,(e,t)=>{bu.init(e,t),Ru.init(e,t)});function ud(e,t,n){return new ld({type:`record`,keyType:e,valueType:t,...El(n)})}function dd(e,t,n){let r=Tl(e);return r._zod.values=void 0,new ld({type:`record`,keyType:r,valueType:t,...El(n)})}var fd=sl(`ZodMiniEnum`,(e,t)=>{xu.init(e,t),Ru.init(e,t),e.options=Object.values(t.entries)});function pd(e,t){return new fd({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...El(t)})}var md=sl(`ZodMiniLiteral`,(e,t)=>{Su.init(e,t),Ru.init(e,t)});function hd(e,t){return new md({type:`literal`,values:Array.isArray(e)?e:[e],...El(t)})}var gd=sl(`ZodMiniOptional`,(e,t)=>{wu.init(e,t),Ru.init(e,t)});function X(e){return new gd({type:`optional`,innerType:e})}var _d=sl(`ZodMiniNullable`,(e,t)=>{Tu.init(e,t),Ru.init(e,t)});function vd(e){return new _d({type:`nullable`,innerType:e})}var yd=sl(`ZodMiniDefault`,(e,t)=>{Eu.init(e,t),Ru.init(e,t)});function bd(e,t){return new yd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Sl(t)}})}var xd=sl(`ZodMiniISODateTime`,(e,t)=>{ru.init(e,t),Bu.init(e,t)});function Sd(e){return Nu(xd,e)}var Cd=[`en`,`de`,`fr`,`it`],wd=ed({name:Y(),namePlural:X(Y()),intro:X(Y()),placeholder:Y(),values:ud(Y(),Y())}),Td=ed({introductionTitle:Y(),introductionDisclaimer:X(Y()),termsInvitationToConsent:X(Y()),chatInputPlaceholder:Y(),chatInputPlaceholderListening:X(Y()),chatInputSubmit:Y(),chatInputAbort:Y(),chatInputStartListening:Y(),chatInputStopListening:Y(),referenceLink:Y(),referencesDisplay:Y(),referencesHide:Y(),referencesTitle:Y(),referencesFurtherTitle:Y(),newChat:Y(),maintenanceModeError:Y(),messageBotLoading:Y(),messageBotError:Y(),messageBotDefaultError:Y(),noResultsFound:Y(),chatFooterText:X(Y()),scrollToBottom:Y(),openButtonTitle:X(Y()),openButtonDescription:X(Y()),openMenu:Y(),openInfo:Y(),aboutThisChat:X(Y()),closeMenu:Y(),closeChat:Y(),close:Y(),send:Y(),thankYouForFeedback:Y(),answerFormThankYou:Y(),giveFeedback:Y(),sendFeedback:Y(),feedbackFormTitle:Y(),feedbackFormMessage:Y(),feedbackFormMessagePlaceholder:Y(),feedbackFormEmail:Y(),feedbackFormEmailPlaceholder:Y(),askQuestionAgain:Y(),answerGood:Y(),answerBad:Y(),classificationSubmit:Y(),classificationThankYou:Y(),classificationTitle:Y(),selectLanguage:Y(),languageChanged:Y(),selectColorTheme:Y(),lightMode:Y(),darkMode:Y(),ariaMainNavigation:Y(),ariaMainNavigationInfo:Y(),ariaMainNavigationLinks:Y(),ariaMainNavigationLanguageSwitch:Y(),ariaMainNavigationColorMode:Y(),ariaGotoMainNavigation:Y(),ariaAskQuestion:Y(),ariaAskQuestionRegion:Y(),ariaNotifications:Y(),ariaPredefinedQuestions:Y(),ariaPredefinedQuestionsRegion:Y(),ariaChatHistory:Y(),ariaOpenChat:Y(),ariaQuestionFromYou:Y(),ariaAnswerFromBot:Y(),ariaLastAnswerNavigation:Y(),ariaQuestionSent:Y(),ariaAnswerReady:Y(),ariaAnswerFinished:Y(),ariaAnswerFinishedWithSelectedTopic:Y(),ariaAskQuestionAgain:Y(),ariaAnswerGood:Y(),ariaAnswerBad:Y(),ariaReferenceSource:Y(),ariaGiveFeedback:Y(),ariaAnswerForm:Y(),ariaLanguageChanged:Y(),ariaLightSelected:Y(),ariaDarkSelected:Y(),ariaSettings:Y(),ariaSettingsRegion:Y(),ariaReferencesRegion:Y(),ariaOpensInNewTab:Y(),ariaPageTitle:Y(),ariaCloseWithEsc:Y(),ariaInfoTitle:Y(),ariaFlyoutRegion:Y(),ariaSelected:Y(),ariaUnselected:Y(),ariaAllSelected:Y(),ariaAllUnselected:Y(),ariaAllReseted:Y(),ariaChangeTopic:Y(),popups:X(Qu(ed({hash:Y(),title:Y(),content:Y(),actions:X(Qu(ed({action:Y(),label:Y(),type:X(pd([`primary`,`secondary`]))})))}))),termsAcceptButton:X(Y()),termsReadButton:X(Y()),selectors:X(ud(Y(),wd)),hideSettings:Y(),showSettings:Y(),chooseAtLeastOneOption:Y(),selectAll:Y(),selectNone:Y(),resetToDefaults:Y(),messageTooLong:Y(),selectedTopic:Y(),changeTopic:Y(),searchSummaryExpand:Y(),searchSummaryCollapse:Y(),searchSummaryOptInDefault:Y(),searchSummaryOptOut:Y(),searchSummaryError:Y(),searchSummaryDisclaimer:X(Y()),searchSummaryLoading:Y(),searchSummaryFollowUpPlaceholder:Y(),searchSummaryFollowUpSubmit:Y(),ariaSearchSummaryExpand:Y(),ariaSearchSummaryCollapse:Y(),ariaSearchSummaryOptOut:Y(),ariaSearchSummaryFollowUpInput:Y(),jsonLdEventDate:Y(),jsonLdEventLocation:Y(),jsonLdEventDescription:Y(),jsonLdEventCtaLabel:Y(),jsonLdCtaLabel:Y(),jsonLdMapOpenMap:Y(),ariaJsonLdMapCanvas:Y(),ariaJsonLdEventCard:Y(),ariaJsonLdMapCard:Y(),ariaJsonLdCtaCard:Y()}),Ed=pd(Cd),Dd=dd(Ed,td(nd(Td),{selectors:X(ud(Y(),wd))})),Od=dd(Ed,Y()),kd=cd(od(`componentName`,[ed({componentName:hd(`buttons`),data:ed({caption:X(Y()),buttons:Qu(ed({label:Y(),href:X(Hu()),value:Y(),variant:X(pd([`primary`,`secondary`,`tertiary`])),icon:X(Y()),target:X(Y())}))})}),ed({componentName:hd(`combobox`),data:ed({caption:X(Od),placeholder:Od,values:Qu(ed({label:Od,value:Y(),metadata:X(ud(Y(),Xu()))})),removeComponentAfterValueSelection:X(Ju()),selectorKey:X(Y())})}),ed({componentName:hd(`alva-init`),data:ed({})}),ed({componentName:hd(`alva-score-survey`),data:ed({})})]),ed({type:hd(`component`),id:X(Y()),time:X(Y()),hideAvatar:X(Ju()),noSectionPadding:X(Ju()),hideChatInput:X(Ju())})),Ad=id([Y(),Wu(),Ju(),Qu(Y()),Qu(Wu()),Qu(Ju())]),jd=ed({title:Y(),description:X(Y()),badge:X(Y()),breadcrumbs:X(Qu(Y())),previewImage:X(Y()),date:X(Sd())}),Md=td(ed({url:Hu(),score:Wu(),metadata:ud(Y(),Ad),language:X(Y())}),jd.shape),Nd=ed({type:hd(`user`),time:Y(),message:Y(),id:X(Y())}),Pd=td(ed({citationId:X(Y()),url:Y(),score:Wu(),metadata:ud(Y(),id([Y(),Wu(),Ju(),Qu(Y()),Qu(Wu()),Qu(Ju())])),considered:Ju(),display:ed({card:jd,listItem:jd})}),{referenceIndex:ed({all:Wu(),used:X(Wu())})}),Fd=ed({type:hd(`bot`),time:Y(),id:Y(),message:ed({markdown:Y(),html:Y(),text:Y()}),references:ed({all:Qu(Pd),used:Qu(Pd),unused:Qu(Pd)}),errors:Qu(id([pd([`pii-detected`,`blocked`,`maintenance`,`rate-limit`,`server-error`,`too-short`,`too-long`,`quota-reached`,`aborted`]),hd(`sse-error`),hd(`client-error`),hd(`unexpected-call`)])),retrievalQuestion:X(Y()),noFeedback:X(Ju()),feedback:X(pd([`up`,`down`]))}),Id=id([id([td(Fd,{state:hd(`loading`)}),td(Fd,{state:pd([`streaming`,`done`])})]),Nd,kd]),Ld=Qu(ed({question:Y(),answer:Y()})),Rd={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 0)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 0)`,100:`oklch(97% 0 0)`,200:`oklch(92.2% 0 0)`,300:`oklch(87% 0 0)`,400:`oklch(70.8% 0 0)`,500:`oklch(55.6% 0 0)`,600:`oklch(43.9% 0 0)`,700:`oklch(37.1% 0 0)`,800:`oklch(26.9% 0 0)`,900:`oklch(20.5% 0 0)`,950:`oklch(14.5% 0 0)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 0)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}},zd=id([ed({minRem:Wu(),maxRem:Wu()}),Y()]),Bd=ed({0:X(Y()),50:Y(),100:Y(),200:Y(),300:Y(),400:Y(),500:Y(),600:Y(),700:Y(),800:Y(),900:Y(),950:Y(),1e3:X(Y())}),Vd=ed({color:X(Y()),background:X(Y()),borderWidth:X(Y()),borderColor:X(Y()),boxShadow:X(Y())}),Hd=ed({customCSS:X(Y()),fontCSS:X(Y()),fontURLs:X(Qu(Y())),tokens:X(ed({font:X(ed({family:X(Y())})),colors:X(ed({brand:X(nd(Bd)),accent:X(nd(Bd)),highlight:X(nd(Bd)),grey:X(nd(Bd))})),base:X(ed({fontSizeXs:X(zd),fontSizeSm:X(zd),fontSizeBody:X(zd),fontSizeH3:X(zd),fontSizeH2:X(zd),fontSizeH1:X(zd),fontWeightNormal:X(Y()),fontWeightBold:X(Y()),fontWeightTitle:X(Y()),lineHeightDefault:X(Y()),lineHeightSnug:X(Y()),lineHeightTight:X(Y()),borderRadius:X(zd),lineColor:X(Y()),boxShadow:X(Y())})),components:X(ud(Y(),cd(ed({borderRadius:X(zd),custom:X(ud(Y(),id([Y(),Wu()]))),hover:X(Vd),focus:X(Vd)}),Vd))),svgs:X(dd(pd(`predefinedQuestion.edit.newConversation.voteUp.voteDown.retry.message.messageLoading.thread.submit.abort.expand.help.attach.record.reward.share.audio.copy.dismiss.menu.info.menuClose.chevronDown.chevronUp.chevronTopDown.chevronDownSmall.internalLink.externalLink.liip.avatar.avatarLarge.openChat.speechInput.listUnordered.lightMode.darkMode.settings.settingsClose.sources.model.checkbox.warning.topic.headerLogo.embedAvatar.forward.phone.email`.split(`.`)),Y()))}))}),Ud=ed({light:X(Hd),dark:X(Hd)}),Wd=ed({50:Y(),100:Y(),200:Y(),300:Y(),400:Y(),500:Y(),600:Y(),700:Y(),800:Y(),900:Y(),950:Y()}),Gd=pd([`slate`,`gray`,`zinc`,`neutral`,`stone`,`red`,`orange`,`amber`,`yellow`,`lime`,`green`,`emerald`,`teal`,`cyan`,`sky`,`blue`,`indigo`,`violet`,`purple`,`fuchsia`,`pink`,`rose`]),Kd=id([Wd,Gd]),qd=ed({avatarImageUrl:X(Y()),colors:X(ed({brand:X(Kd),highlight:X(Kd),grey:X(id([cd(Wd,ed({0:Y(),1e3:Y()})),Gd])),background:X(Y()),text:X(Y()),anchor:X(ed({default:X(Y()),hover:X(Y())}))})),font:X(ed({family:X(Y()),urls:X(Qu(Y())),sizeXs:X(zd),sizeSm:X(zd),sizeBody:X(zd),sizeH3:X(zd),sizeH2:X(zd),sizeH1:X(zd),weightNormal:X(Y()),weightBold:X(Y()),weightTitle:X(Y())})),borderRadius:X(zd),fineGrained:X(Ud)}),Jd=ed({label:Y(),options:Qu(ed({label:Y(),value:Wu()}))}),Yd=ed({label:Y(),icon:Y(),url:Y(),target:X(pd([`_blank`,`_self`]))}),Xd=ed({id:X(Y()),label:vd(Y()),question:Y(),switchQuestionId:X(Y())}),Zd=ed({impact:X(Jd),quality:X(Jd),order:X(Qu(pd([`quality`,`impact`])))}),Qd=ed({predefinedQuestions:Qu(Xd)}),$d=id([ed({maintenance:hd(!0)}),ed({id:Y(),cID:Y()})]),ef=ed({settingName:Y(),iconName:Y(),settingIntro:X(Y()),type:pd([`single-select`,`multi-select`]),allowEmpty:Ju(),values:Qu(Y()),defaultValues:X(Qu(Y()))}),tf=ed({receiverEmail:Y(),triggerLabel:Od,title:X(Od),caption:X(Od),submitLabel:Od,fields:Qu(ed({type:pd([`text`,`select`,`checkbox`,`radio`]),name:Y(),label:Od,placeholder:X(Od),required:X(Ju()),options:X(Qu(ed({value:Y(),label:Od})))}))}),nf=ed({before:X(Qu(Id)),after:X(Qu(Id))}),rf=cd(nd(ed({forcePredefinedQuestions:X(Ju()),forceChatPage:X(Ju()),showOverallFeedbackButton:Ju(),showOverallFeedbackEmail:Ju(),showCloseChatButton:Ju(),showContextMenu:Ju(),showContextInfo:Ju(),showReferencesByDefault:Ju(),referencesLayout:X(pd([`aside`,`inline`])),showExpandedSelectors:Ju(),showTextFeedback:Ju(),inlineLayout:Ju(),allowAudioInput:Ju(),blockPII:Ju(),questionPrefix:Y(),menu:X(dd(Ed,Qu(Yd))),supportedLanguages:Qu(Ed),classification:X(Zd),answerForm:X(tf),theme:qd,translations:Dd,buttonHref:X(Y()),addQueryToUrlParams:X(Ju()),addRetrievalQuestionToUrlParams:X(Ju()),renderKatex:X(Ju()),reflectLanguageInPath:X(Ju()),sendReferrer:X(pd([`all`,`own`,`none`,`location`])),selectorsConfig:bd(Qu(ef),[]),questionLengthLimit:X(Wu()),forceConsent:X(Ju()),askQuestionAgain:Ju(),enableBackdrop:X(Ju()),parentPageContext:ed({extractSelectors:X(Qu(Y()))}),messageAdditions:X(ed({init:X(Qu(Id)),bot:X(nf),user:X(nf)})),contextVersion:X(Wu()),selectedTopicResetPredefinedQuestionId:X(Y())})),ed({theme:X(ed({name:X(Y())}))})),af=class{id;constructor(e){this.chatResponseData=e,this.id=this.chatResponseData.id}async isReadyForFeedback(){return await this.chatResponseData.readyForFeedback.toPromise(),!0}subscribe(e,t){return this.chatResponseData.readableStore.subscribe(e,t)}getContent(){return this.chatResponseData.content.toPromise()}abort(){return this.chatResponseData.abort()}async thumbsUp(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsUp(this.id,this.chatResponseData.question)}async thumbsDown(){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.thumbsDown(this.id,this.chatResponseData.question)}async feedback(e){await this.isReadyForFeedback(),await this.chatResponseData.liipgptClientPrimitive.feedback(this.id,this.chatResponseData.question,e)}},of=[];for(let e=0;e<256;++e)of.push((e+256).toString(16).slice(1));function sf(e,t=0){return(of[e[t+0]]+of[e[t+1]]+of[e[t+2]]+of[e[t+3]]+`-`+of[e[t+4]]+of[e[t+5]]+`-`+of[e[t+6]]+of[e[t+7]]+`-`+of[e[t+8]]+of[e[t+9]]+`-`+of[e[t+10]]+of[e[t+11]]+of[e[t+12]]+of[e[t+13]]+of[e[t+14]]+of[e[t+15]]).toLowerCase()}var cf,lf=new Uint8Array(16);function uf(){if(!cf){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);cf=crypto.getRandomValues.bind(crypto)}return cf(lf)}var df={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ff(e,t,n){e||={};let r=e.random??e.rng?.()??uf();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 sf(r)}function pf(e,t,n){return df.randomUUID&&!t&&!e?df.randomUUID():ff(e,t,n)}var mf={};function hf(e,t,n){let r;if(e)r=_f(e.random??e.rng?.()??uf(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=uf();gf(mf,e,i),r=_f(i,mf.msecs,mf.seq,t,n)}return t??sf(r)}function gf(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function _f(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}var vf=new Map,yf=class{get length(){return vf.size}clear(){vf.clear()}getItem(e){return vf.get(e)||null}key(e){return Array.from(vf.keys())[e]||null}removeItem(e){vf.delete(e)}setItem(e,t){vf.set(e,String(t))}},bf=globalThis.localStorage??new yf,xf=async(e,t)=>{try{let n=bf.getItem(`liipgpt:uID`)||bf.getItem(`uID`),r={method:`POST`,headers:{Accept:`application/json`,"Content-Type":`application/json`},body:JSON.stringify({referrer:globalThis?.document?.referrer||null,uID:n,...t?{startParameters:t}:{}})},i=await e.fetchData(`/login`,$d,{},r).catch(t=>(console.log(`Failed to /login use /log`,t),e.fetchData(`/log`,$d,{},r)));if(`maintenance`in i&&i.maintenance)return{mode:`maintenance`};if(!(`id`in i))throw Error(`Invalid response format: missing user id`);return bf.setItem(`liipgpt:uID`,i.id),{mode:`ready`,userId:i.id}}catch(e){throw console.error(`Failed to fetch user data:`,e),e}},Sf=function(e,t){if(!(this instanceof Sf))return new Sf(e,t);this.url=e,t||={},this.headers=t.headers||{},this.payload=t.payload===void 0?``:t.payload,this.method=t.method||this.payload&&`POST`||`GET`,this.withCredentials=!!t.withCredentials,this.debug=!!t.debug,this.autoReconnect=t.autoReconnect===void 0?!1:t.autoReconnect,this.reconnectDelay=t.reconnectDelay===void 0?3e3:t.reconnectDelay,this.maxRetries=t.maxRetries===void 0?null:t.maxRetries,this.retryCount=0,this.reconnectTimer=null,this.useLastEventId=t.useLastEventId===void 0?!0:t.useLastEventId,this.FIELD_SEPARATOR=`:`,this.listeners={},this.xhr=null,this.readyState=Sf.INITIALIZING,this.progress=0,this.chunk=``,this.lastEventId=``,this._hasParsedBom=!1,this.addEventListener=function(e,t){this.listeners[e]===void 0&&(this.listeners[e]=[]),this.listeners[e].indexOf(t)===-1&&this.listeners[e].push(t)},this.removeEventListener=function(e,t){if(this.listeners[e]===void 0)return;let n=[];this.listeners[e].forEach(function(e){e!==t&&n.push(e)}),n.length===0?delete this.listeners[e]:this.listeners[e]=n},this.dispatchEvent=function(e){if(!e)return!0;this.debug&&console.debug(e),e.source=this;let t=`on`+e.type;return this.hasOwnProperty(t)&&(this[t].call(this,e),e.defaultPrevented)?!1:this.listeners[e.type]?this.listeners[e.type].every(function(t){return t(e),!e.defaultPrevented}):!0},this._markClosed=function(){if(this.xhr=null,this.progress=0,this.chunk=``,this._setReadyState(Sf.CLOSED),this.autoReconnect){if(this.maxRetries!==null&&this.retryCount>=this.maxRetries){this.debug&&console.debug(`SSE max retries (${this.maxRetries}) reached, stopping reconnection attempts`),this.autoReconnect=!1,this.close();return}this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.debug&&console.debug(`SSE will attempt to reconnect in ${this.reconnectDelay}ms (attempt ${this.retryCount+1}${this.maxRetries?`/`+this.maxRetries:``})`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.retryCount++,this.stream()},this.reconnectDelay)}},this._setReadyState=function(e){let t=new CustomEvent(`readystatechange`);t.readyState=e,this.readyState=e,this.dispatchEvent(t)},this._onStreamFailure=function(e){let t=new CustomEvent(`error`);t.responseCode=e.currentTarget.status,t.data=e.currentTarget.response,this.dispatchEvent(t),this._markClosed()},this._onStreamAbort=function(){this.dispatchEvent(new CustomEvent(`abort`)),this._markClosed()},this._onStreamProgress=function(e){if(!this.xhr)return;if(this.xhr.status<200||this.xhr.status>=300){this._onStreamFailure(e);return}this.retryCount=0;let t=this.xhr.responseText.substring(this.progress);this.progress+=t.length,!this._hasParsedBom&&this.chunk.length===0&&(t.charCodeAt(0)===65279&&(t=t.substring(1)),this._hasParsedBom=!0);let n=(this.chunk+t).split(/(\r\n\r\n|\r\r|\n\n)/g),r=n.pop();n.forEach(function(e){e.trim().length>0&&this.dispatchEvent(this._parseEventChunk(e))}.bind(this)),this.chunk=r},this._onStreamLoaded=function(e){this._onStreamProgress(e),this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk=``,this._markClosed()},this._parseEventChunk=function(e){if(!e||e.length===0)return null;this.debug&&console.debug(e);let t={id:null,retry:null,data:null,event:null};if(e.split(/\n|\r\n|\r/).forEach(function(e){let n=e.indexOf(this.FIELD_SEPARATOR),r,i;if(n>0){let t=e[n+1]===` `?2:1;r=e.substring(0,n),i=e.substring(n+t)}else if(n<0)r=e,i=``;else return;r in t&&(r===`data`&&t[r]!==null?t.data+=`
|
|
61
61
|
`+i:t[r]=i)}.bind(this)),t.id!==null&&t.id.indexOf(`\0`)===-1&&(this.lastEventId=t.id),t.retry!==null&&/^[0-9]+$/.test(t.retry)&&(this.reconnectDelay=parseInt(t.retry,10)),t.data===null)return null;let n=new CustomEvent(t.event||`message`);return n.id=t.id,n.data=t.data||``,n.lastEventId=this.lastEventId,n},this._onReadyStateChange=function(){if(this.xhr&&this.xhr.readyState===XMLHttpRequest.HEADERS_RECEIVED){let e={},t=this.xhr.getAllResponseHeaders().trim().split(`\r
|
|
62
62
|
`);for(let n of t){let[t,...r]=n.split(`:`),i=r.join(`:`).trim();e[t.trim().toLowerCase()]=e[t.trim().toLowerCase()]||[],e[t.trim().toLowerCase()].push(i)}let n=new CustomEvent(`open`);n.responseCode=this.xhr.status,n.headers=e,this.dispatchEvent(n),this._setReadyState(Sf.OPEN)}},this.stream=function(){if(!this.xhr){this._setReadyState(Sf.CONNECTING),this.xhr=new XMLHttpRequest,this.xhr.addEventListener(`progress`,this._onStreamProgress.bind(this)),this.xhr.addEventListener(`load`,this._onStreamLoaded.bind(this)),this.xhr.addEventListener(`readystatechange`,this._onReadyStateChange.bind(this)),this.xhr.addEventListener(`error`,this._onStreamFailure.bind(this)),this.xhr.addEventListener(`abort`,this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url);for(let e in this.headers)this.xhr.setRequestHeader(e,this.headers[e]);this.useLastEventId&&this.lastEventId.length>0&&this.xhr.setRequestHeader(`Last-Event-ID`,this.lastEventId),this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload)}},this.close=function(){this.reconnectTimer&&=(clearTimeout(this.reconnectTimer),null),this.autoReconnect=!1,this.xhr&&this.xhr.abort()},(t.start===void 0||t.start)&&this.stream()};Sf.INITIALIZING=-1,Sf.CONNECTING=0,Sf.OPEN=1,Sf.CLOSED=2;var Cf=class{eventSource;triggeredOnClose=!1;constructor(e,t,n){this.options=t,this.payload=n;let r={headers:{"content-type":`application/json`}};n&&(r.payload=JSON.stringify(n)),t.apiKey&&(r.headers[`api-key`]=t.apiKey),this.eventSource=new(t.EventSource??Sf)(e,r),this.eventSource.onmessage=e=>{try{let n=JSON.parse(e.data);t.onMessage(n)}catch(e){t.onError(new CustomEvent(`parse-error`,{detail:e}))}},this.eventSource.onerror=e=>{t.onError(e),this.isClosed()&&this.close()}}isClosed(){return this.eventSource.readyState===EventSource.CLOSED}close(){this.isClosed()||this.eventSource.close(),this.triggeredOnClose||(this.triggeredOnClose=!0,this.options.onClose())}},wf=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!=null)),Tf=class{constructor(e){this.options=e}getDefaultHeaders(e={}){let t={"Content-Type":`application/json`,...e};return this.options.apiKey&&(t[`api-key`]=this.options.apiKey),t}get speechRecognitionApiKey(){return this.options.speechRecognitionApiKey}async subscribeSse(e,t={},n){let r=wf(t);return this.options.apiKey&&(n.apiKey=this.options.apiKey),new Cf(`${this.options.apiUrl}${e}`,n,r)}async fetchData(e,t,n={},r={}){let i=`${this.options.apiUrl}${e}?${new URLSearchParams(wf(n)).toString()}`,a={...r,headers:this.getDefaultHeaders(r?.headers)},o=await fetch(i,a);if(!o.ok){let e=await o.text();throw Error(`API request failed: ${o.status} - ${e}`)}let s=await o.json(),{success:c,data:l,error:u}=t.safeParse(s);if(this.options.strict){if(!c)throw console.error(`Server response has wrong type:
|
|
63
63
|
`,{error:u,url:i,opts:a,data:s}),Error(`Server response has wrong type: ${u.message}`);return l}else return c||console.warn(`Server response has wrong type:
|
|
@@ -386,7 +386,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
386
386
|
<p>
|
|
387
387
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec mauris diam, vestibulum vitae cursus et, hendrerit sed dolor. Sed quis nisl quis ipsum tempus hendrerit. <a href="https://www.liipgpt.ch/" target="_blank">Plus d'informations <span class="sr-only">, (ouvre dans un nouvel onglet)</span></a>
|
|
388
388
|
</p>
|
|
389
|
-
`,ariaMainNavigation:`Navigation principale`,ariaMainNavigationInfo:`À propos de ce chat`,ariaMainNavigationLinks:`Liens`,ariaMainNavigationLanguageSwitch:`Changement de langue`,ariaMainNavigationColorMode:`Mode couleur`,ariaGotoMainNavigation:`Aller à la navigation principale`,ariaAskQuestion:`Saisie texte`,ariaAskQuestionRegion:`Poser une question`,ariaNotifications:`Notifications`,ariaPredefinedQuestions:`Questions prédéfinies`,ariaPredefinedQuestionsRegion:`Essayez nos questions d'exemple`,ariaChatHistory:`Historique du chat`,ariaOpenChat:`Ouvrir le chat`,ariaQuestionFromYou:`Votre question:`,ariaAnswerFromBot:`Réponse {n} de l'Assistant:`,ariaLastAnswerNavigation:`Navigation et options pour la dernière réponse`,ariaQuestionSent:`Question envoyée. Génération de la réponse en cours...`,ariaAnswerReady:`Réponse prête.`,ariaAnswerFinished:`Réponse terminée. Posez une autre question ou naviguez en arrière pour consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAnswerFinishedWithSelectedTopic:`Réponse terminée. Posez une autre question ou naviguez en arrière pour changer le sujet sélectionné, consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAskQuestionAgain:`Copier la dernière question dans le champ de saisie pour la reposer`,ariaAnswerGood:`Évaluer cette réponse comme bonne`,ariaAnswerBad:`Évaluer cette réponse comme mauvaise`,ariaReferenceSource:`Source:`,ariaGiveFeedback:`Donner un feedback détaillé sur la réponse`,ariaAnswerForm:`Ouvrir le formulaire pour cette réponse`,ariaLanguageChanged:`Langue française sélectionnée.`,ariaLightSelected:`Mode clair activé.`,ariaDarkSelected:`Mode sombre activé.`,ariaSettings:`Paramètres du chat`,ariaSettingsRegion:`Ajustez vos préférences de chat`,ariaReferencesRegion:`Références pour la question actuelle`,ariaOpensInNewTab:`(ouvre dans un nouvel onglet)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Fermer ce contenu en appuyant sur la touche Échap`,ariaInfoTitle:`À propos de ce chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`sélectionné`,ariaUnselected:`non sélectionné`,ariaAllSelected:`Tous les éléments sélectionnés`,ariaAllUnselected:`Tous les éléments non sélectionnés`,ariaAllReseted:`Éléments par défaut sélectionnés`,ariaChangeTopic:`Changer de sujet`,hideSettings:`Masquer les paramètres`,showSettings:`Paramètres`,chooseAtLeastOneOption:`Veuillez choisir au moins une option`,selectAll:`Tout sélectionner`,selectNone:`Tout désélectionner`,resetToDefaults:`Réinitialiser`,messageTooLong:`Votre message doit être plus court que {questionLengthLimit} caractères. Actuellement, il fait {questionLength} caractères`,selectedTopic:`Sujet sélectionné`,changeTopic:`Changer de sujet`,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.`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par l'intelligence artificielle et peuvent ne pas toujours être correctes.</p>`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,jsonLdEventDate:`Date`,jsonLdEventLocation:`Lieu`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Voir l'événement`,jsonLdCtaLabel:`En savoir plus`,jsonLdMapOpenMap:`Ouvrir la carte`,ariaJsonLdMapCanvas:`Carte`,ariaJsonLdEventCard:`Événement`,ariaJsonLdMapCard:`Localisation`,ariaJsonLdCtaCard:`Lien`}},Yf=e=>(e??=Jf,{de:(0,Rf.default)(Jf.de,e.de??{}),en:(0,Rf.default)(Jf.en,e.en??{}),fr:(0,Rf.default)(Jf.fr,e.fr??{}),it:(0,Rf.default)(Jf.it,e.it??{})}),Xf=e=>({init:e?.init??[],bot:{before:e?.bot?.before??[],after:e?.bot?.after??[]},user:{before:e?.user?.before??[],after:e?.user?.after??[]}}),Zf=e=>{let t;t=e.theme?.fineGrained?qf(e.theme?.fineGrained):Kf(e?.theme??{});let n=Yf(e?.translations),r={...e,forcePredefinedQuestions:e.forcePredefinedQuestions??!1,forceChatPage:e.forceChatPage??!1,showOverallFeedbackButton:e.showOverallFeedbackButton??!1,showOverallFeedbackEmail:e.showOverallFeedbackEmail??!0,showCloseChatButton:e.showCloseChatButton??!1,showContextInfo:e.showContextInfo??!1,showContextMenu:e.showContextMenu??!1,showReferencesByDefault:e.showReferencesByDefault??!1,showTextFeedback:e.showTextFeedback??!0,showExpandedSelectors:e.showExpandedSelectors??!1,inlineLayout:e.inlineLayout??!1,questionPrefix:e.questionPrefix??``,blockPII:e.blockPII??!1,allowAudioInput:e.allowAudioInput??!1,supportedLanguages:e.supportedLanguages??Object.keys(n),fullTheme:t,translations:n,buttonHref:e.buttonHref,addQueryToUrlParams:e.addQueryToUrlParams??!0,addRetrievalQuestionToUrlParams:e.addRetrievalQuestionToUrlParams??!1,renderKatex:e.renderKatex??!1,sendReferrer:e.sendReferrer??`all`,selectorsConfig:e.selectorsConfig??[],questionLengthLimit:e.questionLengthLimit??600,forceConsent:e.forceConsent??!1,askQuestionAgain:e.askQuestionAgain??!1,enableBackdrop:e.enableBackdrop??!1,parentPageContext:e.parentPageContext??{},messageAdditions:Xf(e.messageAdditions??{}),contextVersion:e.contextVersion??0};return e.classification&&(r.classification=e.classification),e.menu&&(r.menu=e.menu),e.answerForm&&(r.answerForm=e.answerForm),r},Qf=(e,t)=>t.includes(e),$f=(e,t)=>{if(Qf(e,t))return e;let n=ep();return Qf(n,t)?n:`en`},ep=()=>navigator.language.split(`-`)[0],tp=(e,t)=>{localStorage.setItem(`liipgpt:selectedLanguage`,e),t&&(t.lang=e)},np=e=>$f(localStorage.getItem(`liipgpt:selectedLanguage`),e),rp=(e,t,n)=>{if(!e)return``;if(e[t])return e[t];for(let t of n)if(e[t])return e[t];return e.en?e.en:Object.values(e).find(e=>typeof e==`string`&&e.length>0)??``},ip=(e,t)=>Array.from(new Set([e,...t,`en`,...Cd])),ap=(e,t,n,r)=>{for(let i of ip(n,r)){let n=e[i]?.selectors?.[t];if(n)return n}},op=o(((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}})),sp=Array(12).fill(0),cp=z(`<div class="sonner-loading-bar"></div>`),lp=z(`<div><div class="sonner-spinner"></div></div>`);function up(e,t){D(t,!0);let n=q(t,`visible`,7),r=q(t,`class`,7);var i={get visible(){return n()},set visible(e){n(e),k()},get class(){return r()},set class(e){r(e),k()}},a=lp(),o=N(a);return Yi(o,23,()=>sp,(e,t)=>`spinner-bar-${t}`,(e,t)=>{V(e,cp())}),E(o),E(a),L(e=>{Ea(a,1,e),K(a,`data-visible`,n())},[()=>ba([`sonner-loading-wrapper`,r()].filter(Boolean).join(` `))]),V(e,a),O(i)}J(up,{visible:{},class:{}},[],[],{mode:`open`});function dp(...e){return e.filter(Boolean).join(` `)}var fp=typeof document<`u`,pp=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function mp(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var hp=c(op(),1),gp=class extends Map{#e=new Map;#t=j(0);#n=j(0);#r=Lr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Lr===this.#r?j(e):xn(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return R(this.#t),!1;return R(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{R(this.#t);return}return R(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),M(this.#n,super.size),Tn(o);else if(i!==t){Tn(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Tn(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),M(n,-1)),r&&(M(this.#n,super.size),Tn(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;M(this.#n,0);for(var t of e.values())M(t,-1);Tn(this.#t),e.clear()}}#a(){R(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)R(n)}keys(){return R(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return R(this.#n),super.size}},_p=class{#e;#t;constructor(e,t){this.#e=e,this.#t=en(t)}get current(){return this.#t(),this.#e()}},vp=/\(.+\)/,yp=new Set([`all`,`print`,`screen`,`and`,`or`,`not`,`only`]),bp=class extends _p{constructor(e,t){let n=vp.test(e)||e.split(/[\s,]+/).some(e=>yp.has(e.trim()))?e:`(${e})`,r=window.matchMedia(n);super(()=>r.matches,e=>ni(r,`change`,e))}};new class{#e;#t;constructor(e={}){let{window:t=pp,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=en(e=>{let n=ni(t,`focusin`,e),r=ni(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?mp(this.#e):null}};var xp=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return pt(this.#t)}get(){let e=dt(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=dt(this.#t);return t===void 0?e:t}set(e){return ft(this.#t,e)}};function Sp(e,t){switch(e){case`post`:I(t);break;case`pre`:er(t);break}}function Cp(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;Sp(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Yr(()=>n(t,o));return o=t,r})}function wp(e,t,n){let r=tr(()=>{let i=!1;Cp(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});I(()=>r)}function Tp(e,t,n){Cp(e,`post`,t,n)}function Ep(e,t,n){Cp(e,`pre`,t,n)}Tp.pre=Ep;function Dp(e,t){wp(e,`post`,t)}function Op(e,t){wp(e,`pre`,t)}Dp.pre=Op;function kp(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 Ap(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 jp(e,t,n={},r){let{lazy:i=!1,once:a=!1,initialValue:o,debounce:s,throttle:c}=n,l=j(Dn(o)),u=j(!1),d=j(void 0),f=j(Dn([])),p=()=>{R(f).forEach(e=>e()),M(f,[],!0)},m=e=>{M(f,[...R(f),e],!0)},h=async(e,n,r=!1)=>{try{M(u,!0),M(d,void 0),p();let i=new AbortController;m(()=>i.abort());let a=await t(e,n,{data:R(l),refetching:r,onCleanup:m,signal:i.signal});return M(l,a,!0),a}catch(e){e instanceof DOMException&&e.name===`AbortError`||M(d,e,!0);return}finally{M(u,!1)}},g=s?kp(h,s):c?Ap(h,c):h,_=Array.isArray(e)?e:[e],v;return r((t,n)=>{a&&v||(v=t,g(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return R(l)},get loading(){return R(u)},get error(){return R(d)},mutate:e=>{M(l,e,!0)},refetch:t=>{let n=_.map(e=>e());return g(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function Mp(e,t,n){return jp(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];Tp(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function Np(e,t,n){return jp(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];Tp.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}Mp.pre=Np,new xp(`richColorsContext`);var Pp=new xp(`<Toaster/>`),Fp=0,Ip=class{#e=j(Dn([]));get toasts(){return R(this.#e)}set toasts(e){M(this.#e,e,!0)}#t=j(Dn([]));get heights(){return R(this.#t)}set heights(e){M(this.#t,e,!0)}#n=e=>{let t=this.toasts.findIndex(t=>t.id===e);return t===-1?null:t};addToast=e=>{fp&&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,updated:!0}};create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id&&e.id?.length>0?e.id:Fp++,i=e.dismissible===void 0?e.dismissable===void 0?!0:e.dismissable:e.dismissible,a=e.type===void 0?`default`:e.type;return Yr(()=>{this.toasts.find(e=>e.id===r)?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=>(Yr(()=>{if(e===void 0){this.toasts=this.toasts.map(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.#n(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=Lp(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=t?.id||Fp++;return this.create({component:e,id:n,...t}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{let t=this.#n(e.toastId);if(t===null){this.heights.push(e);return}this.heights[t]=e};reset=()=>{this.toasts=[],this.heights=[]}};function Lp(e){return e&&typeof e==`object`&&`status`in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}var Rp=new Ip;function zp(e,t){return Rp.create({message:e,...t})}var Bp=class{#e=A(()=>Rp.toasts.filter(e=>!e.dismiss));get toasts(){return R(this.#e)}},Vp=Object.assign(zp,{success:Rp.success,info:Rp.info,warning:Rp.warning,error:Rp.error,custom:Rp.custom,message:Rp.message,promise:Rp.promise,dismiss:Rp.dismiss,loading:Rp.loading,getActiveToasts:()=>Rp.toasts.filter(e=>!e.dismiss)});function Hp(e){return e.label!==void 0}function Up(){let e=j(Dn(typeof document<`u`?document.hidden:!1));return I(()=>ni(document,`visibilitychange`,()=>{M(e,document.hidden,!0)})),{get current(){return R(e)}}}var Wp=4e3,Gp=14,Kp=45,qp=200,Jp=.05,Yp={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Xp(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Zp(e){return 1/(1.5+Math.abs(e)/20)}var Qp=z(`<div><!></div>`),$p=z(`<button data-close-button=""><!></button>`),em=z(`<div data-icon=""><!> <!></div>`),tm=z(`<div data-description=""><!></div>`),nm=z(`<button data-button="" data-cancel=""> </button>`),rm=z(`<button data-button=""> </button>`),im=z(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),am=z(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function om(e,t){D(t,!0);let n=e=>{var t=B(),n=P(t),i=e=>{var t=Qp();U(N(t),v),E(t),L(e=>{Ea(t,1,e),K(t,`data-visible`,R(ye)===`loading`)},[()=>ba(dp(R(Me)?.loader,r()?.classes?.loader,`sonner-loader`))]),V(e,t)},a=e=>{{let t=A(()=>dp(R(Me)?.loader,r().classes?.loader)),n=A(()=>R(ye)===`loading`);up(e,{get class(){return R(t)},get visible(){return R(n)}})}};W(n,e=>{v()?e(i):e(a,-1)}),V(e,t)},r=q(t,`toast`,7),i=q(t,`index`,7),a=q(t,`expanded`,7),o=q(t,`invert`,7),s=q(t,`position`,7),c=q(t,`visibleToasts`,7),l=q(t,`expandByDefault`,7),u=q(t,`closeButton`,7),d=q(t,`interacting`,7),f=q(t,`cancelButtonStyle`,7,``),p=q(t,`actionButtonStyle`,7,``),m=q(t,`duration`,7),h=q(t,`descriptionClass`,7,``),g=q(t,`classes`,7),_=q(t,`unstyled`,7,!1),v=q(t,`loadingIcon`,7),y=q(t,`successIcon`,7),b=q(t,`errorIcon`,7),x=q(t,`warningIcon`,7),S=q(t,`closeIcon`,7),C=q(t,`infoIcon`,7),ee=q(t,`defaultRichColors`,7,!1),te=q(t,`swipeDirections`,7),ne=q(t,`closeButtonAriaLabel`,7),re=q(t,`pauseWhenPageIsHidden`,7),ie={...Yp},ae=j(!1),oe=j(!1),se=j(!1),ce=j(!1),le=j(!1),ue=j(0),de=j(0),fe=r().duration||m()||Wp,pe=j(null),me=j(void 0),he=j(null),ge=j(null),_e=A(()=>i()===0),ve=A(()=>i()+1<=c()),ye=A(()=>r().type),be=A(()=>r().dismissible===void 0?r().dismissable!==!1:r().dismissible!==!1),xe=A(()=>r().class||``),Se=A(()=>r().descriptionClass||``),Ce=A(()=>Rp.heights.findIndex(e=>e.toastId===r().id)||0),we=A(()=>r().closeButton??u()),Te=A(()=>r().duration??m()??Wp),Ee=null,De=A(()=>s().split(`-`)),Oe=A(()=>Rp.heights.reduce((e,t,n)=>n>=R(Ce)?e:e+t.height,0)),ke=Up(),Ae=A(()=>r().invert||o()),je=A(()=>R(ye)===`loading`),Me=A(()=>({...ie,...g()})),Ne=A(()=>r().title),Pe=A(()=>r().description),Fe=j(0),Ie=j(0),Le=A(()=>Math.round(R(Ce)*Gp+R(Oe)));I(()=>{R(Ne),R(Pe);let e;e=a()||l()?1:1-i()*Jp;let t=Yr(()=>R(me));if(t===void 0)return;t.style.setProperty(`height`,`auto`);let n=t.offsetHeight,o=t.getBoundingClientRect().height,s=Math.round(o/e+2**-52&100)/100;t.style.removeProperty(`height`);let c;c=Math.abs(s-n)<1?s:n,M(de,c,!0),Rp.setHeight({toastId:r().id,height:c})});function Re(){M(oe,!0),M(ue,R(Le),!0),Rp.removeHeight(r().id),setTimeout(()=>{Rp.remove(r().id)},qp)}let ze,Be=A(()=>r().promise&&R(ye)===`loading`||r().duration===1/0);function Ve(){M(Fe,new Date().getTime(),!0),ze=setTimeout(()=>{r().onAutoClose?.(r()),Re()},fe)}function He(){if(R(Ie)<R(Fe)){let e=new Date().getTime()-R(Fe);fe-=e}M(Ie,new Date().getTime(),!0)}I(()=>{r().updated&&(clearTimeout(ze),fe=R(Te),Ve())}),I(()=>(R(Be)||(a()||d()||re()&&ke.current?He():Ve()),()=>clearTimeout(ze))),Fi(()=>{M(ae,!0);let e=R(me)?.getBoundingClientRect().height;return M(de,e,!0),Rp.setHeight({toastId:r().id,height:e}),()=>{Rp.removeHeight(r().id)}}),I(()=>{r().delete&&Yr(()=>{Re(),r().onDismiss?.(r())})});let Ue=e=>{if(R(je))return;M(ue,R(Le),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(M(se,!0),Ee={x:e.clientX,y:e.clientY})},We=()=>{if(R(ce)||!R(be))return;Ee=null;let e=Number(R(me)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(R(me)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(R(pe)?.getTime()??0),i=R(he)===`x`?e:t,a=Math.abs(i)/n;if(Math.abs(i)>=Kp||a>.11){M(ue,R(Le),!0),r().onDismiss?.(r()),R(he)===`x`?M(ge,e>0?`right`:`left`,!0):M(ge,t>0?`down`:`up`,!0),Re(),M(ce,!0);return}else R(me)?.style.setProperty(`--swipe-amount-x`,`0px`),R(me)?.style.setProperty(`--swipe-amount-y`,`0px`);M(le,!1),M(se,!1),M(he,null)},Ge=e=>{if(!Ee||!R(be)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Ee.y,n=e.clientX-Ee.x,r=te()??Xp(s());!R(he)&&(Math.abs(n)>1||Math.abs(t)>1)&&M(he,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(R(he)===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*Zp(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(R(he)===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*Zp(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&M(le,!0),R(me)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),R(me)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},Ke=()=>{M(se,!1),M(he,null),Ee=null},qe=A(()=>r().icon?r().icon:R(ye)===`success`?y():R(ye)===`error`?b():R(ye)===`warning`?x():R(ye)===`info`?C():R(ye)===`loading`?v():null);var Je={get toast(){return r()},set toast(e){r(e),k()},get index(){return i()},set index(e){i(e),k()},get expanded(){return a()},set expanded(e){a(e),k()},get invert(){return o()},set invert(e){o(e),k()},get position(){return s()},set position(e){s(e),k()},get visibleToasts(){return c()},set visibleToasts(e){c(e),k()},get expandByDefault(){return l()},set expandByDefault(e){l(e),k()},get closeButton(){return u()},set closeButton(e){u(e),k()},get interacting(){return d()},set interacting(e){d(e),k()},get cancelButtonStyle(){return f()},set cancelButtonStyle(e=``){f(e),k()},get actionButtonStyle(){return p()},set actionButtonStyle(e=``){p(e),k()},get duration(){return m()},set duration(e){m(e),k()},get descriptionClass(){return h()},set descriptionClass(e=``){h(e),k()},get classes(){return g()},set classes(e){g(e),k()},get unstyled(){return _()},set unstyled(e=!1){_(e),k()},get loadingIcon(){return v()},set loadingIcon(e){v(e),k()},get successIcon(){return y()},set successIcon(e){y(e),k()},get errorIcon(){return b()},set errorIcon(e){b(e),k()},get warningIcon(){return x()},set warningIcon(e){x(e),k()},get closeIcon(){return S()},set closeIcon(e){S(e),k()},get infoIcon(){return C()},set infoIcon(e){C(e),k()},get defaultRichColors(){return ee()},set defaultRichColors(e=!1){ee(e),k()},get swipeDirections(){return te()},set swipeDirections(e){te(e),k()},get closeButtonAriaLabel(){return ne()},set closeButtonAriaLabel(e){ne(e),k()},get pauseWhenPageIsHidden(){return re()},set pauseWhenPageIsHidden(e){re(e),k()}},T=am();K(T,`tabindex`,0);let Ye;var Xe=N(T),Ze=e=>{var t=$p();U(N(t),()=>S()??w),E(t),L(e=>{K(t,`aria-label`,ne()),K(t,`data-disabled`,R(je)),Ea(t,1,e)},[()=>ba(dp(R(Me)?.closeButton,r()?.classes?.closeButton))]),ii(`click`,t,()=>{R(je)||!R(be)||(Re(),r().onDismiss?.(r()))}),V(e,t)};W(Xe,e=>{R(we)&&!r().component&&R(ye)!==`loading`&&S()!==null&&e(Ze)});var Qe=F(Xe,2),$e=e=>{let t=A(()=>r().component);var n=B();G(P(n),()=>R(t),(e,t)=>{t(e,po(()=>r().componentProps,{closeToast:Re}))}),V(e,n)},et=e=>{var t=im(),i=P(t),a=e=>{var t=em(),i=N(t),a=e=>{var t=B(),i=P(t),a=e=>{var t=B();G(P(t),()=>r().icon,(e,t)=>{t(e,{})}),V(e,t)},o=e=>{n(e)};W(i,e=>{r().icon?e(a):e(o,-1)}),V(e,t)};W(i,e=>{(r().promise||R(ye)===`loading`)&&e(a)});var o=F(i,2),s=e=>{var t=B(),n=P(t),i=e=>{var t=B();G(P(t),()=>r().icon,(e,t)=>{t(e,{})}),V(e,t)},a=e=>{var t=B();U(P(t),()=>y()??w),V(e,t)},o=e=>{var t=B();U(P(t),()=>b()??w),V(e,t)},s=e=>{var t=B();U(P(t),()=>x()??w),V(e,t)},c=e=>{var t=B();U(P(t),()=>C()??w),V(e,t)};W(n,e=>{r().icon?e(i):R(ye)===`success`?e(a,1):R(ye)===`error`?e(o,2):R(ye)===`warning`?e(s,3):R(ye)===`info`&&e(c,4)}),V(e,t)};W(o,e=>{r().type!==`loading`&&e(s)}),E(t),L(e=>Ea(t,1,e),[()=>ba(dp(R(Me)?.icon,r()?.classes?.icon))]),V(e,t)};W(i,e=>{(R(ye)||r().icon||r().promise)&&r().icon!==null&&(R(qe)!==null||r().icon)&&e(a)});var o=F(i,2),s=N(o),c=N(s),l=e=>{var t=B(),n=P(t),i=e=>{let t=A(()=>r().title);var n=B();G(P(n),()=>R(t),(e,t)=>{t(e,po(()=>r().componentProps))}),V(e,n)},a=e=>{var t=mi();L(()=>H(t,r().title)),V(e,t)};W(n,e=>{typeof r().title==`string`?e(a,-1):e(i)}),V(e,t)};W(c,e=>{r().title&&e(l)}),E(s);var u=F(s,2),d=e=>{var t=tm(),n=N(t),i=e=>{let t=A(()=>r().description);var n=B();G(P(n),()=>R(t),(e,t)=>{t(e,po(()=>r().componentProps))}),V(e,n)},a=e=>{var t=mi();L(()=>H(t,r().description)),V(e,t)};W(n,e=>{typeof r().description==`string`?e(a,-1):e(i)}),E(t),L(e=>Ea(t,1,e),[()=>ba(dp(h(),R(Se),R(Me)?.description,r().classes?.description))]),V(e,t)};W(u,e=>{r().description&&e(d)}),E(o);var m=F(o,2),g=e=>{var t=B(),n=P(t),i=e=>{var t=B();G(P(t),()=>r().cancel,(e,t)=>{t(e,{})}),V(e,t)},a=e=>{var t=nm(),n=N(t,!0);E(t),L(e=>{Oa(t,r().cancelButtonStyle??f()),Ea(t,1,e),H(n,r().cancel.label)},[()=>ba(dp(R(Me)?.cancelButton,r()?.classes?.cancelButton))]),ii(`click`,t,e=>{Hp(r().cancel)&&R(be)&&(r().cancel?.onClick?.(e),Re())}),V(e,t)},o=A(()=>Hp(r().cancel));W(n,e=>{typeof r().cancel==`function`?e(i):R(o)&&e(a,1)}),V(e,t)};W(m,e=>{r().cancel&&e(g)});var _=F(m,2),v=e=>{var t=B(),n=P(t),i=e=>{var t=B();G(P(t),()=>r().action,(e,t)=>{t(e,{})}),V(e,t)},a=e=>{var t=rm(),n=N(t,!0);E(t),L(e=>{Oa(t,r().actionButtonStyle??p()),Ea(t,1,e),H(n,r().action.label)},[()=>ba(dp(R(Me)?.actionButton,r()?.classes?.actionButton))]),ii(`click`,t,e=>{Hp(r().action)&&(r().action?.onClick(e),!e.defaultPrevented&&Re())}),V(e,t)},o=A(()=>Hp(r().action));W(n,e=>{typeof r().action==`function`?e(i):R(o)&&e(a,1)}),V(e,t)};W(_,e=>{r().action&&e(v)}),L((e,t)=>{Ea(o,1,e),Ea(s,1,t)},[()=>ba(dp(R(Me)?.content,r()?.classes?.content)),()=>ba(dp(R(Me)?.title,r()?.classes?.title))]),V(e,t)};return W(Qe,e=>{r().component?e($e):e(et,-1)}),E(T),oo(T,e=>M(me,e),()=>R(me)),L((e,n,a)=>{Ea(T,1,e),K(T,`aria-live`,r().important?`assertive`:`polite`),K(T,`data-rich-colors`,r().richColors??ee()),K(T,`data-styled`,!(r().component||r().unstyled||_())),K(T,`data-mounted`,R(ae)),K(T,`data-promise`,n),K(T,`data-swiped`,R(le)),K(T,`data-removed`,R(oe)),K(T,`data-visible`,R(ve)),K(T,`data-y-position`,R(De)[0]),K(T,`data-x-position`,R(De)[1]),K(T,`data-index`,i()),K(T,`data-front`,R(_e)),K(T,`data-swiping`,R(se)),K(T,`data-dismissible`,R(be)),K(T,`data-type`,R(ye)),K(T,`data-invert`,R(Ae)),K(T,`data-swipe-out`,R(ce)),K(T,`data-swipe-direction`,R(ge)),K(T,`data-expanded`,a),Ye=Oa(T,`${t.style} ${r().style}`,Ye,{"--index":i(),"--toasts-before":i(),"--z-index":Rp.toasts.length-i(),"--offset":`${R(oe)?R(ue):R(Le)}px`,"--initial-height":l()?`auto`:`${R(de)}px`})},[()=>ba(dp(t.class,R(xe),R(Me)?.toast,r()?.classes?.toast,R(Me)?.[R(ye)],r()?.classes?.[R(ye)])),()=>!!r().promise,()=>!!(a()||l()&&R(ae))]),ii(`pointermove`,T,Ge),ii(`pointerup`,T,We),ii(`pointerdown`,T,Ue),ri(`dragend`,T,Ke),V(e,T),O(Je)}ai([`pointermove`,`pointerup`,`pointerdown`,`click`]),J(om,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{}},[],[],{mode:`open`}),at();var sm=pi(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);function cm(e){V(e,sm())}J(cm,{},[],[],{mode:`open`});var lm=pi(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);function um(e){V(e,lm())}J(um,{},[],[],{mode:`open`});var dm=pi(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);function fm(e){V(e,dm())}J(fm,{},[],[],{mode:`open`});var pm=pi(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);function mm(e){V(e,pm())}J(mm,{},[],[],{mode:`open`});var hm=pi(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function gm(e){V(e,hm())}J(gm,{},[],[],{mode:`open`});var _m=3,vm=`24px`,ym=`16px`,bm=4e3,xm=356,Sm=14,Cm=`dark`,wm=`light`;function Tm(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?ym:vm;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var Em=z(`<ol></ol>`),Dm=z(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),Om={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
|
|
389
|
+
`,ariaMainNavigation:`Navigation principale`,ariaMainNavigationInfo:`À propos de ce chat`,ariaMainNavigationLinks:`Liens`,ariaMainNavigationLanguageSwitch:`Changement de langue`,ariaMainNavigationColorMode:`Mode couleur`,ariaGotoMainNavigation:`Aller à la navigation principale`,ariaAskQuestion:`Saisie texte`,ariaAskQuestionRegion:`Poser une question`,ariaNotifications:`Notifications`,ariaPredefinedQuestions:`Questions prédéfinies`,ariaPredefinedQuestionsRegion:`Essayez nos questions d'exemple`,ariaChatHistory:`Historique du chat`,ariaOpenChat:`Ouvrir le chat`,ariaQuestionFromYou:`Votre question:`,ariaAnswerFromBot:`Réponse {n} de l'Assistant:`,ariaLastAnswerNavigation:`Navigation et options pour la dernière réponse`,ariaQuestionSent:`Question envoyée. Génération de la réponse en cours...`,ariaAnswerReady:`Réponse prête.`,ariaAnswerFinished:`Réponse terminée. Posez une autre question ou naviguez en arrière pour consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAnswerFinishedWithSelectedTopic:`Réponse terminée. Posez une autre question ou naviguez en arrière pour changer le sujet sélectionné, consulter l'historique du chat, donner un avis ou voir les références liées à la réponse.`,ariaAskQuestionAgain:`Copier la dernière question dans le champ de saisie pour la reposer`,ariaAnswerGood:`Évaluer cette réponse comme bonne`,ariaAnswerBad:`Évaluer cette réponse comme mauvaise`,ariaReferenceSource:`Source:`,ariaGiveFeedback:`Donner un feedback détaillé sur la réponse`,ariaAnswerForm:`Ouvrir le formulaire pour cette réponse`,ariaLanguageChanged:`Langue française sélectionnée.`,ariaLightSelected:`Mode clair activé.`,ariaDarkSelected:`Mode sombre activé.`,ariaSettings:`Paramètres du chat`,ariaSettingsRegion:`Ajustez vos préférences de chat`,ariaReferencesRegion:`Références pour la question actuelle`,ariaOpensInNewTab:`(ouvre dans un nouvel onglet)`,ariaPageTitle:`Chatbot`,ariaCloseWithEsc:`Fermer ce contenu en appuyant sur la touche Échap`,ariaInfoTitle:`À propos de ce chatbot`,ariaFlyoutRegion:`Chatbot`,ariaSelected:`sélectionné`,ariaUnselected:`non sélectionné`,ariaAllSelected:`Tous les éléments sélectionnés`,ariaAllUnselected:`Tous les éléments non sélectionnés`,ariaAllReseted:`Éléments par défaut sélectionnés`,ariaChangeTopic:`Changer de sujet`,hideSettings:`Masquer les paramètres`,showSettings:`Paramètres`,chooseAtLeastOneOption:`Veuillez choisir au moins une option`,selectAll:`Tout sélectionner`,selectNone:`Tout désélectionner`,resetToDefaults:`Réinitialiser`,messageTooLong:`Votre message doit être plus court que {questionLengthLimit} caractères. Actuellement, il fait {questionLength} caractères`,selectedTopic:`Sujet sélectionné`,changeTopic:`Changer de sujet`,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.`,searchSummaryDisclaimer:`<p><strong>Je suis un assistant IA.</strong></p><p>Mes réponses sont générées par l'intelligence artificielle et peuvent ne pas toujours être correctes.</p>`,searchSummaryLoading:`Génération de la réponse…`,searchSummaryFollowUpPlaceholder:`Posez une question de suivi…`,searchSummaryFollowUpSubmit:`Continuer dans le chat`,ariaSearchSummaryExpand:`Afficher la réponse complète`,ariaSearchSummaryCollapse:`Réduire la réponse`,ariaSearchSummaryOptOut:`Désactiver la recherche IA`,ariaSearchSummaryFollowUpInput:`Poser une question de suivi`,jsonLdEventDate:`Date`,jsonLdEventLocation:`Lieu`,jsonLdEventDescription:`Infos`,jsonLdEventCtaLabel:`Voir l'événement`,jsonLdCtaLabel:`En savoir plus`,jsonLdMapOpenMap:`Ouvrir la carte`,ariaJsonLdMapCanvas:`Carte`,ariaJsonLdEventCard:`Événement`,ariaJsonLdMapCard:`Localisation`,ariaJsonLdCtaCard:`Lien`}},Yf=e=>(e??=Jf,{de:(0,Rf.default)(Jf.de,e.de??{}),en:(0,Rf.default)(Jf.en,e.en??{}),fr:(0,Rf.default)(Jf.fr,e.fr??{}),it:(0,Rf.default)(Jf.it,e.it??{})}),Xf=e=>({init:e?.init??[],bot:{before:e?.bot?.before??[],after:e?.bot?.after??[]},user:{before:e?.user?.before??[],after:e?.user?.after??[]}}),Zf=e=>{let t;t=e.theme?.fineGrained?qf(e.theme?.fineGrained):Kf(e?.theme??{});let n=Yf(e?.translations),r={...e,forcePredefinedQuestions:e.forcePredefinedQuestions??!1,forceChatPage:e.forceChatPage??!1,showOverallFeedbackButton:e.showOverallFeedbackButton??!1,showOverallFeedbackEmail:e.showOverallFeedbackEmail??!0,showCloseChatButton:e.showCloseChatButton??!1,showContextInfo:e.showContextInfo??!1,showContextMenu:e.showContextMenu??!1,showReferencesByDefault:e.showReferencesByDefault??!1,referencesLayout:e.referencesLayout??`aside`,showTextFeedback:e.showTextFeedback??!0,showExpandedSelectors:e.showExpandedSelectors??!1,inlineLayout:e.inlineLayout??!1,questionPrefix:e.questionPrefix??``,blockPII:e.blockPII??!1,allowAudioInput:e.allowAudioInput??!1,supportedLanguages:e.supportedLanguages??Object.keys(n),fullTheme:t,translations:n,buttonHref:e.buttonHref,addQueryToUrlParams:e.addQueryToUrlParams??!0,addRetrievalQuestionToUrlParams:e.addRetrievalQuestionToUrlParams??!1,renderKatex:e.renderKatex??!1,sendReferrer:e.sendReferrer??`all`,selectorsConfig:e.selectorsConfig??[],questionLengthLimit:e.questionLengthLimit??600,forceConsent:e.forceConsent??!1,askQuestionAgain:e.askQuestionAgain??!1,enableBackdrop:e.enableBackdrop??!1,parentPageContext:e.parentPageContext??{},messageAdditions:Xf(e.messageAdditions??{}),contextVersion:e.contextVersion??0};return e.classification&&(r.classification=e.classification),e.menu&&(r.menu=e.menu),e.answerForm&&(r.answerForm=e.answerForm),r},Qf=(e,t)=>t.includes(e),$f=(e,t)=>{if(Qf(e,t))return e;let n=ep();return Qf(n,t)?n:`en`},ep=()=>navigator.language.split(`-`)[0],tp=(e,t)=>{localStorage.setItem(`liipgpt:selectedLanguage`,e),t&&(t.lang=e)},np=e=>$f(localStorage.getItem(`liipgpt:selectedLanguage`),e),rp=(e,t,n)=>{if(!e)return``;if(e[t])return e[t];for(let t of n)if(e[t])return e[t];return e.en?e.en:Object.values(e).find(e=>typeof e==`string`&&e.length>0)??``},ip=(e,t)=>Array.from(new Set([e,...t,`en`,...Cd])),ap=(e,t,n,r)=>{for(let i of ip(n,r)){let n=e[i]?.selectors?.[t];if(n)return n}},op=o(((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}})),sp=Array(12).fill(0),cp=z(`<div class="sonner-loading-bar"></div>`),lp=z(`<div><div class="sonner-spinner"></div></div>`);function up(e,t){O(t,!0);let n=q(t,`visible`,7),r=q(t,`class`,7);var i={get visible(){return n()},set visible(e){n(e),A()},get class(){return r()},set class(e){r(e),A()}},a=lp(),o=P(a);return Yi(o,23,()=>sp,(e,t)=>`spinner-bar-${t}`,(e,t)=>{V(e,cp())}),D(o),D(a),L(e=>{Ea(a,1,e),K(a,`data-visible`,n())},[()=>ba([`sonner-loading-wrapper`,r()].filter(Boolean).join(` `))]),V(e,a),k(i)}J(up,{visible:{},class:{}},[],[],{mode:`open`});function dp(...e){return e.filter(Boolean).join(` `)}var fp=typeof document<`u`,pp=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function mp(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var hp=c(op(),1),gp=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=Lr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Lr===this.#r?M(e):bn(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return R(this.#t),!1;return R(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{R(this.#t);return}return R(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),N(this.#n,super.size),wn(o);else if(i!==t){wn(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&wn(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),wn(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);wn(this.#t),e.clear()}}#a(){R(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)R(n)}keys(){return R(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return R(this.#n),super.size}},_p=class{#e;#t;constructor(e,t){this.#e=e,this.#t=$t(t)}get current(){return this.#t(),this.#e()}},vp=/\(.+\)/,yp=new Set([`all`,`print`,`screen`,`and`,`or`,`not`,`only`]),bp=class extends _p{constructor(e,t){let n=vp.test(e)||e.split(/[\s,]+/).some(e=>yp.has(e.trim()))?e:`(${e})`,r=window.matchMedia(n);super(()=>r.matches,e=>ni(r,`change`,e))}};new class{#e;#t;constructor(e={}){let{window:t=pp,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=$t(e=>{let n=ni(t,`focusin`,e),r=ni(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?mp(this.#e):null}};var xp=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return ft(this.#t)}get(){let e=ut(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=ut(this.#t);return t===void 0?e:t}set(e){return dt(this.#t,e)}};function Sp(e,t){switch(e){case`post`:Qn(t);break;case`pre`:er(t);break}}function Cp(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;Sp(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Yr(()=>n(t,o));return o=t,r})}function wp(e,t,n){let r=tr(()=>{let i=!1;Cp(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});Qn(()=>r)}function Tp(e,t,n){Cp(e,`post`,t,n)}function Ep(e,t,n){Cp(e,`pre`,t,n)}Tp.pre=Ep;function Dp(e,t){wp(e,`post`,t)}function Op(e,t){wp(e,`pre`,t)}Dp.pre=Op;function kp(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 Ap(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 jp(e,t,n={},r){let{lazy:i=!1,once:a=!1,initialValue:o,debounce:s,throttle:c}=n,l=M(En(o)),u=M(!1),d=M(void 0),f=M(En([])),p=()=>{R(f).forEach(e=>e()),N(f,[],!0)},m=e=>{N(f,[...R(f),e],!0)},h=async(e,n,r=!1)=>{try{N(u,!0),N(d,void 0),p();let i=new AbortController;m(()=>i.abort());let a=await t(e,n,{data:R(l),refetching:r,onCleanup:m,signal:i.signal});return N(l,a,!0),a}catch(e){e instanceof DOMException&&e.name===`AbortError`||N(d,e,!0);return}finally{N(u,!1)}},g=s?kp(h,s):c?Ap(h,c):h,_=Array.isArray(e)?e:[e],v;return r((t,n)=>{a&&v||(v=t,g(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return R(l)},get loading(){return R(u)},get error(){return R(d)},mutate:e=>{N(l,e,!0)},refetch:t=>{let n=_.map(e=>e());return g(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function Mp(e,t,n){return jp(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];Tp(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function Np(e,t,n){return jp(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];Tp.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}Mp.pre=Np,new xp(`richColorsContext`);var Pp=new xp(`<Toaster/>`),Fp=0,Ip=class{#e=M(En([]));get toasts(){return R(this.#e)}set toasts(e){N(this.#e,e,!0)}#t=M(En([]));get heights(){return R(this.#t)}set heights(e){N(this.#t,e,!0)}#n=e=>{let t=this.toasts.findIndex(t=>t.id===e);return t===-1?null:t};addToast=e=>{fp&&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,updated:!0}};create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id&&e.id?.length>0?e.id:Fp++,i=e.dismissible===void 0?e.dismissable===void 0?!0:e.dismissable:e.dismissible,a=e.type===void 0?`default`:e.type;return Yr(()=>{this.toasts.find(e=>e.id===r)?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=>(Yr(()=>{if(e===void 0){this.toasts=this.toasts.map(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.#n(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=Lp(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=t?.id||Fp++;return this.create({component:e,id:n,...t}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{let t=this.#n(e.toastId);if(t===null){this.heights.push(e);return}this.heights[t]=e};reset=()=>{this.toasts=[],this.heights=[]}};function Lp(e){return e&&typeof e==`object`&&`status`in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}var Rp=new Ip;function zp(e,t){return Rp.create({message:e,...t})}var Bp=class{#e=j(()=>Rp.toasts.filter(e=>!e.dismiss));get toasts(){return R(this.#e)}},Vp=Object.assign(zp,{success:Rp.success,info:Rp.info,warning:Rp.warning,error:Rp.error,custom:Rp.custom,message:Rp.message,promise:Rp.promise,dismiss:Rp.dismiss,loading:Rp.loading,getActiveToasts:()=>Rp.toasts.filter(e=>!e.dismiss)});function Hp(e){return e.label!==void 0}function Up(){let e=M(En(typeof document<`u`?document.hidden:!1));return Qn(()=>ni(document,`visibilitychange`,()=>{N(e,document.hidden,!0)})),{get current(){return R(e)}}}var Wp=4e3,Gp=14,Kp=45,qp=200,Jp=.05,Yp={toast:``,title:``,description:``,loader:``,closeButton:``,cancelButton:``,actionButton:``,action:``,warning:``,error:``,success:``,default:``,info:``,loading:``};function Xp(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Zp(e){return 1/(1.5+Math.abs(e)/20)}var Qp=z(`<div><!></div>`),$p=z(`<button data-close-button=""><!></button>`),em=z(`<div data-icon=""><!> <!></div>`),tm=z(`<div data-description=""><!></div>`),nm=z(`<button data-button="" data-cancel=""> </button>`),rm=z(`<button data-button=""> </button>`),im=z(`<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>`,1),am=z(`<li aria-atomic="true" data-sonner-toast=""><!> <!></li>`);function om(e,t){O(t,!0);let n=e=>{var t=B(),n=F(t),i=e=>{var t=Qp();U(P(t),v),D(t),L(e=>{Ea(t,1,e),K(t,`data-visible`,R(ye)===`loading`)},[()=>ba(dp(R(Me)?.loader,r()?.classes?.loader,`sonner-loader`))]),V(e,t)},a=e=>{{let t=j(()=>dp(R(Me)?.loader,r().classes?.loader)),n=j(()=>R(ye)===`loading`);up(e,{get class(){return R(t)},get visible(){return R(n)}})}};W(n,e=>{v()?e(i):e(a,-1)}),V(e,t)},r=q(t,`toast`,7),i=q(t,`index`,7),a=q(t,`expanded`,7),o=q(t,`invert`,7),s=q(t,`position`,7),c=q(t,`visibleToasts`,7),l=q(t,`expandByDefault`,7),u=q(t,`closeButton`,7),d=q(t,`interacting`,7),f=q(t,`cancelButtonStyle`,7,``),p=q(t,`actionButtonStyle`,7,``),m=q(t,`duration`,7),h=q(t,`descriptionClass`,7,``),g=q(t,`classes`,7),_=q(t,`unstyled`,7,!1),v=q(t,`loadingIcon`,7),y=q(t,`successIcon`,7),b=q(t,`errorIcon`,7),x=q(t,`warningIcon`,7),S=q(t,`closeIcon`,7),C=q(t,`infoIcon`,7),ee=q(t,`defaultRichColors`,7,!1),te=q(t,`swipeDirections`,7),ne=q(t,`closeButtonAriaLabel`,7),re=q(t,`pauseWhenPageIsHidden`,7),ie={...Yp},ae=M(!1),oe=M(!1),se=M(!1),ce=M(!1),le=M(!1),ue=M(0),de=M(0),fe=r().duration||m()||Wp,pe=M(null),me=M(void 0),he=M(null),ge=M(null),_e=j(()=>i()===0),ve=j(()=>i()+1<=c()),ye=j(()=>r().type),be=j(()=>r().dismissible===void 0?r().dismissable!==!1:r().dismissible!==!1),xe=j(()=>r().class||``),Se=j(()=>r().descriptionClass||``),Ce=j(()=>Rp.heights.findIndex(e=>e.toastId===r().id)||0),we=j(()=>r().closeButton??u()),Te=j(()=>r().duration??m()??Wp),Ee=null,De=j(()=>s().split(`-`)),Oe=j(()=>Rp.heights.reduce((e,t,n)=>n>=R(Ce)?e:e+t.height,0)),ke=Up(),Ae=j(()=>r().invert||o()),je=j(()=>R(ye)===`loading`),Me=j(()=>({...ie,...g()})),Ne=j(()=>r().title),Pe=j(()=>r().description),Fe=M(0),Ie=M(0),Le=j(()=>Math.round(R(Ce)*Gp+R(Oe)));Qn(()=>{R(Ne),R(Pe);let e;e=a()||l()?1:1-i()*Jp;let t=Yr(()=>R(me));if(t===void 0)return;t.style.setProperty(`height`,`auto`);let n=t.offsetHeight,o=t.getBoundingClientRect().height,s=Math.round(o/e+2**-52&100)/100;t.style.removeProperty(`height`);let c;c=Math.abs(s-n)<1?s:n,N(de,c,!0),Rp.setHeight({toastId:r().id,height:c})});function Re(){N(oe,!0),N(ue,R(Le),!0),Rp.removeHeight(r().id),setTimeout(()=>{Rp.remove(r().id)},qp)}let ze,Be=j(()=>r().promise&&R(ye)===`loading`||r().duration===1/0);function Ve(){N(Fe,new Date().getTime(),!0),ze=setTimeout(()=>{r().onAutoClose?.(r()),Re()},fe)}function He(){if(R(Ie)<R(Fe)){let e=new Date().getTime()-R(Fe);fe-=e}N(Ie,new Date().getTime(),!0)}Qn(()=>{r().updated&&(clearTimeout(ze),fe=R(Te),Ve())}),Qn(()=>(R(Be)||(a()||d()||re()&&ke.current?He():Ve()),()=>clearTimeout(ze))),Fi(()=>{N(ae,!0);let e=R(me)?.getBoundingClientRect().height;return N(de,e,!0),Rp.setHeight({toastId:r().id,height:e}),()=>{Rp.removeHeight(r().id)}}),Qn(()=>{r().delete&&Yr(()=>{Re(),r().onDismiss?.(r())})});let Ue=e=>{if(R(je))return;N(ue,R(Le),!0);let t=e.target;t.setPointerCapture(e.pointerId),t.tagName!==`BUTTON`&&(N(se,!0),Ee={x:e.clientX,y:e.clientY})},We=()=>{if(R(ce)||!R(be))return;Ee=null;let e=Number(R(me)?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(R(me)?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(R(pe)?.getTime()??0),i=R(he)===`x`?e:t,a=Math.abs(i)/n;if(Math.abs(i)>=Kp||a>.11){N(ue,R(Le),!0),r().onDismiss?.(r()),R(he)===`x`?N(ge,e>0?`right`:`left`,!0):N(ge,t>0?`down`:`up`,!0),Re(),N(ce,!0);return}else R(me)?.style.setProperty(`--swipe-amount-x`,`0px`),R(me)?.style.setProperty(`--swipe-amount-y`,`0px`);N(le,!1),N(se,!1),N(he,null)},Ge=e=>{if(!Ee||!R(be)||(window.getSelection()?.toString().length??-1)>0)return;let t=e.clientY-Ee.y,n=e.clientX-Ee.x,r=te()??Xp(s());!R(he)&&(Math.abs(n)>1||Math.abs(t)>1)&&N(he,Math.abs(n)>Math.abs(t)?`x`:`y`,!0);let i={x:0,y:0};if(R(he)===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*Zp(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(R(he)===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*Zp(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&N(le,!0),R(me)?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),R(me)?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)},Ke=()=>{N(se,!1),N(he,null),Ee=null},T=j(()=>r().icon?r().icon:R(ye)===`success`?y():R(ye)===`error`?b():R(ye)===`warning`?x():R(ye)===`info`?C():R(ye)===`loading`?v():null);var qe={get toast(){return r()},set toast(e){r(e),A()},get index(){return i()},set index(e){i(e),A()},get expanded(){return a()},set expanded(e){a(e),A()},get invert(){return o()},set invert(e){o(e),A()},get position(){return s()},set position(e){s(e),A()},get visibleToasts(){return c()},set visibleToasts(e){c(e),A()},get expandByDefault(){return l()},set expandByDefault(e){l(e),A()},get closeButton(){return u()},set closeButton(e){u(e),A()},get interacting(){return d()},set interacting(e){d(e),A()},get cancelButtonStyle(){return f()},set cancelButtonStyle(e=``){f(e),A()},get actionButtonStyle(){return p()},set actionButtonStyle(e=``){p(e),A()},get duration(){return m()},set duration(e){m(e),A()},get descriptionClass(){return h()},set descriptionClass(e=``){h(e),A()},get classes(){return g()},set classes(e){g(e),A()},get unstyled(){return _()},set unstyled(e=!1){_(e),A()},get loadingIcon(){return v()},set loadingIcon(e){v(e),A()},get successIcon(){return y()},set successIcon(e){y(e),A()},get errorIcon(){return b()},set errorIcon(e){b(e),A()},get warningIcon(){return x()},set warningIcon(e){x(e),A()},get closeIcon(){return S()},set closeIcon(e){S(e),A()},get infoIcon(){return C()},set infoIcon(e){C(e),A()},get defaultRichColors(){return ee()},set defaultRichColors(e=!1){ee(e),A()},get swipeDirections(){return te()},set swipeDirections(e){te(e),A()},get closeButtonAriaLabel(){return ne()},set closeButtonAriaLabel(e){ne(e),A()},get pauseWhenPageIsHidden(){return re()},set pauseWhenPageIsHidden(e){re(e),A()}},E=am();K(E,`tabindex`,0);let Je;var Ye=P(E),Xe=e=>{var t=$p();U(P(t),()=>S()??w),D(t),L(e=>{K(t,`aria-label`,ne()),K(t,`data-disabled`,R(je)),Ea(t,1,e)},[()=>ba(dp(R(Me)?.closeButton,r()?.classes?.closeButton))]),ii(`click`,t,()=>{R(je)||!R(be)||(Re(),r().onDismiss?.(r()))}),V(e,t)};W(Ye,e=>{R(we)&&!r().component&&R(ye)!==`loading`&&S()!==null&&e(Xe)});var Ze=I(Ye,2),Qe=e=>{let t=j(()=>r().component);var n=B();G(F(n),()=>R(t),(e,t)=>{t(e,po(()=>r().componentProps,{closeToast:Re}))}),V(e,n)},$e=e=>{var t=im(),i=F(t),a=e=>{var t=em(),i=P(t),a=e=>{var t=B(),i=F(t),a=e=>{var t=B();G(F(t),()=>r().icon,(e,t)=>{t(e,{})}),V(e,t)},o=e=>{n(e)};W(i,e=>{r().icon?e(a):e(o,-1)}),V(e,t)};W(i,e=>{(r().promise||R(ye)===`loading`)&&e(a)});var o=I(i,2),s=e=>{var t=B(),n=F(t),i=e=>{var t=B();G(F(t),()=>r().icon,(e,t)=>{t(e,{})}),V(e,t)},a=e=>{var t=B();U(F(t),()=>y()??w),V(e,t)},o=e=>{var t=B();U(F(t),()=>b()??w),V(e,t)},s=e=>{var t=B();U(F(t),()=>x()??w),V(e,t)},c=e=>{var t=B();U(F(t),()=>C()??w),V(e,t)};W(n,e=>{r().icon?e(i):R(ye)===`success`?e(a,1):R(ye)===`error`?e(o,2):R(ye)===`warning`?e(s,3):R(ye)===`info`&&e(c,4)}),V(e,t)};W(o,e=>{r().type!==`loading`&&e(s)}),D(t),L(e=>Ea(t,1,e),[()=>ba(dp(R(Me)?.icon,r()?.classes?.icon))]),V(e,t)};W(i,e=>{(R(ye)||r().icon||r().promise)&&r().icon!==null&&(R(T)!==null||r().icon)&&e(a)});var o=I(i,2),s=P(o),c=P(s),l=e=>{var t=B(),n=F(t),i=e=>{let t=j(()=>r().title);var n=B();G(F(n),()=>R(t),(e,t)=>{t(e,po(()=>r().componentProps))}),V(e,n)},a=e=>{var t=mi();L(()=>H(t,r().title)),V(e,t)};W(n,e=>{typeof r().title==`string`?e(a,-1):e(i)}),V(e,t)};W(c,e=>{r().title&&e(l)}),D(s);var u=I(s,2),d=e=>{var t=tm(),n=P(t),i=e=>{let t=j(()=>r().description);var n=B();G(F(n),()=>R(t),(e,t)=>{t(e,po(()=>r().componentProps))}),V(e,n)},a=e=>{var t=mi();L(()=>H(t,r().description)),V(e,t)};W(n,e=>{typeof r().description==`string`?e(a,-1):e(i)}),D(t),L(e=>Ea(t,1,e),[()=>ba(dp(h(),R(Se),R(Me)?.description,r().classes?.description))]),V(e,t)};W(u,e=>{r().description&&e(d)}),D(o);var m=I(o,2),g=e=>{var t=B(),n=F(t),i=e=>{var t=B();G(F(t),()=>r().cancel,(e,t)=>{t(e,{})}),V(e,t)},a=e=>{var t=nm(),n=P(t,!0);D(t),L(e=>{Oa(t,r().cancelButtonStyle??f()),Ea(t,1,e),H(n,r().cancel.label)},[()=>ba(dp(R(Me)?.cancelButton,r()?.classes?.cancelButton))]),ii(`click`,t,e=>{Hp(r().cancel)&&R(be)&&(r().cancel?.onClick?.(e),Re())}),V(e,t)},o=j(()=>Hp(r().cancel));W(n,e=>{typeof r().cancel==`function`?e(i):R(o)&&e(a,1)}),V(e,t)};W(m,e=>{r().cancel&&e(g)});var _=I(m,2),v=e=>{var t=B(),n=F(t),i=e=>{var t=B();G(F(t),()=>r().action,(e,t)=>{t(e,{})}),V(e,t)},a=e=>{var t=rm(),n=P(t,!0);D(t),L(e=>{Oa(t,r().actionButtonStyle??p()),Ea(t,1,e),H(n,r().action.label)},[()=>ba(dp(R(Me)?.actionButton,r()?.classes?.actionButton))]),ii(`click`,t,e=>{Hp(r().action)&&(r().action?.onClick(e),!e.defaultPrevented&&Re())}),V(e,t)},o=j(()=>Hp(r().action));W(n,e=>{typeof r().action==`function`?e(i):R(o)&&e(a,1)}),V(e,t)};W(_,e=>{r().action&&e(v)}),L((e,t)=>{Ea(o,1,e),Ea(s,1,t)},[()=>ba(dp(R(Me)?.content,r()?.classes?.content)),()=>ba(dp(R(Me)?.title,r()?.classes?.title))]),V(e,t)};return W(Ze,e=>{r().component?e(Qe):e($e,-1)}),D(E),oo(E,e=>N(me,e),()=>R(me)),L((e,n,a)=>{Ea(E,1,e),K(E,`aria-live`,r().important?`assertive`:`polite`),K(E,`data-rich-colors`,r().richColors??ee()),K(E,`data-styled`,!(r().component||r().unstyled||_())),K(E,`data-mounted`,R(ae)),K(E,`data-promise`,n),K(E,`data-swiped`,R(le)),K(E,`data-removed`,R(oe)),K(E,`data-visible`,R(ve)),K(E,`data-y-position`,R(De)[0]),K(E,`data-x-position`,R(De)[1]),K(E,`data-index`,i()),K(E,`data-front`,R(_e)),K(E,`data-swiping`,R(se)),K(E,`data-dismissible`,R(be)),K(E,`data-type`,R(ye)),K(E,`data-invert`,R(Ae)),K(E,`data-swipe-out`,R(ce)),K(E,`data-swipe-direction`,R(ge)),K(E,`data-expanded`,a),Je=Oa(E,`${t.style} ${r().style}`,Je,{"--index":i(),"--toasts-before":i(),"--z-index":Rp.toasts.length-i(),"--offset":`${R(oe)?R(ue):R(Le)}px`,"--initial-height":l()?`auto`:`${R(de)}px`})},[()=>ba(dp(t.class,R(xe),R(Me)?.toast,r()?.classes?.toast,R(Me)?.[R(ye)],r()?.classes?.[R(ye)])),()=>!!r().promise,()=>!!(a()||l()&&R(ae))]),ii(`pointermove`,E,Ge),ii(`pointerup`,E,We),ii(`pointerdown`,E,Ue),ri(`dragend`,E,Ke),V(e,E),k(qe)}ai([`pointermove`,`pointerup`,`pointerdown`,`click`]),J(om,{toast:{},index:{},expanded:{},invert:{},position:{},visibleToasts:{},expandByDefault:{},closeButton:{},interacting:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},descriptionClass:{},classes:{},unstyled:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},defaultRichColors:{},swipeDirections:{},closeButtonAriaLabel:{},pauseWhenPageIsHidden:{}},[],[],{mode:`open`}),it();var sm=pi(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>`);function cm(e){V(e,sm())}J(cm,{},[],[],{mode:`open`});var lm=pi(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`);function um(e){V(e,lm())}J(um,{},[],[],{mode:`open`});var dm=pi(`<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>`);function fm(e){V(e,dm())}J(fm,{},[],[],{mode:`open`});var pm=pi(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>`);function mm(e){V(e,pm())}J(mm,{},[],[],{mode:`open`});var hm=pi(`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`);function gm(e){V(e,hm())}J(gm,{},[],[],{mode:`open`});var _m=3,vm=`24px`,ym=`16px`,bm=4e3,xm=356,Sm=14,Cm=`dark`,wm=`light`;function Tm(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?ym:vm;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{let r=e[t];r===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof r==`number`?`${r}px`:r}):o(a)}),n}var Em=z(`<ol></ol>`),Dm=z(`<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-s0xby2"><!></section>`),Om={hash:`svelte-s0xby2`,code:`html[dir='ltr'],
|
|
390
390
|
[data-sonner-toaster][dir='ltr'] {--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%);}html[dir='rtl'],
|
|
391
391
|
[data-sonner-toaster][dir='rtl'] {--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%);}[data-sonner-toaster] {position:fixed;width:var(--width);font-family:ui-sans-serif,
|
|
392
392
|
system-ui,
|
|
@@ -528,22 +528,22 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
528
528
|
.sonner-loading-bar {transition:none !important;
|
|
529
529
|
animation: none !important;}
|
|
530
530
|
}.sonner-loader {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transform-origin:center;transition:opacity 200ms,
|
|
531
|
-
transform 200ms;}.sonner-loader[data-visible='false'] {opacity:0;transform:scale(0.8) translate(-50%, -50%);}`};function km(e,t){D(t,!0),ha(e,Om);function n(e){return e===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?Cm:wm:e}let r=q(t,`invert`,7,!1),i=q(t,`position`,7,`bottom-right`),a=q(t,`hotkey`,23,()=>[`altKey`,`KeyT`]),o=q(t,`expand`,7,!1),s=q(t,`closeButton`,7,!1),c=q(t,`offset`,7,vm),l=q(t,`mobileOffset`,7,ym),u=q(t,`theme`,7,`light`),d=q(t,`richColors`,7,!1),f=q(t,`duration`,7,bm),p=q(t,`visibleToasts`,7,_m),m=q(t,`toastOptions`,23,()=>({})),h=q(t,`dir`,7,`auto`),g=q(t,`gap`,7,Sm),_=q(t,`pauseWhenPageIsHidden`,7,!1),v=q(t,`loadingIcon`,7),y=q(t,`successIcon`,7),b=q(t,`errorIcon`,7),x=q(t,`warningIcon`,7),S=q(t,`closeIcon`,7),C=q(t,`infoIcon`,7),ee=q(t,`containerAriaLabel`,7,`Notifications`),te=q(t,`class`,7),ne=q(t,`closeButtonAriaLabel`,7,`Close toast`),re=q(t,`onblur`,7),ie=q(t,`onfocus`,7),ae=q(t,`onmouseenter`,7),oe=q(t,`onmousemove`,7),se=q(t,`onmouseleave`,7),ce=q(t,`ondragend`,7),le=q(t,`onpointerdown`,7),ue=q(t,`onpointerup`,7),de=uo(t,`$$slots.$$events.$$legacy.$$host.invert.position.hotkey.expand.closeButton.offset.mobileOffset.theme.richColors.duration.visibleToasts.toastOptions.dir.gap.pauseWhenPageIsHidden.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.containerAriaLabel.class.closeButtonAriaLabel.onblur.onfocus.onmouseenter.onmousemove.onmouseleave.ondragend.onpointerdown.onpointerup`.split(`.`));function fe(){if(h()!==`auto`)return h();if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?(Yr(()=>h(window.getComputedStyle(document.documentElement).direction??`ltr`)),h()):(Yr(()=>h(e)),e)}let pe=A(()=>Array.from(new Set([i(),...Rp.toasts.filter(e=>e.position).map(e=>e.position)].filter(Boolean)))),me=j(!1),he=j(!1),ge=j(Dn(n(u()))),_e=j(void 0),ve=j(null),ye=j(!1),be=A(()=>a().join(`+`).replace(/Key/g,``).replace(/Digit/g,``));I(()=>{Rp.toasts.length<=1&&M(me,!1)}),I(()=>{let e=Rp.toasts.filter(e=>e.dismiss&&!e.delete);e.length>0&&(Rp.toasts=Rp.toasts.map(t=>e.find(e=>e.id===t.id)?{...t,delete:!0}:t))}),I(()=>()=>{R(_e)&&R(ve)&&(R(ve).focus({preventScroll:!0}),M(ve,null),M(ye,!1))}),Fi(()=>(Rp.reset(),ni(document,`keydown`,e=>{a().every(t=>e[t]||e.code===t)&&(M(me,!0),R(_e)?.focus()),e.code===`Escape`&&(document.activeElement===R(_e)||R(_e)?.contains(document.activeElement))&&M(me,!1)}))),I(()=>{if(u()!==`system`&&M(ge,u()),typeof window<`u`){u()===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?M(ge,Cm):M(ge,wm));let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=({matches:e})=>{u()===`system`&&M(ge,e?Cm:wm,!0)};`addEventListener`in e?e.addEventListener(`change`,t):e.addListener(t)}});let xe=e=>{re()?.(e),R(ye)&&!e.currentTarget.contains(e.relatedTarget)&&(M(ye,!1),R(ve)&&(R(ve).focus({preventScroll:!0}),M(ve,null)))},Se=e=>{ie()?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&(R(ye)||(M(ye,!0),M(ve,e.relatedTarget,!0)))},Ce=e=>{le()?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&M(he,!0)},we=e=>{ae()?.(e),M(me,!0)},Te=e=>{se()?.(e),R(he)||M(me,!1)},Ee=e=>{oe()?.(e),M(me,!0)},De=e=>{ce()?.(e),M(me,!1)},Oe=e=>{ue()?.(e),M(he,!1)};Pp.set(new Bp);var ke={get invert(){return r()},set invert(e=!1){r(e),k()},get position(){return i()},set position(e=`bottom-right`){i(e),k()},get hotkey(){return a()},set hotkey(e=[`altKey`,`KeyT`]){a(e),k()},get expand(){return o()},set expand(e=!1){o(e),k()},get closeButton(){return s()},set closeButton(e=!1){s(e),k()},get offset(){return c()},set offset(e=vm){c(e),k()},get mobileOffset(){return l()},set mobileOffset(e=ym){l(e),k()},get theme(){return u()},set theme(e=`light`){u(e),k()},get richColors(){return d()},set richColors(e=!1){d(e),k()},get duration(){return f()},set duration(e=bm){f(e),k()},get visibleToasts(){return p()},set visibleToasts(e=_m){p(e),k()},get toastOptions(){return m()},set toastOptions(e={}){m(e),k()},get dir(){return h()},set dir(e=`auto`){h(e),k()},get gap(){return g()},set gap(e=Sm){g(e),k()},get pauseWhenPageIsHidden(){return _()},set pauseWhenPageIsHidden(e=!1){_(e),k()},get loadingIcon(){return v()},set loadingIcon(e){v(e),k()},get successIcon(){return y()},set successIcon(e){y(e),k()},get errorIcon(){return b()},set errorIcon(e){b(e),k()},get warningIcon(){return x()},set warningIcon(e){x(e),k()},get closeIcon(){return S()},set closeIcon(e){S(e),k()},get infoIcon(){return C()},set infoIcon(e){C(e),k()},get containerAriaLabel(){return ee()},set containerAriaLabel(e=`Notifications`){ee(e),k()},get class(){return te()},set class(e){te(e),k()},get closeButtonAriaLabel(){return ne()},set closeButtonAriaLabel(e=`Close toast`){ne(e),k()},get onblur(){return re()},set onblur(e){re(e),k()},get onfocus(){return ie()},set onfocus(e){ie(e),k()},get onmouseenter(){return ae()},set onmouseenter(e){ae(e),k()},get onmousemove(){return oe()},set onmousemove(e){oe(e),k()},get onmouseleave(){return se()},set onmouseleave(e){se(e),k()},get ondragend(){return ce()},set ondragend(e){ce(e),k()},get onpointerdown(){return le()},set onpointerdown(e){le(e),k()},get onpointerup(){return ue()},set onpointerup(e){ue(e),k()}},Ae=Dm();K(Ae,`tabindex`,-1);var je=N(Ae),Me=e=>{var n=B();Yi(P(n),18,()=>R(pe),e=>e,(e,n,i,a)=>{let u=A(()=>{let[e,t]=n.split(`-`);return{y:e,x:t}}),h=A(()=>Tm(c(),l()));var ee=Em();qa(ee,e=>({tabindex:-1,dir:e,class:te(),"data-sonner-toaster":!0,"data-sonner-theme":R(ge),"data-y-position":R(u).y,"data-x-position":R(u).x,style:t.style,onblur:xe,onfocus:Se,onmouseenter:we,onmousemove:Ee,onmouseleave:Te,ondragend:De,onpointerdown:Ce,onpointerup:Oe,...de,[Pa]:{"--front-toast-height":`${Rp.heights[0]?.height}px`,"--width":`${xm}px`,"--gap":`${g()}px`,"--offset-top":R(h)[`--offset-top`],"--offset-right":R(h)[`--offset-right`],"--offset-bottom":R(h)[`--offset-bottom`],"--offset-left":R(h)[`--offset-left`],"--mobile-offset-top":R(h)[`--mobile-offset-top`],"--mobile-offset-right":R(h)[`--mobile-offset-right`],"--mobile-offset-bottom":R(h)[`--mobile-offset-bottom`],"--mobile-offset-left":R(h)[`--mobile-offset-left`]}}),[()=>fe()],void 0,void 0,`svelte-s0xby2`),Yi(ee,23,()=>Rp.toasts.filter(e=>!e.position&&R(i)===0||e.position===n),e=>e.id,(e,t,i,a)=>{{let a=e=>{var t=B(),n=P(t),r=e=>{var t=B();U(P(t),()=>y()??w),V(e,t)},i=e=>{cm(e,{})};W(n,e=>{y()?e(r):y()!==null&&e(i,1)}),V(e,t)},c=e=>{var t=B(),n=P(t),r=e=>{var t=B();U(P(t),()=>b()??w),V(e,t)},i=e=>{um(e,{})};W(n,e=>{b()?e(r):b()!==null&&e(i,1)}),V(e,t)},l=e=>{var t=B(),n=P(t),r=e=>{var t=B();U(P(t),()=>x()??w),V(e,t)},i=e=>{fm(e,{})};W(n,e=>{x()?e(r):x()!==null&&e(i,1)}),V(e,t)},u=e=>{var t=B(),n=P(t),r=e=>{var t=B();U(P(t),()=>C()??w),V(e,t)},i=e=>{mm(e,{})};W(n,e=>{C()?e(r):C()!==null&&e(i,1)}),V(e,t)},h=e=>{var t=B(),n=P(t),r=e=>{var t=B();U(P(t),()=>S()??w),V(e,t)},i=e=>{gm(e,{})};W(n,e=>{S()?e(r):S()!==null&&e(i,1)}),V(e,t)},g=A(()=>m()?.duration??f()),ee=A(()=>m()?.class??``),te=A(()=>m()?.descriptionClass||``),re=A(()=>m()?.style??``),ie=A(()=>m().classes||{}),ae=A(()=>m().unstyled??!1),oe=A(()=>m()?.cancelButtonStyle??``),se=A(()=>m()?.actionButtonStyle??``),ce=A(()=>m()?.closeButtonAriaLabel??ne());om(e,{get index(){return R(i)},get toast(){return R(t)},get defaultRichColors(){return d()},get duration(){return R(g)},get class(){return R(ee)},get descriptionClass(){return R(te)},get invert(){return r()},get visibleToasts(){return p()},get closeButton(){return s()},get interacting(){return R(he)},get position(){return n},get style(){return R(re)},get classes(){return R(ie)},get unstyled(){return R(ae)},get cancelButtonStyle(){return R(oe)},get actionButtonStyle(){return R(se)},get closeButtonAriaLabel(){return R(ce)},get expandByDefault(){return o()},get expanded(){return R(me)},get pauseWhenPageIsHidden(){return _()},get loadingIcon(){return v()},successIcon:a,errorIcon:c,warningIcon:l,infoIcon:u,closeIcon:h,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),E(ee),oo(ee,e=>M(_e,e),()=>R(_e)),L(()=>ee.dir=ee.dir),V(e,ee)}),V(e,n)};return W(je,e=>{Rp.toasts.length>0&&e(Me)}),E(Ae),L(()=>K(Ae,`aria-label`,`${ee()??``} ${R(be)??``}`)),V(e,Ae),O(ke)}J(km,{invert:{},position:{},hotkey:{},expand:{},closeButton:{},offset:{},mobileOffset:{},theme:{},richColors:{},duration:{},visibleToasts:{},toastOptions:{},dir:{},gap:{},pauseWhenPageIsHidden:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},containerAriaLabel:{},class:{},closeButtonAriaLabel:{},onblur:{},onfocus:{},onmouseenter:{},onmousemove:{},onmouseleave:{},ondragend:{},onpointerdown:{},onpointerup:{}},[],[],{mode:`open`});var Am=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)},jm=(e,t)=>{let n={};return t.forEach(t=>{n[t]=e[t]}),n},Mm=console.warn,Nm=()=>{},Pm=(e,t)=>Yr(()=>{console.warn=Nm;let n=st(t?jm(e,t):e);return console.warn=Mm,n}),Fm=e=>e&&typeof e.then==`function`,Im=class{config;self;devtools;stateKeys;constructor(e,t){this.config=e,this.self=t,typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&(this.stateKeys=Am(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 Pm(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 Yr(()=>t.call(this.self,...r));let i=Pm(r);this.sendStart(e,i);try{let n=Yr(()=>t.call(this.self,...r));return Fm(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}},Lm=(e,t)=>{let n={},r=new Im(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},Rm={de:{aborted:`Verbindung zum Server wurde unerwartet unterbrochen. Bitte versuchen Sie es erneut.`,"client-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,"server-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,"sse-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,blocked:`Ihre Anfrage wurde blockiert.`,"pii-detected":`Es wurden persönliche Daten erkannt. Bitte entfernen Sie diese und versuchen Sie es erneut.`,"incomplete-error":`Ein unbekannter Fehler ist aufgetreten. Die Antwort könnte unvollständig sein.`,"unexpected-call":`Ein unbekannter Fehler ist aufgetreten. Die Antwort könnte unvollständig sein.`,"quota-reached":`Kontingent überschritten. Bitte versuchen Sie es später erneut.`,"rate-limit":`Kontingent überschritten. Bitte versuchen Sie es später erneut.`,maintenance:`Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.`,"too-long":`Ihre Frage war zu lang, versuchen Sie es mit einer Kürzeren.`,"too-short":`Ihre Frage war zu kurz, versuchen Sie es mit einer Längeren.`,"feedback-failed":`Feedback senden fehlgeschlagen. Bitte versuchen Sie es erneut.`,"answer-form-failed":`Formular konnte nicht gesendet werden. Bitte versuchen Sie es erneut.`,"speech-not-supported":`Spracherkennung wird nicht unterstützt.`,"speech-transcription-failed":`Sprachtranskription fehlgeschlagen.`,"speech-no-text-detected":`Kein Text in der Spracheingabe erkannt.`,"speech-microphone-access-denied":`Mikrofonzugriff verweigert.`},en:{aborted:`Connection to the server was unexpectedly interrupted. Please try again.`,"client-error":`An unknown error has occurred. Please try again.`,"server-error":`An unknown error has occurred. Please try again.`,"sse-error":`An unknown error has occurred. Please try again.`,blocked:`Your request has been blocked.`,"pii-detected":`Personal data has been detected. Please remove it and try again.`,"incomplete-error":`An unknown error has occurred. The response might be incomplete.`,"unexpected-call":`An unknown error has occurred. The response might be incomplete.`,"quota-reached":`Quota exceeded. Please try again later.`,"rate-limit":`Quota exceeded. Please try again later.`,maintenance:`The chat is currently unavailable. Please try again later.`,"too-long":`Your question was too long, try a shorter one.`,"too-short":`Your question was too short, try a longer one.`,"feedback-failed":`Failed to send feedback. Please try again.`,"answer-form-failed":`Failed to send the form. Please try again.`,"speech-not-supported":`Speech recognition is not supported.`,"speech-transcription-failed":`Speech transcription failed.`,"speech-no-text-detected":`No text detected in speech input.`,"speech-microphone-access-denied":`Microphone access denied.`},it:{aborted:`La connessione al server è stata interrotta inaspettatamente. Si prega di riprovare.`,"client-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,"server-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,"sse-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,blocked:`La tua richiesta è stata bloccata.`,"pii-detected":`Sono stati rilevati dati personali. Si prega di rimuoverli e riprovare.`,"incomplete-error":`Si è verificato un errore sconosciuto. La risposta potrebbe essere incompleta.`,"unexpected-call":`Si è verificato un errore sconosciuto. La risposta potrebbe essere incompleta.`,"quota-reached":`Quota superata. Si prega di riprovare più tardi.`,"rate-limit":`Quota superata. Si prega di riprovare più tardi.`,maintenance:`La chat non è attualmente disponibile. Si prega di riprovare più tardi.`,"too-long":`La tua domanda era troppo lunga, prova con una più breve.`,"too-short":`La tua domanda era troppo breve, prova con una più lunga.`,"feedback-failed":`Invio del feedback non riuscito. Si prega di riprovare.`,"answer-form-failed":`Invio del modulo non riuscito. Si prega di riprovare.`,"speech-not-supported":`Il riconoscimento vocale non è supportato.`,"speech-transcription-failed":`Trascrizione vocale fallita.`,"speech-no-text-detected":`Nessun testo rilevato nell'input vocale.`,"speech-microphone-access-denied":`Accesso al microfono negato.`},fr:{aborted:`La connexion au serveur a été interrompue de façon inattendue. Veuillez réessayer.`,"client-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"server-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"sse-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"pii-detected":`Des données personnelles ont été détectées. Veuillez les supprimer et réessayer.`,blocked:`Votre demande a été bloquée.`,"incomplete-error":`Une erreur inconnue s'est produite. La réponse pourrait être incomplète.`,"unexpected-call":`Une erreur inconnue s'est produite. La réponse pourrait être incomplète.`,"quota-reached":`Quota dépassé. Veuillez réessayer plus tard.`,"rate-limit":`Quota dépassé. Veuillez réessayer plus tard.`,maintenance:`Le chat est actuellement indisponible. Veuillez réessayer plus tard.`,"too-long":`Votre question était trop longue, essayez d'en poser une plus courte.`,"too-short":`Votre question était trop courte, essayez d'en poser une plus longue.`,"feedback-failed":`Échec de l'envoi du feedback. Veuillez réessayer.`,"answer-form-failed":`Échec de l'envoi du formulaire. Veuillez réessayer.`,"speech-not-supported":`La reconnaissance vocale n'est pas prise en charge.`,"speech-transcription-failed":`Échec de la transcription vocale.`,"speech-no-text-detected":`Aucun texte détecté dans l'entrée vocale.`,"speech-microphone-access-denied":`Accès au microphone refusé.`}},zm={de:{email:`Bitte keine E-Mail Adressen eingeben`,creditCard:`Bitte keine Kreditkarteninformationen eingeben`,ahv:`Bitte keine AHV-Nummern eingeben`,phoneSwiss:`Bitte keine Telefonnummern eingeben`,phoneInternational:`Bitte keine Telefonnummern eingeben`,swissPassport:`Bitte keine Passinformationen eingeben`,longNumber:`Bitte keine langen Nummern eingeben`},en:{email:`Please do not enter email addresses`,creditCard:`Please do not enter credit card information`,ahv:`Please do not enter AHV numbers`,phoneSwiss:`Please do not enter phone numbers`,phoneInternational:`Please do not enter phone numbers`,swissPassport:`Please do not enter passport information`,longNumber:`Please do not enter long numbers`},it:{email:`Si prega di non inserire indirizzi email`,creditCard:`Si prega di non inserire informazioni sulla carta di credito`,ahv:`Si prega di non inserire numeri AVS`,phoneSwiss:`Si prega di non inserire numeri di telefono`,phoneInternational:`Si prega di non inserire numeri di telefono`,swissPassport:`Si prega di non inserire informazioni sul passaporto`,longNumber:`Si prega di non inserire numeri lunghi`},fr:{email:`Veuillez ne pas saisir d'adresses e-mail`,creditCard:`Veuillez ne pas saisir d'informations de carte de crédit`,ahv:`Veuillez ne pas saisir de numéros AVS`,phoneSwiss:`Veuillez ne pas saisir de numéros de téléphone`,phoneInternational:`Veuillez ne pas saisir de numéros de téléphone`,swissPassport:`Veuillez ne pas saisir d'informations de passeport`,longNumber:`Veuillez ne pas saisir de longs numéros`}},Z=new class{#e=j(Dn({}));get data(){return R(this.#e)}set data(e){M(this.#e,e,!0)}#t=j(Dn({}));get targets(){return R(this.#t)}set targets(e){M(this.#t,e,!0)}#n=j(!1);get initialized(){return R(this.#n)}set initialized(e){M(this.#n,e,!0)}#r=j(0);get currentAudioVolume(){return R(this.#r)}set currentAudioVolume(e){M(this.#r,e,!0)}ariaLiveMessagesClearingTimeoutDuration=350;#i=j(null);get currentAudioRecorder(){return R(this.#i)}set currentAudioRecorder(e){M(this.#i,e,!0)}#a=j(!1);get isTranscribing(){return R(this.#a)}set isTranscribing(e){M(this.#a,e,!0)}#o=A(()=>{if(!this.initialized)return[];let e=this.data.chatConfig.menu;return e?e[this.data.language]??[]:[]});get menu(){return R(this.#o)}set menu(e){M(this.#o,e)}#s=A(()=>this.initialized?this.data.chatConfig.translations[this.data.language]??{}:{});get t(){return R(this.#s)}set t(e){M(this.#s,e)}#c=A(()=>this.initialized?Rm[this.data.language]??{}:Rm.en??{});get errorTranslations(){return R(this.#c)}set errorTranslations(e){M(this.#c,e)}#l=A(()=>this.initialized?zm[this.data.language]??{}:zm.en??{});get piiTranslations(){return R(this.#l)}set piiTranslations(e){M(this.#l,e)}#u=A(()=>this.initialized?this.data.currentColorScheme:`light`);get colorScheme(){return R(this.#u)}set colorScheme(e){M(this.#u,e)}#d=A(()=>this.initialized?this.data.chatConfig.fullTheme[this.data.currentColorScheme]:{});get themeBase(){return R(this.#d)}set themeBase(e){M(this.#d,e)}#f=A(()=>this.themeBase.tokens);get theme(){return R(this.#f)}set theme(e){M(this.#f,e)}#p=A(()=>{if(!this.initialized)return[];let e=[];for(let t of this.data.chatConfig.selectorsConfig)t.allowEmpty||(this.data.selectorValues[t.settingName]||[]).length===0&&e.push(t.settingName);return e});get selectorsWithErrors(){return R(this.#p)}set selectorsWithErrors(e){M(this.#p,e)}#m=A(()=>{if(!this.initialized)return{};let e=this.data.chatConfig,t={};for(let n of e.selectorsConfig){let r=ap(e.translations,n.settingName,this.data.language,e.supportedLanguages);r||console.error(`Missing translation for setting ${n.settingName} in all languages`),t[n.settingName]=r??{name:n.settingName,placeholder:``,values:{}}}return t});get selectorTranslations(){return R(this.#m)}set selectorTranslations(e){M(this.#m,e)}#h=A(()=>{if(!this.initialized)return!1;let e=this.data.chatConfig;return this.data.route.name===`chat-page`&&!e.forceChatPage||e.showContextInfo||e.showContextMenu||e.showCloseChatButton||this.data.props.flyout});get hasMainNavigationContent(){return R(this.#h)}set hasMainNavigationContent(e){M(this.#h,e)}#g=A(()=>{if(!this.initialized)return``;let e=this.t,t=this.data.chatConfig,n=this.data.route.name===`chat-page`&&!t.forceChatPage,r=[];return n&&r.push(e.newChat),t.showContextInfo&&r.push(e.ariaMainNavigationInfo),t.showContextMenu&&(this.menu.length>0&&r.push(e.ariaMainNavigationLinks),t.supportedLanguages.length>0&&r.push(e.ariaMainNavigationLanguageSwitch),this.data.has2ColorSchemes&&r.push(e.ariaMainNavigationColorMode)),(t.showCloseChatButton||this.data.props.flyout)&&r.push(e.closeChat),r.length===0?e.ariaMainNavigation:`${e.ariaMainNavigation}: ${r.join(`, `)}`});get ariaMainNavigationRegion(){return R(this.#g)}set ariaMainNavigationRegion(e){M(this.#g,e)}};async function Bm(){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 Vm(){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 Hm(){return typeof window>`u`?!1:!!(window.MediaRecorder&&Vm())}function Um(){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 Wm(){return typeof window>`u`?!1:!!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||Um())}var Gm=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(!Hm()||!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=Vm();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 Hm()}static getSupportedMediaType(){return Vm()}},Km=e=>(localStorage.setItem(`liipgpt-color-scheme`,e),Jm([`light`,`dark`])),qm=()=>{let e=localStorage.getItem(`liipgpt-color-scheme`);return e===`light`||e===`dark`?e:`system`},Jm=e=>{let t=qm();return t===`system`&&(t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),e.includes(t)?t:e[0]??`light`},Ym=Ss(),Xm=(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`)))},Zm=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&&Xm(e,n)}),Ym.sanitize(t.outerHTML,{FORBID_TAGS:[`style`,`script`],FORBID_ATTR:[`style`,`class`]})},Qm=e=>{if(!e?.length)return[];let t=e.join(`,`),n=document.querySelectorAll(t);return Array.from(n,Zm)},$m=`liipgpt:context`,eh=class{contextVersion=0;#e=j();get currentContext(){return R(this.#e)}set currentContext(e){M(this.#e,e,!0)}getFromLocalStorage(){let e=localStorage.getItem($m);if(e){let t;try{if(t=JSON.parse(e),t.version!==this.contextVersion){localStorage.removeItem($m);return}else return t.context}catch(e){console.error(`Failed to parse liipgpt:context`,e);return}}}storeToLocalStorage(){localStorage.setItem(`liipgpt:context`,JSON.stringify({version:Z.data.chatConfig.contextVersion,context:this.currentContext}))}constructor(e){this.init=e,this.currentContext=this.getFromLocalStorage()??e.initialValue}getContext(){return st(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))}},th=()=>localStorage.getItem($m),nh=`liipgpt:selectorValues`,rh=`liipgpt:selectorKnownDefaults`,ih=()=>{try{let e=bf.getItem(nh),t=bf.getItem(rh);return e?{values:JSON.parse(e),knownDefaults:t?JSON.parse(t):{}}:null}catch{return null}},ah=e=>{let t={};for(let n of e)t[n.settingName]=n.defaultValues??(n.allowEmpty?[]:[n.values[0]]).filter(Boolean);return t},oh=(e,t)=>{try{let n=ah(t);bf.setItem(nh,JSON.stringify(e)),bf.setItem(rh,JSON.stringify(n))}catch(e){console.error(`Failed to save selector values:`,e)}},sh=e=>{try{let t=ih();if(!t)return;delete t.values[e],delete t.knownDefaults[e],bf.setItem(nh,JSON.stringify(t.values)),bf.setItem(rh,JSON.stringify(t.knownDefaults))}catch(e){console.error(`Failed to clear selector saved state:`,e)}},ch=e=>{let t=ih(),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)},lh=class extends Error{constructor(e){super(e),this.name=`UnreachableError`}},uh=(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},dh=(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`}},fh=`follow-up-q`,ph=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e),mh=()=>{let e=new URLSearchParams(window.location.hash.replace(/^#/,``)).get(`cID`)??void 0;return{cID:e&&ph(e)?e:void 0,followUpQuestion:new URLSearchParams(window.location.search).get(fh)?.trim()||void 0}},hh=()=>{let e=new URLSearchParams(window.location.search);if(!e.has(fh))return;e.delete(fh);let t=e.toString();history.replaceState(null,``,`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`)},gh=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}},_h=e=>{let t=gh(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},vh=e=>e?e.map(e=>({id:pf(),...e})):[],yh,bh,xh,Sh=Lm({name:`chat-logic`,state:Z,excludeInDevTools:[`onInput`]},{async init(e){bh=e;let t=bh.speechRecognitionApiKey||void 0;yh=new Lf({apiUrl:bh.apiUrl,apiKey:bh.apiKey,speechRecognitionApiKey:t,strict:!0,startParameters:gh(bh.additionalStartParameters)});try{let e=await yh.getChatConfig();window.CHAT_CONFIG_OVERRIDE&&Object.assign(e,window.CHAT_CONFIG_OVERRIDE);let t=(await yh.getMetadata()).mode===`maintenance`;t&&this.showErrorToast(`maintenance`);let n=Zf(e);bh.inlineLayout!==void 0&&(n.inlineLayout=bh.inlineLayout),bh.forceChatPage!==void 0&&(n.forceChatPage=bh.forceChatPage);let r;r=bh.lang?$f(bh.lang,n.supportedLanguages):np(n.supportedLanguages),tp(r,Z.targets.mainElement);let i=await this.getPredefinedQuestions(r),a=n.translations[r]?.ariaOpensInNewTab;a&&yh.setNewTabSrText(a);let o=[];if(n.renderKatex){let e=await import(`https://esm.sh/marked-katex-extension@5.1.5`).catch(e=>{console.error(`Couldn't load marked-katex-extension:`,e)});e&&(yh.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=bf.getItem(`liipgpt:termsAccepted`)===`true`}catch(e){console.warn(`Failed to load terms acceptance from storage:`,e)}let l=uh(bh.autofirePredefinedQuestionId,i);Z.data={currentConversationState:`idle`,chatConfig:n,language:r,predefinedQuestions:i,isInMaintenance:t,history:vh(n.messageAdditions.init),selectedColorScheme:qm(),has2ColorSchemes:s.length===2,currentColorScheme:Jm(s),conversationFeedbackId:void 0,conversationFeedbackIsOpen:!1,answerFormMessageId:void 0,openedPopup:void 0,props:bh,flyoutIsOpen:!1,questionHasPii:void 0,chatInputValue:``,selectorValues:ch(n.selectorsConfig),selectorsIsOpen:!1,predefinedQuestionId:void 0,switchQuestionId:void 0,currentReferencesAsideId:void 0,ariaLiveStatusMessage:void 0,ariaLiveStatusMessageClearingTimeout:void 0,wasReferencesAsideClosed:!1,isAsideMobile:!0,route:dh(n.forceConsent??!1,c,n.forceChatPage??!1,l,bh.question),additionalStylesheets:o,hasOpenedOverlays:!1,isInlineLayoutContained:!1,termsAccepted:c,selectedTopic:void 0},window.LIIPGPT_LISTENERS?.route?.(Z.data.route),window.LIIPGPT_LISTENERS?.conversation?.(Z.data.currentConversationState),Z.data.selectorsIsOpen=Z.data.chatConfig.showExpandedSelectors??!1,Z.initialized=!0,this.checkForOpenedPopup(),window.addEventListener(`hashchange`,()=>{this.checkForOpenedPopup()}),await this.startFromHandoverOrRoute(()=>this.goto(dh(n.forceConsent??!1,c,n.forceChatPage??!1,l,bh.question),!0))}catch(e){throw Vp.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){Z.targets[e]=t},goto(e,t=!1){if(!(!t&&(0,hp.default)(Z.data.route,e)))switch(Z.data.route=e,window.LIIPGPT_LISTENERS?.route?.(e),e.name){case`consent-page`:break;case`start-page`:e.prefill&&(Z.data.chatInputValue=e.prefill);break;case`chat-page`:if(Z.data.chatInputValue=e.query??``,Z.data.predefinedQuestionId=e.predefinedQuestionId,Z.data.switchQuestionId=e.switchQuestionId,e.query&&(this.onSubmit(),Z.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=Z.data.chatConfig.selectorsConfig.find(t=>t.settingName===e);if(!t)throw Error(`Setting ${e} not found`);return t},getPrettifiedSelectorValues(){let e=Object.entries(Z.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}Z.data.selectorValues[e]=t,oh(Z.data.selectorValues,Z.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 sh(e),Z.data.selectorValues[e]=n,oh(Z.data.selectorValues,Z.data.chatConfig.selectorsConfig),n},async getPredefinedQuestions(e){if(bh?.hidePredefinedQuestions)return[];try{return yh.getPredefinedQuestions({url:window.location.origin+window.location.pathname,language:e})}catch(e){return console.warn(`Failed to load predefined questions:`,e),[]}},setColorScheme(e){Z.data.selectedColorScheme=e,Z.data.currentColorScheme=Km(e),this.setAriaLiveStatusMessage(e===`dark`?Z.t.ariaDarkSelected:Z.t.ariaLightSelected)},async abort(){await xh?.abort()},changeConversationState(e){Z.data.currentConversationState=e,window.LIIPGPT_LISTENERS?.conversation?.(e)},onInput(e){Z.data.chatConfig.blockPII&&(Z.data.questionHasPii=ol(e)),Z.data.chatInputValue=e,Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0},onSubmit(e=!1,t,n=!1){let r=Qm(Z.data.chatConfig.parentPageContext?.extractSelectors);if(Z.data.questionHasPii){console.warn(`Question contains PII, not submitting:`,Z.data.questionHasPii);return}let i=Z.data.chatConfig.questionPrefix?`${Z.data.chatConfig.questionPrefix} ${Z.data.chatInputValue}`:Z.data.chatInputValue;n||(Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.user.before)),Z.data.history.push({type:`user`,time:new Date().toISOString(),message:Z.data.chatInputValue}),Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.user.after)));let a=Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.bot.before));Z.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:bh.features?bh.features.trim().split(`,`):[`formatting`],mode:bh.mode||void 0,cache:bh.cache||void 0,onError:e=>{this.showErrorToast(e),window.LIIPGPT_LISTENERS?.error?.(e),(e===`pii-detected`||e===`blocked`)&&this.editLatestQuestion()},onMessage:e=>{e.type===`topic-selected`&&(Z.data.selectedTopic={label:e.label,placeholder:e.placeholder,locked:_h(bh.additionalStartParameters)}),e.type===`state`&&e.state!==`history-entry-initialized`&&!s&&(s=!0,this.setAriaLiveStatusMessage(Z.t.ariaQuestionSent))},lang:Z.data.language,selectorValues:{...this.getPrettifiedSelectorValues(),context:th(),...t},predefinedQuestionId:Z.data.predefinedQuestionId,switchQuestionId:Z.data.switchQuestionId,onEmbed:e=>{let t=Z.data.history[a];t&&t.type===`bot`&&!t.message.markdown?(Z.data.history[a]={...e,id:t.id??pf()},o=!0):Z.data.history.push({...e,id:pf()})}};Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0,r.length&&(c.selectorValues.parentPageContextHtml=r);let l=(e,t)=>{try{let n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname}catch{return!1}},u=Z.data.chatConfig.sendReferrer??`all`;if([`all`,`own`,`location`].includes(u)){let e=u===`location`||Z.data.props.flyout,t;t=e?`${window.location.protocol}//${window.location.host}${window.location.pathname}`:l(document.referrer,window.location.href)?null:document.referrer;let n=u===`own`&&!Z.data.props.flyout&&t&&!t.startsWith(window.location.origin);c.referrer=t&&!n?t:void 0}Z.data.props.source?c.source=Z.data.props.source:Z.data.props.flyout&&(c.source=`flyout`),Z.data.currentConversationId||(Z.data.currentConversationId=yh.createConversationId());let d=yh.chat(Z.data.currentConversationId,i,c);xh=d,Z.data.lastChatResponseId=d.id,Z.data.currentConversationState!==`searching`&&this.changeConversationState(`searching`);let f=!1,p,m=!!Z.data.currentReferencesAsideId;(e&&m||!e&&Z.data.chatConfig.showReferencesByDefault)&&(Z.data.isAsideMobile||this.openReferencesAside(d.id)),d.subscribe(e=>{if(!o&&Z.data.history[a]&&(Z.data.history[a]={question:Z.data.chatInputValue,...e}),Z.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}`))}Z.data.chatConfig.showReferencesByDefault&&!Z.data.wasReferencesAsideClosed&&Z.data.currentReferencesAsideId!==e.id&&!Z.data.isAsideMobile&&this.openReferencesAside(e.id),e.state===`streaming`&&Z.data.currentConversationState!==`answering`&&this.changeConversationState(`answering`),e.state===`done`&&(this.changeConversationState(`idle`),f||(f=!0,this.setAriaLiveStatusMessage(`${Z.t.ariaAnswerReady} ... ${e.message.text} ... ${Z.data.selectedTopic?Z.t.ariaAnswerFinishedWithSelectedTopic:Z.t.ariaAnswerFinished}`),Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.bot.after))),Z.data.currentReferencesAsideId&&e.references.used.length>0?(clearTimeout(p),p=setTimeout(()=>{this.openReferencesAside(e.id)},100)):this.closeReferencesAside())}),Z.data.chatInputValue=``},async onStartSpeechRecognition(){try{if(!await Bm()){this.showErrorToast(`speech-not-supported`);return}if(await navigator.mediaDevices.getUserMedia({audio:!0}),Gm.isSupported())Z.data.chatInputValue=``,Z.currentAudioRecorder=new Gm({onDataAvailable:async e=>{Z.isTranscribing=!0,await this.handleTranscription(e)},onError:()=>{this.showErrorToast(`speech-microphone-access-denied`),Z.currentAudioRecorder=null,Z.isTranscribing=!1},onVolumeChange:e=>{Z.currentAudioVolume=e}}),Z.currentAudioRecorder.start();else{this.showErrorToast(`speech-not-supported`);return}}catch(e){throw this.showErrorToast(`speech-microphone-access-denied`),Z.currentAudioRecorder=null,Z.isTranscribing=!1,e}},editLatestQuestion(){let e=Z.data.history.findLastIndex(e=>e?.type===`user`);if(e===-1){console.error(`No last user question, available`);return}let t=Z.data.history.splice(e)[0];Z.data.chatInputValue=t.message},onStopSpeechRecognition(){if(Z.currentAudioRecorder){let e=Z.currentAudioRecorder;Z.currentAudioRecorder=null,e.stop()}Z.currentAudioVolume=0},async handleTranscription(e){if(!e){console.warn(`No audio data received`);return}try{let t=await yh.transcribeAudio(e,{lang:Z.data.language});if(t.error){this.showErrorToast(`speech-transcription-failed`);return}if(t.transcript.trim()){if(Z.data.chatConfig.blockPII&&(Z.data.questionHasPii=ol(t.transcript.trim()),Z.data.questionHasPii))return;Z.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{Z.currentAudioRecorder=null,Z.isTranscribing=!1,Z.currentAudioVolume=0}},async startFromHandoverOrRoute(e){let{cID:t,followUpQuestion:n}=mh();if(!t){e();return}let r=await this.rehydrateFromSearchSummaryHandover(t);n?(Z.data.route={name:`chat-page`},Z.data.chatInputValue=n,this.onSubmit(!0)):r||e(),hh()},async rehydrateFromSearchSummaryHandover(e){Z.data.currentConversationId=e;let t=await yh.getMetadata(),n=t.mode===`ready`?t.userId:void 0,r=n?await yh.getChatHistory(e,n):[];if(r.length===0)return Z.data.currentConversationId=void 0,!1;let i={all:[],used:[],unused:[]},a=new Zc({newTabSrText:Z.t.ariaOpensInNewTab}),o=[];for(let{question:e,answer:t}of r)o.push({type:`user`,time:new Date().toISOString(),message:e,id:pf()}),o.push({id:pf(),state:`done`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:t,html:a.toHTML(t,i),text:t},references:{all:[],used:[],unused:[]}});return Z.data.history=[...vh(Z.data.chatConfig.messageAdditions.init),...o],Z.data.route={name:`chat-page`},!0},async onStartConversation(e,t,n){await this.abort(),Z.data.history=vh(Z.data.chatConfig.messageAdditions.init),Z.data.currentConversationId=yh.createConversationId(),this.goto({name:`chat-page`,query:e,predefinedQuestionId:t,switchQuestionId:n})},async onNewConversation(){await this.abort();let e=Z.data.currentConversationId;if(Z.data.currentConversationId=void 0,Z.data.currentReferencesAsideId=void 0,Z.data.history=vh(Z.data.chatConfig.messageAdditions.init),Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0,Z.data.selectedTopic=void 0,Z.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&&yh.userAction(`newDiscussion`,{conversationId:e,lang:Z.data.language}).catch(e=>{console.error(`Failed to notify backend of new discussion:`,e)})},async onChangeTopic(){let e=Z.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(),Z.data.selectedTopic=void 0,Z.data.predefinedQuestionId=e,Z.data.switchQuestionId=void 0,Z.data.chatInputValue=``,this.onSubmit(!0,void 0,!0)},showSuccessToast(e){Vp.success(Z.t[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},showErrorToast(e){Vp.error(Z.errorTranslations[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},async submitFeedback(e){try{let t=Z.data.conversationFeedbackId||Z.data.lastChatResponseId;if(!t)throw new lh(`Tried to give feedback with no id.`);let n=Z.data.history.find(e=>e.type===`bot`&&e.id===t);await yh.feedback(t,n?.question??``,e),setTimeout(()=>{this.showSuccessToast(`thankYouForFeedback`)},500)}catch(e){console.error(`Feedback failed:`,e),this.showErrorToast(`feedback-failed`)}},toggleReferencesAside(e){Z.data.currentReferencesAsideId===e?this.closeReferencesAside():this.openReferencesAside(e)},openReferencesAside(e){Z.data.currentReferencesAsideId=e,this.setOpenOverlay(!0)},closeReferencesAside(){Z.data.currentReferencesAsideId=void 0,Z.data.wasReferencesAsideClosed=!0,this.setOpenOverlay(!1)},setAsideMobile(e){Z.data.isAsideMobile=e},openFlyout(){Z.data.flyoutIsOpen=!0},closeFlyout(){Z.data.flyoutIsOpen=!1},openConversationFeedback(){Z.data.conversationFeedbackIsOpen=!0,this.setOpenOverlay(!0)},openMessageFeedback(e){Z.data.conversationFeedbackId=e},closeFeedback(){Z.data.conversationFeedbackIsOpen=!1,Z.data.conversationFeedbackId=void 0,this.setOpenOverlay(!1)},openAnswerForm(e){Z.data.answerFormMessageId=e,this.setOpenOverlay(!0)},closeAnswerForm(){Z.data.answerFormMessageId=void 0,this.setOpenOverlay(!1)},async submitAnswerForm(e){try{let t=Z.data.chatConfig.answerForm,n=Z.data.answerFormMessageId;if(!t)throw new lh(`Tried to submit the answer form with no answerForm config.`);if(!n)throw new lh(`Tried to submit the answer form with no message id.`);let r=Z.data.history.findIndex(e=>e.type===`bot`&&e.id===n),i=r===-1?void 0:Z.data.history[r],a=Z.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 yh.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:Z.data.language}),setTimeout(()=>{this.showSuccessToast(`answerFormThankYou`)},500)}catch(e){console.error(`Answer form submission failed:`,e),this.showErrorToast(`answer-form-failed`)}},setOpenOverlay(e){Z.data.hasOpenedOverlays=e},setAriaLiveStatusMessage(e){Z.data.ariaLiveStatusMessage=e,clearTimeout(Z.data.ariaLiveStatusMessageClearingTimeout),Z.data.ariaLiveStatusMessageClearingTimeout=setTimeout(()=>{Z.data.ariaLiveStatusMessage=``},Z.ariaLiveMessagesClearingTimeoutDuration)},closePopup(){window.location.hash=``},checkForOpenedPopup(){let e=window.location.hash.slice(1),t=Z.t.popups?.find(t=>t.hash===e);t?Z.data.openedPopup=t:Z.data.openedPopup=void 0},async thumbs(e,t){try{let n=Z.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 yh.thumbsUp(e,n?.question??``):await yh.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(Z.data.language=$f(e,Z.data.chatConfig.supportedLanguages),tp(Z.data.language,Z.targets.mainElement),Z.data.predefinedQuestions=await this.getPredefinedQuestions(Z.data.language),this.setAriaLiveStatusMessage(Z.t.ariaLanguageChanged),Z.data.chatConfig.reflectLanguageInPath){let e=new URL(window.location.href);e.pathname=`/${Z.data.language}`,window.history.replaceState({},``,e.toString())}},async acceptTerms(){Z.data.termsAccepted=!0;try{bf.setItem(`liipgpt:termsAccepted`,`true`)}catch(e){console.warn(`Failed to save terms acceptance to storage:`,e)}this.closePopup(),await Kr(),this.goto(dh(Z.data.chatConfig.forceConsent??!1,!0,Z.data.chatConfig.forceChatPage??!1,uh(Z.data.props.autofirePredefinedQuestionId,Z.data.predefinedQuestions),Z.data.props.question))},updateChatInput(e){Z.data.chatInputValue=e}}),Ch=(e,t)=>{let n=window.LIIPGPT_LISTENERS?.elements?.[t];if(!n)return;let r=Object.entries(n).filter(([e,t])=>typeof t==`function`&&![`init`,`destroy`].includes(e));I(()=>(n.init?.(e),r.forEach(([t,n])=>{e.addEventListener(t,n)}),()=>{r.forEach(([t,n])=>{e.removeEventListener(t,n)}),n.destroy?.(e)}))},wh=(e,t)=>{t&&Sh.setTarget(t,e)},Th=z(`<div role="status" class="sr-only"> </div>`);function Eh(e,t){D(t,!1),so();var n=Th(),r=N(n,!0);E(n),L(()=>H(r,Z.data.ariaLiveStatusMessage)),V(e,n),O()}J(Eh,{},[],[],{mode:`open`});var Dh=z(`<div aria-hidden="true"></div>`);function Oh(e,t){D(t,!0);let n=q(t,`name`,7),r=q(t,`class`,7);var i={get name(){return n()},set name(e){n(e),k()},get class(){return r()},set class(e){r(e),k()}},a=Dh();return ta(a,()=>Z.theme.svgs[n()],!0),E(a),L(()=>Ea(a,1,`svg svg--${n()??``} ${r()??``}`)),V(e,a),O(i)}J(Oh,{name:{},class:{}},[],[],{mode:`open`});var kh=`data-disable-tooltip-on-focus`;function Ah(e,t){let n=null,r;function i(){t.text&&(n||(n=document.createElement(`span`),n.ariaHidden=`true`,n.textContent=t.text,n.className=`tooltip tooltip-${t.position||`top`} tooltip-hidden`,e.appendChild(n),n.getBoundingClientRect()),n.classList.remove(`tooltip-hidden`),a())}function a(){if(!n)return;let r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a,o;switch(t.position){case`bottom`:a=r.height+5,o=r.width/2-i.width/2;break;case`bottom-right`:a=r.height+5,o=r.width-i.width;break;case`bottom-left`:a=r.height+5,o=0;break;case`left`:a=r.height/2-i.height/2,o=-i.width-5;break;case`right`:a=r.height/2-i.height/2,o=r.width+5;break;default:a=-i.height-5,o=r.width/2-i.width/2;break}let s=r.left+o,c=s+i.width,l=window.innerWidth;if(c>l){let e=c-l;if(o-=e+10,t.position===`top`||t.position===`bottom`){let t=e+10;n.style.setProperty(`--tooltip-arrow-offset`,`${t}px`)}}if(s<0&&(o-=s-10,t.position===`top`||t.position===`bottom`)){let e=s-10;n.style.setProperty(`--tooltip-arrow-offset`,`${e}px`)}n.style.top=`${a}px`,n.style.left=`${o}px`}function o(){r=window.setTimeout(()=>{i()},t.delay||200)}function s(e){let t=e.target;t&&!t.hasAttribute(`data-disable-tooltip-on-focus`)?o():t.removeAttribute(kh)}function c(){clearTimeout(r),n&&(n.classList.add(`tooltip-hidden`),n.addEventListener(`transitionend`,()=>{n?.remove(),n=null},{once:!0}))}return e.classList.add(`tooltip-container`),e.setAttribute(`tabindex`,`0`),e.addEventListener(`mouseenter`,o),e.addEventListener(`focus`,s),e.addEventListener(`mouseleave`,c),e.addEventListener(`blur`,c),e.addEventListener(`click`,c),{update(e){t=e},destroy(){c(),e.classList.remove(`tooltip-container`),e.removeEventListener(`mouseenter`,o),e.removeEventListener(`focus`,s),e.removeEventListener(`mouseleave`,c),e.removeEventListener(`blur`,c),e.removeEventListener(`click`,c)}}}var jh=z(`<button><span class="sr-only"> </span> <span><!></span></button>`);function Mh(e,t){D(t,!0);let n=q(t,`class`,7),r=q(t,`tooltip`,7),i=q(t,`label`,7),a=q(t,`onclick`,7),o=q(t,`icon`,7),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`class`,`tooltip`,`label`,`onclick`,`icon`]);var c={get class(){return n()},set class(e){n(e),k()},get tooltip(){return r()},set tooltip(e){r(e),k()},get label(){return i()},set label(e){i(e),k()},get onclick(){return a()},set onclick(e){a(e),k()},get icon(){return o()},set icon(e){o(e),k()}},l=jh();qa(l,()=>({onclick:a(),...s}));var u=N(l),d=N(u,!0);E(u);var f=F(u,2);return Oh(N(f),{get name(){return o()}}),E(f),E(l),ga(l,(e,t)=>Ah?.(e,t),()=>({text:r(),position:`top`,delay:300})),L(()=>{H(d,i()),Ea(f,1,ba(n()))}),V(e,l),O(c)}J(Mh,{class:{},tooltip:{},label:{},onclick:{},icon:{}},[],[],{mode:`open`});var Nh=z(`<p class="jsonld-card__description"> </p>`),Ph=z(`<article class="jsonld-card jsonld-card--cta"><header class="jsonld-card__header"><h3 class="jsonld-card__title"> </h3></header> <!> <a class="jsonld-card__cta btn" target="_blank" rel="noopener noreferrer"><span> </span> <!></a></article>`);function Fh(e,t){D(t,!0);let n=q(t,`data`,7);var r={get data(){return n()},set data(e){n(e),k()}},i=Ph(),a=N(i),o=N(a),s=N(o,!0);E(o),E(a);var c=F(a,2),l=e=>{var t=Nh(),r=N(t,!0);E(t),L(()=>H(r,n().description)),V(e,t)};W(c,e=>{n().description&&e(l)});var u=F(c,2),d=N(u),f=N(d,!0);return E(d),Oh(F(d,2),{name:`externalLink`,class:`jsonld-card__cta-icon`}),E(u),E(i),L(()=>{K(i,`aria-label`,`${Z.t.ariaJsonLdCtaCard??``}: ${n().title??``}`),H(s,n().title),K(u,`href`,n().url),H(f,n().label??Z.t.jsonLdCtaLabel)}),V(e,i),O(r)}J(Fh,{data:{}},[],[],{mode:`open`});var Ih=z(`<span class="jsonld-card__event-time"> </span>`),Lh=z(`<dt class="jsonld-card__meta-label"> </dt> <dd class="jsonld-card__meta-value"><time class="jsonld-card__event-date"><span> </span> <!></time></dd>`,1),Rh=z(`<dt class="jsonld-card__meta-label"> </dt> <dd class="jsonld-card__meta-value"> </dd>`,1),zh=z(`<dt class="jsonld-card__meta-label"> </dt> <dd class="jsonld-card__meta-value"> </dd>`,1),Bh=z(`<article class="jsonld-card jsonld-card--event"><header class="jsonld-card__header"><h3 class="jsonld-card__title"> </h3></header> <dl class="jsonld-card__meta"><!> <!> <!></dl> <a class="jsonld-card__cta btn" target="_blank" rel="noopener noreferrer"><span> </span> <!></a></article>`);function Vh(e,t){D(t,!0);let n=q(t,`data`,7),r=A(()=>{if(!n().date)return;let e=new Date(n().date);if(Number.isNaN(e.getTime()))return{day:n().date,time:void 0};let t=Z.data.language||`de`;try{return{day:e.toLocaleDateString(t,{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`}),time:e.getHours()!==0||e.getMinutes()!==0?e.toLocaleTimeString(t,{hour:`2-digit`,minute:`2-digit`}):void 0}}catch{return{day:e.toLocaleString(),time:void 0}}});var i={get data(){return n()},set data(e){n(e),k()}},a=Bh(),o=N(a),s=N(o),c=N(s,!0);E(s),E(o);var l=F(o,2),u=N(l),d=e=>{var t=Lh(),i=P(t),a=N(i,!0);E(i);var o=F(i,2),s=N(o),c=N(s),l=N(c,!0);E(c);var u=F(c,2),d=e=>{var t=Ih(),n=N(t,!0);E(t),L(()=>H(n,R(r).time)),V(e,t)};W(u,e=>{R(r).time&&e(d)}),E(s),E(o),L(()=>{H(a,Z.t.jsonLdEventDate),K(s,`datetime`,n().date),H(l,R(r).day)}),V(e,t)};W(u,e=>{R(r)&&e(d)});var f=F(u,2),p=e=>{var t=Rh(),r=P(t),i=N(r,!0);E(r);var a=F(r,2),o=N(a,!0);E(a),L(()=>{H(i,Z.t.jsonLdEventLocation),H(o,n().location)}),V(e,t)};W(f,e=>{n().location&&e(p)});var m=F(f,2),h=e=>{var t=zh(),r=P(t),i=N(r,!0);E(r);var a=F(r,2),o=N(a,!0);E(a),L(()=>{H(i,Z.t.jsonLdEventDescription),H(o,n().description)}),V(e,t)};W(m,e=>{n().description&&e(h)}),E(l);var g=F(l,2),_=N(g),v=N(_,!0);return E(_),Oh(F(_,2),{name:`externalLink`,class:`jsonld-card__cta-icon`}),E(g),E(a),L(()=>{K(a,`aria-label`,`${Z.t.ariaJsonLdEventCard??``}: ${n().title??``}`),H(c,n().title),K(g,`href`,n().ctaUrl),H(v,n().ctaLabel??Z.t.jsonLdEventCtaLabel)}),V(e,a),O(i)}J(Vh,{data:{}},[],[],{mode:`open`});var Hh=z(`<p class="jsonld-card__description"> </p>`),Uh=z(`<div class="jsonld-card__map-frame"><div class="jsonld-card__map-canvas"></div></div>`),Wh=z(`<p class="jsonld-card__address"> </p>`),Gh=z(`<a class="jsonld-card__contact btn btn--secondary"><!> <span> </span></a>`),Kh=z(`<a class="jsonld-card__contact btn btn--secondary"><!> <span> </span></a>`),qh=z(`<article class="jsonld-card jsonld-card--map"><header class="jsonld-card__header"><h3 class="jsonld-card__title"> </h3></header> <!> <!> <!> <div class="jsonld-card__actions"><!> <!> <a class="jsonld-card__cta btn" target="_blank" rel="noopener noreferrer"><span> </span> <!></a></div></article>`);function Jh(e,t){D(t,!0);let n=`5.24.0`,r=[`https://cdn.jsdelivr.net/npm/maplibre-gl@${n}/+esm`,`https://unpkg.com/maplibre-gl@${n}/dist/maplibre-gl.js?module`],i=`https://cdn.jsdelivr.net/npm/maplibre-gl@${n}/dist/maplibre-gl.css`,a=q(t,`data`,7),o=j(void 0),s=A(()=>{if(a().directionsUrl)return a().directionsUrl;if(!a().coords)return a().fallbackUrl;let e=String(Z.theme.components.messageJsonLdMap?.custom?.directionsProvider||``)||`google`,{lat:t,lng:n}=a().coords;return e===`osm`?`https://www.openstreetmap.org/directions?to=${t},${n}`:`https://www.google.com/maps/dir/?api=1&destination=${t},${n}`}),c=e=>new Promise(t=>{let n=`jsonld-map-maplibre-style`,r=e.getRootNode(),a=r instanceof ShadowRoot?r:document.head,o=a.querySelector(`#${n}`);if(o instanceof HTMLLinkElement&&o.sheet){t();return}if(o){o.addEventListener(`load`,()=>t(),{once:!0});return}let s=document.createElement(`link`);s.id=n,s.rel=`stylesheet`,s.href=i,s.onload=()=>t(),s.onerror=()=>t(),a.appendChild(s)}),l=e=>{let t=e;return t.Map?t:t.default??t},u=async e=>{await c(e);let t;for(let e of r)try{return l(await import(e))}catch(e){t=e}throw t};Fi(()=>{let e=a().coords;if(!e)return;let t=String(Z.theme.components.messageJsonLdMap?.custom?.tileUrl||``)||`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,n=String(Z.theme.components.messageJsonLdMap?.custom?.markerColor||``)||`#3fb1ce`,r=String(Z.theme.components.messageJsonLdMap?.custom?.mapStyleUrl||``),i,s,c,l,d=0,f=0,p=!1;return(async()=>{await Kr();let m=R(o);if(!m||p)return;let h=await u(m);if(p)return;let g=(e=>{if(e.trim().startsWith(`{`))try{return JSON.parse(e)}catch{return null}return e||null})(r)??{version:8,sources:{"osm-tiles":{type:`raster`,tiles:[t],tileSize:256}},layers:[{id:`osm-tiles`,type:`raster`,source:`osm-tiles`,minzoom:0,maxzoom:19}]};if(i=new h.Map({container:m,style:g,center:[e.lng,e.lat],zoom:a().zoom,attributionControl:!1,scrollZoom:!1,touchZoomRotate:!0,touchPitch:!1,doubleClickZoom:!0}),p){i.remove();return}i.once(`style.load`,()=>{let t=()=>{if(p||!i)return;i.resize();let r=i.getCanvas();r.width>0&&r.height>0?s=new h.Marker({color:n}).setLngLat([e.lng,e.lat]).addTo(i):requestAnimationFrame(t)};t()}),l=new ResizeObserver(e=>{let t=e[0];if(!t||!i)return;let{width:n,height:r}=t.contentRect;n===d&&r===f||(d=n,f=r,cancelAnimationFrame(c??0),c=requestAnimationFrame(()=>i?.resize()))}),l.observe(m)})(),()=>{p=!0,cancelAnimationFrame(c??0),l?.disconnect(),s?.remove(),i?.remove()}});var d={get data(){return a()},set data(e){a(e),k()}},f=qh(),p=N(f),m=N(p),h=N(m,!0);E(m),E(p);var g=F(p,2),_=e=>{var t=Hh(),n=N(t,!0);E(t),L(()=>H(n,a().description)),V(e,t)};W(g,e=>{a().description&&e(_)});var v=F(g,2),y=e=>{var t=Uh(),n=N(t);oo(n,e=>M(o,e),()=>R(o)),E(t),L(()=>K(n,`aria-label`,`${Z.t.ariaJsonLdMapCanvas??``}: ${a().title??``}`)),V(e,t)};W(v,e=>{a().coords&&e(y)});var b=F(v,2),x=e=>{var t=Wh(),n=N(t,!0);E(t),L(()=>H(n,a().address)),V(e,t)};W(b,e=>{a().address&&e(x)});var S=F(b,2),C=N(S),ee=e=>{var t=Gh(),n=N(t);Oh(n,{name:`phone`,class:`jsonld-card__cta-icon`});var r=F(n,2),i=N(r,!0);E(r),E(t),L(()=>{K(t,`href`,`tel:${a().phone??``}`),H(i,a().phone)}),V(e,t)};W(C,e=>{a().phone&&e(ee)});var te=F(C,2),ne=e=>{var t=Kh(),n=N(t);Oh(n,{name:`email`,class:`jsonld-card__cta-icon`});var r=F(n,2),i=N(r,!0);E(r),E(t),L(()=>{K(t,`href`,`mailto:${a().email??``}`),H(i,a().email)}),V(e,t)};W(te,e=>{a().email&&e(ne)});var re=F(te,2),w=N(re),ie=N(w,!0);return E(w),Oh(F(w,2),{name:`externalLink`,class:`jsonld-card__cta-icon`}),E(re),E(S),E(f),L(()=>{K(f,`aria-label`,`${Z.t.ariaJsonLdMapCard??``}: ${a().title??``}`),H(h,a().title),K(re,`href`,R(s)),H(ie,Z.t.jsonLdMapOpenMap)}),V(e,f),O(d)}J(Jh,{data:{}},[],[],{mode:`open`});var Yh=(e,t)=>{let n=e[t];return typeof n==`string`&&n.length>0?n:void 0},Xh=(e,t)=>{let n=e[t];return typeof n==`number`&&Number.isFinite(n)?n:void 0},Zh=e=>e.display.card.title||e.display.listItem.title,Qh=e=>{let t=e.metadata;if(t.jsonLdBlock===`event-card`)return{block:`event-card`,data:{title:Zh(e),description:e.display.card.description,date:Yh(t,`jsonLdEventStartDate`),location:Yh(t,`jsonLdEventLocation`),ctaLabel:Yh(t,`jsonLdEventCtaLabel`),ctaUrl:Yh(t,`jsonLdEventCtaUrl`)??e.url}};if(t.jsonLdBlock===`map`){let n=Xh(t,`jsonLdMapLat`),r=Xh(t,`jsonLdMapLng`);return{block:`map`,data:{title:Yh(t,`jsonLdMapLabel`)??Zh(e),description:Yh(t,`jsonLdMapDescription`)??e.display.card.description,address:Yh(t,`jsonLdMapAddress`),url:Yh(t,`jsonLdMapUrl`),phone:Yh(t,`jsonLdMapPhone`),email:Yh(t,`jsonLdMapEmail`),coords:n!==void 0&&r!==void 0?{lat:n,lng:r}:void 0,zoom:Xh(t,`jsonLdMapZoom`)??15,fallbackUrl:e.url,directionsUrl:Yh(t,`jsonLdMapDirectionsUrl`)}}}if(t.jsonLdBlock===`cta`)return{block:`cta`,data:{title:Zh(e),description:e.display.card.description,label:Yh(t,`jsonLdCtaLabel`),url:Yh(t,`jsonLdCtaUrl`)??e.url}}},$h=z(`<div role="listitem"><!></div>`),eg=z(`<div class="jsonld-references" role="list"></div>`);function tg(e,t){D(t,!0);let n=q(t,`references`,7),r=q(t,`ready`,7,!1),i=A(()=>n().flatMap(e=>{let t=Qh(e);return t?[{key:e.url+e.referenceIndex.all,display:t}]:[]})),a=A(()=>Z.theme?.components?.messageOptions?.custom),o=A(()=>Number(R(a)?.transitionDuration)||300),s=A(()=>Number(R(a)?.transitionDelay)||0),c=A(()=>Number(R(a)?.transitionY)||30);var l={get references(){return n()},set references(e){n(e),k()},get ready(){return r()},set ready(e=!1){r(e),k()}},u=B(),d=P(u),f=e=>{var t=eg();Yi(t,23,()=>R(i),({key:e,display:t})=>e,(e,t,n)=>{let i=()=>R(t).display;var a=$h();let l,u;var d=N(a),f=e=>{Vh(e,{get data(){return i().data}})},p=e=>{Jh(e,{get data(){return i().data}})},m=e=>{Fh(e,{get data(){return i().data}})};W(d,e=>{i().block===`event-card`?e(f):i().block===`map`?e(p,1):i().block===`cta`&&e(m,2)}),E(a),L(()=>{l=Ea(a,1,`jsonld-references__item`,null,l,{"jsonld-references__item--preloading":!r()}),u=Oa(a,``,u,{"--jsonld-item-duration":`${R(o)??``}ms`,"--jsonld-item-delay":`${R(s)+R(n)*R(o)}ms`,"--jsonld-item-y":`${R(c)??``}px`})}),V(e,a)}),E(t),V(e,t)};return W(d,e=>{R(i).length>0&&e(f)}),V(e,u),O(l)}J(tg,{references:{},ready:{}},[],[],{mode:`open`});var ng;function rg(e,t,n,r,i){ng&&cancelAnimationFrame(ng);let a=e instanceof Window?r===`scrollTop`?window.scrollY:window.scrollX:e[r],o=performance.now();function s(c){let l=c-o,u=Math.min(l/n,1),d=i(u),f=a+(t-a)*d;e instanceof Window?r===`scrollTop`?window.scrollTo({top:f,behavior:`instant`}):window.scrollTo({left:f,behavior:`instant`}):e[r]=f,u<1?ng=requestAnimationFrame(s):e.dispatchEvent(new CustomEvent(`scrollcomplete`))}ng=requestAnimationFrame(s)}function ig(e){return typeof e==`function`}function ag(e){return typeof e==`object`&&!!e}var og=[`string`,`number`,`bigint`,`boolean`];function sg(e){return e==null||og.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>sg(e)):typeof e==`object`?Object.getPrototypeOf(e)===Object.prototype:!1}var cg=Symbol(`box`),lg=Symbol(`is-writable`);function Q(e,t){let n=A(e);return t?{[cg]:!0,[lg]:!0,get current(){return R(n)},set current(e){t(e)}}:{[cg]:!0,get current(){return e()}}}function ug(e){return ag(e)&&cg in e}function dg(e){return ug(e)&&lg in e}function fg(e){return ug(e)?e:ig(e)?Q(e):hg(e)}function pg(e){return Object.entries(e).reduce((e,[t,n])=>ug(n)?(dg(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function mg(e){return dg(e)?{[cg]:!0,get current(){return e.current}}:e}function hg(e){let t=j(Dn(e));return{[cg]:!0,[lg]:!0,get current(){return R(t)},set current(e){M(t,e,!0)}}}function gg(e){let t=j(Dn(e));return{[cg]:!0,[lg]:!0,get current(){return R(t)},set current(e){M(t,e,!0)}}}gg.from=fg,gg.with=Q,gg.flatten=pg,gg.readonly=mg,gg.isBox=ug,gg.isWritableBox=dg;function _g(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var vg=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,yg=/\n/g,bg=/^\s*/,xg=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Sg=/^:\s*/,Cg=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,wg=/^[;\s]*/,Tg=/^\s+|\s+$/g,Eg=`
|
|
532
|
-
`,
|
|
533
|
-
`)}function
|
|
534
|
-
`,` `)}var
|
|
535
|
-
`,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var Qg=Jg({position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`}),$g=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function e_(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=$g,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=en(e=>{let n=ni(t,`focusin`,e),r=ni(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?e_(this.#e):null}};function t_(e){return typeof e==`function`}var n_=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return pt(this.#t)}get(){let e=dt(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=dt(this.#t);return t===void 0?e:t}set(e){return ft(this.#t,e)}};function r_(e,t){switch(e){case`post`:I(t);break;case`pre`:er(t);break}}function i_(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;r_(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Yr(()=>n(t,o));return o=t,r})}function a_(e,t,n){let r=tr(()=>{let i=!1;i_(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});I(()=>r)}function o_(e,t,n){i_(e,`post`,t,n)}function s_(e,t,n){i_(e,`pre`,t,n)}o_.pre=s_;function c_(e,t){a_(e,`post`,t)}function l_(e,t){a_(e,`pre`,t)}c_.pre=l_;function u_(e){return t_(e)?e():e}var d_=class{#e={width:0,height:0};#t=!1;#n;#r;#i;#a=A(()=>(R(this.#s)?.(),this.getSize().width));#o=A(()=>(R(this.#s)?.(),this.getSize().height));#s=A(()=>{let e=u_(this.#r);if(e)return en(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??$g,this.#n=t,this.#r=e,this.#e={width:0,height:0}}calculateSize(){let e=u_(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 R(this.#s)?.(),this.getSize()}get width(){return R(this.#a)}get height(){return R(this.#o)}},f_=class{#e=()=>void 0;#t=A(()=>this.#e());constructor(e,t){let n;t!==void 0&&(n=t),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return R(this.#t)}};function p_(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 m_(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 h_(e,t,n={},r){let{lazy:i=!1,once:a=!1,initialValue:o,debounce:s,throttle:c}=n,l=j(Dn(o)),u=j(!1),d=j(void 0),f=j(Dn([])),p=()=>{R(f).forEach(e=>e()),M(f,[],!0)},m=e=>{M(f,[...R(f),e],!0)},h=async(e,n,r=!1)=>{try{M(u,!0),M(d,void 0),p();let i=new AbortController;m(()=>i.abort());let a=await t(e,n,{data:R(l),refetching:r,onCleanup:m,signal:i.signal});return M(l,a,!0),a}catch(e){e instanceof DOMException&&e.name===`AbortError`||M(d,e,!0);return}finally{M(u,!1)}},g=s?p_(h,s):c?m_(h,c):h,_=Array.isArray(e)?e:[e],v;return r((t,n)=>{a&&v||(v=t,g(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return R(l)},get loading(){return R(u)},get error(){return R(d)},mutate:e=>{M(l,e,!0)},refetch:t=>{let n=_.map(e=>e());return g(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function g_(e,t,n){return h_(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];o_(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function __(e,t,n){return h_(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];o_.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}g_.pre=__;function v_(e){I(()=>()=>{e()})}function y_(e){I(()=>Yr(()=>e()))}function b_(e,t){return setTimeout(t,e)}function x_(e){Kr().then(e)}var S_=1,C_=9,w_=11;function T_(e){return ag(e)&&e.nodeType===S_&&typeof e.nodeName==`string`}function E_(e){return ag(e)&&e.nodeType===C_}function D_(e){return ag(e)&&e.constructor?.name===`VisualViewport`}function O_(e){return ag(e)&&e.nodeType!==void 0}function k_(e){return O_(e)&&e.nodeType===w_&&`host`in e}function A_(e,t){if(!e||!t||!T_(e)||!T_(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&k_(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function j_(e){return E_(e)?e:D_(e)?e.document:e?.ownerDocument??document}function M_(e){return k_(e)?M_(e.host):E_(e)?e.defaultView??window:T_(e)?e.ownerDocument?.defaultView??window:window}function N_(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var P_=class{element;#e=A(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return R(this.#e)}set root(e){M(this.#e,e)}constructor(e){typeof e==`function`?this.element=Q(e):this.element=e}getDocument=()=>j_(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>N_(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function F_(e,t){return{[Ri()]:n=>ug(e)?(e.current=n,Yr(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Yr(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function I_(e){return e?`true`:`false`}function L_(e){return e?`true`:void 0}function R_(e){return e?``:void 0}function z_(e){return e?!0:void 0}function B_(e){return e?`open`:`closed`}function V_(e,t){return t?`mixed`:e?`true`:`false`}var H_=class{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${this.#t}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function U_(e){let t=new H_(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var W_=`ArrowDown`,G_=`ArrowLeft`,K_=`ArrowRight`,q_=`ArrowUp`,J_=`CapsLock`,Y_=`Control`,X_=`Enter`,Z_=`Escape`,Q_=`Home`,$_=`Meta`,ev=`PageDown`,tv=`PageUp`,nv=`Shift`;function rv(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var iv=[W_,tv,Q_],av=[q_,ev,`End`];[...iv,...av];function ov(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?G_:K_,vertical:W_}[t]}function sv(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?K_:G_,vertical:q_}[t]}function cv(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:ov(e,t),prevKey:sv(e,t)}}var lv=typeof document<`u`,uv=dv();function dv(){return lv&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function fv(e){return e instanceof HTMLElement}function pv(e){return e instanceof Element}function mv(e){return e instanceof Element||e instanceof SVGElement}function hv(e){return e.pointerType===`touch`}function gv(e){return e!==null}function _v(e){return e instanceof HTMLInputElement&&`select`in e}var vv=class{#e;#t=gg(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=cv(rv(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Q_]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?K_:W_,t=s===`ArrowUp`?G_:q_;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);!t||!fv(t)||t.focus()}},yv=class{#e;#t=null;constructor(e){this.#e=e,v_(()=>this.#n())}#n(){this.#t&&=(window.cancelAnimationFrame(this.#t),null)}run(e){this.#n();let t=this.#e.ref.current;if(t){if(typeof t.getAnimations!=`function`){this.#r(e);return}this.#t=window.requestAnimationFrame(()=>{let n=t.getAnimations();if(n.length===0){this.#r(e);return}Promise.allSettled(n.map(e=>e.finished)).then(()=>{this.#r(e)})})}}#r(e){let t=()=>{e()};this.#e.afterTick?x_(t):t()}},bv=class{#e;#t;#n;#r=j(!1);constructor(e){this.#e=e,M(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new yv({ref:this.#e.ref,afterTick:this.#e.open}),o_(()=>this.#e.open.current,e=>{e&&M(this.#r,!0),this.#t&&this.#n.run(()=>{e===this.#e.open.current&&(this.#e.open.current||M(this.#r,!1),this.#e.onComplete?.())})})}get shouldRender(){return R(this.#r)}};function $(){}function xv(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}var Sv=U_({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),Cv=new n_(`Dialog.Root | AlertDialog.Root`),wv=class e{static create(t){let n=Cv.getOr(null);return Cv.set(new e(t,n))}opts;#e=j(null);get triggerNode(){return R(this.#e)}set triggerNode(e){M(this.#e,e,!0)}#t=j(null);get contentNode(){return R(this.#t)}set contentNode(e){M(this.#t,e,!0)}#n=j(null);get overlayNode(){return R(this.#n)}set overlayNode(e){M(this.#n,e,!0)}#r=j(null);get descriptionNode(){return R(this.#r)}set descriptionNode(e){M(this.#r,e,!0)}#i=j(void 0);get contentId(){return R(this.#i)}set contentId(e){M(this.#i,e,!0)}#a=j(void 0);get titleId(){return R(this.#a)}set titleId(e){M(this.#a,e,!0)}#o=j(void 0);get triggerId(){return R(this.#o)}set triggerId(e){M(this.#o,e,!0)}#s=j(void 0);get descriptionId(){return R(this.#s)}set descriptionId(e){M(this.#s,e,!0)}#c=j(null);get cancelNode(){return R(this.#c)}set cancelNode(e){M(this.#c,e,!0)}#l=j(0);get nestedOpenCount(){return R(this.#l)}set nestedOpenCount(e){M(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new bv({ref:Q(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new bv({ref:Q(()=>this.overlayNode),open:this.opts.open,enabled:!0}),o_(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),v_(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>Sv.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=A(()=>({"data-state":B_(this.opts.open.current)}));get sharedProps(){return R(this.#u)}set sharedProps(e){M(this.#u,e)}},Tv=class e{static create(t){return new e(t,Cv.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=A(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:``,onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},Ev=class e{static create(t){return new e(t,Cv.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=F_(this.opts.ref),o_.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=A(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},Dv=class e{static create(t){return new e(t,Cv.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=F_(this.opts.ref,e=>{this.root.descriptionNode=e}),o_.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=A(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},Ov=class e{static create(t){return new e(t,Cv.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){M(this.#e,e)}#t=A(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":R_(this.root.nestedOpenCount>0),"data-nested":R_(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},kv=class e{static create(t){return new e(t,Cv.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref,e=>this.root.overlayNode=e)}#e=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){M(this.#e,e)}#t=A(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":R_(this.root.nestedOpenCount>0),"data-nested":R_(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},Av=z(`<div><!></div>`);function jv(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`child`,7),o=q(t,`children`,7),s=q(t,`level`,7,2),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`children`,`level`]),l=Ev.create({id:Q(()=>r()),level:Q(()=>s()),ref:Q(()=>i(),e=>i(e))}),u=A(()=>Zg(c,l.props));var d={get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get child(){return a()},set child(e){a(e),k()},get children(){return o()},set children(e){o(e),k()},get level(){return s()},set level(e=2){s(e),k()}},f=B(),p=P(f),m=e=>{var t=B();U(P(t),a,()=>({props:R(u)})),V(e,t)},h=e=>{var t=Av();qa(t,()=>({...R(u)})),U(N(t),()=>o()??w),E(t),V(e,t)};return W(p,e=>{a()?e(m):e(h,-1)}),V(e,f),O(d)}J(jv,{id:{},ref:{},child:{},children:{},level:{}},[],[],{mode:`open`});function Mv(e,t){D(t,!0);let n=q(t,`children`,7);var r={get children(){return n()},set children(e){n(e),k()}},i=B();return Wi(P(i),n,e=>{var t=B();U(P(t),()=>n()??w),V(e,t)}),V(e,i),O(r)}J(Mv,{children:{}},[],[],{mode:`open`});var Nv=new n_(`BitsConfig`);function Pv(){let e=new Iv(null,{});return Nv.getOr(e).opts}function Fv(e){return Nv.set(new Iv(Nv.getOr(null),e))}var Iv=class{opts;constructor(e,t){let n=Lv(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function Lv(e,t){return n=>Q(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function Rv(e,t){return n=>{let r=Pv();return Q(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var zv=Rv(e=>e.defaultPortalTo,`body`);function Bv(e,t){D(t,!0);let n=q(t,`to`,7),r=q(t,`children`,7),i=q(t,`disabled`,7),a=zv(()=>n()),o=mt(),s=A(c);function c(){if(!lv||i())return null;let e=null;return e=typeof a.current==`string`?document.querySelector(a.current):a.current,e}let l;function u(){l&&=(Ni(l),null)}o_([()=>R(s),()=>i()],([e,t])=>{if(!e||t){u();return}return l=Oi(Mv,{target:e,props:{children:r()},context:o}),()=>{u()}});var d={get to(){return n()},set to(e){n(e),k()},get children(){return r()},set children(e){r(e),k()},get disabled(){return i()},set disabled(e){i(e),k()}},f=B(),p=P(f),m=e=>{var t=B();U(P(t),()=>r()??w),V(e,t)};return W(p,e=>{i()&&e(m)}),V(e,f),O(d)}J(Bv,{to:{},children:{},disabled:{}},[],[],{mode:`open`});var Vv=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return ni(e,this.eventName,e=>{t(e)},n)}};function Hv(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Uv(e,t){return e===t||e.contains(t)}function Wv(e){return e?.ownerDocument??document}function Gv(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var Kv=[X_,` `],qv=[W_,tv,Q_],Jv=[q_,ev,`End`],Yv=[...qv,...Jv];[...Kv],[...Kv];function Xv(e){return e===`indeterminate`}function Zv(e){return Xv(e)?`indeterminate`:e?`checked`:`unchecked`}function Qv(e){return e.pointerType===`mouse`}function $v(e,{select:t=!1}={}){if(!e||!e.focus)return;let n=j_(e);if(n.activeElement===e)return;let r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&_v(e)&&t&&e.select()}function ey(e,{select:t=!1}={},n){let r=n();for(let i of e)if($v(i,{select:t}),n()!==r)return!0}var ty=j(!1),ny=class e{static _refs=0;static _cleanup;constructor(){I(()=>(e._refs===0&&(e._cleanup=tr(()=>{let e=[],t=e=>{M(ty,!1)};return e.push(ni(document,`pointerdown`,t,{capture:!0}),ni(document,`pointermove`,t,{capture:!0}),ni(document,`keydown`,e=>{M(ty,!0)},{capture:!0})),Wg(...e)})),e._refs++,()=>{e._refs--,e._refs===0&&(M(ty,!1),e._cleanup?.())}))}get current(){return R(ty)}set current(e){M(ty,e,!0)}},ry=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],iy=ry.join(`,`),ay=typeof Element>`u`,oy=ay?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sy=!ay&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},cy=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):cy(e.parentNode))},ly=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},uy=function(e,t,n){if(cy(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(iy));return t&&oy.call(e,iy)&&r.unshift(e),r=r.filter(n),r},dy=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!cy(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=dy(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{oy.call(a,iy)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!cy(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=dy(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},fy=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},py=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ly(e))&&!fy(e)?0:e.tabIndex},my=function(e,t){var n=py(e);return n<0&&t&&!fy(e)?0:n},hy=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},gy=function(e){return e.tagName===`INPUT`},_y=function(e){return gy(e)&&e.type===`hidden`},vy=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},yy=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},by=function(e){if(!e.name)return!0;var t=e.form||sy(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=yy(r,e.form);return!i||i===e},xy=function(e){return gy(e)&&e.type===`radio`},Sy=function(e){return xy(e)&&!by(e)},Cy=function(e){var t=e&&sy(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=sy(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},wy=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Ty=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=oy.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(oy.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=sy(e);if(o&&!o.shadowRoot&&r(o)===!0)return wy(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Cy(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return wy(e);return!1},Ey=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return oy.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Dy=function(e,t){return!(t.disabled||_y(t)||Ty(t,e)||vy(t)||Ey(t))},Oy=function(e,t){return!(Sy(t)||py(t)<0||!Dy(e,t))},ky=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Ay=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=my(a,i),s=i?Ay(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(hy).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},jy=function(e,t){return t||={},Ay(t.getShadowRoot?dy([e],t.includeContainer,{filter:Oy.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ky}):uy(e,t.includeContainer,Oy.bind(null,t)))},My=function(e,t){return t||={},t.getShadowRoot?dy([e],t.includeContainer,{filter:Dy.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):uy(e,t.includeContainer,Dy.bind(null,t))},Ny=function(e,t){if(t||={},!e)throw Error(`No node provided`);return oy.call(e,iy)===!1?!1:Oy(t,e)},Py=ry.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),Fy=function(e,t){if(t||={},!e)throw Error(`No node provided`);return oy.call(e,Py)===!1?!1:Dy(t,e)};function Iy(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`}}function Ly(e,t){if(!Ny(e,Iy()))return Ry(e,t);let n=j_(e),r=jy(n.body,Iy());t===`prev`&&r.reverse();let i=r.indexOf(e);return i===-1?n.body:r.slice(i+1)[0]}function Ry(e,t){let n=j_(e);if(!Fy(e,Iy()))return n.body;let r=My(n.body,Iy());t===`prev`&&r.reverse();let i=r.indexOf(e);return i===-1?n.body:r.slice(i+1).find(e=>Ny(e,Iy()))??n.body}function zy(e,t){return e.length===t.length?e.every((e,n)=>By(e,t[n])):!1}function By(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?zy(e,t):typeof e==`object`&&typeof t==`object`?Vy(e,t):Object.is(e,t)}function Vy(e,t){if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!By(e[i],t[i]))return!1;return!0}function Hy(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Uy(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function Wy(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+n;return i=r?(i%e.length+e.length)%e.length:Math.max(0,Math.min(i,e.length-1)),e[i]}function Gy(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-n;return i=r?(i%e.length+e.length)%e.length:Math.max(0,Math.min(i,e.length-1)),e[i]}function Ky(e,t,n){let r=t.toLowerCase();if(r.endsWith(` `)){let i=r.slice(0,-1);if(e.filter(e=>e.toLowerCase().startsWith(i)).length<=1)return Ky(e,i,n);let a=n?.toLowerCase();if(a&&a.startsWith(i)&&a.charAt(i.length)===` `&&t.trim()===i)return n;let o=e.filter(e=>e.toLowerCase().startsWith(r));if(o.length>0){let t=n?e.indexOf(n):-1;return qy(o,Math.max(t,0)).find(e=>e!==n)||n}}let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=i.toLowerCase(),o=n?e.indexOf(n):-1,s=qy(e,Math.max(o,0));i.length===1&&(s=s.filter(e=>e!==n));let c=s.find(e=>e?.toLowerCase().startsWith(a));return c===n?void 0:c}function qy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Jy={afterMs:1e4,onChange:$};function Yy(e,t){let{afterMs:n,onChange:r,getWindow:i}={...Jy,...t},a=null,o=j(Dn(e));function s(){return i().setTimeout(()=>{M(o,e,!0),r?.(e)},n)}return I(()=>()=>{a&&i().clearTimeout(a)}),Q(()=>R(o),e=>{M(o,e,!0),r?.(e),a&&i().clearTimeout(a),a=s()})}var Xy=class{#e;#t;#n=A(()=>this.#e.onMatch?this.#e.onMatch:e=>e.focus());#r=A(()=>this.#e.getCurrentItem?this.#e.getCurrentItem:this.#e.getActiveElement);constructor(e){this.#e=e,this.#t=Yy(``,{afterMs:1e3,getWindow:e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,t){if(!t.length)return;this.#t.current=this.#t.current+e;let n=R(this.#r)(),r=t.find(e=>e===n)?.textContent?.trim()??``,i=Ky(t.map(e=>e.textContent?.trim()??``),this.#t.current,r),a=t.find(e=>e.textContent?.trim()===i);return a&&R(this.#n)(a),a}resetTypeahead(){this.#t.current=``}get search(){return this.#t.current}},Zy=class{#e;#t;#n;#r=j(null);constructor(e){this.#e=e,this.#t=A(()=>this.#e.enabled()),this.#n=Yy(!1,{afterMs:e.transitTimeout??300,onChange:e=>{R(this.#t)&&this.#e.setIsPointerInTransit?.(e)},getWindow:()=>M_(this.#e.triggerNode())}),o_([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>!e||!t||!n?void 0:Wg(ni(e,`pointerleave`,e=>{this.#a(e,t)}),ni(t,`pointerleave`,t=>{this.#a(t,e)}))),o_(()=>R(this.#r),()=>{let t=t=>{if(!R(this.#r))return;let n=t.target;if(!pv(n))return;let r={x:t.clientX,y:t.clientY},i=e.triggerNode()?.contains(n)||e.contentNode()?.contains(n),a=!tb(r,R(this.#r));i?this.#i():a&&(this.#i(),e.onPointerExit())},n=j_(e.triggerNode()??e.contentNode());if(n)return ni(n,`pointermove`,t)})}#i(){M(this.#r,null),this.#n.current=!1}#a(e,t){let n=e.currentTarget;if(!fv(n))return;let r={x:e.clientX,y:e.clientY},i=$y(r,Qy(r,n.getBoundingClientRect())),a=eb(t.getBoundingClientRect()),o=nb([...i,...a]);M(this.#r,o,!0),this.#n.current=!0}};function Qy(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function $y(e,t,n=5){let r=n*1.5;switch(t){case`top`:return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case`bottom`:return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case`left`:return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case`right`:return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function eb(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function tb(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function nb(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),rb(t)}function rb(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ib=`data-context-menu-trigger`,ab=`data-context-menu-content`,ob=new n_(`Menu.Root`),sb=new n_(`Menu.Root | Menu.Sub`),cb=new n_(`Menu.Content`),lb=new n_(`Menu.Group | Menu.RadioGroup`),ub=new n_(`Menu.RadioGroup`),db=new n_(`Menu.CheckboxGroup`),fb=new Vv(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),pb=U_({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),mb=class e{static create(t){let n=new e(t);return ob.set(n)}opts;isUsingKeyboard=new ny;#e=j(!1);get ignoreCloseAutoFocus(){return R(this.#e)}set ignoreCloseAutoFocus(e){M(this.#e,e,!0)}#t=j(!1);get isPointerInTransit(){return R(this.#t)}set isPointerInTransit(e){M(this.#t,e,!0)}constructor(e){this.opts=e}getBitsAttr=e=>pb.getAttr(e,this.opts.variant.current)},hb=class e{static create(t,n){return sb.set(new e(t,n,null))}opts;root;parentMenu;contentId=Q(()=>``);#e=j(null);get contentNode(){return R(this.#e)}set contentNode(e){M(this.#e,e,!0)}contentPresence;#t=j(null);get triggerNode(){return R(this.#t)}set triggerNode(e){M(this.#t,e,!0)}constructor(e,t,n){this.opts=e,this.root=t,this.parentMenu=n,this.contentPresence=new bv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),n&&o_(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}},gb=class e{static create(t){return cb.set(new e(t,sb.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#e=j(``);get search(){return R(this.#e)}set search(e){M(this.#e,e,!0)}#t=0;#n;#r=j(!1);get mounted(){return R(this.#r)}set mounted(e){M(this.#r,e,!0)}#i;constructor(e,t){this.opts=e,this.parentMenu=t,this.domContext=new P_(e.ref),this.attachment=F_(this.opts.ref,e=>{this.parentMenu.contentNode!==e&&(this.parentMenu.contentNode=e)}),t.contentId=e.id,this.#i=e.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Zy({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr(`sub-trigger`)),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:e=>{this.parentMenu.root.isPointerInTransit=e}}),this.#n=new Xy({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new vv({rootNode:Q(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr(`item`),loop:this.opts.loop,orientation:Q(()=>`vertical`)}),o_(()=>this.parentMenu.contentNode,e=>e?fb.listen(e,()=>{x_(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})}):void 0),I(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#t)})}#a(){let e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr(`item`)}]:not([data-disabled])`)):[]}#o(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=e=>{this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||this.#i)&&this.parentMenu.triggerNode&&Ny(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(e){let t=this.parentMenu;for(;t.parentMenu!==null;)t=t.parentMenu;if(!t.triggerNode)return;e.preventDefault();let n=Ly(t.triggerNode,e.shiftKey?`prev`:`next`);n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,t.onClose(),x_(()=>{n.focus(),x_(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===`Tab`){this.handleTabKeyDown(e);return}let t=e.target,n=e.currentTarget;if(!fv(t)||!fv(n))return;let r=t.closest(`[${this.parentMenu.root.getBitsAttr(`content`)}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,a=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(t,e)||e.code===`Space`)return;let o=this.#a();r&&!i&&a&&this.#n(e.key,o),e.target?.id===this.parentMenu.contentId.current&&Yv.includes(e.key)&&(e.preventDefault(),Jv.includes(e.key)&&o.reverse(),ey(o,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){pv(e.currentTarget)&&pv(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(this.#t),this.search=``))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&x_(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#o()}onItemLeave(e){e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr(`sub-trigger`))||this.#o()||this.parentMenu.root.isUsingKeyboard.current||(this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId(``))}onTriggerLeave(){return!!this.#o()}handleInteractOutside(e){if(!mv(e.target))return;let t=this.parentMenu.triggerNode?.id;if(e.target.id===t){e.preventDefault();return}e.target.closest(`#${t}`)&&e.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=A(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return R(this.#s)}set snippetProps(e){M(this.#s,e)}#c=A(()=>({id:this.opts.id.current,role:`menu`,"aria-orientation":`vertical`,[this.parentMenu.root.getBitsAttr(`content`)]:``,"data-state":B_(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:`auto`,contain:`layout style`},...this.attachment}));get props(){return R(this.#c)}set props(e){M(this.#c,e)}popperProps={onCloseAutoFocus:e=>this.onCloseAutoFocus(e)}},_b=class{opts;content;attachment;#e=j(!1);constructor(e,t){this.opts=e,this.content=t,this.attachment=F_(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&Qv(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;let t=e.currentTarget;if(!fv(t))return;t.focus()}}onpointerleave(e){e.defaultPrevented||Qv(e)&&this.content.onItemLeave(e)}onfocus(e){x_(()=>{e.defaultPrevented||this.opts.disabled.current||M(this.#e,!0)})}onblur(e){x_(()=>{e.defaultPrevented||M(this.#e,!1)})}#t=A(()=>({id:this.opts.id.current,tabindex:-1,role:`menuitem`,"aria-disabled":I_(this.opts.disabled.current),"data-disabled":R_(this.opts.disabled.current),"data-highlighted":R(this.#e)?``:void 0,[this.content.parentMenu.root.getBitsAttr(`item`)]:``,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},vb=class e{static create(t){return new e(t,new _b(t,cb.get()))}opts;item;root;#e=!1;constructor(e,t){this.opts=e,this.item=t,this.root=t.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#t(){if(this.item.opts.disabled.current)return;let e=new CustomEvent(`menuitemselect`,{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(e){let t=this.item.content.search!==``;if(!(this.item.opts.disabled.current||t&&e.key===` `)&&Kv.includes(e.key)){if(!fv(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||this.#t()}onpointerup(e){if(!e.defaultPrevented&&!this.#e){if(!fv(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){this.#e=!0}#n=A(()=>Zg(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return R(this.#n)}set props(e){M(this.#n,e)}},yb=class e{static create(t,n){return new e(t,new vb(t,new _b(t,cb.get())),n)}opts;item;group;constructor(e,t,n=null){this.opts=e,this.item=t,this.group=n,this.group&&(o_(()=>this.group.opts.value.current,e=>{this.opts.checked.current=e.includes(this.opts.value.current)}),o_(()=>this.opts.checked.current,e=>{e?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}#e=A(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){M(this.#e,e)}#t=A(()=>({...this.item.props,role:`menuitemcheckbox`,"aria-checked":V_(this.opts.checked.current,this.opts.indeterminate.current),"data-state":Zv(this.opts.checked.current),[this.item.root.getBitsAttr(`checkbox-item`)]:``}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},bb=class e{static create(t){return lb.set(new e(t,ob.get()))}opts;root;attachment;#e=j(void 0);get groupHeadingId(){return R(this.#e)}set groupHeadingId(e){M(this.#e,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref)}#t=A(()=>({id:this.opts.id.current,role:`group`,"aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr(`group`)]:``,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},xb=class e{static create(t){let n=db.getOr(null);if(n)return new e(t,n);let r=ub.getOr(null);return r?new e(t,r):new e(t,lb.get())}opts;group;attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=F_(this.opts.ref,e=>this.group.groupHeadingId=e?.id)}#e=A(()=>({id:this.opts.id.current,role:`group`,[this.group.root.getBitsAttr(`group-heading`)]:``,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},Sb=class e{static create(t){return new e(t,ob.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref)}#e=A(()=>({id:this.opts.id.current,role:`group`,[this.root.getBitsAttr(`separator`)]:``,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},Cb=class e{static create(t){return lb.set(ub.set(new e(t,cb.get())))}opts;content;attachment;#e=j(null);get groupHeadingId(){return R(this.#e)}set groupHeadingId(e){M(this.#e,e,!0)}root;constructor(e,t){this.opts=e,this.content=t,this.root=t.parentMenu.root,this.attachment=F_(this.opts.ref)}setValue(e){this.opts.value.current=e}#t=A(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`radio-group`)]:``,role:`group`,"aria-labelledby":this.groupHeadingId,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},wb=class e{static create(t){let n=ub.get();return new e(t,new vb(t,new _b(t,n.content)),n)}opts;item;group;attachment;#e=A(()=>this.group.opts.value.current===this.opts.value.current);get isChecked(){return R(this.#e)}set isChecked(e){M(this.#e,e)}constructor(e,t,n){this.opts=e,this.item=t,this.group=n,this.attachment=F_(this.opts.ref)}selectValue(){this.group.setValue(this.opts.value.current)}#t=A(()=>({[this.group.root.getBitsAttr(`radio-item`)]:``,...this.item.props,role:`menuitemradio`,"aria-checked":V_(this.isChecked,!1),"data-state":Zv(this.isChecked),...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},Tb=class e{static create(t){return new e(t,sb.get())}opts;parentMenu;attachment;constructor(e,t){this.opts=e,this.parentMenu=t,this.attachment=F_(this.opts.ref,e=>this.parentMenu.triggerNode=e)}onclick=e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())};onpointerdown=e=>{if(!this.opts.disabled.current){if(e.pointerType===`touch`)return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}};onpointerup=e=>{this.opts.disabled.current||e.pointerType===`touch`&&(e.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=e=>{if(!this.opts.disabled.current){if(e.key===` `||e.key===`Enter`){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===`ArrowDown`&&(this.parentMenu.onOpen(),e.preventDefault())}};#e=A(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#t=A(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":`menu`,"aria-expanded":I_(this.parentMenu.opts.open.current),"aria-controls":R(this.#e),"data-disabled":R_(this.opts.disabled.current),"data-state":B_(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr(`trigger`)]:``,onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},Eb=class e{static create(t){return db.set(new e(t,cb.get()))}opts;content;root;attachment;#e=j(null);get groupHeadingId(){return R(this.#e)}set groupHeadingId(e){M(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.parentMenu.root,this.attachment=F_(this.opts.ref)}addValue(e){if(e&&!this.opts.value.current.includes(e)){let t=[...st(this.opts.value.current),e];if(this.opts.value.current=t,zy(this.opts.value.current,t))return;this.opts.onValueChange.current(t)}}removeValue(e){if(!e||this.opts.value.current.indexOf(e)===-1)return;let t=this.opts.value.current.filter(t=>t!==e);this.opts.value.current=t,!zy(this.opts.value.current,t)&&this.opts.onValueChange.current(t)}#t=A(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`checkbox-group`)]:``,role:`group`,"aria-labelledby":this.groupHeadingId,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}};globalThis.bitsDismissableLayers??=new Map;var Db=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=$;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,I(()=>{this.#a=Wv(this.opts.ref.current)});let t=$,n=()=>{this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};o_([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return b_(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),n}),v_(()=>{this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&x_(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return Wg(ni(this.#a,`pointerdown`,Wg(this.#f,this.#m),{capture:!0}),ni(this.#a,`pointerdown`,Wg(this.#p,this.#d)),ni(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=jb(e)),this.#e.current(e)};#d=Hv(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||Ab(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=jb(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=ni(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=kb(this.opts.ref.current))};#h=e=>this.opts.ref.current?Uv(this.opts.ref.current,e):!1;#g=Hv(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function Ob(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function kb(e){let t=[...globalThis.bitsDismissableLayers],n=Ob(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function Ab(e,t){let n=e.target;if(!mv(n))return!1;let r=!!n.closest(`[${ib}]`);if(`button`in e&&e.button>0&&!r)return!1;if(`button`in e&&e.button===0&&r)return!0;let i=!!t.closest(`[${ab}]`);return r&&i?!1:Wv(n).documentElement.contains(n)&&!Uv(t,n)&&Gv(e,t)}function jb(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function Mb(e,t){D(t,!0);let n=q(t,`interactOutsideBehavior`,7,`close`),r=q(t,`onInteractOutside`,7,$),i=q(t,`onFocusOutside`,7,$),a=q(t,`id`,7),o=q(t,`children`,7),s=q(t,`enabled`,7),c=q(t,`isValidEvent`,7,()=>!1),l=q(t,`ref`,7),u=Db.create({id:Q(()=>a()),interactOutsideBehavior:Q(()=>n()),onInteractOutside:Q(()=>r()),enabled:Q(()=>s()),onFocusOutside:Q(()=>i()),isValidEvent:Q(()=>c()),ref:l()});var d={get interactOutsideBehavior(){return n()},set interactOutsideBehavior(e=`close`){n(e),k()},get onInteractOutside(){return r()},set onInteractOutside(e=$){r(e),k()},get onFocusOutside(){return i()},set onFocusOutside(e=$){i(e),k()},get id(){return a()},set id(e){a(e),k()},get children(){return o()},set children(e){o(e),k()},get enabled(){return s()},set enabled(e){s(e),k()},get isValidEvent(){return c()},set isValidEvent(e=()=>!1){c(e),k()},get ref(){return l()},set ref(e){l(e),k()}},f=B();return U(P(f),()=>o()??w,()=>({props:u.props})),V(e,f),O(d)}J(Mb,{interactOutsideBehavior:{},onInteractOutside:{},onFocusOutside:{},id:{},children:{},enabled:{},isValidEvent:{},ref:{}},[],[],{mode:`open`}),globalThis.bitsEscapeLayers??=new Map;var Nb=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new P_(this.opts.ref);let t=$;o_(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>ni(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Pb(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;n!==`close`&&n!==`defer-otherwise-close`||this.opts.onEscapeKeydown.current(t)}};function Pb(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Fb(e,t){D(t,!0);let n=q(t,`escapeKeydownBehavior`,7,`close`),r=q(t,`onEscapeKeydown`,7,$),i=q(t,`children`,7),a=q(t,`enabled`,7),o=q(t,`ref`,7);Nb.create({escapeKeydownBehavior:Q(()=>n()),onEscapeKeydown:Q(()=>r()),enabled:Q(()=>a()),ref:o()});var s={get escapeKeydownBehavior(){return n()},set escapeKeydownBehavior(e=`close`){n(e),k()},get onEscapeKeydown(){return r()},set onEscapeKeydown(e=$){r(e),k()},get children(){return i()},set children(e){i(e),k()},get enabled(){return a()},set enabled(e){a(e),k()},get ref(){return o()},set ref(e){o(e),k()}},c=B();return U(P(c),()=>i()??w),V(e,c),O(s)}J(Fb,{escapeKeydownBehavior:{},onEscapeKeydown:{},children:{},enabled:{},ref:{}},[],[],{mode:`open`});var Ib=class e{static instance;#e=hg([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Lb=class e{#e=!1;#t=null;#n=Ib.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(ni(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n)if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&Fy(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}},{capture:!0}),ni(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?jy(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?My(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return o_([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),v_(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Rb(e,t){D(t,!0);let n=q(t,`enabled`,7,!1),r=q(t,`trapFocus`,7,!1),i=q(t,`loop`,7,!1),a=q(t,`onCloseAutoFocus`,7,$),o=q(t,`onOpenAutoFocus`,7,$),s=q(t,`focusScope`,7),c=q(t,`ref`,7),l=Lb.use({enabled:Q(()=>n()),trap:Q(()=>r()),loop:i(),onCloseAutoFocus:Q(()=>a()),onOpenAutoFocus:Q(()=>o()),ref:c()});var u={get enabled(){return n()},set enabled(e=!1){n(e),k()},get trapFocus(){return r()},set trapFocus(e=!1){r(e),k()},get loop(){return i()},set loop(e=!1){i(e),k()},get onCloseAutoFocus(){return a()},set onCloseAutoFocus(e=$){a(e),k()},get onOpenAutoFocus(){return o()},set onOpenAutoFocus(e=$){o(e),k()},get focusScope(){return s()},set focusScope(e){s(e),k()},get ref(){return c()},set ref(e){c(e),k()}},d=B();return U(P(d),()=>s()??w,()=>({props:l.props})),V(e,d),O(u)}J(Rb,{enabled:{},trapFocus:{},loop:{},onCloseAutoFocus:{},onOpenAutoFocus:{},focusScope:{},ref:{}},[],[],{mode:`open`}),globalThis.bitsTextSelectionLayers??=new Map;var zb=class e{static create(t){return new e(t)}opts;domContext;#e=$;constructor(e){this.opts=e,this.domContext=new P_(e.ref);let t=$;o_(()=>this.opts.enabled.current,e=>(e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#t()),()=>{t(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#t(){return Wg(ni(this.domContext.getDocument(),`pointerdown`,this.#n),ni(this.domContext.getDocument(),`pointerup`,_g(this.#r,this.opts.onPointerUp.current)))}#n=e=>{let t=this.opts.ref.current,n=e.target;!fv(t)||!fv(n)||!this.opts.enabled.current||!Ub(this)||!A_(t,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&(this.#e=Vb(t,this.domContext.getDocument().body)))};#r=()=>{this.#e(),this.#e=$}},Bb=e=>e.style.userSelect||e.style.webkitUserSelect;function Vb(e,t){let n=Bb(t),r=Bb(e);return Hb(t,`none`),Hb(e,`text`),()=>{Hb(t,n),Hb(e,r)}}function Hb(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Ub(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function Wb(e,t){D(t,!0);let n=q(t,`preventOverflowTextSelection`,7,!0),r=q(t,`onPointerDown`,7,$),i=q(t,`onPointerUp`,7,$),a=q(t,`id`,7),o=q(t,`children`,7),s=q(t,`enabled`,7),c=q(t,`ref`,7);zb.create({id:Q(()=>a()),onPointerDown:Q(()=>r()),onPointerUp:Q(()=>i()),enabled:Q(()=>s()&&n()),ref:c()});var l={get preventOverflowTextSelection(){return n()},set preventOverflowTextSelection(e=!0){n(e),k()},get onPointerDown(){return r()},set onPointerDown(e=$){r(e),k()},get onPointerUp(){return i()},set onPointerUp(e=$){i(e),k()},get id(){return a()},set id(e){a(e),k()},get children(){return o()},set children(e){o(e),k()},get enabled(){return s()},set enabled(e){s(e),k()},get ref(){return c()},set ref(e){c(e),k()}},u=B();return U(P(u),()=>o()??w),V(e,u),O(l)}J(Wb,{preventOverflowTextSelection:{},onPointerDown:{},onPointerUp:{},id:{},children:{},enabled:{},ref:{}},[],[],{mode:`open`}),globalThis.bitsIdCounter??={current:0};function Gb(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var Kb=class{#e;#t=0;#n=j();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),M(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,R(this.#n)===void 0&&(this.#r=tr(()=>{M(this.#n,this.#e(...e),!0)})),I(()=>()=>{this.#i()}),R(this.#n)}},qb=new gp,Jb=j(null),Yb=null,Xb=null,Zb=!1,Qb=Q(()=>{for(let e of qb.values())if(e)return!0;return!1}),$b=null,ex=new Kb(()=>{function e(){document.body.setAttribute(`style`,R(Jb)??``),document.body.style.removeProperty(`--scrollbar-width`),uv&&Yb?.(),M(Jb,null)}function t(){Xb!==null&&(window.clearTimeout(Xb),Xb=null)}function n(e,n){t(),Zb=!0,$b=Date.now();let r=$b,i=()=>{Xb=null,$b===r&&(nx(qb)?Zb=!1:(Zb=!1,n()))},a=e===null?24:e;Xb=window.setTimeout(i,a)}function r(){R(Jb)===null&&qb.size===0&&!Zb&&M(Jb,document.body.getAttribute(`style`),!0)}return o_(()=>Qb.current,()=>{if(!Qb.current)return;r(),Zb=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,uv&&(Yb=ni(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),x_(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),v_(()=>()=>{Yb?.()}),{get lockMap(){return qb},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),tx=class{#e=Gb();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=ex.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Q(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),v_(()=>{if(this.#r.lockMap.delete(this.#e),nx(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function nx(e){for(let[t,n]of e)if(n)return!0;return!1}function rx(e,t){D(t,!0);let n=q(t,`preventScroll`,7,!0),r=q(t,`restoreScrollDelay`,7,null);return n()&&new tx(n(),()=>r()),O({get preventScroll(){return n()},set preventScroll(e=!0){n(e),k()},get restoreScrollDelay(){return r()},set restoreScrollDelay(e=null){r(e),k()}})}J(rx,{preventScroll:{},restoreScrollDelay:{}},[],[],{mode:`open`});var ix=z(`<div><!></div>`);function ax(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`forceMount`,7,!1),a=q(t,`child`,7),o=q(t,`children`,7),s=q(t,`ref`,15,null),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`forceMount`,`child`,`children`,`ref`]),l=kv.create({id:Q(()=>r()),ref:Q(()=>s(),e=>s(e))}),u=A(()=>Zg(c,l.props));var d={get id(){return r()},set id(e=xv(n)){r(e),k()},get forceMount(){return i()},set forceMount(e=!1){i(e),k()},get child(){return a()},set child(e){a(e),k()},get children(){return o()},set children(e){o(e),k()},get ref(){return s()},set ref(e=null){s(e),k()}},f=B(),p=P(f),m=e=>{var t=B(),n=P(t),r=e=>{var t=B(),n=P(t);{let e=A(()=>({props:Zg(R(u)),...l.snippetProps}));U(n,a,()=>R(e))}V(e,t)},i=e=>{var t=ix();qa(t,e=>({...e}),[()=>Zg(R(u))]),U(N(t),()=>o()??w,()=>l.snippetProps),E(t),V(e,t)};W(n,e=>{a()?e(r):e(i,-1)}),V(e,t)};return W(p,e=>{(l.shouldRender||i())&&e(m)}),V(e,f),O(d)}J(ax,{id:{},forceMount:{},child:{},children:{},ref:{}},[],[],{mode:`open`});var ox=z(`<div><!></div>`);function sx(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`]),c=Dv.create({id:Q(()=>r()),ref:Q(()=>o(),e=>o(e))}),l=A(()=>Zg(s,c.props));var u={get id(){return r()},set id(e=xv(n)){r(e),k()},get children(){return i()},set children(e){i(e),k()},get child(){return a()},set child(e){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()}},d=B(),f=P(d),p=e=>{var t=B();U(P(t),a,()=>({props:R(l)})),V(e,t)},m=e=>{var t=ox();qa(t,()=>({...R(l)})),U(N(t),()=>i()??w),E(t),V(e,t)};return W(f,e=>{a()?e(p):e(m,-1)}),V(e,d),O(u)}J(sx,{id:{},children:{},child:{},ref:{}},[],[],{mode:`open`});function cx(e,t){D(t,!0);let n=q(t,`children`,7),r=q(t,`defaultPortalTo`,7),i=q(t,`defaultLocale`,7);Fv({defaultPortalTo:Q(()=>r()),defaultLocale:Q(()=>i())});var a={get children(){return n()},set children(e){n(e),k()},get defaultPortalTo(){return r()},set defaultPortalTo(e){r(e),k()},get defaultLocale(){return i()},set defaultLocale(e){i(e),k()}},o=B();return U(P(o),()=>n()??w),V(e,o),O(a)}J(cx,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],{mode:`open`});var lx=z(`<input/>`),ux=z(`<input/>`);function dx(e,t){D(t,!0);let n=q(t,`value`,15),r=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`value`]),i=A(()=>Zg(r,{"aria-hidden":`true`,tabindex:-1,style:Qg}));var a={get value(){return n()},set value(e){n(e),k()}},o=B(),s=P(o),c=e=>{var t=lx();qa(t,()=>({...R(i),value:n()}),void 0,void 0,void 0,void 0,!0),V(e,t)},l=e=>{var t=ux();qa(t,()=>({...R(i)}),void 0,void 0,void 0,void 0,!0),Za(t,n),V(e,t)};return W(s,e=>{R(i).type===`checkbox`?e(c):e(l,-1)}),V(e,o),O(a)}J(dx,{value:{}},[],[],{mode:`open`});var fx=U_({component:`collapsible`,parts:[`root`,`content`,`trigger`]}),px=new n_(`Collapsible.Root`),mx=class e{static create(t){return px.set(new e(t))}opts;attachment;#e=j(null);get contentNode(){return R(this.#e)}set contentNode(e){M(this.#e,e,!0)}contentPresence;#t=j(void 0);get contentId(){return R(this.#t)}set contentId(e){M(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=F_(this.opts.ref),this.contentPresence=new bv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#n=A(()=>({id:this.opts.id.current,"data-state":B_(this.opts.open.current),"data-disabled":R_(this.opts.disabled.current),[fx.root]:``,...this.attachment}));get props(){return R(this.#n)}set props(e){M(this.#n,e)}},hx=class e{static create(t){return new e(t,px.get())}opts;root;attachment;#e=A(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return R(this.#e)}set present(e){M(this.#e,e)}#t;#n=j(!1);#r=j(0);#i=j(0);constructor(e,t){this.opts=e,this.root=t,M(this.#n,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=F_(this.opts.ref,e=>this.root.contentNode=e),o_.pre(()=>this.opts.id.current,e=>{this.root.contentId=e}),er(()=>{let e=requestAnimationFrame(()=>{M(this.#n,!1)});return()=>{cancelAnimationFrame(e)}}),o_.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([e,t])=>!e||!t?void 0:ni(e,`beforematch`,()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),o_([()=>this.opts.ref.current,()=>this.present],([e])=>{e&&x_(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();if(M(this.#i,t.height,!0),M(this.#r,t.width,!0),!R(this.#n)){let{animationName:t,transitionDuration:n}=this.#t;e.style.transitionDuration=n,e.style.animationName=t}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#a=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#a)}set snippetProps(e){M(this.#a,e)}#o=A(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":R(this.#i)?`${R(this.#i)}px`:void 0,"--bits-collapsible-content-width":R(this.#r)?`${R(this.#r)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?`until-found`:void 0,"data-state":B_(this.root.opts.open.current),"data-disabled":R_(this.root.opts.disabled.current),[fx.content]:``,...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return R(this.#o)}set props(e){M(this.#o,e)}},gx=class e{static create(t){return new e(t,px.get())}opts;root;attachment;#e=A(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!R(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){R(this.#e)||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.toggleOpen())}#t=A(()=>({id:this.opts.id.current,type:`button`,disabled:R(this.#e),"aria-controls":this.root.contentId,"aria-expanded":I_(this.root.opts.open.current),"data-state":B_(this.root.opts.open.current),"data-disabled":R_(R(this.#e)),[fx.trigger]:``,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},_x=z(`<div><!></div>`);function vx(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>xv(n)),o=q(t,`ref`,15,null),s=q(t,`open`,15,!1),c=q(t,`disabled`,7,!1),l=q(t,`onOpenChange`,7,$),u=q(t,`onOpenChangeComplete`,7,$),d=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`open`,`disabled`,`onOpenChange`,`onOpenChangeComplete`]),f=mx.create({open:Q(()=>s(),e=>{s(e),l()(e)}),disabled:Q(()=>c()),id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),onOpenChangeComplete:Q(()=>u())}),p=A(()=>Zg(d,f.props));var m={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get id(){return a()},set id(e=xv(n)){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get open(){return s()},set open(e=!1){s(e),k()},get disabled(){return c()},set disabled(e=!1){c(e),k()},get onOpenChange(){return l()},set onOpenChange(e=$){l(e),k()},get onOpenChangeComplete(){return u()},set onOpenChangeComplete(e=$){u(e),k()}},h=B(),g=P(h),_=e=>{var t=B();U(P(t),i,()=>({props:R(p)})),V(e,t)},v=e=>{var t=_x();qa(t,()=>({...R(p)})),U(N(t),()=>r()??w),E(t),V(e,t)};return W(g,e=>{i()?e(_):e(v,-1)}),V(e,h),O(m)}J(vx,{children:{},child:{},id:{},ref:{},open:{},disabled:{},onOpenChange:{},onOpenChangeComplete:{}},[],[],{mode:`open`});var yx=z(`<div><!></div>`);function bx(e,t){let n=hi();D(t,!0);let r=q(t,`child`,7),i=q(t,`ref`,15,null),a=q(t,`forceMount`,7,!1),o=q(t,`hiddenUntilFound`,7,!1),s=q(t,`children`,7),c=q(t,`id`,23,()=>xv(n)),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`ref`,`forceMount`,`hiddenUntilFound`,`children`,`id`]),u=hx.create({id:Q(()=>c()),forceMount:Q(()=>a()),hiddenUntilFound:Q(()=>o()),ref:Q(()=>i(),e=>i(e))}),d=A(()=>Zg(l,u.props));var f={get child(){return r()},set child(e){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get forceMount(){return a()},set forceMount(e=!1){a(e),k()},get hiddenUntilFound(){return o()},set hiddenUntilFound(e=!1){o(e),k()},get children(){return s()},set children(e){s(e),k()},get id(){return c()},set id(e=xv(n)){c(e),k()}},p=B(),m=P(p),h=e=>{var t=B(),n=P(t);{let e=A(()=>({...u.snippetProps,props:R(d)}));U(n,r,()=>R(e))}V(e,t)},g=e=>{var t=yx();qa(t,()=>({...R(d)})),U(N(t),()=>s()??w),E(t),V(e,t)};return W(m,e=>{r()?e(h):e(g,-1)}),V(e,p),O(f)}J(bx,{child:{},ref:{},forceMount:{},hiddenUntilFound:{},children:{},id:{}},[],[],{mode:`open`});var xx=z(`<button><!></button>`);function Sx(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>xv(n)),s=q(t,`disabled`,7,!1),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`id`,`disabled`]),l=gx.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e)),disabled:Q(()=>s())}),u=A(()=>Zg(c,l.props));var d={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get id(){return o()},set id(e=xv(n)){o(e),k()},get disabled(){return s()},set disabled(e=!1){s(e),k()}},f=B(),p=P(f),m=e=>{var t=B();U(P(t),i,()=>({props:R(u)})),V(e,t)},h=e=>{var t=xx();qa(t,()=>({...R(u)})),U(N(t),()=>r()??w),E(t),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),O(d)}J(Sx,{children:{},child:{},ref:{},id:{},disabled:{}},[],[],{mode:`open`});var Cx=[`top`,`right`,`bottom`,`left`],wx=Math.min,Tx=Math.max,Ex=Math.round,Dx=Math.floor,Ox=e=>({x:e,y:e}),kx={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ax(e,t,n){return Tx(e,wx(t,n))}function jx(e,t){return typeof e==`function`?e(t):e}function Mx(e){return e.split(`-`)[0]}function Nx(e){return e.split(`-`)[1]}function Px(e){return e===`x`?`y`:`x`}function Fx(e){return e===`y`?`height`:`width`}function Ix(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Lx(e){return Px(Ix(e))}function Rx(e,t,n){n===void 0&&(n=!1);let r=Nx(e),i=Lx(e),a=Fx(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=qx(o)),[o,qx(o)]}function zx(e){let t=qx(e);return[Bx(e),t,Bx(t)]}function Bx(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Vx=[`left`,`right`],Hx=[`right`,`left`],Ux=[`top`,`bottom`],Wx=[`bottom`,`top`];function Gx(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Hx:Vx:t?Vx:Hx;case`left`:case`right`:return t?Ux:Wx;default:return[]}}function Kx(e,t,n,r){let i=Nx(e),a=Gx(Mx(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Bx)))),a}function qx(e){let t=Mx(e);return kx[t]+e.slice(t.length)}function Jx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yx(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Jx(e)}function Xx(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Zx(e,t,n){let{reference:r,floating:i}=e,a=Ix(t),o=Lx(t),s=Fx(o),c=Mx(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Nx(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Qx(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=jx(t,e),p=Yx(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Xx(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Xx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var $x=50,eS=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Qx},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Zx(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<$x&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Zx(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},tS=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=jx(e,t)||{};if(l==null)return{};let d=Yx(u),f={x:n,y:r},p=Lx(i),m=Fx(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let ee=b/2-x/2,te=C/2-h[m]/2-1,ne=wx(d[_],te),re=wx(d[v],te),w=ne,ie=C-h[m]-re,ae=C/2-h[m]/2+ee,oe=Ax(w,ae,ie),se=!c.arrow&&Nx(i)!=null&&ae!==oe&&a.reference[m]/2-(ae<w?ne:re)-h[m]/2<0,ce=se?ae<w?ae-w:ae-ie:0;return{[p]:f[p]+ce,data:{[p]:oe,centerOffset:ae-oe-ce,...se&&{alignmentOffset:ce}},reset:se}}}),nS=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=jx(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Mx(r),_=Ix(o),v=Mx(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[qx(o)]:zx(o)),x=p!==`none`;!d&&x&&b.push(...Kx(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),ee=[],te=i.flip?.overflows||[];if(l&&ee.push(C[g]),u){let e=Rx(r,a,y);ee.push(C[e[0]],C[e[1]])}if(te=[...te,{placement:r,overflows:ee}],!ee.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ix(t))||te.every(e=>Ix(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:te},reset:{placement:t}};let n=te.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=te.filter(e=>{if(x){let t=Ix(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function rS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iS(e){return Cx.some(t=>e[t]>=0)}var aS=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=jx(e,t);switch(i){case`referenceHidden`:{let e=rS(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:iS(e)}}}case`escaped`:{let e=rS(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:iS(e)}}}default:return{}}}}},oS=new Set([`left`,`top`]);async function sS(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Mx(n),s=Nx(n),c=Ix(n)===`y`,l=oS.has(o)?-1:1,u=a&&c?-1:1,d=jx(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var cS=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await sS(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},lS=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=jx(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ix(Mx(i)),p=Px(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Ax(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Ax(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},uS=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=jx(e,t),u={x:n,y:r},d=Ix(i),f=Px(d),p=u[f],m=u[d],h=jx(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=oS.has(Mx(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},dS=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=jx(e,t),u=await o.detectOverflow(t,l),d=Mx(i),f=Nx(i),p=Ix(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=wx(h-u[g],v),x=wx(m-u[_],y),S=!t.middlewareData.shift,C=b,ee=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ee=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Tx(u.left,0),t=Tx(u.right,0),n=Tx(u.top,0),r=Tx(u.bottom,0);p?ee=m-2*(e!==0||t!==0?e+t:Tx(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Tx(u.top,u.bottom))}await c({...t,availableWidth:ee,availableHeight:C});let te=await o.getDimensions(s.floating);return m!==te.width||h!==te.height?{reset:{rects:!0}}:{}}}};function fS(){return typeof window<`u`}function pS(e){return gS(e)?(e.nodeName||``).toLowerCase():`#document`}function mS(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hS(e){return((gS(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function gS(e){return fS()?e instanceof Node||e instanceof mS(e).Node:!1}function _S(e){return fS()?e instanceof Element||e instanceof mS(e).Element:!1}function vS(e){return fS()?e instanceof HTMLElement||e instanceof mS(e).HTMLElement:!1}function yS(e){return!fS()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof mS(e).ShadowRoot}function bS(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=jS(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function xS(e){return/^(table|td|th)$/.test(pS(e))}function SS(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var CS=/transform|translate|scale|rotate|perspective|filter/,wS=/paint|layout|strict|content/,TS=e=>!!e&&e!==`none`,ES;function DS(e){let t=_S(e)?jS(e):e;return TS(t.transform)||TS(t.translate)||TS(t.scale)||TS(t.rotate)||TS(t.perspective)||!kS()&&(TS(t.backdropFilter)||TS(t.filter))||CS.test(t.willChange||``)||wS.test(t.contain||``)}function OS(e){let t=NS(e);for(;vS(t)&&!AS(t);){if(DS(t))return t;if(SS(t))return null;t=NS(t)}return null}function kS(){return ES??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ES}function AS(e){return/^(html|body|#document)$/.test(pS(e))}function jS(e){return mS(e).getComputedStyle(e)}function MS(e){return _S(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function NS(e){if(pS(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||yS(e)&&e.host||hS(e);return yS(t)?t.host:t}function PS(e){let t=NS(e);return AS(t)?e.ownerDocument?e.ownerDocument.body:e.body:vS(t)&&bS(t)?t:PS(t)}function FS(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=PS(e),i=r===e.ownerDocument?.body,a=mS(r);if(i){let e=IS(a);return t.concat(a,a.visualViewport||[],bS(r)?r:[],e&&n?FS(e):[])}else return t.concat(r,FS(r,[],n))}function IS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function LS(e){let t=jS(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=vS(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ex(n)!==a||Ex(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function RS(e){return _S(e)?e:e.contextElement}function zS(e){let t=RS(e);if(!vS(t))return Ox(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=LS(t),o=(a?Ex(n.width):n.width)/r,s=(a?Ex(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var BS=Ox(0);function VS(e){let t=mS(e);return!kS()||!t.visualViewport?BS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mS(e)?!1:t}function US(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=RS(e),o=Ox(1);t&&(r?_S(r)&&(o=zS(r)):o=zS(e));let s=HS(a,n,r)?VS(a):Ox(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=mS(a),t=r&&_S(r)?mS(r):r,n=e,i=IS(n);for(;i&&r&&t!==n;){let e=zS(i),t=i.getBoundingClientRect(),r=jS(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=mS(i),i=IS(n)}}return Xx({width:u,height:d,x:c,y:l})}function WS(e,t){let n=MS(e).scrollLeft;return t?t.left+n:US(hS(e)).left+n}function GS(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-WS(e,n),y:n.top+t.scrollTop}}function KS(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=hS(r),s=t?SS(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ox(1),u=Ox(0),d=vS(r);if((d||!d&&!a)&&((pS(r)!==`body`||bS(o))&&(c=MS(r)),d)){let e=US(r);l=zS(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?GS(o,c):Ox(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function qS(e){return Array.from(e.getClientRects())}function JS(e){let t=hS(e),n=MS(e),r=e.ownerDocument.body,i=Tx(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Tx(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+WS(e),s=-n.scrollTop;return jS(r).direction===`rtl`&&(o+=Tx(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var YS=25;function XS(e,t){let n=mS(e),r=hS(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=kS();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=WS(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=YS&&(a-=o)}else l<=YS&&(a+=l);return{width:a,height:o,x:s,y:c}}function ZS(e,t){let n=US(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=vS(e)?zS(e):Ox(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function QS(e,t,n){let r;if(t===`viewport`)r=XS(e,n);else if(t===`document`)r=JS(hS(e));else if(_S(t))r=ZS(t,n);else{let n=VS(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xx(r)}function $S(e,t){let n=NS(e);return n===t||!_S(n)||AS(n)?!1:jS(n).position===`fixed`||$S(n,t)}function eC(e,t){let n=t.get(e);if(n)return n;let r=FS(e,[],!1).filter(e=>_S(e)&&pS(e)!==`body`),i=null,a=jS(e).position===`fixed`,o=a?NS(e):e;for(;_S(o)&&!AS(o);){let t=jS(o),n=DS(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||bS(o)&&!n&&$S(e,o))?r=r.filter(e=>e!==o):i=t,o=NS(o)}return t.set(e,r),r}function tC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?SS(t)?[]:eC(t,this._c):[].concat(n),r],o=QS(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=QS(t,a[e],i);s=Tx(n.top,s),c=wx(n.right,c),l=wx(n.bottom,l),u=Tx(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function nC(e){let{width:t,height:n}=LS(e);return{width:t,height:n}}function rC(e,t,n){let r=vS(t),i=hS(t),a=n===`fixed`,o=US(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ox(0);function l(){c.x=WS(i)}if(r||!r&&!a)if((pS(t)!==`body`||bS(i))&&(s=MS(t)),r){let e=US(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?GS(i,s):Ox(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function iC(e){return jS(e).position===`static`}function aC(e,t){if(!vS(e)||jS(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return hS(e)===n&&(n=n.ownerDocument.body),n}function oC(e,t){let n=mS(e);if(SS(e))return n;if(!vS(e)){let t=NS(e);for(;t&&!AS(t);){if(_S(t)&&!iC(t))return t;t=NS(t)}return n}let r=aC(e,t);for(;r&&xS(r)&&iC(r);)r=aC(r,t);return r&&AS(r)&&iC(r)&&!DS(r)?n:r||OS(e)||n}var sC=async function(e){let t=this.getOffsetParent||oC,n=this.getDimensions,r=await n(e.floating);return{reference:rC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cC(e){return jS(e).direction===`rtl`}var lC={convertOffsetParentRelativeRectToViewportRelativeRect:KS,getDocumentElement:hS,getClippingRect:tC,getOffsetParent:oC,getElementRects:sC,getClientRects:qS,getDimensions:nC,getScale:zS,isElement:_S,isRTL:cC};function uC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dC(e,t){let n=null,r,i=hS(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Dx(d),h=Dx(i.clientWidth-(u+f)),g=Dx(i.clientHeight-(d+p)),_=Dx(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Tx(0,wx(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!uC(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function fC(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=RS(e),u=i||a?[...l?FS(l):[],...t?FS(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?dC(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?US(e):null;c&&g();function g(){let t=US(e);h&&!uC(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var pC=cS,mC=lS,hC=nS,gC=dS,_C=aS,vC=tS,yC=uS,bC=(e,t,n)=>{let r=new Map,i={platform:lC,...n},a={...i.platform,_c:r};return eS(e,t,{...i,platform:a})};function xC(e){return typeof e==`function`?e():e}function SC(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function CC(e,t){let n=SC(e);return Math.round(t*n)/n}function wC(e){return{[`--bits-${e}-content-transform-origin`]:`var(--bits-floating-transform-origin)`,[`--bits-${e}-content-available-width`]:`var(--bits-floating-available-width)`,[`--bits-${e}-content-available-height`]:`var(--bits-floating-available-height)`,[`--bits-${e}-anchor-width`]:`var(--bits-floating-anchor-width)`,[`--bits-${e}-anchor-height`]:`var(--bits-floating-anchor-height)`}}function TC(e){let t=e.whileElementsMounted,n=A(()=>xC(e.open)??!0),r=A(()=>xC(e.middleware)),i=A(()=>xC(e.transform)??!0),a=A(()=>xC(e.placement)??`bottom`),o=A(()=>xC(e.strategy)??`absolute`),s=A(()=>xC(e.sideOffset)??0),c=A(()=>xC(e.alignOffset)??0),l=e.reference,u=j(0),d=j(0),f=hg(null),p=j(Dn(R(o))),m=j(Dn(R(a))),h=j(Dn({})),g=j(!1),_=!1,v=A(()=>{let e=f.current?CC(f.current,R(u)):R(u),t=f.current?CC(f.current,R(d)):R(d);return R(i)?{position:R(p),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...f.current&&SC(f.current)>=1.5&&{willChange:`transform`}}:{position:R(p),left:`${e}px`,top:`${t}px`}}),y;function b(){l.current===null||f.current===null||bC(l.current,f.current,{middleware:R(r),placement:R(a),strategy:R(o)}).then(e=>{let t=l.current;if(EC(t)){M(h,{...R(h),hide:{...R(h).hide,referenceHidden:!0}},!0);return}if(!R(n)&&R(u)!==0&&R(d)!==0){let t=Math.max(Math.abs(R(s)),Math.abs(R(c)),15);if(e.x<=t&&e.y<=t)return}M(u,e.x,!0),M(d,e.y,!0),M(p,e.strategy,!0),M(m,e.placement,!0),M(h,e.middlewareData,!0),M(g,!0)})}function x(){typeof y==`function`&&(y(),y=void 0)}function S(){if(x(),t===void 0){b();return}R(n)&&(l.current===null||f.current===null||(y=t(l.current,f.current,b)))}function C(){!R(n)&&f.current===null&&M(g,!1)}function ee(){return[R(r),R(a),R(o),R(s),R(c),R(n)]}return I(()=>{t===void 0&&R(n)&&b()}),I(S),I(()=>{if(t!==void 0){if(ee(),!R(n)){_=!1;return}if(!R(g)){_=!1;return}if(!_){_=!0;return}b()}}),I(C),I(()=>x),{floating:f,reference:l,get strategy(){return R(p)},get placement(){return R(m)},get middlewareData(){return R(h)},get isPositioned(){return R(g)},get floatingStyles(){return R(v)},get update(){return b}}}function EC(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var DC={top:`bottom`,right:`left`,bottom:`top`,left:`right`},OC=new n_(`Floating.Root`),kC=new n_(`Floating.Content`),AC=new n_(`Floating.Root`),jC=class e{static create(t=!1){return t?AC.set(new e):OC.set(new e)}anchorNode=hg(null);customAnchorNode=hg(null);triggerNode=hg(null);constructor(){I(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current==`string`?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}},MC=class e{static create(t,n=!1){return n?kC.set(new e(t,AC.get())):kC.set(new e(t,OC.get()))}opts;root;contentRef=hg(null);wrapperRef=hg(null);arrowRef=hg(null);contentAttachment=F_(this.contentRef);wrapperAttachment=F_(this.wrapperRef);arrowAttachment=F_(this.arrowRef);arrowId=hg(Gb());#e=A(()=>{if(typeof this.opts.style==`string`)return Ug(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new d_(()=>this.arrowRef.current??void 0);#r=A(()=>this.#n?.width??0);#i=A(()=>this.#n?.height??0);#a=A(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`));#o=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=A(()=>R(this.#o).length>0);get hasExplicitBoundaries(){return R(this.#s)}set hasExplicitBoundaries(e){M(this.#s,e)}#c=A(()=>({padding:this.opts.collisionPadding.current,boundary:R(this.#o).filter(gv),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return R(this.#c)}set detectOverflowOptions(e){M(this.#c,e)}#l=j(void 0);#u=j(void 0);#d=j(void 0);#f=j(void 0);#p=A(()=>[pC({mainAxis:this.opts.sideOffset.current+R(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&mC({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?yC():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&hC({...this.detectOverflowOptions}),gC({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;M(this.#l,t,!0),M(this.#u,n,!0),M(this.#d,r,!0),M(this.#f,i,!0)}}),this.arrowRef.current&&vC({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),PC({arrowWidth:R(this.#r),arrowHeight:R(this.#i)}),this.opts.hideWhenDetached.current&&_C({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean));get middleware(){return R(this.#p)}set middleware(e){M(this.#p,e)}floating;#m=A(()=>IC(this.floating.placement));get placedSide(){return R(this.#m)}set placedSide(e){M(this.#m,e)}#h=A(()=>LC(this.floating.placement));get placedAlign(){return R(this.#h)}set placedAlign(e){M(this.#h,e)}#g=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return R(this.#g)}set arrowX(e){M(this.#g,e)}#_=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return R(this.#_)}set arrowY(e){M(this.#_,e)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return R(this.#v)}set cannotCenterArrow(e){M(this.#v,e)}#y=j();get contentZIndex(){return R(this.#y)}set contentZIndex(e){M(this.#y,e,!0)}#b=A(()=>DC[this.placedSide]);get arrowBaseSide(){return R(this.#b)}set arrowBaseSide(e){M(this.#b,e)}#x=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":``,style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${R(this.#l)}px`,"--bits-floating-available-height":`${R(this.#u)}px`,"--bits-floating-anchor-width":`${R(this.#d)}px`,"--bits-floating-anchor-height":`${R(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...R(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return R(this.#x)}set wrapperProps(e){M(this.#x,e)}#S=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Jg({...R(this.#e)}),...this.contentAttachment}));get props(){return R(this.#S)}set props(e){M(this.#S,e)}#C=A(()=>({position:`absolute`,left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[this.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[this.placedSide],visibility:this.cannotCenterArrow?`hidden`:void 0}));get arrowStyle(){return R(this.#C)}set arrowStyle(e){M(this.#C,e)}constructor(e,t){this.opts=e,this.root=t,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),o_(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=TC({strategy:()=>this.opts.strategy.current,placement:()=>R(this.#a),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>fC(...e,{animationFrame:this.#t?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),I(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),o_(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=M_(e),n=t.requestAnimationFrame(()=>{if(this.contentRef.current!==e||!this.opts.enabled.current)return;let n=t.getComputedStyle(e).zIndex;n!==this.contentZIndex&&(this.contentZIndex=n)});return()=>{t.cancelAnimationFrame(n)}}),I(()=>{this.floating.floating.current=this.wrapperRef.current})}},NC=class e{static create(t,n=!1){return n?new e(t,AC.get()):new e(t,OC.get())}opts;root;constructor(e,t){this.opts=e,this.root=t,e.virtualEl&&e.virtualEl.current?t.triggerNode=fg(e.virtualEl.current):t.triggerNode=e.ref}};function PC(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=FC(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function FC(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function IC(e){return FC(e)[0]}function LC(e){return FC(e)[1]}function RC(e,t){D(t,!0);let n=q(t,`children`,7),r=q(t,`tooltip`,7,!1);jC.create(r());var i={get children(){return n()},set children(e){n(e),k()},get tooltip(){return r()},set tooltip(e=!1){r(e),k()}},a=B();return U(P(a),()=>n()??w),V(e,a),O(i)}J(RC,{children:{},tooltip:{}},[],[],{mode:`open`});var zC=[G_,Z_,K_,nv,J_,Y_,`Alt`,$_,X_,`F1`,`F2`,`F3`,`F4`,`F5`,`F6`,`F7`,`F8`,`F9`,`F10`,`F11`,`F12`],BC=[W_,tv,Q_],VC=[q_,ev,`End`],HC=[...BC,...VC],UC=U_({component:`select`,parts:[`trigger`,`content`,`item`,`viewport`,`scroll-up-button`,`scroll-down-button`,`group`,`group-label`,`separator`,`arrow`,`input`,`content-wrapper`,`item-text`,`value`]}),WC=new n_(`Select.Root | Combobox.Root`);new n_(`Select.Group | Combobox.Group`);var GC=new n_(`Select.Content | Combobox.Content`),KC=class{opts;#e=j(!1);get touchedInput(){return R(this.#e)}set touchedInput(e){M(this.#e,e,!0)}#t=j(null);get inputNode(){return R(this.#t)}set inputNode(e){M(this.#t,e,!0)}#n=j(null);get contentNode(){return R(this.#n)}set contentNode(e){M(this.#n,e,!0)}contentPresence;#r=j(null);get viewportNode(){return R(this.#r)}set viewportNode(e){M(this.#r,e,!0)}#i=j(null);get triggerNode(){return R(this.#i)}set triggerNode(e){M(this.#i,e,!0)}#a=j(``);get valueId(){return R(this.#a)}set valueId(e){M(this.#a,e,!0)}#o=j(null);get highlightedNode(){return R(this.#o)}set highlightedNode(e){M(this.#o,e,!0)}#s=A(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-value`):null);get highlightedValue(){return R(this.#s)}set highlightedValue(e){M(this.#s,e)}#c=A(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return R(this.#c)}set highlightedId(e){M(this.#c,e)}#l=A(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-label`):null);get highlightedLabel(){return R(this.#l)}set highlightedLabel(e){M(this.#l,e)}isUsingKeyboard=!1;isCombobox=!1;domContext=new P_(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new bv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),er(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){let e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr(`item`)}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){let e=this.viewportNode.getBoundingClientRect();t=t.filter(t=>{if(!this.viewportNode)return!1;let n=t.getBoundingClientRect();return n.right<=e.right&&n.left>=e.left&&n.bottom<=e.bottom&&n.top>=e.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(t=>t.dataset.value===e)??null}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>UC.getAttr(e,this.isCombobox?`combobox`:void 0)},qC=class extends KC{opts;isMulti=!1;#e=A(()=>this.opts.value.current!==``);get hasValue(){return R(this.#e)}set hasValue(e){M(this.#e,e)}#t=A(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??``:``);get currentLabel(){return R(this.#t)}set currentLabel(e){M(this.#t,e)}#n=A(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return R(this.#n)}set candidateLabels(e){M(this.#n,e)}#r=A(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return R(this.#r)}set dataTypeaheadEnabled(e){M(this.#r,e)}constructor(e){super(e),this.opts=e,I(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),o_(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,t=e){let n=this.includesItem(e)?``:e;this.opts.value.current=n,n!==``&&(this.opts.inputValue.current=t)}setInitialHighlightedNode(){x_(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==``){let e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},JC=class extends KC{opts;isMulti=!0;#e=A(()=>this.opts.value.current.length>0);get hasValue(){return R(this.#e)}set hasValue(e){M(this.#e,e)}constructor(e){super(e),this.opts=e,I(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),o_(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(t=>t!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=t}setInitialHighlightedNode(){x_(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==``){let e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},YC=class{static create(e){let{type:t,...n}=e,r=t===`single`?new qC(n):new JC(n);return WC.set(r)}},XC=class e{static create(t){return new e(t,WC.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(e.ref,e=>this.root.inputNode=e),this.root.domContext=new P_(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),o_([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([e,t],[n])=>{t&&(Array.isArray(e)&&Array.isArray(n)?e.length===0&&n.length!==0&&(this.root.opts.inputValue.current=``):e===``&&n!==``&&(this.root.opts.inputValue.current=``))})}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==`Escape`){if((e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault(),!this.root.opts.open.current){if(zC.includes(e.key)||e.key===`Tab`||e.key===`Backspace`&&this.root.opts.inputValue.current===``||(this.root.handleOpen(),this.root.hasValue))return;let t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===`ArrowDown`){let e=t[0];this.root.setHighlightedNode(e)}else if(e.key===`ArrowUp`){let e=t[t.length-1];this.root.setHighlightedNode(e)}return}if(e.key===`Tab`){this.root.handleClose();return}if(e.key===`Enter`&&!e.isComposing){e.preventDefault();let t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===`ArrowUp`&&e.altKey&&this.root.handleClose(),HC.includes(e.key)){e.preventDefault();let t=this.root.getCandidateNodes(),n=this.root.highlightedNode,r=n?t.indexOf(n):-1,i=this.root.opts.loop.current,a;if(e.key===`ArrowDown`?a=Hy(t,r,i):e.key===`ArrowUp`?a=Uy(t,r,i):e.key===`PageDown`?a=Wy(t,r,10,i):e.key===`PageUp`?a=Gy(t,r,10,i):e.key===`Home`?a=t[0]:e.key===`End`&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}zC.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#e=A(()=>({id:this.opts.id.current,role:`combobox`,disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":`list`,"aria-expanded":I_(this.root.opts.open.current),"data-state":B_(this.root.opts.open.current),"data-disabled":R_(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr(`input`)]:``,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},ZC=class e{static create(t){return new e(t,WC.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this)}onkeydown(e){this.root.domContext&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}onpointerdown(e){this.root.opts.disabled.current||!this.root.domContext||(e.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}#e=A(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":`listbox`,"data-state":B_(this.root.opts.open.current),"data-disabled":R_(this.root.opts.disabled.current),[this.root.getBitsAttr(`trigger`)]:``,onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},QC=class e{static create(t){return GC.set(new e(t,WC.get()))}opts;root;attachment;#e=j(!1);get isPositioned(){return R(this.#e)}set isPositioned(e){M(this.#e,e,!0)}domContext;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(e.ref,e=>this.root.contentNode=e),this.domContext=new P_(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),v_(()=>{this.root.contentNode=null,this.isPositioned=!1}),o_(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=A(()=>wC(this.root.isCombobox?`combobox`:`select`));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#n)}set snippetProps(e){M(this.#n,e)}#r=A(()=>({id:this.opts.id.current,role:`listbox`,"aria-multiselectable":this.root.isMulti?`true`:void 0,"data-state":B_(this.root.opts.open.current),[this.root.getBitsAttr(`content`)]:``,style:{display:`flex`,flexDirection:`column`,outline:`none`,boxSizing:`border-box`,pointerEvents:`auto`,...R(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return R(this.#r)}set props(e){M(this.#r,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}},$C=class e{static create(t){return new e(t,WC.get())}opts;root;attachment;#e=A(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return R(this.#e)}set isSelected(e){M(this.#e,e)}#t=A(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return R(this.#t)}set isHighlighted(e){M(this.#t,e)}prevHighlighted=new f_(()=>this.isHighlighted);#n=j(!1);get mounted(){return R(this.#n)}set mounted(e){M(this.#n,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(e.ref),o_([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),o_(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;let e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#r=A(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return R(this.#r)}set snippetProps(e){M(this.#r,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType===`touch`&&!uv){ni(this.opts.ref.current,`click`,()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType===`touch`&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!==`touch`&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=A(()=>({id:this.opts.id.current,role:`option`,"aria-selected":this.root.includesItem(this.opts.value.current)?`true`:void 0,"data-value":this.opts.value.current,"data-disabled":R_(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?``:void 0,"data-selected":this.root.includesItem(this.opts.value.current)?``:void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr(`item`)]:``,onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return R(this.#i)}set props(e){M(this.#i,e)}},ew=class e{static create(t){return new e(t,WC.get())}opts;root;#e=A(()=>this.root.opts.name.current!==``);get shouldRender(){return R(this.#e)}set shouldRender(e){M(this.#e,e)}constructor(e,t){this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=A(()=>({disabled:z_(this.root.opts.disabled.current),required:z_(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},tw=class e{static create(t){return new e(t,GC.get())}opts;content;root;attachment;#e=j(0);get prevScrollTop(){return R(this.#e)}set prevScrollTop(e){M(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=F_(e.ref,e=>{this.root.viewportNode=e})}#t=A(()=>({id:this.opts.id.current,role:`presentation`,[this.root.getBitsAttr(`viewport`)]:``,style:{position:`relative`,flex:1,overflow:`auto`},...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},nw=class{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=$;#e=j(!1);get mounted(){return R(this.#e)}set mounted(e){M(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=F_(e.ref),o_([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),I(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(e){if(this.autoScrollTimer!==null)return;let t=e=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(e+1),this.opts.delay.current(e))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(1),this.opts.delay.current(0))}onpointermove(e){this.onpointerdown(e)}onpointerleave(e){this.clearAutoScrollInterval()}#t=A(()=>({id:this.opts.id.current,"aria-hidden":L_(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},rw=class e{static create(t){return new e(new nw(t,GC.get()))}scrollButtonState;content;root;#e=j(!1);get canScrollDown(){return R(this.#e)}set canScrollDown(e){M(this.#e,e,!0)}scrollIntoViewTimer=null;constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,o_([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ni(this.root.viewportNode,`scroll`,()=>this.handleScroll())}),o_([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),o_(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=b_(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;let t=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<t-n};handleAutoScroll=()=>{let e=this.root.viewportNode,t=this.root.highlightedNode;!e||!t||(e.scrollTop+=t.offsetHeight)};#t=A(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr(`scroll-down-button`)]:``}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}},iw=class e{static create(t){return new e(new nw(t,GC.get()))}scrollButtonState;content;root;#e=j(!1);get canScrollUp(){return R(this.#e)}set canScrollUp(e){M(this.#e,e,!0)}constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,o_([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ni(this.root.viewportNode,`scroll`,()=>this.handleScroll())})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;let t=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-t>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#t=A(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr(`scroll-up-button`)]:``}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}};function aw(e,t){D(t,!0);let n=q(t,`value`,15),r=q(t,`autocomplete`,7),i=ew.create({value:Q(()=>n())});var a={get value(){return n()},set value(e){n(e),k()},get autocomplete(){return r()},set autocomplete(e){r(e),k()}},o=B(),s=P(o),c=e=>{dx(e,po(()=>i.props,{get autocomplete(){return r()},get value(){return n()},set value(e){n(e)}}))};return W(s,e=>{i.shouldRender&&e(c)}),V(e,o),O(a)}J(aw,{value:{},autocomplete:{}},[],[],{mode:`open`});var ow=z(`<!> <!>`,1);function sw(e,t){D(t,!0);let n=q(t,`value`,15),r=q(t,`onValueChange`,7,$),i=q(t,`name`,7,``),a=q(t,`disabled`,7,!1),o=q(t,`type`,7),s=q(t,`open`,15,!1),c=q(t,`onOpenChange`,7,$),l=q(t,`onOpenChangeComplete`,7,$),u=q(t,`loop`,7,!1),d=q(t,`scrollAlignment`,7,`nearest`),f=q(t,`required`,7,!1),p=q(t,`items`,23,()=>[]),m=q(t,`allowDeselect`,7,!0),h=q(t,`inputValue`,7,``),g=q(t,`children`,7);n()===void 0&&n(o()===`single`?``:[]),o_.pre(()=>n(),()=>{n()===void 0&&n(o()===`single`?``:[])});let _=YC.create({type:o(),value:Q(()=>n(),e=>{n(e),r()(e)}),disabled:Q(()=>a()),required:Q(()=>f()),open:Q(()=>s(),e=>{s(e),c()(e)}),loop:Q(()=>u()),scrollAlignment:Q(()=>d()),name:Q(()=>i()),isCombobox:!0,items:Q(()=>p()),allowDeselect:Q(()=>m()),inputValue:Q(()=>h(),e=>h(e)),onOpenChangeComplete:Q(()=>l())});var v={get value(){return n()},set value(e){n(e),k()},get onValueChange(){return r()},set onValueChange(e=$){r(e),k()},get name(){return i()},set name(e=``){i(e),k()},get disabled(){return a()},set disabled(e=!1){a(e),k()},get type(){return o()},set type(e){o(e),k()},get open(){return s()},set open(e=!1){s(e),k()},get onOpenChange(){return c()},set onOpenChange(e=$){c(e),k()},get onOpenChangeComplete(){return l()},set onOpenChangeComplete(e=$){l(e),k()},get loop(){return u()},set loop(e=!1){u(e),k()},get scrollAlignment(){return d()},set scrollAlignment(e=`nearest`){d(e),k()},get required(){return f()},set required(e=!1){f(e),k()},get items(){return p()},set items(e=[]){p(e),k()},get allowDeselect(){return m()},set allowDeselect(e=!0){m(e),k()},get inputValue(){return h()},set inputValue(e=``){h(e),k()},get children(){return g()},set children(e){g(e),k()}},y=ow(),b=P(y);RC(b,{children:(e,t)=>{var n=B();U(P(n),()=>g()??w),V(e,n)},$$slots:{default:!0}});var x=F(b,2),S=e=>{var t=B(),n=P(t),r=e=>{var t=B();Yi(P(t),16,()=>_.opts.value.current,e=>e,(e,t)=>{aw(e,{get value(){return t}})}),V(e,t)};W(n,e=>{_.opts.value.current.length&&e(r)}),V(e,t)},C=A(()=>Array.isArray(_.opts.value.current)),ee=e=>{aw(e,{get value(){return _.opts.value.current},set value(e){_.opts.value.current=e}})};return W(x,e=>{R(C)?e(S):e(ee,-1)}),V(e,y),O(v)}J(sw,{value:{},onValueChange:{},name:{},disabled:{},type:{},open:{},onOpenChange:{},onOpenChangeComplete:{},loop:{},scrollAlignment:{},required:{},items:{},allowDeselect:{},inputValue:{},children:{}},[],[],{mode:`open`});function cw(e,t){D(t,!0);let n=q(t,`id`,7),r=q(t,`children`,7),i=q(t,`virtualEl`,7),a=q(t,`ref`,7),o=q(t,`tooltip`,7,!1);NC.create({id:Q(()=>n()),virtualEl:Q(()=>i()),ref:a()},o());var s={get id(){return n()},set id(e){n(e),k()},get children(){return r()},set children(e){r(e),k()},get virtualEl(){return i()},set virtualEl(e){i(e),k()},get ref(){return a()},set ref(e){a(e),k()},get tooltip(){return o()},set tooltip(e=!1){o(e),k()}},c=B();return U(P(c),()=>r()??w),V(e,c),O(s)}J(cw,{id:{},children:{},virtualEl:{},ref:{},tooltip:{}},[],[],{mode:`open`});function lw(e,t){D(t,!0);let n=q(t,`content`,7),r=q(t,`side`,7,`bottom`),i=q(t,`sideOffset`,7,0),a=q(t,`align`,7,`center`),o=q(t,`alignOffset`,7,0),s=q(t,`id`,7),c=q(t,`arrowPadding`,7,0),l=q(t,`avoidCollisions`,7,!0),u=q(t,`collisionBoundary`,23,()=>[]),d=q(t,`collisionPadding`,7,0),f=q(t,`hideWhenDetached`,7,!1),p=q(t,`onPlaced`,7,()=>{}),m=q(t,`sticky`,7,`partial`),h=q(t,`updatePositionStrategy`,7,`optimized`),g=q(t,`strategy`,7,`fixed`),_=q(t,`dir`,7,`ltr`),v=q(t,`style`,23,()=>({})),y=q(t,`wrapperId`,23,Gb),b=q(t,`customAnchor`,7,null),x=q(t,`enabled`,7),S=q(t,`tooltip`,7,!1),C=MC.create({side:Q(()=>r()),sideOffset:Q(()=>i()),align:Q(()=>a()),alignOffset:Q(()=>o()),id:Q(()=>s()),arrowPadding:Q(()=>c()),avoidCollisions:Q(()=>l()),collisionBoundary:Q(()=>u()),collisionPadding:Q(()=>d()),hideWhenDetached:Q(()=>f()),onPlaced:Q(()=>p()),sticky:Q(()=>m()),updatePositionStrategy:Q(()=>h()),strategy:Q(()=>g()),dir:Q(()=>_()),style:Q(()=>v()),enabled:Q(()=>x()),wrapperId:Q(()=>y()),customAnchor:Q(()=>b())},S()),ee=A(()=>Zg(C.wrapperProps,{style:{pointerEvents:`auto`}}));var te={get content(){return n()},set content(e){n(e),k()},get side(){return r()},set side(e=`bottom`){r(e),k()},get sideOffset(){return i()},set sideOffset(e=0){i(e),k()},get align(){return a()},set align(e=`center`){a(e),k()},get alignOffset(){return o()},set alignOffset(e=0){o(e),k()},get id(){return s()},set id(e){s(e),k()},get arrowPadding(){return c()},set arrowPadding(e=0){c(e),k()},get avoidCollisions(){return l()},set avoidCollisions(e=!0){l(e),k()},get collisionBoundary(){return u()},set collisionBoundary(e=[]){u(e),k()},get collisionPadding(){return d()},set collisionPadding(e=0){d(e),k()},get hideWhenDetached(){return f()},set hideWhenDetached(e=!1){f(e),k()},get onPlaced(){return p()},set onPlaced(e=()=>{}){p(e),k()},get sticky(){return m()},set sticky(e=`partial`){m(e),k()},get updatePositionStrategy(){return h()},set updatePositionStrategy(e=`optimized`){h(e),k()},get strategy(){return g()},set strategy(e=`fixed`){g(e),k()},get dir(){return _()},set dir(e=`ltr`){_(e),k()},get style(){return v()},set style(e={}){v(e),k()},get wrapperId(){return y()},set wrapperId(e=Gb()){y(e),k()},get customAnchor(){return b()},set customAnchor(e=null){b(e),k()},get enabled(){return x()},set enabled(e){x(e),k()},get tooltip(){return S()},set tooltip(e=!1){S(e),k()}},ne=B();return U(P(ne),()=>n()??w,()=>({props:C.props,wrapperProps:R(ee)})),V(e,ne),O(te)}J(lw,{content:{},side:{},sideOffset:{},align:{},alignOffset:{},id:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},hideWhenDetached:{},onPlaced:{},sticky:{},updatePositionStrategy:{},strategy:{},dir:{},style:{},wrapperId:{},customAnchor:{},enabled:{},tooltip:{}},[],[],{mode:`open`});function uw(e,t){D(t,!0);let n=q(t,`content`,7),r=q(t,`onPlaced`,7);Fi(()=>{r()?.()});var i={get content(){return n()},set content(e){n(e),k()},get onPlaced(){return r()},set onPlaced(e){r(e),k()}},a=B();return U(P(a),()=>n()??w,()=>({props:{},wrapperProps:{}})),V(e,a),O(i)}J(uw,{content:{},onPlaced:{}},[],[],{mode:`open`});var dw=z(`<input/>`);function fw(e,t){D(t,!0);let n=q(t,`id`,23,Gb),r=q(t,`ref`,15,null),i=q(t,`child`,7),a=q(t,`defaultValue`,7),o=q(t,`clearOnDeselect`,7,!1),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`defaultValue`,`clearOnDeselect`]),c=XC.create({id:Q(()=>n()),ref:Q(()=>r(),e=>r(e)),clearOnDeselect:Q(()=>o())});a()&&(c.root.opts.inputValue.current=a());let l=A(()=>Zg(s,c.props,{value:c.root.opts.inputValue.current}));var u={get id(){return n()},set id(e=Gb()){n(e),k()},get ref(){return r()},set ref(e=null){r(e),k()},get child(){return i()},set child(e){i(e),k()},get defaultValue(){return a()},set defaultValue(e){a(e),k()},get clearOnDeselect(){return o()},set clearOnDeselect(e=!1){o(e),k()}},d=B();return G(P(d),()=>cw,(e,t)=>{t(e,{get id(){return n()},get ref(){return c.opts.ref},children:(e,t)=>{var n=B(),r=P(n),a=e=>{var t=B();U(P(t),i,()=>({props:R(l)})),V(e,t)},o=e=>{var t=dw();qa(t,()=>({...R(l)}),void 0,void 0,void 0,void 0,!0),V(e,t)};W(r,e=>{i()?e(a):e(o,-1)}),V(e,n)},$$slots:{default:!0}})}),V(e,d),O(u)}J(fw,{id:{},ref:{},child:{},defaultValue:{},clearOnDeselect:{}},[],[],{mode:`open`});var pw=z(`<button><!></button>`);function mw(e,t){D(t,!0);let n=q(t,`id`,23,Gb),r=q(t,`ref`,15,null),i=q(t,`child`,7),a=q(t,`children`,7),o=q(t,`type`,7,`button`),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`children`,`type`]),c=ZC.create({id:Q(()=>n()),ref:Q(()=>r(),e=>r(e))}),l=A(()=>Zg(s,c.props,{type:o()}));var u={get id(){return n()},set id(e=Gb()){n(e),k()},get ref(){return r()},set ref(e=null){r(e),k()},get child(){return i()},set child(e){i(e),k()},get children(){return a()},set children(e){a(e),k()},get type(){return o()},set type(e=`button`){o(e),k()}},d=B(),f=P(d),p=e=>{var t=B();U(P(t),i,()=>({props:R(l)})),V(e,t)},m=e=>{var t=pw();qa(t,()=>({...R(l)})),U(N(t),()=>a()??w),E(t),V(e,t)};return W(f,e=>{i()?e(p):e(m,-1)}),V(e,d),O(u)}J(mw,{id:{},ref:{},child:{},children:{},type:{}},[],[],{mode:`open`});function hw(e,t){D(t,!0);let n=q(t,`content`,7),r=q(t,`isStatic`,7,!1),i=q(t,`onPlaced`,7),a=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`content`,`isStatic`,`onPlaced`]);var o={get content(){return n()},set content(e){n(e),k()},get isStatic(){return r()},set isStatic(e=!1){r(e),k()},get onPlaced(){return i()},set onPlaced(e){i(e),k()}},s=B(),c=P(s),l=e=>{uw(e,{get content(){return n()},get onPlaced(){return i()}})},u=e=>{lw(e,po({get content(){return n()},get onPlaced(){return i()}},()=>a))};return W(c,e=>{r()?e(l):e(u,-1)}),V(e,s),O(o)}J(hw,{content:{},isStatic:{},onPlaced:{}},[],[],{mode:`open`});var gw=z(`<!> <!>`,1);function _w(e,t){D(t,!0);let n=q(t,`popper`,7),r=q(t,`onEscapeKeydown`,7),i=q(t,`escapeKeydownBehavior`,7),a=q(t,`preventOverflowTextSelection`,7),o=q(t,`id`,7),s=q(t,`onPointerDown`,7),c=q(t,`onPointerUp`,7),l=q(t,`side`,7),u=q(t,`sideOffset`,7),d=q(t,`align`,7),f=q(t,`alignOffset`,7),p=q(t,`arrowPadding`,7),m=q(t,`avoidCollisions`,7),h=q(t,`collisionBoundary`,7),g=q(t,`collisionPadding`,7),_=q(t,`sticky`,7),v=q(t,`hideWhenDetached`,7),y=q(t,`updatePositionStrategy`,7),b=q(t,`strategy`,7),x=q(t,`dir`,7),S=q(t,`preventScroll`,7),C=q(t,`wrapperId`,7),ee=q(t,`style`,7),te=q(t,`onPlaced`,7),ne=q(t,`onInteractOutside`,7),re=q(t,`onCloseAutoFocus`,7),ie=q(t,`onOpenAutoFocus`,7),ae=q(t,`onFocusOutside`,7),oe=q(t,`interactOutsideBehavior`,7,`close`),se=q(t,`loop`,7),ce=q(t,`trapFocus`,7,!0),le=q(t,`isValidEvent`,7,()=>!1),ue=q(t,`customAnchor`,7,null),de=q(t,`isStatic`,7,!1),fe=q(t,`enabled`,7),pe=q(t,`ref`,7),me=q(t,`tooltip`,7,!1),he=q(t,`contentPointerEvents`,7,`auto`),ge=uo(t,`$$slots.$$events.$$legacy.$$host.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents`.split(`.`));return hw(e,{get isStatic(){return de()},get id(){return o()},get side(){return l()},get sideOffset(){return u()},get align(){return d()},get alignOffset(){return f()},get arrowPadding(){return p()},get avoidCollisions(){return m()},get collisionBoundary(){return h()},get collisionPadding(){return g()},get sticky(){return _()},get hideWhenDetached(){return v()},get updatePositionStrategy(){return y()},get strategy(){return b()},get dir(){return x()},get wrapperId(){return C()},get style(){return ee()},get onPlaced(){return te()},get customAnchor(){return ue()},get enabled(){return fe()},get tooltip(){return me()},content:(e,l)=>{let u=()=>l?.().props,d=()=>l?.().wrapperProps;var f=gw(),p=P(f),m=e=>{rx(e,{get preventScroll(){return S()}})},h=e=>{rx(e,{get preventScroll(){return S()}})};W(p,e=>{t.forceMount&&fe()?e(m):t.forceMount||e(h,1)}),Rb(F(p,2),{get onOpenAutoFocus(){return ie()},get onCloseAutoFocus(){return re()},get loop(){return se()},get enabled(){return fe()},get trapFocus(){return ce()},get forceMount(){return t.forceMount},get ref(){return pe()},focusScope:(e,t)=>{let l=()=>t?.().props;Fb(e,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return i()},get enabled(){return fe()},get ref(){return pe()},children:(e,t)=>{Mb(e,{get id(){return o()},get onInteractOutside(){return ne()},get onFocusOutside(){return ae()},get interactOutsideBehavior(){return oe()},get isValidEvent(){return le()},get enabled(){return fe()},get ref(){return pe()},children:(e,t)=>{let r=()=>t?.().props;Wb(e,{get id(){return o()},get preventOverflowTextSelection(){return a()},get onPointerDown(){return s()},get onPointerUp(){return c()},get enabled(){return fe()},get ref(){return pe()},children:(e,t)=>{var i=B(),a=P(i);{let e=A(()=>({props:Zg(ge,u(),r(),l(),{style:{pointerEvents:he()}}),wrapperProps:d()}));U(a,()=>n()??w,()=>R(e))}V(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),V(e,f)},$$slots:{content:!0}}),O({get popper(){return n()},set popper(e){n(e),k()},get onEscapeKeydown(){return r()},set onEscapeKeydown(e){r(e),k()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(e){i(e),k()},get preventOverflowTextSelection(){return a()},set preventOverflowTextSelection(e){a(e),k()},get id(){return o()},set id(e){o(e),k()},get onPointerDown(){return s()},set onPointerDown(e){s(e),k()},get onPointerUp(){return c()},set onPointerUp(e){c(e),k()},get side(){return l()},set side(e){l(e),k()},get sideOffset(){return u()},set sideOffset(e){u(e),k()},get align(){return d()},set align(e){d(e),k()},get alignOffset(){return f()},set alignOffset(e){f(e),k()},get arrowPadding(){return p()},set arrowPadding(e){p(e),k()},get avoidCollisions(){return m()},set avoidCollisions(e){m(e),k()},get collisionBoundary(){return h()},set collisionBoundary(e){h(e),k()},get collisionPadding(){return g()},set collisionPadding(e){g(e),k()},get sticky(){return _()},set sticky(e){_(e),k()},get hideWhenDetached(){return v()},set hideWhenDetached(e){v(e),k()},get updatePositionStrategy(){return y()},set updatePositionStrategy(e){y(e),k()},get strategy(){return b()},set strategy(e){b(e),k()},get dir(){return x()},set dir(e){x(e),k()},get preventScroll(){return S()},set preventScroll(e){S(e),k()},get wrapperId(){return C()},set wrapperId(e){C(e),k()},get style(){return ee()},set style(e){ee(e),k()},get onPlaced(){return te()},set onPlaced(e){te(e),k()},get onInteractOutside(){return ne()},set onInteractOutside(e){ne(e),k()},get onCloseAutoFocus(){return re()},set onCloseAutoFocus(e){re(e),k()},get onOpenAutoFocus(){return ie()},set onOpenAutoFocus(e){ie(e),k()},get onFocusOutside(){return ae()},set onFocusOutside(e){ae(e),k()},get interactOutsideBehavior(){return oe()},set interactOutsideBehavior(e=`close`){oe(e),k()},get loop(){return se()},set loop(e){se(e),k()},get trapFocus(){return ce()},set trapFocus(e=!0){ce(e),k()},get isValidEvent(){return le()},set isValidEvent(e=()=>!1){le(e),k()},get customAnchor(){return ue()},set customAnchor(e=null){ue(e),k()},get isStatic(){return de()},set isStatic(e=!1){de(e),k()},get enabled(){return fe()},set enabled(e){fe(e),k()},get ref(){return pe()},set ref(e){pe(e),k()},get tooltip(){return me()},set tooltip(e=!1){me(e),k()},get contentPointerEvents(){return he()},set contentPointerEvents(e=`auto`){he(e),k()}})}J(_w,{popper:{},onEscapeKeydown:{},escapeKeydownBehavior:{},preventOverflowTextSelection:{},id:{},onPointerDown:{},onPointerUp:{},side:{},sideOffset:{},align:{},alignOffset:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{},updatePositionStrategy:{},strategy:{},dir:{},preventScroll:{},wrapperId:{},style:{},onPlaced:{},onInteractOutside:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onFocusOutside:{},interactOutsideBehavior:{},loop:{},trapFocus:{},isValidEvent:{},customAnchor:{},isStatic:{},enabled:{},ref:{},tooltip:{},contentPointerEvents:{}},[],[],{mode:`open`});function vw(e,t){D(t,!0);let n=q(t,`popper`,7),r=q(t,`open`,7),i=q(t,`onEscapeKeydown`,7),a=q(t,`escapeKeydownBehavior`,7),o=q(t,`preventOverflowTextSelection`,7),s=q(t,`id`,7),c=q(t,`onPointerDown`,7),l=q(t,`onPointerUp`,7),u=q(t,`side`,7),d=q(t,`sideOffset`,7),f=q(t,`align`,7),p=q(t,`alignOffset`,7),m=q(t,`arrowPadding`,7),h=q(t,`avoidCollisions`,7),g=q(t,`collisionBoundary`,7),_=q(t,`collisionPadding`,7),v=q(t,`sticky`,7),y=q(t,`hideWhenDetached`,7),b=q(t,`updatePositionStrategy`,7),x=q(t,`strategy`,7),S=q(t,`dir`,7),C=q(t,`preventScroll`,7),ee=q(t,`wrapperId`,7),te=q(t,`style`,7),ne=q(t,`onPlaced`,7),re=q(t,`onInteractOutside`,7),w=q(t,`onCloseAutoFocus`,7),ie=q(t,`onOpenAutoFocus`,7),ae=q(t,`onFocusOutside`,7),oe=q(t,`interactOutsideBehavior`,7,`close`),se=q(t,`loop`,7),ce=q(t,`trapFocus`,7,!0),le=q(t,`isValidEvent`,7,()=>!1),ue=q(t,`customAnchor`,7,null),de=q(t,`isStatic`,7,!1),fe=q(t,`ref`,7),pe=q(t,`shouldRender`,7),me=uo(t,`$$slots.$$events.$$legacy.$$host.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender`.split(`.`));var he={get popper(){return n()},set popper(e){n(e),k()},get open(){return r()},set open(e){r(e),k()},get onEscapeKeydown(){return i()},set onEscapeKeydown(e){i(e),k()},get escapeKeydownBehavior(){return a()},set escapeKeydownBehavior(e){a(e),k()},get preventOverflowTextSelection(){return o()},set preventOverflowTextSelection(e){o(e),k()},get id(){return s()},set id(e){s(e),k()},get onPointerDown(){return c()},set onPointerDown(e){c(e),k()},get onPointerUp(){return l()},set onPointerUp(e){l(e),k()},get side(){return u()},set side(e){u(e),k()},get sideOffset(){return d()},set sideOffset(e){d(e),k()},get align(){return f()},set align(e){f(e),k()},get alignOffset(){return p()},set alignOffset(e){p(e),k()},get arrowPadding(){return m()},set arrowPadding(e){m(e),k()},get avoidCollisions(){return h()},set avoidCollisions(e){h(e),k()},get collisionBoundary(){return g()},set collisionBoundary(e){g(e),k()},get collisionPadding(){return _()},set collisionPadding(e){_(e),k()},get sticky(){return v()},set sticky(e){v(e),k()},get hideWhenDetached(){return y()},set hideWhenDetached(e){y(e),k()},get updatePositionStrategy(){return b()},set updatePositionStrategy(e){b(e),k()},get strategy(){return x()},set strategy(e){x(e),k()},get dir(){return S()},set dir(e){S(e),k()},get preventScroll(){return C()},set preventScroll(e){C(e),k()},get wrapperId(){return ee()},set wrapperId(e){ee(e),k()},get style(){return te()},set style(e){te(e),k()},get onPlaced(){return ne()},set onPlaced(e){ne(e),k()},get onInteractOutside(){return re()},set onInteractOutside(e){re(e),k()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(e){w(e),k()},get onOpenAutoFocus(){return ie()},set onOpenAutoFocus(e){ie(e),k()},get onFocusOutside(){return ae()},set onFocusOutside(e){ae(e),k()},get interactOutsideBehavior(){return oe()},set interactOutsideBehavior(e=`close`){oe(e),k()},get loop(){return se()},set loop(e){se(e),k()},get trapFocus(){return ce()},set trapFocus(e=!0){ce(e),k()},get isValidEvent(){return le()},set isValidEvent(e=()=>!1){le(e),k()},get customAnchor(){return ue()},set customAnchor(e=null){ue(e),k()},get isStatic(){return de()},set isStatic(e=!1){de(e),k()},get ref(){return fe()},set ref(e){fe(e),k()},get shouldRender(){return pe()},set shouldRender(e){pe(e),k()}},ge=B(),_e=P(ge),ve=e=>{_w(e,po({get popper(){return n()},get onEscapeKeydown(){return i()},get escapeKeydownBehavior(){return a()},get preventOverflowTextSelection(){return o()},get id(){return s()},get onPointerDown(){return c()},get onPointerUp(){return l()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return p()},get arrowPadding(){return m()},get avoidCollisions(){return h()},get collisionBoundary(){return g()},get collisionPadding(){return _()},get sticky(){return v()},get hideWhenDetached(){return y()},get updatePositionStrategy(){return b()},get strategy(){return x()},get dir(){return S()},get preventScroll(){return C()},get wrapperId(){return ee()},get style(){return te()},get onPlaced(){return ne()},get customAnchor(){return ue()},get isStatic(){return de()},get enabled(){return r()},get onInteractOutside(){return re()},get onCloseAutoFocus(){return w()},get onOpenAutoFocus(){return ie()},get interactOutsideBehavior(){return oe()},get loop(){return se()},get trapFocus(){return ce()},get isValidEvent(){return le()},get onFocusOutside(){return ae()},forceMount:!1,get ref(){return fe()}},()=>me))};return W(_e,e=>{pe()&&e(ve)}),V(e,ge),O(he)}J(vw,{popper:{},open:{},onEscapeKeydown:{},escapeKeydownBehavior:{},preventOverflowTextSelection:{},id:{},onPointerDown:{},onPointerUp:{},side:{},sideOffset:{},align:{},alignOffset:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{},updatePositionStrategy:{},strategy:{},dir:{},preventScroll:{},wrapperId:{},style:{},onPlaced:{},onInteractOutside:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onFocusOutside:{},interactOutsideBehavior:{},loop:{},trapFocus:{},isValidEvent:{},customAnchor:{},isStatic:{},ref:{},shouldRender:{}},[],[],{mode:`open`});function yw(e,t){D(t,!0);let n=q(t,`popper`,7),r=q(t,`onEscapeKeydown`,7),i=q(t,`escapeKeydownBehavior`,7),a=q(t,`preventOverflowTextSelection`,7),o=q(t,`id`,7),s=q(t,`onPointerDown`,7),c=q(t,`onPointerUp`,7),l=q(t,`side`,7),u=q(t,`sideOffset`,7),d=q(t,`align`,7),f=q(t,`alignOffset`,7),p=q(t,`arrowPadding`,7),m=q(t,`avoidCollisions`,7),h=q(t,`collisionBoundary`,7),g=q(t,`collisionPadding`,7),_=q(t,`sticky`,7),v=q(t,`hideWhenDetached`,7),y=q(t,`updatePositionStrategy`,7),b=q(t,`strategy`,7),x=q(t,`dir`,7),S=q(t,`preventScroll`,7),C=q(t,`wrapperId`,7),ee=q(t,`style`,7),te=q(t,`onPlaced`,7),ne=q(t,`onInteractOutside`,7),re=q(t,`onCloseAutoFocus`,7),w=q(t,`onOpenAutoFocus`,7),ie=q(t,`onFocusOutside`,7),ae=q(t,`interactOutsideBehavior`,7,`close`),oe=q(t,`loop`,7),se=q(t,`trapFocus`,7,!0),ce=q(t,`isValidEvent`,7,()=>!1),le=q(t,`customAnchor`,7,null),ue=q(t,`isStatic`,7,!1),de=q(t,`enabled`,7),fe=uo(t,`$$slots.$$events.$$legacy.$$host.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled`.split(`.`));return _w(e,po({get popper(){return n()},get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return i()},get preventOverflowTextSelection(){return a()},get id(){return o()},get onPointerDown(){return s()},get onPointerUp(){return c()},get side(){return l()},get sideOffset(){return u()},get align(){return d()},get alignOffset(){return f()},get arrowPadding(){return p()},get avoidCollisions(){return m()},get collisionBoundary(){return h()},get collisionPadding(){return g()},get sticky(){return _()},get hideWhenDetached(){return v()},get updatePositionStrategy(){return y()},get strategy(){return b()},get dir(){return x()},get preventScroll(){return S()},get wrapperId(){return C()},get style(){return ee()},get onPlaced(){return te()},get customAnchor(){return le()},get isStatic(){return ue()},get enabled(){return de()},get onInteractOutside(){return ne()},get onCloseAutoFocus(){return re()},get onOpenAutoFocus(){return w()},get interactOutsideBehavior(){return ae()},get loop(){return oe()},get trapFocus(){return se()},get isValidEvent(){return ce()},get onFocusOutside(){return ie()}},()=>fe,{forceMount:!0})),O({get popper(){return n()},set popper(e){n(e),k()},get onEscapeKeydown(){return r()},set onEscapeKeydown(e){r(e),k()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(e){i(e),k()},get preventOverflowTextSelection(){return a()},set preventOverflowTextSelection(e){a(e),k()},get id(){return o()},set id(e){o(e),k()},get onPointerDown(){return s()},set onPointerDown(e){s(e),k()},get onPointerUp(){return c()},set onPointerUp(e){c(e),k()},get side(){return l()},set side(e){l(e),k()},get sideOffset(){return u()},set sideOffset(e){u(e),k()},get align(){return d()},set align(e){d(e),k()},get alignOffset(){return f()},set alignOffset(e){f(e),k()},get arrowPadding(){return p()},set arrowPadding(e){p(e),k()},get avoidCollisions(){return m()},set avoidCollisions(e){m(e),k()},get collisionBoundary(){return h()},set collisionBoundary(e){h(e),k()},get collisionPadding(){return g()},set collisionPadding(e){g(e),k()},get sticky(){return _()},set sticky(e){_(e),k()},get hideWhenDetached(){return v()},set hideWhenDetached(e){v(e),k()},get updatePositionStrategy(){return y()},set updatePositionStrategy(e){y(e),k()},get strategy(){return b()},set strategy(e){b(e),k()},get dir(){return x()},set dir(e){x(e),k()},get preventScroll(){return S()},set preventScroll(e){S(e),k()},get wrapperId(){return C()},set wrapperId(e){C(e),k()},get style(){return ee()},set style(e){ee(e),k()},get onPlaced(){return te()},set onPlaced(e){te(e),k()},get onInteractOutside(){return ne()},set onInteractOutside(e){ne(e),k()},get onCloseAutoFocus(){return re()},set onCloseAutoFocus(e){re(e),k()},get onOpenAutoFocus(){return w()},set onOpenAutoFocus(e){w(e),k()},get onFocusOutside(){return ie()},set onFocusOutside(e){ie(e),k()},get interactOutsideBehavior(){return ae()},set interactOutsideBehavior(e=`close`){ae(e),k()},get loop(){return oe()},set loop(e){oe(e),k()},get trapFocus(){return se()},set trapFocus(e=!0){se(e),k()},get isValidEvent(){return ce()},set isValidEvent(e=()=>!1){ce(e),k()},get customAnchor(){return le()},set customAnchor(e=null){le(e),k()},get isStatic(){return ue()},set isStatic(e=!1){ue(e),k()},get enabled(){return de()},set enabled(e){de(e),k()}})}J(yw,{popper:{},onEscapeKeydown:{},escapeKeydownBehavior:{},preventOverflowTextSelection:{},id:{},onPointerDown:{},onPointerUp:{},side:{},sideOffset:{},align:{},alignOffset:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{},updatePositionStrategy:{},strategy:{},dir:{},preventScroll:{},wrapperId:{},style:{},onPlaced:{},onInteractOutside:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onFocusOutside:{},interactOutsideBehavior:{},loop:{},trapFocus:{},isValidEvent:{},customAnchor:{},isStatic:{},enabled:{}},[],[],{mode:`open`});var bw=z(`<div><div><!></div></div>`),xw=z(`<div><div><!></div></div>`);function Sw(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`forceMount`,7,!1),o=q(t,`side`,7,`bottom`),s=q(t,`onInteractOutside`,7,$),c=q(t,`onEscapeKeydown`,7,$),l=q(t,`children`,7),u=q(t,`child`,7),d=q(t,`preventScroll`,7,!1),f=q(t,`style`,7),p=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`forceMount`,`side`,`onInteractOutside`,`onEscapeKeydown`,`children`,`child`,`preventScroll`,`style`]),m=QC.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),onInteractOutside:Q(()=>s()),onEscapeKeydown:Q(()=>c())}),h=A(()=>Zg(p,m.props));var g={get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get forceMount(){return a()},set forceMount(e=!1){a(e),k()},get side(){return o()},set side(e=`bottom`){o(e),k()},get onInteractOutside(){return s()},set onInteractOutside(e=$){s(e),k()},get onEscapeKeydown(){return c()},set onEscapeKeydown(e=$){c(e),k()},get children(){return l()},set children(e){l(e),k()},get child(){return u()},set child(e){u(e),k()},get preventScroll(){return d()},set preventScroll(e=!1){d(e),k()},get style(){return f()},set style(e){f(e),k()}},_=B(),v=P(_),y=e=>{yw(e,po(()=>R(h),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return o()},get enabled(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return m.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,i=A(()=>Zg(n(),{style:m.props.style},{style:f()}));var a=B(),o=P(a),s=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(i),wrapperProps:r(),...m.snippetProps}));U(n,u,()=>R(e))}V(e,t)},c=e=>{var t=bw();qa(t,()=>({...r()}));var n=N(t);qa(n,()=>({...R(i)})),U(N(n),()=>l()??w),E(n),E(t),V(e,t)};W(o,e=>{u()?e(s):e(c,-1)}),V(e,a)},$$slots:{popper:!0}}))},b=e=>{vw(e,po(()=>R(h),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return o()},get open(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return m.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,i=A(()=>Zg(n(),{style:m.props.style},{style:f()}));var a=B(),o=P(a),s=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(i),wrapperProps:r(),...m.snippetProps}));U(n,u,()=>R(e))}V(e,t)},c=e=>{var t=xw();qa(t,()=>({...r()}));var n=N(t);qa(n,()=>({...R(i)})),U(N(n),()=>l()??w),E(n),E(t),V(e,t)};W(o,e=>{u()?e(s):e(c,-1)}),V(e,a)},$$slots:{popper:!0}}))};return W(v,e=>{a()?e(y):a()||e(b,1)}),V(e,_),O(g)}J(Sw,{id:{},ref:{},forceMount:{},side:{},onInteractOutside:{},onEscapeKeydown:{},children:{},child:{},preventScroll:{},style:{}},[],[],{mode:`open`});function Cw(e,t){D(t,!0);let n=q(t,`mounted`,15,!1),r=q(t,`onMountedChange`,7,$);return y_(()=>(n(!0),r()(!0),()=>{n(!1),r()(!1)})),O({get mounted(){return n()},set mounted(e=!1){n(e),k()},get onMountedChange(){return r()},set onMountedChange(e=$){r(e),k()}})}J(Cw,{mounted:{},onMountedChange:{}},[],[],{mode:`open`});var ww=z(`<div><!></div>`),Tw=z(`<!> <!>`,1);function Ew(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`value`,7),o=q(t,`label`,23,a),s=q(t,`disabled`,7,!1),c=q(t,`children`,7),l=q(t,`child`,7),u=q(t,`onHighlight`,7,$),d=q(t,`onUnhighlight`,7,$),f=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`value`,`label`,`disabled`,`children`,`child`,`onHighlight`,`onUnhighlight`]),p=$C.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),value:Q(()=>a()),disabled:Q(()=>s()),label:Q(()=>o()),onHighlight:Q(()=>u()),onUnhighlight:Q(()=>d())}),m=A(()=>Zg(f,p.props));var h={get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get value(){return a()},set value(e){a(e),k()},get label(){return o()},set label(e=a){o(e),k()},get disabled(){return s()},set disabled(e=!1){s(e),k()},get children(){return c()},set children(e){c(e),k()},get child(){return l()},set child(e){l(e),k()},get onHighlight(){return u()},set onHighlight(e=$){u(e),k()},get onUnhighlight(){return d()},set onUnhighlight(e=$){d(e),k()}},g=Tw(),_=P(g),v=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(m),...p.snippetProps}));U(n,l,()=>R(e))}V(e,t)},y=e=>{var t=ww();qa(t,()=>({...R(m)})),U(N(t),()=>c()??w,()=>p.snippetProps),E(t),V(e,t)};return W(_,e=>{l()?e(v):e(y,-1)}),Cw(F(_,2),{get mounted(){return p.mounted},set mounted(e){p.mounted=e}}),V(e,g),O(h)}J(Ew,{id:{},ref:{},value:{},label:{},disabled:{},children:{},child:{},onHighlight:{},onUnhighlight:{}},[],[],{mode:`open`});var Dw=z(`<div><!></div>`),Ow={hash:`svelte-5vjl6o`,code:`
|
|
536
|
-
/* Hide scrollbars cross browser and enable momentum scroll for touch devices */[data-select-viewport] {scrollbar-width:none !important;-ms-overflow-style:none !important;-webkit-overflow-scrolling:touch !important;}[data-combobox-viewport] {scrollbar-width:none !important;-ms-overflow-style:none !important;-webkit-overflow-scrolling:touch !important;}[data-combobox-viewport]::-webkit-scrollbar {display:none !important;}[data-select-viewport]::-webkit-scrollbar {display:none !important;}`};function kw(e,t){let n=hi();D(t,!0),ha(e,Ow);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`children`,7),o=q(t,`child`,7),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`children`,`child`]),c=tw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e))}),l=A(()=>Zg(s,c.props));var u={get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get children(){return a()},set children(e){a(e),k()},get child(){return o()},set child(e){o(e),k()}},d=B(),f=P(d),p=e=>{var t=B();U(P(t),o,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Dw();qa(t,()=>({...R(l)})),U(N(t),()=>a()??w),E(t),V(e,t)};return W(f,e=>{o()?e(p):e(m,-1)}),V(e,d),O(u)}J(kw,{id:{},ref:{},children:{},child:{}},[],[],{mode:`open`});var Aw=z(`<div><!></div>`),jw=z(`<!> <!>`,1);function Mw(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`delay`,7,()=>50),o=q(t,`child`,7),s=q(t,`children`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`delay`,`child`,`children`]),l=rw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),delay:Q(()=>a())}),u=A(()=>Zg(c,l.props));var d={get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get delay(){return a()},set delay(e=()=>50){a(e),k()},get child(){return o()},set child(e){o(e),k()},get children(){return s()},set children(e){s(e),k()}},f=B(),p=P(f),m=e=>{var t=jw(),n=P(t);Cw(n,{get mounted(){return l.scrollButtonState.mounted},set mounted(e){l.scrollButtonState.mounted=e}});var r=F(n,2),i=e=>{var t=B();U(P(t),o,()=>({props:c})),V(e,t)},a=e=>{var t=Aw();qa(t,()=>({...R(u)})),U(N(t),()=>s()??w),E(t),V(e,t)};W(r,e=>{o()?e(i):e(a,-1)}),V(e,t)};return W(p,e=>{l.canScrollDown&&e(m)}),V(e,f),O(d)}J(Mw,{id:{},ref:{},delay:{},child:{},children:{}},[],[],{mode:`open`});var Nw=z(`<div><!></div>`),Pw=z(`<!> <!>`,1);function Fw(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`delay`,7,()=>50),o=q(t,`child`,7),s=q(t,`children`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`delay`,`child`,`children`]),l=iw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),delay:Q(()=>a())}),u=A(()=>Zg(c,l.props));var d={get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get delay(){return a()},set delay(e=()=>50){a(e),k()},get child(){return o()},set child(e){o(e),k()},get children(){return s()},set children(e){s(e),k()}},f=B(),p=P(f),m=e=>{var t=Pw(),n=P(t);Cw(n,{get mounted(){return l.scrollButtonState.mounted},set mounted(e){l.scrollButtonState.mounted=e}});var r=F(n,2),i=e=>{var t=B();U(P(t),o,()=>({props:c})),V(e,t)},a=e=>{var t=Nw();qa(t,()=>({...R(u)})),U(N(t),()=>s()??w),E(t),V(e,t)};W(r,e=>{o()?e(i):e(a,-1)}),V(e,t)};return W(p,e=>{l.canScrollUp&&e(m)}),V(e,f),O(d)}J(Fw,{id:{},ref:{},delay:{},child:{},children:{}},[],[],{mode:`open`});var Iw=z(`<div><!></div>`);function Lw(e,t){let n=hi();D(t,!0);let r=q(t,`child`,7),i=q(t,`children`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>xv(n)),s=q(t,`disabled`,7,!1),c=q(t,`onSelect`,7,$),l=q(t,`closeOnSelect`,7,!0),u=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`children`,`ref`,`id`,`disabled`,`onSelect`,`closeOnSelect`]),d=vb.create({id:Q(()=>o()),disabled:Q(()=>s()),onSelect:Q(()=>c()),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>l())}),f=A(()=>Zg(u,d.props));var p={get child(){return r()},set child(e){r(e),k()},get children(){return i()},set children(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get id(){return o()},set id(e=xv(n)){o(e),k()},get disabled(){return s()},set disabled(e=!1){s(e),k()},get onSelect(){return c()},set onSelect(e=$){c(e),k()},get closeOnSelect(){return l()},set closeOnSelect(e=!0){l(e),k()}},m=B(),h=P(m),g=e=>{var t=B();U(P(t),r,()=>({props:R(f)})),V(e,t)},_=e=>{var t=Iw();qa(t,()=>({...R(f)})),U(N(t),()=>i()??w),E(t),V(e,t)};return W(h,e=>{r()?e(g):e(_,-1)}),V(e,m),O(p)}J(Lw,{child:{},children:{},ref:{},id:{},disabled:{},onSelect:{},closeOnSelect:{}},[],[],{mode:`open`});var Rw=z(`<div><!></div>`);function zw(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>xv(n)),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`id`]),c=bb.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=A(()=>Zg(s,c.props));var u={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get id(){return o()},set id(e=xv(n)){o(e),k()}},d=B(),f=P(d),p=e=>{var t=B();U(P(t),i,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Rw();qa(t,()=>({...R(l)})),U(N(t),()=>r()??w),E(t),V(e,t)};return W(f,e=>{i()?e(p):e(m,-1)}),V(e,d),O(u)}J(zw,{children:{},child:{},ref:{},id:{}},[],[],{mode:`open`});var Bw=z(`<div><!></div>`);function Vw(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>xv(n)),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`id`]),c=xb.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=A(()=>Zg(s,c.props));var u={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get id(){return o()},set id(e=xv(n)){o(e),k()}},d=B(),f=P(d),p=e=>{var t=B();U(P(t),i,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Bw();qa(t,()=>({...R(l)})),U(N(t),()=>r()??w),E(t),V(e,t)};return W(f,e=>{i()?e(p):e(m,-1)}),V(e,d),O(u)}J(Vw,{children:{},child:{},ref:{},id:{}},[],[],{mode:`open`});var Hw=z(`<div><!></div>`);function Uw(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`value`,7),s=q(t,`onSelect`,7,$),c=q(t,`id`,23,()=>xv(n)),l=q(t,`disabled`,7,!1),u=q(t,`closeOnSelect`,7,!0),d=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`value`,`onSelect`,`id`,`disabled`,`closeOnSelect`]),f=wb.create({value:Q(()=>o()),id:Q(()=>c()),disabled:Q(()=>l()),onSelect:Q(()=>p),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>u())});function p(e){s()(e),!e.defaultPrevented&&f.selectValue()}let m=A(()=>Zg(d,f.props));var h={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get value(){return o()},set value(e){o(e),k()},get onSelect(){return s()},set onSelect(e=$){s(e),k()},get id(){return c()},set id(e=xv(n)){c(e),k()},get disabled(){return l()},set disabled(e=!1){l(e),k()},get closeOnSelect(){return u()},set closeOnSelect(e=!0){u(e),k()}},g=B(),_=P(g),v=e=>{var t=B();U(P(t),i,()=>({props:R(m),checked:f.isChecked})),V(e,t)},y=e=>{var t=Hw();qa(t,()=>({...R(m)})),U(N(t),()=>r()??w,()=>({checked:f.isChecked})),E(t),V(e,t)};return W(_,e=>{i()?e(v):e(y,-1)}),V(e,g),O(h)}J(Uw,{children:{},child:{},ref:{},value:{},onSelect:{},id:{},disabled:{},closeOnSelect:{}},[],[],{mode:`open`});var Ww=z(`<div><!></div>`);function Gw(e,t){let n=hi();D(t,!0);let r=q(t,`ref`,15,null),i=q(t,`id`,23,()=>xv(n)),a=q(t,`child`,7),o=q(t,`children`,7),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`ref`,`id`,`child`,`children`]),c=Sb.create({id:Q(()=>i()),ref:Q(()=>r(),e=>r(e))}),l=A(()=>Zg(s,c.props));var u={get ref(){return r()},set ref(e=null){r(e),k()},get id(){return i()},set id(e=xv(n)){i(e),k()},get child(){return a()},set child(e){a(e),k()},get children(){return o()},set children(e){o(e),k()}},d=B(),f=P(d),p=e=>{var t=B();U(P(t),a,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Ww();qa(t,()=>({...R(l)})),U(N(t),()=>o()??w),E(t),V(e,t)};return W(f,e=>{a()?e(p):e(m,-1)}),V(e,d),O(u)}J(Gw,{ref:{},id:{},child:{},children:{}},[],[],{mode:`open`});var Kw=z(`<div><!></div>`);function qw(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=q(t,`value`,15,``),c=q(t,`onValueChange`,7,$),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`,`value`,`onValueChange`]),u=Cb.create({value:Q(()=>s(),e=>{s(e),c()(e)}),ref:Q(()=>o(),e=>o(e)),id:Q(()=>r())}),d=A(()=>Zg(l,u.props));var f={get id(){return r()},set id(e=xv(n)){r(e),k()},get children(){return i()},set children(e){i(e),k()},get child(){return a()},set child(e){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get value(){return s()},set value(e=``){s(e),k()},get onValueChange(){return c()},set onValueChange(e=$){c(e),k()}},p=B(),m=P(p),h=e=>{var t=B();U(P(t),a,()=>({props:R(d)})),V(e,t)},g=e=>{var t=Kw();qa(t,()=>({...R(d)})),U(N(t),()=>i()??w),E(t),V(e,t)};return W(m,e=>{a()?e(h):e(g,-1)}),V(e,p),O(f)}J(qw,{id:{},children:{},child:{},ref:{},value:{},onValueChange:{}},[],[],{mode:`open`});var Jw=z(`<div><!></div>`);function Yw(e,t){let n=hi();D(t,!0);let r=q(t,`child`,7),i=q(t,`children`,7),a=q(t,`ref`,15,null),o=q(t,`checked`,15,!1),s=q(t,`id`,23,()=>xv(n)),c=q(t,`onCheckedChange`,7,$),l=q(t,`disabled`,7,!1),u=q(t,`onSelect`,7,$),d=q(t,`closeOnSelect`,7,!0),f=q(t,`indeterminate`,15,!1),p=q(t,`onIndeterminateChange`,7,$),m=q(t,`value`,7,``),h=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`children`,`ref`,`checked`,`id`,`onCheckedChange`,`disabled`,`onSelect`,`closeOnSelect`,`indeterminate`,`onIndeterminateChange`,`value`]),g=db.getOr(null);g&&m()&&(g.opts.value.current.includes(m())?o(!0):o(!1)),o_.pre(()=>m(),()=>{g&&m()&&(g.opts.value.current.includes(m())?o(!0):o(!1))});let _=yb.create({checked:Q(()=>o(),e=>{e!==o()&&(o(e),c()(e))}),id:Q(()=>s()),disabled:Q(()=>l()),onSelect:Q(()=>v),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>d()),indeterminate:Q(()=>f(),e=>{e!==f()&&(f(e),p()(e))}),value:Q(()=>m())},g);function v(e){u()(e),!e.defaultPrevented&&_.toggleChecked()}let y=A(()=>Zg(h,_.props));var b={get child(){return r()},set child(e){r(e),k()},get children(){return i()},set children(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get checked(){return o()},set checked(e=!1){o(e),k()},get id(){return s()},set id(e=xv(n)){s(e),k()},get onCheckedChange(){return c()},set onCheckedChange(e=$){c(e),k()},get disabled(){return l()},set disabled(e=!1){l(e),k()},get onSelect(){return u()},set onSelect(e=$){u(e),k()},get closeOnSelect(){return d()},set closeOnSelect(e=!0){d(e),k()},get indeterminate(){return f()},set indeterminate(e=!1){f(e),k()},get onIndeterminateChange(){return p()},set onIndeterminateChange(e=$){p(e),k()},get value(){return m()},set value(e=``){m(e),k()}},x=B(),S=P(x),C=e=>{var t=B();U(P(t),r,()=>({checked:o(),indeterminate:f(),props:R(y)})),V(e,t)},ee=e=>{var t=Jw();qa(t,()=>({...R(y)})),U(N(t),()=>i()??w,()=>({checked:o(),indeterminate:f()})),E(t),V(e,t)};return W(S,e=>{r()?e(C):e(ee,-1)}),V(e,x),O(b)}J(Yw,{child:{},children:{},ref:{},checked:{},id:{},onCheckedChange:{},disabled:{},onSelect:{},closeOnSelect:{},indeterminate:{},onIndeterminateChange:{},value:{}},[],[],{mode:`open`});var Xw=z(`<div><!></div>`);function Zw(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=q(t,`value`,31,()=>Dn([])),c=q(t,`onValueChange`,7,$),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`,`value`,`onValueChange`]),u=Eb.create({value:Q(()=>st(s()),e=>{s(st(e)),c()(e)}),onValueChange:Q(()=>c()),ref:Q(()=>o(),e=>o(e)),id:Q(()=>r())}),d=A(()=>Zg(l,u.props));var f={get id(){return r()},set id(e=xv(n)){r(e),k()},get children(){return i()},set children(e){i(e),k()},get child(){return a()},set child(e){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get value(){return s()},set value(e=[]){s(e),k()},get onValueChange(){return c()},set onValueChange(e=$){c(e),k()}},p=B(),m=P(p),h=e=>{var t=B();U(P(t),a,()=>({props:R(d)})),V(e,t)},g=e=>{var t=Xw();qa(t,()=>({...R(d)})),U(N(t),()=>i()??w),E(t),V(e,t)};return W(m,e=>{a()?e(h):e(g,-1)}),V(e,p),O(f)}J(Zw,{id:{},children:{},child:{},ref:{},value:{},onValueChange:{}},[],[],{mode:`open`});function Qw(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]??[0,0],[c,l]=t[o]??[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function $w(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function eT(e,t){let n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,a=t.top+t.height/2,o=i-n,s=a-r;return Math.abs(o)>Math.abs(s)?o>0?`right`:`left`:s>0?`bottom`:`top`}var tT=class{#e;#t;#n;#r=null;#i=null;#a=[];#o=null;#s=null;#c=null;#l(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#u(){this.#l(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#r||!this.#i)&&(this.#m(),this.#e.onPointerExit())})}#d(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#f(){this.#n!==null&&(this.#d(),this.#c=window.setTimeout(()=>{this.#c=null,!(!this.#r||!this.#i)&&(this.#m(),this.#e.onPointerExit())},this.#n))}constructor(e){this.#e=e,this.#t=e.buffer??1;let t=e.transitIntentTimeout;this.#n=typeof t==`number`&&t>0?t:null,o_([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>{if(!e||!t||!n){this.#o=null,this.#m();return}return this.#o&&this.#o!==e&&this.#m(),this.#o=e,[ni(j_(e),`pointermove`,n=>{this.#p([n.clientX,n.clientY],e,t)}),ni(e,`pointerleave`,e=>{let n=e.relatedTarget;if(pv(n)&&t.contains(n))return;let r=this.#e.ignoredTargets?.()??[];pv(n)&&r.some(e=>e===n||e.contains(n))||(this.#a=pv(n)&&r.length>0?r.filter(e=>n.contains(e)):[],this.#r=[e.clientX,e.clientY],this.#i=`content`,this.#u())}),ni(e,`pointerenter`,()=>{this.#m()}),ni(t,`pointerenter`,()=>{this.#m()}),ni(t,`pointerleave`,t=>{let n=t.relatedTarget;pv(n)&&e.contains(n)||(this.#r=[t.clientX,t.clientY],this.#i=`trigger`,this.#u())})].reduce((e,t)=>()=>{e(),t()},()=>{})})}#p(e,t,n){if(!this.#r||!this.#i)return;this.#l(),this.#f();let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.#i===`content`&&$w(e,i)){this.#m();return}if(this.#i===`trigger`&&$w(e,r)){this.#m();return}if(this.#i===`content`&&this.#a.length>0)for(let t of this.#a){let n=t.getBoundingClientRect();if($w(e,n))return;let i=eT(r,n),a=this.#h(r,n,i);if(a&&Qw(e,a))return}let a=eT(r,i),o=this.#h(r,i,a);if(o&&Qw(e,o))return;let s=this.#i===`content`?i:r;Qw(e,this.#g(this.#r,s,a,this.#i))||(this.#m(),this.#e.onPointerExit())}#m(){this.#r=null,this.#i=null,this.#a=[],this.#l(),this.#d()}#h(e,t,n){let r=this.#t;switch(n){case`top`:return[[Math.min(e.left,t.left)-r,e.top],[Math.min(e.left,t.left)-r,t.bottom],[Math.max(e.right,t.right)+r,t.bottom],[Math.max(e.right,t.right)+r,e.top]];case`bottom`:return[[Math.min(e.left,t.left)-r,e.bottom],[Math.min(e.left,t.left)-r,t.top],[Math.max(e.right,t.right)+r,t.top],[Math.max(e.right,t.right)+r,e.bottom]];case`left`:return[[e.left,Math.min(e.top,t.top)-r],[t.right,Math.min(e.top,t.top)-r],[t.right,Math.max(e.bottom,t.bottom)+r],[e.left,Math.max(e.bottom,t.bottom)+r]];case`right`:return[[e.right,Math.min(e.top,t.top)-r],[t.left,Math.min(e.top,t.top)-r],[t.left,Math.max(e.bottom,t.bottom)+r],[e.right,Math.max(e.bottom,t.bottom)+r]]}}#g(e,t,n,r){let i=this.#t*4,[a,o]=e;switch(r===`trigger`?this.#_(n):n){case`top`:return[[a-i,o+i],[a+i,o+i],[t.right+i,t.bottom],[t.right+i,t.top],[t.left-i,t.top],[t.left-i,t.bottom]];case`bottom`:return[[a-i,o-i],[a+i,o-i],[t.right+i,t.top],[t.right+i,t.bottom],[t.left-i,t.bottom],[t.left-i,t.top]];case`left`:return[[a+i,o-i],[a+i,o+i],[t.right,t.bottom+i],[t.left,t.bottom+i],[t.left,t.top-i],[t.right,t.top-i]];case`right`:return[[a-i,o-i],[a-i,o+i],[t.left,t.bottom+i],[t.right,t.bottom+i],[t.right,t.top-i],[t.left,t.top-i]]}}#_(e){switch(e){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`}}},nT=U_({component:`popover`,parts:[`root`,`trigger`,`content`,`close`,`overlay`]}),rT=new n_(`Popover.Root`),iT=class e{static create(t){return rT.set(new e(t))}opts;#e=j(null);get contentNode(){return R(this.#e)}set contentNode(e){M(this.#e,e,!0)}contentPresence;#t=j(null);get triggerNode(){return R(this.#t)}set triggerNode(e){M(this.#t,e,!0)}#n=j(null);get overlayNode(){return R(this.#n)}set overlayNode(e){M(this.#n,e,!0)}overlayPresence;#r=j(!1);get openedViaHover(){return R(this.#r)}set openedViaHover(e){M(this.#r,e,!0)}#i=j(!1);get hasInteractedWithContent(){return R(this.#i)}set hasInteractedWithContent(e){M(this.#i,e,!0)}#a=j(!1);get hoverCooldown(){return R(this.#a)}set hoverCooldown(e){M(this.#a,e,!0)}#o=j(0);get closeDelay(){return R(this.#o)}set closeDelay(e){M(this.#o,e,!0)}#s=null;#c=null;constructor(e){this.opts=e,this.contentPresence=new bv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new bv({ref:Q(()=>this.overlayNode),open:this.opts.open}),o_(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(e){this.#c=e}#l(){this.#s!==null&&this.#c&&(this.#c.clearTimeout(this.#s),this.#s=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#c&&(this.#s=this.#c.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#s=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}},aT=class e{static create(t){return new e(t,rT.get())}opts;root;attachment;domContext;#e=null;#t=null;#n=j(!1);constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref,e=>this.root.triggerNode=e),this.domContext=new P_(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),o_(()=>this.opts.closeDelay.current,e=>{this.root.closeDelay=e})}#r(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#a(){this.#r(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||hv(e)||(M(this.#n,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;let t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},t)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(hv(e)||(M(this.#n,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#a(),R(this.#n)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}R(this.#n)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.#a(),this.root.toggleOpen())}#o(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#s=A(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":I_(this.root.opts.open.current),"data-state":B_(this.root.opts.open.current),"aria-controls":this.#o(),[nT.trigger]:``,disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return R(this.#s)}set props(e){M(this.#s,e)}},oT=class e{static create(t){return new e(t,rT.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=F_(this.opts.ref,e=>this.root.contentNode=e),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new tT({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){let t=e.target;pv(t)&&Ny(t)&&this.root.markInteraction()}onpointerenter(e){hv(e)||this.root.cancelDelayedClose()}onpointerleave(e){hv(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!pv(e.target))return;let t=e.target.closest(nT.selector(`trigger`));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(pv(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current==`string`){let t=document.querySelector(this.opts.customAnchor.current);if(t&&t.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){M(this.#e,e)}#t=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":B_(this.root.opts.open.current),[nT.content]:``,style:{pointerEvents:`auto`,contain:`layout style`},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return R(this.#t)}set props(e){M(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}},sT=z(`<div><div><!></div></div>`),cT=z(`<div><div><!></div></div>`);function lT(e,t){let n=hi();D(t,!0);let r=q(t,`child`,7),i=q(t,`children`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>xv(n)),s=q(t,`forceMount`,7,!1),c=q(t,`onOpenAutoFocus`,7,$),l=q(t,`onCloseAutoFocus`,7,$),u=q(t,`onEscapeKeydown`,7,$),d=q(t,`onInteractOutside`,7,$),f=q(t,`trapFocus`,7,!0),p=q(t,`preventScroll`,7,!1),m=q(t,`customAnchor`,7,null),h=q(t,`style`,7),g=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`children`,`ref`,`id`,`forceMount`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`customAnchor`,`style`]),_=oT.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e)),onInteractOutside:Q(()=>d()),onEscapeKeydown:Q(()=>u()),customAnchor:Q(()=>m())}),v=A(()=>Zg(g,_.props)),y=A(()=>f()&&_.shouldTrapFocus);function b(e){_.shouldTrapFocus||e.preventDefault(),c()(e)}var x={get child(){return r()},set child(e){r(e),k()},get children(){return i()},set children(e){i(e),k()},get ref(){return a()},set ref(e=null){a(e),k()},get id(){return o()},set id(e=xv(n)){o(e),k()},get forceMount(){return s()},set forceMount(e=!1){s(e),k()},get onOpenAutoFocus(){return c()},set onOpenAutoFocus(e=$){c(e),k()},get onCloseAutoFocus(){return l()},set onCloseAutoFocus(e=$){l(e),k()},get onEscapeKeydown(){return u()},set onEscapeKeydown(e=$){u(e),k()},get onInteractOutside(){return d()},set onInteractOutside(e=$){d(e),k()},get trapFocus(){return f()},set trapFocus(e=!0){f(e),k()},get preventScroll(){return p()},set preventScroll(e=!1){p(e),k()},get customAnchor(){return m()},set customAnchor(e=null){m(e),k()},get style(){return h()},set style(e){h(e),k()}},S=B(),C=P(S),ee=e=>{yw(e,po(()=>R(v),()=>_.popperProps,{get ref(){return _.opts.ref},get enabled(){return _.root.opts.open.current},get id(){return o()},get trapFocus(){return R(y)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return m()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return _.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,a=()=>t?.().wrapperProps,o=A(()=>Zg(n(),{style:wC(`popover`)},{style:h()}));var s=B(),c=P(s),l=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(o),wrapperProps:a(),..._.snippetProps}));U(n,r,()=>R(e))}V(e,t)},u=e=>{var t=sT();qa(t,()=>({...a()}));var n=N(t);qa(n,()=>({...R(o)})),U(N(n),()=>i()??w),E(n),E(t),V(e,t)};W(c,e=>{r()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))},te=e=>{vw(e,po(()=>R(v),()=>_.popperProps,{get ref(){return _.opts.ref},get open(){return _.root.opts.open.current},get id(){return o()},get trapFocus(){return R(y)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return m()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return _.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,a=()=>t?.().wrapperProps,o=A(()=>Zg(n(),{style:wC(`popover`)},{style:h()}));var s=B(),c=P(s),l=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(o),wrapperProps:a(),..._.snippetProps}));U(n,r,()=>R(e))}V(e,t)},u=e=>{var t=cT();qa(t,()=>({...a()}));var n=N(t);qa(n,()=>({...R(o)})),U(N(n),()=>i()??w),E(n),E(t),V(e,t)};W(c,e=>{r()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))};return W(C,e=>{s()?e(ee):s()||e(te,1)}),V(e,S),O(x)}J(lT,{child:{},children:{},ref:{},id:{},forceMount:{},onOpenAutoFocus:{},onCloseAutoFocus:{},onEscapeKeydown:{},onInteractOutside:{},trapFocus:{},preventScroll:{},customAnchor:{},style:{}},[],[],{mode:`open`});var uT=z(`<button><!></button>`);function dT(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>xv(n)),o=q(t,`ref`,15,null),s=q(t,`type`,7,`button`),c=q(t,`disabled`,7,!1),l=q(t,`openOnHover`,7,!1),u=q(t,`openDelay`,7,700),d=q(t,`closeDelay`,7,300),f=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`type`,`disabled`,`openOnHover`,`openDelay`,`closeDelay`]),p=aT.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),disabled:Q(()=>!!c()),openOnHover:Q(()=>l()),openDelay:Q(()=>u()),closeDelay:Q(()=>d())}),m=A(()=>Zg(f,p.props,{type:s()}));return cw(e,{get id(){return a()},get ref(){return p.opts.ref},children:(e,t)=>{var n=B(),a=P(n),o=e=>{var t=B();U(P(t),i,()=>({props:R(m)})),V(e,t)},s=e=>{var t=uT();qa(t,()=>({...R(m)})),U(N(t),()=>r()??w),E(t),V(e,t)};W(a,e=>{i()?e(o):e(s,-1)}),V(e,n)},$$slots:{default:!0}}),O({get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get id(){return a()},set id(e=xv(n)){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get type(){return s()},set type(e=`button`){s(e),k()},get disabled(){return c()},set disabled(e=!1){c(e),k()},get openOnHover(){return l()},set openOnHover(e=!1){l(e),k()},get openDelay(){return u()},set openDelay(e=700){u(e),k()},get closeDelay(){return d()},set closeDelay(e=300){d(e),k()}})}J(dT,{children:{},child:{},id:{},ref:{},type:{},disabled:{},openOnHover:{},openDelay:{},closeDelay:{}},[],[],{mode:`open`});function fT(e,t){D(t,!0);let n=q(t,`open`,15,!1),r=q(t,`onOpenChange`,7,$),i=q(t,`onOpenChangeComplete`,7,$),a=q(t,`children`,7);wv.create({variant:Q(()=>`dialog`),open:Q(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:Q(()=>i())});var o={get open(){return n()},set open(e=!1){n(e),k()},get onOpenChange(){return r()},set onOpenChange(e=$){r(e),k()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(e=$){i(e),k()},get children(){return a()},set children(e){a(e),k()}},s=B();return U(P(s),()=>a()??w),V(e,s),O(o)}J(fT,{open:{},onOpenChange:{},onOpenChangeComplete:{},children:{}},[],[],{mode:`open`});var pT=z(`<button><!></button>`);function mT(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>xv(n)),o=q(t,`ref`,15,null),s=q(t,`disabled`,7,!1),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`disabled`]),l=Tv.create({variant:Q(()=>`close`),id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),disabled:Q(()=>!!s())}),u=A(()=>Zg(c,l.props));var d={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get id(){return a()},set id(e=xv(n)){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get disabled(){return s()},set disabled(e=!1){s(e),k()}},f=B(),p=P(f),m=e=>{var t=B();U(P(t),i,()=>({props:R(u)})),V(e,t)},h=e=>{var t=pT();qa(t,()=>({...R(u)})),U(N(t),()=>r()??w),E(t),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),O(d)}J(mT,{children:{},child:{},id:{},ref:{},disabled:{}},[],[],{mode:`open`});var hT=z(`<!> <!>`,1),gT=z(`<!> <div><!></div>`,1);function _T(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=q(t,`forceMount`,7,!1),c=q(t,`onCloseAutoFocus`,7,$),l=q(t,`onOpenAutoFocus`,7,$),u=q(t,`onEscapeKeydown`,7,$),d=q(t,`onInteractOutside`,7,$),f=q(t,`trapFocus`,7,!0),p=q(t,`preventScroll`,7,!0),m=q(t,`restoreScrollDelay`,7,null),h=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`,`forceMount`,`onCloseAutoFocus`,`onOpenAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`restoreScrollDelay`]),g=Ov.create({id:Q(()=>r()),ref:Q(()=>o(),e=>o(e))}),_=A(()=>Zg(h,g.props));var v={get id(){return r()},set id(e=xv(n)){r(e),k()},get children(){return i()},set children(e){i(e),k()},get child(){return a()},set child(e){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get forceMount(){return s()},set forceMount(e=!1){s(e),k()},get onCloseAutoFocus(){return c()},set onCloseAutoFocus(e=$){c(e),k()},get onOpenAutoFocus(){return l()},set onOpenAutoFocus(e=$){l(e),k()},get onEscapeKeydown(){return u()},set onEscapeKeydown(e=$){u(e),k()},get onInteractOutside(){return d()},set onInteractOutside(e=$){d(e),k()},get trapFocus(){return f()},set trapFocus(e=!0){f(e),k()},get preventScroll(){return p()},set preventScroll(e=!0){p(e),k()},get restoreScrollDelay(){return m()},set restoreScrollDelay(e=null){m(e),k()}},y=B(),b=P(y),x=e=>{Rb(e,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return f()},get enabled(){return g.root.opts.open.current},get onOpenAutoFocus(){return l()},get onCloseAutoFocus(){return c()},focusScope:(e,t)=>{let n=()=>t?.().props;Fb(e,po(()=>R(_),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:e=>{u()(e),!e.defaultPrevented&&g.root.handleClose()},children:(e,t)=>{Mb(e,po(()=>R(_),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},onInteractOutside:e=>{d()(e),!e.defaultPrevented&&g.root.handleClose()},children:(e,t)=>{Wb(e,po(()=>R(_),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(e,t)=>{var r=B(),o=P(r),s=e=>{var t=hT(),r=P(t),i=e=>{rx(e,{get preventScroll(){return p()},get restoreScrollDelay(){return m()}})};W(r,e=>{g.root.opts.open.current&&e(i)});var o=F(r,2);{let e=A(()=>({props:Zg(R(_),n()),...g.snippetProps}));U(o,a,()=>R(e))}V(e,t)},c=e=>{var t=gT(),r=P(t);rx(r,{get preventScroll(){return p()}});var a=F(r,2);qa(a,e=>({...e}),[()=>Zg(R(_),n())]),U(N(a),()=>i()??w),E(a),V(e,t)};W(o,e=>{a()?e(s):e(c,-1)}),V(e,r)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};return W(b,e=>{(g.shouldRender||s())&&e(x)}),V(e,y),O(v)}J(_T,{id:{},children:{},child:{},ref:{},forceMount:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onEscapeKeydown:{},onInteractOutside:{},trapFocus:{},preventScroll:{},restoreScrollDelay:{}},[],[],{mode:`open`});function vT(e,t){D(t,!0);let n=q(t,`open`,15,!1),r=q(t,`dir`,7,`ltr`),i=q(t,`onOpenChange`,7,$),a=q(t,`onOpenChangeComplete`,7,$),o=q(t,`_internal_variant`,7,`dropdown-menu`),s=q(t,`children`,7),c=mb.create({variant:Q(()=>o()),dir:Q(()=>r()),onClose:()=>{n(!1),i()(!1)}});return hb.create({open:Q(()=>n(),e=>{n(e),i()(e)}),onOpenChangeComplete:Q(()=>a())},c),RC(e,{children:(e,t)=>{var n=B();U(P(n),()=>s()??w),V(e,n)},$$slots:{default:!0}}),O({get open(){return n()},set open(e=!1){n(e),k()},get dir(){return r()},set dir(e=`ltr`){r(e),k()},get onOpenChange(){return i()},set onOpenChange(e=$){i(e),k()},get onOpenChangeComplete(){return a()},set onOpenChangeComplete(e=$){a(e),k()},get _internal_variant(){return o()},set _internal_variant(e=`dropdown-menu`){o(e),k()},get children(){return s()},set children(e){s(e),k()}})}J(vT,{open:{},dir:{},onOpenChange:{},onOpenChangeComplete:{},_internal_variant:{},children:{}},[],[],{mode:`open`});var yT=z(`<div><div><!></div></div>`),bT=z(`<div><div><!></div></div>`);function xT(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`child`,7),a=q(t,`children`,7),o=q(t,`ref`,15,null),s=q(t,`loop`,7,!0),c=q(t,`onInteractOutside`,7,$),l=q(t,`onEscapeKeydown`,7,$),u=q(t,`onCloseAutoFocus`,7,$),d=q(t,`forceMount`,7,!1),f=q(t,`trapFocus`,7,!1),p=q(t,`style`,7),m=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`child`,`children`,`ref`,`loop`,`onInteractOutside`,`onEscapeKeydown`,`onCloseAutoFocus`,`forceMount`,`trapFocus`,`style`]),h=gb.create({id:Q(()=>r()),loop:Q(()=>s()),ref:Q(()=>o(),e=>o(e)),onCloseAutoFocus:Q(()=>u())}),g=A(()=>Zg(m,h.props));function _(e){if(h.handleInteractOutside(e),!e.defaultPrevented&&(c()(e),!e.defaultPrevented)){if(e.target&&e.target instanceof Element){let t=`[${h.parentMenu.root.getBitsAttr(`sub-content`)}]`;if(e.target.closest(t))return}h.parentMenu.onClose()}}function v(e){l()(e),!e.defaultPrevented&&h.parentMenu.onClose()}var y={get id(){return r()},set id(e=xv(n)){r(e),k()},get child(){return i()},set child(e){i(e),k()},get children(){return a()},set children(e){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get loop(){return s()},set loop(e=!0){s(e),k()},get onInteractOutside(){return c()},set onInteractOutside(e=$){c(e),k()},get onEscapeKeydown(){return l()},set onEscapeKeydown(e=$){l(e),k()},get onCloseAutoFocus(){return u()},set onCloseAutoFocus(e=$){u(e),k()},get forceMount(){return d()},set forceMount(e=!1){d(e),k()},get trapFocus(){return f()},set trapFocus(e=!1){f(e),k()},get style(){return p()},set style(e){p(e),k()}},b=B(),x=P(b),S=e=>{yw(e,po(()=>R(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:_,onEscapeKeydown:v,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return r()},get shouldRender(){return h.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,o=A(()=>Zg(n(),{style:wC(`dropdown-menu`)},{style:p()}));var s=B(),c=P(s),l=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(o),wrapperProps:r(),...h.snippetProps}));U(n,i,()=>R(e))}V(e,t)},u=e=>{var t=yT();qa(t,()=>({...r()}));var n=N(t);qa(n,()=>({...R(o)})),U(N(n),()=>a()??w),E(n),E(t),V(e,t)};W(c,e=>{i()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))},C=e=>{vw(e,po(()=>R(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:_,onEscapeKeydown:v,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return r()},get shouldRender(){return h.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,o=A(()=>Zg(n(),{style:wC(`dropdown-menu`)},{style:p()}));var s=B(),c=P(s),l=e=>{var t=B(),n=P(t);{let e=A(()=>({props:R(o),wrapperProps:r(),...h.snippetProps}));U(n,i,()=>R(e))}V(e,t)},u=e=>{var t=bT();qa(t,()=>({...r()}));var n=N(t);qa(n,()=>({...R(o)})),U(N(n),()=>a()??w),E(n),E(t),V(e,t)};W(c,e=>{i()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))};return W(x,e=>{d()?e(S):d()||e(C,1)}),V(e,b),O(y)}J(xT,{id:{},child:{},children:{},ref:{},loop:{},onInteractOutside:{},onEscapeKeydown:{},onCloseAutoFocus:{},forceMount:{},trapFocus:{},style:{}},[],[],{mode:`open`});var ST=z(`<button><!></button>`);function CT(e,t){let n=hi();D(t,!0);let r=q(t,`id`,23,()=>xv(n)),i=q(t,`ref`,15,null),a=q(t,`child`,7),o=q(t,`children`,7),s=q(t,`disabled`,7,!1),c=q(t,`type`,7,`button`),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`children`,`disabled`,`type`]),u=Tb.create({id:Q(()=>r()),disabled:Q(()=>s()??!1),ref:Q(()=>i(),e=>i(e))}),d=A(()=>Zg(l,u.props,{type:c()}));return cw(e,{get id(){return r()},get ref(){return u.opts.ref},children:(e,t)=>{var n=B(),r=P(n),i=e=>{var t=B();U(P(t),a,()=>({props:R(d)})),V(e,t)},s=e=>{var t=ST();qa(t,()=>({...R(d)})),U(N(t),()=>o()??w),E(t),V(e,t)};W(r,e=>{a()?e(i):e(s,-1)}),V(e,n)},$$slots:{default:!0}}),O({get id(){return r()},set id(e=xv(n)){r(e),k()},get ref(){return i()},set ref(e=null){i(e),k()},get child(){return a()},set child(e){a(e),k()},get children(){return o()},set children(e){o(e),k()},get disabled(){return s()},set disabled(e=!1){s(e),k()},get type(){return c()},set type(e=`button`){c(e),k()}})}J(CT,{id:{},ref:{},child:{},children:{},disabled:{},type:{}},[],[],{mode:`open`});var wT=U_({component:`label`,parts:[`root`]}),TT=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=F_(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=A(()=>({id:this.opts.id.current,[wT.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return R(this.#e)}set props(e){M(this.#e,e)}},ET=z(`<label><!></label>`);function DT(e,t){let n=hi();D(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>xv(n)),o=q(t,`ref`,15,null),s=q(t,`for`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`for`]),l=TT.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),u=A(()=>Zg(c,l.props,{for:s()}));var d={get children(){return r()},set children(e){r(e),k()},get child(){return i()},set child(e){i(e),k()},get id(){return a()},set id(e=xv(n)){a(e),k()},get ref(){return o()},set ref(e=null){o(e),k()},get for(){return s()},set for(e){s(e),k()}},f=B(),p=P(f),m=e=>{var t=B();U(P(t),i,()=>({props:R(u)})),V(e,t)},h=e=>{var t=ET();qa(t,()=>({...R(u),for:s()})),U(N(t),()=>r()??w),E(t),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),O(d)}J(DT,{children:{},child:{},id:{},ref:{},for:{}},[],[],{mode:`open`});function OT(e,t){D(t,!0);let n=q(t,`open`,15,!1),r=q(t,`onOpenChange`,7,$),i=q(t,`onOpenChangeComplete`,7,$),a=q(t,`children`,7);return iT.create({open:Q(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:Q(()=>i())}),RC(e,{children:(e,t)=>{var n=B();U(P(n),()=>a()??w),V(e,n)},$$slots:{default:!0}}),O({get open(){return n()},set open(e=!1){n(e),k()},get onOpenChange(){return r()},set onOpenChange(e=$){r(e),k()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(e=$){i(e),k()},get children(){return a()},set children(e){a(e),k()}})}J(OT,{open:{},onOpenChange:{},onOpenChangeComplete:{},children:{}},[],[],{mode:`open`});function kT(e){return e<.5?8*e**4:-8*(e-1)**4+1}function AT(e){return e**4}function jT(e){return(e-1)**3*(1-e)+1}function MT(e){return--e*e*e*e*e+1}var NT=e=>e;function PT(e){let t=e-1;return t*t*t+1}function FT(e){let t=typeof e==`string`&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||`px`]:[e,`px`]}function IT(e,{delay:t=0,duration:n=400,easing:r=NT}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>`opacity: ${e*i}`}}function LT(e,{delay:t=0,duration:n=400,easing:r=PT,x:i=0,y:a=0,opacity:o=0}={}){let s=getComputedStyle(e),c=+s.opacity,l=s.transform===`none`?``:s.transform,u=c*(1-o),[d,f]=FT(i),[p,m]=FT(a);return{delay:t,duration:n,easing:r,css:(e,t)=>`
|
|
531
|
+
transform 200ms;}.sonner-loader[data-visible='false'] {opacity:0;transform:scale(0.8) translate(-50%, -50%);}`};function km(e,t){O(t,!0),ha(e,Om);function n(e){return e===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?Cm:wm:e}let r=q(t,`invert`,7,!1),i=q(t,`position`,7,`bottom-right`),a=q(t,`hotkey`,23,()=>[`altKey`,`KeyT`]),o=q(t,`expand`,7,!1),s=q(t,`closeButton`,7,!1),c=q(t,`offset`,7,vm),l=q(t,`mobileOffset`,7,ym),u=q(t,`theme`,7,`light`),d=q(t,`richColors`,7,!1),f=q(t,`duration`,7,bm),p=q(t,`visibleToasts`,7,_m),m=q(t,`toastOptions`,23,()=>({})),h=q(t,`dir`,7,`auto`),g=q(t,`gap`,7,Sm),_=q(t,`pauseWhenPageIsHidden`,7,!1),v=q(t,`loadingIcon`,7),y=q(t,`successIcon`,7),b=q(t,`errorIcon`,7),x=q(t,`warningIcon`,7),S=q(t,`closeIcon`,7),C=q(t,`infoIcon`,7),ee=q(t,`containerAriaLabel`,7,`Notifications`),te=q(t,`class`,7),ne=q(t,`closeButtonAriaLabel`,7,`Close toast`),re=q(t,`onblur`,7),ie=q(t,`onfocus`,7),ae=q(t,`onmouseenter`,7),oe=q(t,`onmousemove`,7),se=q(t,`onmouseleave`,7),ce=q(t,`ondragend`,7),le=q(t,`onpointerdown`,7),ue=q(t,`onpointerup`,7),de=uo(t,`$$slots.$$events.$$legacy.$$host.invert.position.hotkey.expand.closeButton.offset.mobileOffset.theme.richColors.duration.visibleToasts.toastOptions.dir.gap.pauseWhenPageIsHidden.loadingIcon.successIcon.errorIcon.warningIcon.closeIcon.infoIcon.containerAriaLabel.class.closeButtonAriaLabel.onblur.onfocus.onmouseenter.onmousemove.onmouseleave.ondragend.onpointerdown.onpointerup`.split(`.`));function fe(){if(h()!==`auto`)return h();if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?(Yr(()=>h(window.getComputedStyle(document.documentElement).direction??`ltr`)),h()):(Yr(()=>h(e)),e)}let pe=j(()=>Array.from(new Set([i(),...Rp.toasts.filter(e=>e.position).map(e=>e.position)].filter(Boolean)))),me=M(!1),he=M(!1),ge=M(En(n(u()))),_e=M(void 0),ve=M(null),ye=M(!1),be=j(()=>a().join(`+`).replace(/Key/g,``).replace(/Digit/g,``));Qn(()=>{Rp.toasts.length<=1&&N(me,!1)}),Qn(()=>{let e=Rp.toasts.filter(e=>e.dismiss&&!e.delete);e.length>0&&(Rp.toasts=Rp.toasts.map(t=>e.find(e=>e.id===t.id)?{...t,delete:!0}:t))}),Qn(()=>()=>{R(_e)&&R(ve)&&(R(ve).focus({preventScroll:!0}),N(ve,null),N(ye,!1))}),Fi(()=>(Rp.reset(),ni(document,`keydown`,e=>{a().every(t=>e[t]||e.code===t)&&(N(me,!0),R(_e)?.focus()),e.code===`Escape`&&(document.activeElement===R(_e)||R(_e)?.contains(document.activeElement))&&N(me,!1)}))),Qn(()=>{if(u()!==`system`&&N(ge,u()),typeof window<`u`){u()===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?N(ge,Cm):N(ge,wm));let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=({matches:e})=>{u()===`system`&&N(ge,e?Cm:wm,!0)};`addEventListener`in e?e.addEventListener(`change`,t):e.addListener(t)}});let xe=e=>{re()?.(e),R(ye)&&!e.currentTarget.contains(e.relatedTarget)&&(N(ye,!1),R(ve)&&(R(ve).focus({preventScroll:!0}),N(ve,null)))},Se=e=>{ie()?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&(R(ye)||(N(ye,!0),N(ve,e.relatedTarget,!0)))},Ce=e=>{le()?.(e),!(e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`)&&N(he,!0)},we=e=>{ae()?.(e),N(me,!0)},Te=e=>{se()?.(e),R(he)||N(me,!1)},Ee=e=>{oe()?.(e),N(me,!0)},De=e=>{ce()?.(e),N(me,!1)},Oe=e=>{ue()?.(e),N(he,!1)};Pp.set(new Bp);var ke={get invert(){return r()},set invert(e=!1){r(e),A()},get position(){return i()},set position(e=`bottom-right`){i(e),A()},get hotkey(){return a()},set hotkey(e=[`altKey`,`KeyT`]){a(e),A()},get expand(){return o()},set expand(e=!1){o(e),A()},get closeButton(){return s()},set closeButton(e=!1){s(e),A()},get offset(){return c()},set offset(e=vm){c(e),A()},get mobileOffset(){return l()},set mobileOffset(e=ym){l(e),A()},get theme(){return u()},set theme(e=`light`){u(e),A()},get richColors(){return d()},set richColors(e=!1){d(e),A()},get duration(){return f()},set duration(e=bm){f(e),A()},get visibleToasts(){return p()},set visibleToasts(e=_m){p(e),A()},get toastOptions(){return m()},set toastOptions(e={}){m(e),A()},get dir(){return h()},set dir(e=`auto`){h(e),A()},get gap(){return g()},set gap(e=Sm){g(e),A()},get pauseWhenPageIsHidden(){return _()},set pauseWhenPageIsHidden(e=!1){_(e),A()},get loadingIcon(){return v()},set loadingIcon(e){v(e),A()},get successIcon(){return y()},set successIcon(e){y(e),A()},get errorIcon(){return b()},set errorIcon(e){b(e),A()},get warningIcon(){return x()},set warningIcon(e){x(e),A()},get closeIcon(){return S()},set closeIcon(e){S(e),A()},get infoIcon(){return C()},set infoIcon(e){C(e),A()},get containerAriaLabel(){return ee()},set containerAriaLabel(e=`Notifications`){ee(e),A()},get class(){return te()},set class(e){te(e),A()},get closeButtonAriaLabel(){return ne()},set closeButtonAriaLabel(e=`Close toast`){ne(e),A()},get onblur(){return re()},set onblur(e){re(e),A()},get onfocus(){return ie()},set onfocus(e){ie(e),A()},get onmouseenter(){return ae()},set onmouseenter(e){ae(e),A()},get onmousemove(){return oe()},set onmousemove(e){oe(e),A()},get onmouseleave(){return se()},set onmouseleave(e){se(e),A()},get ondragend(){return ce()},set ondragend(e){ce(e),A()},get onpointerdown(){return le()},set onpointerdown(e){le(e),A()},get onpointerup(){return ue()},set onpointerup(e){ue(e),A()}},Ae=Dm();K(Ae,`tabindex`,-1);var je=P(Ae),Me=e=>{var n=B();Yi(F(n),18,()=>R(pe),e=>e,(e,n,i,a)=>{let u=j(()=>{let[e,t]=n.split(`-`);return{y:e,x:t}}),h=j(()=>Tm(c(),l()));var ee=Em();qa(ee,e=>({tabindex:-1,dir:e,class:te(),"data-sonner-toaster":!0,"data-sonner-theme":R(ge),"data-y-position":R(u).y,"data-x-position":R(u).x,style:t.style,onblur:xe,onfocus:Se,onmouseenter:we,onmousemove:Ee,onmouseleave:Te,ondragend:De,onpointerdown:Ce,onpointerup:Oe,...de,[Pa]:{"--front-toast-height":`${Rp.heights[0]?.height}px`,"--width":`${xm}px`,"--gap":`${g()}px`,"--offset-top":R(h)[`--offset-top`],"--offset-right":R(h)[`--offset-right`],"--offset-bottom":R(h)[`--offset-bottom`],"--offset-left":R(h)[`--offset-left`],"--mobile-offset-top":R(h)[`--mobile-offset-top`],"--mobile-offset-right":R(h)[`--mobile-offset-right`],"--mobile-offset-bottom":R(h)[`--mobile-offset-bottom`],"--mobile-offset-left":R(h)[`--mobile-offset-left`]}}),[()=>fe()],void 0,void 0,`svelte-s0xby2`),Yi(ee,23,()=>Rp.toasts.filter(e=>!e.position&&R(i)===0||e.position===n),e=>e.id,(e,t,i,a)=>{{let a=e=>{var t=B(),n=F(t),r=e=>{var t=B();U(F(t),()=>y()??w),V(e,t)},i=e=>{cm(e,{})};W(n,e=>{y()?e(r):y()!==null&&e(i,1)}),V(e,t)},c=e=>{var t=B(),n=F(t),r=e=>{var t=B();U(F(t),()=>b()??w),V(e,t)},i=e=>{um(e,{})};W(n,e=>{b()?e(r):b()!==null&&e(i,1)}),V(e,t)},l=e=>{var t=B(),n=F(t),r=e=>{var t=B();U(F(t),()=>x()??w),V(e,t)},i=e=>{fm(e,{})};W(n,e=>{x()?e(r):x()!==null&&e(i,1)}),V(e,t)},u=e=>{var t=B(),n=F(t),r=e=>{var t=B();U(F(t),()=>C()??w),V(e,t)},i=e=>{mm(e,{})};W(n,e=>{C()?e(r):C()!==null&&e(i,1)}),V(e,t)},h=e=>{var t=B(),n=F(t),r=e=>{var t=B();U(F(t),()=>S()??w),V(e,t)},i=e=>{gm(e,{})};W(n,e=>{S()?e(r):S()!==null&&e(i,1)}),V(e,t)},g=j(()=>m()?.duration??f()),ee=j(()=>m()?.class??``),te=j(()=>m()?.descriptionClass||``),re=j(()=>m()?.style??``),ie=j(()=>m().classes||{}),ae=j(()=>m().unstyled??!1),oe=j(()=>m()?.cancelButtonStyle??``),se=j(()=>m()?.actionButtonStyle??``),ce=j(()=>m()?.closeButtonAriaLabel??ne());om(e,{get index(){return R(i)},get toast(){return R(t)},get defaultRichColors(){return d()},get duration(){return R(g)},get class(){return R(ee)},get descriptionClass(){return R(te)},get invert(){return r()},get visibleToasts(){return p()},get closeButton(){return s()},get interacting(){return R(he)},get position(){return n},get style(){return R(re)},get classes(){return R(ie)},get unstyled(){return R(ae)},get cancelButtonStyle(){return R(oe)},get actionButtonStyle(){return R(se)},get closeButtonAriaLabel(){return R(ce)},get expandByDefault(){return o()},get expanded(){return R(me)},get pauseWhenPageIsHidden(){return _()},get loadingIcon(){return v()},successIcon:a,errorIcon:c,warningIcon:l,infoIcon:u,closeIcon:h,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),D(ee),oo(ee,e=>N(_e,e),()=>R(_e)),L(()=>ee.dir=ee.dir),V(e,ee)}),V(e,n)};return W(je,e=>{Rp.toasts.length>0&&e(Me)}),D(Ae),L(()=>K(Ae,`aria-label`,`${ee()??``} ${R(be)??``}`)),V(e,Ae),k(ke)}J(km,{invert:{},position:{},hotkey:{},expand:{},closeButton:{},offset:{},mobileOffset:{},theme:{},richColors:{},duration:{},visibleToasts:{},toastOptions:{},dir:{},gap:{},pauseWhenPageIsHidden:{},loadingIcon:{},successIcon:{},errorIcon:{},warningIcon:{},closeIcon:{},infoIcon:{},containerAriaLabel:{},class:{},closeButtonAriaLabel:{},onblur:{},onfocus:{},onmouseenter:{},onmousemove:{},onmouseleave:{},ondragend:{},onpointerdown:{},onpointerup:{}},[],[],{mode:`open`});var Am=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)},jm=(e,t)=>{let n={};return t.forEach(t=>{n[t]=e[t]}),n},Mm=console.warn,Nm=()=>{},Pm=(e,t)=>Yr(()=>{console.warn=Nm;let n=ot(t?jm(e,t):e);return console.warn=Mm,n}),Fm=e=>e&&typeof e.then==`function`,Im=class{config;self;devtools;stateKeys;constructor(e,t){this.config=e,this.self=t,typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&(this.stateKeys=Am(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 Pm(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 Yr(()=>t.call(this.self,...r));let i=Pm(r);this.sendStart(e,i);try{let n=Yr(()=>t.call(this.self,...r));return Fm(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}},Lm=(e,t)=>{let n={},r=new Im(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},Rm={de:{aborted:`Verbindung zum Server wurde unerwartet unterbrochen. Bitte versuchen Sie es erneut.`,"client-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,"server-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,"sse-error":`Ein unbekannter Fehler ist aufgetreten. Bitte versuchen Sie es erneut.`,blocked:`Ihre Anfrage wurde blockiert.`,"pii-detected":`Es wurden persönliche Daten erkannt. Bitte entfernen Sie diese und versuchen Sie es erneut.`,"incomplete-error":`Ein unbekannter Fehler ist aufgetreten. Die Antwort könnte unvollständig sein.`,"unexpected-call":`Ein unbekannter Fehler ist aufgetreten. Die Antwort könnte unvollständig sein.`,"quota-reached":`Kontingent überschritten. Bitte versuchen Sie es später erneut.`,"rate-limit":`Kontingent überschritten. Bitte versuchen Sie es später erneut.`,maintenance:`Der Chat ist derzeit nicht verfügbar. Bitte versuchen Sie es später erneut.`,"too-long":`Ihre Frage war zu lang, versuchen Sie es mit einer Kürzeren.`,"too-short":`Ihre Frage war zu kurz, versuchen Sie es mit einer Längeren.`,"feedback-failed":`Feedback senden fehlgeschlagen. Bitte versuchen Sie es erneut.`,"answer-form-failed":`Formular konnte nicht gesendet werden. Bitte versuchen Sie es erneut.`,"speech-not-supported":`Spracherkennung wird nicht unterstützt.`,"speech-transcription-failed":`Sprachtranskription fehlgeschlagen.`,"speech-no-text-detected":`Kein Text in der Spracheingabe erkannt.`,"speech-microphone-access-denied":`Mikrofonzugriff verweigert.`},en:{aborted:`Connection to the server was unexpectedly interrupted. Please try again.`,"client-error":`An unknown error has occurred. Please try again.`,"server-error":`An unknown error has occurred. Please try again.`,"sse-error":`An unknown error has occurred. Please try again.`,blocked:`Your request has been blocked.`,"pii-detected":`Personal data has been detected. Please remove it and try again.`,"incomplete-error":`An unknown error has occurred. The response might be incomplete.`,"unexpected-call":`An unknown error has occurred. The response might be incomplete.`,"quota-reached":`Quota exceeded. Please try again later.`,"rate-limit":`Quota exceeded. Please try again later.`,maintenance:`The chat is currently unavailable. Please try again later.`,"too-long":`Your question was too long, try a shorter one.`,"too-short":`Your question was too short, try a longer one.`,"feedback-failed":`Failed to send feedback. Please try again.`,"answer-form-failed":`Failed to send the form. Please try again.`,"speech-not-supported":`Speech recognition is not supported.`,"speech-transcription-failed":`Speech transcription failed.`,"speech-no-text-detected":`No text detected in speech input.`,"speech-microphone-access-denied":`Microphone access denied.`},it:{aborted:`La connessione al server è stata interrotta inaspettatamente. Si prega di riprovare.`,"client-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,"server-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,"sse-error":`Si è verificato un errore sconosciuto. Si prega di riprovare.`,blocked:`La tua richiesta è stata bloccata.`,"pii-detected":`Sono stati rilevati dati personali. Si prega di rimuoverli e riprovare.`,"incomplete-error":`Si è verificato un errore sconosciuto. La risposta potrebbe essere incompleta.`,"unexpected-call":`Si è verificato un errore sconosciuto. La risposta potrebbe essere incompleta.`,"quota-reached":`Quota superata. Si prega di riprovare più tardi.`,"rate-limit":`Quota superata. Si prega di riprovare più tardi.`,maintenance:`La chat non è attualmente disponibile. Si prega di riprovare più tardi.`,"too-long":`La tua domanda era troppo lunga, prova con una più breve.`,"too-short":`La tua domanda era troppo breve, prova con una più lunga.`,"feedback-failed":`Invio del feedback non riuscito. Si prega di riprovare.`,"answer-form-failed":`Invio del modulo non riuscito. Si prega di riprovare.`,"speech-not-supported":`Il riconoscimento vocale non è supportato.`,"speech-transcription-failed":`Trascrizione vocale fallita.`,"speech-no-text-detected":`Nessun testo rilevato nell'input vocale.`,"speech-microphone-access-denied":`Accesso al microfono negato.`},fr:{aborted:`La connexion au serveur a été interrompue de façon inattendue. Veuillez réessayer.`,"client-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"server-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"sse-error":`Une erreur inconnue s'est produite. Veuillez réessayer.`,"pii-detected":`Des données personnelles ont été détectées. Veuillez les supprimer et réessayer.`,blocked:`Votre demande a été bloquée.`,"incomplete-error":`Une erreur inconnue s'est produite. La réponse pourrait être incomplète.`,"unexpected-call":`Une erreur inconnue s'est produite. La réponse pourrait être incomplète.`,"quota-reached":`Quota dépassé. Veuillez réessayer plus tard.`,"rate-limit":`Quota dépassé. Veuillez réessayer plus tard.`,maintenance:`Le chat est actuellement indisponible. Veuillez réessayer plus tard.`,"too-long":`Votre question était trop longue, essayez d'en poser une plus courte.`,"too-short":`Votre question était trop courte, essayez d'en poser une plus longue.`,"feedback-failed":`Échec de l'envoi du feedback. Veuillez réessayer.`,"answer-form-failed":`Échec de l'envoi du formulaire. Veuillez réessayer.`,"speech-not-supported":`La reconnaissance vocale n'est pas prise en charge.`,"speech-transcription-failed":`Échec de la transcription vocale.`,"speech-no-text-detected":`Aucun texte détecté dans l'entrée vocale.`,"speech-microphone-access-denied":`Accès au microphone refusé.`}},zm={de:{email:`Bitte keine E-Mail Adressen eingeben`,creditCard:`Bitte keine Kreditkarteninformationen eingeben`,ahv:`Bitte keine AHV-Nummern eingeben`,phoneSwiss:`Bitte keine Telefonnummern eingeben`,phoneInternational:`Bitte keine Telefonnummern eingeben`,swissPassport:`Bitte keine Passinformationen eingeben`,longNumber:`Bitte keine langen Nummern eingeben`},en:{email:`Please do not enter email addresses`,creditCard:`Please do not enter credit card information`,ahv:`Please do not enter AHV numbers`,phoneSwiss:`Please do not enter phone numbers`,phoneInternational:`Please do not enter phone numbers`,swissPassport:`Please do not enter passport information`,longNumber:`Please do not enter long numbers`},it:{email:`Si prega di non inserire indirizzi email`,creditCard:`Si prega di non inserire informazioni sulla carta di credito`,ahv:`Si prega di non inserire numeri AVS`,phoneSwiss:`Si prega di non inserire numeri di telefono`,phoneInternational:`Si prega di non inserire numeri di telefono`,swissPassport:`Si prega di non inserire informazioni sul passaporto`,longNumber:`Si prega di non inserire numeri lunghi`},fr:{email:`Veuillez ne pas saisir d'adresses e-mail`,creditCard:`Veuillez ne pas saisir d'informations de carte de crédit`,ahv:`Veuillez ne pas saisir de numéros AVS`,phoneSwiss:`Veuillez ne pas saisir de numéros de téléphone`,phoneInternational:`Veuillez ne pas saisir de numéros de téléphone`,swissPassport:`Veuillez ne pas saisir d'informations de passeport`,longNumber:`Veuillez ne pas saisir de longs numéros`}},Z=new class{#e=M(En({}));get data(){return R(this.#e)}set data(e){N(this.#e,e,!0)}#t=M(En({}));get targets(){return R(this.#t)}set targets(e){N(this.#t,e,!0)}#n=M(!1);get initialized(){return R(this.#n)}set initialized(e){N(this.#n,e,!0)}#r=M(0);get currentAudioVolume(){return R(this.#r)}set currentAudioVolume(e){N(this.#r,e,!0)}ariaLiveMessagesClearingTimeoutDuration=350;#i=M(null);get currentAudioRecorder(){return R(this.#i)}set currentAudioRecorder(e){N(this.#i,e,!0)}#a=M(!1);get isTranscribing(){return R(this.#a)}set isTranscribing(e){N(this.#a,e,!0)}#o=j(()=>{if(!this.initialized)return[];let e=this.data.chatConfig.menu;return e?e[this.data.language]??[]:[]});get menu(){return R(this.#o)}set menu(e){N(this.#o,e)}#s=j(()=>this.initialized?this.data.chatConfig.translations[this.data.language]??{}:{});get t(){return R(this.#s)}set t(e){N(this.#s,e)}#c=j(()=>this.initialized?Rm[this.data.language]??{}:Rm.en??{});get errorTranslations(){return R(this.#c)}set errorTranslations(e){N(this.#c,e)}#l=j(()=>this.initialized?zm[this.data.language]??{}:zm.en??{});get piiTranslations(){return R(this.#l)}set piiTranslations(e){N(this.#l,e)}#u=j(()=>this.initialized?this.data.currentColorScheme:`light`);get colorScheme(){return R(this.#u)}set colorScheme(e){N(this.#u,e)}#d=j(()=>this.initialized?this.data.chatConfig.fullTheme[this.data.currentColorScheme]:{});get themeBase(){return R(this.#d)}set themeBase(e){N(this.#d,e)}#f=j(()=>this.themeBase.tokens);get theme(){return R(this.#f)}set theme(e){N(this.#f,e)}#p=j(()=>{if(!this.initialized)return[];let e=[];for(let t of this.data.chatConfig.selectorsConfig)t.allowEmpty||(this.data.selectorValues[t.settingName]||[]).length===0&&e.push(t.settingName);return e});get selectorsWithErrors(){return R(this.#p)}set selectorsWithErrors(e){N(this.#p,e)}#m=j(()=>{if(!this.initialized)return{};let e=this.data.chatConfig,t={};for(let n of e.selectorsConfig){let r=ap(e.translations,n.settingName,this.data.language,e.supportedLanguages);r||console.error(`Missing translation for setting ${n.settingName} in all languages`),t[n.settingName]=r??{name:n.settingName,placeholder:``,values:{}}}return t});get selectorTranslations(){return R(this.#m)}set selectorTranslations(e){N(this.#m,e)}#h=j(()=>{if(!this.initialized)return!1;let e=this.data.chatConfig;return this.data.route.name===`chat-page`&&!e.forceChatPage||e.showContextInfo||e.showContextMenu||e.showCloseChatButton||this.data.props.flyout});get hasMainNavigationContent(){return R(this.#h)}set hasMainNavigationContent(e){N(this.#h,e)}#g=j(()=>{if(!this.initialized)return``;let e=this.t,t=this.data.chatConfig,n=this.data.route.name===`chat-page`&&!t.forceChatPage,r=[];return n&&r.push(e.newChat),t.showContextInfo&&r.push(e.ariaMainNavigationInfo),t.showContextMenu&&(this.menu.length>0&&r.push(e.ariaMainNavigationLinks),t.supportedLanguages.length>0&&r.push(e.ariaMainNavigationLanguageSwitch),this.data.has2ColorSchemes&&r.push(e.ariaMainNavigationColorMode)),(t.showCloseChatButton||this.data.props.flyout)&&r.push(e.closeChat),r.length===0?e.ariaMainNavigation:`${e.ariaMainNavigation}: ${r.join(`, `)}`});get ariaMainNavigationRegion(){return R(this.#g)}set ariaMainNavigationRegion(e){N(this.#g,e)}};async function Bm(){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 Vm(){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 Hm(){return typeof window>`u`?!1:!!(window.MediaRecorder&&Vm())}function Um(){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 Wm(){return typeof window>`u`?!1:!!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||Um())}var Gm=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(!Hm()||!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=Vm();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 Hm()}static getSupportedMediaType(){return Vm()}},Km=e=>(localStorage.setItem(`liipgpt-color-scheme`,e),Jm([`light`,`dark`])),qm=()=>{let e=localStorage.getItem(`liipgpt-color-scheme`);return e===`light`||e===`dark`?e:`system`},Jm=e=>{let t=qm();return t===`system`&&(t=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),e.includes(t)?t:e[0]??`light`},Ym=Ss(),Xm=(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`)))},Zm=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&&Xm(e,n)}),Ym.sanitize(t.outerHTML,{FORBID_TAGS:[`style`,`script`],FORBID_ATTR:[`style`,`class`]})},Qm=e=>{if(!e?.length)return[];let t=e.join(`,`),n=document.querySelectorAll(t);return Array.from(n,Zm)},$m=`liipgpt:context`,eh=class{contextVersion=0;#e=M();get currentContext(){return R(this.#e)}set currentContext(e){N(this.#e,e,!0)}getFromLocalStorage(){let e=localStorage.getItem($m);if(e){let t;try{if(t=JSON.parse(e),t.version!==this.contextVersion){localStorage.removeItem($m);return}else return t.context}catch(e){console.error(`Failed to parse liipgpt:context`,e);return}}}storeToLocalStorage(){localStorage.setItem(`liipgpt:context`,JSON.stringify({version:Z.data.chatConfig.contextVersion,context:this.currentContext}))}constructor(e){this.init=e,this.currentContext=this.getFromLocalStorage()??e.initialValue}getContext(){return ot(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))}},th=()=>localStorage.getItem($m),nh=`liipgpt:selectorValues`,rh=`liipgpt:selectorKnownDefaults`,ih=()=>{try{let e=bf.getItem(nh),t=bf.getItem(rh);return e?{values:JSON.parse(e),knownDefaults:t?JSON.parse(t):{}}:null}catch{return null}},ah=e=>{let t={};for(let n of e)t[n.settingName]=n.defaultValues??(n.allowEmpty?[]:[n.values[0]]).filter(Boolean);return t},oh=(e,t)=>{try{let n=ah(t);bf.setItem(nh,JSON.stringify(e)),bf.setItem(rh,JSON.stringify(n))}catch(e){console.error(`Failed to save selector values:`,e)}},sh=e=>{try{let t=ih();if(!t)return;delete t.values[e],delete t.knownDefaults[e],bf.setItem(nh,JSON.stringify(t.values)),bf.setItem(rh,JSON.stringify(t.knownDefaults))}catch(e){console.error(`Failed to clear selector saved state:`,e)}},ch=e=>{let t=ih(),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)},lh=class extends Error{constructor(e){super(e),this.name=`UnreachableError`}},uh=(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},dh=(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`}},fh=`follow-up-q`,ph=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e),mh=()=>{let e=new URLSearchParams(window.location.hash.replace(/^#/,``)).get(`cID`)??void 0;return{cID:e&&ph(e)?e:void 0,followUpQuestion:new URLSearchParams(window.location.search).get(fh)?.trim()||void 0}},hh=()=>{let e=new URLSearchParams(window.location.search);if(!e.has(fh))return;e.delete(fh);let t=e.toString();history.replaceState(null,``,`${window.location.pathname}${t?`?${t}`:``}${window.location.hash}`)},gh=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}},_h=e=>{let t=gh(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},vh=e=>e?e.map(e=>({id:pf(),...e})):[],yh,bh,xh,Sh=Lm({name:`chat-logic`,state:Z,excludeInDevTools:[`onInput`]},{async init(e){bh=e;let t=bh.speechRecognitionApiKey||void 0;yh=new Lf({apiUrl:bh.apiUrl,apiKey:bh.apiKey,speechRecognitionApiKey:t,strict:!0,startParameters:gh(bh.additionalStartParameters)});try{let e=await yh.getChatConfig();window.CHAT_CONFIG_OVERRIDE&&Object.assign(e,window.CHAT_CONFIG_OVERRIDE);let t=(await yh.getMetadata()).mode===`maintenance`;t&&this.showErrorToast(`maintenance`);let n=Zf(e);bh.inlineLayout!==void 0&&(n.inlineLayout=bh.inlineLayout),bh.forceChatPage!==void 0&&(n.forceChatPage=bh.forceChatPage);let r;r=bh.lang?$f(bh.lang,n.supportedLanguages):np(n.supportedLanguages),tp(r,Z.targets.mainElement);let i=await this.getPredefinedQuestions(r),a=n.translations[r]?.ariaOpensInNewTab;a&&yh.setNewTabSrText(a);let o=[];if(n.renderKatex){let e=await import(`https://esm.sh/marked-katex-extension@5.1.5`).catch(e=>{console.error(`Couldn't load marked-katex-extension:`,e)});e&&(yh.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=bf.getItem(`liipgpt:termsAccepted`)===`true`}catch(e){console.warn(`Failed to load terms acceptance from storage:`,e)}let l=uh(bh.autofirePredefinedQuestionId,i);Z.data={currentConversationState:`idle`,chatConfig:n,language:r,predefinedQuestions:i,isInMaintenance:t,history:vh(n.messageAdditions.init),selectedColorScheme:qm(),has2ColorSchemes:s.length===2,currentColorScheme:Jm(s),conversationFeedbackId:void 0,conversationFeedbackIsOpen:!1,answerFormMessageId:void 0,openedPopup:void 0,props:bh,flyoutIsOpen:!1,questionHasPii:void 0,chatInputValue:``,selectorValues:ch(n.selectorsConfig),selectorsIsOpen:!1,predefinedQuestionId:void 0,switchQuestionId:void 0,currentReferencesAsideId:void 0,ariaLiveStatusMessage:void 0,ariaLiveStatusMessageClearingTimeout:void 0,wasReferencesAsideClosed:!1,isAsideMobile:!0,route:dh(n.forceConsent??!1,c,n.forceChatPage??!1,l,bh.question),additionalStylesheets:o,hasOpenedOverlays:!1,isInlineLayoutContained:!1,termsAccepted:c,selectedTopic:void 0},window.LIIPGPT_LISTENERS?.route?.(Z.data.route),window.LIIPGPT_LISTENERS?.conversation?.(Z.data.currentConversationState),Z.data.selectorsIsOpen=Z.data.chatConfig.showExpandedSelectors??!1,Z.initialized=!0,this.checkForOpenedPopup(),window.addEventListener(`hashchange`,()=>{this.checkForOpenedPopup()}),await this.startFromHandoverOrRoute(()=>this.goto(dh(n.forceConsent??!1,c,n.forceChatPage??!1,l,bh.question),!0))}catch(e){throw Vp.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){Z.targets[e]=t},goto(e,t=!1){if(!(!t&&(0,hp.default)(Z.data.route,e)))switch(Z.data.route=e,window.LIIPGPT_LISTENERS?.route?.(e),e.name){case`consent-page`:break;case`start-page`:e.prefill&&(Z.data.chatInputValue=e.prefill);break;case`chat-page`:if(Z.data.chatInputValue=e.query??``,Z.data.predefinedQuestionId=e.predefinedQuestionId,Z.data.switchQuestionId=e.switchQuestionId,e.query&&(this.onSubmit(),Z.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=Z.data.chatConfig.selectorsConfig.find(t=>t.settingName===e);if(!t)throw Error(`Setting ${e} not found`);return t},getPrettifiedSelectorValues(){let e=Object.entries(Z.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}Z.data.selectorValues[e]=t,oh(Z.data.selectorValues,Z.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 sh(e),Z.data.selectorValues[e]=n,oh(Z.data.selectorValues,Z.data.chatConfig.selectorsConfig),n},async getPredefinedQuestions(e){if(bh?.hidePredefinedQuestions)return[];try{return yh.getPredefinedQuestions({url:window.location.origin+window.location.pathname,language:e})}catch(e){return console.warn(`Failed to load predefined questions:`,e),[]}},setColorScheme(e){Z.data.selectedColorScheme=e,Z.data.currentColorScheme=Km(e),this.setAriaLiveStatusMessage(e===`dark`?Z.t.ariaDarkSelected:Z.t.ariaLightSelected)},async abort(){await xh?.abort()},changeConversationState(e){Z.data.currentConversationState=e,window.LIIPGPT_LISTENERS?.conversation?.(e)},onInput(e){Z.data.chatConfig.blockPII&&(Z.data.questionHasPii=ol(e)),Z.data.chatInputValue=e,Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0},onSubmit(e=!1,t,n=!1){let r=Qm(Z.data.chatConfig.parentPageContext?.extractSelectors);if(Z.data.questionHasPii){console.warn(`Question contains PII, not submitting:`,Z.data.questionHasPii);return}let i=Z.data.chatConfig.questionPrefix?`${Z.data.chatConfig.questionPrefix} ${Z.data.chatInputValue}`:Z.data.chatInputValue;n||(Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.user.before)),Z.data.history.push({type:`user`,time:new Date().toISOString(),message:Z.data.chatInputValue}),Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.user.after)));let a=Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.bot.before));Z.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:bh.features?bh.features.trim().split(`,`):[`formatting`],mode:bh.mode||void 0,cache:bh.cache||void 0,onError:e=>{this.showErrorToast(e),window.LIIPGPT_LISTENERS?.error?.(e),(e===`pii-detected`||e===`blocked`)&&this.editLatestQuestion()},onMessage:e=>{e.type===`topic-selected`&&(Z.data.selectedTopic={label:e.label,placeholder:e.placeholder,locked:_h(bh.additionalStartParameters)}),e.type===`state`&&e.state!==`history-entry-initialized`&&!s&&(s=!0,this.setAriaLiveStatusMessage(Z.t.ariaQuestionSent))},lang:Z.data.language,selectorValues:{...this.getPrettifiedSelectorValues(),context:th(),...t},predefinedQuestionId:Z.data.predefinedQuestionId,switchQuestionId:Z.data.switchQuestionId,onEmbed:e=>{let t=Z.data.history[a];t&&t.type===`bot`&&!t.message.markdown?(Z.data.history[a]={...e,id:t.id??pf()},o=!0):Z.data.history.push({...e,id:pf()})}};Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0,r.length&&(c.selectorValues.parentPageContextHtml=r);let l=(e,t)=>{try{let n=new URL(e),r=new URL(t);return n.origin===r.origin&&n.pathname===r.pathname}catch{return!1}},u=Z.data.chatConfig.sendReferrer??`all`;if([`all`,`own`,`location`].includes(u)){let e=u===`location`||Z.data.props.flyout,t;t=e?`${window.location.protocol}//${window.location.host}${window.location.pathname}`:l(document.referrer,window.location.href)?null:document.referrer;let n=u===`own`&&!Z.data.props.flyout&&t&&!t.startsWith(window.location.origin);c.referrer=t&&!n?t:void 0}Z.data.props.source?c.source=Z.data.props.source:Z.data.props.flyout&&(c.source=`flyout`),Z.data.currentConversationId||(Z.data.currentConversationId=yh.createConversationId());let d=yh.chat(Z.data.currentConversationId,i,c);xh=d,Z.data.lastChatResponseId=d.id,Z.data.currentConversationState!==`searching`&&this.changeConversationState(`searching`);let f=!1,p,m=!!Z.data.currentReferencesAsideId;(e&&m||!e&&Z.data.chatConfig.showReferencesByDefault)&&(Z.data.isAsideMobile||this.openReferencesAside(d.id)),d.subscribe(e=>{if(!o&&Z.data.history[a]&&(Z.data.history[a]={question:Z.data.chatInputValue,...e}),Z.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}`))}Z.data.chatConfig.showReferencesByDefault&&!Z.data.wasReferencesAsideClosed&&Z.data.currentReferencesAsideId!==e.id&&!Z.data.isAsideMobile&&this.openReferencesAside(e.id),e.state===`streaming`&&Z.data.currentConversationState!==`answering`&&this.changeConversationState(`answering`),e.state===`done`&&(this.changeConversationState(`idle`),f||(f=!0,this.setAriaLiveStatusMessage(`${Z.t.ariaAnswerReady} ... ${e.message.text} ... ${Z.data.selectedTopic?Z.t.ariaAnswerFinishedWithSelectedTopic:Z.t.ariaAnswerFinished}`),Z.data.history.push(...vh(Z.data.chatConfig.messageAdditions.bot.after))),Z.data.currentReferencesAsideId&&e.references.used.length>0?(clearTimeout(p),p=setTimeout(()=>{this.openReferencesAside(e.id)},100)):this.closeReferencesAside())}),Z.data.chatInputValue=``},async onStartSpeechRecognition(){try{if(!await Bm()){this.showErrorToast(`speech-not-supported`);return}if(await navigator.mediaDevices.getUserMedia({audio:!0}),Gm.isSupported())Z.data.chatInputValue=``,Z.currentAudioRecorder=new Gm({onDataAvailable:async e=>{Z.isTranscribing=!0,await this.handleTranscription(e)},onError:()=>{this.showErrorToast(`speech-microphone-access-denied`),Z.currentAudioRecorder=null,Z.isTranscribing=!1},onVolumeChange:e=>{Z.currentAudioVolume=e}}),Z.currentAudioRecorder.start();else{this.showErrorToast(`speech-not-supported`);return}}catch(e){throw this.showErrorToast(`speech-microphone-access-denied`),Z.currentAudioRecorder=null,Z.isTranscribing=!1,e}},editLatestQuestion(){let e=Z.data.history.findLastIndex(e=>e?.type===`user`);if(e===-1){console.error(`No last user question, available`);return}let t=Z.data.history.splice(e)[0];Z.data.chatInputValue=t.message},onStopSpeechRecognition(){if(Z.currentAudioRecorder){let e=Z.currentAudioRecorder;Z.currentAudioRecorder=null,e.stop()}Z.currentAudioVolume=0},async handleTranscription(e){if(!e){console.warn(`No audio data received`);return}try{let t=await yh.transcribeAudio(e,{lang:Z.data.language});if(t.error){this.showErrorToast(`speech-transcription-failed`);return}if(t.transcript.trim()){if(Z.data.chatConfig.blockPII&&(Z.data.questionHasPii=ol(t.transcript.trim()),Z.data.questionHasPii))return;Z.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{Z.currentAudioRecorder=null,Z.isTranscribing=!1,Z.currentAudioVolume=0}},async startFromHandoverOrRoute(e){let{cID:t,followUpQuestion:n}=mh();if(!t){e();return}let r=await this.rehydrateFromSearchSummaryHandover(t);n?(Z.data.route={name:`chat-page`},Z.data.chatInputValue=n,this.onSubmit(!0)):r||e(),hh()},async rehydrateFromSearchSummaryHandover(e){Z.data.currentConversationId=e;let t=await yh.getMetadata(),n=t.mode===`ready`?t.userId:void 0,r=n?await yh.getChatHistory(e,n):[];if(r.length===0)return Z.data.currentConversationId=void 0,!1;let i={all:[],used:[],unused:[]},a=new Zc({newTabSrText:Z.t.ariaOpensInNewTab}),o=[];for(let{question:e,answer:t}of r)o.push({type:`user`,time:new Date().toISOString(),message:e,id:pf()}),o.push({id:pf(),state:`done`,errors:[],type:`bot`,time:new Date().toISOString(),message:{markdown:t,html:a.toHTML(t,i),text:t},references:{all:[],used:[],unused:[]}});return Z.data.history=[...vh(Z.data.chatConfig.messageAdditions.init),...o],Z.data.route={name:`chat-page`},!0},async onStartConversation(e,t,n){await this.abort(),Z.data.history=vh(Z.data.chatConfig.messageAdditions.init),Z.data.currentConversationId=yh.createConversationId(),this.goto({name:`chat-page`,query:e,predefinedQuestionId:t,switchQuestionId:n})},async onNewConversation(){await this.abort();let e=Z.data.currentConversationId;if(Z.data.currentConversationId=void 0,Z.data.currentReferencesAsideId=void 0,Z.data.history=vh(Z.data.chatConfig.messageAdditions.init),Z.data.predefinedQuestionId=void 0,Z.data.switchQuestionId=void 0,Z.data.selectedTopic=void 0,Z.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&&yh.userAction(`newDiscussion`,{conversationId:e,lang:Z.data.language}).catch(e=>{console.error(`Failed to notify backend of new discussion:`,e)})},async onChangeTopic(){let e=Z.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(),Z.data.selectedTopic=void 0,Z.data.predefinedQuestionId=e,Z.data.switchQuestionId=void 0,Z.data.chatInputValue=``,this.onSubmit(!0,void 0,!0)},showSuccessToast(e){Vp.success(Z.t[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},showErrorToast(e){Vp.error(Z.errorTranslations[e],{unstyled:!0,duration:3e3,classes:{toast:`toast`}})},async submitFeedback(e){try{let t=Z.data.conversationFeedbackId||Z.data.lastChatResponseId;if(!t)throw new lh(`Tried to give feedback with no id.`);let n=Z.data.history.find(e=>e.type===`bot`&&e.id===t);await yh.feedback(t,n?.question??``,e),setTimeout(()=>{this.showSuccessToast(`thankYouForFeedback`)},500)}catch(e){console.error(`Feedback failed:`,e),this.showErrorToast(`feedback-failed`)}},toggleReferencesAside(e){Z.data.currentReferencesAsideId===e?this.closeReferencesAside():this.openReferencesAside(e)},openReferencesAside(e){Z.data.chatConfig.referencesLayout!==`inline`&&(Z.data.currentReferencesAsideId=e,this.setOpenOverlay(!0))},closeReferencesAside(){Z.data.currentReferencesAsideId=void 0,Z.data.wasReferencesAsideClosed=!0,this.setOpenOverlay(!1)},setAsideMobile(e){Z.data.isAsideMobile=e},openFlyout(){Z.data.flyoutIsOpen=!0},closeFlyout(){Z.data.flyoutIsOpen=!1},openConversationFeedback(){Z.data.conversationFeedbackIsOpen=!0,this.setOpenOverlay(!0)},openMessageFeedback(e){Z.data.conversationFeedbackId=e},closeFeedback(){Z.data.conversationFeedbackIsOpen=!1,Z.data.conversationFeedbackId=void 0,this.setOpenOverlay(!1)},openAnswerForm(e){Z.data.answerFormMessageId=e,this.setOpenOverlay(!0)},closeAnswerForm(){Z.data.answerFormMessageId=void 0,this.setOpenOverlay(!1)},async submitAnswerForm(e){try{let t=Z.data.chatConfig.answerForm,n=Z.data.answerFormMessageId;if(!t)throw new lh(`Tried to submit the answer form with no answerForm config.`);if(!n)throw new lh(`Tried to submit the answer form with no message id.`);let r=Z.data.history.findIndex(e=>e.type===`bot`&&e.id===n),i=r===-1?void 0:Z.data.history[r],a=Z.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 yh.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:Z.data.language}),setTimeout(()=>{this.showSuccessToast(`answerFormThankYou`)},500)}catch(e){console.error(`Answer form submission failed:`,e),this.showErrorToast(`answer-form-failed`)}},setOpenOverlay(e){Z.data.hasOpenedOverlays=e},setAriaLiveStatusMessage(e){Z.data.ariaLiveStatusMessage=e,clearTimeout(Z.data.ariaLiveStatusMessageClearingTimeout),Z.data.ariaLiveStatusMessageClearingTimeout=setTimeout(()=>{Z.data.ariaLiveStatusMessage=``},Z.ariaLiveMessagesClearingTimeoutDuration)},closePopup(){window.location.hash=``},checkForOpenedPopup(){let e=window.location.hash.slice(1),t=Z.t.popups?.find(t=>t.hash===e);t?Z.data.openedPopup=t:Z.data.openedPopup=void 0},async thumbs(e,t){try{let n=Z.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 yh.thumbsUp(e,n?.question??``):await yh.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(Z.data.language=$f(e,Z.data.chatConfig.supportedLanguages),tp(Z.data.language,Z.targets.mainElement),Z.data.predefinedQuestions=await this.getPredefinedQuestions(Z.data.language),this.setAriaLiveStatusMessage(Z.t.ariaLanguageChanged),Z.data.chatConfig.reflectLanguageInPath){let e=new URL(window.location.href);e.pathname=`/${Z.data.language}`,window.history.replaceState({},``,e.toString())}},async acceptTerms(){Z.data.termsAccepted=!0;try{bf.setItem(`liipgpt:termsAccepted`,`true`)}catch(e){console.warn(`Failed to save terms acceptance to storage:`,e)}this.closePopup(),await Kr(),this.goto(dh(Z.data.chatConfig.forceConsent??!1,!0,Z.data.chatConfig.forceChatPage??!1,uh(Z.data.props.autofirePredefinedQuestionId,Z.data.predefinedQuestions),Z.data.props.question))},updateChatInput(e){Z.data.chatInputValue=e}}),Ch=(e,t)=>{let n=window.LIIPGPT_LISTENERS?.elements?.[t];if(!n)return;let r=Object.entries(n).filter(([e,t])=>typeof t==`function`&&![`init`,`destroy`].includes(e));Qn(()=>(n.init?.(e),r.forEach(([t,n])=>{e.addEventListener(t,n)}),()=>{r.forEach(([t,n])=>{e.removeEventListener(t,n)}),n.destroy?.(e)}))},wh=(e,t)=>{t&&Sh.setTarget(t,e)},Th=z(`<div role="status" class="sr-only"> </div>`);function Eh(e,t){O(t,!1),so();var n=Th(),r=P(n,!0);D(n),L(()=>H(r,Z.data.ariaLiveStatusMessage)),V(e,n),k()}J(Eh,{},[],[],{mode:`open`});var Dh=z(`<div aria-hidden="true"></div>`);function Oh(e,t){O(t,!0);let n=q(t,`name`,7),r=q(t,`class`,7);var i={get name(){return n()},set name(e){n(e),A()},get class(){return r()},set class(e){r(e),A()}},a=Dh();return ta(a,()=>Z.theme.svgs[n()],!0),D(a),L(()=>Ea(a,1,`svg svg--${n()??``} ${r()??``}`)),V(e,a),k(i)}J(Oh,{name:{},class:{}},[],[],{mode:`open`});var kh=`data-disable-tooltip-on-focus`;function Ah(e,t){let n=null,r;function i(){t.text&&(n||(n=document.createElement(`span`),n.ariaHidden=`true`,n.textContent=t.text,n.className=`tooltip tooltip-${t.position||`top`} tooltip-hidden`,e.appendChild(n),n.getBoundingClientRect()),n.classList.remove(`tooltip-hidden`),a())}function a(){if(!n)return;let r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a,o;switch(t.position){case`bottom`:a=r.height+5,o=r.width/2-i.width/2;break;case`bottom-right`:a=r.height+5,o=r.width-i.width;break;case`bottom-left`:a=r.height+5,o=0;break;case`left`:a=r.height/2-i.height/2,o=-i.width-5;break;case`right`:a=r.height/2-i.height/2,o=r.width+5;break;default:a=-i.height-5,o=r.width/2-i.width/2;break}let s=r.left+o,c=s+i.width,l=window.innerWidth;if(c>l){let e=c-l;if(o-=e+10,t.position===`top`||t.position===`bottom`){let t=e+10;n.style.setProperty(`--tooltip-arrow-offset`,`${t}px`)}}if(s<0&&(o-=s-10,t.position===`top`||t.position===`bottom`)){let e=s-10;n.style.setProperty(`--tooltip-arrow-offset`,`${e}px`)}n.style.top=`${a}px`,n.style.left=`${o}px`}function o(){r=window.setTimeout(()=>{i()},t.delay||200)}function s(e){let t=e.target;t&&!t.hasAttribute(`data-disable-tooltip-on-focus`)?o():t.removeAttribute(kh)}function c(){clearTimeout(r),n&&(n.classList.add(`tooltip-hidden`),n.addEventListener(`transitionend`,()=>{n?.remove(),n=null},{once:!0}))}return e.classList.add(`tooltip-container`),e.setAttribute(`tabindex`,`0`),e.addEventListener(`mouseenter`,o),e.addEventListener(`focus`,s),e.addEventListener(`mouseleave`,c),e.addEventListener(`blur`,c),e.addEventListener(`click`,c),{update(e){t=e},destroy(){c(),e.classList.remove(`tooltip-container`),e.removeEventListener(`mouseenter`,o),e.removeEventListener(`focus`,s),e.removeEventListener(`mouseleave`,c),e.removeEventListener(`blur`,c),e.removeEventListener(`click`,c)}}}var jh=z(`<button><span class="sr-only"> </span> <span><!></span></button>`);function Mh(e,t){O(t,!0);let n=q(t,`class`,7),r=q(t,`tooltip`,7),i=q(t,`label`,7),a=q(t,`onclick`,7),o=q(t,`icon`,7),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`class`,`tooltip`,`label`,`onclick`,`icon`]);var c={get class(){return n()},set class(e){n(e),A()},get tooltip(){return r()},set tooltip(e){r(e),A()},get label(){return i()},set label(e){i(e),A()},get onclick(){return a()},set onclick(e){a(e),A()},get icon(){return o()},set icon(e){o(e),A()}},l=jh();qa(l,()=>({onclick:a(),...s}));var u=P(l),d=P(u,!0);D(u);var f=I(u,2);return Oh(P(f),{get name(){return o()}}),D(f),D(l),ga(l,(e,t)=>Ah?.(e,t),()=>({text:r(),position:`top`,delay:300})),L(()=>{H(d,i()),Ea(f,1,ba(n()))}),V(e,l),k(c)}J(Mh,{class:{},tooltip:{},label:{},onclick:{},icon:{}},[],[],{mode:`open`});var Nh=z(`<p class="jsonld-card__description"> </p>`),Ph=z(`<article class="jsonld-card jsonld-card--cta"><header class="jsonld-card__header"><h3 class="jsonld-card__title"> </h3></header> <!> <a class="jsonld-card__cta btn" target="_blank" rel="noopener noreferrer"><span> </span> <!></a></article>`);function Fh(e,t){O(t,!0);let n=q(t,`data`,7);var r={get data(){return n()},set data(e){n(e),A()}},i=Ph(),a=P(i),o=P(a),s=P(o,!0);D(o),D(a);var c=I(a,2),l=e=>{var t=Nh(),r=P(t,!0);D(t),L(()=>H(r,n().description)),V(e,t)};W(c,e=>{n().description&&e(l)});var u=I(c,2),d=P(u),f=P(d,!0);return D(d),Oh(I(d,2),{name:`externalLink`,class:`jsonld-card__cta-icon`}),D(u),D(i),L(()=>{K(i,`aria-label`,`${Z.t.ariaJsonLdCtaCard??``}: ${n().title??``}`),H(s,n().title),K(u,`href`,n().url),H(f,n().label??Z.t.jsonLdCtaLabel)}),V(e,i),k(r)}J(Fh,{data:{}},[],[],{mode:`open`});var Ih=z(`<span class="jsonld-card__event-time"> </span>`),Lh=z(`<dt class="jsonld-card__meta-label"> </dt> <dd class="jsonld-card__meta-value"><time class="jsonld-card__event-date"><span> </span> <!></time></dd>`,1),Rh=z(`<dt class="jsonld-card__meta-label"> </dt> <dd class="jsonld-card__meta-value"> </dd>`,1),zh=z(`<dt class="jsonld-card__meta-label"> </dt> <dd class="jsonld-card__meta-value"> </dd>`,1),Bh=z(`<article class="jsonld-card jsonld-card--event"><header class="jsonld-card__header"><h3 class="jsonld-card__title"> </h3></header> <dl class="jsonld-card__meta"><!> <!> <!></dl> <a class="jsonld-card__cta btn" target="_blank" rel="noopener noreferrer"><span> </span> <!></a></article>`);function Vh(e,t){O(t,!0);let n=q(t,`data`,7),r=j(()=>{if(!n().date)return;let e=new Date(n().date);if(Number.isNaN(e.getTime()))return{day:n().date,time:void 0};let t=Z.data.language||`de`;try{return{day:e.toLocaleDateString(t,{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`}),time:e.getHours()!==0||e.getMinutes()!==0?e.toLocaleTimeString(t,{hour:`2-digit`,minute:`2-digit`}):void 0}}catch{return{day:e.toLocaleString(),time:void 0}}});var i={get data(){return n()},set data(e){n(e),A()}},a=Bh(),o=P(a),s=P(o),c=P(s,!0);D(s),D(o);var l=I(o,2),u=P(l),d=e=>{var t=Lh(),i=F(t),a=P(i,!0);D(i);var o=I(i,2),s=P(o),c=P(s),l=P(c,!0);D(c);var u=I(c,2),d=e=>{var t=Ih(),n=P(t,!0);D(t),L(()=>H(n,R(r).time)),V(e,t)};W(u,e=>{R(r).time&&e(d)}),D(s),D(o),L(()=>{H(a,Z.t.jsonLdEventDate),K(s,`datetime`,n().date),H(l,R(r).day)}),V(e,t)};W(u,e=>{R(r)&&e(d)});var f=I(u,2),p=e=>{var t=Rh(),r=F(t),i=P(r,!0);D(r);var a=I(r,2),o=P(a,!0);D(a),L(()=>{H(i,Z.t.jsonLdEventLocation),H(o,n().location)}),V(e,t)};W(f,e=>{n().location&&e(p)});var m=I(f,2),h=e=>{var t=zh(),r=F(t),i=P(r,!0);D(r);var a=I(r,2),o=P(a,!0);D(a),L(()=>{H(i,Z.t.jsonLdEventDescription),H(o,n().description)}),V(e,t)};W(m,e=>{n().description&&e(h)}),D(l);var g=I(l,2),_=P(g),v=P(_,!0);return D(_),Oh(I(_,2),{name:`externalLink`,class:`jsonld-card__cta-icon`}),D(g),D(a),L(()=>{K(a,`aria-label`,`${Z.t.ariaJsonLdEventCard??``}: ${n().title??``}`),H(c,n().title),K(g,`href`,n().ctaUrl),H(v,n().ctaLabel??Z.t.jsonLdEventCtaLabel)}),V(e,a),k(i)}J(Vh,{data:{}},[],[],{mode:`open`});var Hh=z(`<p class="jsonld-card__description"> </p>`),Uh=z(`<div class="jsonld-card__map-frame"><div class="jsonld-card__map-canvas"></div></div>`),Wh=z(`<p class="jsonld-card__address"> </p>`),Gh=z(`<a class="jsonld-card__contact btn btn--secondary"><!> <span> </span></a>`),Kh=z(`<a class="jsonld-card__contact btn btn--secondary"><!> <span> </span></a>`),qh=z(`<article class="jsonld-card jsonld-card--map"><header class="jsonld-card__header"><h3 class="jsonld-card__title"> </h3></header> <!> <!> <!> <div class="jsonld-card__actions"><!> <!> <a class="jsonld-card__cta btn" target="_blank" rel="noopener noreferrer"><span> </span> <!></a></div></article>`);function Jh(e,t){O(t,!0);let n=`5.24.0`,r=[`https://cdn.jsdelivr.net/npm/maplibre-gl@${n}/+esm`,`https://unpkg.com/maplibre-gl@${n}/dist/maplibre-gl.js?module`],i=`https://cdn.jsdelivr.net/npm/maplibre-gl@${n}/dist/maplibre-gl.css`,a=q(t,`data`,7),o=M(void 0),s=j(()=>{if(a().directionsUrl)return a().directionsUrl;if(!a().coords)return a().fallbackUrl;let e=String(Z.theme.components.messageJsonLdMap?.custom?.directionsProvider||``)||`google`,{lat:t,lng:n}=a().coords;return e===`osm`?`https://www.openstreetmap.org/directions?to=${t},${n}`:`https://www.google.com/maps/dir/?api=1&destination=${t},${n}`}),c=e=>new Promise(t=>{let n=`jsonld-map-maplibre-style`,r=e.getRootNode(),a=r instanceof ShadowRoot?r:document.head,o=a.querySelector(`#${n}`);if(o instanceof HTMLLinkElement&&o.sheet){t();return}if(o){o.addEventListener(`load`,()=>t(),{once:!0});return}let s=document.createElement(`link`);s.id=n,s.rel=`stylesheet`,s.href=i,s.onload=()=>t(),s.onerror=()=>t(),a.appendChild(s)}),l=e=>{let t=e;return t.Map?t:t.default??t},u=async e=>{await c(e);let t;for(let e of r)try{return l(await import(e))}catch(e){t=e}throw t};Fi(()=>{let e=a().coords;if(!e)return;let t=String(Z.theme.components.messageJsonLdMap?.custom?.tileUrl||``)||`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,n=String(Z.theme.components.messageJsonLdMap?.custom?.markerColor||``)||`#3fb1ce`,r=String(Z.theme.components.messageJsonLdMap?.custom?.mapStyleUrl||``),i,s,c,l,d=0,f=0,p=!1;return(async()=>{await Kr();let m=R(o);if(!m||p)return;let h=await u(m);if(p)return;let g=(e=>{if(e.trim().startsWith(`{`))try{return JSON.parse(e)}catch{return null}return e||null})(r)??{version:8,sources:{"osm-tiles":{type:`raster`,tiles:[t],tileSize:256}},layers:[{id:`osm-tiles`,type:`raster`,source:`osm-tiles`,minzoom:0,maxzoom:19}]};if(i=new h.Map({container:m,style:g,center:[e.lng,e.lat],zoom:a().zoom,attributionControl:!1,scrollZoom:!1,touchZoomRotate:!0,touchPitch:!1,doubleClickZoom:!0}),p){i.remove();return}i.once(`style.load`,()=>{let t=()=>{if(p||!i)return;i.resize();let r=i.getCanvas();r.width>0&&r.height>0?s=new h.Marker({color:n}).setLngLat([e.lng,e.lat]).addTo(i):requestAnimationFrame(t)};t()}),l=new ResizeObserver(e=>{let t=e[0];if(!t||!i)return;let{width:n,height:r}=t.contentRect;n===d&&r===f||(d=n,f=r,cancelAnimationFrame(c??0),c=requestAnimationFrame(()=>i?.resize()))}),l.observe(m)})(),()=>{p=!0,cancelAnimationFrame(c??0),l?.disconnect(),s?.remove(),i?.remove()}});var d={get data(){return a()},set data(e){a(e),A()}},f=qh(),p=P(f),m=P(p),h=P(m,!0);D(m),D(p);var g=I(p,2),_=e=>{var t=Hh(),n=P(t,!0);D(t),L(()=>H(n,a().description)),V(e,t)};W(g,e=>{a().description&&e(_)});var v=I(g,2),y=e=>{var t=Uh(),n=P(t);oo(n,e=>N(o,e),()=>R(o)),D(t),L(()=>K(n,`aria-label`,`${Z.t.ariaJsonLdMapCanvas??``}: ${a().title??``}`)),V(e,t)};W(v,e=>{a().coords&&e(y)});var b=I(v,2),x=e=>{var t=Wh(),n=P(t,!0);D(t),L(()=>H(n,a().address)),V(e,t)};W(b,e=>{a().address&&e(x)});var S=I(b,2),C=P(S),ee=e=>{var t=Gh(),n=P(t);Oh(n,{name:`phone`,class:`jsonld-card__cta-icon`});var r=I(n,2),i=P(r,!0);D(r),D(t),L(()=>{K(t,`href`,`tel:${a().phone??``}`),H(i,a().phone)}),V(e,t)};W(C,e=>{a().phone&&e(ee)});var te=I(C,2),ne=e=>{var t=Kh(),n=P(t);Oh(n,{name:`email`,class:`jsonld-card__cta-icon`});var r=I(n,2),i=P(r,!0);D(r),D(t),L(()=>{K(t,`href`,`mailto:${a().email??``}`),H(i,a().email)}),V(e,t)};W(te,e=>{a().email&&e(ne)});var re=I(te,2),w=P(re),ie=P(w,!0);return D(w),Oh(I(w,2),{name:`externalLink`,class:`jsonld-card__cta-icon`}),D(re),D(S),D(f),L(()=>{K(f,`aria-label`,`${Z.t.ariaJsonLdMapCard??``}: ${a().title??``}`),H(h,a().title),K(re,`href`,R(s)),H(ie,Z.t.jsonLdMapOpenMap)}),V(e,f),k(d)}J(Jh,{data:{}},[],[],{mode:`open`});var Yh=(e,t)=>{let n=e[t];return typeof n==`string`&&n.length>0?n:void 0},Xh=(e,t)=>{let n=e[t];return typeof n==`number`&&Number.isFinite(n)?n:void 0},Zh=e=>e.display.card.title||e.display.listItem.title,Qh=e=>{let t=e.metadata;if(t.jsonLdBlock===`event-card`)return{block:`event-card`,data:{title:Zh(e),description:e.display.card.description,date:Yh(t,`jsonLdEventStartDate`),location:Yh(t,`jsonLdEventLocation`),ctaLabel:Yh(t,`jsonLdEventCtaLabel`),ctaUrl:Yh(t,`jsonLdEventCtaUrl`)??e.url}};if(t.jsonLdBlock===`map`){let n=Xh(t,`jsonLdMapLat`),r=Xh(t,`jsonLdMapLng`);return{block:`map`,data:{title:Yh(t,`jsonLdMapLabel`)??Zh(e),description:Yh(t,`jsonLdMapDescription`)??e.display.card.description,address:Yh(t,`jsonLdMapAddress`),url:Yh(t,`jsonLdMapUrl`),phone:Yh(t,`jsonLdMapPhone`),email:Yh(t,`jsonLdMapEmail`),coords:n!==void 0&&r!==void 0?{lat:n,lng:r}:void 0,zoom:Xh(t,`jsonLdMapZoom`)??15,fallbackUrl:e.url,directionsUrl:Yh(t,`jsonLdMapDirectionsUrl`)}}}if(t.jsonLdBlock===`cta`)return{block:`cta`,data:{title:Zh(e),description:e.display.card.description,label:Yh(t,`jsonLdCtaLabel`),url:Yh(t,`jsonLdCtaUrl`)??e.url}}},$h=z(`<div role="listitem"><!></div>`),eg=z(`<div class="jsonld-references" role="list"></div>`);function tg(e,t){O(t,!0);let n=q(t,`references`,7),r=q(t,`ready`,7,!1),i=j(()=>n().flatMap(e=>{let t=Qh(e);return t?[{key:e.url+e.referenceIndex.all,display:t}]:[]})),a=j(()=>Z.theme?.components?.messageOptions?.custom),o=j(()=>Number(R(a)?.transitionDuration)||300),s=j(()=>Number(R(a)?.transitionDelay)||0),c=j(()=>Number(R(a)?.transitionY)||30);var l={get references(){return n()},set references(e){n(e),A()},get ready(){return r()},set ready(e=!1){r(e),A()}},u=B(),d=F(u),f=e=>{var t=eg();Yi(t,23,()=>R(i),({key:e,display:t})=>e,(e,t,n)=>{let i=()=>R(t).display;var a=$h();let l,u;var d=P(a),f=e=>{Vh(e,{get data(){return i().data}})},p=e=>{Jh(e,{get data(){return i().data}})},m=e=>{Fh(e,{get data(){return i().data}})};W(d,e=>{i().block===`event-card`?e(f):i().block===`map`?e(p,1):i().block===`cta`&&e(m,2)}),D(a),L(()=>{l=Ea(a,1,`jsonld-references__item`,null,l,{"jsonld-references__item--preloading":!r()}),u=Oa(a,``,u,{"--jsonld-item-duration":`${R(o)??``}ms`,"--jsonld-item-delay":`${R(s)+R(n)*R(o)}ms`,"--jsonld-item-y":`${R(c)??``}px`})}),V(e,a)}),D(t),V(e,t)};return W(d,e=>{R(i).length>0&&e(f)}),V(e,u),k(l)}J(tg,{references:{},ready:{}},[],[],{mode:`open`});var ng=z(`<div><div><!></div></div>`);function rg(e,t){O(t,!0);let n=q(t,`class`,7),r=q(t,`children`,7),i=M(void 0);var a={get class(){return n()},set class(e){n(e),A()},get children(){return r()},set children(e){r(e),A()}},o=ng();let s;var c=P(o);return U(P(c),()=>r()??w),D(c),D(o),L(()=>{Ea(o,1,ba([`animated-height`,n()])),s=Oa(o,``,s,{height:R(i)?`${R(i)}px`:`auto`})}),io(c,`clientHeight`,e=>N(i,e)),V(e,o),k(a)}J(rg,{class:{},children:{}},[],[],{mode:`open`});var ig=z(`<span class="reference__number transition-colors"> </span>`),ag=z(`<span class="reference__description transition-colors line-clamp line-clamp--6"> </span>`),og=z(`<span class="reference__breadcrumb transition-colors"> </span>`),sg=z(`<div class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></div>`),cg=z(`<a target="_blank" rel="noopener noreferrer" class="reference transition-colors"><!> <span class="reference__body transition-colors"><span class="reference__header"><span class="reference__title line-clamp line-clamp--2 h4"> </span> <!></span> <!> <!></span></a>`);function lg(e,t){O(t,!0);let n=q(t,`reference`,7),r=j(()=>`${n().display.listItem.title}. ${n().display.card.description}. ${Z.t.ariaReferenceSource} ${n().display.listItem.badge}${n().display.listItem.breadcrumbs?` / `+n().display.listItem.breadcrumbs.join(` / `):``}`);var i={get reference(){return n()},set reference(e){n(e),A()}},a=cg(),o=P(a),s=e=>{var t=ig(),r=P(t,!0);D(t),L(()=>H(r,n().referenceIndex.used)),V(e,t)};W(o,e=>{n().referenceIndex.used&&e(s)});var c=I(o,2),l=P(c),u=P(l),d=P(u,!0);D(u),Oh(I(u,2),{name:`externalLink`,class:`reference__icon transition-colors`}),D(l);var f=I(l,2),p=e=>{var t=ag(),r=P(t,!0);D(t),L(()=>H(r,n().display.card.description)),V(e,t)};W(f,e=>{n().display.card.description&&e(p)});var m=I(f,2),h=e=>{var t=sg(),r=P(t),i=P(r),a=P(i,!0);D(i),D(r);var o=I(r,2),s=e=>{var t=B();Yi(F(t),17,()=>n().display.listItem.breadcrumbs,Gi,(e,t)=>{var n=og(),r=P(n,!0);D(n),L(()=>H(r,R(t))),V(e,n)}),V(e,t)};W(o,e=>{n().display.listItem.breadcrumbs&&e(s)}),D(t),L(()=>H(a,n().display.listItem.badge)),V(e,t)};return W(m,e=>{n().display.listItem.badge&&e(h)}),D(c),D(a),L(()=>{K(a,`href`,n().url),K(a,`aria-label`,R(r)),H(d,n().display.listItem.title)}),V(e,a),k(i)}J(lg,{reference:{}},[],[],{mode:`open`});function ug(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};`}}function dg(e){return typeof e==`function`}function fg(e){return typeof e==`object`&&!!e}var pg=[`string`,`number`,`bigint`,`boolean`];function mg(e){return e==null||pg.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>mg(e)):typeof e==`object`?Object.getPrototypeOf(e)===Object.prototype:!1}var hg=Symbol(`box`),gg=Symbol(`is-writable`);function Q(e,t){let n=j(e);return t?{[hg]:!0,[gg]:!0,get current(){return R(n)},set current(e){t(e)}}:{[hg]:!0,get current(){return e()}}}function _g(e){return fg(e)&&hg in e}function vg(e){return _g(e)&&gg in e}function yg(e){return _g(e)?e:dg(e)?Q(e):Sg(e)}function bg(e){return Object.entries(e).reduce((e,[t,n])=>_g(n)?(vg(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function xg(e){return vg(e)?{[hg]:!0,get current(){return e.current}}:e}function Sg(e){let t=M(En(e));return{[hg]:!0,[gg]:!0,get current(){return R(t)},set current(e){N(t,e,!0)}}}function Cg(e){let t=M(En(e));return{[hg]:!0,[gg]:!0,get current(){return R(t)},set current(e){N(t,e,!0)}}}Cg.from=yg,Cg.with=Q,Cg.flatten=bg,Cg.readonly=xg,Cg.isBox=_g,Cg.isWritableBox=vg;function wg(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Tg=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Eg=/\n/g,Dg=/^\s*/,Og=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kg=/^:\s*/,Ag=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jg=/^[;\s]*/,Mg=/^\s+|\s+$/g,Ng=`
|
|
532
|
+
`,Pg=`/`,Fg=`*`,Ig=``,Lg=`comment`,Rg=`declaration`;function zg(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Eg);t&&(n+=t.length);var i=e.lastIndexOf(Ng);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Dg)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(!(Pg!=e.charAt(0)||Fg!=e.charAt(1))){for(var n=2;Ig!=e.charAt(n)&&(Fg!=e.charAt(n)||Pg!=e.charAt(n+1));)++n;if(n+=2,Ig===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Lg,comment:o})}}function f(){var e=a(),t=c(Og);if(t){if(d(),!c(kg))return s(`property missing ':'`);var n=c(Ag),r=e({type:Rg,property:Bg(t[0].replace(Tg,Ig)),value:n?Bg(n[0].replace(Tg,Ig)):Ig});return c(jg),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function Bg(e){return e?e.replace(Mg,Ig):Ig}function Vg(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=zg(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var Hg=/\d/,Ug=[`-`,`_`,`/`,`.`];function Wg(e=``){if(!Hg.test(e))return e!==e.toLowerCase()}function Gg(e){let t=[],n=``,r,i;for(let a of e){let e=Ug.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=Wg(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function Kg(e){return e?Gg(e).map(e=>Jg(e)).join(``):``}function qg(e){return Yg(Kg(e||``))}function Jg(e){return e?e[0].toUpperCase()+e.slice(1):``}function Yg(e){return e?e[0].toLowerCase()+e.slice(1):``}function Xg(e){if(!e)return{};let t={};function n(e,n){if(e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)){t[Kg(e)]=n;return}if(e.startsWith(`--`)){t[e]=n;return}t[qg(e)]=n}return Vg(e,n),t}function Zg(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function Qg(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var $g=Qg(/[A-Z]/,e=>`-${e.toLowerCase()}`);function e_(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${$g(t)}: ${e[t]};`).join(`
|
|
533
|
+
`)}function t_(e={}){return e_(e).replace(`
|
|
534
|
+
`,` `)}var n_=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function r_(e){return n_.has(e)}function i_(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&r_(e))t[e]=wg(n,i);else if(a&&o)t[e]=Zg(n,i);else if(e===`class`){let r=mg(n),a=mg(i);r&&a?t[e]=ya(n,i):r?t[e]=ya(n):a&&(t[e]=ya(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=Xg(i);t[e]={...n,...r}}else if(o&&a)t[e]={...Xg(n),...i};else if(o&&s){let r=Xg(n),a=Xg(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=t_(t.style).replaceAll(`
|
|
535
|
+
`,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var a_=t_({position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,transform:`translateX(-100%)`}),o_=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function s_(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=$t(e=>{let n=ni(t,`focusin`,e),r=ni(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?s_(this.#e):null}};function c_(e){return typeof e==`function`}var l_=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return ft(this.#t)}get(){let e=ut(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=ut(this.#t);return t===void 0?e:t}set(e){return dt(this.#t,e)}};function u_(e,t){switch(e){case`post`:Qn(t);break;case`pre`:er(t);break}}function d_(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;u_(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=Yr(()=>n(t,o));return o=t,r})}function f_(e,t,n){let r=tr(()=>{let i=!1;d_(e,t,(e,t)=>{if(i){r();return}let a=n(e,t);return i=!0,a},{lazy:!0})});Qn(()=>r)}function p_(e,t,n){d_(e,`post`,t,n)}function m_(e,t,n){d_(e,`pre`,t,n)}p_.pre=m_;function h_(e,t){f_(e,`post`,t)}function g_(e,t){f_(e,`pre`,t)}h_.pre=g_;function __(e){return c_(e)?e():e}var v_=class{#e={width:0,height:0};#t=!1;#n;#r;#i;#a=j(()=>(R(this.#s)?.(),this.getSize().width));#o=j(()=>(R(this.#s)?.(),this.getSize().height));#s=j(()=>{let e=__(this.#r);if(e)return $t(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=__(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 R(this.#s)?.(),this.getSize()}get width(){return R(this.#a)}get height(){return R(this.#o)}},y_=class{#e=()=>void 0;#t=j(()=>this.#e());constructor(e,t){let n;t!==void 0&&(n=t),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return R(this.#t)}};function b_(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 x_(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 S_(e,t,n={},r){let{lazy:i=!1,once:a=!1,initialValue:o,debounce:s,throttle:c}=n,l=M(En(o)),u=M(!1),d=M(void 0),f=M(En([])),p=()=>{R(f).forEach(e=>e()),N(f,[],!0)},m=e=>{N(f,[...R(f),e],!0)},h=async(e,n,r=!1)=>{try{N(u,!0),N(d,void 0),p();let i=new AbortController;m(()=>i.abort());let a=await t(e,n,{data:R(l),refetching:r,onCleanup:m,signal:i.signal});return N(l,a,!0),a}catch(e){e instanceof DOMException&&e.name===`AbortError`||N(d,e,!0);return}finally{N(u,!1)}},g=s?b_(h,s):c?x_(h,c):h,_=Array.isArray(e)?e:[e],v;return r((t,n)=>{a&&v||(v=t,g(Array.isArray(e)?t:t[0],Array.isArray(e)?n:n?.[0]))},{lazy:i}),{get current(){return R(l)},get loading(){return R(u)},get error(){return R(d)},mutate:e=>{N(l,e,!0)},refetch:t=>{let n=_.map(e=>e());return g(Array.isArray(e)?n:n[0],Array.isArray(e)?n:n[0],t??!0)}}}function C_(e,t,n){return S_(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];p_(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}function w_(e,t,n){return S_(e,t,n,(t,n)=>{let r=Array.isArray(e)?e:[e];p_.pre(()=>r.map(e=>e()),(e,n)=>{t(e,n??[])},n)})}C_.pre=w_;function T_(e){Qn(()=>()=>{e()})}function E_(e){Qn(()=>Yr(()=>e()))}function D_(e,t){return setTimeout(t,e)}function O_(e){Kr().then(e)}var k_=1,A_=9,j_=11;function M_(e){return fg(e)&&e.nodeType===k_&&typeof e.nodeName==`string`}function N_(e){return fg(e)&&e.nodeType===A_}function P_(e){return fg(e)&&e.constructor?.name===`VisualViewport`}function F_(e){return fg(e)&&e.nodeType!==void 0}function I_(e){return F_(e)&&e.nodeType===j_&&`host`in e}function L_(e,t){if(!e||!t||!M_(e)||!M_(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&I_(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function R_(e){return N_(e)?e:P_(e)?e.document:e?.ownerDocument??document}function z_(e){return I_(e)?z_(e.host):N_(e)?e.defaultView??window:M_(e)?e.ownerDocument?.defaultView??window:window}function B_(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var V_=class{element;#e=j(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return R(this.#e)}set root(e){N(this.#e,e)}constructor(e){typeof e==`function`?this.element=Q(e):this.element=e}getDocument=()=>R_(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>B_(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function H_(e,t){return{[Ri()]:n=>_g(e)?(e.current=n,Yr(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Yr(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function U_(e){return e?`true`:`false`}function W_(e){return e?`true`:void 0}function G_(e){return e?``:void 0}function K_(e){return e?!0:void 0}function q_(e){return e?`open`:`closed`}function J_(e,t){return t?`mixed`:e?`true`:`false`}var Y_=class{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${this.#t}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function X_(e){let t=new Y_(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var Z_=`ArrowDown`,Q_=`ArrowLeft`,$_=`ArrowRight`,ev=`ArrowUp`,tv=`CapsLock`,nv=`Control`,rv=`Enter`,iv=`Escape`,av=`Home`,ov=`Meta`,sv=`PageDown`,cv=`PageUp`,lv=`Shift`;function uv(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var dv=[Z_,cv,av],fv=[ev,sv,`End`];[...dv,...fv];function pv(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Q_:$_,vertical:Z_}[t]}function mv(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?$_:Q_,vertical:ev}[t]}function hv(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:pv(e,t),prevKey:mv(e,t)}}var gv=typeof document<`u`,_v=vv();function vv(){return gv&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function yv(e){return e instanceof HTMLElement}function bv(e){return e instanceof Element}function xv(e){return e instanceof Element||e instanceof SVGElement}function Sv(e){return e.pointerType===`touch`}function Cv(e){return e!==null}function wv(e){return e instanceof HTMLInputElement&&`select`in e}var Tv=class{#e;#t=Cg(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=hv(uv(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[av]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?$_:Z_,t=s===`ArrowUp`?Q_:ev;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);!t||!yv(t)||t.focus()}},Ev=class{#e;#t=null;constructor(e){this.#e=e,T_(()=>this.#n())}#n(){this.#t&&=(window.cancelAnimationFrame(this.#t),null)}run(e){this.#n();let t=this.#e.ref.current;if(t){if(typeof t.getAnimations!=`function`){this.#r(e);return}this.#t=window.requestAnimationFrame(()=>{let n=t.getAnimations();if(n.length===0){this.#r(e);return}Promise.allSettled(n.map(e=>e.finished)).then(()=>{this.#r(e)})})}}#r(e){let t=()=>{e()};this.#e.afterTick?O_(t):t()}},Dv=class{#e;#t;#n;#r=M(!1);constructor(e){this.#e=e,N(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new Ev({ref:this.#e.ref,afterTick:this.#e.open}),p_(()=>this.#e.open.current,e=>{e&&N(this.#r,!0),this.#t&&this.#n.run(()=>{e===this.#e.open.current&&(this.#e.open.current||N(this.#r,!1),this.#e.onComplete?.())})})}get shouldRender(){return R(this.#r)}};function $(){}function Ov(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}var kv=X_({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),Av=new l_(`Dialog.Root | AlertDialog.Root`),jv=class e{static create(t){let n=Av.getOr(null);return Av.set(new e(t,n))}opts;#e=M(null);get triggerNode(){return R(this.#e)}set triggerNode(e){N(this.#e,e,!0)}#t=M(null);get contentNode(){return R(this.#t)}set contentNode(e){N(this.#t,e,!0)}#n=M(null);get overlayNode(){return R(this.#n)}set overlayNode(e){N(this.#n,e,!0)}#r=M(null);get descriptionNode(){return R(this.#r)}set descriptionNode(e){N(this.#r,e,!0)}#i=M(void 0);get contentId(){return R(this.#i)}set contentId(e){N(this.#i,e,!0)}#a=M(void 0);get titleId(){return R(this.#a)}set titleId(e){N(this.#a,e,!0)}#o=M(void 0);get triggerId(){return R(this.#o)}set triggerId(e){N(this.#o,e,!0)}#s=M(void 0);get descriptionId(){return R(this.#s)}set descriptionId(e){N(this.#s,e,!0)}#c=M(null);get cancelNode(){return R(this.#c)}set cancelNode(e){N(this.#c,e,!0)}#l=M(0);get nestedOpenCount(){return R(this.#l)}set nestedOpenCount(e){N(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Dv({ref:Q(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Dv({ref:Q(()=>this.overlayNode),open:this.opts.open,enabled:!0}),p_(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),T_(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>kv.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=j(()=>({"data-state":q_(this.opts.open.current)}));get sharedProps(){return R(this.#u)}set sharedProps(e){N(this.#u,e)}},Mv=class e{static create(t){return new e(t,Av.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:``,onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},Nv=class e{static create(t){return new e(t,Av.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=H_(this.opts.ref),p_.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=j(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},Pv=class e{static create(t){return new e(t,Av.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=H_(this.opts.ref,e=>{this.root.descriptionNode=e}),p_.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},Fv=class e{static create(t){return new e(t,Av.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){N(this.#e,e)}#t=j(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":G_(this.root.nestedOpenCount>0),"data-nested":G_(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},Iv=class e{static create(t){return new e(t,Av.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref,e=>this.root.overlayNode=e)}#e=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){N(this.#e,e)}#t=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":G_(this.root.nestedOpenCount>0),"data-nested":G_(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},Lv=z(`<div><!></div>`);function Rv(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`child`,7),o=q(t,`children`,7),s=q(t,`level`,7,2),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`children`,`level`]),l=Nv.create({id:Q(()=>r()),level:Q(()=>s()),ref:Q(()=>i(),e=>i(e))}),u=j(()=>i_(c,l.props));var d={get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get child(){return a()},set child(e){a(e),A()},get children(){return o()},set children(e){o(e),A()},get level(){return s()},set level(e=2){s(e),A()}},f=B(),p=F(f),m=e=>{var t=B();U(F(t),a,()=>({props:R(u)})),V(e,t)},h=e=>{var t=Lv();qa(t,()=>({...R(u)})),U(P(t),()=>o()??w),D(t),V(e,t)};return W(p,e=>{a()?e(m):e(h,-1)}),V(e,f),k(d)}J(Rv,{id:{},ref:{},child:{},children:{},level:{}},[],[],{mode:`open`});function zv(e,t){O(t,!0);let n=q(t,`children`,7);var r={get children(){return n()},set children(e){n(e),A()}},i=B();return Wi(F(i),n,e=>{var t=B();U(F(t),()=>n()??w),V(e,t)}),V(e,i),k(r)}J(zv,{children:{}},[],[],{mode:`open`});var Bv=new l_(`BitsConfig`);function Vv(){let e=new Uv(null,{});return Bv.getOr(e).opts}function Hv(e){return Bv.set(new Uv(Bv.getOr(null),e))}var Uv=class{opts;constructor(e,t){let n=Wv(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function Wv(e,t){return n=>Q(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function Gv(e,t){return n=>{let r=Vv();return Q(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Kv=Gv(e=>e.defaultPortalTo,`body`);function qv(e,t){O(t,!0);let n=q(t,`to`,7),r=q(t,`children`,7),i=q(t,`disabled`,7),a=Kv(()=>n()),o=pt(),s=j(c);function c(){if(!gv||i())return null;let e=null;return e=typeof a.current==`string`?document.querySelector(a.current):a.current,e}let l;function u(){l&&=(Ni(l),null)}p_([()=>R(s),()=>i()],([e,t])=>{if(!e||t){u();return}return l=Oi(zv,{target:e,props:{children:r()},context:o}),()=>{u()}});var d={get to(){return n()},set to(e){n(e),A()},get children(){return r()},set children(e){r(e),A()},get disabled(){return i()},set disabled(e){i(e),A()}},f=B(),p=F(f),m=e=>{var t=B();U(F(t),()=>r()??w),V(e,t)};return W(p,e=>{i()&&e(m)}),V(e,f),k(d)}J(qv,{to:{},children:{},disabled:{}},[],[],{mode:`open`});var Jv=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return ni(e,this.eventName,e=>{t(e)},n)}};function Yv(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Xv(e,t){return e===t||e.contains(t)}function Zv(e){return e?.ownerDocument??document}function Qv(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var $v=[rv,` `],ey=[Z_,cv,av],ty=[ev,sv,`End`],ny=[...ey,...ty];[...$v],[...$v];function ry(e){return e===`indeterminate`}function iy(e){return ry(e)?`indeterminate`:e?`checked`:`unchecked`}function ay(e){return e.pointerType===`mouse`}function oy(e,{select:t=!1}={}){if(!e||!e.focus)return;let n=R_(e);if(n.activeElement===e)return;let r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&wv(e)&&t&&e.select()}function sy(e,{select:t=!1}={},n){let r=n();for(let i of e)if(oy(i,{select:t}),n()!==r)return!0}var cy=M(!1),ly=class e{static _refs=0;static _cleanup;constructor(){Qn(()=>(e._refs===0&&(e._cleanup=tr(()=>{let e=[],t=e=>{N(cy,!1)};return e.push(ni(document,`pointerdown`,t,{capture:!0}),ni(document,`pointermove`,t,{capture:!0}),ni(document,`keydown`,e=>{N(cy,!0)},{capture:!0})),Zg(...e)})),e._refs++,()=>{e._refs--,e._refs===0&&(N(cy,!1),e._cleanup?.())}))}get current(){return R(cy)}set current(e){N(cy,e,!0)}},uy=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],dy=uy.join(`,`),fy=typeof Element>`u`,py=fy?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,my=!fy&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},hy=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):hy(e.parentNode))},gy=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},_y=function(e,t,n){if(hy(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(dy));return t&&py.call(e,dy)&&r.unshift(e),r=r.filter(n),r},vy=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!hy(a,!1))if(a.tagName===`SLOT`){var o=a.assignedElements(),s=vy(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{py.call(a,dy)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!hy(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=vy(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}return r},yy=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},by=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||gy(e))&&!yy(e)?0:e.tabIndex},xy=function(e,t){var n=by(e);return n<0&&t&&!yy(e)?0:n},Sy=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Cy=function(e){return e.tagName===`INPUT`},wy=function(e){return Cy(e)&&e.type===`hidden`},Ty=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Ey=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Dy=function(e){if(!e.name)return!0;var t=e.form||my(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Ey(r,e.form);return!i||i===e},Oy=function(e){return Cy(e)&&e.type===`radio`},ky=function(e){return Oy(e)&&!Dy(e)},Ay=function(e){var t=e&&my(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=my(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},jy=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},My=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=py.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(py.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=my(e);if(o&&!o.shadowRoot&&r(o)===!0)return jy(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Ay(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return jy(e);return!1},Ny=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return py.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Py=function(e,t){return!(t.disabled||wy(t)||My(t,e)||Ty(t)||Ny(t))},Fy=function(e,t){return!(ky(t)||by(t)<0||!Py(e,t))},Iy=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},Ly=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=xy(a,i),s=i?Ly(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Sy).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Ry=function(e,t){return t||={},Ly(t.getShadowRoot?vy([e],t.includeContainer,{filter:Fy.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Iy}):_y(e,t.includeContainer,Fy.bind(null,t)))},zy=function(e,t){return t||={},t.getShadowRoot?vy([e],t.includeContainer,{filter:Py.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):_y(e,t.includeContainer,Py.bind(null,t))},By=function(e,t){if(t||={},!e)throw Error(`No node provided`);return py.call(e,dy)===!1?!1:Fy(t,e)},Vy=uy.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),Hy=function(e,t){if(t||={},!e)throw Error(`No node provided`);return py.call(e,Vy)===!1?!1:Py(t,e)};function Uy(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver==`function`&&ResizeObserver.toString().includes(`[native code]`)?`full`:`none`}}function Wy(e,t){if(!By(e,Uy()))return Gy(e,t);let n=R_(e),r=Ry(n.body,Uy());t===`prev`&&r.reverse();let i=r.indexOf(e);return i===-1?n.body:r.slice(i+1)[0]}function Gy(e,t){let n=R_(e);if(!Hy(e,Uy()))return n.body;let r=zy(n.body,Uy());t===`prev`&&r.reverse();let i=r.indexOf(e);return i===-1?n.body:r.slice(i+1).find(e=>By(e,Uy()))??n.body}function Ky(e,t){return e.length===t.length?e.every((e,n)=>qy(e,t[n])):!1}function qy(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?Ky(e,t):typeof e==`object`&&typeof t==`object`?Jy(e,t):Object.is(e,t)}function Jy(e,t){if(typeof e!=`object`||typeof t!=`object`||e===null||t===null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!qy(e[i],t[i]))return!1;return!0}function Yy(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Xy(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function Zy(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+n;return i=r?(i%e.length+e.length)%e.length:Math.max(0,Math.min(i,e.length-1)),e[i]}function Qy(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-n;return i=r?(i%e.length+e.length)%e.length:Math.max(0,Math.min(i,e.length-1)),e[i]}function $y(e,t,n){let r=t.toLowerCase();if(r.endsWith(` `)){let i=r.slice(0,-1);if(e.filter(e=>e.toLowerCase().startsWith(i)).length<=1)return $y(e,i,n);let a=n?.toLowerCase();if(a&&a.startsWith(i)&&a.charAt(i.length)===` `&&t.trim()===i)return n;let o=e.filter(e=>e.toLowerCase().startsWith(r));if(o.length>0){let t=n?e.indexOf(n):-1;return eb(o,Math.max(t,0)).find(e=>e!==n)||n}}let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=i.toLowerCase(),o=n?e.indexOf(n):-1,s=eb(e,Math.max(o,0));i.length===1&&(s=s.filter(e=>e!==n));let c=s.find(e=>e?.toLowerCase().startsWith(a));return c===n?void 0:c}function eb(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tb={afterMs:1e4,onChange:$};function nb(e,t){let{afterMs:n,onChange:r,getWindow:i}={...tb,...t},a=null,o=M(En(e));function s(){return i().setTimeout(()=>{N(o,e,!0),r?.(e)},n)}return Qn(()=>()=>{a&&i().clearTimeout(a)}),Q(()=>R(o),e=>{N(o,e,!0),r?.(e),a&&i().clearTimeout(a),a=s()})}var rb=class{#e;#t;#n=j(()=>this.#e.onMatch?this.#e.onMatch:e=>e.focus());#r=j(()=>this.#e.getCurrentItem?this.#e.getCurrentItem:this.#e.getActiveElement);constructor(e){this.#e=e,this.#t=nb(``,{afterMs:1e3,getWindow:e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,t){if(!t.length)return;this.#t.current=this.#t.current+e;let n=R(this.#r)(),r=t.find(e=>e===n)?.textContent?.trim()??``,i=$y(t.map(e=>e.textContent?.trim()??``),this.#t.current,r),a=t.find(e=>e.textContent?.trim()===i);return a&&R(this.#n)(a),a}resetTypeahead(){this.#t.current=``}get search(){return this.#t.current}},ib=class{#e;#t;#n;#r=M(null);constructor(e){this.#e=e,this.#t=j(()=>this.#e.enabled()),this.#n=nb(!1,{afterMs:e.transitTimeout??300,onChange:e=>{R(this.#t)&&this.#e.setIsPointerInTransit?.(e)},getWindow:()=>z_(this.#e.triggerNode())}),p_([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>!e||!t||!n?void 0:Zg(ni(e,`pointerleave`,e=>{this.#a(e,t)}),ni(t,`pointerleave`,t=>{this.#a(t,e)}))),p_(()=>R(this.#r),()=>{let t=t=>{if(!R(this.#r))return;let n=t.target;if(!bv(n))return;let r={x:t.clientX,y:t.clientY},i=e.triggerNode()?.contains(n)||e.contentNode()?.contains(n),a=!cb(r,R(this.#r));i?this.#i():a&&(this.#i(),e.onPointerExit())},n=R_(e.triggerNode()??e.contentNode());if(n)return ni(n,`pointermove`,t)})}#i(){N(this.#r,null),this.#n.current=!1}#a(e,t){let n=e.currentTarget;if(!yv(n))return;let r={x:e.clientX,y:e.clientY},i=ob(r,ab(r,n.getBoundingClientRect())),a=sb(t.getBoundingClientRect()),o=lb([...i,...a]);N(this.#r,o,!0),this.#n.current=!0}};function ab(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function ob(e,t,n=5){let r=n*1.5;switch(t){case`top`:return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case`bottom`:return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case`left`:return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case`right`:return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function sb(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function cb(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,c=t[a].x,l=t[a].y;s>r!=l>r&&n<(c-o)*(r-s)/(l-s)+o&&(i=!i)}return i}function lb(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),ub(t)}function ub(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var db=`data-context-menu-trigger`,fb=`data-context-menu-content`,pb=new l_(`Menu.Root`),mb=new l_(`Menu.Root | Menu.Sub`),hb=new l_(`Menu.Content`),gb=new l_(`Menu.Group | Menu.RadioGroup`),_b=new l_(`Menu.RadioGroup`),vb=new l_(`Menu.CheckboxGroup`),yb=new Jv(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),bb=X_({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),xb=class e{static create(t){let n=new e(t);return pb.set(n)}opts;isUsingKeyboard=new ly;#e=M(!1);get ignoreCloseAutoFocus(){return R(this.#e)}set ignoreCloseAutoFocus(e){N(this.#e,e,!0)}#t=M(!1);get isPointerInTransit(){return R(this.#t)}set isPointerInTransit(e){N(this.#t,e,!0)}constructor(e){this.opts=e}getBitsAttr=e=>bb.getAttr(e,this.opts.variant.current)},Sb=class e{static create(t,n){return mb.set(new e(t,n,null))}opts;root;parentMenu;contentId=Q(()=>``);#e=M(null);get contentNode(){return R(this.#e)}set contentNode(e){N(this.#e,e,!0)}contentPresence;#t=M(null);get triggerNode(){return R(this.#t)}set triggerNode(e){N(this.#t,e,!0)}constructor(e,t,n){this.opts=e,this.root=t,this.parentMenu=n,this.contentPresence=new Dv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),n&&p_(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}},Cb=class e{static create(t){return hb.set(new e(t,mb.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#e=M(``);get search(){return R(this.#e)}set search(e){N(this.#e,e,!0)}#t=0;#n;#r=M(!1);get mounted(){return R(this.#r)}set mounted(e){N(this.#r,e,!0)}#i;constructor(e,t){this.opts=e,this.parentMenu=t,this.domContext=new V_(e.ref),this.attachment=H_(this.opts.ref,e=>{this.parentMenu.contentNode!==e&&(this.parentMenu.contentNode=e)}),t.contentId=e.id,this.#i=e.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ib({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr(`sub-trigger`)),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:e=>{this.parentMenu.root.isPointerInTransit=e}}),this.#n=new rb({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Tv({rootNode:Q(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr(`item`),loop:this.opts.loop,orientation:Q(()=>`vertical`)}),p_(()=>this.parentMenu.contentNode,e=>e?yb.listen(e,()=>{O_(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})}):void 0),Qn(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#t)})}#a(){let e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr(`item`)}]:not([data-disabled])`)):[]}#o(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=e=>{this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||this.#i)&&this.parentMenu.triggerNode&&By(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(e){let t=this.parentMenu;for(;t.parentMenu!==null;)t=t.parentMenu;if(!t.triggerNode)return;e.preventDefault();let n=Wy(t.triggerNode,e.shiftKey?`prev`:`next`);n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,t.onClose(),O_(()=>{n.focus(),O_(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===`Tab`){this.handleTabKeyDown(e);return}let t=e.target,n=e.currentTarget;if(!yv(t)||!yv(n))return;let r=t.closest(`[${this.parentMenu.root.getBitsAttr(`content`)}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,a=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(t,e)||e.code===`Space`)return;let o=this.#a();r&&!i&&a&&this.#n(e.key,o),e.target?.id===this.parentMenu.contentId.current&&ny.includes(e.key)&&(e.preventDefault(),ty.includes(e.key)&&o.reverse(),sy(o,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){bv(e.currentTarget)&&bv(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(this.#t),this.search=``))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&O_(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#o()}onItemLeave(e){e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr(`sub-trigger`))||this.#o()||this.parentMenu.root.isUsingKeyboard.current||(this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId(``))}onTriggerLeave(){return!!this.#o()}handleInteractOutside(e){if(!xv(e.target))return;let t=this.parentMenu.triggerNode?.id;if(e.target.id===t){e.preventDefault();return}e.target.closest(`#${t}`)&&e.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=j(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return R(this.#s)}set snippetProps(e){N(this.#s,e)}#c=j(()=>({id:this.opts.id.current,role:`menu`,"aria-orientation":`vertical`,[this.parentMenu.root.getBitsAttr(`content`)]:``,"data-state":q_(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:`auto`,contain:`layout style`},...this.attachment}));get props(){return R(this.#c)}set props(e){N(this.#c,e)}popperProps={onCloseAutoFocus:e=>this.onCloseAutoFocus(e)}},wb=class{opts;content;attachment;#e=M(!1);constructor(e,t){this.opts=e,this.content=t,this.attachment=H_(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&ay(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;let t=e.currentTarget;if(!yv(t))return;t.focus()}}onpointerleave(e){e.defaultPrevented||ay(e)&&this.content.onItemLeave(e)}onfocus(e){O_(()=>{e.defaultPrevented||this.opts.disabled.current||N(this.#e,!0)})}onblur(e){O_(()=>{e.defaultPrevented||N(this.#e,!1)})}#t=j(()=>({id:this.opts.id.current,tabindex:-1,role:`menuitem`,"aria-disabled":U_(this.opts.disabled.current),"data-disabled":G_(this.opts.disabled.current),"data-highlighted":R(this.#e)?``:void 0,[this.content.parentMenu.root.getBitsAttr(`item`)]:``,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},Tb=class e{static create(t){return new e(t,new wb(t,hb.get()))}opts;item;root;#e=!1;constructor(e,t){this.opts=e,this.item=t,this.root=t.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#t(){if(this.item.opts.disabled.current)return;let e=new CustomEvent(`menuitemselect`,{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(e){let t=this.item.content.search!==``;if(!(this.item.opts.disabled.current||t&&e.key===` `)&&$v.includes(e.key)){if(!yv(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||this.#t()}onpointerup(e){if(!e.defaultPrevented&&!this.#e){if(!yv(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){this.#e=!0}#n=j(()=>i_(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return R(this.#n)}set props(e){N(this.#n,e)}},Eb=class e{static create(t,n){return new e(t,new Tb(t,new wb(t,hb.get())),n)}opts;item;group;constructor(e,t,n=null){this.opts=e,this.item=t,this.group=n,this.group&&(p_(()=>this.group.opts.value.current,e=>{this.opts.checked.current=e.includes(this.opts.value.current)}),p_(()=>this.opts.checked.current,e=>{e?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}#e=j(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){N(this.#e,e)}#t=j(()=>({...this.item.props,role:`menuitemcheckbox`,"aria-checked":J_(this.opts.checked.current,this.opts.indeterminate.current),"data-state":iy(this.opts.checked.current),[this.item.root.getBitsAttr(`checkbox-item`)]:``}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},Db=class e{static create(t){return gb.set(new e(t,pb.get()))}opts;root;attachment;#e=M(void 0);get groupHeadingId(){return R(this.#e)}set groupHeadingId(e){N(this.#e,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref)}#t=j(()=>({id:this.opts.id.current,role:`group`,"aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr(`group`)]:``,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},Ob=class e{static create(t){let n=vb.getOr(null);if(n)return new e(t,n);let r=_b.getOr(null);return r?new e(t,r):new e(t,gb.get())}opts;group;attachment;constructor(e,t){this.opts=e,this.group=t,this.attachment=H_(this.opts.ref,e=>this.group.groupHeadingId=e?.id)}#e=j(()=>({id:this.opts.id.current,role:`group`,[this.group.root.getBitsAttr(`group-heading`)]:``,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},kb=class e{static create(t){return new e(t,pb.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref)}#e=j(()=>({id:this.opts.id.current,role:`group`,[this.root.getBitsAttr(`separator`)]:``,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},Ab=class e{static create(t){return gb.set(_b.set(new e(t,hb.get())))}opts;content;attachment;#e=M(null);get groupHeadingId(){return R(this.#e)}set groupHeadingId(e){N(this.#e,e,!0)}root;constructor(e,t){this.opts=e,this.content=t,this.root=t.parentMenu.root,this.attachment=H_(this.opts.ref)}setValue(e){this.opts.value.current=e}#t=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`radio-group`)]:``,role:`group`,"aria-labelledby":this.groupHeadingId,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},jb=class e{static create(t){let n=_b.get();return new e(t,new Tb(t,new wb(t,n.content)),n)}opts;item;group;attachment;#e=j(()=>this.group.opts.value.current===this.opts.value.current);get isChecked(){return R(this.#e)}set isChecked(e){N(this.#e,e)}constructor(e,t,n){this.opts=e,this.item=t,this.group=n,this.attachment=H_(this.opts.ref)}selectValue(){this.group.setValue(this.opts.value.current)}#t=j(()=>({[this.group.root.getBitsAttr(`radio-item`)]:``,...this.item.props,role:`menuitemradio`,"aria-checked":J_(this.isChecked,!1),"data-state":iy(this.isChecked),...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},Mb=class e{static create(t){return new e(t,mb.get())}opts;parentMenu;attachment;constructor(e,t){this.opts=e,this.parentMenu=t,this.attachment=H_(this.opts.ref,e=>this.parentMenu.triggerNode=e)}onclick=e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())};onpointerdown=e=>{if(!this.opts.disabled.current){if(e.pointerType===`touch`)return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}};onpointerup=e=>{this.opts.disabled.current||e.pointerType===`touch`&&(e.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=e=>{if(!this.opts.disabled.current){if(e.key===` `||e.key===`Enter`){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===`ArrowDown`&&(this.parentMenu.onOpen(),e.preventDefault())}};#e=j(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#t=j(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":`menu`,"aria-expanded":U_(this.parentMenu.opts.open.current),"aria-controls":R(this.#e),"data-disabled":G_(this.opts.disabled.current),"data-state":q_(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr(`trigger`)]:``,onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},Nb=class e{static create(t){return vb.set(new e(t,hb.get()))}opts;content;root;attachment;#e=M(null);get groupHeadingId(){return R(this.#e)}set groupHeadingId(e){N(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.parentMenu.root,this.attachment=H_(this.opts.ref)}addValue(e){if(e&&!this.opts.value.current.includes(e)){let t=[...ot(this.opts.value.current),e];if(this.opts.value.current=t,Ky(this.opts.value.current,t))return;this.opts.onValueChange.current(t)}}removeValue(e){if(!e||this.opts.value.current.indexOf(e)===-1)return;let t=this.opts.value.current.filter(t=>t!==e);this.opts.value.current=t,!Ky(this.opts.value.current,t)&&this.opts.onValueChange.current(t)}#t=j(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`checkbox-group`)]:``,role:`group`,"aria-labelledby":this.groupHeadingId,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}};globalThis.bitsDismissableLayers??=new Map;var Pb=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=$;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,Qn(()=>{this.#a=Zv(this.opts.ref.current)});let t=$,n=()=>{this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};p_([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return D_(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),n}),T_(()=>{this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&O_(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return Zg(ni(this.#a,`pointerdown`,Zg(this.#f,this.#m),{capture:!0}),ni(this.#a,`pointerdown`,Zg(this.#p,this.#d)),ni(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=Rb(e)),this.#e.current(e)};#d=Yv(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||Lb(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=Rb(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=ni(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=Ib(this.opts.ref.current))};#h=e=>this.opts.ref.current?Xv(this.opts.ref.current,e):!1;#g=Yv(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function Fb(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function Ib(e){let t=[...globalThis.bitsDismissableLayers],n=Fb(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function Lb(e,t){let n=e.target;if(!xv(n))return!1;let r=!!n.closest(`[${db}]`);if(`button`in e&&e.button>0&&!r)return!1;if(`button`in e&&e.button===0&&r)return!0;let i=!!t.closest(`[${fb}]`);return r&&i?!1:Zv(n).documentElement.contains(n)&&!Xv(t,n)&&Qv(e,t)}function Rb(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function zb(e,t){O(t,!0);let n=q(t,`interactOutsideBehavior`,7,`close`),r=q(t,`onInteractOutside`,7,$),i=q(t,`onFocusOutside`,7,$),a=q(t,`id`,7),o=q(t,`children`,7),s=q(t,`enabled`,7),c=q(t,`isValidEvent`,7,()=>!1),l=q(t,`ref`,7),u=Pb.create({id:Q(()=>a()),interactOutsideBehavior:Q(()=>n()),onInteractOutside:Q(()=>r()),enabled:Q(()=>s()),onFocusOutside:Q(()=>i()),isValidEvent:Q(()=>c()),ref:l()});var d={get interactOutsideBehavior(){return n()},set interactOutsideBehavior(e=`close`){n(e),A()},get onInteractOutside(){return r()},set onInteractOutside(e=$){r(e),A()},get onFocusOutside(){return i()},set onFocusOutside(e=$){i(e),A()},get id(){return a()},set id(e){a(e),A()},get children(){return o()},set children(e){o(e),A()},get enabled(){return s()},set enabled(e){s(e),A()},get isValidEvent(){return c()},set isValidEvent(e=()=>!1){c(e),A()},get ref(){return l()},set ref(e){l(e),A()}},f=B();return U(F(f),()=>o()??w,()=>({props:u.props})),V(e,f),k(d)}J(zb,{interactOutsideBehavior:{},onInteractOutside:{},onFocusOutside:{},id:{},children:{},enabled:{},isValidEvent:{},ref:{}},[],[],{mode:`open`}),globalThis.bitsEscapeLayers??=new Map;var Bb=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new V_(this.opts.ref);let t=$;p_(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>ni(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Vb(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;n!==`close`&&n!==`defer-otherwise-close`||this.opts.onEscapeKeydown.current(t)}};function Vb(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Hb(e,t){O(t,!0);let n=q(t,`escapeKeydownBehavior`,7,`close`),r=q(t,`onEscapeKeydown`,7,$),i=q(t,`children`,7),a=q(t,`enabled`,7),o=q(t,`ref`,7);Bb.create({escapeKeydownBehavior:Q(()=>n()),onEscapeKeydown:Q(()=>r()),enabled:Q(()=>a()),ref:o()});var s={get escapeKeydownBehavior(){return n()},set escapeKeydownBehavior(e=`close`){n(e),A()},get onEscapeKeydown(){return r()},set onEscapeKeydown(e=$){r(e),A()},get children(){return i()},set children(e){i(e),A()},get enabled(){return a()},set enabled(e){a(e),A()},get ref(){return o()},set ref(e){o(e),A()}},c=B();return U(F(c),()=>i()??w),V(e,c),k(s)}J(Hb,{escapeKeydownBehavior:{},onEscapeKeydown:{},children:{},enabled:{},ref:{}},[],[],{mode:`open`});var Ub=class e{static instance;#e=Sg([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Wb=class e{#e=!1;#t=null;#n=Ub.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(ni(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n)if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&Hy(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}},{capture:!0}),ni(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?Ry(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?zy(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return p_([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),T_(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Gb(e,t){O(t,!0);let n=q(t,`enabled`,7,!1),r=q(t,`trapFocus`,7,!1),i=q(t,`loop`,7,!1),a=q(t,`onCloseAutoFocus`,7,$),o=q(t,`onOpenAutoFocus`,7,$),s=q(t,`focusScope`,7),c=q(t,`ref`,7),l=Wb.use({enabled:Q(()=>n()),trap:Q(()=>r()),loop:i(),onCloseAutoFocus:Q(()=>a()),onOpenAutoFocus:Q(()=>o()),ref:c()});var u={get enabled(){return n()},set enabled(e=!1){n(e),A()},get trapFocus(){return r()},set trapFocus(e=!1){r(e),A()},get loop(){return i()},set loop(e=!1){i(e),A()},get onCloseAutoFocus(){return a()},set onCloseAutoFocus(e=$){a(e),A()},get onOpenAutoFocus(){return o()},set onOpenAutoFocus(e=$){o(e),A()},get focusScope(){return s()},set focusScope(e){s(e),A()},get ref(){return c()},set ref(e){c(e),A()}},d=B();return U(F(d),()=>s()??w,()=>({props:l.props})),V(e,d),k(u)}J(Gb,{enabled:{},trapFocus:{},loop:{},onCloseAutoFocus:{},onOpenAutoFocus:{},focusScope:{},ref:{}},[],[],{mode:`open`}),globalThis.bitsTextSelectionLayers??=new Map;var Kb=class e{static create(t){return new e(t)}opts;domContext;#e=$;constructor(e){this.opts=e,this.domContext=new V_(e.ref);let t=$;p_(()=>this.opts.enabled.current,e=>(e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#t()),()=>{t(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#t(){return Zg(ni(this.domContext.getDocument(),`pointerdown`,this.#n),ni(this.domContext.getDocument(),`pointerup`,wg(this.#r,this.opts.onPointerUp.current)))}#n=e=>{let t=this.opts.ref.current,n=e.target;!yv(t)||!yv(n)||!this.opts.enabled.current||!Xb(this)||!L_(t,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&(this.#e=Jb(t,this.domContext.getDocument().body)))};#r=()=>{this.#e(),this.#e=$}},qb=e=>e.style.userSelect||e.style.webkitUserSelect;function Jb(e,t){let n=qb(t),r=qb(e);return Yb(t,`none`),Yb(e,`text`),()=>{Yb(t,n),Yb(e,r)}}function Yb(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Xb(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function Zb(e,t){O(t,!0);let n=q(t,`preventOverflowTextSelection`,7,!0),r=q(t,`onPointerDown`,7,$),i=q(t,`onPointerUp`,7,$),a=q(t,`id`,7),o=q(t,`children`,7),s=q(t,`enabled`,7),c=q(t,`ref`,7);Kb.create({id:Q(()=>a()),onPointerDown:Q(()=>r()),onPointerUp:Q(()=>i()),enabled:Q(()=>s()&&n()),ref:c()});var l={get preventOverflowTextSelection(){return n()},set preventOverflowTextSelection(e=!0){n(e),A()},get onPointerDown(){return r()},set onPointerDown(e=$){r(e),A()},get onPointerUp(){return i()},set onPointerUp(e=$){i(e),A()},get id(){return a()},set id(e){a(e),A()},get children(){return o()},set children(e){o(e),A()},get enabled(){return s()},set enabled(e){s(e),A()},get ref(){return c()},set ref(e){c(e),A()}},u=B();return U(F(u),()=>o()??w),V(e,u),k(l)}J(Zb,{preventOverflowTextSelection:{},onPointerDown:{},onPointerUp:{},id:{},children:{},enabled:{},ref:{}},[],[],{mode:`open`}),globalThis.bitsIdCounter??={current:0};function Qb(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var $b=class{#e;#t=0;#n=M();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),N(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,R(this.#n)===void 0&&(this.#r=tr(()=>{N(this.#n,this.#e(...e),!0)})),Qn(()=>()=>{this.#i()}),R(this.#n)}},ex=new gp,tx=M(null),nx=null,rx=null,ix=!1,ax=Q(()=>{for(let e of ex.values())if(e)return!0;return!1}),ox=null,sx=new $b(()=>{function e(){document.body.setAttribute(`style`,R(tx)??``),document.body.style.removeProperty(`--scrollbar-width`),_v&&nx?.(),N(tx,null)}function t(){rx!==null&&(window.clearTimeout(rx),rx=null)}function n(e,n){t(),ix=!0,ox=Date.now();let r=ox,i=()=>{rx=null,ox===r&&(lx(ex)?ix=!1:(ix=!1,n()))},a=e===null?24:e;rx=window.setTimeout(i,a)}function r(){R(tx)===null&&ex.size===0&&!ix&&N(tx,document.body.getAttribute(`style`),!0)}return p_(()=>ax.current,()=>{if(!ax.current)return;r(),ix=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,_v&&(nx=ni(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),O_(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),T_(()=>()=>{nx?.()}),{get lockMap(){return ex},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),cx=class{#e=Qb();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=sx.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Q(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),T_(()=>{if(this.#r.lockMap.delete(this.#e),lx(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function lx(e){for(let[t,n]of e)if(n)return!0;return!1}function ux(e,t){O(t,!0);let n=q(t,`preventScroll`,7,!0),r=q(t,`restoreScrollDelay`,7,null);return n()&&new cx(n(),()=>r()),k({get preventScroll(){return n()},set preventScroll(e=!0){n(e),A()},get restoreScrollDelay(){return r()},set restoreScrollDelay(e=null){r(e),A()}})}J(ux,{preventScroll:{},restoreScrollDelay:{}},[],[],{mode:`open`});var dx=z(`<div><!></div>`);function fx(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`forceMount`,7,!1),a=q(t,`child`,7),o=q(t,`children`,7),s=q(t,`ref`,15,null),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`forceMount`,`child`,`children`,`ref`]),l=Iv.create({id:Q(()=>r()),ref:Q(()=>s(),e=>s(e))}),u=j(()=>i_(c,l.props));var d={get id(){return r()},set id(e=Ov(n)){r(e),A()},get forceMount(){return i()},set forceMount(e=!1){i(e),A()},get child(){return a()},set child(e){a(e),A()},get children(){return o()},set children(e){o(e),A()},get ref(){return s()},set ref(e=null){s(e),A()}},f=B(),p=F(f),m=e=>{var t=B(),n=F(t),r=e=>{var t=B(),n=F(t);{let e=j(()=>({props:i_(R(u)),...l.snippetProps}));U(n,a,()=>R(e))}V(e,t)},i=e=>{var t=dx();qa(t,e=>({...e}),[()=>i_(R(u))]),U(P(t),()=>o()??w,()=>l.snippetProps),D(t),V(e,t)};W(n,e=>{a()?e(r):e(i,-1)}),V(e,t)};return W(p,e=>{(l.shouldRender||i())&&e(m)}),V(e,f),k(d)}J(fx,{id:{},forceMount:{},child:{},children:{},ref:{}},[],[],{mode:`open`});var px=z(`<div><!></div>`);function mx(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`]),c=Pv.create({id:Q(()=>r()),ref:Q(()=>o(),e=>o(e))}),l=j(()=>i_(s,c.props));var u={get id(){return r()},set id(e=Ov(n)){r(e),A()},get children(){return i()},set children(e){i(e),A()},get child(){return a()},set child(e){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()}},d=B(),f=F(d),p=e=>{var t=B();U(F(t),a,()=>({props:R(l)})),V(e,t)},m=e=>{var t=px();qa(t,()=>({...R(l)})),U(P(t),()=>i()??w),D(t),V(e,t)};return W(f,e=>{a()?e(p):e(m,-1)}),V(e,d),k(u)}J(mx,{id:{},children:{},child:{},ref:{}},[],[],{mode:`open`});function hx(e,t){O(t,!0);let n=q(t,`children`,7),r=q(t,`defaultPortalTo`,7),i=q(t,`defaultLocale`,7);Hv({defaultPortalTo:Q(()=>r()),defaultLocale:Q(()=>i())});var a={get children(){return n()},set children(e){n(e),A()},get defaultPortalTo(){return r()},set defaultPortalTo(e){r(e),A()},get defaultLocale(){return i()},set defaultLocale(e){i(e),A()}},o=B();return U(F(o),()=>n()??w),V(e,o),k(a)}J(hx,{children:{},defaultPortalTo:{},defaultLocale:{}},[],[],{mode:`open`});var gx=z(`<input/>`),_x=z(`<input/>`);function vx(e,t){O(t,!0);let n=q(t,`value`,15),r=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`value`]),i=j(()=>i_(r,{"aria-hidden":`true`,tabindex:-1,style:a_}));var a={get value(){return n()},set value(e){n(e),A()}},o=B(),s=F(o),c=e=>{var t=gx();qa(t,()=>({...R(i),value:n()}),void 0,void 0,void 0,void 0,!0),V(e,t)},l=e=>{var t=_x();qa(t,()=>({...R(i)}),void 0,void 0,void 0,void 0,!0),Za(t,n),V(e,t)};return W(s,e=>{R(i).type===`checkbox`?e(c):e(l,-1)}),V(e,o),k(a)}J(vx,{value:{}},[],[],{mode:`open`});var yx=X_({component:`collapsible`,parts:[`root`,`content`,`trigger`]}),bx=new l_(`Collapsible.Root`),xx=class e{static create(t){return bx.set(new e(t))}opts;attachment;#e=M(null);get contentNode(){return R(this.#e)}set contentNode(e){N(this.#e,e,!0)}contentPresence;#t=M(void 0);get contentId(){return R(this.#t)}set contentId(e){N(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=H_(this.opts.ref),this.contentPresence=new Dv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#n=j(()=>({id:this.opts.id.current,"data-state":q_(this.opts.open.current),"data-disabled":G_(this.opts.disabled.current),[yx.root]:``,...this.attachment}));get props(){return R(this.#n)}set props(e){N(this.#n,e)}},Sx=class e{static create(t){return new e(t,bx.get())}opts;root;attachment;#e=j(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return R(this.#e)}set present(e){N(this.#e,e)}#t;#n=M(!1);#r=M(0);#i=M(0);constructor(e,t){this.opts=e,this.root=t,N(this.#n,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=H_(this.opts.ref,e=>this.root.contentNode=e),p_.pre(()=>this.opts.id.current,e=>{this.root.contentId=e}),er(()=>{let e=requestAnimationFrame(()=>{N(this.#n,!1)});return()=>{cancelAnimationFrame(e)}}),p_.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([e,t])=>!e||!t?void 0:ni(e,`beforematch`,()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),p_([()=>this.opts.ref.current,()=>this.present],([e])=>{e&&O_(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();if(N(this.#i,t.height,!0),N(this.#r,t.width,!0),!R(this.#n)){let{animationName:t,transitionDuration:n}=this.#t;e.style.transitionDuration=n,e.style.animationName=t}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#a=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#a)}set snippetProps(e){N(this.#a,e)}#o=j(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":R(this.#i)?`${R(this.#i)}px`:void 0,"--bits-collapsible-content-width":R(this.#r)?`${R(this.#r)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?`until-found`:void 0,"data-state":q_(this.root.opts.open.current),"data-disabled":G_(this.root.opts.disabled.current),[yx.content]:``,...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return R(this.#o)}set props(e){N(this.#o,e)}},Cx=class e{static create(t){return new e(t,bx.get())}opts;root;attachment;#e=j(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!R(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){R(this.#e)||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.toggleOpen())}#t=j(()=>({id:this.opts.id.current,type:`button`,disabled:R(this.#e),"aria-controls":this.root.contentId,"aria-expanded":U_(this.root.opts.open.current),"data-state":q_(this.root.opts.open.current),"data-disabled":G_(R(this.#e)),[yx.trigger]:``,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},wx=z(`<div><!></div>`);function Tx(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>Ov(n)),o=q(t,`ref`,15,null),s=q(t,`open`,15,!1),c=q(t,`disabled`,7,!1),l=q(t,`onOpenChange`,7,$),u=q(t,`onOpenChangeComplete`,7,$),d=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`open`,`disabled`,`onOpenChange`,`onOpenChangeComplete`]),f=xx.create({open:Q(()=>s(),e=>{s(e),l()(e)}),disabled:Q(()=>c()),id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),onOpenChangeComplete:Q(()=>u())}),p=j(()=>i_(d,f.props));var m={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get id(){return a()},set id(e=Ov(n)){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get open(){return s()},set open(e=!1){s(e),A()},get disabled(){return c()},set disabled(e=!1){c(e),A()},get onOpenChange(){return l()},set onOpenChange(e=$){l(e),A()},get onOpenChangeComplete(){return u()},set onOpenChangeComplete(e=$){u(e),A()}},h=B(),g=F(h),_=e=>{var t=B();U(F(t),i,()=>({props:R(p)})),V(e,t)},v=e=>{var t=wx();qa(t,()=>({...R(p)})),U(P(t),()=>r()??w),D(t),V(e,t)};return W(g,e=>{i()?e(_):e(v,-1)}),V(e,h),k(m)}J(Tx,{children:{},child:{},id:{},ref:{},open:{},disabled:{},onOpenChange:{},onOpenChangeComplete:{}},[],[],{mode:`open`});var Ex=z(`<div><!></div>`);function Dx(e,t){let n=hi();O(t,!0);let r=q(t,`child`,7),i=q(t,`ref`,15,null),a=q(t,`forceMount`,7,!1),o=q(t,`hiddenUntilFound`,7,!1),s=q(t,`children`,7),c=q(t,`id`,23,()=>Ov(n)),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`ref`,`forceMount`,`hiddenUntilFound`,`children`,`id`]),u=Sx.create({id:Q(()=>c()),forceMount:Q(()=>a()),hiddenUntilFound:Q(()=>o()),ref:Q(()=>i(),e=>i(e))}),d=j(()=>i_(l,u.props));var f={get child(){return r()},set child(e){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get forceMount(){return a()},set forceMount(e=!1){a(e),A()},get hiddenUntilFound(){return o()},set hiddenUntilFound(e=!1){o(e),A()},get children(){return s()},set children(e){s(e),A()},get id(){return c()},set id(e=Ov(n)){c(e),A()}},p=B(),m=F(p),h=e=>{var t=B(),n=F(t);{let e=j(()=>({...u.snippetProps,props:R(d)}));U(n,r,()=>R(e))}V(e,t)},g=e=>{var t=Ex();qa(t,()=>({...R(d)})),U(P(t),()=>s()??w),D(t),V(e,t)};return W(m,e=>{r()?e(h):e(g,-1)}),V(e,p),k(f)}J(Dx,{child:{},ref:{},forceMount:{},hiddenUntilFound:{},children:{},id:{}},[],[],{mode:`open`});var Ox=z(`<button><!></button>`);function kx(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>Ov(n)),s=q(t,`disabled`,7,!1),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`id`,`disabled`]),l=Cx.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e)),disabled:Q(()=>s())}),u=j(()=>i_(c,l.props));var d={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get id(){return o()},set id(e=Ov(n)){o(e),A()},get disabled(){return s()},set disabled(e=!1){s(e),A()}},f=B(),p=F(f),m=e=>{var t=B();U(F(t),i,()=>({props:R(u)})),V(e,t)},h=e=>{var t=Ox();qa(t,()=>({...R(u)})),U(P(t),()=>r()??w),D(t),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),k(d)}J(kx,{children:{},child:{},ref:{},id:{},disabled:{}},[],[],{mode:`open`});var Ax=[`top`,`right`,`bottom`,`left`],jx=Math.min,Mx=Math.max,Nx=Math.round,Px=Math.floor,Fx=e=>({x:e,y:e}),Ix={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Lx(e,t,n){return Mx(e,jx(t,n))}function Rx(e,t){return typeof e==`function`?e(t):e}function zx(e){return e.split(`-`)[0]}function Bx(e){return e.split(`-`)[1]}function Vx(e){return e===`x`?`y`:`x`}function Hx(e){return e===`y`?`height`:`width`}function Ux(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Wx(e){return Vx(Ux(e))}function Gx(e,t,n){n===void 0&&(n=!1);let r=Bx(e),i=Wx(e),a=Hx(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=eS(o)),[o,eS(o)]}function Kx(e){let t=eS(e);return[qx(e),t,qx(t)]}function qx(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Jx=[`left`,`right`],Yx=[`right`,`left`],Xx=[`top`,`bottom`],Zx=[`bottom`,`top`];function Qx(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Yx:Jx:t?Jx:Yx;case`left`:case`right`:return t?Xx:Zx;default:return[]}}function $x(e,t,n,r){let i=Bx(e),a=Qx(zx(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(qx)))),a}function eS(e){let t=zx(e);return Ix[t]+e.slice(t.length)}function tS(e){return{top:0,right:0,bottom:0,left:0,...e}}function nS(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:tS(e)}function rS(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function iS(e,t,n){let{reference:r,floating:i}=e,a=Ux(t),o=Wx(t),s=Hx(o),c=zx(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Bx(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function aS(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Rx(t,e),p=nS(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=rS(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=rS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var oS=50,sS=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:aS},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=iS(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<oS&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=iS(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},cS=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Rx(e,t)||{};if(l==null)return{};let d=nS(u),f={x:n,y:r},p=Wx(i),m=Hx(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let ee=b/2-x/2,te=C/2-h[m]/2-1,ne=jx(d[_],te),re=jx(d[v],te),w=ne,ie=C-h[m]-re,ae=C/2-h[m]/2+ee,oe=Lx(w,ae,ie),se=!c.arrow&&Bx(i)!=null&&ae!==oe&&a.reference[m]/2-(ae<w?ne:re)-h[m]/2<0,ce=se?ae<w?ae-w:ae-ie:0;return{[p]:f[p]+ce,data:{[p]:oe,centerOffset:ae-oe-ce,...se&&{alignmentOffset:ce}},reset:se}}}),lS=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Rx(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=zx(r),_=Ux(o),v=zx(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[eS(o)]:Kx(o)),x=p!==`none`;!d&&x&&b.push(...$x(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),ee=[],te=i.flip?.overflows||[];if(l&&ee.push(C[g]),u){let e=Gx(r,a,y);ee.push(C[e[0]],C[e[1]])}if(te=[...te,{placement:r,overflows:ee}],!ee.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Ux(t))||te.every(e=>Ux(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:te},reset:{placement:t}};let n=te.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=te.filter(e=>{if(x){let t=Ux(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function uS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dS(e){return Ax.some(t=>e[t]>=0)}var fS=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Rx(e,t);switch(i){case`referenceHidden`:{let e=uS(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:dS(e)}}}case`escaped`:{let e=uS(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:dS(e)}}}default:return{}}}}},pS=new Set([`left`,`top`]);async function mS(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=zx(n),s=Bx(n),c=Ux(n)===`y`,l=pS.has(o)?-1:1,u=a&&c?-1:1,d=Rx(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var hS=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await mS(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},gS=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Rx(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ux(zx(i)),p=Vx(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Lx(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Lx(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},_S=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Rx(e,t),u={x:n,y:r},d=Ux(i),f=Vx(d),p=u[f],m=u[d],h=Rx(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=pS.has(zx(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},vS=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Rx(e,t),u=await o.detectOverflow(t,l),d=zx(i),f=Bx(i),p=Ux(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=jx(h-u[g],v),x=jx(m-u[_],y),S=!t.middlewareData.shift,C=b,ee=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ee=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Mx(u.left,0),t=Mx(u.right,0),n=Mx(u.top,0),r=Mx(u.bottom,0);p?ee=m-2*(e!==0||t!==0?e+t:Mx(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Mx(u.top,u.bottom))}await c({...t,availableWidth:ee,availableHeight:C});let te=await o.getDimensions(s.floating);return m!==te.width||h!==te.height?{reset:{rects:!0}}:{}}}};function yS(){return typeof window<`u`}function bS(e){return CS(e)?(e.nodeName||``).toLowerCase():`#document`}function xS(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function SS(e){return((CS(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function CS(e){return yS()?e instanceof Node||e instanceof xS(e).Node:!1}function wS(e){return yS()?e instanceof Element||e instanceof xS(e).Element:!1}function TS(e){return yS()?e instanceof HTMLElement||e instanceof xS(e).HTMLElement:!1}function ES(e){return!yS()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof xS(e).ShadowRoot}function DS(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=RS(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function OS(e){return/^(table|td|th)$/.test(bS(e))}function kS(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var AS=/transform|translate|scale|rotate|perspective|filter/,jS=/paint|layout|strict|content/,MS=e=>!!e&&e!==`none`,NS;function PS(e){let t=wS(e)?RS(e):e;return MS(t.transform)||MS(t.translate)||MS(t.scale)||MS(t.rotate)||MS(t.perspective)||!IS()&&(MS(t.backdropFilter)||MS(t.filter))||AS.test(t.willChange||``)||jS.test(t.contain||``)}function FS(e){let t=BS(e);for(;TS(t)&&!LS(t);){if(PS(t))return t;if(kS(t))return null;t=BS(t)}return null}function IS(){return NS??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),NS}function LS(e){return/^(html|body|#document)$/.test(bS(e))}function RS(e){return xS(e).getComputedStyle(e)}function zS(e){return wS(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function BS(e){if(bS(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ES(e)&&e.host||SS(e);return ES(t)?t.host:t}function VS(e){let t=BS(e);return LS(t)?e.ownerDocument?e.ownerDocument.body:e.body:TS(t)&&DS(t)?t:VS(t)}function HS(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=VS(e),i=r===e.ownerDocument?.body,a=xS(r);if(i){let e=US(a);return t.concat(a,a.visualViewport||[],DS(r)?r:[],e&&n?HS(e):[])}else return t.concat(r,HS(r,[],n))}function US(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function WS(e){let t=RS(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=TS(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Nx(n)!==a||Nx(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function GS(e){return wS(e)?e:e.contextElement}function KS(e){let t=GS(e);if(!TS(t))return Fx(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=WS(t),o=(a?Nx(n.width):n.width)/r,s=(a?Nx(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var qS=Fx(0);function JS(e){let t=xS(e);return!IS()||!t.visualViewport?qS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==xS(e)?!1:t}function XS(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=GS(e),o=Fx(1);t&&(r?wS(r)&&(o=KS(r)):o=KS(e));let s=YS(a,n,r)?JS(a):Fx(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=xS(a),t=r&&wS(r)?xS(r):r,n=e,i=US(n);for(;i&&r&&t!==n;){let e=KS(i),t=i.getBoundingClientRect(),r=RS(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=xS(i),i=US(n)}}return rS({width:u,height:d,x:c,y:l})}function ZS(e,t){let n=zS(e).scrollLeft;return t?t.left+n:XS(SS(e)).left+n}function QS(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ZS(e,n),y:n.top+t.scrollTop}}function $S(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=SS(r),s=t?kS(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Fx(1),u=Fx(0),d=TS(r);if((d||!d&&!a)&&((bS(r)!==`body`||DS(o))&&(c=zS(r)),d)){let e=XS(r);l=KS(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?QS(o,c):Fx(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function eC(e){return Array.from(e.getClientRects())}function tC(e){let t=SS(e),n=zS(e),r=e.ownerDocument.body,i=Mx(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Mx(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ZS(e),s=-n.scrollTop;return RS(r).direction===`rtl`&&(o+=Mx(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var nC=25;function rC(e,t){let n=xS(e),r=SS(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=IS();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ZS(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=nC&&(a-=o)}else l<=nC&&(a+=l);return{width:a,height:o,x:s,y:c}}function iC(e,t){let n=XS(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=TS(e)?KS(e):Fx(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function aC(e,t,n){let r;if(t===`viewport`)r=rC(e,n);else if(t===`document`)r=tC(SS(e));else if(wS(t))r=iC(t,n);else{let n=JS(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rS(r)}function oC(e,t){let n=BS(e);return n===t||!wS(n)||LS(n)?!1:RS(n).position===`fixed`||oC(n,t)}function sC(e,t){let n=t.get(e);if(n)return n;let r=HS(e,[],!1).filter(e=>wS(e)&&bS(e)!==`body`),i=null,a=RS(e).position===`fixed`,o=a?BS(e):e;for(;wS(o)&&!LS(o);){let t=RS(o),n=PS(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||DS(o)&&!n&&oC(e,o))?r=r.filter(e=>e!==o):i=t,o=BS(o)}return t.set(e,r),r}function cC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?kS(t)?[]:sC(t,this._c):[].concat(n),r],o=aC(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=aC(t,a[e],i);s=Mx(n.top,s),c=jx(n.right,c),l=jx(n.bottom,l),u=Mx(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function lC(e){let{width:t,height:n}=WS(e);return{width:t,height:n}}function uC(e,t,n){let r=TS(t),i=SS(t),a=n===`fixed`,o=XS(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Fx(0);function l(){c.x=ZS(i)}if(r||!r&&!a)if((bS(t)!==`body`||DS(i))&&(s=zS(t)),r){let e=XS(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?QS(i,s):Fx(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function dC(e){return RS(e).position===`static`}function fC(e,t){if(!TS(e)||RS(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return SS(e)===n&&(n=n.ownerDocument.body),n}function pC(e,t){let n=xS(e);if(kS(e))return n;if(!TS(e)){let t=BS(e);for(;t&&!LS(t);){if(wS(t)&&!dC(t))return t;t=BS(t)}return n}let r=fC(e,t);for(;r&&OS(r)&&dC(r);)r=fC(r,t);return r&&LS(r)&&dC(r)&&!PS(r)?n:r||FS(e)||n}var mC=async function(e){let t=this.getOffsetParent||pC,n=this.getDimensions,r=await n(e.floating);return{reference:uC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hC(e){return RS(e).direction===`rtl`}var gC={convertOffsetParentRelativeRectToViewportRelativeRect:$S,getDocumentElement:SS,getClippingRect:cC,getOffsetParent:pC,getElementRects:mC,getClientRects:eC,getDimensions:lC,getScale:KS,isElement:wS,isRTL:hC};function _C(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vC(e,t){let n=null,r,i=SS(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Px(d),h=Px(i.clientWidth-(u+f)),g=Px(i.clientHeight-(d+p)),_=Px(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Mx(0,jx(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!_C(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function yC(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=GS(e),u=i||a?[...l?HS(l):[],...t?HS(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?vC(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?XS(e):null;c&&g();function g(){let t=XS(e);h&&!_C(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var bC=hS,xC=gS,SC=lS,CC=vS,wC=fS,TC=cS,EC=_S,DC=(e,t,n)=>{let r=new Map,i={platform:gC,...n},a={...i.platform,_c:r};return sS(e,t,{...i,platform:a})};function OC(e){return typeof e==`function`?e():e}function kC(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function AC(e,t){let n=kC(e);return Math.round(t*n)/n}function jC(e){return{[`--bits-${e}-content-transform-origin`]:`var(--bits-floating-transform-origin)`,[`--bits-${e}-content-available-width`]:`var(--bits-floating-available-width)`,[`--bits-${e}-content-available-height`]:`var(--bits-floating-available-height)`,[`--bits-${e}-anchor-width`]:`var(--bits-floating-anchor-width)`,[`--bits-${e}-anchor-height`]:`var(--bits-floating-anchor-height)`}}function MC(e){let t=e.whileElementsMounted,n=j(()=>OC(e.open)??!0),r=j(()=>OC(e.middleware)),i=j(()=>OC(e.transform)??!0),a=j(()=>OC(e.placement)??`bottom`),o=j(()=>OC(e.strategy)??`absolute`),s=j(()=>OC(e.sideOffset)??0),c=j(()=>OC(e.alignOffset)??0),l=e.reference,u=M(0),d=M(0),f=Sg(null),p=M(En(R(o))),m=M(En(R(a))),h=M(En({})),g=M(!1),_=!1,v=j(()=>{let e=f.current?AC(f.current,R(u)):R(u),t=f.current?AC(f.current,R(d)):R(d);return R(i)?{position:R(p),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...f.current&&kC(f.current)>=1.5&&{willChange:`transform`}}:{position:R(p),left:`${e}px`,top:`${t}px`}}),y;function b(){l.current===null||f.current===null||DC(l.current,f.current,{middleware:R(r),placement:R(a),strategy:R(o)}).then(e=>{let t=l.current;if(NC(t)){N(h,{...R(h),hide:{...R(h).hide,referenceHidden:!0}},!0);return}if(!R(n)&&R(u)!==0&&R(d)!==0){let t=Math.max(Math.abs(R(s)),Math.abs(R(c)),15);if(e.x<=t&&e.y<=t)return}N(u,e.x,!0),N(d,e.y,!0),N(p,e.strategy,!0),N(m,e.placement,!0),N(h,e.middlewareData,!0),N(g,!0)})}function x(){typeof y==`function`&&(y(),y=void 0)}function S(){if(x(),t===void 0){b();return}R(n)&&(l.current===null||f.current===null||(y=t(l.current,f.current,b)))}function C(){!R(n)&&f.current===null&&N(g,!1)}function ee(){return[R(r),R(a),R(o),R(s),R(c),R(n)]}return Qn(()=>{t===void 0&&R(n)&&b()}),Qn(S),Qn(()=>{if(t!==void 0){if(ee(),!R(n)){_=!1;return}if(!R(g)){_=!1;return}if(!_){_=!0;return}b()}}),Qn(C),Qn(()=>x),{floating:f,reference:l,get strategy(){return R(p)},get placement(){return R(m)},get middlewareData(){return R(h)},get isPositioned(){return R(g)},get floatingStyles(){return R(v)},get update(){return b}}}function NC(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var PC={top:`bottom`,right:`left`,bottom:`top`,left:`right`},FC=new l_(`Floating.Root`),IC=new l_(`Floating.Content`),LC=new l_(`Floating.Root`),RC=class e{static create(t=!1){return t?LC.set(new e):FC.set(new e)}anchorNode=Sg(null);customAnchorNode=Sg(null);triggerNode=Sg(null);constructor(){Qn(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current==`string`?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}},zC=class e{static create(t,n=!1){return n?IC.set(new e(t,LC.get())):IC.set(new e(t,FC.get()))}opts;root;contentRef=Sg(null);wrapperRef=Sg(null);arrowRef=Sg(null);contentAttachment=H_(this.contentRef);wrapperAttachment=H_(this.wrapperRef);arrowAttachment=H_(this.arrowRef);arrowId=Sg(Qb());#e=j(()=>{if(typeof this.opts.style==`string`)return Xg(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new v_(()=>this.arrowRef.current??void 0);#r=j(()=>this.#n?.width??0);#i=j(()=>this.#n?.height??0);#a=j(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`));#o=j(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=j(()=>R(this.#o).length>0);get hasExplicitBoundaries(){return R(this.#s)}set hasExplicitBoundaries(e){N(this.#s,e)}#c=j(()=>({padding:this.opts.collisionPadding.current,boundary:R(this.#o).filter(Cv),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return R(this.#c)}set detectOverflowOptions(e){N(this.#c,e)}#l=M(void 0);#u=M(void 0);#d=M(void 0);#f=M(void 0);#p=j(()=>[bC({mainAxis:this.opts.sideOffset.current+R(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&xC({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?EC():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&SC({...this.detectOverflowOptions}),CC({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;N(this.#l,t,!0),N(this.#u,n,!0),N(this.#d,r,!0),N(this.#f,i,!0)}}),this.arrowRef.current&&TC({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),VC({arrowWidth:R(this.#r),arrowHeight:R(this.#i)}),this.opts.hideWhenDetached.current&&wC({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean));get middleware(){return R(this.#p)}set middleware(e){N(this.#p,e)}floating;#m=j(()=>UC(this.floating.placement));get placedSide(){return R(this.#m)}set placedSide(e){N(this.#m,e)}#h=j(()=>WC(this.floating.placement));get placedAlign(){return R(this.#h)}set placedAlign(e){N(this.#h,e)}#g=j(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return R(this.#g)}set arrowX(e){N(this.#g,e)}#_=j(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return R(this.#_)}set arrowY(e){N(this.#_,e)}#v=j(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return R(this.#v)}set cannotCenterArrow(e){N(this.#v,e)}#y=M();get contentZIndex(){return R(this.#y)}set contentZIndex(e){N(this.#y,e,!0)}#b=j(()=>PC[this.placedSide]);get arrowBaseSide(){return R(this.#b)}set arrowBaseSide(e){N(this.#b,e)}#x=j(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":``,style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${R(this.#l)}px`,"--bits-floating-available-height":`${R(this.#u)}px`,"--bits-floating-anchor-width":`${R(this.#d)}px`,"--bits-floating-anchor-height":`${R(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...R(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return R(this.#x)}set wrapperProps(e){N(this.#x,e)}#S=j(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:t_({...R(this.#e)}),...this.contentAttachment}));get props(){return R(this.#S)}set props(e){N(this.#S,e)}#C=j(()=>({position:`absolute`,left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[this.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[this.placedSide],visibility:this.cannotCenterArrow?`hidden`:void 0}));get arrowStyle(){return R(this.#C)}set arrowStyle(e){N(this.#C,e)}constructor(e,t){this.opts=e,this.root=t,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),p_(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=MC({strategy:()=>this.opts.strategy.current,placement:()=>R(this.#a),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>yC(...e,{animationFrame:this.#t?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Qn(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),p_(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=z_(e),n=t.requestAnimationFrame(()=>{if(this.contentRef.current!==e||!this.opts.enabled.current)return;let n=t.getComputedStyle(e).zIndex;n!==this.contentZIndex&&(this.contentZIndex=n)});return()=>{t.cancelAnimationFrame(n)}}),Qn(()=>{this.floating.floating.current=this.wrapperRef.current})}},BC=class e{static create(t,n=!1){return n?new e(t,LC.get()):new e(t,FC.get())}opts;root;constructor(e,t){this.opts=e,this.root=t,e.virtualEl&&e.virtualEl.current?t.triggerNode=yg(e.virtualEl.current):t.triggerNode=e.ref}};function VC(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=HC(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function HC(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function UC(e){return HC(e)[0]}function WC(e){return HC(e)[1]}function GC(e,t){O(t,!0);let n=q(t,`children`,7),r=q(t,`tooltip`,7,!1);RC.create(r());var i={get children(){return n()},set children(e){n(e),A()},get tooltip(){return r()},set tooltip(e=!1){r(e),A()}},a=B();return U(F(a),()=>n()??w),V(e,a),k(i)}J(GC,{children:{},tooltip:{}},[],[],{mode:`open`});var KC=[Q_,iv,$_,lv,tv,nv,`Alt`,ov,rv,`F1`,`F2`,`F3`,`F4`,`F5`,`F6`,`F7`,`F8`,`F9`,`F10`,`F11`,`F12`],qC=[Z_,cv,av],JC=[ev,sv,`End`],YC=[...qC,...JC],XC=X_({component:`select`,parts:[`trigger`,`content`,`item`,`viewport`,`scroll-up-button`,`scroll-down-button`,`group`,`group-label`,`separator`,`arrow`,`input`,`content-wrapper`,`item-text`,`value`]}),ZC=new l_(`Select.Root | Combobox.Root`);new l_(`Select.Group | Combobox.Group`);var QC=new l_(`Select.Content | Combobox.Content`),$C=class{opts;#e=M(!1);get touchedInput(){return R(this.#e)}set touchedInput(e){N(this.#e,e,!0)}#t=M(null);get inputNode(){return R(this.#t)}set inputNode(e){N(this.#t,e,!0)}#n=M(null);get contentNode(){return R(this.#n)}set contentNode(e){N(this.#n,e,!0)}contentPresence;#r=M(null);get viewportNode(){return R(this.#r)}set viewportNode(e){N(this.#r,e,!0)}#i=M(null);get triggerNode(){return R(this.#i)}set triggerNode(e){N(this.#i,e,!0)}#a=M(``);get valueId(){return R(this.#a)}set valueId(e){N(this.#a,e,!0)}#o=M(null);get highlightedNode(){return R(this.#o)}set highlightedNode(e){N(this.#o,e,!0)}#s=j(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-value`):null);get highlightedValue(){return R(this.#s)}set highlightedValue(e){N(this.#s,e)}#c=j(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return R(this.#c)}set highlightedId(e){N(this.#c,e)}#l=j(()=>this.highlightedNode?this.highlightedNode.getAttribute(`data-label`):null);get highlightedLabel(){return R(this.#l)}set highlightedLabel(e){N(this.#l,e)}isUsingKeyboard=!1;isCombobox=!1;domContext=new V_(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new Dv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),er(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){let e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr(`item`)}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){let e=this.viewportNode.getBoundingClientRect();t=t.filter(t=>{if(!this.viewportNode)return!1;let n=t.getBoundingClientRect();return n.right<=e.right&&n.left>=e.left&&n.bottom<=e.bottom&&n.top>=e.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(t=>t.dataset.value===e)??null}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>XC.getAttr(e,this.isCombobox?`combobox`:void 0)},ew=class extends $C{opts;isMulti=!1;#e=j(()=>this.opts.value.current!==``);get hasValue(){return R(this.#e)}set hasValue(e){N(this.#e,e)}#t=j(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??``:``);get currentLabel(){return R(this.#t)}set currentLabel(e){N(this.#t,e)}#n=j(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return R(this.#n)}set candidateLabels(e){N(this.#n,e)}#r=j(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return R(this.#r)}set dataTypeaheadEnabled(e){N(this.#r,e)}constructor(e){super(e),this.opts=e,Qn(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),p_(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,t=e){let n=this.includesItem(e)?``:e;this.opts.value.current=n,n!==``&&(this.opts.inputValue.current=t)}setInitialHighlightedNode(){O_(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==``){let e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},tw=class extends $C{opts;isMulti=!0;#e=j(()=>this.opts.value.current.length>0);get hasValue(){return R(this.#e)}set hasValue(e){N(this.#e,e)}constructor(e){super(e),this.opts=e,Qn(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),p_(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(t=>t!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=t}setInitialHighlightedNode(){O_(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==``){let e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}},nw=class{static create(e){let{type:t,...n}=e,r=t===`single`?new ew(n):new tw(n);return ZC.set(r)}},rw=class e{static create(t){return new e(t,ZC.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(e.ref,e=>this.root.inputNode=e),this.root.domContext=new V_(e.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),p_([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([e,t],[n])=>{t&&(Array.isArray(e)&&Array.isArray(n)?e.length===0&&n.length!==0&&(this.root.opts.inputValue.current=``):e===``&&n!==``&&(this.root.opts.inputValue.current=``))})}onkeydown(e){if(this.root.isUsingKeyboard=!0,e.key!==`Escape`){if((e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault(),!this.root.opts.open.current){if(KC.includes(e.key)||e.key===`Tab`||e.key===`Backspace`&&this.root.opts.inputValue.current===``||(this.root.handleOpen(),this.root.hasValue))return;let t=this.root.getCandidateNodes();if(!t.length)return;if(e.key===`ArrowDown`){let e=t[0];this.root.setHighlightedNode(e)}else if(e.key===`ArrowUp`){let e=t[t.length-1];this.root.setHighlightedNode(e)}return}if(e.key===`Tab`){this.root.handleClose();return}if(e.key===`Enter`&&!e.isComposing){e.preventDefault();let t=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t&&this.root.handleClose()}if(e.key===`ArrowUp`&&e.altKey&&this.root.handleClose(),YC.includes(e.key)){e.preventDefault();let t=this.root.getCandidateNodes(),n=this.root.highlightedNode,r=n?t.indexOf(n):-1,i=this.root.opts.loop.current,a;if(e.key===`ArrowDown`?a=Yy(t,r,i):e.key===`ArrowUp`?a=Xy(t,r,i):e.key===`PageDown`?a=Zy(t,r,10,i):e.key===`PageUp`?a=Qy(t,r,10,i):e.key===`Home`?a=t[0]:e.key===`End`&&(a=t[t.length-1]),!a)return;this.root.setHighlightedNode(a);return}KC.includes(e.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(e){this.root.opts.inputValue.current=e.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#e=j(()=>({id:this.opts.id.current,role:`combobox`,disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":`list`,"aria-expanded":U_(this.root.opts.open.current),"data-state":q_(this.root.opts.open.current),"data-disabled":G_(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr(`input`)]:``,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},iw=class e{static create(t){return new e(t,ZC.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(e.ref),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this)}onkeydown(e){this.root.domContext&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}onpointerdown(e){this.root.opts.disabled.current||!this.root.domContext||(e.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}#e=j(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":`listbox`,"data-state":q_(this.root.opts.open.current),"data-disabled":G_(this.root.opts.disabled.current),[this.root.getBitsAttr(`trigger`)]:``,onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},aw=class e{static create(t){return QC.set(new e(t,ZC.get()))}opts;root;attachment;#e=M(!1);get isPositioned(){return R(this.#e)}set isPositioned(e){N(this.#e,e,!0)}domContext;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(e.ref,e=>this.root.contentNode=e),this.domContext=new V_(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),T_(()=>{this.root.contentNode=null,this.isPositioned=!1}),p_(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=j(()=>jC(this.root.isCombobox?`combobox`:`select`));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#n)}set snippetProps(e){N(this.#n,e)}#r=j(()=>({id:this.opts.id.current,role:`listbox`,"aria-multiselectable":this.root.isMulti?`true`:void 0,"data-state":q_(this.root.opts.open.current),[this.root.getBitsAttr(`content`)]:``,style:{display:`flex`,flexDirection:`column`,outline:`none`,boxSizing:`border-box`,pointerEvents:`auto`,...R(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return R(this.#r)}set props(e){N(this.#r,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}},ow=class e{static create(t){return new e(t,ZC.get())}opts;root;attachment;#e=j(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return R(this.#e)}set isSelected(e){N(this.#e,e)}#t=j(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return R(this.#t)}set isHighlighted(e){N(this.#t,e)}prevHighlighted=new y_(()=>this.isHighlighted);#n=M(!1);get mounted(){return R(this.#n)}set mounted(e){N(this.#n,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(e.ref),p_([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),p_(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;let e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#r=j(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return R(this.#r)}set snippetProps(e){N(this.#r,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType===`touch`&&!_v){ni(this.opts.ref.current,`click`,()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType===`touch`&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!==`touch`&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=j(()=>({id:this.opts.id.current,role:`option`,"aria-selected":this.root.includesItem(this.opts.value.current)?`true`:void 0,"data-value":this.opts.value.current,"data-disabled":G_(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?``:void 0,"data-selected":this.root.includesItem(this.opts.value.current)?``:void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr(`item`)]:``,onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return R(this.#i)}set props(e){N(this.#i,e)}},sw=class e{static create(t){return new e(t,ZC.get())}opts;root;#e=j(()=>this.root.opts.name.current!==``);get shouldRender(){return R(this.#e)}set shouldRender(e){N(this.#e,e)}constructor(e,t){this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=j(()=>({disabled:K_(this.root.opts.disabled.current),required:K_(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},cw=class e{static create(t){return new e(t,QC.get())}opts;content;root;attachment;#e=M(0);get prevScrollTop(){return R(this.#e)}set prevScrollTop(e){N(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=H_(e.ref,e=>{this.root.viewportNode=e})}#t=j(()=>({id:this.opts.id.current,role:`presentation`,[this.root.getBitsAttr(`viewport`)]:``,style:{position:`relative`,flex:1,overflow:`auto`},...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},lw=class{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=$;#e=M(!1);get mounted(){return R(this.#e)}set mounted(e){N(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=H_(e.ref),p_([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),Qn(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(e){if(this.autoScrollTimer!==null)return;let t=e=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(e+1),this.opts.delay.current(e))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(1),this.opts.delay.current(0))}onpointermove(e){this.onpointerdown(e)}onpointerleave(e){this.clearAutoScrollInterval()}#t=j(()=>({id:this.opts.id.current,"aria-hidden":W_(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},uw=class e{static create(t){return new e(new lw(t,QC.get()))}scrollButtonState;content;root;#e=M(!1);get canScrollDown(){return R(this.#e)}set canScrollDown(e){N(this.#e,e,!0)}scrollIntoViewTimer=null;constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,p_([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ni(this.root.viewportNode,`scroll`,()=>this.handleScroll())}),p_([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),p_(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=D_(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;let t=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<t-n};handleAutoScroll=()=>{let e=this.root.viewportNode,t=this.root.highlightedNode;!e||!t||(e.scrollTop+=t.offsetHeight)};#t=j(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr(`scroll-down-button`)]:``}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}},dw=class e{static create(t){return new e(new lw(t,QC.get()))}scrollButtonState;content;root;#e=M(!1);get canScrollUp(){return R(this.#e)}set canScrollUp(e){N(this.#e,e,!0)}constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,p_([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ni(this.root.viewportNode,`scroll`,()=>this.handleScroll())})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;let t=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-t>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#t=j(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr(`scroll-up-button`)]:``}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}};function fw(e,t){O(t,!0);let n=q(t,`value`,15),r=q(t,`autocomplete`,7),i=sw.create({value:Q(()=>n())});var a={get value(){return n()},set value(e){n(e),A()},get autocomplete(){return r()},set autocomplete(e){r(e),A()}},o=B(),s=F(o),c=e=>{vx(e,po(()=>i.props,{get autocomplete(){return r()},get value(){return n()},set value(e){n(e)}}))};return W(s,e=>{i.shouldRender&&e(c)}),V(e,o),k(a)}J(fw,{value:{},autocomplete:{}},[],[],{mode:`open`});var pw=z(`<!> <!>`,1);function mw(e,t){O(t,!0);let n=q(t,`value`,15),r=q(t,`onValueChange`,7,$),i=q(t,`name`,7,``),a=q(t,`disabled`,7,!1),o=q(t,`type`,7),s=q(t,`open`,15,!1),c=q(t,`onOpenChange`,7,$),l=q(t,`onOpenChangeComplete`,7,$),u=q(t,`loop`,7,!1),d=q(t,`scrollAlignment`,7,`nearest`),f=q(t,`required`,7,!1),p=q(t,`items`,23,()=>[]),m=q(t,`allowDeselect`,7,!0),h=q(t,`inputValue`,7,``),g=q(t,`children`,7);n()===void 0&&n(o()===`single`?``:[]),p_.pre(()=>n(),()=>{n()===void 0&&n(o()===`single`?``:[])});let _=nw.create({type:o(),value:Q(()=>n(),e=>{n(e),r()(e)}),disabled:Q(()=>a()),required:Q(()=>f()),open:Q(()=>s(),e=>{s(e),c()(e)}),loop:Q(()=>u()),scrollAlignment:Q(()=>d()),name:Q(()=>i()),isCombobox:!0,items:Q(()=>p()),allowDeselect:Q(()=>m()),inputValue:Q(()=>h(),e=>h(e)),onOpenChangeComplete:Q(()=>l())});var v={get value(){return n()},set value(e){n(e),A()},get onValueChange(){return r()},set onValueChange(e=$){r(e),A()},get name(){return i()},set name(e=``){i(e),A()},get disabled(){return a()},set disabled(e=!1){a(e),A()},get type(){return o()},set type(e){o(e),A()},get open(){return s()},set open(e=!1){s(e),A()},get onOpenChange(){return c()},set onOpenChange(e=$){c(e),A()},get onOpenChangeComplete(){return l()},set onOpenChangeComplete(e=$){l(e),A()},get loop(){return u()},set loop(e=!1){u(e),A()},get scrollAlignment(){return d()},set scrollAlignment(e=`nearest`){d(e),A()},get required(){return f()},set required(e=!1){f(e),A()},get items(){return p()},set items(e=[]){p(e),A()},get allowDeselect(){return m()},set allowDeselect(e=!0){m(e),A()},get inputValue(){return h()},set inputValue(e=``){h(e),A()},get children(){return g()},set children(e){g(e),A()}},y=pw(),b=F(y);GC(b,{children:(e,t)=>{var n=B();U(F(n),()=>g()??w),V(e,n)},$$slots:{default:!0}});var x=I(b,2),S=e=>{var t=B(),n=F(t),r=e=>{var t=B();Yi(F(t),16,()=>_.opts.value.current,e=>e,(e,t)=>{fw(e,{get value(){return t}})}),V(e,t)};W(n,e=>{_.opts.value.current.length&&e(r)}),V(e,t)},C=j(()=>Array.isArray(_.opts.value.current)),ee=e=>{fw(e,{get value(){return _.opts.value.current},set value(e){_.opts.value.current=e}})};return W(x,e=>{R(C)?e(S):e(ee,-1)}),V(e,y),k(v)}J(mw,{value:{},onValueChange:{},name:{},disabled:{},type:{},open:{},onOpenChange:{},onOpenChangeComplete:{},loop:{},scrollAlignment:{},required:{},items:{},allowDeselect:{},inputValue:{},children:{}},[],[],{mode:`open`});function hw(e,t){O(t,!0);let n=q(t,`id`,7),r=q(t,`children`,7),i=q(t,`virtualEl`,7),a=q(t,`ref`,7),o=q(t,`tooltip`,7,!1);BC.create({id:Q(()=>n()),virtualEl:Q(()=>i()),ref:a()},o());var s={get id(){return n()},set id(e){n(e),A()},get children(){return r()},set children(e){r(e),A()},get virtualEl(){return i()},set virtualEl(e){i(e),A()},get ref(){return a()},set ref(e){a(e),A()},get tooltip(){return o()},set tooltip(e=!1){o(e),A()}},c=B();return U(F(c),()=>r()??w),V(e,c),k(s)}J(hw,{id:{},children:{},virtualEl:{},ref:{},tooltip:{}},[],[],{mode:`open`});function gw(e,t){O(t,!0);let n=q(t,`content`,7),r=q(t,`side`,7,`bottom`),i=q(t,`sideOffset`,7,0),a=q(t,`align`,7,`center`),o=q(t,`alignOffset`,7,0),s=q(t,`id`,7),c=q(t,`arrowPadding`,7,0),l=q(t,`avoidCollisions`,7,!0),u=q(t,`collisionBoundary`,23,()=>[]),d=q(t,`collisionPadding`,7,0),f=q(t,`hideWhenDetached`,7,!1),p=q(t,`onPlaced`,7,()=>{}),m=q(t,`sticky`,7,`partial`),h=q(t,`updatePositionStrategy`,7,`optimized`),g=q(t,`strategy`,7,`fixed`),_=q(t,`dir`,7,`ltr`),v=q(t,`style`,23,()=>({})),y=q(t,`wrapperId`,23,Qb),b=q(t,`customAnchor`,7,null),x=q(t,`enabled`,7),S=q(t,`tooltip`,7,!1),C=zC.create({side:Q(()=>r()),sideOffset:Q(()=>i()),align:Q(()=>a()),alignOffset:Q(()=>o()),id:Q(()=>s()),arrowPadding:Q(()=>c()),avoidCollisions:Q(()=>l()),collisionBoundary:Q(()=>u()),collisionPadding:Q(()=>d()),hideWhenDetached:Q(()=>f()),onPlaced:Q(()=>p()),sticky:Q(()=>m()),updatePositionStrategy:Q(()=>h()),strategy:Q(()=>g()),dir:Q(()=>_()),style:Q(()=>v()),enabled:Q(()=>x()),wrapperId:Q(()=>y()),customAnchor:Q(()=>b())},S()),ee=j(()=>i_(C.wrapperProps,{style:{pointerEvents:`auto`}}));var te={get content(){return n()},set content(e){n(e),A()},get side(){return r()},set side(e=`bottom`){r(e),A()},get sideOffset(){return i()},set sideOffset(e=0){i(e),A()},get align(){return a()},set align(e=`center`){a(e),A()},get alignOffset(){return o()},set alignOffset(e=0){o(e),A()},get id(){return s()},set id(e){s(e),A()},get arrowPadding(){return c()},set arrowPadding(e=0){c(e),A()},get avoidCollisions(){return l()},set avoidCollisions(e=!0){l(e),A()},get collisionBoundary(){return u()},set collisionBoundary(e=[]){u(e),A()},get collisionPadding(){return d()},set collisionPadding(e=0){d(e),A()},get hideWhenDetached(){return f()},set hideWhenDetached(e=!1){f(e),A()},get onPlaced(){return p()},set onPlaced(e=()=>{}){p(e),A()},get sticky(){return m()},set sticky(e=`partial`){m(e),A()},get updatePositionStrategy(){return h()},set updatePositionStrategy(e=`optimized`){h(e),A()},get strategy(){return g()},set strategy(e=`fixed`){g(e),A()},get dir(){return _()},set dir(e=`ltr`){_(e),A()},get style(){return v()},set style(e={}){v(e),A()},get wrapperId(){return y()},set wrapperId(e=Qb()){y(e),A()},get customAnchor(){return b()},set customAnchor(e=null){b(e),A()},get enabled(){return x()},set enabled(e){x(e),A()},get tooltip(){return S()},set tooltip(e=!1){S(e),A()}},ne=B();return U(F(ne),()=>n()??w,()=>({props:C.props,wrapperProps:R(ee)})),V(e,ne),k(te)}J(gw,{content:{},side:{},sideOffset:{},align:{},alignOffset:{},id:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},hideWhenDetached:{},onPlaced:{},sticky:{},updatePositionStrategy:{},strategy:{},dir:{},style:{},wrapperId:{},customAnchor:{},enabled:{},tooltip:{}},[],[],{mode:`open`});function _w(e,t){O(t,!0);let n=q(t,`content`,7),r=q(t,`onPlaced`,7);Fi(()=>{r()?.()});var i={get content(){return n()},set content(e){n(e),A()},get onPlaced(){return r()},set onPlaced(e){r(e),A()}},a=B();return U(F(a),()=>n()??w,()=>({props:{},wrapperProps:{}})),V(e,a),k(i)}J(_w,{content:{},onPlaced:{}},[],[],{mode:`open`});var vw=z(`<input/>`);function yw(e,t){O(t,!0);let n=q(t,`id`,23,Qb),r=q(t,`ref`,15,null),i=q(t,`child`,7),a=q(t,`defaultValue`,7),o=q(t,`clearOnDeselect`,7,!1),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`defaultValue`,`clearOnDeselect`]),c=rw.create({id:Q(()=>n()),ref:Q(()=>r(),e=>r(e)),clearOnDeselect:Q(()=>o())});a()&&(c.root.opts.inputValue.current=a());let l=j(()=>i_(s,c.props,{value:c.root.opts.inputValue.current}));var u={get id(){return n()},set id(e=Qb()){n(e),A()},get ref(){return r()},set ref(e=null){r(e),A()},get child(){return i()},set child(e){i(e),A()},get defaultValue(){return a()},set defaultValue(e){a(e),A()},get clearOnDeselect(){return o()},set clearOnDeselect(e=!1){o(e),A()}},d=B();return G(F(d),()=>hw,(e,t)=>{t(e,{get id(){return n()},get ref(){return c.opts.ref},children:(e,t)=>{var n=B(),r=F(n),a=e=>{var t=B();U(F(t),i,()=>({props:R(l)})),V(e,t)},o=e=>{var t=vw();qa(t,()=>({...R(l)}),void 0,void 0,void 0,void 0,!0),V(e,t)};W(r,e=>{i()?e(a):e(o,-1)}),V(e,n)},$$slots:{default:!0}})}),V(e,d),k(u)}J(yw,{id:{},ref:{},child:{},defaultValue:{},clearOnDeselect:{}},[],[],{mode:`open`});var bw=z(`<button><!></button>`);function xw(e,t){O(t,!0);let n=q(t,`id`,23,Qb),r=q(t,`ref`,15,null),i=q(t,`child`,7),a=q(t,`children`,7),o=q(t,`type`,7,`button`),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`children`,`type`]),c=iw.create({id:Q(()=>n()),ref:Q(()=>r(),e=>r(e))}),l=j(()=>i_(s,c.props,{type:o()}));var u={get id(){return n()},set id(e=Qb()){n(e),A()},get ref(){return r()},set ref(e=null){r(e),A()},get child(){return i()},set child(e){i(e),A()},get children(){return a()},set children(e){a(e),A()},get type(){return o()},set type(e=`button`){o(e),A()}},d=B(),f=F(d),p=e=>{var t=B();U(F(t),i,()=>({props:R(l)})),V(e,t)},m=e=>{var t=bw();qa(t,()=>({...R(l)})),U(P(t),()=>a()??w),D(t),V(e,t)};return W(f,e=>{i()?e(p):e(m,-1)}),V(e,d),k(u)}J(xw,{id:{},ref:{},child:{},children:{},type:{}},[],[],{mode:`open`});function Sw(e,t){O(t,!0);let n=q(t,`content`,7),r=q(t,`isStatic`,7,!1),i=q(t,`onPlaced`,7),a=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`content`,`isStatic`,`onPlaced`]);var o={get content(){return n()},set content(e){n(e),A()},get isStatic(){return r()},set isStatic(e=!1){r(e),A()},get onPlaced(){return i()},set onPlaced(e){i(e),A()}},s=B(),c=F(s),l=e=>{_w(e,{get content(){return n()},get onPlaced(){return i()}})},u=e=>{gw(e,po({get content(){return n()},get onPlaced(){return i()}},()=>a))};return W(c,e=>{r()?e(l):e(u,-1)}),V(e,s),k(o)}J(Sw,{content:{},isStatic:{},onPlaced:{}},[],[],{mode:`open`});var Cw=z(`<!> <!>`,1);function ww(e,t){O(t,!0);let n=q(t,`popper`,7),r=q(t,`onEscapeKeydown`,7),i=q(t,`escapeKeydownBehavior`,7),a=q(t,`preventOverflowTextSelection`,7),o=q(t,`id`,7),s=q(t,`onPointerDown`,7),c=q(t,`onPointerUp`,7),l=q(t,`side`,7),u=q(t,`sideOffset`,7),d=q(t,`align`,7),f=q(t,`alignOffset`,7),p=q(t,`arrowPadding`,7),m=q(t,`avoidCollisions`,7),h=q(t,`collisionBoundary`,7),g=q(t,`collisionPadding`,7),_=q(t,`sticky`,7),v=q(t,`hideWhenDetached`,7),y=q(t,`updatePositionStrategy`,7),b=q(t,`strategy`,7),x=q(t,`dir`,7),S=q(t,`preventScroll`,7),C=q(t,`wrapperId`,7),ee=q(t,`style`,7),te=q(t,`onPlaced`,7),ne=q(t,`onInteractOutside`,7),re=q(t,`onCloseAutoFocus`,7),ie=q(t,`onOpenAutoFocus`,7),ae=q(t,`onFocusOutside`,7),oe=q(t,`interactOutsideBehavior`,7,`close`),se=q(t,`loop`,7),ce=q(t,`trapFocus`,7,!0),le=q(t,`isValidEvent`,7,()=>!1),ue=q(t,`customAnchor`,7,null),de=q(t,`isStatic`,7,!1),fe=q(t,`enabled`,7),pe=q(t,`ref`,7),me=q(t,`tooltip`,7,!1),he=q(t,`contentPointerEvents`,7,`auto`),ge=uo(t,`$$slots.$$events.$$legacy.$$host.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents`.split(`.`));return Sw(e,{get isStatic(){return de()},get id(){return o()},get side(){return l()},get sideOffset(){return u()},get align(){return d()},get alignOffset(){return f()},get arrowPadding(){return p()},get avoidCollisions(){return m()},get collisionBoundary(){return h()},get collisionPadding(){return g()},get sticky(){return _()},get hideWhenDetached(){return v()},get updatePositionStrategy(){return y()},get strategy(){return b()},get dir(){return x()},get wrapperId(){return C()},get style(){return ee()},get onPlaced(){return te()},get customAnchor(){return ue()},get enabled(){return fe()},get tooltip(){return me()},content:(e,l)=>{let u=()=>l?.().props,d=()=>l?.().wrapperProps;var f=Cw(),p=F(f),m=e=>{ux(e,{get preventScroll(){return S()}})},h=e=>{ux(e,{get preventScroll(){return S()}})};W(p,e=>{t.forceMount&&fe()?e(m):t.forceMount||e(h,1)}),Gb(I(p,2),{get onOpenAutoFocus(){return ie()},get onCloseAutoFocus(){return re()},get loop(){return se()},get enabled(){return fe()},get trapFocus(){return ce()},get forceMount(){return t.forceMount},get ref(){return pe()},focusScope:(e,t)=>{let l=()=>t?.().props;Hb(e,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return i()},get enabled(){return fe()},get ref(){return pe()},children:(e,t)=>{zb(e,{get id(){return o()},get onInteractOutside(){return ne()},get onFocusOutside(){return ae()},get interactOutsideBehavior(){return oe()},get isValidEvent(){return le()},get enabled(){return fe()},get ref(){return pe()},children:(e,t)=>{let r=()=>t?.().props;Zb(e,{get id(){return o()},get preventOverflowTextSelection(){return a()},get onPointerDown(){return s()},get onPointerUp(){return c()},get enabled(){return fe()},get ref(){return pe()},children:(e,t)=>{var i=B(),a=F(i);{let e=j(()=>({props:i_(ge,u(),r(),l(),{style:{pointerEvents:he()}}),wrapperProps:d()}));U(a,()=>n()??w,()=>R(e))}V(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),V(e,f)},$$slots:{content:!0}}),k({get popper(){return n()},set popper(e){n(e),A()},get onEscapeKeydown(){return r()},set onEscapeKeydown(e){r(e),A()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(e){i(e),A()},get preventOverflowTextSelection(){return a()},set preventOverflowTextSelection(e){a(e),A()},get id(){return o()},set id(e){o(e),A()},get onPointerDown(){return s()},set onPointerDown(e){s(e),A()},get onPointerUp(){return c()},set onPointerUp(e){c(e),A()},get side(){return l()},set side(e){l(e),A()},get sideOffset(){return u()},set sideOffset(e){u(e),A()},get align(){return d()},set align(e){d(e),A()},get alignOffset(){return f()},set alignOffset(e){f(e),A()},get arrowPadding(){return p()},set arrowPadding(e){p(e),A()},get avoidCollisions(){return m()},set avoidCollisions(e){m(e),A()},get collisionBoundary(){return h()},set collisionBoundary(e){h(e),A()},get collisionPadding(){return g()},set collisionPadding(e){g(e),A()},get sticky(){return _()},set sticky(e){_(e),A()},get hideWhenDetached(){return v()},set hideWhenDetached(e){v(e),A()},get updatePositionStrategy(){return y()},set updatePositionStrategy(e){y(e),A()},get strategy(){return b()},set strategy(e){b(e),A()},get dir(){return x()},set dir(e){x(e),A()},get preventScroll(){return S()},set preventScroll(e){S(e),A()},get wrapperId(){return C()},set wrapperId(e){C(e),A()},get style(){return ee()},set style(e){ee(e),A()},get onPlaced(){return te()},set onPlaced(e){te(e),A()},get onInteractOutside(){return ne()},set onInteractOutside(e){ne(e),A()},get onCloseAutoFocus(){return re()},set onCloseAutoFocus(e){re(e),A()},get onOpenAutoFocus(){return ie()},set onOpenAutoFocus(e){ie(e),A()},get onFocusOutside(){return ae()},set onFocusOutside(e){ae(e),A()},get interactOutsideBehavior(){return oe()},set interactOutsideBehavior(e=`close`){oe(e),A()},get loop(){return se()},set loop(e){se(e),A()},get trapFocus(){return ce()},set trapFocus(e=!0){ce(e),A()},get isValidEvent(){return le()},set isValidEvent(e=()=>!1){le(e),A()},get customAnchor(){return ue()},set customAnchor(e=null){ue(e),A()},get isStatic(){return de()},set isStatic(e=!1){de(e),A()},get enabled(){return fe()},set enabled(e){fe(e),A()},get ref(){return pe()},set ref(e){pe(e),A()},get tooltip(){return me()},set tooltip(e=!1){me(e),A()},get contentPointerEvents(){return he()},set contentPointerEvents(e=`auto`){he(e),A()}})}J(ww,{popper:{},onEscapeKeydown:{},escapeKeydownBehavior:{},preventOverflowTextSelection:{},id:{},onPointerDown:{},onPointerUp:{},side:{},sideOffset:{},align:{},alignOffset:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{},updatePositionStrategy:{},strategy:{},dir:{},preventScroll:{},wrapperId:{},style:{},onPlaced:{},onInteractOutside:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onFocusOutside:{},interactOutsideBehavior:{},loop:{},trapFocus:{},isValidEvent:{},customAnchor:{},isStatic:{},enabled:{},ref:{},tooltip:{},contentPointerEvents:{}},[],[],{mode:`open`});function Tw(e,t){O(t,!0);let n=q(t,`popper`,7),r=q(t,`open`,7),i=q(t,`onEscapeKeydown`,7),a=q(t,`escapeKeydownBehavior`,7),o=q(t,`preventOverflowTextSelection`,7),s=q(t,`id`,7),c=q(t,`onPointerDown`,7),l=q(t,`onPointerUp`,7),u=q(t,`side`,7),d=q(t,`sideOffset`,7),f=q(t,`align`,7),p=q(t,`alignOffset`,7),m=q(t,`arrowPadding`,7),h=q(t,`avoidCollisions`,7),g=q(t,`collisionBoundary`,7),_=q(t,`collisionPadding`,7),v=q(t,`sticky`,7),y=q(t,`hideWhenDetached`,7),b=q(t,`updatePositionStrategy`,7),x=q(t,`strategy`,7),S=q(t,`dir`,7),C=q(t,`preventScroll`,7),ee=q(t,`wrapperId`,7),te=q(t,`style`,7),ne=q(t,`onPlaced`,7),re=q(t,`onInteractOutside`,7),w=q(t,`onCloseAutoFocus`,7),ie=q(t,`onOpenAutoFocus`,7),ae=q(t,`onFocusOutside`,7),oe=q(t,`interactOutsideBehavior`,7,`close`),se=q(t,`loop`,7),ce=q(t,`trapFocus`,7,!0),le=q(t,`isValidEvent`,7,()=>!1),ue=q(t,`customAnchor`,7,null),de=q(t,`isStatic`,7,!1),fe=q(t,`ref`,7),pe=q(t,`shouldRender`,7),me=uo(t,`$$slots.$$events.$$legacy.$$host.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender`.split(`.`));var he={get popper(){return n()},set popper(e){n(e),A()},get open(){return r()},set open(e){r(e),A()},get onEscapeKeydown(){return i()},set onEscapeKeydown(e){i(e),A()},get escapeKeydownBehavior(){return a()},set escapeKeydownBehavior(e){a(e),A()},get preventOverflowTextSelection(){return o()},set preventOverflowTextSelection(e){o(e),A()},get id(){return s()},set id(e){s(e),A()},get onPointerDown(){return c()},set onPointerDown(e){c(e),A()},get onPointerUp(){return l()},set onPointerUp(e){l(e),A()},get side(){return u()},set side(e){u(e),A()},get sideOffset(){return d()},set sideOffset(e){d(e),A()},get align(){return f()},set align(e){f(e),A()},get alignOffset(){return p()},set alignOffset(e){p(e),A()},get arrowPadding(){return m()},set arrowPadding(e){m(e),A()},get avoidCollisions(){return h()},set avoidCollisions(e){h(e),A()},get collisionBoundary(){return g()},set collisionBoundary(e){g(e),A()},get collisionPadding(){return _()},set collisionPadding(e){_(e),A()},get sticky(){return v()},set sticky(e){v(e),A()},get hideWhenDetached(){return y()},set hideWhenDetached(e){y(e),A()},get updatePositionStrategy(){return b()},set updatePositionStrategy(e){b(e),A()},get strategy(){return x()},set strategy(e){x(e),A()},get dir(){return S()},set dir(e){S(e),A()},get preventScroll(){return C()},set preventScroll(e){C(e),A()},get wrapperId(){return ee()},set wrapperId(e){ee(e),A()},get style(){return te()},set style(e){te(e),A()},get onPlaced(){return ne()},set onPlaced(e){ne(e),A()},get onInteractOutside(){return re()},set onInteractOutside(e){re(e),A()},get onCloseAutoFocus(){return w()},set onCloseAutoFocus(e){w(e),A()},get onOpenAutoFocus(){return ie()},set onOpenAutoFocus(e){ie(e),A()},get onFocusOutside(){return ae()},set onFocusOutside(e){ae(e),A()},get interactOutsideBehavior(){return oe()},set interactOutsideBehavior(e=`close`){oe(e),A()},get loop(){return se()},set loop(e){se(e),A()},get trapFocus(){return ce()},set trapFocus(e=!0){ce(e),A()},get isValidEvent(){return le()},set isValidEvent(e=()=>!1){le(e),A()},get customAnchor(){return ue()},set customAnchor(e=null){ue(e),A()},get isStatic(){return de()},set isStatic(e=!1){de(e),A()},get ref(){return fe()},set ref(e){fe(e),A()},get shouldRender(){return pe()},set shouldRender(e){pe(e),A()}},ge=B(),_e=F(ge),ve=e=>{ww(e,po({get popper(){return n()},get onEscapeKeydown(){return i()},get escapeKeydownBehavior(){return a()},get preventOverflowTextSelection(){return o()},get id(){return s()},get onPointerDown(){return c()},get onPointerUp(){return l()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return p()},get arrowPadding(){return m()},get avoidCollisions(){return h()},get collisionBoundary(){return g()},get collisionPadding(){return _()},get sticky(){return v()},get hideWhenDetached(){return y()},get updatePositionStrategy(){return b()},get strategy(){return x()},get dir(){return S()},get preventScroll(){return C()},get wrapperId(){return ee()},get style(){return te()},get onPlaced(){return ne()},get customAnchor(){return ue()},get isStatic(){return de()},get enabled(){return r()},get onInteractOutside(){return re()},get onCloseAutoFocus(){return w()},get onOpenAutoFocus(){return ie()},get interactOutsideBehavior(){return oe()},get loop(){return se()},get trapFocus(){return ce()},get isValidEvent(){return le()},get onFocusOutside(){return ae()},forceMount:!1,get ref(){return fe()}},()=>me))};return W(_e,e=>{pe()&&e(ve)}),V(e,ge),k(he)}J(Tw,{popper:{},open:{},onEscapeKeydown:{},escapeKeydownBehavior:{},preventOverflowTextSelection:{},id:{},onPointerDown:{},onPointerUp:{},side:{},sideOffset:{},align:{},alignOffset:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{},updatePositionStrategy:{},strategy:{},dir:{},preventScroll:{},wrapperId:{},style:{},onPlaced:{},onInteractOutside:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onFocusOutside:{},interactOutsideBehavior:{},loop:{},trapFocus:{},isValidEvent:{},customAnchor:{},isStatic:{},ref:{},shouldRender:{}},[],[],{mode:`open`});function Ew(e,t){O(t,!0);let n=q(t,`popper`,7),r=q(t,`onEscapeKeydown`,7),i=q(t,`escapeKeydownBehavior`,7),a=q(t,`preventOverflowTextSelection`,7),o=q(t,`id`,7),s=q(t,`onPointerDown`,7),c=q(t,`onPointerUp`,7),l=q(t,`side`,7),u=q(t,`sideOffset`,7),d=q(t,`align`,7),f=q(t,`alignOffset`,7),p=q(t,`arrowPadding`,7),m=q(t,`avoidCollisions`,7),h=q(t,`collisionBoundary`,7),g=q(t,`collisionPadding`,7),_=q(t,`sticky`,7),v=q(t,`hideWhenDetached`,7),y=q(t,`updatePositionStrategy`,7),b=q(t,`strategy`,7),x=q(t,`dir`,7),S=q(t,`preventScroll`,7),C=q(t,`wrapperId`,7),ee=q(t,`style`,7),te=q(t,`onPlaced`,7),ne=q(t,`onInteractOutside`,7),re=q(t,`onCloseAutoFocus`,7),w=q(t,`onOpenAutoFocus`,7),ie=q(t,`onFocusOutside`,7),ae=q(t,`interactOutsideBehavior`,7,`close`),oe=q(t,`loop`,7),se=q(t,`trapFocus`,7,!0),ce=q(t,`isValidEvent`,7,()=>!1),le=q(t,`customAnchor`,7,null),ue=q(t,`isStatic`,7,!1),de=q(t,`enabled`,7),fe=uo(t,`$$slots.$$events.$$legacy.$$host.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled`.split(`.`));return ww(e,po({get popper(){return n()},get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return i()},get preventOverflowTextSelection(){return a()},get id(){return o()},get onPointerDown(){return s()},get onPointerUp(){return c()},get side(){return l()},get sideOffset(){return u()},get align(){return d()},get alignOffset(){return f()},get arrowPadding(){return p()},get avoidCollisions(){return m()},get collisionBoundary(){return h()},get collisionPadding(){return g()},get sticky(){return _()},get hideWhenDetached(){return v()},get updatePositionStrategy(){return y()},get strategy(){return b()},get dir(){return x()},get preventScroll(){return S()},get wrapperId(){return C()},get style(){return ee()},get onPlaced(){return te()},get customAnchor(){return le()},get isStatic(){return ue()},get enabled(){return de()},get onInteractOutside(){return ne()},get onCloseAutoFocus(){return re()},get onOpenAutoFocus(){return w()},get interactOutsideBehavior(){return ae()},get loop(){return oe()},get trapFocus(){return se()},get isValidEvent(){return ce()},get onFocusOutside(){return ie()}},()=>fe,{forceMount:!0})),k({get popper(){return n()},set popper(e){n(e),A()},get onEscapeKeydown(){return r()},set onEscapeKeydown(e){r(e),A()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(e){i(e),A()},get preventOverflowTextSelection(){return a()},set preventOverflowTextSelection(e){a(e),A()},get id(){return o()},set id(e){o(e),A()},get onPointerDown(){return s()},set onPointerDown(e){s(e),A()},get onPointerUp(){return c()},set onPointerUp(e){c(e),A()},get side(){return l()},set side(e){l(e),A()},get sideOffset(){return u()},set sideOffset(e){u(e),A()},get align(){return d()},set align(e){d(e),A()},get alignOffset(){return f()},set alignOffset(e){f(e),A()},get arrowPadding(){return p()},set arrowPadding(e){p(e),A()},get avoidCollisions(){return m()},set avoidCollisions(e){m(e),A()},get collisionBoundary(){return h()},set collisionBoundary(e){h(e),A()},get collisionPadding(){return g()},set collisionPadding(e){g(e),A()},get sticky(){return _()},set sticky(e){_(e),A()},get hideWhenDetached(){return v()},set hideWhenDetached(e){v(e),A()},get updatePositionStrategy(){return y()},set updatePositionStrategy(e){y(e),A()},get strategy(){return b()},set strategy(e){b(e),A()},get dir(){return x()},set dir(e){x(e),A()},get preventScroll(){return S()},set preventScroll(e){S(e),A()},get wrapperId(){return C()},set wrapperId(e){C(e),A()},get style(){return ee()},set style(e){ee(e),A()},get onPlaced(){return te()},set onPlaced(e){te(e),A()},get onInteractOutside(){return ne()},set onInteractOutside(e){ne(e),A()},get onCloseAutoFocus(){return re()},set onCloseAutoFocus(e){re(e),A()},get onOpenAutoFocus(){return w()},set onOpenAutoFocus(e){w(e),A()},get onFocusOutside(){return ie()},set onFocusOutside(e){ie(e),A()},get interactOutsideBehavior(){return ae()},set interactOutsideBehavior(e=`close`){ae(e),A()},get loop(){return oe()},set loop(e){oe(e),A()},get trapFocus(){return se()},set trapFocus(e=!0){se(e),A()},get isValidEvent(){return ce()},set isValidEvent(e=()=>!1){ce(e),A()},get customAnchor(){return le()},set customAnchor(e=null){le(e),A()},get isStatic(){return ue()},set isStatic(e=!1){ue(e),A()},get enabled(){return de()},set enabled(e){de(e),A()}})}J(Ew,{popper:{},onEscapeKeydown:{},escapeKeydownBehavior:{},preventOverflowTextSelection:{},id:{},onPointerDown:{},onPointerUp:{},side:{},sideOffset:{},align:{},alignOffset:{},arrowPadding:{},avoidCollisions:{},collisionBoundary:{},collisionPadding:{},sticky:{},hideWhenDetached:{},updatePositionStrategy:{},strategy:{},dir:{},preventScroll:{},wrapperId:{},style:{},onPlaced:{},onInteractOutside:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onFocusOutside:{},interactOutsideBehavior:{},loop:{},trapFocus:{},isValidEvent:{},customAnchor:{},isStatic:{},enabled:{}},[],[],{mode:`open`});var Dw=z(`<div><div><!></div></div>`),Ow=z(`<div><div><!></div></div>`);function kw(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`forceMount`,7,!1),o=q(t,`side`,7,`bottom`),s=q(t,`onInteractOutside`,7,$),c=q(t,`onEscapeKeydown`,7,$),l=q(t,`children`,7),u=q(t,`child`,7),d=q(t,`preventScroll`,7,!1),f=q(t,`style`,7),p=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`forceMount`,`side`,`onInteractOutside`,`onEscapeKeydown`,`children`,`child`,`preventScroll`,`style`]),m=aw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),onInteractOutside:Q(()=>s()),onEscapeKeydown:Q(()=>c())}),h=j(()=>i_(p,m.props));var g={get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get forceMount(){return a()},set forceMount(e=!1){a(e),A()},get side(){return o()},set side(e=`bottom`){o(e),A()},get onInteractOutside(){return s()},set onInteractOutside(e=$){s(e),A()},get onEscapeKeydown(){return c()},set onEscapeKeydown(e=$){c(e),A()},get children(){return l()},set children(e){l(e),A()},get child(){return u()},set child(e){u(e),A()},get preventScroll(){return d()},set preventScroll(e=!1){d(e),A()},get style(){return f()},set style(e){f(e),A()}},_=B(),v=F(_),y=e=>{Ew(e,po(()=>R(h),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return o()},get enabled(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return m.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,i=j(()=>i_(n(),{style:m.props.style},{style:f()}));var a=B(),o=F(a),s=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(i),wrapperProps:r(),...m.snippetProps}));U(n,u,()=>R(e))}V(e,t)},c=e=>{var t=Dw();qa(t,()=>({...r()}));var n=P(t);qa(n,()=>({...R(i)})),U(P(n),()=>l()??w),D(n),D(t),V(e,t)};W(o,e=>{u()?e(s):e(c,-1)}),V(e,a)},$$slots:{popper:!0}}))},b=e=>{Tw(e,po(()=>R(h),()=>m.popperProps,{get ref(){return m.opts.ref},get side(){return o()},get open(){return m.root.opts.open.current},get id(){return r()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return m.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,i=j(()=>i_(n(),{style:m.props.style},{style:f()}));var a=B(),o=F(a),s=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(i),wrapperProps:r(),...m.snippetProps}));U(n,u,()=>R(e))}V(e,t)},c=e=>{var t=Ow();qa(t,()=>({...r()}));var n=P(t);qa(n,()=>({...R(i)})),U(P(n),()=>l()??w),D(n),D(t),V(e,t)};W(o,e=>{u()?e(s):e(c,-1)}),V(e,a)},$$slots:{popper:!0}}))};return W(v,e=>{a()?e(y):a()||e(b,1)}),V(e,_),k(g)}J(kw,{id:{},ref:{},forceMount:{},side:{},onInteractOutside:{},onEscapeKeydown:{},children:{},child:{},preventScroll:{},style:{}},[],[],{mode:`open`});function Aw(e,t){O(t,!0);let n=q(t,`mounted`,15,!1),r=q(t,`onMountedChange`,7,$);return E_(()=>(n(!0),r()(!0),()=>{n(!1),r()(!1)})),k({get mounted(){return n()},set mounted(e=!1){n(e),A()},get onMountedChange(){return r()},set onMountedChange(e=$){r(e),A()}})}J(Aw,{mounted:{},onMountedChange:{}},[],[],{mode:`open`});var jw=z(`<div><!></div>`),Mw=z(`<!> <!>`,1);function Nw(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`value`,7),o=q(t,`label`,23,a),s=q(t,`disabled`,7,!1),c=q(t,`children`,7),l=q(t,`child`,7),u=q(t,`onHighlight`,7,$),d=q(t,`onUnhighlight`,7,$),f=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`value`,`label`,`disabled`,`children`,`child`,`onHighlight`,`onUnhighlight`]),p=ow.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),value:Q(()=>a()),disabled:Q(()=>s()),label:Q(()=>o()),onHighlight:Q(()=>u()),onUnhighlight:Q(()=>d())}),m=j(()=>i_(f,p.props));var h={get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get value(){return a()},set value(e){a(e),A()},get label(){return o()},set label(e=a){o(e),A()},get disabled(){return s()},set disabled(e=!1){s(e),A()},get children(){return c()},set children(e){c(e),A()},get child(){return l()},set child(e){l(e),A()},get onHighlight(){return u()},set onHighlight(e=$){u(e),A()},get onUnhighlight(){return d()},set onUnhighlight(e=$){d(e),A()}},g=Mw(),_=F(g),v=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(m),...p.snippetProps}));U(n,l,()=>R(e))}V(e,t)},y=e=>{var t=jw();qa(t,()=>({...R(m)})),U(P(t),()=>c()??w,()=>p.snippetProps),D(t),V(e,t)};return W(_,e=>{l()?e(v):e(y,-1)}),Aw(I(_,2),{get mounted(){return p.mounted},set mounted(e){p.mounted=e}}),V(e,g),k(h)}J(Nw,{id:{},ref:{},value:{},label:{},disabled:{},children:{},child:{},onHighlight:{},onUnhighlight:{}},[],[],{mode:`open`});var Pw=z(`<div><!></div>`),Fw={hash:`svelte-5vjl6o`,code:`
|
|
536
|
+
/* Hide scrollbars cross browser and enable momentum scroll for touch devices */[data-select-viewport] {scrollbar-width:none !important;-ms-overflow-style:none !important;-webkit-overflow-scrolling:touch !important;}[data-combobox-viewport] {scrollbar-width:none !important;-ms-overflow-style:none !important;-webkit-overflow-scrolling:touch !important;}[data-combobox-viewport]::-webkit-scrollbar {display:none !important;}[data-select-viewport]::-webkit-scrollbar {display:none !important;}`};function Iw(e,t){let n=hi();O(t,!0),ha(e,Fw);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`children`,7),o=q(t,`child`,7),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`children`,`child`]),c=cw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e))}),l=j(()=>i_(s,c.props));var u={get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get children(){return a()},set children(e){a(e),A()},get child(){return o()},set child(e){o(e),A()}},d=B(),f=F(d),p=e=>{var t=B();U(F(t),o,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Pw();qa(t,()=>({...R(l)})),U(P(t),()=>a()??w),D(t),V(e,t)};return W(f,e=>{o()?e(p):e(m,-1)}),V(e,d),k(u)}J(Iw,{id:{},ref:{},children:{},child:{}},[],[],{mode:`open`});var Lw=z(`<div><!></div>`),Rw=z(`<!> <!>`,1);function zw(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`delay`,7,()=>50),o=q(t,`child`,7),s=q(t,`children`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`delay`,`child`,`children`]),l=uw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),delay:Q(()=>a())}),u=j(()=>i_(c,l.props));var d={get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get delay(){return a()},set delay(e=()=>50){a(e),A()},get child(){return o()},set child(e){o(e),A()},get children(){return s()},set children(e){s(e),A()}},f=B(),p=F(f),m=e=>{var t=Rw(),n=F(t);Aw(n,{get mounted(){return l.scrollButtonState.mounted},set mounted(e){l.scrollButtonState.mounted=e}});var r=I(n,2),i=e=>{var t=B();U(F(t),o,()=>({props:c})),V(e,t)},a=e=>{var t=Lw();qa(t,()=>({...R(u)})),U(P(t),()=>s()??w),D(t),V(e,t)};W(r,e=>{o()?e(i):e(a,-1)}),V(e,t)};return W(p,e=>{l.canScrollDown&&e(m)}),V(e,f),k(d)}J(zw,{id:{},ref:{},delay:{},child:{},children:{}},[],[],{mode:`open`});var Bw=z(`<div><!></div>`),Vw=z(`<!> <!>`,1);function Hw(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`delay`,7,()=>50),o=q(t,`child`,7),s=q(t,`children`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`delay`,`child`,`children`]),l=dw.create({id:Q(()=>r()),ref:Q(()=>i(),e=>i(e)),delay:Q(()=>a())}),u=j(()=>i_(c,l.props));var d={get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get delay(){return a()},set delay(e=()=>50){a(e),A()},get child(){return o()},set child(e){o(e),A()},get children(){return s()},set children(e){s(e),A()}},f=B(),p=F(f),m=e=>{var t=Vw(),n=F(t);Aw(n,{get mounted(){return l.scrollButtonState.mounted},set mounted(e){l.scrollButtonState.mounted=e}});var r=I(n,2),i=e=>{var t=B();U(F(t),o,()=>({props:c})),V(e,t)},a=e=>{var t=Bw();qa(t,()=>({...R(u)})),U(P(t),()=>s()??w),D(t),V(e,t)};W(r,e=>{o()?e(i):e(a,-1)}),V(e,t)};return W(p,e=>{l.canScrollUp&&e(m)}),V(e,f),k(d)}J(Hw,{id:{},ref:{},delay:{},child:{},children:{}},[],[],{mode:`open`});var Uw=z(`<div><!></div>`);function Ww(e,t){let n=hi();O(t,!0);let r=q(t,`child`,7),i=q(t,`children`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>Ov(n)),s=q(t,`disabled`,7,!1),c=q(t,`onSelect`,7,$),l=q(t,`closeOnSelect`,7,!0),u=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`children`,`ref`,`id`,`disabled`,`onSelect`,`closeOnSelect`]),d=Tb.create({id:Q(()=>o()),disabled:Q(()=>s()),onSelect:Q(()=>c()),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>l())}),f=j(()=>i_(u,d.props));var p={get child(){return r()},set child(e){r(e),A()},get children(){return i()},set children(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get id(){return o()},set id(e=Ov(n)){o(e),A()},get disabled(){return s()},set disabled(e=!1){s(e),A()},get onSelect(){return c()},set onSelect(e=$){c(e),A()},get closeOnSelect(){return l()},set closeOnSelect(e=!0){l(e),A()}},m=B(),h=F(m),g=e=>{var t=B();U(F(t),r,()=>({props:R(f)})),V(e,t)},_=e=>{var t=Uw();qa(t,()=>({...R(f)})),U(P(t),()=>i()??w),D(t),V(e,t)};return W(h,e=>{r()?e(g):e(_,-1)}),V(e,m),k(p)}J(Ww,{child:{},children:{},ref:{},id:{},disabled:{},onSelect:{},closeOnSelect:{}},[],[],{mode:`open`});var Gw=z(`<div><!></div>`);function Kw(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>Ov(n)),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`id`]),c=Db.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=j(()=>i_(s,c.props));var u={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get id(){return o()},set id(e=Ov(n)){o(e),A()}},d=B(),f=F(d),p=e=>{var t=B();U(F(t),i,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Gw();qa(t,()=>({...R(l)})),U(P(t),()=>r()??w),D(t),V(e,t)};return W(f,e=>{i()?e(p):e(m,-1)}),V(e,d),k(u)}J(Kw,{children:{},child:{},ref:{},id:{}},[],[],{mode:`open`});var qw=z(`<div><!></div>`);function Jw(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>Ov(n)),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`id`]),c=Ob.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e))}),l=j(()=>i_(s,c.props));var u={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get id(){return o()},set id(e=Ov(n)){o(e),A()}},d=B(),f=F(d),p=e=>{var t=B();U(F(t),i,()=>({props:R(l)})),V(e,t)},m=e=>{var t=qw();qa(t,()=>({...R(l)})),U(P(t),()=>r()??w),D(t),V(e,t)};return W(f,e=>{i()?e(p):e(m,-1)}),V(e,d),k(u)}J(Jw,{children:{},child:{},ref:{},id:{}},[],[],{mode:`open`});var Yw=z(`<div><!></div>`);function Xw(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`ref`,15,null),o=q(t,`value`,7),s=q(t,`onSelect`,7,$),c=q(t,`id`,23,()=>Ov(n)),l=q(t,`disabled`,7,!1),u=q(t,`closeOnSelect`,7,!0),d=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`ref`,`value`,`onSelect`,`id`,`disabled`,`closeOnSelect`]),f=jb.create({value:Q(()=>o()),id:Q(()=>c()),disabled:Q(()=>l()),onSelect:Q(()=>p),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>u())});function p(e){s()(e),!e.defaultPrevented&&f.selectValue()}let m=j(()=>i_(d,f.props));var h={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get value(){return o()},set value(e){o(e),A()},get onSelect(){return s()},set onSelect(e=$){s(e),A()},get id(){return c()},set id(e=Ov(n)){c(e),A()},get disabled(){return l()},set disabled(e=!1){l(e),A()},get closeOnSelect(){return u()},set closeOnSelect(e=!0){u(e),A()}},g=B(),_=F(g),v=e=>{var t=B();U(F(t),i,()=>({props:R(m),checked:f.isChecked})),V(e,t)},y=e=>{var t=Yw();qa(t,()=>({...R(m)})),U(P(t),()=>r()??w,()=>({checked:f.isChecked})),D(t),V(e,t)};return W(_,e=>{i()?e(v):e(y,-1)}),V(e,g),k(h)}J(Xw,{children:{},child:{},ref:{},value:{},onSelect:{},id:{},disabled:{},closeOnSelect:{}},[],[],{mode:`open`});var Zw=z(`<div><!></div>`);function Qw(e,t){let n=hi();O(t,!0);let r=q(t,`ref`,15,null),i=q(t,`id`,23,()=>Ov(n)),a=q(t,`child`,7),o=q(t,`children`,7),s=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`ref`,`id`,`child`,`children`]),c=kb.create({id:Q(()=>i()),ref:Q(()=>r(),e=>r(e))}),l=j(()=>i_(s,c.props));var u={get ref(){return r()},set ref(e=null){r(e),A()},get id(){return i()},set id(e=Ov(n)){i(e),A()},get child(){return a()},set child(e){a(e),A()},get children(){return o()},set children(e){o(e),A()}},d=B(),f=F(d),p=e=>{var t=B();U(F(t),a,()=>({props:R(l)})),V(e,t)},m=e=>{var t=Zw();qa(t,()=>({...R(l)})),U(P(t),()=>o()??w),D(t),V(e,t)};return W(f,e=>{a()?e(p):e(m,-1)}),V(e,d),k(u)}J(Qw,{ref:{},id:{},child:{},children:{}},[],[],{mode:`open`});var $w=z(`<div><!></div>`);function eT(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=q(t,`value`,15,``),c=q(t,`onValueChange`,7,$),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`,`value`,`onValueChange`]),u=Ab.create({value:Q(()=>s(),e=>{s(e),c()(e)}),ref:Q(()=>o(),e=>o(e)),id:Q(()=>r())}),d=j(()=>i_(l,u.props));var f={get id(){return r()},set id(e=Ov(n)){r(e),A()},get children(){return i()},set children(e){i(e),A()},get child(){return a()},set child(e){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get value(){return s()},set value(e=``){s(e),A()},get onValueChange(){return c()},set onValueChange(e=$){c(e),A()}},p=B(),m=F(p),h=e=>{var t=B();U(F(t),a,()=>({props:R(d)})),V(e,t)},g=e=>{var t=$w();qa(t,()=>({...R(d)})),U(P(t),()=>i()??w),D(t),V(e,t)};return W(m,e=>{a()?e(h):e(g,-1)}),V(e,p),k(f)}J(eT,{id:{},children:{},child:{},ref:{},value:{},onValueChange:{}},[],[],{mode:`open`});var tT=z(`<div><!></div>`);function nT(e,t){let n=hi();O(t,!0);let r=q(t,`child`,7),i=q(t,`children`,7),a=q(t,`ref`,15,null),o=q(t,`checked`,15,!1),s=q(t,`id`,23,()=>Ov(n)),c=q(t,`onCheckedChange`,7,$),l=q(t,`disabled`,7,!1),u=q(t,`onSelect`,7,$),d=q(t,`closeOnSelect`,7,!0),f=q(t,`indeterminate`,15,!1),p=q(t,`onIndeterminateChange`,7,$),m=q(t,`value`,7,``),h=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`children`,`ref`,`checked`,`id`,`onCheckedChange`,`disabled`,`onSelect`,`closeOnSelect`,`indeterminate`,`onIndeterminateChange`,`value`]),g=vb.getOr(null);g&&m()&&(g.opts.value.current.includes(m())?o(!0):o(!1)),p_.pre(()=>m(),()=>{g&&m()&&(g.opts.value.current.includes(m())?o(!0):o(!1))});let _=Eb.create({checked:Q(()=>o(),e=>{e!==o()&&(o(e),c()(e))}),id:Q(()=>s()),disabled:Q(()=>l()),onSelect:Q(()=>v),ref:Q(()=>a(),e=>a(e)),closeOnSelect:Q(()=>d()),indeterminate:Q(()=>f(),e=>{e!==f()&&(f(e),p()(e))}),value:Q(()=>m())},g);function v(e){u()(e),!e.defaultPrevented&&_.toggleChecked()}let y=j(()=>i_(h,_.props));var b={get child(){return r()},set child(e){r(e),A()},get children(){return i()},set children(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get checked(){return o()},set checked(e=!1){o(e),A()},get id(){return s()},set id(e=Ov(n)){s(e),A()},get onCheckedChange(){return c()},set onCheckedChange(e=$){c(e),A()},get disabled(){return l()},set disabled(e=!1){l(e),A()},get onSelect(){return u()},set onSelect(e=$){u(e),A()},get closeOnSelect(){return d()},set closeOnSelect(e=!0){d(e),A()},get indeterminate(){return f()},set indeterminate(e=!1){f(e),A()},get onIndeterminateChange(){return p()},set onIndeterminateChange(e=$){p(e),A()},get value(){return m()},set value(e=``){m(e),A()}},x=B(),S=F(x),C=e=>{var t=B();U(F(t),r,()=>({checked:o(),indeterminate:f(),props:R(y)})),V(e,t)},ee=e=>{var t=tT();qa(t,()=>({...R(y)})),U(P(t),()=>i()??w,()=>({checked:o(),indeterminate:f()})),D(t),V(e,t)};return W(S,e=>{r()?e(C):e(ee,-1)}),V(e,x),k(b)}J(nT,{child:{},children:{},ref:{},checked:{},id:{},onCheckedChange:{},disabled:{},onSelect:{},closeOnSelect:{},indeterminate:{},onIndeterminateChange:{},value:{}},[],[],{mode:`open`});var rT=z(`<div><!></div>`);function iT(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=q(t,`value`,31,()=>En([])),c=q(t,`onValueChange`,7,$),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`,`value`,`onValueChange`]),u=Nb.create({value:Q(()=>ot(s()),e=>{s(ot(e)),c()(e)}),onValueChange:Q(()=>c()),ref:Q(()=>o(),e=>o(e)),id:Q(()=>r())}),d=j(()=>i_(l,u.props));var f={get id(){return r()},set id(e=Ov(n)){r(e),A()},get children(){return i()},set children(e){i(e),A()},get child(){return a()},set child(e){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get value(){return s()},set value(e=[]){s(e),A()},get onValueChange(){return c()},set onValueChange(e=$){c(e),A()}},p=B(),m=F(p),h=e=>{var t=B();U(F(t),a,()=>({props:R(d)})),V(e,t)},g=e=>{var t=rT();qa(t,()=>({...R(d)})),U(P(t),()=>i()??w),D(t),V(e,t)};return W(m,e=>{a()?e(h):e(g,-1)}),V(e,p),k(f)}J(iT,{id:{},children:{},child:{},ref:{},value:{},onValueChange:{}},[],[],{mode:`open`});function aT(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]??[0,0],[c,l]=t[o]??[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function oT(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function sT(e,t){let n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,a=t.top+t.height/2,o=i-n,s=a-r;return Math.abs(o)>Math.abs(s)?o>0?`right`:`left`:s>0?`bottom`:`top`}var cT=class{#e;#t;#n;#r=null;#i=null;#a=[];#o=null;#s=null;#c=null;#l(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#u(){this.#l(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#r||!this.#i)&&(this.#m(),this.#e.onPointerExit())})}#d(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#f(){this.#n!==null&&(this.#d(),this.#c=window.setTimeout(()=>{this.#c=null,!(!this.#r||!this.#i)&&(this.#m(),this.#e.onPointerExit())},this.#n))}constructor(e){this.#e=e,this.#t=e.buffer??1;let t=e.transitIntentTimeout;this.#n=typeof t==`number`&&t>0?t:null,p_([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>{if(!e||!t||!n){this.#o=null,this.#m();return}return this.#o&&this.#o!==e&&this.#m(),this.#o=e,[ni(R_(e),`pointermove`,n=>{this.#p([n.clientX,n.clientY],e,t)}),ni(e,`pointerleave`,e=>{let n=e.relatedTarget;if(bv(n)&&t.contains(n))return;let r=this.#e.ignoredTargets?.()??[];bv(n)&&r.some(e=>e===n||e.contains(n))||(this.#a=bv(n)&&r.length>0?r.filter(e=>n.contains(e)):[],this.#r=[e.clientX,e.clientY],this.#i=`content`,this.#u())}),ni(e,`pointerenter`,()=>{this.#m()}),ni(t,`pointerenter`,()=>{this.#m()}),ni(t,`pointerleave`,t=>{let n=t.relatedTarget;bv(n)&&e.contains(n)||(this.#r=[t.clientX,t.clientY],this.#i=`trigger`,this.#u())})].reduce((e,t)=>()=>{e(),t()},()=>{})})}#p(e,t,n){if(!this.#r||!this.#i)return;this.#l(),this.#f();let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.#i===`content`&&oT(e,i)){this.#m();return}if(this.#i===`trigger`&&oT(e,r)){this.#m();return}if(this.#i===`content`&&this.#a.length>0)for(let t of this.#a){let n=t.getBoundingClientRect();if(oT(e,n))return;let i=sT(r,n),a=this.#h(r,n,i);if(a&&aT(e,a))return}let a=sT(r,i),o=this.#h(r,i,a);if(o&&aT(e,o))return;let s=this.#i===`content`?i:r;aT(e,this.#g(this.#r,s,a,this.#i))||(this.#m(),this.#e.onPointerExit())}#m(){this.#r=null,this.#i=null,this.#a=[],this.#l(),this.#d()}#h(e,t,n){let r=this.#t;switch(n){case`top`:return[[Math.min(e.left,t.left)-r,e.top],[Math.min(e.left,t.left)-r,t.bottom],[Math.max(e.right,t.right)+r,t.bottom],[Math.max(e.right,t.right)+r,e.top]];case`bottom`:return[[Math.min(e.left,t.left)-r,e.bottom],[Math.min(e.left,t.left)-r,t.top],[Math.max(e.right,t.right)+r,t.top],[Math.max(e.right,t.right)+r,e.bottom]];case`left`:return[[e.left,Math.min(e.top,t.top)-r],[t.right,Math.min(e.top,t.top)-r],[t.right,Math.max(e.bottom,t.bottom)+r],[e.left,Math.max(e.bottom,t.bottom)+r]];case`right`:return[[e.right,Math.min(e.top,t.top)-r],[t.left,Math.min(e.top,t.top)-r],[t.left,Math.max(e.bottom,t.bottom)+r],[e.right,Math.max(e.bottom,t.bottom)+r]]}}#g(e,t,n,r){let i=this.#t*4,[a,o]=e;switch(r===`trigger`?this.#_(n):n){case`top`:return[[a-i,o+i],[a+i,o+i],[t.right+i,t.bottom],[t.right+i,t.top],[t.left-i,t.top],[t.left-i,t.bottom]];case`bottom`:return[[a-i,o-i],[a+i,o-i],[t.right+i,t.top],[t.right+i,t.bottom],[t.left-i,t.bottom],[t.left-i,t.top]];case`left`:return[[a+i,o-i],[a+i,o+i],[t.right,t.bottom+i],[t.left,t.bottom+i],[t.left,t.top-i],[t.right,t.top-i]];case`right`:return[[a-i,o-i],[a-i,o+i],[t.left,t.bottom+i],[t.right,t.bottom+i],[t.right,t.top-i],[t.left,t.top-i]]}}#_(e){switch(e){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`}}},lT=X_({component:`popover`,parts:[`root`,`trigger`,`content`,`close`,`overlay`]}),uT=new l_(`Popover.Root`),dT=class e{static create(t){return uT.set(new e(t))}opts;#e=M(null);get contentNode(){return R(this.#e)}set contentNode(e){N(this.#e,e,!0)}contentPresence;#t=M(null);get triggerNode(){return R(this.#t)}set triggerNode(e){N(this.#t,e,!0)}#n=M(null);get overlayNode(){return R(this.#n)}set overlayNode(e){N(this.#n,e,!0)}overlayPresence;#r=M(!1);get openedViaHover(){return R(this.#r)}set openedViaHover(e){N(this.#r,e,!0)}#i=M(!1);get hasInteractedWithContent(){return R(this.#i)}set hasInteractedWithContent(e){N(this.#i,e,!0)}#a=M(!1);get hoverCooldown(){return R(this.#a)}set hoverCooldown(e){N(this.#a,e,!0)}#o=M(0);get closeDelay(){return R(this.#o)}set closeDelay(e){N(this.#o,e,!0)}#s=null;#c=null;constructor(e){this.opts=e,this.contentPresence=new Dv({ref:Q(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Dv({ref:Q(()=>this.overlayNode),open:this.opts.open}),p_(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(e){this.#c=e}#l(){this.#s!==null&&this.#c&&(this.#c.clearTimeout(this.#s),this.#s=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#c&&(this.#s=this.#c.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#s=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}},fT=class e{static create(t){return new e(t,uT.get())}opts;root;attachment;domContext;#e=null;#t=null;#n=M(!1);constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref,e=>this.root.triggerNode=e),this.domContext=new V_(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),p_(()=>this.opts.closeDelay.current,e=>{this.root.closeDelay=e})}#r(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#a(){this.#r(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Sv(e)||(N(this.#n,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;let t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},t)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Sv(e)||(N(this.#n,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#a(),R(this.#n)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}R(this.#n)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),this.#a(),this.root.toggleOpen())}#o(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#s=j(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":U_(this.root.opts.open.current),"data-state":q_(this.root.opts.open.current),"aria-controls":this.#o(),[lT.trigger]:``,disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return R(this.#s)}set props(e){N(this.#s,e)}},pT=class e{static create(t){return new e(t,uT.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=H_(this.opts.ref,e=>this.root.contentNode=e),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new cT({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){let t=e.target;bv(t)&&By(t)&&this.root.markInteraction()}onpointerenter(e){Sv(e)||this.root.cancelDelayedClose()}onpointerleave(e){Sv(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!bv(e.target))return;let t=e.target.closest(lT.selector(`trigger`));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(bv(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current==`string`){let t=document.querySelector(this.opts.customAnchor.current);if(t&&t.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=j(()=>({open:this.root.opts.open.current}));get snippetProps(){return R(this.#e)}set snippetProps(e){N(this.#e,e)}#t=j(()=>({id:this.opts.id.current,tabindex:-1,"data-state":q_(this.root.opts.open.current),[lT.content]:``,style:{pointerEvents:`auto`,contain:`layout style`},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return R(this.#t)}set props(e){N(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}},mT=z(`<div><div><!></div></div>`),hT=z(`<div><div><!></div></div>`);function gT(e,t){let n=hi();O(t,!0);let r=q(t,`child`,7),i=q(t,`children`,7),a=q(t,`ref`,15,null),o=q(t,`id`,23,()=>Ov(n)),s=q(t,`forceMount`,7,!1),c=q(t,`onOpenAutoFocus`,7,$),l=q(t,`onCloseAutoFocus`,7,$),u=q(t,`onEscapeKeydown`,7,$),d=q(t,`onInteractOutside`,7,$),f=q(t,`trapFocus`,7,!0),p=q(t,`preventScroll`,7,!1),m=q(t,`customAnchor`,7,null),h=q(t,`style`,7),g=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`child`,`children`,`ref`,`id`,`forceMount`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`customAnchor`,`style`]),_=pT.create({id:Q(()=>o()),ref:Q(()=>a(),e=>a(e)),onInteractOutside:Q(()=>d()),onEscapeKeydown:Q(()=>u()),customAnchor:Q(()=>m())}),v=j(()=>i_(g,_.props)),y=j(()=>f()&&_.shouldTrapFocus);function b(e){_.shouldTrapFocus||e.preventDefault(),c()(e)}var x={get child(){return r()},set child(e){r(e),A()},get children(){return i()},set children(e){i(e),A()},get ref(){return a()},set ref(e=null){a(e),A()},get id(){return o()},set id(e=Ov(n)){o(e),A()},get forceMount(){return s()},set forceMount(e=!1){s(e),A()},get onOpenAutoFocus(){return c()},set onOpenAutoFocus(e=$){c(e),A()},get onCloseAutoFocus(){return l()},set onCloseAutoFocus(e=$){l(e),A()},get onEscapeKeydown(){return u()},set onEscapeKeydown(e=$){u(e),A()},get onInteractOutside(){return d()},set onInteractOutside(e=$){d(e),A()},get trapFocus(){return f()},set trapFocus(e=!0){f(e),A()},get preventScroll(){return p()},set preventScroll(e=!1){p(e),A()},get customAnchor(){return m()},set customAnchor(e=null){m(e),A()},get style(){return h()},set style(e){h(e),A()}},S=B(),C=F(S),ee=e=>{Ew(e,po(()=>R(v),()=>_.popperProps,{get ref(){return _.opts.ref},get enabled(){return _.root.opts.open.current},get id(){return o()},get trapFocus(){return R(y)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return m()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return _.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,a=()=>t?.().wrapperProps,o=j(()=>i_(n(),{style:jC(`popover`)},{style:h()}));var s=B(),c=F(s),l=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(o),wrapperProps:a(),..._.snippetProps}));U(n,r,()=>R(e))}V(e,t)},u=e=>{var t=mT();qa(t,()=>({...a()}));var n=P(t);qa(n,()=>({...R(o)})),U(P(n),()=>i()??w),D(n),D(t),V(e,t)};W(c,e=>{r()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))},te=e=>{Tw(e,po(()=>R(v),()=>_.popperProps,{get ref(){return _.opts.ref},get open(){return _.root.opts.open.current},get id(){return o()},get trapFocus(){return R(y)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return m()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return _.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,a=()=>t?.().wrapperProps,o=j(()=>i_(n(),{style:jC(`popover`)},{style:h()}));var s=B(),c=F(s),l=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(o),wrapperProps:a(),..._.snippetProps}));U(n,r,()=>R(e))}V(e,t)},u=e=>{var t=hT();qa(t,()=>({...a()}));var n=P(t);qa(n,()=>({...R(o)})),U(P(n),()=>i()??w),D(n),D(t),V(e,t)};W(c,e=>{r()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))};return W(C,e=>{s()?e(ee):s()||e(te,1)}),V(e,S),k(x)}J(gT,{child:{},children:{},ref:{},id:{},forceMount:{},onOpenAutoFocus:{},onCloseAutoFocus:{},onEscapeKeydown:{},onInteractOutside:{},trapFocus:{},preventScroll:{},customAnchor:{},style:{}},[],[],{mode:`open`});var _T=z(`<button><!></button>`);function vT(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>Ov(n)),o=q(t,`ref`,15,null),s=q(t,`type`,7,`button`),c=q(t,`disabled`,7,!1),l=q(t,`openOnHover`,7,!1),u=q(t,`openDelay`,7,700),d=q(t,`closeDelay`,7,300),f=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`type`,`disabled`,`openOnHover`,`openDelay`,`closeDelay`]),p=fT.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),disabled:Q(()=>!!c()),openOnHover:Q(()=>l()),openDelay:Q(()=>u()),closeDelay:Q(()=>d())}),m=j(()=>i_(f,p.props,{type:s()}));return hw(e,{get id(){return a()},get ref(){return p.opts.ref},children:(e,t)=>{var n=B(),a=F(n),o=e=>{var t=B();U(F(t),i,()=>({props:R(m)})),V(e,t)},s=e=>{var t=_T();qa(t,()=>({...R(m)})),U(P(t),()=>r()??w),D(t),V(e,t)};W(a,e=>{i()?e(o):e(s,-1)}),V(e,n)},$$slots:{default:!0}}),k({get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get id(){return a()},set id(e=Ov(n)){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get type(){return s()},set type(e=`button`){s(e),A()},get disabled(){return c()},set disabled(e=!1){c(e),A()},get openOnHover(){return l()},set openOnHover(e=!1){l(e),A()},get openDelay(){return u()},set openDelay(e=700){u(e),A()},get closeDelay(){return d()},set closeDelay(e=300){d(e),A()}})}J(vT,{children:{},child:{},id:{},ref:{},type:{},disabled:{},openOnHover:{},openDelay:{},closeDelay:{}},[],[],{mode:`open`});function yT(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=q(t,`onOpenChange`,7,$),i=q(t,`onOpenChangeComplete`,7,$),a=q(t,`children`,7);jv.create({variant:Q(()=>`dialog`),open:Q(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:Q(()=>i())});var o={get open(){return n()},set open(e=!1){n(e),A()},get onOpenChange(){return r()},set onOpenChange(e=$){r(e),A()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(e=$){i(e),A()},get children(){return a()},set children(e){a(e),A()}},s=B();return U(F(s),()=>a()??w),V(e,s),k(o)}J(yT,{open:{},onOpenChange:{},onOpenChangeComplete:{},children:{}},[],[],{mode:`open`});var bT=z(`<button><!></button>`);function xT(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>Ov(n)),o=q(t,`ref`,15,null),s=q(t,`disabled`,7,!1),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`disabled`]),l=Mv.create({variant:Q(()=>`close`),id:Q(()=>a()),ref:Q(()=>o(),e=>o(e)),disabled:Q(()=>!!s())}),u=j(()=>i_(c,l.props));var d={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get id(){return a()},set id(e=Ov(n)){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get disabled(){return s()},set disabled(e=!1){s(e),A()}},f=B(),p=F(f),m=e=>{var t=B();U(F(t),i,()=>({props:R(u)})),V(e,t)},h=e=>{var t=bT();qa(t,()=>({...R(u)})),U(P(t),()=>r()??w),D(t),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),k(d)}J(xT,{children:{},child:{},id:{},ref:{},disabled:{}},[],[],{mode:`open`});var ST=z(`<!> <!>`,1),CT=z(`<!> <div><!></div>`,1);function wT(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`children`,7),a=q(t,`child`,7),o=q(t,`ref`,15,null),s=q(t,`forceMount`,7,!1),c=q(t,`onCloseAutoFocus`,7,$),l=q(t,`onOpenAutoFocus`,7,$),u=q(t,`onEscapeKeydown`,7,$),d=q(t,`onInteractOutside`,7,$),f=q(t,`trapFocus`,7,!0),p=q(t,`preventScroll`,7,!0),m=q(t,`restoreScrollDelay`,7,null),h=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`children`,`child`,`ref`,`forceMount`,`onCloseAutoFocus`,`onOpenAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`restoreScrollDelay`]),g=Fv.create({id:Q(()=>r()),ref:Q(()=>o(),e=>o(e))}),_=j(()=>i_(h,g.props));var v={get id(){return r()},set id(e=Ov(n)){r(e),A()},get children(){return i()},set children(e){i(e),A()},get child(){return a()},set child(e){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get forceMount(){return s()},set forceMount(e=!1){s(e),A()},get onCloseAutoFocus(){return c()},set onCloseAutoFocus(e=$){c(e),A()},get onOpenAutoFocus(){return l()},set onOpenAutoFocus(e=$){l(e),A()},get onEscapeKeydown(){return u()},set onEscapeKeydown(e=$){u(e),A()},get onInteractOutside(){return d()},set onInteractOutside(e=$){d(e),A()},get trapFocus(){return f()},set trapFocus(e=!0){f(e),A()},get preventScroll(){return p()},set preventScroll(e=!0){p(e),A()},get restoreScrollDelay(){return m()},set restoreScrollDelay(e=null){m(e),A()}},y=B(),b=F(y),x=e=>{Gb(e,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return f()},get enabled(){return g.root.opts.open.current},get onOpenAutoFocus(){return l()},get onCloseAutoFocus(){return c()},focusScope:(e,t)=>{let n=()=>t?.().props;Hb(e,po(()=>R(_),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:e=>{u()(e),!e.defaultPrevented&&g.root.handleClose()},children:(e,t)=>{zb(e,po(()=>R(_),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},onInteractOutside:e=>{d()(e),!e.defaultPrevented&&g.root.handleClose()},children:(e,t)=>{Zb(e,po(()=>R(_),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(e,t)=>{var r=B(),o=F(r),s=e=>{var t=ST(),r=F(t),i=e=>{ux(e,{get preventScroll(){return p()},get restoreScrollDelay(){return m()}})};W(r,e=>{g.root.opts.open.current&&e(i)});var o=I(r,2);{let e=j(()=>({props:i_(R(_),n()),...g.snippetProps}));U(o,a,()=>R(e))}V(e,t)},c=e=>{var t=CT(),r=F(t);ux(r,{get preventScroll(){return p()}});var a=I(r,2);qa(a,e=>({...e}),[()=>i_(R(_),n())]),U(P(a),()=>i()??w),D(a),V(e,t)};W(o,e=>{a()?e(s):e(c,-1)}),V(e,r)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};return W(b,e=>{(g.shouldRender||s())&&e(x)}),V(e,y),k(v)}J(wT,{id:{},children:{},child:{},ref:{},forceMount:{},onCloseAutoFocus:{},onOpenAutoFocus:{},onEscapeKeydown:{},onInteractOutside:{},trapFocus:{},preventScroll:{},restoreScrollDelay:{}},[],[],{mode:`open`});function TT(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=q(t,`dir`,7,`ltr`),i=q(t,`onOpenChange`,7,$),a=q(t,`onOpenChangeComplete`,7,$),o=q(t,`_internal_variant`,7,`dropdown-menu`),s=q(t,`children`,7),c=xb.create({variant:Q(()=>o()),dir:Q(()=>r()),onClose:()=>{n(!1),i()(!1)}});return Sb.create({open:Q(()=>n(),e=>{n(e),i()(e)}),onOpenChangeComplete:Q(()=>a())},c),GC(e,{children:(e,t)=>{var n=B();U(F(n),()=>s()??w),V(e,n)},$$slots:{default:!0}}),k({get open(){return n()},set open(e=!1){n(e),A()},get dir(){return r()},set dir(e=`ltr`){r(e),A()},get onOpenChange(){return i()},set onOpenChange(e=$){i(e),A()},get onOpenChangeComplete(){return a()},set onOpenChangeComplete(e=$){a(e),A()},get _internal_variant(){return o()},set _internal_variant(e=`dropdown-menu`){o(e),A()},get children(){return s()},set children(e){s(e),A()}})}J(TT,{open:{},dir:{},onOpenChange:{},onOpenChangeComplete:{},_internal_variant:{},children:{}},[],[],{mode:`open`});var ET=z(`<div><div><!></div></div>`),DT=z(`<div><div><!></div></div>`);function OT(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`child`,7),a=q(t,`children`,7),o=q(t,`ref`,15,null),s=q(t,`loop`,7,!0),c=q(t,`onInteractOutside`,7,$),l=q(t,`onEscapeKeydown`,7,$),u=q(t,`onCloseAutoFocus`,7,$),d=q(t,`forceMount`,7,!1),f=q(t,`trapFocus`,7,!1),p=q(t,`style`,7),m=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`child`,`children`,`ref`,`loop`,`onInteractOutside`,`onEscapeKeydown`,`onCloseAutoFocus`,`forceMount`,`trapFocus`,`style`]),h=Cb.create({id:Q(()=>r()),loop:Q(()=>s()),ref:Q(()=>o(),e=>o(e)),onCloseAutoFocus:Q(()=>u())}),g=j(()=>i_(m,h.props));function _(e){if(h.handleInteractOutside(e),!e.defaultPrevented&&(c()(e),!e.defaultPrevented)){if(e.target&&e.target instanceof Element){let t=`[${h.parentMenu.root.getBitsAttr(`sub-content`)}]`;if(e.target.closest(t))return}h.parentMenu.onClose()}}function v(e){l()(e),!e.defaultPrevented&&h.parentMenu.onClose()}var y={get id(){return r()},set id(e=Ov(n)){r(e),A()},get child(){return i()},set child(e){i(e),A()},get children(){return a()},set children(e){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get loop(){return s()},set loop(e=!0){s(e),A()},get onInteractOutside(){return c()},set onInteractOutside(e=$){c(e),A()},get onEscapeKeydown(){return l()},set onEscapeKeydown(e=$){l(e),A()},get onCloseAutoFocus(){return u()},set onCloseAutoFocus(e=$){u(e),A()},get forceMount(){return d()},set forceMount(e=!1){d(e),A()},get trapFocus(){return f()},set trapFocus(e=!1){f(e),A()},get style(){return p()},set style(e){p(e),A()}},b=B(),x=F(b),S=e=>{Ew(e,po(()=>R(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:_,onEscapeKeydown:v,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return r()},get shouldRender(){return h.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,o=j(()=>i_(n(),{style:jC(`dropdown-menu`)},{style:p()}));var s=B(),c=F(s),l=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(o),wrapperProps:r(),...h.snippetProps}));U(n,i,()=>R(e))}V(e,t)},u=e=>{var t=ET();qa(t,()=>({...r()}));var n=P(t);qa(n,()=>({...R(o)})),U(P(n),()=>a()??w),D(n),D(t),V(e,t)};W(c,e=>{i()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))},C=e=>{Tw(e,po(()=>R(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:_,onEscapeKeydown:v,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return r()},get shouldRender(){return h.shouldRender},popper:(e,t)=>{let n=()=>t?.().props,r=()=>t?.().wrapperProps,o=j(()=>i_(n(),{style:jC(`dropdown-menu`)},{style:p()}));var s=B(),c=F(s),l=e=>{var t=B(),n=F(t);{let e=j(()=>({props:R(o),wrapperProps:r(),...h.snippetProps}));U(n,i,()=>R(e))}V(e,t)},u=e=>{var t=DT();qa(t,()=>({...r()}));var n=P(t);qa(n,()=>({...R(o)})),U(P(n),()=>a()??w),D(n),D(t),V(e,t)};W(c,e=>{i()?e(l):e(u,-1)}),V(e,s)},$$slots:{popper:!0}}))};return W(x,e=>{d()?e(S):d()||e(C,1)}),V(e,b),k(y)}J(OT,{id:{},child:{},children:{},ref:{},loop:{},onInteractOutside:{},onEscapeKeydown:{},onCloseAutoFocus:{},forceMount:{},trapFocus:{},style:{}},[],[],{mode:`open`});var kT=z(`<button><!></button>`);function AT(e,t){let n=hi();O(t,!0);let r=q(t,`id`,23,()=>Ov(n)),i=q(t,`ref`,15,null),a=q(t,`child`,7),o=q(t,`children`,7),s=q(t,`disabled`,7,!1),c=q(t,`type`,7,`button`),l=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`id`,`ref`,`child`,`children`,`disabled`,`type`]),u=Mb.create({id:Q(()=>r()),disabled:Q(()=>s()??!1),ref:Q(()=>i(),e=>i(e))}),d=j(()=>i_(l,u.props,{type:c()}));return hw(e,{get id(){return r()},get ref(){return u.opts.ref},children:(e,t)=>{var n=B(),r=F(n),i=e=>{var t=B();U(F(t),a,()=>({props:R(d)})),V(e,t)},s=e=>{var t=kT();qa(t,()=>({...R(d)})),U(P(t),()=>o()??w),D(t),V(e,t)};W(r,e=>{a()?e(i):e(s,-1)}),V(e,n)},$$slots:{default:!0}}),k({get id(){return r()},set id(e=Ov(n)){r(e),A()},get ref(){return i()},set ref(e=null){i(e),A()},get child(){return a()},set child(e){a(e),A()},get children(){return o()},set children(e){o(e),A()},get disabled(){return s()},set disabled(e=!1){s(e),A()},get type(){return c()},set type(e=`button`){c(e),A()}})}J(AT,{id:{},ref:{},child:{},children:{},disabled:{},type:{}},[],[],{mode:`open`});var jT=X_({component:`label`,parts:[`root`]}),MT=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=H_(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=j(()=>({id:this.opts.id.current,[jT.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return R(this.#e)}set props(e){N(this.#e,e)}},NT=z(`<label><!></label>`);function PT(e,t){let n=hi();O(t,!0);let r=q(t,`children`,7),i=q(t,`child`,7),a=q(t,`id`,23,()=>Ov(n)),o=q(t,`ref`,15,null),s=q(t,`for`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`child`,`id`,`ref`,`for`]),l=MT.create({id:Q(()=>a()),ref:Q(()=>o(),e=>o(e))}),u=j(()=>i_(c,l.props,{for:s()}));var d={get children(){return r()},set children(e){r(e),A()},get child(){return i()},set child(e){i(e),A()},get id(){return a()},set id(e=Ov(n)){a(e),A()},get ref(){return o()},set ref(e=null){o(e),A()},get for(){return s()},set for(e){s(e),A()}},f=B(),p=F(f),m=e=>{var t=B();U(F(t),i,()=>({props:R(u)})),V(e,t)},h=e=>{var t=NT();qa(t,()=>({...R(u),for:s()})),U(P(t),()=>r()??w),D(t),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),k(d)}J(PT,{children:{},child:{},id:{},ref:{},for:{}},[],[],{mode:`open`});function FT(e,t){O(t,!0);let n=q(t,`open`,15,!1),r=q(t,`onOpenChange`,7,$),i=q(t,`onOpenChangeComplete`,7,$),a=q(t,`children`,7);return dT.create({open:Q(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:Q(()=>i())}),GC(e,{children:(e,t)=>{var n=B();U(F(n),()=>a()??w),V(e,n)},$$slots:{default:!0}}),k({get open(){return n()},set open(e=!1){n(e),A()},get onOpenChange(){return r()},set onOpenChange(e=$){r(e),A()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(e=$){i(e),A()},get children(){return a()},set children(e){a(e),A()}})}J(FT,{open:{},onOpenChange:{},onOpenChangeComplete:{},children:{}},[],[],{mode:`open`});function IT(e){return e<.5?8*e**4:-8*(e-1)**4+1}function LT(e){return e**4}function RT(e){return(e-1)**3*(1-e)+1}function zT(e){return--e*e*e*e*e+1}var BT=e=>e;function VT(e){let t=e-1;return t*t*t+1}function HT(e){let t=typeof e==`string`&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||`px`]:[e,`px`]}function UT(e,{delay:t=0,duration:n=400,easing:r=BT}={}){let i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>`opacity: ${e*i}`}}function WT(e,{delay:t=0,duration:n=400,easing:r=VT,x:i=0,y:a=0,opacity:o=0}={}){let s=getComputedStyle(e),c=+s.opacity,l=s.transform===`none`?``:s.transform,u=c*(1-o),[d,f]=HT(i),[p,m]=HT(a);return{delay:t,duration:n,easing:r,css:(e,t)=>`
|
|
537
537
|
transform: ${l} translate(${(1-e)*d}${f}, ${(1-e)*p}${m});
|
|
538
|
-
opacity: ${c-u*t}`}}var RT=z(`<div class="embed-alva embed-alva--question-box"><div class="embed-alva__body"><div class="embed-alva__row"><p class="embed-alva__description">Möchten Sie an der Umfrage teilnehmen? <span class="embed-alva__time">Dauer: ca. 5 Minuten.</span></p> <a class="btn btn--primary" target="_blank" rel="noopener noreferrer"><span class="btn__label">Umfrage ausfüllen</span></a> <button class="embed-alva__close transition-colors"><span class="sr-only">Schliessen</span> <!></button></div></div></div>`);function
|
|
538
|
+
opacity: ${c-u*t}`}}function GT(e,{delay:t=0,duration:n=400,easing:r=VT,axis:i=`y`}={}){let a=getComputedStyle(e),o=+a.opacity,s=i===`y`?`height`:`width`,c=parseFloat(a[s]),l=i===`y`?[`top`,`bottom`]:[`left`,`right`],u=l.map(e=>`${e[0].toUpperCase()}${e.slice(1)}`),d=parseFloat(a[`padding${u[0]}`]),f=parseFloat(a[`padding${u[1]}`]),p=parseFloat(a[`margin${u[0]}`]),m=parseFloat(a[`margin${u[1]}`]),h=parseFloat(a[`border${u[0]}Width`]),g=parseFloat(a[`border${u[1]}Width`]);return{delay:t,duration:n,easing:r,css:e=>`overflow: hidden;opacity: ${Math.min(e*20,1)*o};${s}: ${e*c}px;padding-${l[0]}: ${e*d}px;padding-${l[1]}: ${e*f}px;margin-${l[0]}: ${e*p}px;margin-${l[1]}: ${e*m}px;border-${l[0]}-width: ${e*h}px;border-${l[1]}-width: ${e*g}px;min-${s}: 0`}}var KT=z(`<div><!></div>`),qT=z(`<div class="references__toggle-title"> </div> <!>`,1),JT=z(`<div><div class="references__items"></div></div>`),YT=z(`<div><!></div>`),XT=z(`<!> <!>`,1),ZT=z(`<div><!></div>`),QT=z(`<div><div class="references__items"></div> <!></div>`),$T=z(`<div><div class="references__container"><div class="references__transition"><!></div></div></div>`);function eE(e,t){O(t,!0);let n=q(t,`class`,7),r=q(t,`references`,7),i=j(()=>r()??Z.data.history.filter(e=>e.type===`bot`).find(e=>e.id===Z.data.currentReferencesAsideId)?.references),a=j(()=>Z.data.currentReferencesAsideId),o=M(void 0),s=M(!1),c=M(void 0);Qn(()=>{R(a)&&N(s,!1),N(o,R(a),!0)}),Qn(()=>{R(s)&&setTimeout(()=>{Z.data.chatConfig.inlineLayout===!1&&R(c)?.scrollIntoView({behavior:`smooth`})},200)});let l={delay:200,duration:500,easing:RT,y:50};var u={get class(){return n()},set class(e){n(e),A()},get references(){return r()},set references(e){r(e),A()}},d=$T(),f=P(d),p=P(f);return Wi(P(p),()=>Z.data.currentReferencesAsideId,e=>{var t=QT(),r=P(t);Yi(r,21,()=>R(i)?.used,Gi,(e,t)=>{var n=KT();lg(P(n),{get reference(){return R(t)}}),D(n),da(1,n,()=>WT,()=>({...l,delay:0})),V(e,n)}),D(r);var u=I(r,2),d=e=>{var t=ZT();rg(P(t),{children:(e,t)=>{var r=B();G(F(r),()=>Tx,(e,t)=>{t(e,{get class(){return`references__further ${n()??``}`},get open(){return R(s)},set open(e){N(s,e,!0)},children:(e,t)=>{var n=XT(),r=F(n);G(r,()=>kx,(e,t)=>{t(e,{class:`references__toggle transition-colors`,children:(e,t)=>{var n=qT(),r=F(n),i=P(r,!0);D(r),Oh(I(r,2),{name:`chevronDown`,class:`references__toggle-icon`}),L(()=>H(i,Z.t.referencesFurtherTitle)),V(e,n)},$$slots:{default:!0}})});var a=I(r,2);{let e=(e,t)=>{let n=()=>t?.().props,r=()=>t?.().open;var a=YT();qa(a,()=>({...n(),class:`references__container`}));var o=P(a),s=e=>{var t=JT(),n=P(t);Yi(n,21,()=>R(i)?.unused,Gi,(e,t)=>{lg(e,{get reference(){return R(t)}})}),D(n),D(t),da(1,t,()=>WT,()=>({...l,delay:0})),da(2,t,()=>UT,()=>({duration:100})),V(e,t)};W(o,e=>{r()&&e(s)}),D(a),oo(a,e=>N(c,e),()=>R(c)),V(e,a)};G(a,()=>Dx,(t,n)=>{n(t,{forceMount:!0,child:e,$$slots:{child:!0}})})}V(e,n)},$$slots:{default:!0}})}),V(e,r)},$$slots:{default:!0}}),D(t),da(1,t,()=>WT,()=>l),V(e,t)};W(u,e=>{R(i)?.unused&&R(i).unused.length>0&&e(d)}),D(t),da(2,t,()=>ug,()=>({duration:200,delay:R(a)?0:200})),da(1,t,()=>WT,()=>R(o)?l:{duration:0,y:0}),V(e,t)}),D(p),D(f),D(d),L(()=>Ea(d,1,ba([`references`,n()]))),V(e,d),k(u)}J(eE,{class:{},references:{}},[],[],{mode:`open`});var tE;function nE(e,t,n,r,i){tE&&cancelAnimationFrame(tE);let a=e instanceof Window?r===`scrollTop`?window.scrollY:window.scrollX:e[r],o=performance.now();function s(c){let l=c-o,u=Math.min(l/n,1),d=i(u),f=a+(t-a)*d;e instanceof Window?r===`scrollTop`?window.scrollTo({top:f,behavior:`instant`}):window.scrollTo({left:f,behavior:`instant`}):e[r]=f,u<1?tE=requestAnimationFrame(s):e.dispatchEvent(new CustomEvent(`scrollcomplete`))}tE=requestAnimationFrame(s)}var rE=z(`<div class="embed-alva embed-alva--question-box"><div class="embed-alva__body"><div class="embed-alva__row"><p class="embed-alva__description">Möchten Sie an der Umfrage teilnehmen? <span class="embed-alva__time">Dauer: ca. 5 Minuten.</span></p> <a class="btn btn--primary" target="_blank" rel="noopener noreferrer"><span class="btn__label">Umfrage ausfüllen</span></a> <button class="embed-alva__close transition-colors"><span class="sr-only">Schliessen</span> <!></button></div></div></div>`);function iE(e,t){O(t,!0);let n=q(t,`belowScore`,7),r=M(void 0);er(()=>{Yr(()=>{N(r,aE.getContext(),!0)})});let i=()=>{aE.updateContext(e=>({...e,experimentState:`completed-without-survey`}))},a=()=>aE.updateContext(e=>({...e,experimentState:`completed`})),o={certainty:`https://forms.office.com/e/r2xanSsUsy`,uncertainty:`https://forms.office.com/e/5C9VAhrpWS`,control:`https://forms.office.com/e/i8Mf5t4QVZ`,"<unassigned>":``},s=(e,t)=>t.enabled?WT(e,t):{duration:0};var c={get belowScore(){return n()},set belowScore(e){n(e),A()}},l=B(),u=F(l),d=e=>{qv(e,{get to(){return Z.targets.surveyPortal},children:(e,t)=>{var c=B(),l=F(c),u=e=>{var t=B(),c=F(t),l=e=>{var t=rE(),c=P(t),l=P(c),u=I(P(l),2),d=I(u,2);Oh(I(P(d),2),{name:`dismiss`}),D(d),D(l),D(c),D(t),L(()=>K(u,`href`,o[R(r).assignedGroup])),ii(`click`,u,a),ii(`click`,d,i),da(5,t,()=>s,()=>({enabled:n(),duration:300,delay:1e3,y:30})),V(e,t)};W(c,e=>{(n()?R(r).nextShowCount===3:R(r).nextShowCount>=3)&&aE.currentContext.experimentState===`in-progress`&&e(l)}),V(e,t)};W(l,e=>{aE.currentContext.isDesktop&&R(r).experimentState===`in-progress`&&e(u)}),V(e,c)},$$slots:{default:!0}})};return W(u,e=>{Z.targets.surveyPortal&&e(d)}),V(e,l),k(c)}ai([`click`]),J(iE,{belowScore:{}},[],[],{mode:`open`});var aE=new eh({initialValue:{isDesktop:!!(new bp(`(hover: hover) and (pointer: fine)`,!1).current||navigator.userAgentData?.mobile===!1),experimentState:`new`,assignedGroup:`<unassigned>`,nextLevel:`<unassigned>`,nextShowCount:-1}}),oE=e=>{let t=new Uint32Array(1);return crypto.getRandomValues(t),e[t[0]%e.length]},sE=()=>oE([`certainty`,`uncertainty`,`control`]),cE=()=>oE([`low`,`medium`,`high`]),lE=z(`<button class="debug-btn svelte-yb76lo">Reset</button>`),uE=z(`<div class="debug-panel svelte-yb76lo"><pre class="svelte-yb76lo"><code class="svelte-yb76lo"> </code></pre> <!></div>`),dE=z(`<div class="debug svelte-yb76lo"><!> <button class="debug-toggle svelte-yb76lo"> </button></div>`),fE=z(`<div class="embed-alva svelte-yb76lo"><div class="embed-alva__body svelte-yb76lo"><button class="embed-alva__close transition-colors svelte-yb76lo"><span class="sr-only svelte-yb76lo">Schliessen</span> <!></button> <p class="embed-alva__title svelte-yb76lo">Helfen Sie uns, Alva zu verbessern!</p> <p class="embed-alva__description svelte-yb76lo">Nehmen Sie an einer kurzen wissenschaftlichen Befragung teil (ca. 5 Min. im Anschluss an Ihre Nutzung). <br class="svelte-yb76lo"/> <a href="#experiment-info" class="embed-alva__link svelte-yb76lo">Mehr erfahren</a></p> <div class="embed-alva__actions svelte-yb76lo"><button class="btn btn--primary svelte-yb76lo"><span class="btn__label svelte-yb76lo">Ja, mitmachen</span></button> <button class="btn btn--secondary svelte-yb76lo"><span class="btn__label svelte-yb76lo">Nein, danke</span></button></div></div></div>`),pE=z(`<!> <!>`,1),mE=z(`<!> <!>`,1),hE={hash:`svelte-yb76lo`,code:`.chat-app .message--bot:has(+ .message--bot) {padding-bottom:0;}
|
|
539
539
|
/* Alva init embed styles */
|
|
540
540
|
/* Debug panel */.debug.svelte-yb76lo {display:flex;z-index:100000;position:fixed;top:0;left:20px;flex-direction:column;align-items:start;}.debug-panel.svelte-yb76lo {max-width:320px;padding:var(--spacer-10);border-radius:0 0 var(--spacer-6) 0;background-color:#68a518;color:var(--color-grey-0);font-size:var(--base-font-size-xs);}.debug-panel.svelte-yb76lo pre:where(.svelte-yb76lo) {margin:0;white-space:pre-wrap;word-break:break-word;}.debug-btn.svelte-yb76lo {width:100%;margin-top:var(--spacer-4);padding:var(--spacer-4) var(--spacer-10);border:1px solid var(--color-grey-0);border-radius:var(--spacer-4);background-color:#84cf23;color:var(--color-grey-0);font-size:var(--base-font-size-xs);}.debug-toggle.svelte-yb76lo {padding:var(--spacer-1) var(--spacer-10);border:none;border-radius:0 0 var(--spacer-4) var(--spacer-4);background-color:#68a518;color:var(--color-grey-0);font-size:var(--base-font-size-xs);line-height:var(--base-line-height-tight);}.embed-alva {padding:0;overflow:hidden;gap:2px;border-radius:var(--base-border-radius);background:var(--alva-gradient-card); /* stylelint-disable-line */background-position-x:0%;background-size:240%;transition:height 0.4s var(--default-transition-timing-function);&:after,
|
|
541
541
|
&:before {display:none;}}.embed-alva--question-box {box-shadow:0 1.5rem 1rem -0.5rem rgb(245 245 245 / 0.7);font-size:var(--base-font-size-body);}.embed-alva--question-box .btn {margin-right:1.2rem;padding:0.5rem 1.3rem;}.embed-alva__row {display:flex;flex-direction:row;align-items:center;gap:10px;}.embed-alva__body {position:relative;padding:var(--spacer-r-24) var(--spacer-r-28);}.embed-alva__close {position:absolute;top:var(--spacer-8);right:var(--spacer-8);padding:var(--spacer-4);border:none;background:transparent;color:var(--anchor-color);&:hover {color:var(--anchor-hover-color);}}.embed-alva__time {opacity:0.8;}.embed-alva__title {margin:0 0 var(--spacer-4);
|
|
542
|
-
/* To not clash with x */padding-right:1rem;padding-bottom:0.8rem;color:var(--card-color);font-weight:var(--base-font-weight-bold);line-height:var(--base-line-height-tight);}.embed-alva__description {margin:0;text-wrap:balance;}.embed-alva__link {display:inline-block;color:var(--anchor-color);text-decoration:underline;&:hover {color:var(--anchor-hover-color);}}.embed-alva__actions {display:flex;margin-top:var(--spacer-r-20);gap:var(--spacer-r-8);}.embed-alva__actions .btn__label {font-size:var(--base-font-size-sm);}`};function
|
|
542
|
+
/* To not clash with x */padding-right:1rem;padding-bottom:0.8rem;color:var(--card-color);font-weight:var(--base-font-weight-bold);line-height:var(--base-line-height-tight);}.embed-alva__description {margin:0;text-wrap:balance;}.embed-alva__link {display:inline-block;color:var(--anchor-color);text-decoration:underline;&:hover {color:var(--anchor-hover-color);}}.embed-alva__actions {display:flex;margin-top:var(--spacer-r-20);gap:var(--spacer-r-8);}.embed-alva__actions .btn__label {font-size:var(--base-font-size-sm);}`};function gE(e,t){O(t,!0),ha(e,hE),er(()=>{Yr(()=>{aE.setContextVersion(Z.data.chatConfig.contextVersion)})});let n=M(!1),r=M(void 0);Fi(()=>{if(aE.currentContext.experimentState===`new`||aE.currentContext.experimentState===`in-progress`&&aE.currentContext.nextShowCount>=3){let e=Z.targets.scrollContainer;e&&setTimeout(()=>nE(e,0,600,`scrollTop`,IT),100)}});let i=(e,t)=>{e.style.height=`${e.offsetHeight}px`,t(),Kr().then(()=>{let t=e.scrollHeight;e.style.height=`${t}px`,e.addEventListener(`transitionend`,()=>e.style.height=``,{once:!0})})},a=()=>{aE.updateContext(e=>({...e,experimentState:`denied`})),Z.targets.chatInput?.focus()},o=()=>{Vp.success(`Vielen Dank für Ihre Teilnahme!`,{unstyled:!0,duration:4e3,classes:{toast:`toast`}}),R(r)?i(R(r),()=>aE.updateContext(e=>({...e,experimentState:`in-progress`,assignedGroup:sE(),nextShowCount:1,nextLevel:cE()}))):aE.updateContext(e=>({...e,experimentState:`in-progress`,assignedGroup:sE(),nextShowCount:1,nextLevel:cE()}))};var s=mE(),c=F(s),l=e=>{var t=pE(),i=F(t),s=e=>{qv(e,{get to(){return Z.targets.portals},children:(e,t)=>{var r=dE(),i=P(r),a=e=>{var t=uE(),n=P(t),r=P(n),i=P(r,!0);D(r),D(n);var a=I(n,2),o=e=>{var t=lE();ii(`click`,t,()=>aE.resetContext()),V(e,t)};W(a,e=>{aE.currentContext.experimentState!==`new`&&e(o)}),D(t),L(e=>H(i,e),[()=>JSON.stringify(aE.currentContext,null,2)]),V(e,t)};W(i,e=>{R(n)&&e(a)});var o=I(i,2),s=P(o,!0);D(o),D(r),L(()=>H(s,R(n)?`▲ close`:`▼ context`)),ii(`click`,o,()=>N(n,!R(n))),V(e,r)},$$slots:{default:!0}})};W(i,e=>{window.location.origin.endsWith(`.dev.cluster.liipgpt.ch`)&&Z.targets.portals&&e(s)});var c=I(i,2),l=e=>{var t=fE(),n=P(t),i=P(n);Oh(I(P(i),2),{name:`dismiss`}),D(i);var s=I(i,6),c=P(s),l=I(c,2);D(s),D(n),D(t),oo(t,e=>N(r,e),()=>R(r)),ii(`click`,i,a),ii(`click`,c,o),ii(`click`,l,a),V(e,t)};W(c,e=>{aE.currentContext.experimentState===`new`&&e(l)}),V(e,t)};W(c,e=>{aE.currentContext.isDesktop&&e(l)}),iE(I(c,2),{}),V(e,s),k()}ai([`click`]),J(gE,{},[],[],{mode:`open`});var _E=z(`<p class="embed-alva-score svelte-16h2wiv"><span class="embed-alva-score__separator svelte-16h2wiv"></span> </p>`),vE=z(`<p class="embed-alva-score svelte-16h2wiv"><span class="embed-alva-score__separator svelte-16h2wiv"></span> </p>`),yE=z(`<!> <!>`,1),bE={hash:`svelte-16h2wiv`,code:`
|
|
543
543
|
@value container-xs, container-sm, container-md, container-lg, container-inner-xs, container-inner-sm, container-inner-md, container-inner-lg from '../css/viewports.css';.embed-alva-score.svelte-16h2wiv {display:flex;flex-direction:column;margin-top:calc(var(--spacer-r-24) * -1);color:var(--card-color);font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-md); /* stylelint-disable-line */line-height:var(--base-line-height-tight);text-align:right;
|
|
544
544
|
|
|
545
545
|
@container chat-container (min-width: 640px) {margin-top:calc((var(--spacer-20) + var(--spacer-r-24)) * -1);
|
|
546
|
-
}}.embed-alva-score__separator.svelte-16h2wiv {display:block;align-self:flex-end;width:4.8rem;margin-top:-0.3rem;padding-bottom:0.5rem;border-top-width:var(--message-options-border-width);border-color:var(--message-options-border-color);}`};function nE(e,t){D(t,!0),ha(e,tE);let n=j(void 0);er(()=>{Yr(()=>{M(n,BT.getContext(),!0),BT.currentContext.experimentState===`in-progress`&&BT.updateContext(e=>({...e,nextLevel:UT(),nextShowCount:e.nextShowCount+1}))})});let r={low:`Tief`,medium:`Mittel`,high:`Hoch`};var i=eE(),a=P(i),o=e=>{var t=B(),i=P(t),a=e=>{var t=B(),i=P(t),a=e=>{var t=QT(),i=F(N(t));E(t),L(()=>H(i,` Antwortsicherheit: ${r[R(n).nextLevel]??R(n).nextLevel??``}`)),V(e,t)},o=e=>{var t=$T(),i=F(N(t));E(t),L(()=>H(i,` Antwortunsicherheit: ${r[R(n).nextLevel]??R(n).nextLevel??``}`)),V(e,t)};W(i,e=>{R(n).assignedGroup===`certainty`?e(a):R(n).assignedGroup===`uncertainty`&&e(o,1)}),V(e,t)};W(i,e=>{R(n).nextShowCount<=2&&e(a)}),V(e,t)};W(a,e=>{BT.currentContext.isDesktop&&R(n).experimentState===`in-progress`&&e(o)}),zT(F(a,2),{belowScore:!0}),V(e,i),O()}J(nE,{},[],[],{mode:`open`});function rE(e,t){D(t,!0);let n=q(t,`href`,7),r=q(t,`target`,7),i=q(t,`onclick`,7),a=q(t,`className`,23,()=>[]),o=q(t,`isStandalone`,7,!1),s=q(t,`children`,7),c=q(t,`type`,7,`button`),l=q(t,`use`,7),u=q(t,`class`,7),d=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`href`,`target`,`onclick`,`className`,`isStandalone`,`children`,`type`,`use`,`class`]),f=A(()=>n()?`a`:`button`),p=A(()=>[...Array.isArray(a())?a():a()?[a()]:[],...u()?[u()]:[]]),m=()=>({}),h=A(()=>l()??m);var g={get href(){return n()},set href(e){n(e),k()},get target(){return r()},set target(e){r(e),k()},get onclick(){return i()},set onclick(e){i(e),k()},get className(){return a()},set className(e=[]){a(e),k()},get isStandalone(){return o()},set isStandalone(e=!1){o(e),k()},get children(){return s()},set children(e){s(e),k()},get type(){return c()},set type(e=`button`){c(e),k()},get use(){return l()},set use(e){l(e),k()},get class(){return u()},set class(e){u(e),k()}},_=B();return pa(P(_),()=>R(f),!1,(e,t)=>{ga(e,e=>R(h)?.(e)),qa(e,()=>({...d,onclick:n()?void 0:i(),type:n()?void 0:c(),href:n(),role:n()?`link`:`button`,target:n()?r():void 0,class:R(p),[Na]:{"open-button--standalone":o()}}));var a=B();U(P(a),s),V(t,a)}),V(e,_),O(g)}J(rE,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},use:{},class:{}},[],[],{mode:`open`});function iE(e,t){D(t,!0);let n=q(t,`html`,7),r=q(t,`oncomplete`,7),i=j(``),a=null;Fi(()=>{if(!n()){M(i,``),r()?.();return}let e=Mf(n());if(e.length<=1){M(i,n(),!0),r()?.();return}let t=0,o=()=>{if(a=null,t>=e.length)return;M(i,R(i)+e[t]);let n=Nf(e[t]);t++,t<e.length?a=setTimeout(o,n):r()?.()};return o(),()=>{a!==null&&(clearTimeout(a),a=null)}});var o={get html(){return n()},set html(e){n(e),k()},get oncomplete(){return r()},set oncomplete(e){r(e),k()}},s=B();return ta(P(s),()=>R(i)),V(e,s),O(o)}J(iE,{html:{},oncomplete:{}},[],[],{mode:`open`});var aE=z(`<p class="embed-buttons__caption"><!></p>`),oE=z(`<span class="btn__label"></span> <!>`,1),sE=z(`<div class="embed-buttons"><!> <div class="embed-buttons__buttons"></div></div>`);function cE(e,t){D(t,!0);let n=q(t,`data`,7);var r={get data(){return n()},set data(e){n(e),k()}},i=sE(),a=N(i),o=e=>{var t=aE();iE(N(t),{get html(){return n().caption}}),E(t),V(e,t)};W(a,e=>{n().caption&&e(o)});var s=F(a,2);return Yi(s,21,()=>n().buttons,Gi,(e,t)=>{{let n=A(()=>[`btn`,`btn--${R(t).variant??`primary`}`]);rE(e,{get href(){return R(t).href},get target(){return R(t).target},get className(){return R(n)},children:(e,n)=>{var r=oE(),i=P(r);ta(i,()=>R(t).label,!0),E(i);var a=F(i,2),o=e=>{Oh(e,{get name(){return R(t).icon}})};W(a,e=>{R(t).icon&&e(o)}),V(e,r)},$$slots:{default:!0}})}}),E(s),E(i),V(e,i),O(r)}J(cE,{data:{}},[],[],{mode:`open`});var lE=z(`<p class="embed-combobox__caption"><!></p>`),uE=z(`<p class="embed-combobox__no-result"> </p>`),dE=z(`<div><div><!> <!> <!></div></div>`),fE=z(`<span class="btn btn--tertiary btn--square"><!> <span class="sr-only"> </span></span>`),pE=z(`<!> <!> <!>`,1),mE=z(`<div role="region"><h2 class="sr-only"> </h2> <div class="embed-combobox__combobox"><!></div></div>`),hE=z(`<div class="embed-combobox"><!> <!></div>`);function gE(e,t){D(t,!0);let n=q(t,`data`,7),r=q(t,`hideChatInput`,7),i=A(()=>Z.t),a=j(``),o=j(!1),s=j(!1),c=j(null),l=j(null),u=j(null),d=j(!1),f=Gb(),p=j(10);I(()=>{if(!R(l))return;let e=getComputedStyle(R(l)).getPropertyValue(`--embed-combobox-side-offset`).trim(),t=parseFloat(e);Number.isNaN(t)||M(p,t,!0)});let m=e=>e===0?150:180,h=e=>rp(e,Z.data.language,Z.data.chatConfig.supportedLanguages),g=A(()=>n().caption?h(n().caption):``),_=A(()=>h(n().placeholder)),v=A(()=>n().values.map(e=>({value:e.value,label:h(e.label),metadata:e.metadata}))),y=A(()=>R(a)===``?R(v):R(v).filter(e=>e.label.toLowerCase().includes(R(a).toLowerCase()))),b=e=>{let t=R(v).find(t=>t.value===e);t&&(Z.data.chatInputValue=t.label,Sh.onSubmit(!1,{[n().selectorKey??`componentValue`]:t.value,...t.metadata?{scopeMetadata:t.metadata}:{}}),n().removeComponentAfterValueSelection&&M(s,!0))},x=()=>{M(d,!0),r()&&!Wm()?setTimeout(()=>{R(c)?.focus()},300):R(g)&&Sh.setAriaLiveStatusMessage(R(u)?.textContent??``)};var S={get data(){return n()},set data(e){n(e),k()},get hideChatInput(){return r()},set hideChatInput(e){r(e),k()}},C=hE(),ee=N(C),te=e=>{var t=lE();iE(N(t),{get html(){return R(g)},oncomplete:x}),E(t),oo(t,e=>M(u,e),()=>R(u)),L(()=>K(t,`id`,f)),V(e,t)};W(ee,e=>{R(g)&&e(te)});var ne=F(ee,2),re=e=>{var t=mE(),n=N(t),r=N(n,!0);E(n);var l=F(n,2);G(N(l),()=>sw,(e,t)=>{t(e,{type:`single`,onOpenChange:e=>{e||M(a,``)},onValueChange:b,get open(){return R(o)},set open(e){M(o,e,!0)},children:(e,t)=>{var n=pE(),r=P(n);{let e=A(()=>R(g)?f:void 0);G(r,()=>fw,(t,n)=>{n(t,{get placeholder(){return R(_)},get"aria-describedby"(){return R(e)},onclick:()=>M(o,!0),oninput:e=>M(a,e.currentTarget.value,!0),get ref(){return R(c)},set ref(e){M(c,e,!0)}})})}var s=F(r,2);G(s,()=>Bv,(e,t)=>{t(e,{get to(){return Z.targets.portals},children:(e,t)=>{var n=B(),r=P(n);{let e=(e,t)=>{let n=()=>t?.().wrapperProps,r=()=>t?.().props,a=()=>t?.().open;var o=B(),s=P(o),c=e=>{var t=dE();qa(t,()=>({...n()}));var a=N(t);qa(a,()=>({...r()}));var o=N(a);G(o,()=>Fw,(e,t)=>{t(e,{delay:m,children:(e,t)=>{Oh(e,{name:`chevronUp`})},$$slots:{default:!0}})});var s=F(o,2);G(s,()=>kw,(e,t)=>{t(e,{children:(e,t)=>{var n=B();Yi(P(n),19,()=>R(y),(e,t)=>t+e.value,(e,t)=>{var n=B();G(P(n),()=>Ew,(e,n)=>{n(e,{get value(){return R(t).value},get label(){return R(t).label},children:(e,n)=>{Ze();var r=mi();L(()=>H(r,R(t).label)),V(e,r)},$$slots:{default:!0}})}),V(e,n)},e=>{var t=uE(),n=N(t,!0);E(t),L(()=>H(n,R(i).noResultsFound)),V(e,t)}),V(e,n)},$$slots:{default:!0}})}),G(F(s,2),()=>Mw,(e,t)=>{t(e,{delay:m,children:(e,t)=>{Oh(e,{name:`chevronDown`})},$$slots:{default:!0}})}),E(a),E(t),da(1,a,()=>LT,()=>({duration:300,easing:jT,y:40})),da(2,a,()=>LT,()=>({duration:150,easing:AT,y:20})),V(e,t)};W(s,e=>{a()&&e(c)}),V(e,o)};G(r,()=>Sw,(t,n)=>{n(t,{get sideOffset(){return R(p)},forceMount:!0,strategy:`absolute`,side:`bottom`,avoidCollisions:!1,child:e,$$slots:{child:!0}})})}V(e,n)},$$slots:{default:!0}})}),G(F(s,2),()=>mw,(e,t)=>{t(e,{children:(e,t)=>{var n=fE(),r=N(n);Oh(r,{name:`chevronTopDown`});var a=F(r,2),o=N(a,!0);E(a),E(n),L(()=>H(o,R(i).openMenu)),V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),E(l),E(t),L(()=>{Ea(t,1,ba([`embed-combobox__container`,{"embed-combobox__container--hidden":R(s)}])),t.inert=R(s)?!0:void 0,K(t,`aria-hidden`,R(s)?`true`:void 0),K(t,`aria-label`,R(_)),H(r,R(_))}),da(1,t,()=>LT,()=>({duration:400,easing:jT,y:30,delay:100})),V(e,t)};return W(ne,e=>{Z.targets.portals&&(!R(g)||R(d))&&e(re)}),E(C),oo(C,e=>M(l,e),()=>R(l)),V(e,C),O(S)}J(gE,{data:{},hideChatInput:{}},[],[],{mode:`open`});var _E={buttons:cE,combobox:gE,"alva-init":ZT,"alva-score-survey":nE},vE=e=>{let t=_E[e];if(!t){console.error(`No embed component found with name "${e}"`);return}return t};function yE(e,t){D(t,!0);let n=q(t,`componentName`,7),r=q(t,`data`,7),i=q(t,`hideChatInput`,7),a=A(()=>vE(n())),o=j(!1);Fi(()=>{requestAnimationFrame(()=>M(o,!0))});var s={get componentName(){return n()},set componentName(e){n(e),k()},get data(){return r()},set data(e){r(e),k()},get hideChatInput(){return i()},set hideChatInput(e){i(e),k()}},c=B(),l=P(c),u=e=>{var t=B();G(P(t),()=>R(a),(e,t)=>{t(e,{get data(){return r()},get hideChatInput(){return i()}})}),V(e,t)};return W(l,e=>{R(a)&&R(o)&&e(u)}),V(e,c),O(s)}J(yE,{componentName:{},data:{},hideChatInput:{}},[],[],{mode:`open`});var bE=z(`<div aria-hidden="true"><!></div>`);function xE(e,t){D(t,!0);let n=q(t,`class`,7),r=q(t,`isLarge`,7),i=q(t,`hide`,7,!1);var a={get class(){return n()},set class(e){n(e),k()},get isLarge(){return r()},set isLarge(e){r(e),k()},get hide(){return i()},set hide(e=!1){i(e),k()}},o=bE();let s;var c=N(o),l=e=>{var t=B();ta(P(t),()=>Z.theme.svgs.avatarLarge||Z.theme.svgs.avatar),V(e,t)},u=e=>{var t=B();ta(P(t),()=>Z.theme.svgs.avatar),V(e,t)};return W(c,e=>{r()?e(l):e(u,-1)}),E(o),ga(o,(e,t)=>Ch?.(e,t),()=>r()?`avatarLarge`:`avatar`),L(()=>s=Ea(o,1,`svg svg--avatar ${n()??``}`,null,s,{"svg--avatar--hide":i()})),V(e,o),O(a)}J(xE,{class:{},isLarge:{},hide:{}},[],[],{mode:`open`});var SE=`data-references-toggle-button`,CE=z(` <!>`,1),wE=z(`<span class="btn__label"> </span>`),TE=z(`<button><!> <!></button>`),EE=z(`<span class="btn__label"> </span>`),DE=z(`<button class="btn btn--tertiary btn--square" aria-haspopup="dialog"><!> <!></button>`),OE=z(`<div class="message__bot-references"><!> <!></div>`),kE=z(`<div class="message__bot-actions"><!> <!> <!> <!></div>`),AE=z(`<!> <!>`,1),jE=z(`<div class="message__bot-layout"><!> <div class="message__bot-body"><div class="text-container"><!> <!></div> <!> <!></div></div>`),ME=z(`<div class="message__bot-layout"><!> <div class="message__bot-body"><!></div></div>`),NE=z(`<section><div class="message__content"><!></div></section>`);function PE(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`message`,7),i=q(t,`index`,7),a=q(t,`onmessageupdate`,7),o=q(t,`onbotmessageinit`,7),s=q(t,`onaskQuestion`,7),c=q(t,`isLast`,7,!1),l={duration:Number(Z.theme.components.message.custom?.transitionDuration)||300,delay:Number(Z.theme.components.message.custom?.transitionDelay)||0,y:Number(Z.theme.components.message.custom?.transitionY)||30,ease:jT};Yr(()=>r().type===`bot`||r().type===`component`)&&(l.delay+=Number(Z.theme.components.message.custom?.transitionBotLoadingDelay)||300);let u={duration:Number(Z.theme.components.messageOptions.custom?.transitionDuration)||300,delay:Number(Z.theme.components.messageOptions.custom?.transitionDelay)||0,y:Number(Z.theme.components.messageOptions.custom?.transitionY)||30,ease:jT},d=A(()=>r().type===`bot`?r().references.all.filter(Qh).length:0),f=A(()=>({...u,delay:u.delay+R(d)*u.duration}));I(()=>{r()?.type===`bot`&&r().state!==`done`&&a()()}),Yr(()=>{r()?.type===`bot`&&o()()});let p=A(()=>Z.data.history.slice(0,i()+1).filter(e=>e.type===`bot`||e.type===`component`).length),m=A(()=>r().type===`bot`||r().type===`component`?R(n).ariaAnswerFromBot.replace(`{n}`,String(R(p))):`${R(n).ariaQuestionFromYou} ${(r().message?.length??0)>20?r().message.slice(0,20)+`...`:r().message}`),h=A(()=>Z.data.currentReferencesAsideId===r().id?R(n).referencesHide:R(n).referencesDisplay),g=A(()=>Z.data.chatConfig.answerForm),_=A(()=>R(g)?rp(R(g).triggerLabel,Z.data.language,Z.data.chatConfig.supportedLanguages):``),v=A(()=>r().type===`bot`&&(!!r().references?.used.length||!r().noFeedback||!!R(g)));var y={get message(){return r()},set message(e){r(e),k()},get index(){return i()},set index(e){i(e),k()},get onmessageupdate(){return a()},set onmessageupdate(e){a(e),k()},get onbotmessageinit(){return o()},set onbotmessageinit(e){o(e),k()},get onaskQuestion(){return s()},set onaskQuestion(e){s(e),k()},get isLast(){return c()},set isLast(e=!1){c(e),k()}},b=NE();let x;var S=N(b),C=N(S),ee=e=>{var t=jE(),i=N(t);xE(i,{class:`message__bot-avatar`});var a=F(i,2),o=N(a),l=N(o);ta(l,()=>r().message.html);var u=F(l,2),d=e=>{var t=CE(),r=P(t);Oh(F(r),{name:`messageLoading`,class:`message__bot-loading`}),L(()=>H(r,`${R(n).messageBotLoading??``} `)),V(e,t)};W(u,e=>{r().state===`loading`&&e(d)}),E(o);var p=F(o,2),m=e=>{{let t=A(()=>r().state===`done`);tg(e,{get references(){return r().references.all},get ready(){return R(t)}})}};W(p,e=>{r().references&&r().references.all.length>0&&e(m)});var y=F(p,2),b=e=>{var t=B();pa(P(t),()=>c()?`nav`:`div`,!1,(e,t)=>{qa(e,()=>({"aria-label":c()?Z.t.ariaLastAnswerNavigation:void 0,class:`message__bot-options`})),da(3,e,()=>LT,()=>R(f));var i=AE(),a=P(i),o=e=>{var t=OE(),i=N(t),a=e=>{var t=TE(),n=()=>Sh.toggleReferencesAside(r().id);qa(t,()=>({class:`btn btn--tertiary btn--square`,onclick:n,"aria-expanded":Z.data.currentReferencesAsideId===r().id,"aria-controls":RE,[SE]:!0}));var i=N(t);Oh(i,{name:`listUnordered`});var a=F(i,2),o=e=>{var t=wE(),n=N(t,!0);E(t),L(()=>H(n,R(h))),V(e,t)};W(a,e=>{R(h)&&e(o)}),E(t),V(e,t)};W(i,e=>{r().references&&r().references.used.length&&e(a)});var o=F(i,2),s=e=>{var t=DE(),i=N(t);Oh(i,{name:`forward`});var a=F(i,2),o=e=>{var t=EE(),n=N(t,!0);E(t),L(()=>H(n,R(_))),V(e,t)};W(a,e=>{R(_)&&e(o)}),E(t),L(()=>{K(t,`aria-expanded`,Z.data.answerFormMessageId===r().id),K(t,`aria-label`,R(n).ariaAnswerForm)}),ii(`click`,t,()=>Sh.openAnswerForm(r().id)),V(e,t)};W(o,e=>{R(g)&&e(s)}),E(t),V(e,t)};W(a,e=>{(r().references&&r().references.used.length||R(g))&&e(o)});var l=F(a,2),u=e=>{var t=kE(),i=N(t),a=e=>{Mh(e,{icon:`retry`,get label(){return R(n).ariaAskQuestionAgain},get tooltip(){return R(n).askQuestionAgain},get onclick(){return s()},class:`message__bot-action btn btn--tertiary btn--square`})};W(i,e=>{Z.data.chatConfig.askQuestionAgain&&e(a)});var o=F(i,2);{let e=A(()=>r().feedback===`up`),t=A(()=>r().feedback===`up`?`message__bot-action--active`:``);Mh(o,{icon:`voteUp`,get label(){return R(n).ariaAnswerGood},get tooltip(){return R(n).answerGood},get"aria-pressed"(){return R(e)},onclick:()=>Sh.thumbs(r().id,`up`),get class(){return`message__bot-action btn btn--tertiary btn--square ${R(t)??``}`}})}var c=F(o,2);{let e=A(()=>r().feedback===`down`),t=A(()=>r().feedback===`down`?`message__bot-action--active`:``);Mh(c,{icon:`voteDown`,get label(){return R(n).ariaAnswerBad},get tooltip(){return R(n).answerBad},get"aria-pressed"(){return R(e)},onclick:()=>Sh.thumbs(r().id,`down`),get class(){return`message__bot-action btn btn--tertiary btn--square ${R(t)??``}`}})}var l=F(c,2),u=e=>{Mh(e,{icon:`message`,get label(){return R(n).ariaGiveFeedback},"aria-haspopup":`dialog`,get"aria-expanded"(){return Z.data.conversationFeedbackIsOpen},get tooltip(){return R(n).giveFeedback},onclick:()=>Sh.openMessageFeedback(r().id),class:`message__bot-action btn btn--tertiary btn--square`})};W(l,e=>{(Z.data.chatConfig.showTextFeedback||Z.data.chatConfig.classification)&&e(u)}),E(t),V(e,t)};W(l,e=>{r().noFeedback||e(u)}),V(t,i)}),V(e,t)};W(y,e=>{r().state===`done`&&R(v)&&e(b)}),E(a),E(t),V(e,t)},te=e=>{var t=ME(),n=N(t);xE(n,{class:`message__bot-avatar`,get hide(){return r().hideAvatar}});var i=F(n,2);yE(N(i),{get componentName(){return r().componentName},get data(){return r().data},get hideChatInput(){return r().hideChatInput}}),E(i),E(t),V(e,t)},ne=e=>{var t=mi();L(()=>H(t,r().message)),V(e,t)};return W(C,e=>{r().type===`bot`?e(ee):r().type===`component`?e(te,1):r().type===`user`&&e(ne,2)}),E(S),E(b),ga(b,(e,t)=>wh?.(e,t),()=>r().type===`user`?`chatPageLastUserMessage`:void 0),L(()=>{x=Ea(b,1,`message container`,null,x,{"message--bot":r().type===`bot`||r().type===`component`,"message--user":r().type===`user`,"message--no-padding":r().type===`component`&&r().noSectionPadding}),K(b,`aria-label`,R(m))}),da(3,b,()=>LT,()=>l),V(e,b),O(y)}ai([`click`]),J(PE,{message:{},index:{},onmessageupdate:{},onbotmessageinit:{},onaskQuestion:{},isLast:{}},[],[],{mode:`open`});var FE=e=>Array.from(e.querySelectorAll(`a[href], button, input:not([type="hidden"]), textarea, select, details,[tabindex]:not([tabindex="-1"])`)).filter(e=>!e.hasAttribute(`disabled`)&&!e.getAttribute(`aria-hidden`)),IE=e=>{let t=e.getRootNode();return`activeElement`in t?t.activeElement:document.activeElement};function LE(e,t){let{firstFocusableOnMount:n=!0,resetFocusOnDestroy:r=!0,avoidFocusLoop:i=!1}=t||{},a=IE(e),o=FE(e),s,c=new MutationObserver(()=>{o=FE(e)}),l=t=>{o&&e.dataset.disabled!==`true`&&t.key===`Tab`&&(t.shiftKey?IE(e)===o[0]&&(t.preventDefault(),o[o.length-1].focus()):IE(e)===o[o.length-1]&&(t.preventDefault(),o[0].focus()))};return o&&o.length>0&&!i&&(n&&(s=o[0],requestAnimationFrame(()=>{s?.focus({preventScroll:!0})})),e.addEventListener(`keydown`,l),c.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`disabled`,`aria-hidden`,`tabindex`]})),{destroy(){o&&o.length>0&&!i&&(o=null,s=null,e.removeEventListener(`keydown`,l),c.disconnect(),r&&a&&requestAnimationFrame(()=>{a.focus({preventScroll:!0})}))}}}var RE=`aside`,zE=z(`<div></div>`),BE=z(`<h2 class="chat-app__sheet-title"> </h2>`),VE=z(`<span class="btn btn--tertiary btn--square"><span class="sr-only"> </span> <!></span>`),HE=z(`<div><div class="chat-app__sheet-header"><!> <!></div> <!></div>`),UE=z(`<!> <!>`,1),WE=z(`<h2 class="chat-app__aside-title"> </h2>`),GE=z(`<div><div class="chat-app__aside-container"><div class="chat-app__aside-header"><!> <div class="chat-app__aside-close"><button class="btn btn--tertiary btn--square"><span class="sr-only"> </span> <!></button></div></div> <!></div></div>`);function KE(e,t){D(t,!0);let n=q(t,`title`,7),r=q(t,`isOpen`,7),i=q(t,`isMobile`,7),a=q(t,`showReferencesByDefault`,7),o=q(t,`onClose`,7),s=q(t,`children`,7),c=j(void 0),l=null,u=e=>{e.key===`Escape`&&o()()};I(()=>{if(!i())if(r()){if(a()||document.addEventListener(`keydown`,u),R(c)&&(l=IE(R(c)),!a()||l?.hasAttribute(`data-references-toggle-button`))){let e=FE(R(c));e[0].setAttribute(kh,`true`),e[0].focus({preventScroll:!0})}}else document.removeEventListener(`keydown`,u),l?.hasAttribute(`data-references-toggle-button`)?l.focus({preventScroll:!0}):Z.targets.chatInput?.focus({preventScroll:!0})});var d={get title(){return n()},set title(e){n(e),k()},get isOpen(){return r()},set isOpen(e){r(e),k()},get isMobile(){return i()},set isMobile(e){i(e),k()},get showReferencesByDefault(){return a()},set showReferencesByDefault(e){a(e),k()},get onClose(){return o()},set onClose(e){o(e),k()},get children(){return s()},set children(e){s(e),k()}},f=B(),p=P(f),m=e=>{var t=B(),i=P(t),a=e=>{var t=B();G(P(t),()=>fT,(e,t)=>{t(e,{onOpenChange:e=>{e||o()()},get open(){return r()},set open(e){r(e)},children:(e,t)=>{var r=B();G(P(r),()=>Bv,(e,t)=>{t(e,{get to(){return Z.targets.portals},children:(e,t)=>{var r=UE(),i=P(r);{let e=(e,t)=>{let n=()=>t?.().props,r=()=>t?.().open;var i=B(),a=P(i),o=e=>{var t=zE();qa(t,()=>({class:`chat-app__sheet-overlay`,...n()})),da(1,t,()=>IT,()=>({duration:200})),da(2,t,()=>IT,()=>({duration:200,delay:150})),V(e,t)};W(a,e=>{r()&&e(o)}),V(e,i)};G(i,()=>ax,(t,n)=>{n(t,{forceMount:!0,child:e,$$slots:{child:!0}})})}var a=F(i,2);{let e=(e,t)=>{let r=()=>t?.().props,i=()=>t?.().open;var a=B(),o=P(a),c=e=>{var t=HE();qa(t,()=>({...r()}));var i=N(t),a=N(i),o=e=>{var t=B();G(P(t),()=>jv,(e,t)=>{t(e,{children:(e,t)=>{var r=BE(),i=N(r,!0);E(r),L(()=>H(i,n())),V(e,r)},$$slots:{default:!0}})}),V(e,t)};W(a,e=>{n()&&e(o)}),G(F(a,2),()=>mT,(e,t)=>{t(e,{class:`chat-app__sheet-close`,children:(e,t)=>{var n=VE(),r=N(n),i=N(r,!0);E(r),Oh(F(r,2),{name:`dismiss`}),E(n),L(()=>H(i,Z.t.close)),V(e,n)},$$slots:{default:!0}})}),E(i),U(F(i,2),()=>s()??w),E(t),ga(t,e=>LE?.(e)),da(1,t,()=>LT,()=>({x:`100%`,opacity:1,duration:650,easing:jT})),da(2,t,()=>LT,()=>({x:`100%`,opacity:1,duration:500,easing:kT})),V(e,t)};W(o,e=>{i()&&e(c)}),V(e,a)},t=A(()=>!Z.data.chatConfig.inlineLayout&&!Z.data.props.flyout);G(a,()=>_T,(n,r)=>{r(n,{class:`chat-app__sheet-content`,trapFocus:!1,forceMount:!0,get preventScroll(){return R(t)},child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})}),V(e,r)},$$slots:{default:!0}})}),V(e,t)};W(i,e=>{Z.targets.portals&&e(a)}),V(e,t)},h=e=>{var t=GE();let i;K(t,`id`,RE);var l=N(t),u=N(l),d=N(u),f=e=>{var t=WE(),r=N(t,!0);E(t),L(()=>H(r,n())),V(e,t)};W(d,e=>{n()&&e(f)});var p=F(d,2),m=N(p),h=N(m),g=N(h,!0);E(h),Oh(F(h,2),{name:`dismiss`}),E(m),ga(m,(e,t)=>Ah?.(e,t),()=>({text:Z.t.close,position:`bottom-right`,delay:0})),E(p),E(u),U(F(u,2),()=>s()??w),E(l),E(t),ga(t,(e,t)=>LE?.(e,t),()=>({firstFocusableOnMount:!1,resetFocusOnDestroy:!1,avoidFocusLoop:a()})),oo(t,e=>M(c,e),()=>R(c)),L(()=>{i=Ea(t,1,`chat-app__aside`,null,i,{open:r()}),K(t,`role`,a()?`complementary`:`dialog`),K(t,`aria-modal`,a()?`false`:`true`),K(t,`aria-label`,Z.t.ariaReferencesRegion),K(t,`aria-hidden`,!r()),H(g,Z.t.close)}),ii(`click`,m,function(...e){o()?.apply(this,e)}),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),O(d)}ai([`click`]),J(KE,{title:{},isOpen:{},isMobile:{},showReferencesByDefault:{},onClose:{},children:{}},[],[],{mode:`open`});var qE=z(`<div class="chat-app__close-button"><button class="btn btn--tertiary btn--square"><span class="sr-only"> </span> <!></button></div>`);function JE(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`onclick`,7);var i={get onclick(){return r()},set onclick(e){r(e),k()}},a=qE(),o=N(a),s=N(o),c=N(s,!0);return E(s),Oh(F(s,2),{name:`dismiss`}),E(o),ga(o,(e,t)=>Ah?.(e,t),()=>({text:R(n).closeChat,position:`bottom-right`,delay:600})),E(a),L(()=>{K(o,`aria-label`,R(n).closeChat),H(c,R(n).closeChat)}),ii(`click`,o,function(...e){r()?.apply(this,e)}),V(e,a),O(i)}ai([`click`]),J(JE,{onclick:{}},[],[],{mode:`open`});var YE=z(`<div></div>`),XE=z(`<div><!></div>`),ZE=z(`<span class="sr-only"> </span> <!>`,1),QE=z(`<div class="dialog-footer"><!></div>`),$E=z(`<div><div class="dialog-header"><!> <!></div> <!> <!></div>`),eD=z(`<!> <!>`,1);function tD(e,t){D(t,!0);let n=q(t,`open`,7),r=q(t,`content`,7),i=q(t,`title`,7),a=q(t,`footer`,7),o=q(t,`onClose`,7),s=j(void 0),c=j(void 0),l={duration:Number(Z.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(Z.theme.components.dialog.custom?.transitionDelay)||0,y:Number(Z.theme.components.dialog.custom?.transitionY)||10},u=e=>{e||o()()};I(()=>{if(n()&&R(s)&&R(c)&&R(c).textContent){let e=nl(R(c).textContent.trim());R(s).setAttribute(`aria-label`,e),R(s).removeAttribute(`aria-labelledby`),FE(R(s))[0].focus({preventScroll:!0})}});var d={get open(){return n()},set open(e){n(e),k()},get content(){return r()},set content(e){r(e),k()},get title(){return i()},set title(e){i(e),k()},get footer(){return a()},set footer(e){a(e),k()},get onClose(){return o()},set onClose(e){o(e),k()}},f=B(),p=P(f),m=e=>{var t=B();G(P(t),()=>fT,(e,t)=>{t(e,{get open(){return n()},onOpenChange:u,children:(e,t)=>{var n=B();G(P(n),()=>Bv,(e,t)=>{t(e,{get to(){return Z.targets.portals},children:(e,t)=>{var n=eD(),o=P(n);{let e=(e,t)=>{let n=()=>t?.().props,r=()=>t?.().open;var i=B(),a=P(i),o=e=>{var t=YE();qa(t,()=>({...n(),class:`dialog-overlay`})),da(3,t,()=>IT,()=>l),V(e,t)};W(a,e=>{r()&&e(o)}),V(e,i)};G(o,()=>ax,(t,n)=>{n(t,{forceMount:!0,child:e,$$slots:{child:!0}})})}var u=F(o,2);{let e=(e,t)=>{let n=()=>t?.().props,o=()=>t?.().open;var u=B(),d=P(u),f=e=>{var t=$E();qa(t,()=>({...n(),class:`dialog-content`}));var o=N(t),u=N(o);G(u,()=>jv,(e,t)=>{t(e,{class:`dialog-title h4`,children:(e,t)=>{var n=XE();U(N(n),()=>i()??w),E(n),oo(n,e=>M(c,e),()=>R(c)),V(e,n)},$$slots:{default:!0}})}),G(F(u,2),()=>mT,(e,t)=>{t(e,{class:`dialog-close`,children:(e,t)=>{var n=ZE(),r=P(n),i=N(r,!0);E(r),Oh(F(r,2),{name:`dismiss`}),L(()=>H(i,Z.t.close)),V(e,n)},$$slots:{default:!0}})}),E(o);var d=F(o,2);G(d,()=>sx,(e,t)=>{t(e,{class:`dialog-description text-container`,children:(e,t)=>{var n=B();U(P(n),r),V(e,n)},$$slots:{default:!0}})});var f=F(d,2),p=e=>{var t=QE();U(N(t),a),E(t),V(e,t)};W(f,e=>{a()&&e(p)}),E(t),ga(t,(e,t)=>LE?.(e,t),()=>({firstFocusableOnMount:!1})),oo(t,e=>M(s,e),()=>R(s)),da(3,t,()=>LT,()=>l),V(e,t)};W(d,e=>{o()&&e(f)}),V(e,u)},t=A(()=>!Z.data.chatConfig.inlineLayout&&!Z.data.props.flyout);G(u,()=>_T,(n,r)=>{r(n,{trapFocus:!1,forceMount:!0,get preventScroll(){return R(t)},child:e,$$slots:{child:!0}})})}V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),V(e,t)};return W(p,e=>{Z.targets.portals&&e(m)}),V(e,f),O(d)}J(tD,{open:{},content:{},title:{},footer:{},onClose:{}},[],[],{mode:`open`});var nD=z(`<div><!></div>`);function rD(e,t){D(t,!0);let n=q(t,`checked`,7,!1),r=q(t,`class`,7,``);var i={get checked(){return n()},set checked(e=!1){n(e),k()},get class(){return r()},set class(e=``){r(e),k()}},a=nD();return Oh(N(a),{name:`checkbox`,class:`checkbox__icon`}),E(a),L(()=>{Ea(a,1,`checkbox ${r()??``}`),K(a,`data-checked`,n())}),V(e,a),O(i)}J(rD,{checked:{},class:{}},[],[],{mode:`open`});var iD=z(`<div><div class="radio__indicator"></div></div>`);function aD(e,t){D(t,!0);let n=q(t,`checked`,7,!1),r=q(t,`class`,7,``);var i={get checked(){return n()},set checked(e=!1){n(e),k()},get class(){return r()},set class(e=``){r(e),k()}},a=iD();return L(()=>{Ea(a,1,`radio ${r()??``}`),K(a,`data-checked`,n())}),V(e,a),O(i)}J(aD,{checked:{},class:{}},[],[],{mode:`open`});var oD=z(`<p class="form__caption"></p>`),sD=z(`<input class="form__option-input" type="radio"/> <!>`,1),cD=z(`<input class="form__option-input" type="checkbox"/> <!>`,1),lD=z(`<label class="form__option"><!> <span> </span></label>`),uD=z(`<fieldset class="form__fieldset"><legend class="form__label"> </legend> <div class="form__options"></div></fieldset>`),dD=z(`<textarea class="input"></textarea>`),fD=z(`<option disabled=""> </option>`),pD=z(`<option> </option>`),mD=z(`<div class="form__select"><select class="input"><!><!></select> <!></div>`),hD=z(`<input class="input"/>`),gD=z(`<div class="form__item"><label class="form__label"> </label> <!></div>`),_D=z(`<form class="form"><!> <!> <div class="form__fields"></div> <div class="form__footer"><button type="submit" class="btn btn--primary"> </button></div></form>`);function vD(e,t){D(t,!0);let n=q(t,`open`,7),r=q(t,`onClose`,7),i=q(t,`dialogTitle`,7),a=q(t,`caption`,7),o=q(t,`fields`,7),s=q(t,`submitLabel`,7),c=q(t,`submitEnabled`,7),l=q(t,`onSubmit`,7),u=q(t,`values`,15),d=q(t,`header`,7),f=`form-dialog-${pf()}`,p=e=>`${f}-${e}`,m=e=>(u()[e]??``).split(`,`).map(e=>e.trim()).filter(Boolean),h=(e,t)=>m(e).includes(t),g=(e,t,n)=>{let r=m(e);u(u()[e]=(n?[...r,t]:r.filter(e=>e!==t)).join(`, `),!0)};return tD(e,{get open(){return n()},get onClose(){return r()},title:e=>{var t=B();ta(P(t),i),V(e,t)},content:e=>{var t=_D(),n=N(t);U(n,()=>d()??w);var r=F(n,2),i=e=>{var t=oD();ta(t,a,!0),E(t),V(e,t)};W(r,e=>{a()&&e(i)});var f=F(r,2);Yi(f,21,o,e=>e.name,(e,t)=>{var n=B(),r=P(n),i=e=>{var n=uD(),r=N(n),i=N(r,!0);E(r);var a=F(r,2);Yi(a,21,()=>R(t).options??[],e=>e.value,(e,n)=>{var r=lD(),i=N(r),a=e=>{var r=sD(),i=P(r);Ha(i);var a=F(i,2);{let e=A(()=>u()[R(t).name]===R(n).value);aD(a,{get checked(){return R(e)}})}L(e=>{K(i,`name`,e),Ua(i,R(n).value),Wa(i,u()[R(t).name]===R(n).value)},[()=>p(R(t).name)]),ii(`change`,i,()=>u(u()[R(t).name]=R(n).value,!0)),V(e,r)},o=e=>{var r=cD(),i=P(r);Ha(i);var a=F(i,2);{let e=A(()=>h(R(t).name,R(n).value));rD(a,{get checked(){return R(e)}})}L(e=>{Ua(i,R(n).value),Wa(i,e)},[()=>h(R(t).name,R(n).value)]),ii(`change`,i,e=>g(R(t).name,R(n).value,e.currentTarget.checked)),V(e,r)};W(i,e=>{R(t).type===`radio`?e(a):e(o,-1)});var s=F(i,2),c=N(s,!0);E(s),E(r),L(()=>H(c,R(n).label)),V(e,r)}),E(a),E(n),L(()=>H(i,R(t).label)),V(e,n)},a=e=>{var n=gD(),r=N(n),i=N(r,!0);E(r);var a=F(r,2),o=e=>{var n=dD();Un(n),L(e=>{K(n,`id`,e),K(n,`placeholder`,R(t).placeholder),n.required=R(t).required},[()=>p(R(t).name)]),Za(n,()=>u()[R(t).name],e=>u(u()[R(t).name]=e,!0)),V(e,n)},s=e=>{var n=mD(),r=N(n),i=N(r),a=e=>{var n=fD(),r=N(n,!0);E(n),n.value=n.__value=``,L(()=>H(r,R(t).placeholder)),V(e,n)};W(i,e=>{R(t).placeholder&&e(a)}),Yi(F(i),17,()=>R(t).options??[],e=>e.value,(e,t)=>{var n=pD(),r=N(n,!0);E(n);var i={};L(()=>{H(r,R(t).label),i!==(i=R(t).value)&&(n.value=(n.__value=R(t).value)??``)}),V(e,n)}),E(r),Oh(F(r,2),{name:`chevronDown`,class:`form__select-arrow`}),E(n),L(e=>{K(r,`id`,e),r.required=R(t).required},[()=>p(R(t).name)]),ja(r,()=>u()[R(t).name],e=>u(u()[R(t).name]=e,!0)),V(e,n)},c=e=>{var n=hD();Ha(n),L(e=>{K(n,`type`,R(t).type),K(n,`id`,e),K(n,`placeholder`,R(t).placeholder),n.required=R(t).required},[()=>p(R(t).name)]),Za(n,()=>u()[R(t).name],e=>u(u()[R(t).name]=e,!0)),V(e,n)};W(a,e=>{R(t).type===`textarea`?e(o):R(t).type===`select`?e(s,1):e(c,-1)}),E(n),L(e=>{K(r,`for`,e),H(i,R(t).label)},[()=>p(R(t).name)]),V(e,n)};W(r,e=>{R(t).type===`checkbox`||R(t).type===`radio`?e(i):e(a,-1)}),V(e,n)}),E(f);var m=F(f,2),_=N(m),v=N(_,!0);E(_),E(m),E(t),L(()=>{_.disabled=!c(),H(v,s())}),ri(`submit`,t,async e=>{e.preventDefault(),await l()()}),V(e,t)},$$slots:{title:!0,content:!0}}),O({get open(){return n()},set open(e){n(e),k()},get onClose(){return r()},set onClose(e){r(e),k()},get dialogTitle(){return i()},set dialogTitle(e){i(e),k()},get caption(){return a()},set caption(e){a(e),k()},get fields(){return o()},set fields(e){o(e),k()},get submitLabel(){return s()},set submitLabel(e){s(e),k()},get submitEnabled(){return c()},set submitEnabled(e){c(e),k()},get onSubmit(){return l()},set onSubmit(e){l(e),k()},get values(){return u()},set values(e){u(e),k()},get header(){return d()},set header(e){d(e),k()}})}ai([`change`]),J(vD,{open:{},onClose:{},dialogTitle:{},caption:{},fields:{},submitLabel:{},submitEnabled:{},onSubmit:{},values:{},header:{}},[],[],{mode:`open`});function yD(e,t){D(t,!0);let n=A(()=>Z.data.chatConfig.answerForm),r=e=>rp(e,Z.data.language,Z.data.chatConfig.supportedLanguages),i=A(()=>R(n)?r(R(n).title??R(n).triggerLabel):``),a=A(()=>R(n)?.caption?r(R(n).caption):void 0),o=A(()=>R(n)?r(R(n).submitLabel):``),s=A(()=>R(n)?.fields.map(e=>({type:e.type,name:e.name,label:r(e.label),placeholder:e.placeholder?r(e.placeholder):void 0,required:e.required,options:e.options?.map(e=>({value:e.value,label:r(e.label)}))}))??[]),c=()=>Object.fromEntries((R(n)?.fields??[]).map(e=>[e.name,``])),l=j(Dn(c())),u=A(()=>(R(n)?.fields??[]).every(e=>!e.required||(R(l)[e.name]??``).trim()!==``));var d=B(),f=P(d),p=e=>{{let t=A(()=>!!Z.data.answerFormMessageId);vD(e,{get open(){return R(t)},get onClose(){return Sh.closeAnswerForm},get dialogTitle(){return R(i)},get caption(){return R(a)},get fields(){return R(s)},get submitLabel(){return R(o)},get submitEnabled(){return R(u)},onSubmit:async()=>{await Sh.submitAnswerForm(R(l)),M(l,c(),!0),Sh.closeAnswerForm()},get values(){return R(l)},set values(e){M(l,e,!0)}})}};W(f,e=>{R(n)&&e(p)}),V(e,d),O()}J(yD,{},[],[],{mode:`open`});var bD=z(`<button type="button" class="selected-topic__btn"> </button>`),xD=z(`<div class="selected-topic__container"><h2 class="selected-topic__label"><!> <span class="selected-topic__label-complement"> </span> <span> </span></h2> <!></div>`),SD=z(`<section class="selected-topic"><div><div><!></div></div></section>`);function CD(e,t){D(t,!0);let n=A(()=>Z.t),r=A(()=>Z.data.selectedTopic),i=j(0);var a=SD();let o;var s=N(a),c=N(s),l=N(c),u=e=>{var t=xD(),i=N(t),a=N(i);Oh(a,{name:`topic`});var o=F(a,2),s=N(o);E(o);var c=F(o,2),l=N(c,!0);E(c),E(i);var u=F(i,2),d=e=>{var t=bD(),r=N(t,!0);E(t),L(()=>H(r,R(n).changeTopic)),ii(`click`,t,()=>Sh.onChangeTopic()),V(e,t)};W(u,e=>{R(r).locked||e(d)}),E(t),L(()=>{H(s,`${R(n).selectedTopic??``}:`),H(l,R(r).label)}),da(1,t,()=>LT,()=>({duration:500,easing:jT,y:50})),da(2,t,()=>LT,()=>({duration:250,easing:AT,y:50})),V(e,t)};W(l,e=>{R(r)&&e(u)}),E(c),E(s),E(a),L(()=>{K(a,`aria-label`,R(n).ariaChangeTopic),o=Oa(a,``,o,{height:R(r)?`${R(i)}px`:`0px`}),Ea(c,1,ba([`selected-topic__animation-container`,{"selected-topic__animation-container--hidden":!R(r)}]))}),io(s,`clientHeight`,e=>M(i,e)),V(e,a),O()}ai([`click`]),J(CD,{},[],[],{mode:`open`});var wD=z(`<button><!> <div class="chat-input__settings-button-label"> </div> <!></button>`),TD=z(`<span class="context-box__notification" data-type="error"> </span>`),ED=z(`<!> <!>`,1),DD=z(`<!> <!>`,1),OD=z(`<!> <!>`,1),kD=z(`<div><div><div class="context-box__content"><div class="context-box__header"><span class="sr-only"> </span> <span> <!></span> <button type="button" class="context-box__close-button btn btn--tertiary btn--square"><!></button></div> <div><!></div> <!></div></div></div>`),AD=z(`<!> <!>`,1),jD=z(`<div><div></div> <!></div>`);function MD(e,t){D(t,!0);let n=q(t,`settingName`,7),r=q(t,`iconName`,7),i=q(t,`currentValues`,7),a=q(t,`possibleValues`,7),o=q(t,`disabled`,7),s=A(()=>Z.selectorTranslations[n()]??{name:n(),placeholder:``,values:{}}),c=A(()=>()=>i().length===0?`${R(s).placeholder}`:i().length===1?`1 ${R(s).name}`:`${i().length} ${R(s).namePlural||R(s).name}`),l=A(()=>Z.selectorsWithErrors.includes(n())),u={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},d=j(!1);I(()=>{R(d)&&setTimeout(()=>{M(d,!1)},200)});let f=()=>{M(d,!0),Sh.setSelectorValue(n(),a()),Sh.setAriaLiveStatusMessage(Z.t.ariaAllSelected)},p=async()=>{M(d,!0),Sh.setSelectorValue(n(),[]),await Kr().then(()=>{let e=Z.t.ariaAllUnselected;R(l)&&(e+=`. ${Z.t.chooseAtLeastOneOption}`),Sh.setAriaLiveStatusMessage(e)})},m=()=>{M(d,!0);let e=Sh.resetSelectorToDefaults(n());Sh.setAriaLiveStatusMessage(`${Z.t.ariaAllReseted}: ${e.join(`, `)}`)},h=j(void 0),g=j(!1);var _={get settingName(){return n()},set settingName(e){n(e),k()},get iconName(){return r()},set iconName(e){r(e),k()},get currentValues(){return i()},set currentValues(e){i(e),k()},get possibleValues(){return a()},set possibleValues(e){a(e),k()},get disabled(){return o()},set disabled(e){o(e),k()}},v=jD(),y=N(v);return oo(y,e=>M(h,e),()=>R(h)),G(F(y,2),()=>vT,(e,t)=>{t(e,{get open(){return R(g)},set open(e){M(g,e,!0)},children:(e,t)=>{var _=AD(),v=P(_);{let e=(e,t)=>{let n=()=>t?.().props;var i=wD();qa(i,()=>({type:`button`,class:`chat-input__settings-button btn btn--tertiary`,"data-has-error":R(l),...n(),disabled:o(),"aria-hidden":o(),tabindex:o()?-1:void 0}));var a=N(i);Oh(a,{get name(){return r()},class:`chat-input__settings-button-icon`});var s=F(a,2),u=N(s,!0);E(s),Oh(F(s,2),{name:`chevronDownSmall`,class:`chat-input__settings-button-chevron`}),E(i),L(e=>H(u,e),[()=>R(c)()]),V(e,i)};G(v,()=>CT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}G(F(v,2),()=>Bv,(e,t)=>{t(e,{get to(){return R(h)},children:(e,t)=>{var r=B(),o=P(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,o=()=>t?.().props,c=()=>t?.().open;var h=B(),_=P(h),v=e=>{var t=kD();qa(t,()=>({...r()}));var c=N(t);qa(c,()=>({...o()}));var h=N(c),_=N(h),v=N(_),y=N(v,!0);E(v);var b=F(v,2),x=N(b),S=F(x),C=e=>{var t=TD(),n=N(t,!0);E(t),L(()=>H(n,Z.t.chooseAtLeastOneOption)),V(e,t)};W(S,e=>{R(l)&&e(C)}),E(b);var ee=F(b,2);Oh(N(ee),{name:`menuClose`}),E(ee),E(_);var te=F(_,2);let ne;G(N(te),()=>Zw,(e,t)=>{t(e,{get value(){return i()},onValueChange:e=>{Sh.setSelectorValue(n(),e)},class:`display-contents`,children:(e,t)=>{var n=B();Yi(P(n),17,a,Gi,(e,t)=>{let n=A(Gb),r=A(()=>R(s).values?.[R(t)]||R(t));var i=B(),a=P(i);{let e=(e,t)=>{let i=()=>t?.().checked;var a=ED(),o=P(a);rD(o,{get checked(){return i()}}),G(F(o,2),()=>DT,(e,t)=>{t(e,{get for(){return R(n)},children:(e,t)=>{Ze();var n=mi();L(()=>H(n,R(r))),V(e,n)},$$slots:{default:!0}})}),V(e,a)};G(a,()=>Yw,(i,a)=>{a(i,{get value(){return R(t)},class:`context-box__menu-item context-box__menu-item--option`,get id(){return R(n)},closeOnSelect:!1,onCheckedChange:async e=>{R(d)||await Kr().then(()=>{let t=e?Z.t.ariaSelected:Z.t.ariaUnselected,n=`${R(r)}, ${t}`;R(l)&&(n+=`. ${Z.t.chooseAtLeastOneOption}`),Sh.setAriaLiveStatusMessage(n)})},children:e,$$slots:{default:!0}})})}V(e,i)}),V(e,n)},$$slots:{default:!0}})}),E(te),G(F(te,2),()=>zw,(e,t)=>{t(e,{class:`context-box__footer`,children:(e,t)=>{var n=OD(),r=P(n),i=e=>{var t=DD(),n=P(t);G(n,()=>Lw,(e,t)=>{t(e,{onclick:f,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Ze();var n=mi();L(()=>H(n,Z.t.selectAll)),V(e,n)},$$slots:{default:!0}})}),G(F(n,2),()=>Lw,(e,t)=>{t(e,{onclick:p,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Ze();var n=mi();L(()=>H(n,Z.t.selectNone)),V(e,n)},$$slots:{default:!0}})}),V(e,t)};W(r,e=>{a().length>5&&e(i)}),G(F(r,2),()=>Lw,(e,t)=>{t(e,{onclick:m,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Ze();var n=mi();L(()=>H(n,Z.t.resetToDefaults)),V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),E(h),E(c),E(t),L(()=>{H(y,Z.t.ariaCloseWithEsc),H(x,`${(R(s).intro||R(s).name)??``} `),K(ee,`aria-label`,Z.t.close),ne=Ea(te,1,`context-box__menu context-box__menu--scrollable`,null,ne,{"context-box__menu--two-cols":a().length>8,"context-box__menu--three-cols":a().length>16})}),ii(`click`,ee,()=>M(g,!1)),da(3,c,()=>LT,()=>u),V(e,t)};W(_,e=>{c()&&e(v)}),V(e,h)};G(o,()=>xT,(t,n)=>{n(t,{class:`context-box context-box--dropdown`,align:`start`,sideOffset:8,forceMount:!0,strategy:`absolute`,preventScroll:!1,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})}),V(e,_)},$$slots:{default:!0}})}),E(v),V(e,v),O(_)}ai([`click`]),J(MD,{settingName:{},iconName:{},currentValues:{},possibleValues:{},disabled:{}},[],[],{mode:`open`});var ND=z(`<button><!> <div class="chat-input__settings-button-label"><span class="chat-input__settings-button-label-name"> </span> </div> <!></button>`),PD=z(`<!> <!>`,1),FD=z(`<!> <!>`,1),ID=z(`<!> <!>`,1),LD=z(`<div><div><div class="context-box__content"><div class="context-box__header"><span class="sr-only"> </span> <span> </span> <button type="button" class="context-box__close-button btn btn--tertiary btn--square"><!></button></div> <div><!></div> <!></div></div></div>`),RD=z(`<!> <!>`,1),zD=z(`<div><div></div> <!></div>`);function BD(e,t){D(t,!0);let n=q(t,`settingName`,7),r=q(t,`iconName`,7),i=q(t,`currentValue`,7),a=q(t,`possibleValues`,7),o=q(t,`allowEmpty`,7),s=q(t,`disabled`,7),c=A(()=>Z.selectorTranslations[n()]??{name:n(),placeholder:``,values:{}}),l=A(()=>i()?R(c).values?.[i()]||i():R(c).placeholder),u=A(()=>Z.selectorsWithErrors.includes(n())),d={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},f=()=>{Sh.resetSelectorToDefaults(n())},p=j(void 0),m=j(!1);var h={get settingName(){return n()},set settingName(e){n(e),k()},get iconName(){return r()},set iconName(e){r(e),k()},get currentValue(){return i()},set currentValue(e){i(e),k()},get possibleValues(){return a()},set possibleValues(e){a(e),k()},get allowEmpty(){return o()},set allowEmpty(e){o(e),k()},get disabled(){return s()},set disabled(e){s(e),k()}},g=zD(),_=N(g);return oo(_,e=>M(p,e),()=>R(p)),G(F(_,2),()=>vT,(e,t)=>{t(e,{get open(){return R(m)},set open(e){M(m,e,!0)},children:(e,t)=>{var h=RD(),g=P(h);{let e=(e,t)=>{let n=()=>t?.().props;var i=ND();qa(i,()=>({type:`button`,class:`chat-input__settings-button btn btn--tertiary`,"data-has-error":R(u),...n(),disabled:s(),"aria-hidden":s(),tabindex:s()?-1:void 0}));var a=N(i);Oh(a,{get name(){return r()},class:`chat-input__settings-button-icon`});var o=F(a,2),d=N(o),f=N(d);E(d);var p=F(d);E(o),Oh(F(o,2),{name:`chevronDownSmall`,class:`chat-input__settings-button-chevron`}),E(i),L(()=>{H(f,`${R(c).name??``}:`),H(p,` ${R(l)??``}`)}),V(e,i)};G(g,()=>CT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}G(F(g,2),()=>Bv,(e,t)=>{t(e,{get to(){return R(p)},children:(e,t)=>{var r=B(),s=P(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,s=()=>t?.().props,l=()=>t?.().open;var u=B(),p=P(u),h=e=>{var t=LD();qa(t,()=>({...r()}));var l=N(t);qa(l,()=>({...s()}));var u=N(l),p=N(u),h=N(p),g=N(h,!0);E(h);var _=F(h,2),v=N(_,!0);E(_);var y=F(_,2);Oh(N(y),{name:`menuClose`}),E(y),E(p);var b=F(p,2);let x;var S=N(b);{let e=A(()=>i()||``);G(S,()=>qw,(t,r)=>{r(t,{get value(){return R(e)},onValueChange:e=>{e?Sh.setSelectorValue(n(),[e]):Sh.setSelectorValue(n(),[])},children:(e,t)=>{var n=ID(),r=P(n),i=e=>{let t=A(Gb);var n=B(),r=P(n);{let e=(e,n)=>{let r=()=>n?.().checked;var i=PD(),a=P(i);aD(a,{get checked(){return r()}}),G(F(a,2),()=>DT,(e,n)=>{n(e,{get for(){return R(t)},children:(e,t)=>{Ze();var n=mi();L(()=>H(n,R(c).placeholder)),V(e,n)},$$slots:{default:!0}})}),V(e,i)};G(r,()=>Uw,(n,r)=>{r(n,{value:``,class:`context-box__menu-item context-box__menu-item--option`,get id(){return R(t)},children:e,$$slots:{default:!0}})})}V(e,n)};W(r,e=>{o()&&e(i)}),Yi(F(r,2),17,a,Gi,(e,t)=>{let n=A(Gb);var r=B(),i=P(r);{let e=(e,r)=>{let i=()=>r?.().checked;var a=FD(),o=P(a);aD(o,{get checked(){return i()}}),G(F(o,2),()=>DT,(e,r)=>{r(e,{get for(){return R(n)},children:(e,n)=>{Ze();var r=mi();L(()=>H(r,R(c).values?.[R(t)]||R(t))),V(e,r)},$$slots:{default:!0}})}),V(e,a)};G(i,()=>Uw,(r,i)=>{i(r,{get value(){return R(t)},class:`context-box__menu-item context-box__menu-item--option`,get id(){return R(n)},children:e,$$slots:{default:!0}})})}V(e,r)}),V(e,n)},$$slots:{default:!0}})})}E(b),G(F(b,2),()=>zw,(e,t)=>{t(e,{class:`context-box__footer`,children:(e,t)=>{var n=B();G(P(n),()=>Lw,(e,t)=>{t(e,{onclick:f,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Ze();var n=mi();L(()=>H(n,Z.t.resetToDefaults)),V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),E(u),E(l),E(t),L(()=>{H(g,Z.t.ariaCloseWithEsc),H(v,R(c).intro||R(c).name),K(y,`aria-label`,Z.t.close),x=Ea(b,1,`context-box__menu context-box__menu--scrollable`,null,x,{"context-box__menu--two-cols":a().length>8,"context-box__menu--three-cols":a().length>16})}),ii(`click`,y,()=>M(m,!1)),da(3,l,()=>LT,()=>d),V(e,t)};W(p,e=>{l()&&e(h)}),V(e,u)};G(s,()=>xT,(t,n)=>{n(t,{class:`context-box context-box--dropdown`,align:`start`,sideOffset:8,forceMount:!0,strategy:`absolute`,preventScroll:!1,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})}),V(e,h)},$$slots:{default:!0}})}),E(g),V(e,g),O(h)}ai([`click`]),J(BD,{settingName:{},iconName:{},currentValue:{},possibleValues:{},allowEmpty:{},disabled:{}},[],[],{mode:`open`});function VD(e,t){D(t,!0);let n=q(t,`chatSettingConfig`,7),r=q(t,`settingsIsOpen`,7);var i={get chatSettingConfig(){return n()},set chatSettingConfig(e){n(e),k()},get settingsIsOpen(){return r()},set settingsIsOpen(e){r(e),k()}},a=B(),o=P(a),s=e=>{{let t=A(()=>n().iconName||n().settingName),i=A(()=>!r());BD(e,{get settingName(){return n().settingName},get iconName(){return R(t)},get currentValue(){return Z.data.selectorValues[n().settingName][0]},get possibleValues(){return n().values},get allowEmpty(){return n().allowEmpty},get disabled(){return R(i)}})}},c=e=>{{let t=A(()=>n().iconName||n().settingName),i=A(()=>!r());MD(e,{get settingName(){return n().settingName},get iconName(){return R(t)},get currentValues(){return Z.data.selectorValues[n().settingName]},get possibleValues(){return n().values},get disabled(){return R(i)}})}};return W(o,e=>{n().type===`single-select`?e(s):n().type===`multi-select`&&e(c,1)}),V(e,a),O(i)}J(VD,{chatSettingConfig:{},settingsIsOpen:{}},[],[],{mode:`open`});function HD(e,t){D(t,!0);let n=q(t,`settingsIsOpen`,7);var r={get settingsIsOpen(){return n()},set settingsIsOpen(e){n(e),k()}},i=B();return Yi(P(i),17,()=>Z.data.chatConfig.selectorsConfig,Gi,(e,t)=>{VD(e,{get settingsIsOpen(){return n()},get chatSettingConfig(){return R(t)}})}),V(e,i),O(r)}J(HD,{settingsIsOpen:{}},[],[],{mode:`open`});var UD=pi(`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><defs><linearGradient x1="0" y1="1" x2="0" y2="0"><stop></stop><stop></stop></linearGradient><mask maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><g stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><path d="M12 19v4"></path><path d="M8 23h8"></path></g></mask></defs><rect width="24" height="24"></rect></svg>`);function WD(e,t){D(t,!0);let n=q(t,`level`,7),r=q(t,`class`,7,``),i=q(t,`baseColor`,7,`var(--mic-base-color)`),a=q(t,`accentColor`,7,`var(--mic-accent-color)`),o=Math.random().toString(36).substring(2),s=`audio-level-gradient-${o}`,c=`audio-level-mask-${o}`;var l={get level(){return n()},set level(e){n(e),k()},get class(){return r()},set class(e=``){r(e),k()},get baseColor(){return i()},set baseColor(e=`var(--mic-base-color)`){i(e),k()},get accentColor(){return a()},set accentColor(e=`var(--mic-accent-color)`){a(e),k()}},u=UD(),d=N(u),f=N(d),p=N(f),m=F(p);E(f);var h=F(f);E(d);var g=F(d);return E(u),L(()=>{Ea(u,0,`audio-level-mic-svg ${r()??``}`),K(f,`id`,s),K(p,`offset`,n()/100),K(p,`stop-color`,a()),K(m,`offset`,n()/100),K(m,`stop-color`,i()),K(h,`id`,c),K(g,`fill`,`url(#${s})`),K(g,`mask`,`url(#${c})`)}),V(e,u),O(l)}J(WD,{level:{},class:{},baseColor:{},accentColor:{}},[],[],{mode:`open`});var GD=z(`<button type="button"><div class="mic-icon" aria-hidden="true"><!></div></button>`);function KD(e,t){D(t,!0);let n=typeof window<`u`,r=A(()=>Z.t),i=q(t,`class`,7),a=A(()=>!!Z.currentAudioRecorder),o=A(()=>n&&Gm.isSupported()),s=A(()=>Z.currentAudioVolume||0),c=j(!1),l=async()=>{try{R(a)?Sh.onStopSpeechRecognition():await Sh.onStartSpeechRecognition(),M(c,!1)}catch(e){console.error(`Speech recognition error:`,e),M(c,!0)}};I(()=>()=>{R(a)&&Sh.onStopSpeechRecognition()});var u={get class(){return i()},set class(e){i(e),k()}},d=B(),f=P(d),p=e=>{var t=GD();let n;var o=N(t);WD(N(o),{get level(){return R(s)}}),E(o),E(t),L(()=>{K(t,`aria-label`,R(a)?R(r).chatInputStopListening:R(r).chatInputStartListening),n=Ea(t,1,`chat-input__mic-button transition-colors ${i()??``}`,null,n,{"chat-input__mic-button--listening":R(a),"chat-input__mic-button--error":R(c)})}),ii(`click`,t,l),V(e,t)};return W(f,e=>{R(o)&&e(p)}),V(e,d),O(u)}ai([`click`]),J(KD,{class:{}},[],[],{mode:`open`});var qD=z(`<div class="chat-input__notification" data-type="error" aria-live="assertive"><!> <span class="chat-input__notification-label"> </span></div>`),JD=z(`<button><!></button>`),YD=z(`<button type="button" class="chat-input__settings-button btn btn--tertiary"><!> <div class="chat-input__settings-button-label"> </div></button>`),XD=z(`<!> <!>`,1),ZD=z(`<nav><h2 class="sr-only"> </h2> <div class="chat-input__toggle-area"><!></div> <div class="chat-input__settings"><!></div></nav>`),QD=z(`<form><!> <div class="animated-height chat-input__notification-wrapper" role="presentation"><div class="chat-input__notification-animation-element"><!></div></div> <div role="region"><h2 class="sr-only"> </h2> <textarea name="chat-input-value" class="chat-input__textarea"></textarea> <!> <div class="chat-input__buttons"><!> <button type="submit"><span class="sr-only"> </span> <!></button></div></div></form>`);function $D(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`class`,7),i=q(t,`ariaLabel`,7),a=q(t,`onSubmit`,7),o=q(t,`avoidFocusOnMount`,7),s=q(t,`disabledInput`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`class`,`ariaLabel`,`onSubmit`,`avoidFocusOnMount`,`disabledInput`]),l=A(()=>Z.data.chatInputValue),u=A(()=>Z.data.selectedTopic),d=A(()=>R(l).trim().length>(Z.data.chatConfig.questionLengthLimit||600)),f=A(()=>R(l).trim()&&!R(d)&&!Z.data.questionHasPii),p=A(()=>Z.data.currentConversationState===`answering`||Z.data.currentConversationState===`searching`),m=A(()=>!R(f)&&!R(p)),h=j(void 0),g,_=A(()=>Z.data?.chatConfig?.allowAudioInput??!0),v=A(()=>!!Z.currentAudioRecorder),y=A(()=>Z.isTranscribing),b=j(0),x=j(void 0),S=j(void 0),C=j(Dn(Z.data.selectorsIsOpen)),ee=j(Dn(Z.data.selectorsIsOpen)),te=A(()=>Z.data.chatConfig.selectorsConfig.length>0),ne=A(()=>Z.data.chatConfig.showExpandedSelectors),re=j(void 0),w,ie=A(()=>{let e=``;return Z.data.questionHasPii?e=Z.piiTranslations[Z.data.questionHasPii]:R(d)&&(e=R(n).messageTooLong?.replace(`{questionLengthLimit}`,(Z.data.chatConfig.questionLengthLimit||600).toString())?.replace(`{questionLength}`,R(l).trim().length.toString())),e}),ae=A(()=>()=>R(y)?R(n).messageBotLoading:R(v)&&R(n).chatInputPlaceholderListening?R(n).chatInputPlaceholderListening:R(u)?.placeholder?R(u).placeholder:R(n).chatInputPlaceholder),oe=()=>{R(p)?Sh.abort():R(f)&&(a()(R(l)),pe(),Wm()&&R(h)?.blur())},se=e=>{e.preventDefault(),oe()},ce=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),oe())},le=e=>{e.composedPath()[0].matches(`button, a, textarea, input`)||setTimeout(()=>{R(h)?.blur()},100)},ue=()=>{Wm()&&window.addEventListener(`pointerdown`,le)},de=()=>{Wm()&&window.removeEventListener(`pointerdown`,le)},fe=e=>{if(!e.value){e.value=e.placeholder;let t=Math.ceil(e.scrollHeight);return e.value=``,t}return e.scrollHeight},pe=()=>{Kr().then(()=>{if(R(h)){R(h).style.height=`auto`;let e=fe(R(h));R(h).style.height=`${e}px`}})};I(()=>{R(l)&&pe()});let me=e=>{pe(),Sh.onInput(e.currentTarget.value),w&&clearTimeout(w),w=setTimeout(()=>{R(ie)&&Sh.setAriaLiveStatusMessage(R(ie))},1e3)},he=()=>{M(C,!1),Kr().then(()=>R(x)?.focus())};I(()=>{if(R(h))return g=new ResizeObserver(()=>{pe()}),g.observe(R(h)),()=>{g.disconnect()}}),I(()=>{let e=new URLSearchParams(window.location.search),t=e.get(`prefill`);t&&(M(l,t),e.delete(`prefill`),history.replaceState(null,``,`${location.pathname}?${e.toString()}${window.location.hash}`))}),Fi(()=>{!Wm()&&!o()&&setTimeout(()=>{R(h)?.focus()},100)}),I(()=>{let e=R(C)&&!R(ee);M(ee,R(C),!0),e&&(R(x)?.setAttribute(kh,`true`),Z.data.chatConfig.showExpandedSelectors||Kr().then(()=>R(S)?.focus({preventScroll:!0})))});function ge(){R(h)?.focus()}var _e={focus:ge,get class(){return r()},set class(e){r(e),k()},get ariaLabel(){return i()},set ariaLabel(e){i(e),k()},get onSubmit(){return a()},set onSubmit(e){a(e),k()},get avoidFocusOnMount(){return o()},set avoidFocusOnMount(e){o(e),k()},get disabledInput(){return s()},set disabledInput(e){s(e),k()}},ve=QD();ri(`resize`,An,pe),qa(ve,()=>({name:`chat-input`,onsubmit:se,class:[`chat-input`,{"chat-input--disabled":s()},r()],...c,inert:s()?!0:void 0}));var ye=N(ve);CD(ye,{});var be=F(ye,2);let xe;var Se=N(be),Ce=N(Se),we=e=>{var t=qD(),n=N(t);Oh(n,{name:`warning`,class:`chat-input__notification-icon`});var r=F(n,2),i=N(r,!0);E(r),E(t),L(()=>H(i,R(ie))),da(2,t,()=>IT,()=>({duration:100,delay:1e3})),V(e,t)};W(Ce,e=>{R(ie)&&e(we)}),E(Se),E(be);var Te=F(be,2);let Ee;var De=N(Te),Oe=N(De,!0);E(De);var ke=F(De,2);Un(ke),K(ke,`rows`,1),oo(ke,e=>M(h,e),()=>R(h)),ga(ke,(e,t)=>Ch?.(e,t),()=>`chatInput`),ga(ke,(e,t)=>wh?.(e,t),()=>`chatInput`);var Ae=F(ke,2),je=e=>{var t=B(),r=P(t);{let e=e=>{var t=ZD(),r=N(t),i=N(r,!0);E(r);var a=F(r,2),o=N(a);{let e=(e,t)=>{let r=()=>t?.().props;var i=JD();qa(i,()=>({class:`chat-input__settings-toggle-button btn btn--tertiary btn--square`,...r(),disabled:R(C),"aria-hidden":R(C),"aria-label":R(n).showSettings,tabindex:R(C)?-1:void 0})),Oh(N(i),{name:`settings`}),E(i),ga(i,(e,t)=>Ah?.(e,t),()=>({text:R(C)?``:R(n).showSettings,position:`top`,delay:0})),oo(i,e=>M(x,e),()=>R(x)),V(e,i)};G(o,()=>Sx,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}E(a);var s=F(a,2);G(N(s),()=>bx,(e,t)=>{t(e,{class:`display-contents`,forceMount:!0,children:(e,t)=>{var r=XD(),i=P(r),a=e=>{var t=YD(),r=N(t);Oh(r,{name:`settingsClose`,class:`chat-input__settings-button-icon`});var i=F(r,2),a=N(i,!0);E(i),E(t),oo(t,e=>M(S,e),()=>R(S)),L(()=>{K(t,`aria-label`,R(n).hideSettings),K(t,`aria-hidden`,!R(C)),t.disabled=!R(C),K(t,`tabindex`,R(C)?void 0:-1),H(a,R(n).hideSettings)}),ii(`click`,t,he),V(e,t)};W(i,e=>{R(ne)||e(a)}),HD(F(i,2),{get settingsIsOpen(){return R(C)}}),V(e,r)},$$slots:{default:!0}})}),E(s),E(t),L(()=>{K(t,`aria-label`,R(n).ariaSettingsRegion),H(i,R(n).ariaSettings)}),io(s,`clientHeight`,e=>M(b,e)),V(e,t)};G(r,()=>vx,(t,n)=>{n(t,{get open(){return R(C)},set open(e){M(C,e,!0)},child:e,$$slots:{child:!0}})})}V(e,t)};W(Ae,e=>{R(te)&&e(je)});var Me=F(Ae,2),Ne=N(Me),Pe=e=>{KD(e,{})};W(Ne,e=>{R(_)&&e(Pe)});var Fe=F(Ne,2);let Ie;var Le=N(Fe),Re=N(Le,!0);E(Le);var ze=F(Le,2),Be=e=>{Oh(e,{name:`abort`,class:`chat-input__submit-icon`})},Ve=e=>{Oh(e,{name:`submit`,class:`chat-input__submit-icon`})};return W(ze,e=>{R(p)?e(Be):e(Ve,-1)}),E(Fe),E(Me),E(Te),E(ve),L(e=>{xe=Oa(be,``,xe,{height:R(ie)?`${R(re)}px`:`0px`}),Ee=Ea(Te,1,`chat-input__grid`,null,Ee,{"chat-input__grid--has-settings":R(te),"chat-input__grid--settings-is-open":R(C)}),Oa(Te,`--chat-input-settings-height: ${R(C)?R(b):0}px`),K(Te,`aria-label`,R(n).ariaAskQuestionRegion),H(Oe,R(n).ariaAskQuestion),Ua(ke,R(l)),K(ke,`aria-label`,i()),K(ke,`placeholder`,e),Fe.disabled=R(m),Ie=Ea(Fe,1,`chat-input__submit-button transition-colors`,null,Ie,{"chat-input__submit-button--deactivated":R(m)}),H(Re,R(p)?R(n).chatInputAbort:R(n).chatInputSubmit)},[()=>R(ae)()]),io(Se,`clientHeight`,e=>M(re,e)),ii(`input`,ke,me),ii(`focusin`,ke,ue),ii(`focusout`,ke,de),ri(`keypress`,ke,ce),V(e,ve),O(_e)}ai([`input`,`focusin`,`focusout`,`click`]),J($D,{class:{},ariaLabel:{},onSubmit:{},avoidFocusOnMount:{},disabledInput:{}},[],[`focus`],{mode:`open`});var eO=z(`<label class="classification-feedback__option btn btn--secondary"><input type="radio" name="quality"/> </label>`),tO=z(`<fieldset class="classification-feedback__item"><legend class="classification-feedback__label"> </legend> <!></fieldset>`),nO=z(`<label class="classification-feedback__option btn btn--secondary"><input type="radio" name="impact"/> </label>`),rO=z(`<fieldset class="classification-feedback__item"><legend class="classification-feedback__label"> </legend> <!></fieldset>`),iO=z(`<div class="classification-feedback"><div class="classification-feedback__title"> </div> <!></div>`);function aO(e,t){D(t,!0);let n=[],r=[],i=A(()=>Z.t),a=q(t,`impact`,15),o=q(t,`quality`,15),s=q(t,`classificationConfig`,7),c=[`quality`,`impact`],l=A(()=>[...new Set([...s()?.order??[],...c])]);var u={get impact(){return a()},set impact(e){a(e),k()},get quality(){return o()},set quality(e){o(e),k()},get classificationConfig(){return s()},set classificationConfig(e){s(e),k()}},d=B(),f=P(d),p=e=>{var t=iO(),c=N(t),u=N(c,!0);E(c),Yi(F(c,2),17,()=>R(l),Gi,(e,t)=>{var i=B(),c=P(i),l=e=>{var t=B(),r=P(t),i=e=>{var t=tO(),r=N(t),i=N(r,!0);E(r),Yi(F(r,2),17,()=>s().quality.options,Gi,(e,t)=>{var r=eO(),i=N(r);Ha(i);var a,s=F(i);E(r),L(()=>{a!==(a=R(t).value)&&(i.value=(i.__value=R(t).value)??``),H(s,` ${R(t).label??``}`)}),$a(n,[],i,()=>(R(t).value,o()),o),V(e,r)}),E(t),L(()=>H(i,s().quality.label)),V(e,t)};W(r,e=>{s().quality&&s().quality.options.length!==0&&e(i)}),V(e,t)},u=e=>{var t=rO(),n=N(t),i=N(n,!0);E(n),Yi(F(n,2),17,()=>s().impact.options,Gi,(e,t)=>{var n=nO(),i=N(n);Ha(i);var o,s=F(i);E(n),L(()=>{o!==(o=R(t).value)&&(i.value=(i.__value=R(t).value)??``),H(s,` ${R(t).label??``}`)}),$a(r,[],i,()=>(R(t).value,a()),a),V(e,n)}),E(t),L(()=>H(i,s().impact.label)),V(e,t)};W(c,e=>{R(t)===`quality`?e(l):s().impact&&s().impact.options.length!==0&&e(u,1)}),V(e,i)}),E(t),L(()=>H(u,R(i).classificationTitle)),V(e,t)};return W(f,e=>{s()&&(s().quality||s().impact)&&e(p)}),V(e,d),O(u)}J(aO,{impact:{},quality:{},classificationConfig:{}},[],[],{mode:`open`});function oO(e,t){D(t,!0);let n=A(()=>Z.t),r=j(void 0),i=j(void 0),a=j(Dn({message:``,email:``})),o=A(()=>[{type:`textarea`,name:`message`,label:R(n).feedbackFormMessage,placeholder:R(n).feedbackFormMessagePlaceholder},...Z.data.chatConfig.showOverallFeedbackEmail?[{type:`email`,name:`email`,label:R(n).feedbackFormEmail,placeholder:R(n).feedbackFormEmailPlaceholder}]:[]]),s=A(()=>R(r)!==void 0||R(i)!==void 0||R(a).message!==``);{let t=e=>{aO(e,{get classificationConfig(){return Z.data.chatConfig.classification},get impact(){return R(r)},set impact(e){M(r,e,!0)},get quality(){return R(i)},set quality(e){M(i,e,!0)}})},c=A(()=>!!Z.data.conversationFeedbackId||Z.data.conversationFeedbackIsOpen);vD(e,{get open(){return R(c)},get onClose(){return Sh.closeFeedback},get dialogTitle(){return R(n).feedbackFormTitle},get fields(){return R(o)},get submitEnabled(){return R(s)},get submitLabel(){return R(n).send},onSubmit:async()=>{Z.data.chatConfig.classification?await Sh.submitFeedback({email:R(a).email,message:R(a).message,classification:{impact:R(r),quality:R(i)}}):await Sh.submitFeedback({email:R(a).email,message:R(a).message}),M(r,void 0),M(i,void 0),M(a,{message:``,email:``},!0),Sh.closeFeedback()},get values(){return R(a)},set values(e){M(a,e,!0)},header:t,$$slots:{header:!0}})}O()}J(oO,{},[],[],{mode:`open`});var sO=z(`<div><button class="btn btn--primary" aria-haspopup="dialog"> </button></div>`),cO=z(`<a class="skip-link"> </a>`),lO=z(`<div class="chat-page__footer-text"></div>`),uO=z(`<section class="chat-page"><!> <!> <div class="chat-page__survey-portal"><div class="container"></div></div> <div class="chat-page__body"><h2 class="sr-only"></h2> <div class="chat-page__messages"></div> <div class="chat-page__buttons"><!></div></div> <div><div class="container"><div class="chat-page__footer-content"><button aria-hidden="true"><span class="sr-only"> </span> <!></button> <!> <!> <!></div></div></div></section>`);function dO(e,t){D(t,!0);let n=A(()=>Z.t),r=j(!1),i=j(void 0),a=j(void 0),o=j(void 0),s=j(void 0),c=j(void 0),l,u=A(()=>Z.data.history.findLast(e=>e.type===`bot`)),d=A(()=>Z.data.history.findLast(e=>e.type===`bot`||e.type===`component`)),f=A(()=>R(d)?.type===`component`&&!!R(d).hideChatInput),p=A(()=>!!R(u)?.noFeedback),m=e=>{l&&rg(l,l.scrollHeight-l.clientHeight,e,`scrollTop`,kT)},h=()=>{l&&M(r,!(l.scrollHeight-l.scrollTop-l.clientHeight<90))},g,_=j(!1),v=()=>{M(_,!1),g?.disconnect(),g=new IntersectionObserver(([e])=>{e.isIntersecting?(M(_,!0),g.disconnect()):M(_,!1)},{root:Z.targets.scrollContainer,rootMargin:`0px 0px -30% 0px`}),R(s)&&g.observe(R(s))};Fi(()=>(v(),window.addEventListener(`resize`,v),()=>{g?.disconnect(),window.removeEventListener(`resize`,v)}));let y=()=>{h()},b=e=>{if(e.altKey&&e.code===`KeyR`){if(Z.data.chatConfig.forceChatPage)return;e.preventDefault();let t=Z.data.history.findLast(e=>e.type===`user`)?.message;Sh.goto({name:`start-page`,prefill:t})}},x=()=>{setTimeout(()=>{let{chatAppContainer:e,chatAppHeader:t,chatPageMessages:n,chatPageLastUserMessage:r}=Z.targets;if(!(Z.data.chatConfig.inlineLayout&&!Z.data.props.flyout&&!Z.data.isInlineLayoutContained)&&e&&t&&R(s)&&n&&R(a)&&R(o)&&r){let i=e.clientHeight-t.offsetHeight-R(s).offsetHeight-R(o).offsetHeight-r.offsetHeight-parseInt(getComputedStyle(n).gap)*2;i>0?(R(a).style.setProperty(`--last-bot-message-min-height`,`${i}px`),m(1e3)):r.scrollIntoView({behavior:`smooth`})}},150)},S=()=>{Sh.onSubmit(!0)};I(()=>{R(i)&&(l=R(i).closest(`.chat-app__main`))}),I(()=>{if(l)return l.addEventListener(`scroll`,h),()=>{l.removeEventListener(`scroll`,h)}}),I(()=>{!R(f)&&!Wm()&&Kr().then(()=>R(c)?.focus())});let C=e=>{let t=Z.data.history[e-1];t&&t.type===`user`&&(Sh.updateChatInput(t.message),R(c)?.focus())};var ee=uO();ri(`resize`,An,y),ri(`keypress`,An,b);var te=N(ee);oO(te,{});var ne=F(te,2);yD(ne,{});var re=F(ne,2);ga(N(re),(e,t)=>wh?.(e,t),()=>`surveyPortal`),E(re);var w=F(re,2),ie=N(w);ta(ie,()=>R(n).ariaChatHistory,!0),E(ie);var ae=F(ie,2);Yi(ae,23,()=>Z.data.history,e=>e?.id??e?.time,(e,t,n)=>{{let r=A(()=>R(n)===Z.data.history.length-1);PE(e,{get message(){return R(t)},get index(){return R(n)},onmessageupdate:h,onbotmessageinit:x,onaskQuestion:()=>{C(R(n))},get isLast(){return R(r)}})}}),E(ae),oo(ae,e=>M(a,e),()=>R(a)),ga(ae,(e,t)=>wh?.(e,t),()=>`chatPageMessages`);var oe=F(ae,2),se=N(oe),ce=e=>{var t=sO(),r=N(t),i=N(r,!0);E(r),E(t),L(()=>{Ea(t,1,ba([`chat-page__give-feedback`,{"chat-page__give-feedback--disabled":R(p)}])),t.inert=R(p)?!0:void 0,K(r,`aria-expanded`,Z.data.conversationFeedbackIsOpen),H(i,R(n).giveFeedback)}),ii(`click`,r,()=>Sh.openConversationFeedback()),V(e,t)};W(se,e=>{Z.data.chatConfig.showOverallFeedbackButton&&e(ce)}),E(oe),oo(oe,e=>M(o,e),()=>R(o)),E(w);var le=F(w,2),ue=N(le),de=N(ue),fe=N(de);let pe;K(fe,`tabindex`,-1);var me=N(fe),he=N(me,!0);E(me),Oh(F(me,2),{name:`chevronDown`}),E(fe);var ge=F(fe,2);oo($D(ge,{onSubmit:S,class:`chat-page__chat-input`,get disabledInput(){return R(f)}}),e=>M(c,e,!0),()=>R(c));var _e=F(ge,2),ve=e=>{var t=cO(),r=N(t,!0);E(t),L(()=>{K(t,`href`,`#${Sj}`),H(r,R(n).ariaGotoMainNavigation)}),ii(`click`,t,function(...e){Cj?.apply(this,e)}),V(e,t)};W(_e,e=>{Z.hasMainNavigationContent&&e(ve)});var ye=F(_e,2),be=e=>{var t=lO();ta(t,()=>R(n).chatFooterText,!0),E(t),V(e,t)};W(ye,e=>{R(n).chatFooterText!==void 0&&e(be)}),E(de),E(ue),E(le),oo(le,e=>M(s,e),()=>R(s)),E(ee),oo(ee,e=>M(i,e),()=>R(i)),L(()=>{Ea(le,1,ba([`chat-page__footer`,{"chat-page__footer--unsticked":R(_)}])),pe=Ea(fe,1,`chat-page__scroll-to-bottom btn btn--secondary btn--square`,null,pe,{"chat-page__scroll-to-bottom--hidden":!R(r)}),fe.disabled=!R(r),H(he,R(n).scrollToBottom)}),ii(`click`,fe,()=>{m(500)}),V(e,ee),O()}ai([`click`]),J(dO,{},[],[],{mode:`open`});var fO=z(`<div><!> <h2 class="introduction__title"></h2></div>`);function pO(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`class`,7);var i={get class(){return r()},set class(e){r(e),k()}},a=fO(),o=N(a);xE(o,{class:`introduction__avatar`,isLarge:!0});var s=F(o,2);return ta(s,()=>R(n).introductionTitle,!0),E(s),E(a),L(()=>Ea(a,1,`introduction ${r()??``}`)),V(e,a),O(i)}J(pO,{class:{}},[],[],{mode:`open`});var mO=z(`<div class="consent-page__disclaimer text-container fly-in" style="--fly-in-id: 1;"></div>`),hO=z(`<button class="btn btn--secondary" type="button"> </button>`),gO=z(`<section><!> <!> <div class="consent-page__actions fly-in" style="--fly-in-id: 2;"><!> <button class="btn btn--primary" type="button"> </button></div></section>`);function _O(e,t){D(t,!0);let n=A(()=>Z.t),r=A(()=>R(n).popups?.find(e=>e.actions?.some(e=>e.action===`acceptTerms`))),i=j(!1);I(()=>{M(i,!0)});var a=gO();let o;var s=N(a);pO(s,{class:`consent-page__introduction fly-in`});var c=F(s,2),l=e=>{var t=mO();ta(t,()=>R(n).termsInvitationToConsent,!0),E(t),V(e,t)};W(c,e=>{R(n).termsInvitationToConsent&&e(l)});var u=F(c,2),d=N(u),f=e=>{var t=hO(),i=N(t,!0);E(t),L(()=>H(i,R(n).termsReadButton)),ii(`click`,t,()=>window.location.hash=R(r).hash),V(e,t)};W(d,e=>{R(r)&&e(f)});var p=F(d,2),m=N(p,!0);E(p),E(u),E(a),L(()=>{o=Ea(a,1,`consent-page container`,null,o,{mounted:R(i)}),H(m,R(n).termsAcceptButton)}),ii(`click`,p,()=>Sh.acceptTerms()),V(e,a),O()}ai([`click`]),J(_O,{},[],[],{mode:`open`});var vO=z(`<button><span class="sr-only"> </span> <!></button>`),yO=z(`<div><div><button type="button" class="context-box__popover-close"><!> <span class="sr-only"> </span></button> <!></div></div>`),bO=z(`<!> <!>`,1),xO=z(`<div><!></div>`);function SO(e,t){D(t,!0);let n={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},r=q(t,`openLabel`,7),i=q(t,`closeLabel`,7),a=q(t,`openIcon`,7),o=q(t,`closeIcon`,7),s=q(t,`ariaLabel`,7),c=q(t,`children`,7),l=q(t,`class`,7),u=q(t,`contentClass`,7),d=q(t,`portal`,7),f=j(!1),p=j(void 0);I(()=>{R(f)?(R(p)?.setAttribute(kh,`true`),Yr(()=>Sh.setOpenOverlay(!0))):Yr(()=>Sh.setOpenOverlay(!1))});var m={get openLabel(){return r()},set openLabel(e){r(e),k()},get closeLabel(){return i()},set closeLabel(e){i(e),k()},get openIcon(){return a()},set openIcon(e){a(e),k()},get closeIcon(){return o()},set closeIcon(e){o(e),k()},get ariaLabel(){return s()},set ariaLabel(e){s(e),k()},get children(){return c()},set children(e){c(e),k()},get class(){return l()},set class(e){l(e),k()},get contentClass(){return u()},set contentClass(e){u(e),k()},get portal(){return d()},set portal(e){d(e),k()}},h=xO();return G(N(h),()=>OT,(e,t)=>{t(e,{get open(){return R(f)},set open(e){M(f,e,!0)},children:(e,t)=>{var l=bO(),m=P(l);{let e=(e,t)=>{let n=()=>t?.().props;var s=vO();qa(s,()=>({class:`context-box__trigger btn btn--tertiary btn--square`,...n(),"aria-controls":d()?.id}));var c=N(s),l=N(c,!0);E(c);var u=F(c,2);{let e=A(()=>R(f)?o():a());Oh(u,{get name(){return R(e)}})}E(s),ga(s,(e,t)=>Ah?.(e,t),()=>({text:R(f)?i():r(),position:`bottom-right`,delay:0})),oo(s,e=>M(p,e),()=>R(p)),L(()=>H(l,R(f)?i():r())),V(e,s)};G(m,()=>dT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}var h=F(m,2);{let e=A(()=>d()||Z.targets.portals);G(h,()=>Bv,(t,r)=>{r(t,{get to(){return R(e)},children:(e,t)=>{var r=B(),a=P(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,a=()=>t?.().props,l=()=>t?.().open;var u=B(),d=P(u),p=e=>{var t=yO();qa(t,()=>({...r()}));var l=N(t);qa(l,()=>({...a(),role:`dialog`,"aria-label":s()}));var u=N(l),d=N(u);Oh(d,{get name(){return o()}});var p=F(d,2),m=N(p,!0);E(p),E(u),U(F(u,2),c),E(l),ga(l,e=>LE?.(e)),E(t),L(()=>H(m,i())),ii(`click`,u,()=>M(f,!1)),da(3,l,()=>LT,()=>n),V(e,t)};W(d,e=>{l()&&e(p)}),V(e,u)},t=A(()=>[`context-box__content`,u()]);G(a,()=>lT,(n,r)=>{r(n,{get class(){return R(t)},sideOffset:8,alignOffset:-11,align:`end`,side:`bottom`,strategy:`absolute`,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:()=>R(p)?.focus(),forceMount:!0,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})})}V(e,l)},$$slots:{default:!0}})}),E(h),L(()=>Ea(h,1,ba([`context-box`,l()]))),V(e,h),O(m)}ai([`click`]),J(SO,{openLabel:{},closeLabel:{},openIcon:{},closeIcon:{},ariaLabel:{},children:{},class:{},contentClass:{},portal:{}},[],[],{mode:`open`});var CO=z(`<div class="text-container" aria-live="polite"><span class="sr-only"> </span> <!></div>`);function wO(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`content`,7);return SO(e,{get openLabel(){return R(n).openInfo},get closeLabel(){return R(n).close},openIcon:`info`,closeIcon:`menuClose`,contentClass:`context-box__content--info`,get portal(){return Z.targets.chatAppHeaderPortal},get ariaLabel(){return R(n).ariaInfoTitle},children:(e,t)=>{var i=CO(),a=N(i),o=N(a,!0);E(a),ta(F(a,2),r),E(i),L(()=>H(o,R(n).ariaCloseWithEsc)),V(e,i)},$$slots:{default:!0}}),O({get content(){return r()},set content(e){r(e),k()}})}J(wO,{content:{}},[],[],{mode:`open`});var TO=z(`<button><span class="sr-only"> </span> <!></button>`),EO=z(`<div><div><!></div></div>`),DO=z(`<!> <!>`,1),OO=z(`<div><!></div>`);function kO(e,t){D(t,!0);let n={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},r=q(t,`openLabel`,7),i=q(t,`closeLabel`,7),a=q(t,`openIcon`,7),o=q(t,`closeIcon`,7),s=q(t,`disableAutoFocusOnOpen`,7,!1),c=q(t,`children`,7),l=q(t,`class`,7),u=q(t,`contentClass`,7),d=q(t,`portal`,7),f=j(!1),p=j(void 0);I(()=>{R(f)?(R(p)?.setAttribute(kh,`true`),Yr(()=>Sh.setOpenOverlay(!0))):Yr(()=>Sh.setOpenOverlay(!1))});var m={get openLabel(){return r()},set openLabel(e){r(e),k()},get closeLabel(){return i()},set closeLabel(e){i(e),k()},get openIcon(){return a()},set openIcon(e){a(e),k()},get closeIcon(){return o()},set closeIcon(e){o(e),k()},get disableAutoFocusOnOpen(){return s()},set disableAutoFocusOnOpen(e=!1){s(e),k()},get children(){return c()},set children(e){c(e),k()},get class(){return l()},set class(e){l(e),k()},get contentClass(){return u()},set contentClass(e){u(e),k()},get portal(){return d()},set portal(e){d(e),k()}},h=OO();return G(N(h),()=>vT,(e,t)=>{t(e,{get open(){return R(f)},set open(e){M(f,e,!0)},children:(e,t)=>{var l=DO(),m=P(l);{let e=(e,t)=>{let n=()=>t?.().props;var s=TO();qa(s,()=>({class:`context-box__trigger btn btn--tertiary btn--square`,...n(),"aria-controls":d()?.id}));var c=N(s),l=N(c,!0);E(c);var u=F(c,2);{let e=A(()=>R(f)?o():a());Oh(u,{get name(){return R(e)}})}E(s),ga(s,(e,t)=>Ah?.(e,t),()=>({text:R(f)?i():r(),position:`bottom-right`,delay:0})),oo(s,e=>M(p,e),()=>R(p)),L(()=>H(l,R(f)?i():r())),V(e,s)};G(m,()=>CT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}var h=F(m,2);{let e=A(()=>d()||Z.targets.portals);G(h,()=>Bv,(t,r)=>{r(t,{get to(){return R(e)},children:(e,t)=>{var r=B(),i=P(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,i=()=>t?.().props,a=()=>t?.().open;var o=B(),s=P(o),l=e=>{var t=EO();qa(t,()=>({...r()}));var a=N(t);qa(a,()=>({...i()})),U(N(a),c),E(a),E(t),da(3,a,()=>LT,()=>n),V(e,t)};W(s,e=>{a()&&e(l)}),V(e,o)},t=A(()=>[`context-box__content`,u()]);G(i,()=>xT,(n,r)=>{r(n,{get class(){return R(t)},sideOffset:8,alignOffset:-11,align:`end`,side:`bottom`,strategy:`absolute`,onOpenAutoFocus:e=>{s()&&e.preventDefault()},forceMount:!0,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})})}V(e,l)},$$slots:{default:!0}})}),E(h),L(()=>Ea(h,1,ba([`context-box`,l()]))),V(e,h),O(m)}J(kO,{openLabel:{},closeLabel:{},openIcon:{},closeIcon:{},disableAutoFocusOnOpen:{},children:{},class:{},contentClass:{},portal:{}},[],[],{mode:`open`});var AO=e=>e.charAt(0).toUpperCase()+e.slice(1),jO=z(`<span class="sr-only"> </span>`),MO=z(`<!> <span> <!></span>`,1),NO=z(`<div class="context-box__menu"></div>`),PO=z(`<!> <span> </span>`,1),FO=z(`<!> <div class="context-box__menu"></div>`,1),IO=z(`<!> <!>`,1),LO=z(`<!> <span> </span>`,1),RO=z(`<!> <span> </span>`,1),zO=z(`<!> <div class="context-box__color-scheme-selector"><!> <!> <!></div>`,1),BO=z(`<!> <!>`,1),VO=z(`<!> <!> <!>`,1);function HO(e,t){D(t,!0);let n=A(()=>Z.t),r=e=>{Sh.onLanguageChange(e)},i=e=>`Intl`in globalThis&&Intl.DisplayNames?AO(new Intl.DisplayNames([e],{type:`language`}).of(e)??e.toUpperCase()):e.toUpperCase(),a=e=>{Z.data.selectedColorScheme===e?Sh.setColorScheme(`system`):Sh.setColorScheme(e)};kO(e,{get openLabel(){return R(n).openMenu},get closeLabel(){return R(n).closeMenu},openIcon:`menu`,closeIcon:`menuClose`,contentClass:`context-box__content--menu`,get portal(){return Z.targets.chatAppHeaderPortal},children:(e,t)=>{var o=VO(),s=P(o),c=e=>{var t=NO();Yi(t,21,()=>Z.menu,Gi,(e,t)=>{var r=B();G(P(r),()=>Lw,(e,r)=>{r(e,{class:`context-box__menu-item transition-colors`,onSelect:()=>window.open(R(t).url,R(t).target,`noopener,noreferrer`),closeOnSelect:!0,children:(e,r)=>{var i=MO(),a=P(i);Oh(a,{get name(){return R(t).icon},class:`context-box__menu-item__icon`});var o=F(a,2),s=N(o,!0),c=F(s),l=e=>{var t=jO(),r=N(t);E(t),L(()=>H(r,`, ${R(n).ariaOpensInNewTab??``}`)),V(e,t)};W(c,e=>{R(t).target===`_blank`&&e(l)}),E(o),L(()=>H(s,R(t).label)),V(e,i)},$$slots:{default:!0}})}),V(e,r)}),E(t),V(e,t)};W(s,e=>{Z.menu.length>0&&e(c)});var l=F(s,2),u=e=>{var t=IO(),a=P(t),o=e=>{var t=B();G(P(t),()=>Gw,(e,t)=>{t(e,{class:`context-box__separator`,"aria-hidden":`true`})}),V(e,t)};W(a,e=>{Z.menu.length>0&&e(o)}),G(F(a,2),()=>qw,(e,t)=>{t(e,{children:(e,t)=>{var a=FO(),o=P(a);G(o,()=>Vw,(e,t)=>{t(e,{class:`context-box__title`,"aria-hidden":`true`,children:(e,t)=>{Ze();var r=mi();L(()=>H(r,R(n).selectLanguage)),V(e,r)},$$slots:{default:!0}})});var s=F(o,2);Yi(s,21,()=>Z.data.chatConfig.supportedLanguages,Gi,(e,t)=>{var n=B(),a=P(n);{let e=A(()=>[`context-box__menu-item transition-colors`,{active:Z.data.language===R(t)}]);G(a,()=>Uw,(n,a)=>{a(n,{get value(){return R(t)},closeOnSelect:!0,get class(){return R(e)},onSelect:()=>r(R(t)),children:(e,n)=>{var r=PO(),a=P(r);Oh(a,{name:`internalLink`,class:`context-box__menu-item__icon`});var o=F(a,2),s=N(o,!0);E(o),L(e=>H(s,e),[()=>i(R(t))]),V(e,r)},$$slots:{default:!0}})})}V(e,n)}),E(s),V(e,a)},$$slots:{default:!0}})}),V(e,t)};W(l,e=>{Z.data.chatConfig.supportedLanguages.length>0&&e(u)});var d=F(l,2),f=e=>{var t=BO(),r=P(t);G(r,()=>Gw,(e,t)=>{t(e,{class:`context-box__separator`,"aria-hidden":`true`})}),G(F(r,2),()=>qw,(e,t)=>{t(e,{children:(e,t)=>{var r=zO(),i=P(r);G(i,()=>Vw,(e,t)=>{t(e,{class:`context-box__title sr-only`,"aria-hidden":`true`,children:(e,t)=>{Ze();var r=mi();L(()=>H(r,R(n).selectColorTheme)),V(e,r)},$$slots:{default:!0}})});var o=F(i,2),s=N(o);{let e=A(()=>[`context-box__color-scheme-selector-button transition-colors`,{"context-box__color-scheme-selector-button--active":Z.data.selectedColorScheme===`light`}]);G(s,()=>Uw,(t,n)=>{n(t,{value:`light`,closeOnSelect:!0,get class(){return R(e)},onSelect:()=>a(`light`),children:(e,t)=>{var n=LO(),r=P(n);Oh(r,{name:`lightMode`});var i=F(r,2),a=N(i,!0);E(i),L(()=>H(a,Z.t.lightMode)),V(e,n)},$$slots:{default:!0}})})}var c=F(s,2);G(c,()=>Gw,(e,t)=>{t(e,{class:`context-box__color-scheme-selector-separator`,"aria-hidden":`true`})});var l=F(c,2);{let e=A(()=>[`context-box__color-scheme-selector-button transition-colors`,{"context-box__color-scheme-selector-button--active":Z.data.selectedColorScheme===`dark`}]);G(l,()=>Uw,(t,n)=>{n(t,{value:`dark`,closeOnSelect:!0,get class(){return R(e)},onSelect:()=>a(`dark`),children:(e,t)=>{var n=RO(),r=P(n);Oh(r,{name:`darkMode`});var i=F(r,2),a=N(i,!0);E(i),L(()=>H(a,Z.t.darkMode)),V(e,n)},$$slots:{default:!0}})})}E(o),V(e,r)},$$slots:{default:!0}})}),V(e,t)};W(d,e=>{Z.data.has2ColorSchemes&&e(f)}),V(e,o)},$$slots:{default:!0}}),O()}J(HO,{},[],[],{mode:`open`});var UO=z(`<span class="btn__label"> </span>`),WO=z(`<div><button class="btn btn--tertiary btn--square"><!> <!></button></div>`);function GO(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`class`,7);var i={get class(){return r()},set class(e){r(e),k()}},a=WO(),o=N(a),s=N(o);Oh(s,{name:`newConversation`});var c=F(s,2),l=e=>{var t=UO(),r=N(t,!0);E(t),L(()=>H(r,R(n).newChat)),V(e,t)};return W(c,e=>{R(n).newChat&&e(l)}),E(o),ga(o,(e,t)=>Ah?.(e,t),()=>({text:R(n).newChat,position:`bottom-left`,delay:600})),E(a),L(()=>{Ea(a,1,ba([`new-conversation`,r()])),K(o,`aria-label`,R(n).newChat)}),ii(`click`,o,()=>Sh.onNewConversation()),da(1,a,()=>LT,()=>({duration:300,y:30})),da(2,a,()=>LT,()=>({y:15,duration:150,easing:AT})),V(e,a),O(i)}ai([`click`]),J(GO,{class:{}},[],[],{mode:`open`});var KO=z(`<div><div><!></div></div>`);function qO(e,t){D(t,!0);let n=q(t,`class`,7),r=q(t,`children`,7),i=j(void 0);var a={get class(){return n()},set class(e){n(e),k()},get children(){return r()},set children(e){r(e),k()}},o=KO();let s;var c=N(o);return U(N(c),()=>r()??w),E(c),E(o),L(()=>{Ea(o,1,ba([`animated-height`,n()])),s=Oa(o,``,s,{height:R(i)?`${R(i)}px`:`auto`})}),io(c,`clientHeight`,e=>M(i,e)),V(e,o),O(a)}J(qO,{class:{},children:{}},[],[],{mode:`open`});var JO=z(`<span class="reference__number transition-colors"> </span>`),YO=z(`<span class="reference__description transition-colors line-clamp line-clamp--6"> </span>`),XO=z(`<span class="reference__breadcrumb transition-colors"> </span>`),ZO=z(`<div class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></div>`),QO=z(`<a target="_blank" rel="noopener noreferrer" class="reference transition-colors"><!> <span class="reference__body transition-colors"><span class="reference__header"><span class="reference__title line-clamp line-clamp--2 h4"> </span> <!></span> <!> <!></span></a>`);function $O(e,t){D(t,!0);let n=q(t,`reference`,7),r=A(()=>`${n().display.listItem.title}. ${n().display.card.description}. ${Z.t.ariaReferenceSource} ${n().display.listItem.badge}${n().display.listItem.breadcrumbs?` / `+n().display.listItem.breadcrumbs.join(` / `):``}`);var i={get reference(){return n()},set reference(e){n(e),k()}},a=QO(),o=N(a),s=e=>{var t=JO(),r=N(t,!0);E(t),L(()=>H(r,n().referenceIndex.used)),V(e,t)};W(o,e=>{n().referenceIndex.used&&e(s)});var c=F(o,2),l=N(c),u=N(l),d=N(u,!0);E(u),Oh(F(u,2),{name:`externalLink`,class:`reference__icon transition-colors`}),E(l);var f=F(l,2),p=e=>{var t=YO(),r=N(t,!0);E(t),L(()=>H(r,n().display.card.description)),V(e,t)};W(f,e=>{n().display.card.description&&e(p)});var m=F(f,2),h=e=>{var t=ZO(),r=N(t),i=N(r),a=N(i,!0);E(i),E(r);var o=F(r,2),s=e=>{var t=B();Yi(P(t),17,()=>n().display.listItem.breadcrumbs,Gi,(e,t)=>{var n=XO(),r=N(n,!0);E(n),L(()=>H(r,R(t))),V(e,n)}),V(e,t)};W(o,e=>{n().display.listItem.breadcrumbs&&e(s)}),E(t),L(()=>H(a,n().display.listItem.badge)),V(e,t)};return W(m,e=>{n().display.listItem.badge&&e(h)}),E(c),E(a),L(()=>{K(a,`href`,n().url),K(a,`aria-label`,R(r)),H(d,n().display.listItem.title)}),V(e,a),O(i)}J($O,{reference:{}},[],[],{mode:`open`});function ek(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};`}}var tk=z(`<div><!></div>`),nk=z(`<div class="references__toggle-title"> </div> <!>`,1),rk=z(`<div><div class="references__items"></div></div>`),ik=z(`<div><!></div>`),ak=z(`<!> <!>`,1),ok=z(`<div><!></div>`),sk=z(`<div><div class="references__items"></div> <!></div>`),ck=z(`<div><div class="references__container"><div class="references__transition"><!></div></div></div>`);function lk(e,t){D(t,!0);let n=q(t,`class`,7),r=A(()=>Z.data.history.filter(e=>e.type===`bot`).find(e=>e.id===Z.data.currentReferencesAsideId)?.references),i=A(()=>Z.data.currentReferencesAsideId),a=j(void 0),o=j(!1),s=j(void 0);I(()=>{R(i)&&M(o,!1),M(a,R(i),!0)}),I(()=>{R(o)&&setTimeout(()=>{Z.data.chatConfig.inlineLayout===!1&&R(s)?.scrollIntoView({behavior:`smooth`})},200)});let c={delay:200,duration:500,easing:jT,y:50};var l={get class(){return n()},set class(e){n(e),k()}},u=ck(),d=N(u),f=N(d);return Wi(N(f),()=>Z.data.currentReferencesAsideId,e=>{var t=sk(),l=N(t);Yi(l,21,()=>R(r)?.used,Gi,(e,t)=>{var n=tk();$O(N(n),{get reference(){return R(t)}}),E(n),da(1,n,()=>LT,()=>({...c,delay:0})),V(e,n)}),E(l);var u=F(l,2),d=e=>{var t=ok();qO(N(t),{children:(e,t)=>{var i=B();G(P(i),()=>vx,(e,t)=>{t(e,{get class(){return`references__further ${n()??``}`},get open(){return R(o)},set open(e){M(o,e,!0)},children:(e,t)=>{var n=ak(),i=P(n);G(i,()=>Sx,(e,t)=>{t(e,{class:`references__toggle transition-colors`,children:(e,t)=>{var n=nk(),r=P(n),i=N(r,!0);E(r),Oh(F(r,2),{name:`chevronDown`,class:`references__toggle-icon`}),L(()=>H(i,Z.t.referencesFurtherTitle)),V(e,n)},$$slots:{default:!0}})});var a=F(i,2);{let e=(e,t)=>{let n=()=>t?.().props,i=()=>t?.().open;var a=ik();qa(a,()=>({...n(),class:`references__container`}));var o=N(a),l=e=>{var t=rk(),n=N(t);Yi(n,21,()=>R(r)?.unused,Gi,(e,t)=>{$O(e,{get reference(){return R(t)}})}),E(n),E(t),da(1,t,()=>LT,()=>({...c,delay:0})),da(2,t,()=>IT,()=>({duration:100})),V(e,t)};W(o,e=>{i()&&e(l)}),E(a),oo(a,e=>M(s,e),()=>R(s)),V(e,a)};G(a,()=>bx,(t,n)=>{n(t,{forceMount:!0,child:e,$$slots:{child:!0}})})}V(e,n)},$$slots:{default:!0}})}),V(e,i)},$$slots:{default:!0}}),E(t),da(1,t,()=>LT,()=>c),V(e,t)};W(u,e=>{R(r)?.unused&&R(r).unused.length>0&&e(d)}),E(t),da(2,t,()=>ek,()=>({duration:200,delay:R(i)?0:200})),da(1,t,()=>LT,()=>R(a)?c:{duration:0,y:0}),V(e,t)}),E(f),E(d),E(u),L(()=>Ea(u,1,ba([`references`,n()]))),V(e,u),O(l)}J(lk,{class:{}},[],[],{mode:`open`});var uk=z(`<button class="predefined-question transition-colors"><!> </button>`);function dk(e,t){D(t,!0);let n=q(t,`onSubmit`,7),r=q(t,`predefinedQuestion`,7),i=q(t,`index`,7);var a={get onSubmit(){return n()},set onSubmit(e){n(e),k()},get predefinedQuestion(){return r()},set predefinedQuestion(e){r(e),k()},get index(){return i()},set index(e){i(e),k()}},o=uk(),s=N(o);Oh(s,{name:`predefinedQuestion`,class:`predefined-question__icon transition-colors`});var c=F(s,1,!0);return E(o),ga(o,(e,t)=>Ch?.(e,t),()=>`predefinedQuestion`),L(()=>{K(o,`data-index`,i()),H(c,r().label??r().question)}),ii(`click`,o,()=>n()(r().question,r().id,r().switchQuestionId)),V(e,o),O(a)}ai([`click`]),J(dk,{onSubmit:{},predefinedQuestion:{},index:{}},[],[],{mode:`open`});var fk=z(`<li><!></li>`),pk=z(`<section><h2 class="sr-only"> </h2> <ul></ul></section>`);function mk(e,t){D(t,!0);let n=q(t,`class`,7),r=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`class`]);var i={get class(){return n()},set class(e){n(e),k()}},a=pk();qa(a,()=>({"aria-label":Z.t.ariaPredefinedQuestionsRegion,class:n(),...r}));var o=N(a),s=N(o,!0);E(o);var c=F(o,2);let l;return Yi(c,21,()=>Z.data.predefinedQuestions,Gi,(e,t,n)=>{var r=fk();dk(N(r),{get predefinedQuestion(){return R(t)},get onSubmit(){return Sh.onStartConversation},index:n}),E(r),V(e,r)}),E(c),E(a),L(()=>{H(s,Z.t.ariaPredefinedQuestions),l=Ea(c,1,`predefined-questions`,null,l,{"predefined-questions--pii-padding":Z.data.questionHasPii})}),V(e,a),O(i)}J(mk,{class:{}},[],[],{mode:`open`});var hk=z(`<div class="introduction-disclaimer text-container fly-in"></div>`),gk=z(`<section><!> <!> <!> <!></section>`);function _k(e,t){D(t,!0);let n=A(()=>Z.t),r=j(!1);I(()=>{M(r,!0)});let i=A(()=>Z.data.predefinedQuestions&&Z.data.predefinedQuestions.length),a=A(()=>R(i)&&Z.data.chatConfig.forcePredefinedQuestions);var o=gk();let s;var c=N(o);pO(c,{class:`start-page__introduction fly-in`});var l=F(c,2),u=e=>{{let t=A(()=>nl(R(n).introductionTitle||``));$D(e,{get onSubmit(){return Sh.onStartConversation},class:`start-page__chat-input fly-in`,style:`--fly-in-id: 1;`,get ariaLabel(){return R(t)}})}};W(l,e=>{R(a)||e(u)});var d=F(l,2),f=e=>{{let t=A(()=>R(a)?1:2);mk(e,{class:`start-page__predefined-questions fly-in`,get style(){return`--fly-in-id: ${R(t)??``};`}})}};W(d,e=>{R(i)&&e(f)});var p=F(d,2),m=e=>{var t=hk();ta(t,()=>R(n).introductionDisclaimer,!0),E(t),L(()=>Oa(t,`--fly-in-id: ${R(a)?2:3};`)),V(e,t)};W(p,e=>{R(n).introductionDisclaimer&&e(m)}),E(o),L(()=>s=Ea(o,1,`start-page container`,null,s,{mounted:R(r)})),V(e,o),O()}J(_k,{},[],[],{mode:`open`});var vk=RegExp(`([\\p{Ll}\\d])(\\p{Lu})`,`gu`),yk=RegExp(`(\\p{Lu})([\\p{Lu}][\\p{Ll}])`,`gu`),bk=RegExp(`(\\d)(\\p{Ll})`,`gu`),xk=RegExp(`(\\p{L})(\\d)`,`gu`),Sk=/[^\p{L}\d]+/giu,Ck=`$1\0$2`,wk=``;function Tk(e,t){let n=e.trim();n=n.replace(vk,Ck).replace(yk,Ck),t?.separateNumbers&&(n=n.replace(bk,Ck).replace(xk,Ck)),n=n.replace(Sk,`\0`);let r=0,i=n.length;for(;n.charAt(r)===`\0`;)r++;if(r===i)return[];for(;n.charAt(i-1)===`\0`;)i--;return n.slice(r,i).split(/\0/g)}function Ek(e,t){return Vk(e,t?.prefixCharacters)+Tk(e,t).map(Lk(t?.locale)).join(t?.delimiter??` `)}function Dk(e,t){let n=Vk(e,t?.prefixCharacters),r=Lk(t?.locale),i=Rk(t?.locale),a=t?.mergeAmbiguousCharacters?zk(r,i):Bk(r,i);return n+Tk(e,t).map((e,t)=>t===0?r(e):a(e,t)).join(t?.delimiter??``)}function Ok(e,t){let n=Vk(e,t?.prefixCharacters),r=Lk(t?.locale),i=Rk(t?.locale),a=t?.mergeAmbiguousCharacters?zk(r,i):Bk(r,i);return n+Tk(e,t).map(a).join(t?.delimiter??``)}function kk(e,t){let n=Vk(e,t?.prefixCharacters),r=Lk(t?.locale),i=Rk(t?.locale);return n+Tk(e,t).map(zk(r,i)).join(t?.delimiter??` `)}function Ak(e,t){return Vk(e,t?.prefixCharacters)+Tk(e,t).map(Rk(t?.locale)).join(t?.delimiter??`_`)}function jk(e,t){return Ek(e,{delimiter:`.`,...t})}function Mk(e,t){return Ek(e,{delimiter:`-`,...t})}function Nk(e,t){return Ek(e,{delimiter:`/`,...t})}function Pk(e,t){let n=Vk(e,t?.prefixCharacters),r=Lk(t?.locale),i=zk(r,Rk(t?.locale));return n+Tk(e,t).map((e,t)=>t===0?i(e):r(e)).join(t?.delimiter??` `)}function Fk(e,t){return Ek(e,{delimiter:`_`,...t})}function Ik(e,t){return kk(e,{delimiter:`-`,...t})}function Lk(e){return e===!1?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function Rk(e){return e===!1?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function zk(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Bk(e,t){return(n,r)=>{let i=n[0];return(r>0&&i>=`0`&&i<=`9`?`_`+i:t(i))+e(n.slice(1))}}function Vk(e,t=wk){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(t.includes(i))n+=i;else break}return n}function Hk(e,t){let n=``;for(let r of e)n+=Math.random()>.5?r.toLocaleUpperCase(t):r.toLocaleLowerCase(t);return n}function Uk(e,t){let n=``;for(let r of e){let e=r.toLocaleLowerCase(t);n+=r===e?r.toLocaleUpperCase(t):e}return n}var Wk=/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i,Gk=/[^\s:–—-]+|./g,Kk=/\s/,qk=/.(?=[A-Z]|\..)/,Jk=/[A-Za-z0-9\u00C0-\u00FF]/;function Yk(e){for(var t=``,n;(n=Gk.exec(e))!==null;){var r=n[0],i=n.index;if(!qk.test(r)&&(!Wk.test(r)||i===0||i+r.length===e.length)&&(e.charAt(i+r.length)!==`:`||Kk.test(e.charAt(i+r.length+1)))){t+=r.replace(Jk,function(e){return e.toUpperCase()});continue}t+=r}return t}var Xk=Dk,Zk=kk,Qk=Ak,$k=jk,eA=Ek,tA=Ok,nA=Nk,rA=Pk,iA=Fk,aA=Ik,oA=Mk,sA=Hk,cA=Uk,lA=Yk,uA=e=>e.toUpperCase(),dA=(e,t)=>e.toLocaleUpperCase(t),fA=e=>e.toLowerCase(),pA=(e,t)=>e.toLocaleLowerCase(t),mA=e=>e.charAt(0).toLowerCase()+e.slice(1),hA=e=>e.charAt(0).toUpperCase()+e.slice(1),gA=e=>e===e.toUpperCase(),_A=e=>e===e.toLowerCase(),vA=class{};vA.camel=Xk,vA.capital=Zk,vA.constant=Qk,vA.dot=$k,vA.kebab=oA,vA.lower=fA,vA.lowerFirst=mA,vA.localeLower=pA,vA.localeUpper=dA,vA.no=eA,vA.pascal=tA,vA.path=nA,vA.sentence=rA,vA.snake=iA,vA.sponge=sA,vA.swap=cA,vA.title=lA,vA.train=aA,vA.upper=uA,vA.upperFirst=hA,vA.isUpper=gA,vA.isLower=_A;var yA=640,bA=1024,xA=null,SA=()=>{if(xA)return xA;if(!globalThis.document)return 16;let e=globalThis.document.querySelector(`:root`);return xA=Number(getComputedStyle(e).fontSize.slice(0,-2)),xA},CA=({minRem:e,maxRem:t})=>{let n=SA(),r=yA/n,i=bA/n,a=(t-e)/(i-r);return`clamp( ${e}rem, ${-r*a+e}rem + ${a*100}cqw, ${t}rem )`},wA=e=>typeof e==`string`?e:typeof e==`number`?String(e):typeof e==`object`?e.minRem===e.maxRem?`${e.minRem}rem`:CA(e):``,TA=(e,t,n,r=!1)=>{let i=``;return n.forEach(n=>{let a=t[n];r&&!a&&n===`borderWidth`&&(a=`0px`),r&&!a&&n===`borderColor`&&(a=`transparent`),a&&(i+=`--${oA(e)}-${oA(n)}:${wA(a)}; `)}),i},EA=(e,t)=>Object.entries(t).map(([t,n])=>`--${e}-${oA(t)}:${wA(n)}`).join(`; `)+`; `,DA=(e,t)=>{let n=``;return n+=TA(e,t,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`borderRadius`,`color`],!0),t.hover&&(n+=TA(`${e}-hover`,t.hover,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.focus&&(n+=TA(`${e}-focus`,t.focus,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.custom&&(n+=EA(e,t.custom)),n},OA=(e,t)=>Object.entries(t).map(([t,n])=>`--color-${e}-${t}:${n}`).join(`; `)+`; `,kA=e=>`--font-family: ${e?.family||`inherit`};`,AA=(e,t={})=>`${t.root??`.chat-app`} {${kA(e.font)} ${Object.entries(e.colors).map(([e,t])=>OA(e,t)).join(``)} ${EA(`base`,e.base)} ${Object.entries(e.components).map(([e,t])=>DA(oA(e),t)).join(``)}};`;function jA(e,t){D(t,!0);let n=q(t,`css`,7),r=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`css`]),i=e=>{I(()=>{n()&&(e.innerHTML=n())})};var a={get css(){return n()},set css(e){n(e),k()}},o=B(),s=P(o),c=e=>{var t=B();pa(P(t),()=>`style`,!1,(e,t)=>{ga(e,e=>i?.(e)),qa(e,()=>({...r}))}),V(e,t)};return W(s,e=>{n()&&e(c)}),V(e,o),O(a)}J(jA,{css:{}},[],[],{mode:`open`});var MA=`@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.chat-app{--spacer-1:.0625rem;--spacer-2:.125rem;--spacer-3:.1875rem;--spacer-4:.25rem;--spacer-5:.3125rem;--spacer-6:.375rem;--spacer-8:.5rem;--spacer-10:.625rem;--spacer-12:.75rem;--spacer-16:1rem;--spacer-20:1.25rem;--spacer-24:1.5rem;--spacer-28:1.75rem;--spacer-32:2rem;--spacer-40:2.5rem;--spacer-48:3rem;--spacer-56:3.5rem;--spacer-64:4rem;--spacer-72:4.5rem;--spacer-80:5rem;--spacer-120:7.5rem;--spacer-r-8:clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12:clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16:clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20:clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24:clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28:clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32:clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40:clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48:clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56:clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64:clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80:clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96:clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120:clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration:.2s;--default-transition-timing-function:ease-in-out;--z-index-flyout:10000;--z-index-dialog:600;--z-index-loader:500;--z-index-reference-number:400;--z-index-footer:300;--z-index-header:200;--z-index-tooltip:100;--z-index-tooltip-hover:101;--z-index-local-overlay:10;--z-index-below:-10;--ease-out-quart:cubic-bezier(.165, .84, .44, 1);--ease-in-quart:cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart:cubic-bezier(.77, 0, .175, 1);--fly-in-id:0;--btn-padding-x:var(--spacer-r-20);--btn-padding-y:var(--spacer-r-8);--btn-icon-size:var(--spacer-24);--btn-submit-size:2.5em;--last-bot-message-min-height:0}.chat-app :where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow,none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.chat-app ::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:0 0}.chat-app ::-webkit-scrollbar-thumb{background-color:#0000004d;border-radius:4px;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:#0000004d transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app :hover::-webkit-scrollbar-thumb{visibility:visible}.chat-app :active::-webkit-scrollbar-thumb{visibility:visible}.chat-app :focus::-webkit-scrollbar-thumb{visibility:visible}.svg{width:var(--spacer-r-24);height:auto}.svg svg{width:100%;height:auto;display:block;overflow:visible}.toast{width:100%;padding:var(--spacer-r-20);align-items:center;gap:var(--spacer-16);border-width:var(--toast-border-width,1px);border-radius:var(--toast-border-radius);border-color:var(--toast-border-color,transparent);background:var(--toast-background);box-shadow:var(--toast-box-shadow);color:var(--toast-color);display:flex}.toast[data-type=success] svg{color:var(--toast-icon-success-color)}.toast[data-type=error] svg{color:var(--toast-icon-error-color)}.toast[data-type=warning] svg{color:var(--toast-icon-warning-color)}.toast[data-type=info] svg{color:var(--toast-icon-info-color)}.toast svg{width:var(--spacer-24)!important;height:var(--spacer-24)!important}ol[data-sonner-toaster=true]{border:var(--spacer-16) solid transparent;max-width:600px;width:100%!important}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{content:"";background-color:#0000;position:absolute;inset:0}.chat-app :where(.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}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.skip-link){width:0;height:0;color:var(--anchor-color);font-weight:700;font-size:var(--base-font-size-xs);position:absolute;overflow:hidden}.chat-app :where(.skip-link):focus-visible{width:auto;height:auto;position:static}.chat-app :where(.fly-in){--fly-in-id:0;--fly-in-duration:.4s;--fly-out-duration:.2s;--fly-in-delay:.3s;--fly-in-delay-additional:.1s;--fly-in-y:var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease, var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration);transform:translateY(0)}.chat-app :where(.truncate){text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden}.chat-app :where(.line-clamp){-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--6){-webkit-line-clamp:6}.chat-app :where(.container){width:100%;max-width:var(--container-max-width,1024px);padding-right:var(--spacer-16);padding-left:var(--spacer-16);margin:0 auto}@container chat-container (width>=640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (width>=768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){margin-bottom:var(--spacer-r-24);display:block}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-type:decimal;list-style-position:outside}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){padding-left:1em;position:relative}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{content:"•";font-size:.9em;position:absolute;top:0;left:0}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;background-color:var(--color-grey-700);background-color:var(--hr-color);border:none}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight,var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration,underline);text-decoration:var(--anchor-text-decoration,underline);text-underline-offset:var(--anchor-text-underline-offset,.15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container) :where(table){border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.text-container) :where(:first-child){margin-top:0}.chat-app :where(.text-container) :where(:last-child){margin-bottom:0}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}.chat-app :where(.display-contents){display:contents}.chat-app :where(.absolute){position:absolute!important}}@layer components{.btn{min-height:calc(var(--btn-padding-y) * 2 + var(--btn-icon-size));padding:var(--btn-padding-y) var(--btn-padding-x);align-items:center;gap:var(--spacer-r-8);font-size:var(--base-font-size-sm);line-height:var(--base-line-height-tight);text-align:left;transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function);border-style:solid;flex-wrap:nowrap;text-decoration:none;display:flex;position:relative}.btn>:where(.svg){width:var(--btn-icon-size)}.btn:disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.btn--primary{border-width:var(--btn-primary-border-width);border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color);background:var(--btn-primary-background);box-shadow:var(--btn-primary-box-shadow);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.btn--primary:hover{border-width:var(--btn-primary-hover-border-width,var(--btn-primary-border-width));border-color:var(--btn-primary-hover-border-color,var(--btn-primary-border-color));background:var(--btn-primary-hover-background,var(--btn-primary-background));box-shadow:var(--btn-primary-hover-box-shadow,var(--btn-primary-box-shadow));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.btn--secondary{border-width:var(--btn-secondary-border-width);border-radius:var(--btn-secondary-border-radius,var(--btn-primary-border-radius));border-color:var(--btn-secondary-border-color);background:var(--btn-secondary-background);box-shadow:var(--btn-secondary-box-shadow);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.btn--secondary:hover{border-width:var(--btn-secondary-hover-border-width,var(--btn-secondary-border-width));border-color:var(--btn-secondary-hover-border-color,var(--btn-secondary-border-color));background:var(--btn-secondary-hover-background,var(--btn-secondary-background));box-shadow:var(--btn-secondary-hover-box-shadow,var(--btn-secondary-box-shadow));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}.btn--tertiary{border-width:var(--btn-tertiary-border-width);border-radius:var(--btn-tertiary-border-radius,var(--btn-primary-border-radius));border-color:var(--btn-tertiary-border-color);background:var(--btn-tertiary-background);box-shadow:var(--btn-tertiary-box-shadow);color:var(--btn-tertiary-color);font-weight:var(--btn-tertiary-font-weight,700)}.btn--tertiary:hover{border-width:var(--btn-tertiary-hover-border-width,var(--btn-tertiary-border-width));border-color:var(--btn-tertiary-hover-border-color,var(--btn-tertiary-border-color));background:var(--btn-tertiary-hover-background,var(--btn-tertiary-background));box-shadow:var(--btn-tertiary-hover-box-shadow,var(--btn-tertiary-box-shadow));color:var(--btn-tertiary-hover-color,var(--btn-tertiary-color))}.btn--square{--btn-padding-x:var(--btn-padding-y)}.btn--square:after{z-index:var(--z-index-local-overlay);content:"";background:0 0;position:absolute;inset:-.5em}.btn--square>:where(.svg){width:var(--btn-icon-size)}.btn--square>:where(.btn__label){padding-right:calc(var(--btn-padding-x) * 1.25);display:none}@container chat-container (width>=640px){.btn--square>:where(.btn__label){display:block}}.form__caption{margin-bottom:var(--spacer-32)}.form__fields{gap:var(--spacer-16);flex-direction:column;width:100%;display:flex}.form__item{gap:var(--spacer-5);flex-direction:column;width:100%;display:flex}.form__label{color:var(--label-color,inherit);font-weight:var(--label-font-weight,inherit);font-size:var(--base-font-size-sm)}.form__options{margin-top:var(--spacer-r-8);flex-direction:column;display:flex}.form__option{align-items:baseline;gap:var(--spacer-r-12);cursor:pointer;display:inline-flex}.form__option .form__option-input{clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.form__option:has(.form__option-input:focus-visible) :where(.radio,.checkbox){outline-color:var(--body-focus-color);outline-style:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.form__select{width:100%;position:relative}.form__select select{appearance:none;padding-right:var(--spacer-56)}.form__select-arrow{top:50%;right:var(--spacer-r-20);width:var(--spacer-r-24);height:var(--spacer-r-24);color:var(--anchor-color);pointer-events:none;position:absolute;transform:translateY(-50%)}.form__footer{margin-top:var(--spacer-40)}.chat-app{display:contents}.chat-app__container{height:100%;display:flex;overflow:hidden;transform:translateZ(0);container:chat-container/inline-size}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__container.chat-app__container--inline-layout-contained{height:90svh;scroll-margin-top:10svh}@media (width>=768px){.chat-app__container.chat-app__container--inline-layout-contained{height:100svh;scroll-margin-top:0}}.chat-app__main{overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden auto;container:chat-inner-container/inline-size}.chat-app__container--inline-layout .chat-app__main{overscroll-behavior-y:auto}.chat-app__loader-container{z-index:var(--z-index-loader);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.chat-app__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);background:var(--body-background);position:sticky;top:0}.chat-app__header--unsticked{position:relative}.chat-app__header-content{--btn-padding-x:var(--btn-padding-y);column-gap:var(--spacer-r-12);min-height:calc(var(--btn-padding-y) * 2 + var(--btn-icon-size) + var(--spacer-10) * 2);margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex;position:relative}.chat-app__header-content>:where(*){z-index:0;pointer-events:auto;position:relative}.chat-app__header-content:after{right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);content:"";border-bottom:1px solid #0000;transition:border-color .1s ease-in-out;position:absolute}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.chat-app__header-new-conversation{margin-right:auto;position:relative}@container chat-container (width>=640px){.chat-app__header-new-conversation .tooltip{display:none}}.chat-app__header--with-logo :where(.chat-app__header-content){margin-left:0}.chat-app__header--with-logo :where(.chat-app__header-new-conversation){margin-right:unset;margin-left:auto}.chat-app__header-logo{margin-right:auto}.chat-app__header-logo :where(svg){width:auto;height:var(--spacer-28)}.chat-app__body{flex-direction:column;flex-grow:1;width:100%;display:flex;position:relative}.chat-app__page-transition{flex-direction:column;flex-grow:1;width:100%;height:100%;display:flex}.chat-app__aside{--duration-in:.65s;--duration-out:.5s;visibility:hidden;width:0;transition-delay:0s, var(--duration-out);transition-duration:var(--duration-out), 0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart), linear;flex-grow:1;position:relative;top:0;bottom:0}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in), 0s;transition-timing-function:var(--ease-out-quart), linear}.chat-app__aside .tooltip{--background-color:var(--btn-secondary-hover-background)}.chat-app__aside-container{width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:relative;overflow-y:auto}.chat-app__container--inline-layout .chat-app__aside-container{overscroll-behavior-y:auto}.chat-app__aside-header,.chat-app__sheet-header{z-index:var(--z-index-header);flex-wrap:no-wrap;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);justify-content:space-between;align-items:center;gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color);display:flex;position:sticky;top:0}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);background:var(--aside-background-overlay);position:fixed;inset:0}.chat-app__sheet-content{z-index:var(--z-index-flyout);width:100%;max-width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:fixed;top:0;right:0;overflow-y:auto}.chat-app__container--inline-layout .chat-app__sheet-content{overscroll-behavior-y:auto}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:#0000}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}.chat-app__close-button{z-index:var(--z-index-flyout)}.chat-input{--chat-input-padding:calc(.5em + var(--chat-input-border-width));--chat-input-settings-transition-duration:.2s;--chat-input-disabling-transition-duration:.2s}@container chat-container (width>=640px){.chat-input{--chat-input-padding:calc(.75em + var(--chat-input-border-width))}}.chat-input{z-index:var(--z-index-local-overlay);position:relative}.chat-input__textarea{box-sizing:border-box;width:100%;max-height:6lh;padding:1em var(--spacer-64) 1em calc(var(--spacer-r-24) - var(--chat-input-border-width));color:var(--chat-input-color);resize:none;transition:padding var(--chat-input-settings-transition-duration) var(--default-transition-timing-function);background:0 0;border:0 solid #0000;grid-area:textarea;display:block}.chat-input__textarea:has(+.chat-input__buttons .chat-input__mic-button){padding-right:calc(2.5em + var(--spacer-64))}.chat-input__grid--has-settings .chat-input__textarea{padding-left:var(--spacer-8)}.chat-input__grid--settings-is-open .chat-input__textarea{padding-right:var(--spacer-r-16);padding-left:var(--spacer-r-16)}@container chat-container (width>=640px){.chat-input__textarea{padding:1.25em var(--spacer-80) 1.25em calc(var(--spacer-r-28) - var(--chat-input-border-width))}.chat-input__grid--has-settings .chat-input__textarea{padding-left:var(--spacer-8)}.chat-input__grid--settings-is-open .chat-input__textarea{padding-right:var(--spacer-r-28);padding-left:var(--spacer-r-28)}}.chat-input__textarea:focus,.chat-input__textarea:focus-visible{outline-color:#0000}.chat-input__grid{--disabled-translateY:var(--spacer-20);border-width:var(--chat-input-border-width);border-radius:var(--chat-input-border-radius);border-style:solid;border-color:var(--chat-input-border-color);background:var(--chat-input-background);box-shadow:var(--chat-input-box-shadow);transition:grid-template-rows var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), grid-template-columns var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), background var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), box-shadow var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), outline-color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-radius var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), opacity var(--chat-input-disabling-transition-duration) var(--default-transition-timing-function), transform var(--chat-input-disabling-transition-duration) var(--default-transition-timing-function);display:flex}.chat-input__grid:has(.chat-input__textarea:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color));background:var(--chat-input-focus-background,var(--chat-input-background));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow));color:var(--chat-input-focus-color,var(--chat-input-color));outline-color:#0000}.chat-input__grid:hover{background:var(--chat-input-hover-background,var(--chat-input-background));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow))}.chat-input--disabled .chat-input__grid{transform:translateY(var(--disabled-translateY));opacity:0}.chat-input__grid--has-settings{--chat-input-settings-height:0px;grid-template-rows:1fr var(--chat-input-settings-height);grid-template-columns:var(--btn-submit-size) 1fr;grid-template-areas:"toggle textarea"".settings";width:100%;display:grid}@container chat-container (width>=640px){.chat-input__grid--has-settings{grid-template-columns:calc(var(--btn-submit-size) + var(--spacer-r-12)) 1fr}}.chat-input__grid--settings-is-open{grid-template-columns:0 1fr}.chat-input__submit-button,.chat-input__abort-button{--margin:.5em}.chat-input__open-settings-button{margin-left:var(--spacer-r-12)}.chat-input__buttons{right:var(--chat-input-padding);bottom:var(--chat-input-padding);pointer-events:none;align-items:center;gap:.5em;display:flex;position:absolute}.chat-input__buttons>*{pointer-events:auto}.chat-input__submit-button{width:var(--btn-submit-size);height:var(--btn-submit-size);border-width:var(--chat-input-submit-border-width,0px);border-radius:var(--chat-input-submit-border-radius);border-color:var(--chat-input-submit-border-color);background:var(--chat-input-submit-background);box-shadow:var(--chat-input-submit-box-shadow);color:var(--chat-input-submit-color);cursor:pointer;justify-content:center;align-items:center;transition-property:opacity,background-color,transform;transition-duration:.2s,.2s,.35s;transition-timing-function:ease;display:flex}.chat-input__submit-button:hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color))}.chat-input__submit-button path{stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,1.5px)}@container chat-container (width>=640px){.chat-input__submit-button{--margin:.75em}}.chat-input__submit-button--deactivated{transform:scale(var(--chat-input-submit-deactivated-scale,.8));border-color:var(--chat-input-submit-deactivated-border-color,var(--chat-input-submit-border-color));background:var(--chat-input-submit-deactivated-background,var(--chat-input-submit-background));color:var(--chat-input-submit-deactivated-color,var(--chat-input-submit-color));cursor:not-allowed;opacity:var(--chat-input-submit-deactivated-opacity,.5)}.chat-input__submit-button--deactivated:hover{border-color:var(--chat-input-submit-deactivated-border-color,var(--chat-input-submit-border-color));background:var(--chat-input-submit-deactivated-background,var(--chat-input-submit-background));color:var(--chat-input-submit-deactivated-color,var(--chat-input-submit-color))}.chat-input__submit-icon,.chat-input__abort-icon{width:var(--spacer-20);height:var(--spacer-20);pointer-events:none}.chat-input__notification-wrapper{border-radius:var(--chat-input-notification-border-radius);position:relative;overflow:hidden}.chat-input__notification-animation-element{padding-bottom:var(--spacer-2)}.chat-input__notification{padding:var(--spacer-8);gap:var(--spacer-8);border-width:var(--chat-input-notification-border-width);border-radius:var(--chat-input-notification-border-radius);border-color:var(--chat-input-notification-border-color);background:var(--chat-input-notification-background);box-shadow:var(--chat-input-notification-box-shadow);color:var(--chat-input-notification-color);display:flex}.chat-input__notification-label{font-weight:700;font-size:var(--base-font-size-xs);padding-top:.175em;line-height:1.35}@container chat-inner-container (width>=640px){.chat-input__notification-label{font-size:var(--base-font-size-sm);padding-top:.125em}}.chat-input__notification-icon{width:var(--spacer-20);height:var(--spacer-20);flex-shrink:0}@container chat-inner-container (width>=640px){.chat-input__notification-icon{width:var(--spacer-24);height:var(--spacer-24)}}.chat-input__mic-button{border-radius:var(--chat-input-submit-border-radius);cursor:pointer;--mic-base-color:var(--color-grey-500);--mic-accent-color:var(--color-accent-500);background:0 0;border:none;justify-content:center;align-items:center;width:2.5em;height:2.5em;transition-property:background-color,color;transition-duration:.2s;transition-timing-function:ease;display:flex}.chat-input__mic-button:hover{background-color:var(--color-grey-100);--mic-base-color:var(--color-grey-700);--mic-accent-color:var(--color-accent-600)}.chat-input__mic-button--listening{background-color:var(--chat-input-notification-background);box-shadow:var(--chat-input-submit-box-shadow);--mic-base-color:#fff6;--mic-accent-color:white}.chat-input__mic-button--listening:hover{background-color:var(--color-highlight-600)}.chat-input__mic-button--error{color:var(--color-highlight-600)}.chat-input__settings{width:100%;padding:var(--chat-input-padding) var(--spacer-80) var(--chat-input-padding) var(--spacer-r-12);gap:var(--spacer-8);pointer-events:none;grid-area:settings;display:flex;position:absolute;bottom:0;left:0;overflow:hidden}@container chat-container (width>=640px){.chat-input__settings{padding-left:var(--spacer-r-20)}}.chat-input__grid--settings-is-open .chat-input__settings{pointer-events:auto;overflow:visible}.chat-input__settings-button{min-width:0;height:100%;padding-right:var(--spacer-4);padding-left:var(--spacer-4);transform:translate(calc(var(--spacer-48) * -1), 150%);border-radius:var(--chat-input-submit-border-radius);outline-offset:0;font-size:var(--base-font-size-xs);opacity:0;transition:transform var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), background var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), box-shadow var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-radius var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), opacity var(--chat-input-settings-transition-duration) calc(var(--chat-input-settings-transition-duration) / 3) var(--default-transition-timing-function);flex-shrink:1;flex-basis:auto;gap:3px}@container chat-inner-container (width>=768px){.chat-input__settings-button{padding-right:var(--spacer-12);padding-left:var(--spacer-8)}}.chat-input__settings-button:disabled{transform:translate(calc(var(--spacer-48) * 1), 150%);opacity:0}.chat-input__grid--settings-is-open .chat-input__settings-button{transform:translateX(calc(var(--spacer-4) * -1));opacity:1}.chat-input__settings-button[data-has-error=true]{border-color:var(--chat-input-notification-border-color)!important;background:var(--chat-input-notification-background)!important;color:var(--chat-input-notification-color)!important}@container chat-inner-container (width>=640px){.chat-input__settings-button .tooltip{display:none}}.chat-input__toggle-area{grid-area:toggle;justify-content:center;place-self:center;align-items:center;width:100%;height:100%;display:flex}.chat-input__grid--settings-is-open .chat-input__toggle-area{overflow:hidden}.chat-input__settings-toggle-button{width:var(--btn-submit-size);height:var(--btn-submit-size);margin-left:var(--spacer-r-8);border-radius:var(--chat-input-submit-border-radius);outline-offset:0;opacity:1;transition:transform var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), opacity var(--chat-input-settings-transition-duration) calc(var(--chat-input-settings-transition-duration) / 3) var(--default-transition-timing-function)}.chat-input__grid--settings-is-open .chat-input__settings-toggle-button{opacity:0;transform:translate(-100%)}.chat-input__settings-toggle-button .svg{flex-shrink:0}.chat-input__settings-button-icon:not(.svg--settingsClose){flex-shrink:0;display:block}@container chat-inner-container (width>=640px){.chat-input__settings-button-icon:not(.svg--settingsClose){display:none}}@container chat-inner-container (width>=768px){.chat-input__settings-button-icon:not(.svg--settingsClose){display:block}}.chat-input__settings-button-label{display:none}@container chat-inner-container (width>=640px){.chat-input__settings-button-label{text-overflow:ellipsis;white-space:nowrap;max-width:20ch;display:block;overflow:hidden}}@container chat-inner-container (width>=1024px){.chat-input__settings-button-label{max-width:40ch}}.chat-input__settings-button-label-name{display:none}@container chat-inner-container (width>=1024px){.chat-input__settings-button-label-name{display:inline}}.chat-input__settings-button-chevron{width:var(--spacer-10);height:var(--spacer-10);transition:transform .2s var(--default-transition-timing-function);flex-shrink:0}[data-state=open]>.chat-input__settings-button-chevron{transform:rotate(180deg)}.checkbox{--size:1em;width:var(--size);height:var(--size);border-width:var(--checkbox-border-width);border-radius:var(--checkbox-border-radius);border-color:var(--checkbox-border-color);background:var(--checkbox-background);box-shadow:var(--checkbox-box-shadow);color:var(--checkbox-color);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;top:.1em}.checkbox[data-checked=true]{border-color:var(--checkbox-checked-border-color);background:var(--checkbox-checked-background);color:var(--checkbox-checked-color)}.checkbox__icon{width:100%;height:100%;color:var(--color-background);opacity:1;transition:opacity .2s}.checkbox[data-checked=false] .checkbox__icon{opacity:0}.classification-feedback{margin-bottom:var(--spacer-16);gap:var(--spacer-16);border-width:var(--message-user-border-width);border-radius:var(--message-user-border-radius);border-color:var(--message-user-border-color);color:var(--message-user-color);flex-direction:column;display:flex}.classification-feedback__item{gap:var(--spacer-4);border:none;flex-direction:column;margin:0;padding:0;display:flex}.classification-feedback__label{margin-bottom:var(--spacer-8)}.classification-feedback__option{padding-left:var(--spacer-16);align-items:center;gap:var(--spacer-12);display:flex}.classification-feedback__option:has(input:checked){background:var(--btn-secondary-hover-background);color:var(--btn-secondary-hover-color)}.classification-feedback__option:has(input:focus-visible){border-radius:var(--spacer-8);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3)}.classification-feedback__option:has(input:focus-visible) input{outline:none}.radio{--size:1em;width:var(--size);height:var(--size);border-width:var(--radio-border-width);border-color:var(--radio-border-color);background:var(--radio-background);box-shadow:var(--radio-box-shadow);color:var(--radio-color);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;top:.1em}.radio[data-checked=true]{border-color:var(--radio-checked-border-color);background:var(--radio-checked-background);color:var(--radio-checked-color)}.radio__indicator{--size:50%;--scale:0;width:var(--size);height:var(--size);transform:scale(var(--scale)) translate(-50%, -50%);opacity:0;background:currentColor;border-radius:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%}.radio[data-checked=true] .radio__indicator{--scale:1;opacity:1}.context-box{z-index:var(--z-index-flyout);position:relative}.context-box__content{--context-box-side-padding:var(--spacer-r-12);z-index:var(--z-index-local-overlay);width:calc(100cqw - var(--spacer-24));border-width:var(--context-box-border-width);border-radius:var(--context-box-border-radius);border-style:solid;border-color:var(--context-box-border-color);background:var(--context-box-background);max-width:300px;box-shadow:var(--context-box-box-shadow);color:var(--context-box-color);font-size:var(--base-font-size-sm)}.context-box__content:focus-visible{outline:none}.context-box__menu{padding:var(--context-box-side-padding);gap:var(--spacer-1);flex-direction:column;display:flex}.context-box__menu--scrollable{max-height:38vh;padding-right:var(--spacer-r-20);grid-template-columns:repeat(1,minmax(280px,10cqw));display:grid;overflow-y:auto}@container chat-inner-container (width>=480px){.context-box__menu--two-cols{column-gap:var(--spacer-r-20);grid-template-columns:repeat(2,minmax(180px,42cqw));display:grid}}@container chat-inner-container (width>=768px){.context-box__menu--three-cols{grid-template-columns:repeat(3,minmax(160px,25cqw))}}.context-box__menu-item{width:100%;padding:var(--spacer-4) var(--spacer-8);align-items:center;gap:var(--spacer-8);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-menu-item-background);color:var(--context-box-menu-item-color);cursor:pointer;display:flex;position:relative}.context-box__menu-item:hover{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}.context-box__menu-item:focus{z-index:var(--z-index-local-overlay)}.context-box__menu-item.active{background:var(--context-box-menu-item-active-background);color:var(--context-box-menu-item-active-color)}.context-box__menu-item--option{align-items:baseline}.context-box__menu-item__icon{width:var(--spacer-20);height:var(--spacer-20);color:currentColor}.context-box__title{padding:calc(var(--context-box-side-padding) * 1.5) var(--context-box-side-padding) 0 var(--context-box-side-padding);color:var(--context-box-title-color);font-weight:var(--context-box-title-font-weight);font-size:var(--base-font-size-xs)}.context-box__header{min-width:200px;padding:var(--context-box-side-padding);padding-left:calc(var(--context-box-side-padding) + var(--spacer-8));justify-content:space-between;align-items:center;gap:var(--spacer-r-12);border-bottom:1px solid var(--context-box-separator-color);font-weight:var(--context-box-title-font-weight);font-size:var(--base-font-size-xs);text-wrap:balance;display:flex}.context-box__close-button{--btn-padding-y:var(--spacer-4);--btn-padding-x:var(--spacer-4);flex-shrink:0}.context-box__footer{--btn-padding-x-smaller:calc(var(--btn-padding-x) * .75);padding:calc(var(--context-box-side-padding) * .5) calc(var(--context-box-side-padding) + var(--spacer-8) - var(--btn-padding-x-smaller));border-top:1px solid var(--context-box-separator-color);flex-wrap:wrap;display:flex}.context-box__footer-item{padding-right:var(--btn-padding-x-smaller);padding-left:var(--btn-padding-x-smaller);font-size:var(--base-font-size-xs);cursor:pointer}.context-box__separator{border-top:1px solid var(--context-box-separator-color)}.context-box__language-translation{opacity:.5}.context-box__color-scheme-selector{flex-direction:row;align-items:stretch;display:flex}.context-box__color-scheme-selector-button{width:100%;margin:var(--context-box-side-padding);padding:var(--spacer-4) var(--spacer-8);justify-content:center;align-items:center;gap:var(--spacer-8);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-menu-item-background);color:var(--context-box-menu-item-color);cursor:pointer;display:flex}.context-box__color-scheme-selector-button:hover{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}.context-box__color-scheme-selector-separator{border-top:0;border-left:1px solid var(--context-box-separator-color);width:1px;height:auto;display:block}.context-box__color-scheme-selector-button--active{background:var(--context-box-menu-item-active-background);color:var(--context-box-menu-item-active-color)}.context-box__notification[data-type=error]{color:var(--context-box-error-color)}.context-box__popover-close{z-index:var(--z-index-local-overlay);top:var(--spacer-4);right:var(--spacer-4);clip:rect(0 0 0 0);width:1px;height:1px;padding:var(--spacer-4);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-background);color:var(--context-box-color);clip-path:inset(50%);cursor:pointer;border:none;position:absolute;overflow:hidden}.context-box__popover-close:focus-visible{clip:auto;clip-path:none;width:auto;height:auto;overflow:visible}.context-box__content--info{width:calc(100cqw - var(--spacer-32));max-width:600px;max-height:60cqh;padding:var(--spacer-r-32);position:relative;overflow:hidden scroll}.context-box__content--info :where(.text-container){flex-direction:column;align-items:flex-start;display:flex}[data-bits-floating-content-wrapper]{padding-right:1em}.context-box--dropdown{max-width:min(var(--container-max-width,1024px), 90cqw)}.context-box--dropdown :where(.context-box__content){width:auto;max-width:100%}.consent-page{padding-top:var(--spacer-r-40);padding-bottom:var(--spacer-r-40);justify-content:center;align-items:stretch;gap:var(--spacer-r-48);flex-direction:column;flex-grow:1;display:flex}.consent-page__introduction{text-align:center}.consent-page__disclaimer{font-size:var(--base-font-size-sm);text-align:center;text-wrap:balance}.consent-page__actions{justify-content:center;gap:var(--spacer-r-16);flex-wrap:wrap;display:flex}.chat-page{padding-top:var(--spacer-r-80);flex-direction:column;flex-grow:1;display:flex;position:relative}.chat-page__survey-portal:not(:empty){z-index:calc(var(--z-index-header) - 1);position:sticky;top:4rem}.chat-page__body{flex-direction:column;flex-grow:1;display:flex}.chat-page__messages{gap:var(--spacer-r-40);flex-direction:column;flex-grow:1;display:flex}.chat-page__footer{z-index:var(--z-index-footer);flex-direction:column;justify-content:flex-end;display:flex;position:sticky;bottom:0}.chat-page__footer--unsticked{position:relative}.chat-page__footer-content{padding-bottom:var(--spacer-r-8);gap:var(--spacer-r-8);border-width:var(--chat-footer-border-width);border-top-right-radius:var(--chat-footer-border-radius);border-top-left-radius:var(--chat-footer-border-radius);border-style:solid;border-color:var(--chat-footer-border-color);background:var(--chat-footer-background);box-shadow:var(--chat-footer-box-shadow);color:var(--chat-footer-color);flex-direction:column;display:flex;position:relative}.chat-page__footer-text{font-size:var(--base-font-size-xs);text-align:center;text-wrap:balance}.chat-page__footer-text :where(a){text-underline-offset:.15em;text-decoration:underline}.chat-page__buttons{padding-top:var(--spacer-80);padding-bottom:var(--spacer-40);align-self:center}.chat-page__give-feedback--disabled{opacity:0}.chat-page__scroll-to-bottom{opacity:1;position:absolute;top:0;left:50%;transform:translate(-50%,-150%)}.chat-page__scroll-to-bottom--hidden{transform:translate(-50%);opacity:0!important}.dialog-overlay{z-index:var(--z-index-dialog);background:var(--dialog-background-overlay);position:fixed;inset:0}.dialog-content{z-index:var(--z-index-dialog);width:calc(100% - var(--spacer-32));border-width:var(--dialog-border-width);border-radius:var(--dialog-border-radius);border-color:var(--dialog-border-color);background:var(--dialog-background);max-width:600px;max-height:90vh;box-shadow:var(--dialog-box-shadow,none);flex-direction:column;display:flex;position:fixed;top:50%;left:50%;overflow:clip;transform:translate(-50%,-50%)}.dialog-header{padding:var(--spacer-r-24);border-bottom-width:1px;border-bottom-color:var(--dialog-header-border-bottom-color,var(--dialog-border-color));font-weight:var(--dialog-header-font-weight,inherit);font-size:var(--dialog-header-font-size,inherit);justify-content:space-between;align-items:center;display:flex}.dialog-title{padding:0}.dialog-close{color:var(--anchor-color);justify-self:flex-end;margin-left:auto}.dialog-close:hover{color:var(--anchor-hover-color,var(--dialog-color))}.dialog-description{min-height:0;padding:var(--spacer-r-24);flex:1;overflow-y:auto}.dialog-footer{padding:var(--spacer-r-24);border-top-width:1px;border-top-color:var(--dialog-header-border-bottom-color,var(--dialog-border-color));background:var(--dialog-background);flex-shrink:0}.dialog-footer__actions{justify-content:flex-end;gap:var(--spacer-r-12);display:flex}:where(.flyout){z-index:var(--z-index-flyout);pointer-events:none;width:570px;max-width:100cqw;height:960px;max-height:100cqh;padding:10px;display:block;position:fixed;bottom:0;right:0}.flyout__backdrop{background-color:color-mix(in srgb, var(--flyout-backdrop-color,transparent) calc(var(--flyout-backdrop-opacity) * 100%), transparent);position:fixed;inset:0}.flyout__body{pointer-events:none;place-content:end flex-end;place-items:end;width:100%;height:100%;display:block;position:relative}.flyout__body:has(.flyout__content){pointer-events:auto}.flyout__content{width:100%;height:100%;display:block}.flyout__open-button{z-index:var(--z-index-local-overlay);pointer-events:auto;position:absolute;bottom:0;right:0}.flyout__content{filter:drop-shadow(0 0 8px #0003);border-radius:4px;overflow:clip}.flyout--defaults{right:var(--spacer-r-16);bottom:var(--spacer-r-16);width:200px;height:200px;display:block;position:fixed}.introduction{justify-content:center;align-items:center;gap:var(--spacer-r-16);flex-direction:column;display:flex}.introduction__avatar{width:var(--spacer-r-80);height:var(--spacer-r-80)}.introduction__title{font-size:var(--base-font-size-h3);text-align:center;text-wrap:balance}.introduction-disclaimer{margin-top:var(--spacer-r-32);font-size:var(--base-font-size-sm)}.message{min-height:0;transition:min-height 0 1.1s;display:flex}.message:last-child{min-height:var(--last-bot-message-min-height)}.message--bot{justify-content:flex-start;width:100%}.message--user:first-child+.message--bot{min-height:0}.message--bot :where(.message__content){width:100%}.message--user{justify-content:flex-end}.message--user :where(.message__content){padding:var(--spacer-8) var(--spacer-16);border-width:var(--message-user-border-width);border-radius:var(--message-user-border-radius);border-color:var(--message-user-border-color);background:var(--message-user-background);box-shadow:var(--message-user-box-shadow);color:var(--message-user-color)}.message--no-padding{padding:0 var(--spacer-16)}.open-button{--open-button-avatar-height:var(--spacer-r-80);--open-button-avatar-width:var(--spacer-r-80);--open-button-duration:.4s;--open-button-delay:.3s;--open-button-ease:ease-in-out;cursor:pointer;flex-direction:row;align-items:flex-end;transition:opacity .15s ease-out;display:flex}.open-button--expanded{opacity:0;pointer-events:none}.open-button__text{margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);flex-direction:column;justify-content:center;align-items:flex-start;padding-left:0;display:flex;position:absolute;bottom:50%;right:100%;overflow:hidden;transform:translateY(50%);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__text{background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);transform:translateY(0)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);white-space:pre;font-weight:700}.open-button__mask{width:0;height:0;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), height var(--open-button-duration) var(--open-button-ease);overflow:hidden}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease), height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance;position:relative}.open-button__avatar{z-index:var(--z-index-local-overlay);width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);border-radius:var(--spacer-r-80);filter:drop-shadow(0 4px 6px #00000026);transition:transform .2s var(--open-button-ease);position:relative;overflow:clip}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color);display:none;position:absolute;right:0}:where(.open-button--standalone){right:var(--spacer-r-16);bottom:var(--spacer-r-16);position:fixed}@media (prefers-reduced-motion:reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}.open-button--hide-title-when-collapsed .open-button__text{visibility:hidden;opacity:0;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), visibility 0s linear calc(var(--open-button-duration) + var(--open-button-delay))}.open-button--hide-title-when-collapsed:is(:hover,.open-button--programmatic-expand) .open-button__text{visibility:visible;background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-ease), visibility 0s linear 0s;transform:translateY(0)}.predefined-question{width:100%;height:100%;padding:var(--spacer-r-20);gap:var(--spacer-r-12);border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);box-shadow:var(--card-box-shadow,none);color:var(--card-color);line-height:var(--base-line-height-snug);text-align:left;cursor:pointer;flex-direction:column;display:flex;position:relative}.predefined-question:hover{border-width:var(--card-hover-border-width,var(--card-border-width));border-radius:var(--card-hover-border-radius,var(--card-border-radius));border-color:var(--card-hover-border-color,var(--card-border-color));background:var(--card-hover-background,var(--card-background));box-shadow:var(--card-hover-box-shadow,var(--card-box-shadow), none);color:var(--card-hover-color,var(--card-color))}.predefined-question:hover :where(.predefined-question__icon){color:var(--card-icon-hover-color)}.predefined-question:focus{z-index:var(--z-index-local-overlay)}@container chat-container (width>=640px){.predefined-question{padding:var(--spacer-r-24)}}.predefined-question__icon{color:var(--card-icon-color)}.predefined-questions{gap:var(--spacer-r-12);width:100%;display:grid}@container chat-container (width>=640px){.predefined-questions{grid-template-columns:repeat(3,1fr)}.predefined-questions:has(>li:only-child){grid-template-columns:1fr}.predefined-questions:has(>li:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}}.predefined-questions--pii-padding{transform:translateY(var(--spacer-56))}.reference-number{display:inline-block;position:relative}.reference-number__trigger{box-sizing:border-box;min-width:1.5em;height:1.5em;padding:var(--reference-number-trigger-padding);border-width:var(--reference-number-trigger-border-width);border-radius:var(--reference-number-trigger-border-radius);border-color:var(--reference-number-trigger-border-color);background:var(--reference-number-trigger-background);box-shadow:var(--reference-number-trigger-box-shadow);color:var(--reference-number-trigger-color);font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-xs);text-align:center;cursor:pointer;margin:0 .1em;line-height:1;text-decoration:none;display:inline-block;position:relative;top:-.1em}.reference-number__trigger:hover{background:var(--reference-number-trigger-hover-background);color:var(--reference-number-trigger-hover-color)}.reference-number__trigger:after{z-index:var(--z-index-local-overlay);content:"";background:0 0;position:absolute;inset:-.5em}.reference-number__content-wrapper{z-index:var(--z-index-reference-number);width:var(--reference-number-content-width);max-width:var(--reference-number-content-max-width);position:absolute}.reference-number__content{padding:var(--spacer-r-20);border-width:var(--reference-number-content-border-width);border-radius:var(--reference-number-content-border-radius);border-style:solid;border-color:var(--reference-number-content-border-color);background:var(--reference-number-content-background);box-shadow:var(--reference-number-content-box-shadow);display:block}.reference-number__content:hover{border-width:var(--reference-number-content-hover-border-width,var(--reference-number-content-border-width));border-color:var(--reference-number-content-hover-border-color,var(--reference-number-content-border-color));background:var(--reference-number-content-hover-background,var(--reference-number-content-background));color:var(--reference-number-content-hover-color,var(--reference-number-content-color));cursor:pointer}.reference-number__content:after{z-index:var(--z-index-local-overlay);content:"";background:0 0;position:absolute;inset:-.5em}.reference{padding:var(--spacer-12);gap:var(--spacer-12);border-width:var(--reference-border-width);border-radius:var(--reference-border-radius);border-color:var(--reference-border-color);background:var(--reference-background);box-shadow:var(--reference-box-shadow);color:var(--reference-color);cursor:pointer;display:flex}.reference:hover{border-width:var(--reference-hover-border-width,var(--reference-border-width));border-color:var(--reference-hover-border-color,var(--reference-border-color));background:var(--reference-hover-background,var(--reference-background));box-shadow:var(--reference-hover-box-shadow,var(--reference-box-shadow), none);color:var(--reference-hover-color,var(--reference-color))}.reference__number{min-width:1.5em;height:1.5em;margin-top:var(--spacer-1);padding:var(--reference-number-padding);border-width:var(--reference-number-border-width);border-radius:var(--reference-number-border-radius);border-color:var(--reference-number-border-color);background:var(--reference-number-background);box-shadow:var(--reference-number-box-shadow);color:var(--reference-number-color);font-weight:700;font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-xs);text-align:center;flex-shrink:0;line-height:1;display:block}@container chat-container (width>=640px){.reference__number{margin-top:calc(var(--spacer-1) * -1)}}a:hover .reference__number{border-width:var(--reference-number-hover-border-width,var(--reference-number-border-width));border-radius:var(--reference-number-hover-border-radius,var(--reference-number-border-radius));border-color:var(--reference-number-hover-border-color,var(--reference-number-border-color));background:var(--reference-number-hover-background,var(--reference-number-background));box-shadow:var(--reference-number-hover-box-shadow,var(--reference-number-box-shadow));color:var(--reference-number-hover-color,var(--reference-number-color))}.reference__header{justify-content:space-between;align-items:flex-start;gap:var(--spacer-12);width:100%;display:flex}.reference__title{font-size:var(--reference-font-size,var(--base-font-size-sm))}.reference__body{flex-direction:column;flex-grow:1;min-width:0;display:flex}.reference__icon{width:var(--spacer-20);color:var(--anchor-color);flex-shrink:0;position:relative}@media (hover:hover){.reference__icon{transform:translate(calc(var(--spacer-8) * -1), var(--spacer-8));opacity:0;transition:transform .2s ease-in-out,opacity .2s linear}}a:hover .reference__icon{opacity:1;transform:translate(0)}.reference__description{margin-top:var(--spacer-2);color:var(--reference-description-color);font-size:var(--base-font-size-sm)}a:hover .reference__description{color:var(--reference-description-hover-color)}.reference__footer{--footer-gap:var(--spacer-5);column-gap:var(--footer-gap);margin-top:var(--spacer-6);font-size:var(--base-font-size-xs);flex-wrap:wrap;display:flex}.reference__domain{max-width:100%;padding:var(--reference-domain-padding);border-width:var(--reference-domain-border-width);border-radius:var(--reference-domain-border-radius);border-color:var(--reference-domain-border-color);background:var(--reference-domain-background);box-shadow:var(--reference-domain-box-shadow);color:var(--reference-domain-color);font-weight:700;display:inline-flex}a:hover .reference__domain{border-width:var(--reference-domain-hover-border-width,var(--reference-domain-border-width));border-color:var(--reference-domain-hover-border-color,var(--reference-domain-border-color));background:var(--reference-domain-hover-background,var(--reference-domain-background));box-shadow:var(--reference-domain-hover-box-shadow,var(--reference-domain-box-shadow));color:var(--reference-domain-hover-color,var(--reference-domain-color))}.reference__breadcrumb{color:var(--reference-domain-color)}.reference__breadcrumb:before{padding-right:var(--footer-gap);content:"/";position:relative;top:-1px}a:hover .reference__breadcrumb{color:var(--reference-domain-hover-color,var(--reference-domain-color))}.references__container{--padding:var(--spacer-10);padding:var(--padding);flex-direction:column;display:flex}.references__transition{position:relative}.references__items{width:100%}.references__items :focus-within{z-index:var(--z-index-local-overlay);position:relative}.references__further{margin-top:var(--padding);margin-right:calc(var(--padding) * -1);margin-left:calc(var(--padding) * -1);border-top:1px solid var(--base-line-color)}.references__further :where(.references__container){scroll-margin-top:140px}.references__further :where(.reference){padding-left:var(--spacer-16)}.references__toggle{width:100%;padding:var(--spacer-20) var(--spacer-20) var(--spacer-20) var(--spacer-24);justify-content:space-between;align-items:center;gap:var(--spacer-8);border-width:var(--references-toggle-border-width);border-radius:var(--references-toggle-border-radius);border-color:var(--references-toggle-border-color);background:var(--references-toggle-background);box-shadow:var(--references-toggle-box-shadow);color:var(--references-toggle-color);font-weight:var(--references-toggle-font-weight,var(--base-font-weight-bold));font-size:var(--references-toggle-font-size,var(--base-font-size-sm));display:flex}.references__toggle:hover{border-color:var(--references-toggle-hover-border-color);background:var(--references-toggle-hover-background);box-shadow:var(--references-toggle-hover-box-shadow);color:var(--references-toggle-hover-color)}.references__toggle[data-state=open] :where(.references__toggle-icon){transform:rotate(180deg)}.references__toggle-icon{width:var(--spacer-24);transition:transform .2s}.jsonld-references{margin-top:var(--spacer-r-20);gap:var(--spacer-r-20);display:grid}@keyframes jsonld-fly-in{0%{transform:translateY(var(--jsonld-item-y,30px));opacity:0}to{opacity:1;transform:none}}.jsonld-references__item{min-width:0;animation:jsonld-fly-in var(--jsonld-item-duration,.3s) cubic-bezier(.165, .84, .44, 1) both;animation-delay:var(--jsonld-item-delay,0s);display:flex}.jsonld-references__item--preloading{visibility:hidden;pointer-events:none;width:400px;animation:none;position:absolute;left:-9999px}.jsonld-card{padding:var(--spacer-r-24);gap:var(--spacer-r-16);border-style:solid;flex-direction:column;flex:1;display:flex}.jsonld-card--map{--jsonld-card-radius:var(--message-json-ld-map-border-radius);border-width:var(--message-json-ld-map-border-width);border-radius:var(--message-json-ld-map-border-radius);border-color:var(--message-json-ld-map-border-color);background:var(--message-json-ld-map-background);box-shadow:var(--message-json-ld-map-box-shadow);color:var(--message-json-ld-map-color)}.jsonld-card--event{--jsonld-card-radius:var(--message-json-ld-event-border-radius);border-width:var(--message-json-ld-event-border-width);border-radius:var(--message-json-ld-event-border-radius);border-color:var(--message-json-ld-event-border-color);background:var(--message-json-ld-event-background);box-shadow:var(--message-json-ld-event-box-shadow);color:var(--message-json-ld-event-color)}.jsonld-card--cta{--jsonld-card-radius:var(--message-json-ld-cta-border-radius);border-width:var(--message-json-ld-cta-border-width);border-radius:var(--message-json-ld-cta-border-radius);border-color:var(--message-json-ld-cta-border-color);background:var(--message-json-ld-cta-background);box-shadow:var(--message-json-ld-cta-box-shadow);color:var(--message-json-ld-cta-color)}.jsonld-card__header{align-items:flex-start;min-width:0;display:flex}.jsonld-card__title{min-width:0;font-size:var(--base-font-size-h3);line-height:var(--base-line-height-tight);word-break:break-word;margin:0}.jsonld-card__meta{column-gap:var(--spacer-8);row-gap:var(--spacer-4);font-size:var(--base-font-size-sm);grid-template-columns:max-content 1fr;align-items:baseline;margin:0;display:grid}.jsonld-card__meta-label{padding-right:var(--spacer-12);font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-xs);line-height:var(--base-line-height-snug);letter-spacing:.04em;text-transform:uppercase}.jsonld-card__meta-value{line-height:var(--base-line-height-snug);white-space:pre-line;margin:0}.jsonld-card__event-date{gap:var(--spacer-2);flex-direction:column;display:flex}.jsonld-card__event-time{opacity:.7}.jsonld-card__description{margin-bottom:var(--spacer-6);font-size:var(--base-font-size-sm);line-height:var(--base-line-height-default);opacity:.9}.jsonld-card__address{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-snug);white-space:pre-line;margin:0}.jsonld-card__cta{border-width:var(--btn-primary-border-width);border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color);background:var(--btn-primary-background);box-shadow:var(--btn-primary-box-shadow);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700);align-self:flex-start;text-decoration:none}.jsonld-card__cta:hover{border-width:var(--btn-primary-hover-border-width,var(--btn-primary-border-width));border-color:var(--btn-primary-hover-border-color,var(--btn-primary-border-color));background:var(--btn-primary-hover-background,var(--btn-primary-background));box-shadow:var(--btn-primary-hover-box-shadow,var(--btn-primary-box-shadow));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.jsonld-card__cta-icon{width:var(--spacer-16);height:var(--spacer-16);flex-shrink:0}.jsonld-card__actions{align-items:center;gap:var(--spacer-12);flex-wrap:wrap;display:flex}.jsonld-card__link{align-items:center;gap:var(--spacer-6);color:var(--anchor-color,currentColor);font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-sm);display:inline-flex}.jsonld-card__link:hover{text-decoration:underline}.jsonld-card__map-frame{aspect-ratio:16/9;border:1px solid color-mix(in srgb, currentColor 10%, transparent);border-radius:calc(var(--jsonld-card-radius) * .7);background:color-mix(in srgb, currentColor 6%, transparent);width:100%;position:relative;overflow:hidden}.jsonld-card__map-canvas,.jsonld-card__map-frame .maplibregl-map{width:100%;height:100%;position:absolute;inset:0}.jsonld-card__map-frame .maplibregl-ctrl-attrib,.jsonld-card__map-frame .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-canvas{border-radius:0}.selected-topic{z-index:-10;position:relative}.selected-topic__animation-container--hidden{transform:translateY(-100%)}.selected-topic__container{align-items:stretch;gap:var(--selected-topic-separator-width);border:var(--selected-topic-border-width) solid var(--selected-topic-border-color);border-radius:var(--selected-topic-border-radius) var(--selected-topic-border-radius) 0 0;background-color:var(--selected-topic-border-color);width:fit-content;font-size:var(--base-font-size-xs);flex-wrap:wrap;margin-inline:auto;display:flex;overflow:hidden}.selected-topic__label,.selected-topic__btn{padding:var(--selected-topic-padding);background-color:var(--selected-topic-background);font-weight:var(--base-font-weight-bold);text-align:center;flex-grow:1}.selected-topic__label{justify-content:center;align-items:center;gap:var(--selected-topic-label-gap);color:var(--selected-topic-color);font-size:var(--base-font-size-xs);line-height:var(--base-line-height-default);display:flex}.selected-topic__label-complement{display:none}@container chat-container (width>=640px){.selected-topic__label-complement{display:block}}.selected-topic__btn{color:var(--selected-topic-btn-color);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function)}.selected-topic__btn:hover{color:var(--selected-topic-btn-hover-color)}.start-page{padding-top:var(--spacer-r-40);padding-bottom:var(--spacer-r-40);flex-direction:column;flex-grow:1;justify-content:center;align-items:stretch;display:flex}.start-page__introduction{margin-bottom:var(--spacer-r-48)}.start-page__chat-input{width:100%;margin-bottom:var(--spacer-r-32)}.tooltip-container{z-index:var(--z-index-tooltip);position:relative}.tooltip-container:hover{z-index:var(--z-index-tooltip-hover)}.tooltip{--background-color:var(--tooltip-background);z-index:var(--z-index-tooltip);padding:var(--spacer-3) var(--spacer-8);border-radius:var(--tooltip-border-radius);background:var(--background-color);color:var(--tooltip-color);font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-xs);white-space:nowrap;opacity:1;transition:opacity .15s cubic-bezier(.33,1,.68,1),transform .15s cubic-bezier(.33,1,.68,1);position:absolute;transform:translateY(0)}.tooltip:after{content:"";border-style:solid;border-width:5px;position:absolute}.tooltip-top:after{bottom:-10px;left:calc(50% + var(--tooltip-arrow-offset,0px));border-color:var(--background-color) transparent transparent transparent;transform:translate(-50%)}.tooltip-bottom:after{top:-10px;left:calc(50% + var(--tooltip-arrow-offset,0px));border-color:transparent transparent var(--background-color) transparent;transform:translate(-50%)}.tooltip-left:after{border-color:transparent var(--background-color) transparent transparent;top:50%;right:-10px;transform:translateY(-50%)}.tooltip-right:after{border-color:transparent transparent transparent var(--background-color);top:50%;left:-10px;transform:translateY(-50%)}.tooltip-bottom-right:after{border-color:transparent transparent var(--background-color) transparent;top:-10px;left:80%;transform:translate(-50%)}.tooltip-bottom-left:after{border-color:transparent transparent var(--background-color) transparent;top:-10px;left:20px;transform:translate(-50%)}.tooltip-hidden{opacity:0;pointer-events:none;transform:translateY(1rem)}.context-box.open .tooltip{display:none}.mic-icon{justify-content:center;align-items:center;height:1.5rem;display:flex;position:relative}.mic-icon .svg{width:inherit}.audio-level-mic-svg{width:1.5rem;height:1.5rem}.embed-combobox{--embed-combobox-side-offset:10px;align-items:start;gap:var(--spacer-r-32);flex-direction:column;display:flex}.embed-combobox__container{transition:opacity .3s linear}.embed-combobox__container--hidden{opacity:0;height:0}.embed-combobox__combobox{border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);background:var(--input-background);align-items:stretch;width:100%;min-width:min(14rem,100%);max-width:500px;display:inline-flex;position:relative}.embed-combobox__combobox:has(:focus-visible:not([data-disabled])){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3);outline-offset:var(--spacer-2)}.embed-combobox__no-result{margin-top:var(--spacer-r-12);margin-bottom:var(--spacer-12);padding:var(--spacer-4) var(--spacer-8)}[data-combobox-input]{width:100%;min-width:0;padding:var(--input-padding);padding-right:var(--spacer-r-64);color:var(--input-color);background:0 0;outline:none}[data-combobox-input]::placeholder{color:var(--input-placeholder-color)}[data-combobox-trigger]{z-index:var(--z-index-local-overlay);aspect-ratio:1;border:0;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;right:0}[data-combobox-trigger] :where(.btn){border-radius:calc(var(--btn-tertiary-border-radius) * .75)}[data-combobox-trigger][data-state=open],[data-combobox-trigger]:hover,[data-combobox-trigger]:focus-visible{outline:none}:is([data-combobox-trigger][data-state=open],[data-combobox-trigger]:hover,[data-combobox-trigger]:focus-visible) :where(.btn){background:var(--btn-tertiary-hover-background);color:var(--btn-tertiary-hover-color)}[data-combobox-trigger][data-disabled],[data-combobox-input][data-disabled]{cursor:not-allowed;opacity:.5}[data-combobox-content]{z-index:var(--z-index-flyout);width:var(--bits-combobox-anchor-width);min-width:var(--bits-combobox-anchor-width);max-height:min(21rem, var(--bits-combobox-content-available-height));padding:0 var(--spacer-r-12);border-width:var(--context-box-border-width);border-radius:var(--context-box-border-radius);border-style:solid;border-color:var(--context-box-border-color);background:var(--context-box-background);box-shadow:var(--context-box-box-shadow);font-size:var(--base-font-size-sm);-webkit-user-select:none;user-select:none;position:relative;overflow:hidden}[data-combobox-viewport]{flex-direction:column;gap:1px;display:flex}[data-bits-floating-content-wrapper]{padding:0}[data-combobox-item]{padding:var(--spacer-4) var(--spacer-8);align-items:center;gap:.5rem;gap:var(--spacer-8);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-menu-item-background);color:var(--context-box-menu-item-color);cursor:pointer;-webkit-user-select:none;user-select:none;grid-template-columns:1fr auto;transition:background .2s ease-in-out,color .2s ease-in-out;display:grid}[data-combobox-item]:first-of-type{margin-top:var(--spacer-r-12)}[data-combobox-item]:last-of-type{margin-bottom:var(--spacer-r-12)}[data-combobox-item][data-highlighted]{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}[data-combobox-item][data-selected]{background:var(--context-box-menu-item-active-background);color:var(--context-box-menu-item-active-color)}[data-combobox-item][data-disabled]{cursor:not-allowed;opacity:.5}[data-combobox-scroll-up-button],[data-combobox-scroll-down-button]{z-index:var(--z-index-local-overlay);padding:var(--spacer-4);background:linear-gradient(to bottom, var(--context-box-background), transparent);color:var(--context-box-menu-item-color);cursor:pointer;place-items:center;display:grid;position:absolute;top:0;left:0;right:0}:is([data-combobox-scroll-up-button],[data-combobox-scroll-down-button]):hover{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}[data-combobox-scroll-down-button]{background:linear-gradient(to top, var(--context-box-background), transparent);top:auto;bottom:0}[data-combobox-scroll-down-button]:hover{background:var(--context-box-menu-item-hover-background)}.embed-buttons{align-items:start;gap:var(--spacer-r-16);flex-direction:column;display:flex}.embed-buttons__buttons{gap:var(--spacer-r-12);flex-wrap:wrap;display:flex}}@value container-xs, container-sm, container-md, container-lg, container-inner-xs, container-inner-sm, container-inner-md, container-inner-lg from "./viewports.css";.message__bot-layout{gap:var(--spacer-r-16);width:100%;display:flex}.message__bot-avatar{top:var(--spacer-80);width:var(--spacer-24);height:var(--spacer-24);margin-top:calc(var(--spacer-1) * -1);margin-bottom:var(--spacer-20);flex-shrink:0;display:none;position:sticky;overflow:clip}@container chat-container (width>=480px){.message__bot-avatar{display:block}}@container chat-container (width>=640px){.message__bot-avatar{width:var(--spacer-32);height:var(--spacer-32);margin-top:calc(var(--spacer-3) * -1);margin-bottom:var(--spacer-16)}}.svg--avatar--hide{visibility:hidden;height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}.message__content,.message__bot-body,.message__bot-options{min-width:0}.message__bot-body{width:100%}.message__bot-options{z-index:var(--z-index-local-overlay);column-gap:var(--spacer-20);row-gap:var(--spacer-8);margin-top:var(--spacer-24);padding-top:var(--spacer-12);border-top-width:var(--message-options-border-width);border-color:var(--message-options-border-color);flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}@container chat-container (width>=640px){.message__bot-options{margin-top:var(--spacer-32);margin-bottom:var(--spacer-20)}}.message__bot-options:has(>:only-child){justify-content:flex-end}.message__bot-references{--btn-padding-x:var(--btn-padding-y);column-gap:var(--spacer-8);margin-left:calc(var(--btn-padding-x) * -1);flex-wrap:wrap;flex-grow:1;align-items:center;display:flex}.message__bot-references :where(.btn__label){display:flex}.message__bot-actions{--btn-padding-x:var(--btn-padding-y);margin-right:calc(var(--btn-padding-x) * -1);display:flex;position:relative}@container chat-container (width>=640px){.message__bot-actions{gap:var(--spacer-8)}}.message__bot-action--active :where(.svg) path{fill:currentColor}.message__bot-loading{width:var(--spacer-16);height:var(--spacer-16);margin:0 var(--spacer-2);display:inline-block}`;function NA(e,{delay:t=0,duration:n=200,easing:r=e=>e,baseScale:i=0,transformOrigin:a=`bottom right`,scaleDirection:o=`scale`}={}){if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: ${o}(1); transform-origin: ${a};`};let s=getComputedStyle(e),c=+s.opacity,l=s.transform.match(/scale[XY]?\(([0-9.]+)\)/),u=l?+l[1]:1,d=1-i;return{delay:t,duration:n,css:e=>{let t=r(e),n=t*u*d+i;return`opacity: ${t*c}; transform: ${o}(${n}); transform-origin: ${a};`}}}var PA=z(`<div class="loader-container svelte-6xtyn8"><svg width="40" height="40" viewBox="0 0 24 24"><circle cx="4" cy="12" r="3"><animate id="spinner_qFRN" begin="0;spinner_OcgL.end+0.25s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="12" cy="12" r="3"><animate begin="spinner_qFRN.begin+0.1s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="20" cy="12" r="3"><animate id="spinner_OcgL" begin="spinner_qFRN.begin+0.2s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle></svg></div>`),FA={hash:`svelte-6xtyn8`,code:`.loader-container.svelte-6xtyn8 {display:flex;z-index:var(--z-index-loader);position:absolute;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;background-color:#fff;}`};function IA(e,t){D(t,!0),ha(e,FA);let n=q(t,`color`,7),r=q(t,`background`,7);var i={get color(){return n()},set color(e){n(e),k()},get background(){return r()},set background(e){r(e),k()}},a=PA(),o=N(a);return E(a),L(()=>{Oa(a,r()?`background: ${r()};`:``),K(o,`fill`,n()??`rgba(127, 127, 127, 0.3)`)}),V(e,a),O(i)}J(IA,{color:{},background:{}},[],[],{mode:`open`});var LA=`@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.chat-app{--spacer-1:.0625rem;--spacer-2:.125rem;--spacer-3:.1875rem;--spacer-4:.25rem;--spacer-5:.3125rem;--spacer-6:.375rem;--spacer-8:.5rem;--spacer-10:.625rem;--spacer-12:.75rem;--spacer-16:1rem;--spacer-20:1.25rem;--spacer-24:1.5rem;--spacer-28:1.75rem;--spacer-32:2rem;--spacer-40:2.5rem;--spacer-48:3rem;--spacer-56:3.5rem;--spacer-64:4rem;--spacer-72:4.5rem;--spacer-80:5rem;--spacer-120:7.5rem;--spacer-r-8:clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12:clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16:clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20:clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24:clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28:clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32:clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40:clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48:clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56:clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64:clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80:clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96:clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120:clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration:.2s;--default-transition-timing-function:ease-in-out;--z-index-flyout:10000;--z-index-dialog:600;--z-index-loader:500;--z-index-reference-number:400;--z-index-footer:300;--z-index-header:200;--z-index-tooltip:100;--z-index-tooltip-hover:101;--z-index-local-overlay:10;--z-index-below:-10;--ease-out-quart:cubic-bezier(.165, .84, .44, 1);--ease-in-quart:cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart:cubic-bezier(.77, 0, .175, 1);--fly-in-id:0;--btn-padding-x:var(--spacer-r-20);--btn-padding-y:var(--spacer-r-8);--btn-icon-size:var(--spacer-24);--btn-submit-size:2.5em;--last-bot-message-min-height:0}.chat-app :where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow,none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.chat-app ::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:0 0}.chat-app ::-webkit-scrollbar-thumb{background-color:#0000004d;border-radius:4px;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:#0000004d transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app :hover::-webkit-scrollbar-thumb{visibility:visible}.chat-app :active::-webkit-scrollbar-thumb{visibility:visible}.chat-app :focus::-webkit-scrollbar-thumb{visibility:visible}.svg{width:var(--spacer-r-24);height:auto}.svg svg{width:100%;height:auto;display:block;overflow:visible}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{content:"";background-color:#0000;position:absolute;inset:0}.chat-app :where(.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}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.skip-link){width:0;height:0;color:var(--anchor-color);font-weight:700;font-size:var(--base-font-size-xs);position:absolute;overflow:hidden}.chat-app :where(.skip-link):focus-visible{width:auto;height:auto;position:static}.chat-app :where(.fly-in){--fly-in-id:0;--fly-in-duration:.4s;--fly-out-duration:.2s;--fly-in-delay:.3s;--fly-in-delay-additional:.1s;--fly-in-y:var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease, var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration);transform:translateY(0)}.chat-app :where(.truncate){text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden}.chat-app :where(.line-clamp){-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--6){-webkit-line-clamp:6}.chat-app :where(.container){width:100%;max-width:var(--container-max-width,1024px);padding-right:var(--spacer-16);padding-left:var(--spacer-16);margin:0 auto}@container chat-container (width>=640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (width>=768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){margin-bottom:var(--spacer-r-24);display:block}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-type:decimal;list-style-position:outside}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){padding-left:1em;position:relative}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{content:"•";font-size:.9em;position:absolute;top:0;left:0}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;background-color:var(--color-grey-700);background-color:var(--hr-color);border:none}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight,var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration,underline);text-decoration:var(--anchor-text-decoration,underline);text-underline-offset:var(--anchor-text-underline-offset,.15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container) :where(table){border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.text-container) :where(:first-child){margin-top:0}.chat-app :where(.text-container) :where(:last-child){margin-bottom:0}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}.chat-app :where(.display-contents){display:contents}.chat-app :where(.absolute){position:absolute!important}}@layer components{.chat-app{display:contents}.chat-app__container{height:100%;display:flex;overflow:hidden;transform:translateZ(0);container:chat-container/inline-size}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__container.chat-app__container--inline-layout-contained{height:90svh;scroll-margin-top:10svh}@media (width>=768px){.chat-app__container.chat-app__container--inline-layout-contained{height:100svh;scroll-margin-top:0}}.chat-app__main{overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden auto;container:chat-inner-container/inline-size}.chat-app__container--inline-layout .chat-app__main{overscroll-behavior-y:auto}.chat-app__loader-container{z-index:var(--z-index-loader);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.chat-app__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);background:var(--body-background);position:sticky;top:0}.chat-app__header--unsticked{position:relative}.chat-app__header-content{--btn-padding-x:var(--btn-padding-y);column-gap:var(--spacer-r-12);min-height:calc(var(--btn-padding-y) * 2 + var(--btn-icon-size) + var(--spacer-10) * 2);margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex;position:relative}.chat-app__header-content>:where(*){z-index:0;pointer-events:auto;position:relative}.chat-app__header-content:after{right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);content:"";border-bottom:1px solid #0000;transition:border-color .1s ease-in-out;position:absolute}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.chat-app__header-new-conversation{margin-right:auto;position:relative}@container chat-container (width>=640px){.chat-app__header-new-conversation .tooltip{display:none}}.chat-app__header--with-logo :where(.chat-app__header-content){margin-left:0}.chat-app__header--with-logo :where(.chat-app__header-new-conversation){margin-right:unset;margin-left:auto}.chat-app__header-logo{margin-right:auto}.chat-app__header-logo :where(svg){width:auto;height:var(--spacer-28)}.chat-app__body{flex-direction:column;flex-grow:1;width:100%;display:flex;position:relative}.chat-app__page-transition{flex-direction:column;flex-grow:1;width:100%;height:100%;display:flex}.chat-app__aside{--duration-in:.65s;--duration-out:.5s;visibility:hidden;width:0;transition-delay:0s, var(--duration-out);transition-duration:var(--duration-out), 0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart), linear;flex-grow:1;position:relative;top:0;bottom:0}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in), 0s;transition-timing-function:var(--ease-out-quart), linear}.chat-app__aside .tooltip{--background-color:var(--btn-secondary-hover-background)}.chat-app__aside-container{width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:relative;overflow-y:auto}.chat-app__container--inline-layout .chat-app__aside-container{overscroll-behavior-y:auto}.chat-app__aside-header,.chat-app__sheet-header{z-index:var(--z-index-header);flex-wrap:no-wrap;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);justify-content:space-between;align-items:center;gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color);display:flex;position:sticky;top:0}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);background:var(--aside-background-overlay);position:fixed;inset:0}.chat-app__sheet-content{z-index:var(--z-index-flyout);width:100%;max-width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:fixed;top:0;right:0;overflow-y:auto}.chat-app__container--inline-layout .chat-app__sheet-content{overscroll-behavior-y:auto}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:#0000}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}.chat-app__close-button{z-index:var(--z-index-flyout)}.open-button{--open-button-avatar-height:var(--spacer-r-80);--open-button-avatar-width:var(--spacer-r-80);--open-button-duration:.4s;--open-button-delay:.3s;--open-button-ease:ease-in-out;cursor:pointer;flex-direction:row;align-items:flex-end;transition:opacity .15s ease-out;display:flex}.open-button--expanded{opacity:0;pointer-events:none}.open-button__text{margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);flex-direction:column;justify-content:center;align-items:flex-start;padding-left:0;display:flex;position:absolute;bottom:50%;right:100%;overflow:hidden;transform:translateY(50%);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__text{background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);transform:translateY(0)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);white-space:pre;font-weight:700}.open-button__mask{width:0;height:0;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), height var(--open-button-duration) var(--open-button-ease);overflow:hidden}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease), height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance;position:relative}.open-button__avatar{z-index:var(--z-index-local-overlay);width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);border-radius:var(--spacer-r-80);filter:drop-shadow(0 4px 6px #00000026);transition:transform .2s var(--open-button-ease);position:relative;overflow:clip}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color);display:none;position:absolute;right:0}:where(.open-button--standalone){right:var(--spacer-r-16);bottom:var(--spacer-r-16);position:fixed}@media (prefers-reduced-motion:reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}.open-button--hide-title-when-collapsed .open-button__text{visibility:hidden;opacity:0;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), visibility 0s linear calc(var(--open-button-duration) + var(--open-button-delay))}.open-button--hide-title-when-collapsed:is(:hover,.open-button--programmatic-expand) .open-button__text{visibility:visible;background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-ease), visibility 0s linear 0s;transform:translateY(0)}}@value container-xs, container-sm, container-md, container-lg, container-inner-xs, container-inner-sm, container-inner-md, container-inner-lg from "./viewports.css";`,RA=e=>e,zA=typeof window<`u`?window:{screen:{},navigator:{}},BA=(zA.matchMedia||(function(){return{matches:!1}})).bind(zA),VA={get passive(){return!0}},HA=function(){};zA.addEventListener&&zA.addEventListener(`p`,HA,VA),zA.removeEventListener&&zA.removeEventListener(`p`,HA,!1),`PointerEvent`in zA;var UA=`ontouchstart`in zA,WA=`TouchEvent`in zA,GA=UA||WA&&BA(`(any-pointer: coarse)`).matches,KA=(zA.navigator.maxTouchPoints||0)>0||GA,qA=zA.navigator.userAgent||``,JA=BA(`(pointer: coarse)`).matches&&/iPad|Macintosh/.test(qA)&&Math.min(zA.screen.width||0,zA.screen.height||0)>=768,YA=(BA(`(pointer: coarse)`).matches||!BA(`(pointer: fine)`).matches&&UA)&&!/Windows.*Firefox/.test(qA),XA=BA(`(any-pointer: fine)`).matches||BA(`(any-hover: hover)`).matches||JA||!UA,ZA=KA&&(XA||!YA)?`hybrid`:KA?`touchOnly`:`mouseOnly`,QA=ZA===`mouseOnly`?`mouse`:ZA===`touchOnly`||YA?`touch`:`mouse`,$A=z(`<div class="open-button__title"></div>`),ej=z(`<div class="open-button__mask"><div class="open-button__description"></div></div>`),tj=z(`<div class="open-button__text"><!> <!></div>`),nj=z(`<div class="sr-only"> </div>`),rj=z(`<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"></div>`,1),ij=z(`<link rel="stylesheet"/>`),aj=z(`<!> <!>`,1),oj=z(`<!> <!> <!> <main class="chat-app"><!></main>`,1);function sj(e,t){D(t,!0);let n=(e,n)=>{let r=()=>n?.().chatConfig,i=()=>n?.().language,a=()=>n?.().colorScheme,c=A(()=>{let{openButtonTitle:e,openButtonDescription:t}=r().translations[i()];return{openButtonTitle:e,openButtonDescription:t}}),l=A(()=>r().fullTheme[a()].tokens.svgs),u=A(()=>r().fullTheme[a()]?.tokens.components.openButton?.custom),d=A(()=>!!R(u)?.hideTitleWhenCollapsed);{let n=A(()=>r().buttonHref?void 0:s()?`true`:`false`),i=A(()=>r().buttonHref?void 0:`true`),a=A(()=>r().buttonHref?void 0:o()),u=A(()=>[`open-button`,t.buttonClass,Z.data.flyoutIsOpen?`open-button--expanded`:void 0,R(d)?`open-button--hide-title-when-collapsed`:void 0]);rE(e,{get href(){return r().buttonHref},onclick:de,onmouseenter:le,onmouseleave:ue,use:w,get"aria-expanded"(){return R(n)},get"aria-haspopup"(){return R(i)},get"aria-controls"(){return R(a)},get style(){return t.buttonStyle},get className(){return R(u)},get isStandalone(){return R(f)},children:(e,t)=>{var n=rj(),r=P(n),i=e=>{var t=tj(),n=N(t),r=e=>{var t=$A();ta(t,()=>R(c).openButtonTitle,!0),E(t),V(e,t)};W(n,e=>{R(c).openButtonTitle&&e(r)});var i=F(n,2),a=e=>{var t=ej(),n=N(t);ta(n,()=>R(c).openButtonDescription,!0),E(n),oo(n,e=>M(v,e),()=>R(v)),E(t),oo(t,e=>M(_,e),()=>R(_)),V(e,t)};W(i,e=>{R(c).openButtonDescription&&QA===`mouse`&&e(a)}),E(t),V(e,t)},a=e=>{var t=nj(),n=N(t,!0);E(t),L(()=>H(n,Z.t.ariaOpenChat)),V(e,t)};W(r,e=>{R(c).openButtonTitle||R(c).openButtonDescription?e(i):e(a,-1)});var o=F(r,2);ta(o,()=>R(l).avatar,!0),E(o),V(e,n)},$$slots:{default:!0}})}},r=j(`light`),i=q(t,`host`,7),a=q(t,`onError`,7),o=q(t,`flyoutId`,7),s=q(t,`flyoutIsOpen`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`host`,`onError`,`flyoutId`,`flyoutIsOpen`]),l=async e=>RA(await(await fetch(`${e}/chatconfig`)).json()),u=async({forceTheme:e,lang:t,apiUrl:n})=>{let r=Zf(window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await l(n)),i;i=t?$f(t,r.supportedLanguages):np(r.supportedLanguages);let a=Jm(Object.keys(r.fullTheme));return{chatConfig:r,language:i,colorScheme:a}},d=(e,t)=>{if(e==null)return t;if(typeof e==`string`){let t=e.trim().toLowerCase();return!(t===``||t===`0`||t===`false`||t===`no`)}return typeof e==`number`?e!==0:typeof e==`boolean`?e:t},f=A(()=>!!i()),p=j(!1),m=j(!1),h=j(!1),g=j(void 0),_=j(void 0),v=j(void 0),y=A(()=>R(v)?.offsetWidth??0),b=A(()=>R(v)?.offsetHeight??0),x=j(void 0),S=j(!1),C,ee=j(!0);function te(){return R(x)?(clearTimeout(R(x)),M(x,void 0),!0):!1}async function ne(e){M(r,e.colorScheme,!0),C?.(),te(),M(S,!1);let n=e.chatConfig.fullTheme[R(r)]?.tokens.components.openButton?.custom??{},i=n.autoExpandScrollThreshold,a=Number(n.autoCollapseDelay??0),o=Number.isNaN(a)?0:Math.max(0,a),c=d(n.autoExpandOnce,!1),l=(()=>{if(i==null)return 100;if(typeof i==`string`){if(i.trim().toLowerCase()===`none`)return 0;let e=Number(i);return Number.isNaN(e)?100:e}let e=Number(i);return Number.isNaN(e)?100:e})();if(Number.isNaN(l)||l<=0)return;let u=`liipgpt-auto-expand-${t.apiUrl}`,f=!1;if(typeof window<`u`)try{f=window.localStorage.getItem(u)===`true`}catch(e){console.warn(`LiipGPT: unable to read auto-expand flag`,e)}M(h,f,!0);let p=()=>{if(!(window.scrollY/window.innerHeight*100>=l)){M(ee,!0);return}if(!(R(m)||s())&&!(c&&(f||R(h)))&&R(ee)){if(M(ee,!1),M(m,!0),M(h,!0),se(),c&&typeof window<`u`)try{window.localStorage.setItem(u,`true`)}catch(e){console.warn(`LiipGPT: unable to persist auto-expand flag`,e)}M(x,setTimeout(()=>{R(S)||(ce(),M(m,!1)),M(x,void 0)},o),!0)}};window.addEventListener(`scroll`,p,{passive:!0}),l===0&&(await Kr(),p()),C=()=>{window.removeEventListener(`scroll`,p)}}function re(){te(),M(m,!1),M(S,!1)}function w(e){M(g,e,!0)}function ie(){C?.(),te()}Ii(ie);function ae(){!R(v)||!R(_)||(R(_).style.width=`${R(y)}px`,R(_).style.height=`${R(b)}px`)}function oe(){R(_)&&(R(_).style.width=`0`,R(_).style.height=`0`)}function se(){R(g)&&(R(g).classList.add(`open-button--programmatic-expand`),ae())}function ce(){R(g)&&(R(g).classList.remove(`open-button--programmatic-expand`),oe())}function le(){te()&&M(S,!0),ae()}function ue(){te(),R(S)&&(M(m,!1),M(S,!1),R(g)?.classList.remove(`open-button--programmatic-expand`)),R(p)||oe()}function de(e){re(),t.onclick?.(e)}let fe=A(()=>u(c).then(async e=>(await ne(e),e)).catch(e=>a()(e)));var pe={get host(){return i()},set host(e){i(e),k()},get onError(){return a()},set onError(e){a(e),k()},get flyoutId(){return o()},set flyoutId(e){o(e),k()},get flyoutIsOpen(){return s()},set flyoutIsOpen(e){s(e),k()}},me=B();return ri(`beforeunload`,An,ie),ma(`1k415fq`,e=>{var t=B(),n=P(t),r=e=>{var t=B();Hi(P(t),()=>R(fe),null,(e,t)=>{let n=A(()=>R(t).chatConfig.fullTheme[R(t).colorScheme]);var r=aj(),i=P(r);Yi(i,17,()=>R(n).fontURLs??[],Gi,(e,t)=>{var n=ij();L(()=>K(n,`href`,R(t))),V(e,n)}),jA(F(i,2),{id:`font-css`,get css(){return R(n).fontCSS}}),V(e,r)}),V(e,t)};W(n,e=>{R(f)&&e(r)}),V(e,t)}),Hi(P(me),()=>R(fe),e=>{},(e,t)=>{let i=A(()=>R(t).chatConfig.fullTheme[R(r)]);var a=B(),o=P(a),s=e=>{var r=oj(),a=P(r);{let e=A(()=>AA(R(i).tokens));jA(a,{id:`theme-css`,get css(){return R(e)}})}var o=F(a,2);jA(o,{id:`app-css`,get css(){return LA}});var s=F(o,2);jA(s,{id:`custom-css`,get css(){return R(i).customCSS}});var c=F(s,2);n(N(c),()=>R(t)),E(c),V(e,r)},c=e=>{n(e,()=>R(t))};W(o,e=>{R(f)?e(s):e(c,-1)}),V(e,a)}),V(e,me),O(pe)}J(sj,{host:{},onError:{},flyoutId:{},flyoutIsOpen:{}},[],[],{mode:`open`});var cj=z(`<div class="flyout__backdrop"></div>`),lj=z(`<div class="flyout__content"><!></div>`),uj=z(`<div><!> <div class="flyout__body"><!> <div><!></div></div></div>`),dj=z(`<!> <div class="chat-app__container"><div class="chat-app__loader-container"><!></div></div>`,1);function fj(e,t){D(t,!0);let n=q(t,`children`,7),r=q(t,`loaderColor`,7),i=q(t,`loaderBackground`,7),a=q(t,`flyout`,7),o=q(t,`flyoutClass`,7),s=q(t,`flyoutStyle`,7),c=q(t,`onCloseChat`,7),l=q(t,`onError`,7),u=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`loaderColor`,`loaderBackground`,`flyout`,`flyoutClass`,`flyoutStyle`,`onCloseChat`,`onError`]),d=A(()=>Z.theme?.components?.flyout?.custom??{}),f=A(()=>({enabled:Z.data?.chatConfig?.enableBackdrop??!1,delayIn:Number(R(d).backdropDelayIn??0),durationIn:Number(R(d).backdropDurationIn??200),delayOut:Number(R(d).backdropDelayOut??0),durationOut:Number(R(d).backdropDurationOut??200),baseScaleIn:Number(R(d).backdropBaseScaleIn??1),baseScaleOut:Number(R(d).backdropBaseScaleOut??1),transformOrigin:String(R(d).backdropTransformOrigin??`center`),scaleDirection:String(R(d).backdropScaleDirection??`scale`)})),p=A(()=>({in:{delay:R(f).delayIn,duration:R(f).durationIn,baseScale:R(f).baseScaleIn,transformOrigin:R(f).transformOrigin,scaleDirection:R(f).scaleDirection},out:{delay:R(f).delayOut,duration:R(f).durationOut,baseScale:R(f).baseScaleOut,transformOrigin:R(f).transformOrigin,scaleDirection:R(f).scaleDirection}})),m,h=e=>{I(()=>{let t=e=>{m=e};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t),m=void 0}})},g=`flyout`,_=j(void 0),v=A(()=>Z.data.flyoutIsOpen),y=j(!1),b=A(()=>Z.initialized),x=A(()=>Z.data.hasOpenedOverlays);I(()=>{!Z.data.flyoutIsOpen&&R(y)&&(R(_)?.querySelector(`button`))?.focus({preventScroll:!0}),M(y,R(v),!0)}),I(()=>{if(R(b)&&R(v)){let e=e=>{e.key===`Escape`&&(R(x)||c()())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}}});var S={get children(){return n()},set children(e){n(e),k()},get loaderColor(){return r()},set loaderColor(e){r(e),k()},get loaderBackground(){return i()},set loaderBackground(e){i(e),k()},get flyout(){return a()},set flyout(e){a(e),k()},get flyoutClass(){return o()},set flyoutClass(e){o(e),k()},get flyoutStyle(){return s()},set flyoutStyle(e){s(e),k()},get onCloseChat(){return c()},set onCloseChat(e){c(e),k()},get onError(){return l()},set onError(e){l(e),k()}},C=B();ri(`click`,An,e=>{e!==m&&a()&&c()()});var ee=P(C),te=e=>{var t=B(),r=P(t),i=e=>{},a=e=>{var t=uj(),r=N(t),i=e=>{var t=cj();da(1,t,()=>NA,()=>({...R(p).in,easing:MT})),da(2,t,()=>NA,()=>({...R(p).out,easing:MT})),V(e,t)};W(r,e=>{Z.data.flyoutIsOpen&&R(f).enabled&&e(i)});var a=F(r,2);K(a,`id`,g);var c=N(a),d=e=>{var t=lj();U(N(t),n),E(t),da(1,t,()=>NA,()=>({delay:0,duration:500,easing:MT,baseScale:.3})),da(2,t,()=>NA,()=>({delay:100,duration:300,easing:MT,baseScale:.7})),V(e,t)};W(c,e=>{Z.data.flyoutIsOpen&&e(d)});var m=F(c,2);sj(N(m),po({get onError(){return l()},onclick:e=>{e.stopPropagation(),Sh.openFlyout()},flyoutId:g,get flyoutIsOpen(){return R(v)},buttonClass:`flyout__open-button`},()=>u)),E(m),oo(m,e=>M(_,e),()=>R(_)),E(a),ga(a,e=>h?.(e)),E(t),L(()=>{Oa(t,s()),Ea(t,1,ba([`flyout`,o()]))}),V(e,t)};W(r,e=>{Z.initialized?e(a,-1):e(i)}),V(e,t)},ne=e=>{var a=B(),o=P(a),s=e=>{var n=dj(),a=P(n);jA(a,{id:`app-css`,get css(){return MA}});var o=F(a,2),s=N(o);na(N(s),t,`loader`,{},e=>{IA(e,{get background(){return i()},get color(){return r()}})}),E(s),E(o),da(2,o,()=>ek,()=>({duration:200,delay:300})),V(e,n)},c=e=>{var t=B();U(P(t),n),V(e,t)};W(o,e=>{Z.initialized?e(c,-1):e(s)}),V(e,a)};return W(ee,e=>{a()?e(te):e(ne,-1)}),V(e,C),O(S)}J(fj,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},[`loader`],[],{mode:`open`});var pj=z(`<button type="button"> </button>`),mj=z(`<div class="dialog-footer__actions"></div>`);function hj(e,t){D(t,!1);function n(e){let t=Sh[e];typeof t==`function`&&t()}so();{let t=e=>{var t=B();ta(P(t),()=>Z.data.openedPopup?.title),V(e,t)},r=e=>{var t=B();ta(P(t),()=>Z.data.openedPopup?.content),V(e,t)},i=e=>{var t=B(),r=P(t),i=e=>{var t=mj();Yi(t,5,()=>Z.data.openedPopup.actions,Gi,(e,t)=>{let r=()=>R(t).action,i=()=>R(t).label,a=()=>R(t).type;var o=pj(),s=N(o,!0);E(o),L(()=>{Ea(o,1,`btn btn--${a()??`secondary`??``}`),H(s,i())}),ii(`click`,o,()=>n(r())),V(e,o)}),E(t),V(e,t)};W(r,e=>{Z.data.openedPopup?.actions?.length&&e(i)}),V(e,t)},a=dn(()=>Z.data.openedPopup!==void 0);tD(e,{get open(){return R(a)},get onClose(){return Sh.closePopup},title:t,content:r,footer:i,$$slots:{title:!0,content:!0,footer:!0}})}O()}ai([`click`]),J(hj,{},[],[],{mode:`open`});var gj=z(`<span class="reference__description line-clamp line-clamp--6"> </span>`),_j=z(`<span class="reference__breadcrumb transition-colors"> </span>`),vj=z(`<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>`),yj=z(`<div class="reference-number__content-wrapper" role="tooltip" aria-hidden="true"><a class="reference-number__content transition-colors no-link-styling" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><span class="reference__header"><h3 class="reference__title line-clamp line-clamp--2 h4"> </h3> <!></span> <!> <!></a></div>`),bj=z(`<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>`);function xj(e,t){D(t,!0);let n=A(()=>Z.t),r=q(t,`usedNumber`,7),i=q(t,`source`,7),a=j(!1),o,s=j(void 0),c=j(void 0),l=A(i),u=A(()=>R(l).display.card.title),d=A(()=>R(l).display.card.description),f=A(()=>R(l).display.card.badge),p=A(()=>R(l).display.card.breadcrumbs),m={duration:Number(Z.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(Z.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(Z.theme.components.referenceNumberContent.custom?.transitionY)||10},h=async()=>{if(!R(s)||!R(c))return;let{x:e,y:t}=await bC(R(s),R(c),{placement:`top`,middleware:[pC(8),hC(),mC({padding:8})]});Object.assign(R(c).style,{left:`${e}px`,top:`${t}px`})},g=()=>{o&&=(clearTimeout(o),void 0)},_=()=>{g(),o=setTimeout(()=>{M(a,!1)},100)},v=`tooltip-${pf()}`,y=e=>{e.key===`Escape`&&M(a,!1)},b=()=>{g(),M(a,!0)};I(()=>{R(a)?document.addEventListener(`keydown`,y):document.removeEventListener(`keydown`,y)}),I(()=>{R(a)&&h()});var x={get usedNumber(){return r()},set usedNumber(e){r(e),k()},get source(){return i()},set source(e){i(e),k()}},S=bj(),C=N(S),ee=N(C,!0);E(C),oo(C,e=>M(s,e),()=>R(s));var te=F(C,2),ne=e=>{var t=yj(),n=N(t),r=N(n),i=N(r),a=N(i,!0);E(i),Oh(F(i,2),{name:`externalLink`,class:`reference__icon transition-colors`}),E(r);var o=F(r,2),s=e=>{var t=gj(),n=N(t,!0);E(t),L(()=>H(n,R(d))),V(e,t)};W(o,e=>{R(d)&&e(s)});var h=F(o,2),g=e=>{var t=vj(),n=N(t),r=N(n),i=N(r,!0);E(r),E(n);var a=F(n,2),o=e=>{var t=B();Yi(P(t),17,()=>R(p),Gi,(e,t)=>{var n=_j(),r=N(n,!0);E(n),L(()=>H(r,R(t))),V(e,n)}),V(e,t)};W(a,e=>{R(p)&&e(o)}),E(t),L(()=>H(i,R(f))),V(e,t)};W(h,e=>{R(f)&&e(g)}),E(n),E(t),oo(t,e=>M(c,e),()=>R(c)),L(()=>{K(t,`id`,v),K(n,`href`,R(l).url),H(a,R(u))}),ri(`mouseenter`,t,b),ri(`mouseleave`,t,_),da(3,t,()=>LT,()=>m),V(e,t)};return W(te,e=>{R(a)&&e(ne)}),E(S),L(()=>{K(C,`href`,R(l).url),K(C,`aria-describedby`,R(a)?v:void 0),K(C,`aria-label`,`${R(n).referenceLink??``}: ${R(u)??``}`),K(C,`data-state`,R(a)?`open`:`closed`),H(ee,r())}),ri(`mouseenter`,C,b),ri(`mouseleave`,C,_),ri(`focus`,C,()=>M(a,!0)),ri(`blur`,C,()=>M(a,!1)),V(e,S),O(x)}customElements.define(`liipgpt-reference-number`,J(xj,{source:{attribute:`data-source`,type:`Object`},refNumber:{attribute:`data-all-index`,type:`String`},usedNumber:{attribute:`data-used-index`,type:`String`}},[],[]));var Sj=`main-navigation`,Cj=e=>{e.preventDefault(),Z.targets.chatAppMainNavigation&&(Z.targets.chatAppMainNavigation.scrollIntoView({behavior:`smooth`,block:`start`}),Z.targets.chatAppMainNavigation.focus())},wj=z(`<link rel="stylesheet"/>`),Tj=z(`<link rel="stylesheet"/>`),Ej=z(`<!> <!> <!>`,1),Dj=z(`<link rel="stylesheet"/>`),Oj=z(`<!> <!> <!> <!>`,1),kj=z(`<h1 class="sr-only"> </h1>`),Aj=z(`<h2 class="sr-only absolute"> </h2>`),jj=z(`<div class="chat-app__header-logo"></div>`),Mj=z(`<!> <!> <!>`,1),Nj=z(`<!> <!> <!> <!>`,1),Pj=z(`<div class="chat-app__page-transition"><!></div>`),Fj=z(`<div><div class="chat-app__main"><div class="chat-app__portals"></div> <!> <div><div class="container"><!> <!> <div id="chat-app-header-portal"></div></div></div> <div class="chat-app__body"><!> <!></div></div> <!> <!></div>`),Ij=z(`<div><!> <!></div>`);function Lj(e,t){D(t,!0);let n=q(t,`host`,7),r=q(t,`onError`,7),i=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`host`,`onError`]);I(()=>{let e={forceTheme:t.forceTheme,apiUrl:t.apiUrl,apiKey:t.apiKey,speechRecognitionApiKey:t.speechRecognitionApiKey,lang:t.lang,features:t.features,loaderBackground:t.loaderBackground,loaderColor:t.loaderColor,flyout:t.flyout,flyoutStyle:t.flyoutStyle,flyoutClass:t.flyoutClass,chatClass:t.chatClass,inlineLayout:t.inlineLayout,forceChatPage:t.forceChatPage,hidePredefinedQuestions:t.hidePredefinedQuestions,autofirePredefinedQuestionId:t.autofirePredefinedQuestionId,additionalStartParameters:t.additionalStartParameters,question:t.question,mode:t.mode,source:t.source,cache:t.cache};Yr(()=>Sh.init(e).catch(e=>r()(e)))});let a=A(()=>Z.data.route.name),o=()=>{Sh.closeFlyout(),n().dispatchEvent(new CustomEvent(`closechat`))};I(()=>{Z.initialized&&Z.data?.chatConfig&&n().dispatchEvent(new CustomEvent(`configloaded`,{detail:Z.data.chatConfig}))});let s=j(void 0),c=j(null),l=Uf.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout,u=j(!1),d=A(()=>R(c)?Z.data.props?.flyout||R(c)<=l:null),f=j(void 0),p=j(!1),m=j(0);I(()=>{if(R(f)&&R(f).firstElementChild instanceof HTMLElement){let e=getComputedStyle(R(f).firstElementChild);M(m,parseFloat(e.paddingTop)||0,!0)}}),I(()=>{let e=!1,t=()=>{e||(e=!0,requestAnimationFrame(()=>{R(s)&&(e=!1,Z.targets.scrollContainer?.scrollTop===0&&y(),M(p,R(s).scrollTop>=R(m)+1))}))};return t(),R(s)?.addEventListener(`scroll`,t,{passive:!0}),()=>R(s)?.removeEventListener(`scroll`,t)});let h=()=>{Sh.closeReferencesAside()};I(()=>{Z.initialized&&Z.data.currentReferencesAsideId?M(u,!0):M(u,!1)});let g=j(void 0),_,v=j(!1),y=()=>{M(v,!1),_?.disconnect(),_=new IntersectionObserver(([e])=>{e.isIntersecting?(M(v,!0),_.disconnect()):M(v,!1)},{root:Z.targets.scrollContainer,rootMargin:`-15% 0px 0px 0px`}),R(g)&&_.observe(R(g))};Fi(()=>{if(R(g))return y(),window.addEventListener(`resize`,y),()=>{_?.disconnect(),window.removeEventListener(`resize`,y)}});let b=A(()=>Z.initialized);I(()=>{R(b)&&R(d)!==null&&Yr(()=>Sh.setAsideMobile(R(d)))});let x=j(void 0),S=A(()=>Z.data?.chatConfig?.inlineLayout&&!Z.data.props.flyout);I(()=>{let e=0,t=()=>{e=window.visualViewport?.height??window.innerHeight},n=new ResizeObserver(()=>{let t=window.innerWidth<768?.9:1;R(x)&&R(x).offsetHeight>e*t&&(Z.data.isInlineLayoutContained=!0,requestAnimationFrame(()=>{R(x)?.offsetHeight,window.dispatchEvent(new Event(`resize`))}))}),r=[`mouseup`,`click`],i=!1;Wm()||r.push(`keydown`);let a=()=>{i||(i=!0,R(x)?.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{i=!1},300))};return R(S)&&R(x)&&(t(),window.visualViewport?.addEventListener(`resize`,t),window.addEventListener(`resize`,t),n.observe(R(x)),r.forEach(e=>{R(x).addEventListener(e,a,!0)})),()=>{R(x)&&r.forEach(e=>{R(x).removeEventListener(e,a,!0)}),n.disconnect(),window.visualViewport?.removeEventListener(`resize`,t),window.removeEventListener(`resize`,t)}});let C=A(()=>Z.data.props?.flyout);return I(()=>{R(b)&&R(C)&&(n().setAttribute(`role`,`region`),Yr(()=>{n().setAttribute(`aria-label`,Z.t.ariaFlyoutRegion)}))}),ma(`3hann0`,e=>{var t=B(),n=P(t),r=e=>{var t=Ej(),n=P(t);Yi(n,17,()=>Z.themeBase.fontURLs??[],Gi,(e,t)=>{var n=wj();L(()=>K(n,`href`,R(t))),V(e,n)});var r=F(n,2);Yi(r,17,()=>Z.data.additionalStylesheets,Gi,(e,t)=>{var n=Tj();L(()=>K(n,`href`,R(t))),V(e,n)}),jA(F(r,2),{id:`font-css`,get css(){return Z.themeBase.fontCSS}}),V(e,t)};W(n,e=>{Z.initialized&&e(r)}),V(e,t)}),cx(e,{get defaultPortalTo(){return R(s)},children:(e,n)=>{var l=Ij();let m;var _=N(l),y=e=>{var t=Oj(),n=P(t);{let e=A(()=>AA(Z.theme));jA(n,{id:`theme-css`,get css(){return R(e)}})}var r=F(n,2);jA(r,{id:`app-css`,get css(){return MA}});var i=F(r,2);jA(i,{id:`custom-css`,get css(){return Z.themeBase.customCSS}}),Yi(F(i,2),17,()=>Z.data.additionalStylesheets,Gi,(e,t)=>{var n=Dj();L(()=>K(n,`href`,R(t))),V(e,n)}),V(e,t)};W(_,e=>{Z.initialized&&e(y)}),fj(F(_,2),po({onCloseChat:o,get onError(){return r()}},()=>i,{children:(e,t)=>{var n=Fj(),r=N(n),i=N(r);ga(i,(e,t)=>wh?.(e,t),()=>`portals`);var l=F(i,2);Eh(l,{});var m=F(l,2),_=N(m),y=N(_),b=e=>{var t=kj(),n=N(t,!0);E(t),L(()=>H(n,Z.t.ariaPageTitle)),V(e,t)};W(y,e=>{!R(C)&&!R(S)&&e(b)});var ee=F(y,2);pa(ee,()=>Z.hasMainNavigationContent?`nav`:`div`,!1,(e,t)=>{ga(e,(e,t)=>wh?.(e,t),()=>`chatAppMainNavigation`),qa(e,()=>({class:`chat-app__header-content`,"aria-label":Z.hasMainNavigationContent?Z.ariaMainNavigationRegion:void 0,tabindex:Z.hasMainNavigationContent?-1:void 0,id:Sj,[Na]:{"has-border":R(p)}}));var n=Nj(),r=P(n),i=e=>{var t=Aj(),n=N(t,!0);E(t),L(()=>H(n,Z.t.ariaMainNavigation)),V(e,t)};W(r,e=>{Z.hasMainNavigationContent&&e(i)});var s=F(r,2),c=e=>{var t=jj();ta(t,()=>Z.theme.svgs.headerLogo,!0),E(t),V(e,t)};W(s,e=>{Z.theme.svgs.headerLogo&&e(c)});var l=F(s,2),u=e=>{GO(e,{class:`chat-app__header-new-conversation`})};W(l,e=>{R(a)===`chat-page`&&!Z.data.chatConfig.forceChatPage&&e(u)});var d=F(l,2),f=e=>{var t=Mj(),n=P(t),r=e=>{{let t=A(()=>Z.t.aboutThisChat||``);wO(e,{get content(){return R(t)}})}};W(n,e=>{Z.data.chatConfig.showContextInfo&&e(r)});var i=F(n,2),a=e=>{HO(e,{})};W(i,e=>{Z.data.chatConfig.showContextMenu&&e(a)});var s=F(i,2),c=e=>{JE(e,{onclick:o})};W(s,e=>{(Z.data.chatConfig.showCloseChatButton||Z.data.props.flyout)&&e(c)}),V(e,t)};W(d,e=>{Z.initialized&&e(f)}),V(t,n)}),ga(F(ee,2),(e,t)=>wh?.(e,t),()=>`chatAppHeaderPortal`),E(_),E(m),oo(m,e=>M(g,e),()=>R(g)),ga(m,(e,t)=>wh?.(e,t),()=>`chatAppHeader`);var te=F(m,2),ne=N(te);hj(ne,{}),Wi(F(ne,2),()=>R(a),e=>{var t=Pj(),n=N(t),r=e=>{_O(e,{})},i=e=>{_k(e,{})},o=e=>{dO(e,{})};W(n,e=>{R(a)===`consent-page`?e(r):R(a)===`start-page`?e(i,1):R(a)===`chat-page`&&e(o,2)}),E(t),oo(t,e=>M(f,e),()=>R(f)),da(1,t,()=>IT,()=>({duration:300,delay:250})),da(2,t,()=>ek,()=>({duration:150})),V(e,t)}),E(te),E(r),oo(r,e=>M(s,e),()=>R(s)),ga(r,(e,t)=>wh?.(e,t),()=>`scrollContainer`);var re=F(r,2),w=e=>{KE(e,{get isOpen(){return R(u)},get isMobile(){return R(d)},get showReferencesByDefault(){return Z.data.chatConfig.showReferencesByDefault},onClose:h,get title(){return Z.t.referencesTitle},children:(e,t)=>{lk(e,{})},$$slots:{default:!0}})};W(re,e=>{R(d)!==null&&e(w)}),km(F(re,2),{position:`top-center`,get containerAriaLabel(){return Z.t.ariaNotifications}}),E(n),rr(()=>io(n,`clientWidth`,e=>M(c,e))),oo(n,e=>M(x,e),()=>R(x)),ga(n,(e,t)=>wh?.(e,t),()=>`chatAppContainer`),L(()=>{Ea(n,1,ba([`chat-app__container`,{"chat-app__container--inline-layout":R(S),"chat-app__container--inline-layout-contained":Z.data.isInlineLayoutContained}])),Ea(m,1,ba([`chat-app__header`,{"chat-app__header--unsticked":R(v),"chat-app__header--with-logo":Z.theme.svgs.headerLogo}]))}),V(e,n)},$$slots:{default:!0}})),E(l),L(()=>{Ea(l,1,ba([`chat-app`,t.chatClass])),K(l,`role`,!R(C)&&!R(S)?`main`:void 0),m=Oa(l,``,m,{"color-scheme":Z.colorScheme||`light`})}),V(e,l)},$$slots:{default:!0}}),O({get host(){return n()},set host(e){n(e),k()},get onError(){return r()},set onError(e){r(e),k()}})}J(Lj,{host:{},onError:{}},[],[],{mode:`open`});var Rj=z(`<div class="chat-app__container"><div class="error-message svelte-14mj70v">Server is unreachable, please try later... <button class="error-message__retry-button svelte-14mj70v">Retry</button></div></div>`),zj=z(` <!>`,1),Bj={hash:`svelte-14mj70v`,code:`
|
|
546
|
+
}}.embed-alva-score__separator.svelte-16h2wiv {display:block;align-self:flex-end;width:4.8rem;margin-top:-0.3rem;padding-bottom:0.5rem;border-top-width:var(--message-options-border-width);border-color:var(--message-options-border-color);}`};function xE(e,t){O(t,!0),ha(e,bE);let n=M(void 0);er(()=>{Yr(()=>{N(n,aE.getContext(),!0),aE.currentContext.experimentState===`in-progress`&&aE.updateContext(e=>({...e,nextLevel:cE(),nextShowCount:e.nextShowCount+1}))})});let r={low:`Tief`,medium:`Mittel`,high:`Hoch`};var i=yE(),a=F(i),o=e=>{var t=B(),i=F(t),a=e=>{var t=B(),i=F(t),a=e=>{var t=_E(),i=I(P(t));D(t),L(()=>H(i,` Antwortsicherheit: ${r[R(n).nextLevel]??R(n).nextLevel??``}`)),V(e,t)},o=e=>{var t=vE(),i=I(P(t));D(t),L(()=>H(i,` Antwortunsicherheit: ${r[R(n).nextLevel]??R(n).nextLevel??``}`)),V(e,t)};W(i,e=>{R(n).assignedGroup===`certainty`?e(a):R(n).assignedGroup===`uncertainty`&&e(o,1)}),V(e,t)};W(i,e=>{R(n).nextShowCount<=2&&e(a)}),V(e,t)};W(a,e=>{aE.currentContext.isDesktop&&R(n).experimentState===`in-progress`&&e(o)}),iE(I(a,2),{belowScore:!0}),V(e,i),k()}J(xE,{},[],[],{mode:`open`});function SE(e,t){O(t,!0);let n=q(t,`href`,7),r=q(t,`target`,7),i=q(t,`onclick`,7),a=q(t,`className`,23,()=>[]),o=q(t,`isStandalone`,7,!1),s=q(t,`children`,7),c=q(t,`type`,7,`button`),l=q(t,`use`,7),u=q(t,`class`,7),d=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`href`,`target`,`onclick`,`className`,`isStandalone`,`children`,`type`,`use`,`class`]),f=j(()=>n()?`a`:`button`),p=j(()=>[...Array.isArray(a())?a():a()?[a()]:[],...u()?[u()]:[]]),m=()=>({}),h=j(()=>l()??m);var g={get href(){return n()},set href(e){n(e),A()},get target(){return r()},set target(e){r(e),A()},get onclick(){return i()},set onclick(e){i(e),A()},get className(){return a()},set className(e=[]){a(e),A()},get isStandalone(){return o()},set isStandalone(e=!1){o(e),A()},get children(){return s()},set children(e){s(e),A()},get type(){return c()},set type(e=`button`){c(e),A()},get use(){return l()},set use(e){l(e),A()},get class(){return u()},set class(e){u(e),A()}},_=B();return pa(F(_),()=>R(f),!1,(e,t)=>{ga(e,e=>R(h)?.(e)),qa(e,()=>({...d,onclick:n()?void 0:i(),type:n()?void 0:c(),href:n(),role:n()?`link`:`button`,target:n()?r():void 0,class:R(p),[Na]:{"open-button--standalone":o()}}));var a=B();U(F(a),s),V(t,a)}),V(e,_),k(g)}J(SE,{href:{},target:{},onclick:{},className:{},isStandalone:{},children:{},type:{},use:{},class:{}},[],[],{mode:`open`});function CE(e,t){O(t,!0);let n=q(t,`html`,7),r=q(t,`oncomplete`,7),i=M(``),a=null;Fi(()=>{if(!n()){N(i,``),r()?.();return}let e=Mf(n());if(e.length<=1){N(i,n(),!0),r()?.();return}let t=0,o=()=>{if(a=null,t>=e.length)return;N(i,R(i)+e[t]);let n=Nf(e[t]);t++,t<e.length?a=setTimeout(o,n):r()?.()};return o(),()=>{a!==null&&(clearTimeout(a),a=null)}});var o={get html(){return n()},set html(e){n(e),A()},get oncomplete(){return r()},set oncomplete(e){r(e),A()}},s=B();return ta(F(s),()=>R(i)),V(e,s),k(o)}J(CE,{html:{},oncomplete:{}},[],[],{mode:`open`});var wE=z(`<p class="embed-buttons__caption"><!></p>`),TE=z(`<span class="btn__label"></span> <!>`,1),EE=z(`<div class="embed-buttons"><!> <div class="embed-buttons__buttons"></div></div>`);function DE(e,t){O(t,!0);let n=q(t,`data`,7);var r={get data(){return n()},set data(e){n(e),A()}},i=EE(),a=P(i),o=e=>{var t=wE();CE(P(t),{get html(){return n().caption}}),D(t),V(e,t)};W(a,e=>{n().caption&&e(o)});var s=I(a,2);return Yi(s,21,()=>n().buttons,Gi,(e,t)=>{{let n=j(()=>[`btn`,`btn--${R(t).variant??`primary`}`]);SE(e,{get href(){return R(t).href},get target(){return R(t).target},get className(){return R(n)},children:(e,n)=>{var r=TE(),i=F(r);ta(i,()=>R(t).label,!0),D(i);var a=I(i,2),o=e=>{Oh(e,{get name(){return R(t).icon}})};W(a,e=>{R(t).icon&&e(o)}),V(e,r)},$$slots:{default:!0}})}}),D(s),D(i),V(e,i),k(r)}J(DE,{data:{}},[],[],{mode:`open`});var OE=z(`<p class="embed-combobox__caption"><!></p>`),kE=z(`<p class="embed-combobox__no-result"> </p>`),AE=z(`<div><div><!> <!> <!></div></div>`),jE=z(`<span class="btn btn--tertiary btn--square"><!> <span class="sr-only"> </span></span>`),ME=z(`<!> <!> <!>`,1),NE=z(`<div role="region"><h2 class="sr-only"> </h2> <div class="embed-combobox__combobox"><!></div></div>`),PE=z(`<div class="embed-combobox"><!> <!></div>`);function FE(e,t){O(t,!0);let n=q(t,`data`,7),r=q(t,`hideChatInput`,7),i=j(()=>Z.t),a=M(``),o=M(!1),s=M(!1),c=M(null),l=M(null),u=M(null),d=M(!1),f=Qb(),p=M(10);Qn(()=>{if(!R(l))return;let e=getComputedStyle(R(l)).getPropertyValue(`--embed-combobox-side-offset`).trim(),t=parseFloat(e);Number.isNaN(t)||N(p,t,!0)});let m=e=>e===0?150:180,h=e=>rp(e,Z.data.language,Z.data.chatConfig.supportedLanguages),g=j(()=>n().caption?h(n().caption):``),_=j(()=>h(n().placeholder)),v=j(()=>n().values.map(e=>({value:e.value,label:h(e.label),metadata:e.metadata}))),y=j(()=>R(a)===``?R(v):R(v).filter(e=>e.label.toLowerCase().includes(R(a).toLowerCase()))),b=e=>{let t=R(v).find(t=>t.value===e);t&&(Z.data.chatInputValue=t.label,Sh.onSubmit(!1,{[n().selectorKey??`componentValue`]:t.value,...t.metadata?{scopeMetadata:t.metadata}:{}}),n().removeComponentAfterValueSelection&&N(s,!0))},x=()=>{N(d,!0),r()&&!Wm()?setTimeout(()=>{R(c)?.focus()},300):R(g)&&Sh.setAriaLiveStatusMessage(R(u)?.textContent??``)};var S={get data(){return n()},set data(e){n(e),A()},get hideChatInput(){return r()},set hideChatInput(e){r(e),A()}},C=PE(),ee=P(C),te=e=>{var t=OE();CE(P(t),{get html(){return R(g)},oncomplete:x}),D(t),oo(t,e=>N(u,e),()=>R(u)),L(()=>K(t,`id`,f)),V(e,t)};W(ee,e=>{R(g)&&e(te)});var ne=I(ee,2),re=e=>{var t=NE(),n=P(t),r=P(n,!0);D(n);var l=I(n,2);G(P(l),()=>mw,(e,t)=>{t(e,{type:`single`,onOpenChange:e=>{e||N(a,``)},onValueChange:b,get open(){return R(o)},set open(e){N(o,e,!0)},children:(e,t)=>{var n=ME(),r=F(n);{let e=j(()=>R(g)?f:void 0);G(r,()=>yw,(t,n)=>{n(t,{get placeholder(){return R(_)},get"aria-describedby"(){return R(e)},onclick:()=>N(o,!0),oninput:e=>N(a,e.currentTarget.value,!0),get ref(){return R(c)},set ref(e){N(c,e,!0)}})})}var s=I(r,2);G(s,()=>qv,(e,t)=>{t(e,{get to(){return Z.targets.portals},children:(e,t)=>{var n=B(),r=F(n);{let e=(e,t)=>{let n=()=>t?.().wrapperProps,r=()=>t?.().props,a=()=>t?.().open;var o=B(),s=F(o),c=e=>{var t=AE();qa(t,()=>({...n()}));var a=P(t);qa(a,()=>({...r()}));var o=P(a);G(o,()=>Hw,(e,t)=>{t(e,{delay:m,children:(e,t)=>{Oh(e,{name:`chevronUp`})},$$slots:{default:!0}})});var s=I(o,2);G(s,()=>Iw,(e,t)=>{t(e,{children:(e,t)=>{var n=B();Yi(F(n),19,()=>R(y),(e,t)=>t+e.value,(e,t)=>{var n=B();G(F(n),()=>Nw,(e,n)=>{n(e,{get value(){return R(t).value},get label(){return R(t).label},children:(e,n)=>{Xe();var r=mi();L(()=>H(r,R(t).label)),V(e,r)},$$slots:{default:!0}})}),V(e,n)},e=>{var t=kE(),n=P(t,!0);D(t),L(()=>H(n,R(i).noResultsFound)),V(e,t)}),V(e,n)},$$slots:{default:!0}})}),G(I(s,2),()=>zw,(e,t)=>{t(e,{delay:m,children:(e,t)=>{Oh(e,{name:`chevronDown`})},$$slots:{default:!0}})}),D(a),D(t),da(1,a,()=>WT,()=>({duration:300,easing:RT,y:40})),da(2,a,()=>WT,()=>({duration:150,easing:LT,y:20})),V(e,t)};W(s,e=>{a()&&e(c)}),V(e,o)};G(r,()=>kw,(t,n)=>{n(t,{get sideOffset(){return R(p)},forceMount:!0,strategy:`absolute`,side:`bottom`,avoidCollisions:!1,child:e,$$slots:{child:!0}})})}V(e,n)},$$slots:{default:!0}})}),G(I(s,2),()=>xw,(e,t)=>{t(e,{children:(e,t)=>{var n=jE(),r=P(n);Oh(r,{name:`chevronTopDown`});var a=I(r,2),o=P(a,!0);D(a),D(n),L(()=>H(o,R(i).openMenu)),V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),D(l),D(t),L(()=>{Ea(t,1,ba([`embed-combobox__container`,{"embed-combobox__container--hidden":R(s)}])),t.inert=R(s)?!0:void 0,K(t,`aria-hidden`,R(s)?`true`:void 0),K(t,`aria-label`,R(_)),H(r,R(_))}),da(1,t,()=>WT,()=>({duration:400,easing:RT,y:30,delay:100})),V(e,t)};return W(ne,e=>{Z.targets.portals&&(!R(g)||R(d))&&e(re)}),D(C),oo(C,e=>N(l,e),()=>R(l)),V(e,C),k(S)}J(FE,{data:{},hideChatInput:{}},[],[],{mode:`open`});var IE={buttons:DE,combobox:FE,"alva-init":gE,"alva-score-survey":xE},LE=e=>{let t=IE[e];if(!t){console.error(`No embed component found with name "${e}"`);return}return t};function RE(e,t){O(t,!0);let n=q(t,`componentName`,7),r=q(t,`data`,7),i=q(t,`hideChatInput`,7),a=j(()=>LE(n())),o=M(!1);Fi(()=>{requestAnimationFrame(()=>N(o,!0))});var s={get componentName(){return n()},set componentName(e){n(e),A()},get data(){return r()},set data(e){r(e),A()},get hideChatInput(){return i()},set hideChatInput(e){i(e),A()}},c=B(),l=F(c),u=e=>{var t=B();G(F(t),()=>R(a),(e,t)=>{t(e,{get data(){return r()},get hideChatInput(){return i()}})}),V(e,t)};return W(l,e=>{R(a)&&R(o)&&e(u)}),V(e,c),k(s)}J(RE,{componentName:{},data:{},hideChatInput:{}},[],[],{mode:`open`});var zE=z(`<div aria-hidden="true"><!></div>`);function BE(e,t){O(t,!0);let n=q(t,`class`,7),r=q(t,`isLarge`,7),i=q(t,`hide`,7,!1);var a={get class(){return n()},set class(e){n(e),A()},get isLarge(){return r()},set isLarge(e){r(e),A()},get hide(){return i()},set hide(e=!1){i(e),A()}},o=zE();let s;var c=P(o),l=e=>{var t=B();ta(F(t),()=>Z.theme.svgs.avatarLarge||Z.theme.svgs.avatar),V(e,t)},u=e=>{var t=B();ta(F(t),()=>Z.theme.svgs.avatar),V(e,t)};return W(c,e=>{r()?e(l):e(u,-1)}),D(o),ga(o,(e,t)=>Ch?.(e,t),()=>r()?`avatarLarge`:`avatar`),L(()=>s=Ea(o,1,`svg svg--avatar ${n()??``}`,null,s,{"svg--avatar--hide":i()})),V(e,o),k(a)}J(BE,{class:{},isLarge:{},hide:{}},[],[],{mode:`open`});var VE=`data-references-toggle-button`,HE=z(` <!>`,1),UE=z(`<span class="btn__label"> </span>`),WE=z(`<button><!> <!></button>`),GE=z(`<span class="btn__label"> </span>`),KE=z(`<button class="btn btn--tertiary btn--square" aria-haspopup="dialog"><!> <!></button>`),qE=z(`<div class="message__bot-references"><!> <!></div>`),JE=z(`<div class="message__bot-actions"><!> <!> <!> <!></div>`),YE=z(`<!> <!>`,1),XE=z(`<div class="message__bot-references-inline"><!></div>`),ZE=z(`<div class="message__bot-layout"><!> <div class="message__bot-body"><div class="text-container"><!> <!></div> <!> <!> <!></div></div>`),QE=z(`<div class="message__bot-layout"><!> <div class="message__bot-body"><!></div></div>`),$E=z(`<section><div class="message__content"><!></div></section>`);function eD(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`message`,7),i=q(t,`index`,7),a=q(t,`onmessageupdate`,7),o=q(t,`onbotmessageinit`,7),s=q(t,`onaskQuestion`,7),c=q(t,`isLast`,7,!1),l={duration:Number(Z.theme.components.message.custom?.transitionDuration)||300,delay:Number(Z.theme.components.message.custom?.transitionDelay)||0,y:Number(Z.theme.components.message.custom?.transitionY)||30,ease:RT};Yr(()=>r().type===`bot`||r().type===`component`)&&(l.delay+=Number(Z.theme.components.message.custom?.transitionBotLoadingDelay)||300);let u={duration:Number(Z.theme.components.messageOptions.custom?.transitionDuration)||300,delay:Number(Z.theme.components.messageOptions.custom?.transitionDelay)||0,y:Number(Z.theme.components.messageOptions.custom?.transitionY)||30,ease:RT},d=j(()=>r().type===`bot`?r().references.all.filter(Qh).length:0),f=j(()=>({...u,delay:u.delay+R(d)*u.duration}));Qn(()=>{r()?.type===`bot`&&r().state!==`done`&&a()()}),Yr(()=>{r()?.type===`bot`&&o()()});let p=j(()=>Z.data.history.slice(0,i()+1).filter(e=>e.type===`bot`||e.type===`component`).length),m=j(()=>r().type===`bot`||r().type===`component`?R(n).ariaAnswerFromBot.replace(`{n}`,String(R(p))):`${R(n).ariaQuestionFromYou} ${(r().message?.length??0)>20?r().message.slice(0,20)+`...`:r().message}`),h=Z.data.chatConfig.referencesLayout===`inline`,g=M(En(Z.data.chatConfig.showReferencesByDefault)),_=j(()=>`references-${r().id}`),v=M(void 0),y=j(()=>h?R(g):Z.data.currentReferencesAsideId===r().id),b=j(()=>R(y)?R(n).referencesHide:R(n).referencesDisplay),x=()=>{h?(N(g,!R(g)),R(g)&&setTimeout(()=>R(v)?.scrollIntoView({behavior:`smooth`,block:`nearest`}),320)):Sh.toggleReferencesAside(r().id)},S=j(()=>Z.data.chatConfig.answerForm),C=j(()=>R(S)?rp(R(S).triggerLabel,Z.data.language,Z.data.chatConfig.supportedLanguages):``),ee=j(()=>r().type===`bot`&&(!!r().references?.used.length||!r().noFeedback||!!R(S)));var te={get message(){return r()},set message(e){r(e),A()},get index(){return i()},set index(e){i(e),A()},get onmessageupdate(){return a()},set onmessageupdate(e){a(e),A()},get onbotmessageinit(){return o()},set onbotmessageinit(e){o(e),A()},get onaskQuestion(){return s()},set onaskQuestion(e){s(e),A()},get isLast(){return c()},set isLast(e=!1){c(e),A()}},ne=$E();let re;var w=P(ne),ie=P(w),ae=e=>{var t=ZE(),i=P(t);BE(i,{class:`message__bot-avatar`});var a=I(i,2),o=P(a),l=P(o);ta(l,()=>r().message.html);var u=I(l,2),d=e=>{var t=HE(),r=F(t);Oh(I(r),{name:`messageLoading`,class:`message__bot-loading`}),L(()=>H(r,`${R(n).messageBotLoading??``} `)),V(e,t)};W(u,e=>{r().state===`loading`&&e(d)}),D(o);var p=I(o,2),m=e=>{{let t=j(()=>r().state===`done`);tg(e,{get references(){return r().references.all},get ready(){return R(t)}})}};W(p,e=>{r().references&&r().references.all.length>0&&e(m)});var te=I(p,2),ne=e=>{var t=B();pa(F(t),()=>c()?`nav`:`div`,!1,(e,t)=>{qa(e,()=>({"aria-label":c()?Z.t.ariaLastAnswerNavigation:void 0,class:`message__bot-options`})),da(3,e,()=>WT,()=>R(f));var i=YE(),a=F(i),o=e=>{var t=qE(),i=P(t),a=e=>{var t=WE();qa(t,()=>({class:`btn btn--tertiary btn--square`,onclick:x,"aria-expanded":R(y),"aria-controls":h?R(_):iD,[VE]:!0}));var n=P(t);Oh(n,{name:`listUnordered`});var r=I(n,2),i=e=>{var t=UE(),n=P(t,!0);D(t),L(()=>H(n,R(b))),V(e,t)};W(r,e=>{R(b)&&e(i)}),D(t),V(e,t)};W(i,e=>{r().references&&r().references.used.length&&e(a)});var o=I(i,2),s=e=>{var t=KE(),i=P(t);Oh(i,{name:`forward`});var a=I(i,2),o=e=>{var t=GE(),n=P(t,!0);D(t),L(()=>H(n,R(C))),V(e,t)};W(a,e=>{R(C)&&e(o)}),D(t),L(()=>{K(t,`aria-expanded`,Z.data.answerFormMessageId===r().id),K(t,`aria-label`,R(n).ariaAnswerForm)}),ii(`click`,t,()=>Sh.openAnswerForm(r().id)),V(e,t)};W(o,e=>{R(S)&&e(s)}),D(t),V(e,t)};W(a,e=>{(r().references&&r().references.used.length||R(S))&&e(o)});var l=I(a,2),u=e=>{var t=JE(),i=P(t),a=e=>{Mh(e,{icon:`retry`,get label(){return R(n).ariaAskQuestionAgain},get tooltip(){return R(n).askQuestionAgain},get onclick(){return s()},class:`message__bot-action btn btn--tertiary btn--square`})};W(i,e=>{Z.data.chatConfig.askQuestionAgain&&e(a)});var o=I(i,2);{let e=j(()=>r().feedback===`up`),t=j(()=>r().feedback===`up`?`message__bot-action--active`:``);Mh(o,{icon:`voteUp`,get label(){return R(n).ariaAnswerGood},get tooltip(){return R(n).answerGood},get"aria-pressed"(){return R(e)},onclick:()=>Sh.thumbs(r().id,`up`),get class(){return`message__bot-action btn btn--tertiary btn--square ${R(t)??``}`}})}var c=I(o,2);{let e=j(()=>r().feedback===`down`),t=j(()=>r().feedback===`down`?`message__bot-action--active`:``);Mh(c,{icon:`voteDown`,get label(){return R(n).ariaAnswerBad},get tooltip(){return R(n).answerBad},get"aria-pressed"(){return R(e)},onclick:()=>Sh.thumbs(r().id,`down`),get class(){return`message__bot-action btn btn--tertiary btn--square ${R(t)??``}`}})}var l=I(c,2),u=e=>{Mh(e,{icon:`message`,get label(){return R(n).ariaGiveFeedback},"aria-haspopup":`dialog`,get"aria-expanded"(){return Z.data.conversationFeedbackIsOpen},get tooltip(){return R(n).giveFeedback},onclick:()=>Sh.openMessageFeedback(r().id),class:`message__bot-action btn btn--tertiary btn--square`})};W(l,e=>{(Z.data.chatConfig.showTextFeedback||Z.data.chatConfig.classification)&&e(u)}),D(t),V(e,t)};W(l,e=>{r().noFeedback||e(u)}),V(t,i)}),V(e,t)};W(te,e=>{r().state===`done`&&R(ee)&&e(ne)});var re=I(te,2),w=e=>{var t=XE();eE(P(t),{get references(){return r().references},class:`references--inline`}),D(t),oo(t,e=>N(v,e),()=>R(v)),L(()=>K(t,`id`,R(_))),da(3,t,()=>GT,()=>({duration:300})),V(e,t)};W(re,e=>{h&&r().state===`done`&&R(g)&&r().references?.used.length&&e(w)}),D(a),D(t),V(e,t)},oe=e=>{var t=QE(),n=P(t);BE(n,{class:`message__bot-avatar`,get hide(){return r().hideAvatar}});var i=I(n,2);RE(P(i),{get componentName(){return r().componentName},get data(){return r().data},get hideChatInput(){return r().hideChatInput}}),D(i),D(t),V(e,t)},se=e=>{var t=mi();L(()=>H(t,r().message)),V(e,t)};return W(ie,e=>{r().type===`bot`?e(ae):r().type===`component`?e(oe,1):r().type===`user`&&e(se,2)}),D(w),D(ne),ga(ne,(e,t)=>wh?.(e,t),()=>r().type===`user`?`chatPageLastUserMessage`:void 0),L(()=>{re=Ea(ne,1,`message container`,null,re,{"message--bot":r().type===`bot`||r().type===`component`,"message--user":r().type===`user`,"message--no-padding":r().type===`component`&&r().noSectionPadding}),K(ne,`aria-label`,R(m))}),da(3,ne,()=>WT,()=>l),V(e,ne),k(te)}ai([`click`]),J(eD,{message:{},index:{},onmessageupdate:{},onbotmessageinit:{},onaskQuestion:{},isLast:{}},[],[],{mode:`open`});var tD=e=>Array.from(e.querySelectorAll(`a[href], button, input:not([type="hidden"]), textarea, select, details,[tabindex]:not([tabindex="-1"])`)).filter(e=>!e.hasAttribute(`disabled`)&&!e.getAttribute(`aria-hidden`)),nD=e=>{let t=e.getRootNode();return`activeElement`in t?t.activeElement:document.activeElement};function rD(e,t){let{firstFocusableOnMount:n=!0,resetFocusOnDestroy:r=!0,avoidFocusLoop:i=!1}=t||{},a=nD(e),o=tD(e),s,c=new MutationObserver(()=>{o=tD(e)}),l=t=>{o&&e.dataset.disabled!==`true`&&t.key===`Tab`&&(t.shiftKey?nD(e)===o[0]&&(t.preventDefault(),o[o.length-1].focus()):nD(e)===o[o.length-1]&&(t.preventDefault(),o[0].focus()))};return o&&o.length>0&&!i&&(n&&(s=o[0],requestAnimationFrame(()=>{s?.focus({preventScroll:!0})})),e.addEventListener(`keydown`,l),c.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`disabled`,`aria-hidden`,`tabindex`]})),{destroy(){o&&o.length>0&&!i&&(o=null,s=null,e.removeEventListener(`keydown`,l),c.disconnect(),r&&a&&requestAnimationFrame(()=>{a.focus({preventScroll:!0})}))}}}var iD=`aside`,aD=z(`<div></div>`),oD=z(`<h2 class="chat-app__sheet-title"> </h2>`),sD=z(`<span class="btn btn--tertiary btn--square"><span class="sr-only"> </span> <!></span>`),cD=z(`<div><div class="chat-app__sheet-header"><!> <!></div> <!></div>`),lD=z(`<!> <!>`,1),uD=z(`<h2 class="chat-app__aside-title"> </h2>`),dD=z(`<div><div class="chat-app__aside-container"><div class="chat-app__aside-header"><!> <div class="chat-app__aside-close"><button class="btn btn--tertiary btn--square"><span class="sr-only"> </span> <!></button></div></div> <!></div></div>`);function fD(e,t){O(t,!0);let n=q(t,`title`,7),r=q(t,`isOpen`,7),i=q(t,`isMobile`,7),a=q(t,`showReferencesByDefault`,7),o=q(t,`onClose`,7),s=q(t,`children`,7),c=M(void 0),l=null,u=e=>{e.key===`Escape`&&o()()};Qn(()=>{if(!i())if(r()){if(a()||document.addEventListener(`keydown`,u),R(c)&&(l=nD(R(c)),!a()||l?.hasAttribute(`data-references-toggle-button`))){let e=tD(R(c));e[0].setAttribute(kh,`true`),e[0].focus({preventScroll:!0})}}else document.removeEventListener(`keydown`,u),l?.hasAttribute(`data-references-toggle-button`)?l.focus({preventScroll:!0}):Z.targets.chatInput?.focus({preventScroll:!0})});var d={get title(){return n()},set title(e){n(e),A()},get isOpen(){return r()},set isOpen(e){r(e),A()},get isMobile(){return i()},set isMobile(e){i(e),A()},get showReferencesByDefault(){return a()},set showReferencesByDefault(e){a(e),A()},get onClose(){return o()},set onClose(e){o(e),A()},get children(){return s()},set children(e){s(e),A()}},f=B(),p=F(f),m=e=>{var t=B(),i=F(t),a=e=>{var t=B();G(F(t),()=>yT,(e,t)=>{t(e,{onOpenChange:e=>{e||o()()},get open(){return r()},set open(e){r(e)},children:(e,t)=>{var r=B();G(F(r),()=>qv,(e,t)=>{t(e,{get to(){return Z.targets.portals},children:(e,t)=>{var r=lD(),i=F(r);{let e=(e,t)=>{let n=()=>t?.().props,r=()=>t?.().open;var i=B(),a=F(i),o=e=>{var t=aD();qa(t,()=>({class:`chat-app__sheet-overlay`,...n()})),da(1,t,()=>UT,()=>({duration:200})),da(2,t,()=>UT,()=>({duration:200,delay:150})),V(e,t)};W(a,e=>{r()&&e(o)}),V(e,i)};G(i,()=>fx,(t,n)=>{n(t,{forceMount:!0,child:e,$$slots:{child:!0}})})}var a=I(i,2);{let e=(e,t)=>{let r=()=>t?.().props,i=()=>t?.().open;var a=B(),o=F(a),c=e=>{var t=cD();qa(t,()=>({...r()}));var i=P(t),a=P(i),o=e=>{var t=B();G(F(t),()=>Rv,(e,t)=>{t(e,{children:(e,t)=>{var r=oD(),i=P(r,!0);D(r),L(()=>H(i,n())),V(e,r)},$$slots:{default:!0}})}),V(e,t)};W(a,e=>{n()&&e(o)}),G(I(a,2),()=>xT,(e,t)=>{t(e,{class:`chat-app__sheet-close`,children:(e,t)=>{var n=sD(),r=P(n),i=P(r,!0);D(r),Oh(I(r,2),{name:`dismiss`}),D(n),L(()=>H(i,Z.t.close)),V(e,n)},$$slots:{default:!0}})}),D(i),U(I(i,2),()=>s()??w),D(t),ga(t,e=>rD?.(e)),da(1,t,()=>WT,()=>({x:`100%`,opacity:1,duration:650,easing:RT})),da(2,t,()=>WT,()=>({x:`100%`,opacity:1,duration:500,easing:IT})),V(e,t)};W(o,e=>{i()&&e(c)}),V(e,a)},t=j(()=>!Z.data.chatConfig.inlineLayout&&!Z.data.props.flyout);G(a,()=>wT,(n,r)=>{r(n,{class:`chat-app__sheet-content`,trapFocus:!1,forceMount:!0,get preventScroll(){return R(t)},child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})}),V(e,r)},$$slots:{default:!0}})}),V(e,t)};W(i,e=>{Z.targets.portals&&e(a)}),V(e,t)},h=e=>{var t=dD();let i;K(t,`id`,iD);var l=P(t),u=P(l),d=P(u),f=e=>{var t=uD(),r=P(t,!0);D(t),L(()=>H(r,n())),V(e,t)};W(d,e=>{n()&&e(f)});var p=I(d,2),m=P(p),h=P(m),g=P(h,!0);D(h),Oh(I(h,2),{name:`dismiss`}),D(m),ga(m,(e,t)=>Ah?.(e,t),()=>({text:Z.t.close,position:`bottom-right`,delay:0})),D(p),D(u),U(I(u,2),()=>s()??w),D(l),D(t),ga(t,(e,t)=>rD?.(e,t),()=>({firstFocusableOnMount:!1,resetFocusOnDestroy:!1,avoidFocusLoop:a()})),oo(t,e=>N(c,e),()=>R(c)),L(()=>{i=Ea(t,1,`chat-app__aside`,null,i,{open:r()}),K(t,`role`,a()?`complementary`:`dialog`),K(t,`aria-modal`,a()?`false`:`true`),K(t,`aria-label`,Z.t.ariaReferencesRegion),K(t,`aria-hidden`,!r()),H(g,Z.t.close)}),ii(`click`,m,function(...e){o()?.apply(this,e)}),V(e,t)};return W(p,e=>{i()?e(m):e(h,-1)}),V(e,f),k(d)}ai([`click`]),J(fD,{title:{},isOpen:{},isMobile:{},showReferencesByDefault:{},onClose:{},children:{}},[],[],{mode:`open`});var pD=z(`<div class="chat-app__close-button"><button class="btn btn--tertiary btn--square"><span class="sr-only"> </span> <!></button></div>`);function mD(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`onclick`,7);var i={get onclick(){return r()},set onclick(e){r(e),A()}},a=pD(),o=P(a),s=P(o),c=P(s,!0);return D(s),Oh(I(s,2),{name:`dismiss`}),D(o),ga(o,(e,t)=>Ah?.(e,t),()=>({text:R(n).closeChat,position:`bottom-right`,delay:600})),D(a),L(()=>{K(o,`aria-label`,R(n).closeChat),H(c,R(n).closeChat)}),ii(`click`,o,function(...e){r()?.apply(this,e)}),V(e,a),k(i)}ai([`click`]),J(mD,{onclick:{}},[],[],{mode:`open`});var hD=z(`<div></div>`),gD=z(`<div><!></div>`),_D=z(`<span class="sr-only"> </span> <!>`,1),vD=z(`<div class="dialog-footer"><!></div>`),yD=z(`<div><div class="dialog-header"><!> <!></div> <!> <!></div>`),bD=z(`<!> <!>`,1);function xD(e,t){O(t,!0);let n=q(t,`open`,7),r=q(t,`content`,7),i=q(t,`title`,7),a=q(t,`footer`,7),o=q(t,`onClose`,7),s=M(void 0),c=M(void 0),l={duration:Number(Z.theme.components.dialog.custom?.transitionDuration)||200,delay:Number(Z.theme.components.dialog.custom?.transitionDelay)||0,y:Number(Z.theme.components.dialog.custom?.transitionY)||10},u=e=>{e||o()()};Qn(()=>{if(n()&&R(s)&&R(c)&&R(c).textContent){let e=nl(R(c).textContent.trim());R(s).setAttribute(`aria-label`,e),R(s).removeAttribute(`aria-labelledby`),tD(R(s))[0].focus({preventScroll:!0})}});var d={get open(){return n()},set open(e){n(e),A()},get content(){return r()},set content(e){r(e),A()},get title(){return i()},set title(e){i(e),A()},get footer(){return a()},set footer(e){a(e),A()},get onClose(){return o()},set onClose(e){o(e),A()}},f=B(),p=F(f),m=e=>{var t=B();G(F(t),()=>yT,(e,t)=>{t(e,{get open(){return n()},onOpenChange:u,children:(e,t)=>{var n=B();G(F(n),()=>qv,(e,t)=>{t(e,{get to(){return Z.targets.portals},children:(e,t)=>{var n=bD(),o=F(n);{let e=(e,t)=>{let n=()=>t?.().props,r=()=>t?.().open;var i=B(),a=F(i),o=e=>{var t=hD();qa(t,()=>({...n(),class:`dialog-overlay`})),da(3,t,()=>UT,()=>l),V(e,t)};W(a,e=>{r()&&e(o)}),V(e,i)};G(o,()=>fx,(t,n)=>{n(t,{forceMount:!0,child:e,$$slots:{child:!0}})})}var u=I(o,2);{let e=(e,t)=>{let n=()=>t?.().props,o=()=>t?.().open;var u=B(),d=F(u),f=e=>{var t=yD();qa(t,()=>({...n(),class:`dialog-content`}));var o=P(t),u=P(o);G(u,()=>Rv,(e,t)=>{t(e,{class:`dialog-title h4`,children:(e,t)=>{var n=gD();U(P(n),()=>i()??w),D(n),oo(n,e=>N(c,e),()=>R(c)),V(e,n)},$$slots:{default:!0}})}),G(I(u,2),()=>xT,(e,t)=>{t(e,{class:`dialog-close`,children:(e,t)=>{var n=_D(),r=F(n),i=P(r,!0);D(r),Oh(I(r,2),{name:`dismiss`}),L(()=>H(i,Z.t.close)),V(e,n)},$$slots:{default:!0}})}),D(o);var d=I(o,2);G(d,()=>mx,(e,t)=>{t(e,{class:`dialog-description text-container`,children:(e,t)=>{var n=B();U(F(n),r),V(e,n)},$$slots:{default:!0}})});var f=I(d,2),p=e=>{var t=vD();U(P(t),a),D(t),V(e,t)};W(f,e=>{a()&&e(p)}),D(t),ga(t,(e,t)=>rD?.(e,t),()=>({firstFocusableOnMount:!1})),oo(t,e=>N(s,e),()=>R(s)),da(3,t,()=>WT,()=>l),V(e,t)};W(d,e=>{o()&&e(f)}),V(e,u)},t=j(()=>!Z.data.chatConfig.inlineLayout&&!Z.data.props.flyout);G(u,()=>wT,(n,r)=>{r(n,{trapFocus:!1,forceMount:!0,get preventScroll(){return R(t)},child:e,$$slots:{child:!0}})})}V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),V(e,t)};return W(p,e=>{Z.targets.portals&&e(m)}),V(e,f),k(d)}J(xD,{open:{},content:{},title:{},footer:{},onClose:{}},[],[],{mode:`open`});var SD=z(`<div><!></div>`);function CD(e,t){O(t,!0);let n=q(t,`checked`,7,!1),r=q(t,`class`,7,``);var i={get checked(){return n()},set checked(e=!1){n(e),A()},get class(){return r()},set class(e=``){r(e),A()}},a=SD();return Oh(P(a),{name:`checkbox`,class:`checkbox__icon`}),D(a),L(()=>{Ea(a,1,`checkbox ${r()??``}`),K(a,`data-checked`,n())}),V(e,a),k(i)}J(CD,{checked:{},class:{}},[],[],{mode:`open`});var wD=z(`<div><div class="radio__indicator"></div></div>`);function TD(e,t){O(t,!0);let n=q(t,`checked`,7,!1),r=q(t,`class`,7,``);var i={get checked(){return n()},set checked(e=!1){n(e),A()},get class(){return r()},set class(e=``){r(e),A()}},a=wD();return L(()=>{Ea(a,1,`radio ${r()??``}`),K(a,`data-checked`,n())}),V(e,a),k(i)}J(TD,{checked:{},class:{}},[],[],{mode:`open`});var ED=z(`<p class="form__caption"></p>`),DD=z(`<input class="form__option-input" type="radio"/> <!>`,1),OD=z(`<input class="form__option-input" type="checkbox"/> <!>`,1),kD=z(`<label class="form__option"><!> <span> </span></label>`),AD=z(`<fieldset class="form__fieldset"><legend class="form__label"> </legend> <div class="form__options"></div></fieldset>`),jD=z(`<textarea class="input"></textarea>`),MD=z(`<option disabled=""> </option>`),ND=z(`<option> </option>`),PD=z(`<div class="form__select"><select class="input"><!><!></select> <!></div>`),FD=z(`<input class="input"/>`),ID=z(`<div class="form__item"><label class="form__label"> </label> <!></div>`),LD=z(`<form class="form"><!> <!> <div class="form__fields"></div> <div class="form__footer"><button type="submit" class="btn btn--primary"> </button></div></form>`);function RD(e,t){O(t,!0);let n=q(t,`open`,7),r=q(t,`onClose`,7),i=q(t,`dialogTitle`,7),a=q(t,`caption`,7),o=q(t,`fields`,7),s=q(t,`submitLabel`,7),c=q(t,`submitEnabled`,7),l=q(t,`onSubmit`,7),u=q(t,`values`,15),d=q(t,`header`,7),f=`form-dialog-${pf()}`,p=e=>`${f}-${e}`,m=e=>(u()[e]??``).split(`,`).map(e=>e.trim()).filter(Boolean),h=(e,t)=>m(e).includes(t),g=(e,t,n)=>{let r=m(e);u(u()[e]=(n?[...r,t]:r.filter(e=>e!==t)).join(`, `),!0)};return xD(e,{get open(){return n()},get onClose(){return r()},title:e=>{var t=B();ta(F(t),i),V(e,t)},content:e=>{var t=LD(),n=P(t);U(n,()=>d()??w);var r=I(n,2),i=e=>{var t=ED();ta(t,a,!0),D(t),V(e,t)};W(r,e=>{a()&&e(i)});var f=I(r,2);Yi(f,21,o,e=>e.name,(e,t)=>{var n=B(),r=F(n),i=e=>{var n=AD(),r=P(n),i=P(r,!0);D(r);var a=I(r,2);Yi(a,21,()=>R(t).options??[],e=>e.value,(e,n)=>{var r=kD(),i=P(r),a=e=>{var r=DD(),i=F(r);Ha(i);var a=I(i,2);{let e=j(()=>u()[R(t).name]===R(n).value);TD(a,{get checked(){return R(e)}})}L(e=>{K(i,`name`,e),Ua(i,R(n).value),Wa(i,u()[R(t).name]===R(n).value)},[()=>p(R(t).name)]),ii(`change`,i,()=>u(u()[R(t).name]=R(n).value,!0)),V(e,r)},o=e=>{var r=OD(),i=F(r);Ha(i);var a=I(i,2);{let e=j(()=>h(R(t).name,R(n).value));CD(a,{get checked(){return R(e)}})}L(e=>{Ua(i,R(n).value),Wa(i,e)},[()=>h(R(t).name,R(n).value)]),ii(`change`,i,e=>g(R(t).name,R(n).value,e.currentTarget.checked)),V(e,r)};W(i,e=>{R(t).type===`radio`?e(a):e(o,-1)});var s=I(i,2),c=P(s,!0);D(s),D(r),L(()=>H(c,R(n).label)),V(e,r)}),D(a),D(n),L(()=>H(i,R(t).label)),V(e,n)},a=e=>{var n=ID(),r=P(n),i=P(r,!0);D(r);var a=I(r,2),o=e=>{var n=jD();Hn(n),L(e=>{K(n,`id`,e),K(n,`placeholder`,R(t).placeholder),n.required=R(t).required},[()=>p(R(t).name)]),Za(n,()=>u()[R(t).name],e=>u(u()[R(t).name]=e,!0)),V(e,n)},s=e=>{var n=PD(),r=P(n),i=P(r),a=e=>{var n=MD(),r=P(n,!0);D(n),n.value=n.__value=``,L(()=>H(r,R(t).placeholder)),V(e,n)};W(i,e=>{R(t).placeholder&&e(a)}),Yi(I(i),17,()=>R(t).options??[],e=>e.value,(e,t)=>{var n=ND(),r=P(n,!0);D(n);var i={};L(()=>{H(r,R(t).label),i!==(i=R(t).value)&&(n.value=(n.__value=R(t).value)??``)}),V(e,n)}),D(r),Oh(I(r,2),{name:`chevronDown`,class:`form__select-arrow`}),D(n),L(e=>{K(r,`id`,e),r.required=R(t).required},[()=>p(R(t).name)]),ja(r,()=>u()[R(t).name],e=>u(u()[R(t).name]=e,!0)),V(e,n)},c=e=>{var n=FD();Ha(n),L(e=>{K(n,`type`,R(t).type),K(n,`id`,e),K(n,`placeholder`,R(t).placeholder),n.required=R(t).required},[()=>p(R(t).name)]),Za(n,()=>u()[R(t).name],e=>u(u()[R(t).name]=e,!0)),V(e,n)};W(a,e=>{R(t).type===`textarea`?e(o):R(t).type===`select`?e(s,1):e(c,-1)}),D(n),L(e=>{K(r,`for`,e),H(i,R(t).label)},[()=>p(R(t).name)]),V(e,n)};W(r,e=>{R(t).type===`checkbox`||R(t).type===`radio`?e(i):e(a,-1)}),V(e,n)}),D(f);var m=I(f,2),_=P(m),v=P(_,!0);D(_),D(m),D(t),L(()=>{_.disabled=!c(),H(v,s())}),ri(`submit`,t,async e=>{e.preventDefault(),await l()()}),V(e,t)},$$slots:{title:!0,content:!0}}),k({get open(){return n()},set open(e){n(e),A()},get onClose(){return r()},set onClose(e){r(e),A()},get dialogTitle(){return i()},set dialogTitle(e){i(e),A()},get caption(){return a()},set caption(e){a(e),A()},get fields(){return o()},set fields(e){o(e),A()},get submitLabel(){return s()},set submitLabel(e){s(e),A()},get submitEnabled(){return c()},set submitEnabled(e){c(e),A()},get onSubmit(){return l()},set onSubmit(e){l(e),A()},get values(){return u()},set values(e){u(e),A()},get header(){return d()},set header(e){d(e),A()}})}ai([`change`]),J(RD,{open:{},onClose:{},dialogTitle:{},caption:{},fields:{},submitLabel:{},submitEnabled:{},onSubmit:{},values:{},header:{}},[],[],{mode:`open`});function zD(e,t){O(t,!0);let n=j(()=>Z.data.chatConfig.answerForm),r=e=>rp(e,Z.data.language,Z.data.chatConfig.supportedLanguages),i=j(()=>R(n)?r(R(n).title??R(n).triggerLabel):``),a=j(()=>R(n)?.caption?r(R(n).caption):void 0),o=j(()=>R(n)?r(R(n).submitLabel):``),s=j(()=>R(n)?.fields.map(e=>({type:e.type,name:e.name,label:r(e.label),placeholder:e.placeholder?r(e.placeholder):void 0,required:e.required,options:e.options?.map(e=>({value:e.value,label:r(e.label)}))}))??[]),c=()=>Object.fromEntries((R(n)?.fields??[]).map(e=>[e.name,``])),l=M(En(c())),u=j(()=>(R(n)?.fields??[]).every(e=>!e.required||(R(l)[e.name]??``).trim()!==``));var d=B(),f=F(d),p=e=>{{let t=j(()=>!!Z.data.answerFormMessageId);RD(e,{get open(){return R(t)},get onClose(){return Sh.closeAnswerForm},get dialogTitle(){return R(i)},get caption(){return R(a)},get fields(){return R(s)},get submitLabel(){return R(o)},get submitEnabled(){return R(u)},onSubmit:async()=>{await Sh.submitAnswerForm(R(l)),N(l,c(),!0),Sh.closeAnswerForm()},get values(){return R(l)},set values(e){N(l,e,!0)}})}};W(f,e=>{R(n)&&e(p)}),V(e,d),k()}J(zD,{},[],[],{mode:`open`});var BD=z(`<button type="button" class="selected-topic__btn"> </button>`),VD=z(`<div class="selected-topic__container"><h2 class="selected-topic__label"><!> <span class="selected-topic__label-complement"> </span> <span> </span></h2> <!></div>`),HD=z(`<section class="selected-topic"><div><div><!></div></div></section>`);function UD(e,t){O(t,!0);let n=j(()=>Z.t),r=j(()=>Z.data.selectedTopic),i=M(0);var a=HD();let o;var s=P(a),c=P(s),l=P(c),u=e=>{var t=VD(),i=P(t),a=P(i);Oh(a,{name:`topic`});var o=I(a,2),s=P(o);D(o);var c=I(o,2),l=P(c,!0);D(c),D(i);var u=I(i,2),d=e=>{var t=BD(),r=P(t,!0);D(t),L(()=>H(r,R(n).changeTopic)),ii(`click`,t,()=>Sh.onChangeTopic()),V(e,t)};W(u,e=>{R(r).locked||e(d)}),D(t),L(()=>{H(s,`${R(n).selectedTopic??``}:`),H(l,R(r).label)}),da(1,t,()=>WT,()=>({duration:500,easing:RT,y:50})),da(2,t,()=>WT,()=>({duration:250,easing:LT,y:50})),V(e,t)};W(l,e=>{R(r)&&e(u)}),D(c),D(s),D(a),L(()=>{K(a,`aria-label`,R(n).ariaChangeTopic),o=Oa(a,``,o,{height:R(r)?`${R(i)}px`:`0px`}),Ea(c,1,ba([`selected-topic__animation-container`,{"selected-topic__animation-container--hidden":!R(r)}]))}),io(s,`clientHeight`,e=>N(i,e)),V(e,a),k()}ai([`click`]),J(UD,{},[],[],{mode:`open`});var WD=z(`<button><!> <div class="chat-input__settings-button-label"> </div> <!></button>`),GD=z(`<span class="context-box__notification" data-type="error"> </span>`),KD=z(`<!> <!>`,1),qD=z(`<!> <!>`,1),JD=z(`<!> <!>`,1),YD=z(`<div><div><div class="context-box__content"><div class="context-box__header"><span class="sr-only"> </span> <span> <!></span> <button type="button" class="context-box__close-button btn btn--tertiary btn--square"><!></button></div> <div><!></div> <!></div></div></div>`),XD=z(`<!> <!>`,1),ZD=z(`<div><div></div> <!></div>`);function QD(e,t){O(t,!0);let n=q(t,`settingName`,7),r=q(t,`iconName`,7),i=q(t,`currentValues`,7),a=q(t,`possibleValues`,7),o=q(t,`disabled`,7),s=j(()=>Z.selectorTranslations[n()]??{name:n(),placeholder:``,values:{}}),c=j(()=>()=>i().length===0?`${R(s).placeholder}`:i().length===1?`1 ${R(s).name}`:`${i().length} ${R(s).namePlural||R(s).name}`),l=j(()=>Z.selectorsWithErrors.includes(n())),u={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},d=M(!1);Qn(()=>{R(d)&&setTimeout(()=>{N(d,!1)},200)});let f=()=>{N(d,!0),Sh.setSelectorValue(n(),a()),Sh.setAriaLiveStatusMessage(Z.t.ariaAllSelected)},p=async()=>{N(d,!0),Sh.setSelectorValue(n(),[]),await Kr().then(()=>{let e=Z.t.ariaAllUnselected;R(l)&&(e+=`. ${Z.t.chooseAtLeastOneOption}`),Sh.setAriaLiveStatusMessage(e)})},m=()=>{N(d,!0);let e=Sh.resetSelectorToDefaults(n());Sh.setAriaLiveStatusMessage(`${Z.t.ariaAllReseted}: ${e.join(`, `)}`)},h=M(void 0),g=M(!1);var _={get settingName(){return n()},set settingName(e){n(e),A()},get iconName(){return r()},set iconName(e){r(e),A()},get currentValues(){return i()},set currentValues(e){i(e),A()},get possibleValues(){return a()},set possibleValues(e){a(e),A()},get disabled(){return o()},set disabled(e){o(e),A()}},v=ZD(),y=P(v);return oo(y,e=>N(h,e),()=>R(h)),G(I(y,2),()=>TT,(e,t)=>{t(e,{get open(){return R(g)},set open(e){N(g,e,!0)},children:(e,t)=>{var _=XD(),v=F(_);{let e=(e,t)=>{let n=()=>t?.().props;var i=WD();qa(i,()=>({type:`button`,class:`chat-input__settings-button btn btn--tertiary`,"data-has-error":R(l),...n(),disabled:o(),"aria-hidden":o(),tabindex:o()?-1:void 0}));var a=P(i);Oh(a,{get name(){return r()},class:`chat-input__settings-button-icon`});var s=I(a,2),u=P(s,!0);D(s),Oh(I(s,2),{name:`chevronDownSmall`,class:`chat-input__settings-button-chevron`}),D(i),L(e=>H(u,e),[()=>R(c)()]),V(e,i)};G(v,()=>AT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}G(I(v,2),()=>qv,(e,t)=>{t(e,{get to(){return R(h)},children:(e,t)=>{var r=B(),o=F(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,o=()=>t?.().props,c=()=>t?.().open;var h=B(),_=F(h),v=e=>{var t=YD();qa(t,()=>({...r()}));var c=P(t);qa(c,()=>({...o()}));var h=P(c),_=P(h),v=P(_),y=P(v,!0);D(v);var b=I(v,2),x=P(b),S=I(x),C=e=>{var t=GD(),n=P(t,!0);D(t),L(()=>H(n,Z.t.chooseAtLeastOneOption)),V(e,t)};W(S,e=>{R(l)&&e(C)}),D(b);var ee=I(b,2);Oh(P(ee),{name:`menuClose`}),D(ee),D(_);var te=I(_,2);let ne;G(P(te),()=>iT,(e,t)=>{t(e,{get value(){return i()},onValueChange:e=>{Sh.setSelectorValue(n(),e)},class:`display-contents`,children:(e,t)=>{var n=B();Yi(F(n),17,a,Gi,(e,t)=>{let n=j(Qb),r=j(()=>R(s).values?.[R(t)]||R(t));var i=B(),a=F(i);{let e=(e,t)=>{let i=()=>t?.().checked;var a=KD(),o=F(a);CD(o,{get checked(){return i()}}),G(I(o,2),()=>PT,(e,t)=>{t(e,{get for(){return R(n)},children:(e,t)=>{Xe();var n=mi();L(()=>H(n,R(r))),V(e,n)},$$slots:{default:!0}})}),V(e,a)};G(a,()=>nT,(i,a)=>{a(i,{get value(){return R(t)},class:`context-box__menu-item context-box__menu-item--option`,get id(){return R(n)},closeOnSelect:!1,onCheckedChange:async e=>{R(d)||await Kr().then(()=>{let t=e?Z.t.ariaSelected:Z.t.ariaUnselected,n=`${R(r)}, ${t}`;R(l)&&(n+=`. ${Z.t.chooseAtLeastOneOption}`),Sh.setAriaLiveStatusMessage(n)})},children:e,$$slots:{default:!0}})})}V(e,i)}),V(e,n)},$$slots:{default:!0}})}),D(te),G(I(te,2),()=>Kw,(e,t)=>{t(e,{class:`context-box__footer`,children:(e,t)=>{var n=JD(),r=F(n),i=e=>{var t=qD(),n=F(t);G(n,()=>Ww,(e,t)=>{t(e,{onclick:f,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Xe();var n=mi();L(()=>H(n,Z.t.selectAll)),V(e,n)},$$slots:{default:!0}})}),G(I(n,2),()=>Ww,(e,t)=>{t(e,{onclick:p,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Xe();var n=mi();L(()=>H(n,Z.t.selectNone)),V(e,n)},$$slots:{default:!0}})}),V(e,t)};W(r,e=>{a().length>5&&e(i)}),G(I(r,2),()=>Ww,(e,t)=>{t(e,{onclick:m,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Xe();var n=mi();L(()=>H(n,Z.t.resetToDefaults)),V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),D(h),D(c),D(t),L(()=>{H(y,Z.t.ariaCloseWithEsc),H(x,`${(R(s).intro||R(s).name)??``} `),K(ee,`aria-label`,Z.t.close),ne=Ea(te,1,`context-box__menu context-box__menu--scrollable`,null,ne,{"context-box__menu--two-cols":a().length>8,"context-box__menu--three-cols":a().length>16})}),ii(`click`,ee,()=>N(g,!1)),da(3,c,()=>WT,()=>u),V(e,t)};W(_,e=>{c()&&e(v)}),V(e,h)};G(o,()=>OT,(t,n)=>{n(t,{class:`context-box context-box--dropdown`,align:`start`,sideOffset:8,forceMount:!0,strategy:`absolute`,preventScroll:!1,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})}),V(e,_)},$$slots:{default:!0}})}),D(v),V(e,v),k(_)}ai([`click`]),J(QD,{settingName:{},iconName:{},currentValues:{},possibleValues:{},disabled:{}},[],[],{mode:`open`});var $D=z(`<button><!> <div class="chat-input__settings-button-label"><span class="chat-input__settings-button-label-name"> </span> </div> <!></button>`),eO=z(`<!> <!>`,1),tO=z(`<!> <!>`,1),nO=z(`<!> <!>`,1),rO=z(`<div><div><div class="context-box__content"><div class="context-box__header"><span class="sr-only"> </span> <span> </span> <button type="button" class="context-box__close-button btn btn--tertiary btn--square"><!></button></div> <div><!></div> <!></div></div></div>`),iO=z(`<!> <!>`,1),aO=z(`<div><div></div> <!></div>`);function oO(e,t){O(t,!0);let n=q(t,`settingName`,7),r=q(t,`iconName`,7),i=q(t,`currentValue`,7),a=q(t,`possibleValues`,7),o=q(t,`allowEmpty`,7),s=q(t,`disabled`,7),c=j(()=>Z.selectorTranslations[n()]??{name:n(),placeholder:``,values:{}}),l=j(()=>i()?R(c).values?.[i()]||i():R(c).placeholder),u=j(()=>Z.selectorsWithErrors.includes(n())),d={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},f=()=>{Sh.resetSelectorToDefaults(n())},p=M(void 0),m=M(!1);var h={get settingName(){return n()},set settingName(e){n(e),A()},get iconName(){return r()},set iconName(e){r(e),A()},get currentValue(){return i()},set currentValue(e){i(e),A()},get possibleValues(){return a()},set possibleValues(e){a(e),A()},get allowEmpty(){return o()},set allowEmpty(e){o(e),A()},get disabled(){return s()},set disabled(e){s(e),A()}},g=aO(),_=P(g);return oo(_,e=>N(p,e),()=>R(p)),G(I(_,2),()=>TT,(e,t)=>{t(e,{get open(){return R(m)},set open(e){N(m,e,!0)},children:(e,t)=>{var h=iO(),g=F(h);{let e=(e,t)=>{let n=()=>t?.().props;var i=$D();qa(i,()=>({type:`button`,class:`chat-input__settings-button btn btn--tertiary`,"data-has-error":R(u),...n(),disabled:s(),"aria-hidden":s(),tabindex:s()?-1:void 0}));var a=P(i);Oh(a,{get name(){return r()},class:`chat-input__settings-button-icon`});var o=I(a,2),d=P(o),f=P(d);D(d);var p=I(d);D(o),Oh(I(o,2),{name:`chevronDownSmall`,class:`chat-input__settings-button-chevron`}),D(i),L(()=>{H(f,`${R(c).name??``}:`),H(p,` ${R(l)??``}`)}),V(e,i)};G(g,()=>AT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}G(I(g,2),()=>qv,(e,t)=>{t(e,{get to(){return R(p)},children:(e,t)=>{var r=B(),s=F(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,s=()=>t?.().props,l=()=>t?.().open;var u=B(),p=F(u),h=e=>{var t=rO();qa(t,()=>({...r()}));var l=P(t);qa(l,()=>({...s()}));var u=P(l),p=P(u),h=P(p),g=P(h,!0);D(h);var _=I(h,2),v=P(_,!0);D(_);var y=I(_,2);Oh(P(y),{name:`menuClose`}),D(y),D(p);var b=I(p,2);let x;var S=P(b);{let e=j(()=>i()||``);G(S,()=>eT,(t,r)=>{r(t,{get value(){return R(e)},onValueChange:e=>{e?Sh.setSelectorValue(n(),[e]):Sh.setSelectorValue(n(),[])},children:(e,t)=>{var n=nO(),r=F(n),i=e=>{let t=j(Qb);var n=B(),r=F(n);{let e=(e,n)=>{let r=()=>n?.().checked;var i=eO(),a=F(i);TD(a,{get checked(){return r()}}),G(I(a,2),()=>PT,(e,n)=>{n(e,{get for(){return R(t)},children:(e,t)=>{Xe();var n=mi();L(()=>H(n,R(c).placeholder)),V(e,n)},$$slots:{default:!0}})}),V(e,i)};G(r,()=>Xw,(n,r)=>{r(n,{value:``,class:`context-box__menu-item context-box__menu-item--option`,get id(){return R(t)},children:e,$$slots:{default:!0}})})}V(e,n)};W(r,e=>{o()&&e(i)}),Yi(I(r,2),17,a,Gi,(e,t)=>{let n=j(Qb);var r=B(),i=F(r);{let e=(e,r)=>{let i=()=>r?.().checked;var a=tO(),o=F(a);TD(o,{get checked(){return i()}}),G(I(o,2),()=>PT,(e,r)=>{r(e,{get for(){return R(n)},children:(e,n)=>{Xe();var r=mi();L(()=>H(r,R(c).values?.[R(t)]||R(t))),V(e,r)},$$slots:{default:!0}})}),V(e,a)};G(i,()=>Xw,(r,i)=>{i(r,{get value(){return R(t)},class:`context-box__menu-item context-box__menu-item--option`,get id(){return R(n)},children:e,$$slots:{default:!0}})})}V(e,r)}),V(e,n)},$$slots:{default:!0}})})}D(b),G(I(b,2),()=>Kw,(e,t)=>{t(e,{class:`context-box__footer`,children:(e,t)=>{var n=B();G(F(n),()=>Ww,(e,t)=>{t(e,{onclick:f,closeOnSelect:!1,class:`context-box__footer-item btn btn--tertiary`,children:(e,t)=>{Xe();var n=mi();L(()=>H(n,Z.t.resetToDefaults)),V(e,n)},$$slots:{default:!0}})}),V(e,n)},$$slots:{default:!0}})}),D(u),D(l),D(t),L(()=>{H(g,Z.t.ariaCloseWithEsc),H(v,R(c).intro||R(c).name),K(y,`aria-label`,Z.t.close),x=Ea(b,1,`context-box__menu context-box__menu--scrollable`,null,x,{"context-box__menu--two-cols":a().length>8,"context-box__menu--three-cols":a().length>16})}),ii(`click`,y,()=>N(m,!1)),da(3,l,()=>WT,()=>d),V(e,t)};W(p,e=>{l()&&e(h)}),V(e,u)};G(s,()=>OT,(t,n)=>{n(t,{class:`context-box context-box--dropdown`,align:`start`,sideOffset:8,forceMount:!0,strategy:`absolute`,preventScroll:!1,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})}),V(e,h)},$$slots:{default:!0}})}),D(g),V(e,g),k(h)}ai([`click`]),J(oO,{settingName:{},iconName:{},currentValue:{},possibleValues:{},allowEmpty:{},disabled:{}},[],[],{mode:`open`});function sO(e,t){O(t,!0);let n=q(t,`chatSettingConfig`,7),r=q(t,`settingsIsOpen`,7);var i={get chatSettingConfig(){return n()},set chatSettingConfig(e){n(e),A()},get settingsIsOpen(){return r()},set settingsIsOpen(e){r(e),A()}},a=B(),o=F(a),s=e=>{{let t=j(()=>n().iconName||n().settingName),i=j(()=>!r());oO(e,{get settingName(){return n().settingName},get iconName(){return R(t)},get currentValue(){return Z.data.selectorValues[n().settingName][0]},get possibleValues(){return n().values},get allowEmpty(){return n().allowEmpty},get disabled(){return R(i)}})}},c=e=>{{let t=j(()=>n().iconName||n().settingName),i=j(()=>!r());QD(e,{get settingName(){return n().settingName},get iconName(){return R(t)},get currentValues(){return Z.data.selectorValues[n().settingName]},get possibleValues(){return n().values},get disabled(){return R(i)}})}};return W(o,e=>{n().type===`single-select`?e(s):n().type===`multi-select`&&e(c,1)}),V(e,a),k(i)}J(sO,{chatSettingConfig:{},settingsIsOpen:{}},[],[],{mode:`open`});function cO(e,t){O(t,!0);let n=q(t,`settingsIsOpen`,7);var r={get settingsIsOpen(){return n()},set settingsIsOpen(e){n(e),A()}},i=B();return Yi(F(i),17,()=>Z.data.chatConfig.selectorsConfig,Gi,(e,t)=>{sO(e,{get settingsIsOpen(){return n()},get chatSettingConfig(){return R(t)}})}),V(e,i),k(r)}J(cO,{settingsIsOpen:{}},[],[],{mode:`open`});var lO=pi(`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><defs><linearGradient x1="0" y1="1" x2="0" y2="0"><stop></stop><stop></stop></linearGradient><mask maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><g stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><path d="M12 19v4"></path><path d="M8 23h8"></path></g></mask></defs><rect width="24" height="24"></rect></svg>`);function uO(e,t){O(t,!0);let n=q(t,`level`,7),r=q(t,`class`,7,``),i=q(t,`baseColor`,7,`var(--mic-base-color)`),a=q(t,`accentColor`,7,`var(--mic-accent-color)`),o=Math.random().toString(36).substring(2),s=`audio-level-gradient-${o}`,c=`audio-level-mask-${o}`;var l={get level(){return n()},set level(e){n(e),A()},get class(){return r()},set class(e=``){r(e),A()},get baseColor(){return i()},set baseColor(e=`var(--mic-base-color)`){i(e),A()},get accentColor(){return a()},set accentColor(e=`var(--mic-accent-color)`){a(e),A()}},u=lO(),d=P(u),f=P(d),p=P(f),m=I(p);D(f);var h=I(f);D(d);var g=I(d);return D(u),L(()=>{Ea(u,0,`audio-level-mic-svg ${r()??``}`),K(f,`id`,s),K(p,`offset`,n()/100),K(p,`stop-color`,a()),K(m,`offset`,n()/100),K(m,`stop-color`,i()),K(h,`id`,c),K(g,`fill`,`url(#${s})`),K(g,`mask`,`url(#${c})`)}),V(e,u),k(l)}J(uO,{level:{},class:{},baseColor:{},accentColor:{}},[],[],{mode:`open`});var dO=z(`<button type="button"><div class="mic-icon" aria-hidden="true"><!></div></button>`);function fO(e,t){O(t,!0);let n=typeof window<`u`,r=j(()=>Z.t),i=q(t,`class`,7),a=j(()=>!!Z.currentAudioRecorder),o=j(()=>n&&Gm.isSupported()),s=j(()=>Z.currentAudioVolume||0),c=M(!1),l=async()=>{try{R(a)?Sh.onStopSpeechRecognition():await Sh.onStartSpeechRecognition(),N(c,!1)}catch(e){console.error(`Speech recognition error:`,e),N(c,!0)}};Qn(()=>()=>{R(a)&&Sh.onStopSpeechRecognition()});var u={get class(){return i()},set class(e){i(e),A()}},d=B(),f=F(d),p=e=>{var t=dO();let n;var o=P(t);uO(P(o),{get level(){return R(s)}}),D(o),D(t),L(()=>{K(t,`aria-label`,R(a)?R(r).chatInputStopListening:R(r).chatInputStartListening),n=Ea(t,1,`chat-input__mic-button transition-colors ${i()??``}`,null,n,{"chat-input__mic-button--listening":R(a),"chat-input__mic-button--error":R(c)})}),ii(`click`,t,l),V(e,t)};return W(f,e=>{R(o)&&e(p)}),V(e,d),k(u)}ai([`click`]),J(fO,{class:{}},[],[],{mode:`open`});var pO=z(`<div class="chat-input__notification" data-type="error" aria-live="assertive"><!> <span class="chat-input__notification-label"> </span></div>`),mO=z(`<button><!></button>`),hO=z(`<button type="button" class="chat-input__settings-button btn btn--tertiary"><!> <div class="chat-input__settings-button-label"> </div></button>`),gO=z(`<!> <!>`,1),_O=z(`<nav><h2 class="sr-only"> </h2> <div class="chat-input__toggle-area"><!></div> <div class="chat-input__settings"><!></div></nav>`),vO=z(`<form><!> <div class="animated-height chat-input__notification-wrapper" role="presentation"><div class="chat-input__notification-animation-element"><!></div></div> <div role="region"><h2 class="sr-only"> </h2> <textarea name="chat-input-value" class="chat-input__textarea"></textarea> <!> <div class="chat-input__buttons"><!> <button type="submit"><span class="sr-only"> </span> <!></button></div></div></form>`);function yO(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`class`,7),i=q(t,`ariaLabel`,7),a=q(t,`onSubmit`,7),o=q(t,`avoidFocusOnMount`,7),s=q(t,`disabledInput`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`class`,`ariaLabel`,`onSubmit`,`avoidFocusOnMount`,`disabledInput`]),l=j(()=>Z.data.chatInputValue),u=j(()=>Z.data.selectedTopic),d=j(()=>R(l).trim().length>(Z.data.chatConfig.questionLengthLimit||600)),f=j(()=>R(l).trim()&&!R(d)&&!Z.data.questionHasPii),p=j(()=>Z.data.currentConversationState===`answering`||Z.data.currentConversationState===`searching`),m=j(()=>!R(f)&&!R(p)),h=M(void 0),g,_=j(()=>Z.data?.chatConfig?.allowAudioInput??!0),v=j(()=>!!Z.currentAudioRecorder),y=j(()=>Z.isTranscribing),b=M(0),x=M(void 0),S=M(void 0),C=M(En(Z.data.selectorsIsOpen)),ee=M(En(Z.data.selectorsIsOpen)),te=j(()=>Z.data.chatConfig.selectorsConfig.length>0),ne=j(()=>Z.data.chatConfig.showExpandedSelectors),re=M(void 0),w,ie=j(()=>{let e=``;return Z.data.questionHasPii?e=Z.piiTranslations[Z.data.questionHasPii]:R(d)&&(e=R(n).messageTooLong?.replace(`{questionLengthLimit}`,(Z.data.chatConfig.questionLengthLimit||600).toString())?.replace(`{questionLength}`,R(l).trim().length.toString())),e}),ae=j(()=>()=>R(y)?R(n).messageBotLoading:R(v)&&R(n).chatInputPlaceholderListening?R(n).chatInputPlaceholderListening:R(u)?.placeholder?R(u).placeholder:R(n).chatInputPlaceholder),oe=()=>{R(p)?Sh.abort():R(f)&&(a()(R(l)),pe(),Wm()&&R(h)?.blur())},se=e=>{e.preventDefault(),oe()},ce=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),oe())},le=e=>{e.composedPath()[0].matches(`button, a, textarea, input`)||setTimeout(()=>{R(h)?.blur()},100)},ue=()=>{Wm()&&window.addEventListener(`pointerdown`,le)},de=()=>{Wm()&&window.removeEventListener(`pointerdown`,le)},fe=e=>{if(!e.value){e.value=e.placeholder;let t=Math.ceil(e.scrollHeight);return e.value=``,t}return e.scrollHeight},pe=()=>{Kr().then(()=>{if(R(h)){R(h).style.height=`auto`;let e=fe(R(h));R(h).style.height=`${e}px`}})};Qn(()=>{R(l)&&pe()});let me=e=>{pe(),Sh.onInput(e.currentTarget.value),w&&clearTimeout(w),w=setTimeout(()=>{R(ie)&&Sh.setAriaLiveStatusMessage(R(ie))},1e3)},he=()=>{N(C,!1),Kr().then(()=>R(x)?.focus())};Qn(()=>{if(R(h))return g=new ResizeObserver(()=>{pe()}),g.observe(R(h)),()=>{g.disconnect()}}),Qn(()=>{let e=new URLSearchParams(window.location.search),t=e.get(`prefill`);t&&(N(l,t),e.delete(`prefill`),history.replaceState(null,``,`${location.pathname}?${e.toString()}${window.location.hash}`))}),Fi(()=>{!Wm()&&!o()&&setTimeout(()=>{R(h)?.focus()},100)}),Qn(()=>{let e=R(C)&&!R(ee);N(ee,R(C),!0),e&&(R(x)?.setAttribute(kh,`true`),Z.data.chatConfig.showExpandedSelectors||Kr().then(()=>R(S)?.focus({preventScroll:!0})))});function ge(){R(h)?.focus()}var _e={focus:ge,get class(){return r()},set class(e){r(e),A()},get ariaLabel(){return i()},set ariaLabel(e){i(e),A()},get onSubmit(){return a()},set onSubmit(e){a(e),A()},get avoidFocusOnMount(){return o()},set avoidFocusOnMount(e){o(e),A()},get disabledInput(){return s()},set disabledInput(e){s(e),A()}},ve=vO();ri(`resize`,kn,pe),qa(ve,()=>({name:`chat-input`,onsubmit:se,class:[`chat-input`,{"chat-input--disabled":s()},r()],...c,inert:s()?!0:void 0}));var ye=P(ve);UD(ye,{});var be=I(ye,2);let xe;var Se=P(be),Ce=P(Se),we=e=>{var t=pO(),n=P(t);Oh(n,{name:`warning`,class:`chat-input__notification-icon`});var r=I(n,2),i=P(r,!0);D(r),D(t),L(()=>H(i,R(ie))),da(2,t,()=>UT,()=>({duration:100,delay:1e3})),V(e,t)};W(Ce,e=>{R(ie)&&e(we)}),D(Se),D(be);var Te=I(be,2);let Ee;var De=P(Te),Oe=P(De,!0);D(De);var ke=I(De,2);Hn(ke),K(ke,`rows`,1),oo(ke,e=>N(h,e),()=>R(h)),ga(ke,(e,t)=>Ch?.(e,t),()=>`chatInput`),ga(ke,(e,t)=>wh?.(e,t),()=>`chatInput`);var Ae=I(ke,2),je=e=>{var t=B(),r=F(t);{let e=e=>{var t=_O(),r=P(t),i=P(r,!0);D(r);var a=I(r,2),o=P(a);{let e=(e,t)=>{let r=()=>t?.().props;var i=mO();qa(i,()=>({class:`chat-input__settings-toggle-button btn btn--tertiary btn--square`,...r(),disabled:R(C),"aria-hidden":R(C),"aria-label":R(n).showSettings,tabindex:R(C)?-1:void 0})),Oh(P(i),{name:`settings`}),D(i),ga(i,(e,t)=>Ah?.(e,t),()=>({text:R(C)?``:R(n).showSettings,position:`top`,delay:0})),oo(i,e=>N(x,e),()=>R(x)),V(e,i)};G(o,()=>kx,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}D(a);var s=I(a,2);G(P(s),()=>Dx,(e,t)=>{t(e,{class:`display-contents`,forceMount:!0,children:(e,t)=>{var r=gO(),i=F(r),a=e=>{var t=hO(),r=P(t);Oh(r,{name:`settingsClose`,class:`chat-input__settings-button-icon`});var i=I(r,2),a=P(i,!0);D(i),D(t),oo(t,e=>N(S,e),()=>R(S)),L(()=>{K(t,`aria-label`,R(n).hideSettings),K(t,`aria-hidden`,!R(C)),t.disabled=!R(C),K(t,`tabindex`,R(C)?void 0:-1),H(a,R(n).hideSettings)}),ii(`click`,t,he),V(e,t)};W(i,e=>{R(ne)||e(a)}),cO(I(i,2),{get settingsIsOpen(){return R(C)}}),V(e,r)},$$slots:{default:!0}})}),D(s),D(t),L(()=>{K(t,`aria-label`,R(n).ariaSettingsRegion),H(i,R(n).ariaSettings)}),io(s,`clientHeight`,e=>N(b,e)),V(e,t)};G(r,()=>Tx,(t,n)=>{n(t,{get open(){return R(C)},set open(e){N(C,e,!0)},child:e,$$slots:{child:!0}})})}V(e,t)};W(Ae,e=>{R(te)&&e(je)});var Me=I(Ae,2),Ne=P(Me),Pe=e=>{fO(e,{})};W(Ne,e=>{R(_)&&e(Pe)});var Fe=I(Ne,2);let Ie;var Le=P(Fe),Re=P(Le,!0);D(Le);var ze=I(Le,2),Be=e=>{Oh(e,{name:`abort`,class:`chat-input__submit-icon`})},Ve=e=>{Oh(e,{name:`submit`,class:`chat-input__submit-icon`})};return W(ze,e=>{R(p)?e(Be):e(Ve,-1)}),D(Fe),D(Me),D(Te),D(ve),L(e=>{xe=Oa(be,``,xe,{height:R(ie)?`${R(re)}px`:`0px`}),Ee=Ea(Te,1,`chat-input__grid`,null,Ee,{"chat-input__grid--has-settings":R(te),"chat-input__grid--settings-is-open":R(C)}),Oa(Te,`--chat-input-settings-height: ${R(C)?R(b):0}px`),K(Te,`aria-label`,R(n).ariaAskQuestionRegion),H(Oe,R(n).ariaAskQuestion),Ua(ke,R(l)),K(ke,`aria-label`,i()),K(ke,`placeholder`,e),Fe.disabled=R(m),Ie=Ea(Fe,1,`chat-input__submit-button transition-colors`,null,Ie,{"chat-input__submit-button--deactivated":R(m)}),H(Re,R(p)?R(n).chatInputAbort:R(n).chatInputSubmit)},[()=>R(ae)()]),io(Se,`clientHeight`,e=>N(re,e)),ii(`input`,ke,me),ii(`focusin`,ke,ue),ii(`focusout`,ke,de),ri(`keypress`,ke,ce),V(e,ve),k(_e)}ai([`input`,`focusin`,`focusout`,`click`]),J(yO,{class:{},ariaLabel:{},onSubmit:{},avoidFocusOnMount:{},disabledInput:{}},[],[`focus`],{mode:`open`});var bO=z(`<label class="classification-feedback__option btn btn--secondary"><input type="radio" name="quality"/> </label>`),xO=z(`<fieldset class="classification-feedback__item"><legend class="classification-feedback__label"> </legend> <!></fieldset>`),SO=z(`<label class="classification-feedback__option btn btn--secondary"><input type="radio" name="impact"/> </label>`),CO=z(`<fieldset class="classification-feedback__item"><legend class="classification-feedback__label"> </legend> <!></fieldset>`),wO=z(`<div class="classification-feedback"><div class="classification-feedback__title"> </div> <!></div>`);function TO(e,t){O(t,!0);let n=[],r=[],i=j(()=>Z.t),a=q(t,`impact`,15),o=q(t,`quality`,15),s=q(t,`classificationConfig`,7),c=[`quality`,`impact`],l=j(()=>[...new Set([...s()?.order??[],...c])]);var u={get impact(){return a()},set impact(e){a(e),A()},get quality(){return o()},set quality(e){o(e),A()},get classificationConfig(){return s()},set classificationConfig(e){s(e),A()}},d=B(),f=F(d),p=e=>{var t=wO(),c=P(t),u=P(c,!0);D(c),Yi(I(c,2),17,()=>R(l),Gi,(e,t)=>{var i=B(),c=F(i),l=e=>{var t=B(),r=F(t),i=e=>{var t=xO(),r=P(t),i=P(r,!0);D(r),Yi(I(r,2),17,()=>s().quality.options,Gi,(e,t)=>{var r=bO(),i=P(r);Ha(i);var a,s=I(i);D(r),L(()=>{a!==(a=R(t).value)&&(i.value=(i.__value=R(t).value)??``),H(s,` ${R(t).label??``}`)}),$a(n,[],i,()=>(R(t).value,o()),o),V(e,r)}),D(t),L(()=>H(i,s().quality.label)),V(e,t)};W(r,e=>{s().quality&&s().quality.options.length!==0&&e(i)}),V(e,t)},u=e=>{var t=CO(),n=P(t),i=P(n,!0);D(n),Yi(I(n,2),17,()=>s().impact.options,Gi,(e,t)=>{var n=SO(),i=P(n);Ha(i);var o,s=I(i);D(n),L(()=>{o!==(o=R(t).value)&&(i.value=(i.__value=R(t).value)??``),H(s,` ${R(t).label??``}`)}),$a(r,[],i,()=>(R(t).value,a()),a),V(e,n)}),D(t),L(()=>H(i,s().impact.label)),V(e,t)};W(c,e=>{R(t)===`quality`?e(l):s().impact&&s().impact.options.length!==0&&e(u,1)}),V(e,i)}),D(t),L(()=>H(u,R(i).classificationTitle)),V(e,t)};return W(f,e=>{s()&&(s().quality||s().impact)&&e(p)}),V(e,d),k(u)}J(TO,{impact:{},quality:{},classificationConfig:{}},[],[],{mode:`open`});function EO(e,t){O(t,!0);let n=j(()=>Z.t),r=M(void 0),i=M(void 0),a=M(En({message:``,email:``})),o=j(()=>[{type:`textarea`,name:`message`,label:R(n).feedbackFormMessage,placeholder:R(n).feedbackFormMessagePlaceholder},...Z.data.chatConfig.showOverallFeedbackEmail?[{type:`email`,name:`email`,label:R(n).feedbackFormEmail,placeholder:R(n).feedbackFormEmailPlaceholder}]:[]]),s=j(()=>R(r)!==void 0||R(i)!==void 0||R(a).message!==``);{let t=e=>{TO(e,{get classificationConfig(){return Z.data.chatConfig.classification},get impact(){return R(r)},set impact(e){N(r,e,!0)},get quality(){return R(i)},set quality(e){N(i,e,!0)}})},c=j(()=>!!Z.data.conversationFeedbackId||Z.data.conversationFeedbackIsOpen);RD(e,{get open(){return R(c)},get onClose(){return Sh.closeFeedback},get dialogTitle(){return R(n).feedbackFormTitle},get fields(){return R(o)},get submitEnabled(){return R(s)},get submitLabel(){return R(n).send},onSubmit:async()=>{Z.data.chatConfig.classification?await Sh.submitFeedback({email:R(a).email,message:R(a).message,classification:{impact:R(r),quality:R(i)}}):await Sh.submitFeedback({email:R(a).email,message:R(a).message}),N(r,void 0),N(i,void 0),N(a,{message:``,email:``},!0),Sh.closeFeedback()},get values(){return R(a)},set values(e){N(a,e,!0)},header:t,$$slots:{header:!0}})}k()}J(EO,{},[],[],{mode:`open`});var DO=z(`<div><button class="btn btn--primary" aria-haspopup="dialog"> </button></div>`),OO=z(`<a class="skip-link"> </a>`),kO=z(`<div class="chat-page__footer-text"></div>`),AO=z(`<section class="chat-page"><!> <!> <div class="chat-page__survey-portal"><div class="container"></div></div> <div class="chat-page__body"><h2 class="sr-only"></h2> <div class="chat-page__messages"></div> <div class="chat-page__buttons"><!></div></div> <div><div class="container"><div class="chat-page__footer-content"><button aria-hidden="true"><span class="sr-only"> </span> <!></button> <!> <!> <!></div></div></div></section>`);function jO(e,t){O(t,!0);let n=j(()=>Z.t),r=M(!1),i=M(void 0),a=M(void 0),o=M(void 0),s=M(void 0),c=M(void 0),l,u=j(()=>Z.data.history.findLast(e=>e.type===`bot`)),d=j(()=>Z.data.history.findLast(e=>e.type===`bot`||e.type===`component`)),f=j(()=>R(d)?.type===`component`&&!!R(d).hideChatInput),p=j(()=>!!R(u)?.noFeedback),m=e=>{l&&nE(l,l.scrollHeight-l.clientHeight,e,`scrollTop`,IT)},h=()=>{l&&N(r,!(l.scrollHeight-l.scrollTop-l.clientHeight<90))},g,_=M(!1),v=()=>{N(_,!1),g?.disconnect(),g=new IntersectionObserver(([e])=>{e.isIntersecting?(N(_,!0),g.disconnect()):N(_,!1)},{root:Z.targets.scrollContainer,rootMargin:`0px 0px -30% 0px`}),R(s)&&g.observe(R(s))};Fi(()=>(v(),window.addEventListener(`resize`,v),()=>{g?.disconnect(),window.removeEventListener(`resize`,v)}));let y=()=>{h()},b=e=>{if(e.altKey&&e.code===`KeyR`){if(Z.data.chatConfig.forceChatPage)return;e.preventDefault();let t=Z.data.history.findLast(e=>e.type===`user`)?.message;Sh.goto({name:`start-page`,prefill:t})}},x=()=>{setTimeout(()=>{let{chatAppContainer:e,chatAppHeader:t,chatPageMessages:n,chatPageLastUserMessage:r}=Z.targets;if(!(Z.data.chatConfig.inlineLayout&&!Z.data.props.flyout&&!Z.data.isInlineLayoutContained)&&e&&t&&R(s)&&n&&R(a)&&R(o)&&r){let i=e.clientHeight-t.offsetHeight-R(s).offsetHeight-R(o).offsetHeight-r.offsetHeight-parseInt(getComputedStyle(n).gap)*2;i>0?(R(a).style.setProperty(`--last-bot-message-min-height`,`${i}px`),m(1e3)):r.scrollIntoView({behavior:`smooth`})}},150)},S=()=>{Sh.onSubmit(!0)};Qn(()=>{R(i)&&(l=R(i).closest(`.chat-app__main`))}),Qn(()=>{if(l)return l.addEventListener(`scroll`,h),()=>{l.removeEventListener(`scroll`,h)}}),Qn(()=>{!R(f)&&!Wm()&&Kr().then(()=>R(c)?.focus())});let C=e=>{let t=Z.data.history[e-1];t&&t.type===`user`&&(Sh.updateChatInput(t.message),R(c)?.focus())};var ee=AO();ri(`resize`,kn,y),ri(`keypress`,kn,b);var te=P(ee);EO(te,{});var ne=I(te,2);zD(ne,{});var re=I(ne,2);ga(P(re),(e,t)=>wh?.(e,t),()=>`surveyPortal`),D(re);var w=I(re,2),ie=P(w);ta(ie,()=>R(n).ariaChatHistory,!0),D(ie);var ae=I(ie,2);Yi(ae,23,()=>Z.data.history,e=>e?.id??e?.time,(e,t,n)=>{{let r=j(()=>R(n)===Z.data.history.length-1);eD(e,{get message(){return R(t)},get index(){return R(n)},onmessageupdate:h,onbotmessageinit:x,onaskQuestion:()=>{C(R(n))},get isLast(){return R(r)}})}}),D(ae),oo(ae,e=>N(a,e),()=>R(a)),ga(ae,(e,t)=>wh?.(e,t),()=>`chatPageMessages`);var oe=I(ae,2),se=P(oe),ce=e=>{var t=DO(),r=P(t),i=P(r,!0);D(r),D(t),L(()=>{Ea(t,1,ba([`chat-page__give-feedback`,{"chat-page__give-feedback--disabled":R(p)}])),t.inert=R(p)?!0:void 0,K(r,`aria-expanded`,Z.data.conversationFeedbackIsOpen),H(i,R(n).giveFeedback)}),ii(`click`,r,()=>Sh.openConversationFeedback()),V(e,t)};W(se,e=>{Z.data.chatConfig.showOverallFeedbackButton&&e(ce)}),D(oe),oo(oe,e=>N(o,e),()=>R(o)),D(w);var le=I(w,2),ue=P(le),de=P(ue),fe=P(de);let pe;K(fe,`tabindex`,-1);var me=P(fe),he=P(me,!0);D(me),Oh(I(me,2),{name:`chevronDown`}),D(fe);var ge=I(fe,2);oo(yO(ge,{onSubmit:S,class:`chat-page__chat-input`,get disabledInput(){return R(f)}}),e=>N(c,e,!0),()=>R(c));var _e=I(ge,2),ve=e=>{var t=OO(),r=P(t,!0);D(t),L(()=>{K(t,`href`,`#${wj}`),H(r,R(n).ariaGotoMainNavigation)}),ii(`click`,t,function(...e){Tj?.apply(this,e)}),V(e,t)};W(_e,e=>{Z.hasMainNavigationContent&&e(ve)});var ye=I(_e,2),be=e=>{var t=kO();ta(t,()=>R(n).chatFooterText,!0),D(t),V(e,t)};W(ye,e=>{R(n).chatFooterText!==void 0&&e(be)}),D(de),D(ue),D(le),oo(le,e=>N(s,e),()=>R(s)),D(ee),oo(ee,e=>N(i,e),()=>R(i)),L(()=>{Ea(le,1,ba([`chat-page__footer`,{"chat-page__footer--unsticked":R(_)}])),pe=Ea(fe,1,`chat-page__scroll-to-bottom btn btn--secondary btn--square`,null,pe,{"chat-page__scroll-to-bottom--hidden":!R(r)}),fe.disabled=!R(r),H(he,R(n).scrollToBottom)}),ii(`click`,fe,()=>{m(500)}),V(e,ee),k()}ai([`click`]),J(jO,{},[],[],{mode:`open`});var MO=z(`<div><!> <h2 class="introduction__title"></h2></div>`);function NO(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`class`,7);var i={get class(){return r()},set class(e){r(e),A()}},a=MO(),o=P(a);BE(o,{class:`introduction__avatar`,isLarge:!0});var s=I(o,2);return ta(s,()=>R(n).introductionTitle,!0),D(s),D(a),L(()=>Ea(a,1,`introduction ${r()??``}`)),V(e,a),k(i)}J(NO,{class:{}},[],[],{mode:`open`});var PO=z(`<div class="consent-page__disclaimer text-container fly-in" style="--fly-in-id: 1;"></div>`),FO=z(`<button class="btn btn--secondary" type="button"> </button>`),IO=z(`<section><!> <!> <div class="consent-page__actions fly-in" style="--fly-in-id: 2;"><!> <button class="btn btn--primary" type="button"> </button></div></section>`);function LO(e,t){O(t,!0);let n=j(()=>Z.t),r=j(()=>R(n).popups?.find(e=>e.actions?.some(e=>e.action===`acceptTerms`))),i=M(!1);Qn(()=>{N(i,!0)});var a=IO();let o;var s=P(a);NO(s,{class:`consent-page__introduction fly-in`});var c=I(s,2),l=e=>{var t=PO();ta(t,()=>R(n).termsInvitationToConsent,!0),D(t),V(e,t)};W(c,e=>{R(n).termsInvitationToConsent&&e(l)});var u=I(c,2),d=P(u),f=e=>{var t=FO(),i=P(t,!0);D(t),L(()=>H(i,R(n).termsReadButton)),ii(`click`,t,()=>window.location.hash=R(r).hash),V(e,t)};W(d,e=>{R(r)&&e(f)});var p=I(d,2),m=P(p,!0);D(p),D(u),D(a),L(()=>{o=Ea(a,1,`consent-page container`,null,o,{mounted:R(i)}),H(m,R(n).termsAcceptButton)}),ii(`click`,p,()=>Sh.acceptTerms()),V(e,a),k()}ai([`click`]),J(LO,{},[],[],{mode:`open`});var RO=z(`<button><span class="sr-only"> </span> <!></button>`),zO=z(`<div><div><button type="button" class="context-box__popover-close"><!> <span class="sr-only"> </span></button> <!></div></div>`),BO=z(`<!> <!>`,1),VO=z(`<div><!></div>`);function HO(e,t){O(t,!0);let n={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},r=q(t,`openLabel`,7),i=q(t,`closeLabel`,7),a=q(t,`openIcon`,7),o=q(t,`closeIcon`,7),s=q(t,`ariaLabel`,7),c=q(t,`children`,7),l=q(t,`class`,7),u=q(t,`contentClass`,7),d=q(t,`portal`,7),f=M(!1),p=M(void 0);Qn(()=>{R(f)?(R(p)?.setAttribute(kh,`true`),Yr(()=>Sh.setOpenOverlay(!0))):Yr(()=>Sh.setOpenOverlay(!1))});var m={get openLabel(){return r()},set openLabel(e){r(e),A()},get closeLabel(){return i()},set closeLabel(e){i(e),A()},get openIcon(){return a()},set openIcon(e){a(e),A()},get closeIcon(){return o()},set closeIcon(e){o(e),A()},get ariaLabel(){return s()},set ariaLabel(e){s(e),A()},get children(){return c()},set children(e){c(e),A()},get class(){return l()},set class(e){l(e),A()},get contentClass(){return u()},set contentClass(e){u(e),A()},get portal(){return d()},set portal(e){d(e),A()}},h=VO();return G(P(h),()=>FT,(e,t)=>{t(e,{get open(){return R(f)},set open(e){N(f,e,!0)},children:(e,t)=>{var l=BO(),m=F(l);{let e=(e,t)=>{let n=()=>t?.().props;var s=RO();qa(s,()=>({class:`context-box__trigger btn btn--tertiary btn--square`,...n(),"aria-controls":d()?.id}));var c=P(s),l=P(c,!0);D(c);var u=I(c,2);{let e=j(()=>R(f)?o():a());Oh(u,{get name(){return R(e)}})}D(s),ga(s,(e,t)=>Ah?.(e,t),()=>({text:R(f)?i():r(),position:`bottom-right`,delay:0})),oo(s,e=>N(p,e),()=>R(p)),L(()=>H(l,R(f)?i():r())),V(e,s)};G(m,()=>vT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}var h=I(m,2);{let e=j(()=>d()||Z.targets.portals);G(h,()=>qv,(t,r)=>{r(t,{get to(){return R(e)},children:(e,t)=>{var r=B(),a=F(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,a=()=>t?.().props,l=()=>t?.().open;var u=B(),d=F(u),p=e=>{var t=zO();qa(t,()=>({...r()}));var l=P(t);qa(l,()=>({...a(),role:`dialog`,"aria-label":s()}));var u=P(l),d=P(u);Oh(d,{get name(){return o()}});var p=I(d,2),m=P(p,!0);D(p),D(u),U(I(u,2),c),D(l),ga(l,e=>rD?.(e)),D(t),L(()=>H(m,i())),ii(`click`,u,()=>N(f,!1)),da(3,l,()=>WT,()=>n),V(e,t)};W(d,e=>{l()&&e(p)}),V(e,u)},t=j(()=>[`context-box__content`,u()]);G(a,()=>gT,(n,r)=>{r(n,{get class(){return R(t)},sideOffset:8,alignOffset:-11,align:`end`,side:`bottom`,strategy:`absolute`,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:()=>R(p)?.focus(),forceMount:!0,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})})}V(e,l)},$$slots:{default:!0}})}),D(h),L(()=>Ea(h,1,ba([`context-box`,l()]))),V(e,h),k(m)}ai([`click`]),J(HO,{openLabel:{},closeLabel:{},openIcon:{},closeIcon:{},ariaLabel:{},children:{},class:{},contentClass:{},portal:{}},[],[],{mode:`open`});var UO=z(`<div class="text-container" aria-live="polite"><span class="sr-only"> </span> <!></div>`);function WO(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`content`,7);return HO(e,{get openLabel(){return R(n).openInfo},get closeLabel(){return R(n).close},openIcon:`info`,closeIcon:`menuClose`,contentClass:`context-box__content--info`,get portal(){return Z.targets.chatAppHeaderPortal},get ariaLabel(){return R(n).ariaInfoTitle},children:(e,t)=>{var i=UO(),a=P(i),o=P(a,!0);D(a),ta(I(a,2),r),D(i),L(()=>H(o,R(n).ariaCloseWithEsc)),V(e,i)},$$slots:{default:!0}}),k({get content(){return r()},set content(e){r(e),A()}})}J(WO,{content:{}},[],[],{mode:`open`});var GO=z(`<button><span class="sr-only"> </span> <!></button>`),KO=z(`<div><div><!></div></div>`),qO=z(`<!> <!>`,1),JO=z(`<div><!></div>`);function YO(e,t){O(t,!0);let n={duration:Number(Z.theme.components.contextBox.custom?.transitionDuration)||200,delay:Number(Z.theme.components.contextBox.custom?.transitionDelay)||0,y:Number(Z.theme.components.contextBox.custom?.transitionY)||10},r=q(t,`openLabel`,7),i=q(t,`closeLabel`,7),a=q(t,`openIcon`,7),o=q(t,`closeIcon`,7),s=q(t,`disableAutoFocusOnOpen`,7,!1),c=q(t,`children`,7),l=q(t,`class`,7),u=q(t,`contentClass`,7),d=q(t,`portal`,7),f=M(!1),p=M(void 0);Qn(()=>{R(f)?(R(p)?.setAttribute(kh,`true`),Yr(()=>Sh.setOpenOverlay(!0))):Yr(()=>Sh.setOpenOverlay(!1))});var m={get openLabel(){return r()},set openLabel(e){r(e),A()},get closeLabel(){return i()},set closeLabel(e){i(e),A()},get openIcon(){return a()},set openIcon(e){a(e),A()},get closeIcon(){return o()},set closeIcon(e){o(e),A()},get disableAutoFocusOnOpen(){return s()},set disableAutoFocusOnOpen(e=!1){s(e),A()},get children(){return c()},set children(e){c(e),A()},get class(){return l()},set class(e){l(e),A()},get contentClass(){return u()},set contentClass(e){u(e),A()},get portal(){return d()},set portal(e){d(e),A()}},h=JO();return G(P(h),()=>TT,(e,t)=>{t(e,{get open(){return R(f)},set open(e){N(f,e,!0)},children:(e,t)=>{var l=qO(),m=F(l);{let e=(e,t)=>{let n=()=>t?.().props;var s=GO();qa(s,()=>({class:`context-box__trigger btn btn--tertiary btn--square`,...n(),"aria-controls":d()?.id}));var c=P(s),l=P(c,!0);D(c);var u=I(c,2);{let e=j(()=>R(f)?o():a());Oh(u,{get name(){return R(e)}})}D(s),ga(s,(e,t)=>Ah?.(e,t),()=>({text:R(f)?i():r(),position:`bottom-right`,delay:0})),oo(s,e=>N(p,e),()=>R(p)),L(()=>H(l,R(f)?i():r())),V(e,s)};G(m,()=>AT,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}var h=I(m,2);{let e=j(()=>d()||Z.targets.portals);G(h,()=>qv,(t,r)=>{r(t,{get to(){return R(e)},children:(e,t)=>{var r=B(),i=F(r);{let e=(e,t)=>{let r=()=>t?.().wrapperProps,i=()=>t?.().props,a=()=>t?.().open;var o=B(),s=F(o),l=e=>{var t=KO();qa(t,()=>({...r()}));var a=P(t);qa(a,()=>({...i()})),U(P(a),c),D(a),D(t),da(3,a,()=>WT,()=>n),V(e,t)};W(s,e=>{a()&&e(l)}),V(e,o)},t=j(()=>[`context-box__content`,u()]);G(i,()=>OT,(n,r)=>{r(n,{get class(){return R(t)},sideOffset:8,alignOffset:-11,align:`end`,side:`bottom`,strategy:`absolute`,onOpenAutoFocus:e=>{s()&&e.preventDefault()},forceMount:!0,child:e,$$slots:{child:!0}})})}V(e,r)},$$slots:{default:!0}})})}V(e,l)},$$slots:{default:!0}})}),D(h),L(()=>Ea(h,1,ba([`context-box`,l()]))),V(e,h),k(m)}J(YO,{openLabel:{},closeLabel:{},openIcon:{},closeIcon:{},disableAutoFocusOnOpen:{},children:{},class:{},contentClass:{},portal:{}},[],[],{mode:`open`});var XO=e=>e.charAt(0).toUpperCase()+e.slice(1),ZO=z(`<span class="sr-only"> </span>`),QO=z(`<!> <span> <!></span>`,1),$O=z(`<div class="context-box__menu"></div>`),ek=z(`<!> <span> </span>`,1),tk=z(`<!> <div class="context-box__menu"></div>`,1),nk=z(`<!> <!>`,1),rk=z(`<!> <span> </span>`,1),ik=z(`<!> <span> </span>`,1),ak=z(`<!> <div class="context-box__color-scheme-selector"><!> <!> <!></div>`,1),ok=z(`<!> <!>`,1),sk=z(`<!> <!> <!>`,1);function ck(e,t){O(t,!0);let n=j(()=>Z.t),r=e=>{Sh.onLanguageChange(e)},i=e=>`Intl`in globalThis&&Intl.DisplayNames?XO(new Intl.DisplayNames([e],{type:`language`}).of(e)??e.toUpperCase()):e.toUpperCase(),a=e=>{Z.data.selectedColorScheme===e?Sh.setColorScheme(`system`):Sh.setColorScheme(e)};YO(e,{get openLabel(){return R(n).openMenu},get closeLabel(){return R(n).closeMenu},openIcon:`menu`,closeIcon:`menuClose`,contentClass:`context-box__content--menu`,get portal(){return Z.targets.chatAppHeaderPortal},children:(e,t)=>{var o=sk(),s=F(o),c=e=>{var t=$O();Yi(t,21,()=>Z.menu,Gi,(e,t)=>{var r=B();G(F(r),()=>Ww,(e,r)=>{r(e,{class:`context-box__menu-item transition-colors`,onSelect:()=>window.open(R(t).url,R(t).target,`noopener,noreferrer`),closeOnSelect:!0,children:(e,r)=>{var i=QO(),a=F(i);Oh(a,{get name(){return R(t).icon},class:`context-box__menu-item__icon`});var o=I(a,2),s=P(o,!0),c=I(s),l=e=>{var t=ZO(),r=P(t);D(t),L(()=>H(r,`, ${R(n).ariaOpensInNewTab??``}`)),V(e,t)};W(c,e=>{R(t).target===`_blank`&&e(l)}),D(o),L(()=>H(s,R(t).label)),V(e,i)},$$slots:{default:!0}})}),V(e,r)}),D(t),V(e,t)};W(s,e=>{Z.menu.length>0&&e(c)});var l=I(s,2),u=e=>{var t=nk(),a=F(t),o=e=>{var t=B();G(F(t),()=>Qw,(e,t)=>{t(e,{class:`context-box__separator`,"aria-hidden":`true`})}),V(e,t)};W(a,e=>{Z.menu.length>0&&e(o)}),G(I(a,2),()=>eT,(e,t)=>{t(e,{children:(e,t)=>{var a=tk(),o=F(a);G(o,()=>Jw,(e,t)=>{t(e,{class:`context-box__title`,"aria-hidden":`true`,children:(e,t)=>{Xe();var r=mi();L(()=>H(r,R(n).selectLanguage)),V(e,r)},$$slots:{default:!0}})});var s=I(o,2);Yi(s,21,()=>Z.data.chatConfig.supportedLanguages,Gi,(e,t)=>{var n=B(),a=F(n);{let e=j(()=>[`context-box__menu-item transition-colors`,{active:Z.data.language===R(t)}]);G(a,()=>Xw,(n,a)=>{a(n,{get value(){return R(t)},closeOnSelect:!0,get class(){return R(e)},onSelect:()=>r(R(t)),children:(e,n)=>{var r=ek(),a=F(r);Oh(a,{name:`internalLink`,class:`context-box__menu-item__icon`});var o=I(a,2),s=P(o,!0);D(o),L(e=>H(s,e),[()=>i(R(t))]),V(e,r)},$$slots:{default:!0}})})}V(e,n)}),D(s),V(e,a)},$$slots:{default:!0}})}),V(e,t)};W(l,e=>{Z.data.chatConfig.supportedLanguages.length>0&&e(u)});var d=I(l,2),f=e=>{var t=ok(),r=F(t);G(r,()=>Qw,(e,t)=>{t(e,{class:`context-box__separator`,"aria-hidden":`true`})}),G(I(r,2),()=>eT,(e,t)=>{t(e,{children:(e,t)=>{var r=ak(),i=F(r);G(i,()=>Jw,(e,t)=>{t(e,{class:`context-box__title sr-only`,"aria-hidden":`true`,children:(e,t)=>{Xe();var r=mi();L(()=>H(r,R(n).selectColorTheme)),V(e,r)},$$slots:{default:!0}})});var o=I(i,2),s=P(o);{let e=j(()=>[`context-box__color-scheme-selector-button transition-colors`,{"context-box__color-scheme-selector-button--active":Z.data.selectedColorScheme===`light`}]);G(s,()=>Xw,(t,n)=>{n(t,{value:`light`,closeOnSelect:!0,get class(){return R(e)},onSelect:()=>a(`light`),children:(e,t)=>{var n=rk(),r=F(n);Oh(r,{name:`lightMode`});var i=I(r,2),a=P(i,!0);D(i),L(()=>H(a,Z.t.lightMode)),V(e,n)},$$slots:{default:!0}})})}var c=I(s,2);G(c,()=>Qw,(e,t)=>{t(e,{class:`context-box__color-scheme-selector-separator`,"aria-hidden":`true`})});var l=I(c,2);{let e=j(()=>[`context-box__color-scheme-selector-button transition-colors`,{"context-box__color-scheme-selector-button--active":Z.data.selectedColorScheme===`dark`}]);G(l,()=>Xw,(t,n)=>{n(t,{value:`dark`,closeOnSelect:!0,get class(){return R(e)},onSelect:()=>a(`dark`),children:(e,t)=>{var n=ik(),r=F(n);Oh(r,{name:`darkMode`});var i=I(r,2),a=P(i,!0);D(i),L(()=>H(a,Z.t.darkMode)),V(e,n)},$$slots:{default:!0}})})}D(o),V(e,r)},$$slots:{default:!0}})}),V(e,t)};W(d,e=>{Z.data.has2ColorSchemes&&e(f)}),V(e,o)},$$slots:{default:!0}}),k()}J(ck,{},[],[],{mode:`open`});var lk=z(`<span class="btn__label"> </span>`),uk=z(`<div><button class="btn btn--tertiary btn--square"><!> <!></button></div>`);function dk(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`class`,7);var i={get class(){return r()},set class(e){r(e),A()}},a=uk(),o=P(a),s=P(o);Oh(s,{name:`newConversation`});var c=I(s,2),l=e=>{var t=lk(),r=P(t,!0);D(t),L(()=>H(r,R(n).newChat)),V(e,t)};return W(c,e=>{R(n).newChat&&e(l)}),D(o),ga(o,(e,t)=>Ah?.(e,t),()=>({text:R(n).newChat,position:`bottom-left`,delay:600})),D(a),L(()=>{Ea(a,1,ba([`new-conversation`,r()])),K(o,`aria-label`,R(n).newChat)}),ii(`click`,o,()=>Sh.onNewConversation()),da(1,a,()=>WT,()=>({duration:300,y:30})),da(2,a,()=>WT,()=>({y:15,duration:150,easing:LT})),V(e,a),k(i)}ai([`click`]),J(dk,{class:{}},[],[],{mode:`open`});var fk=z(`<button class="predefined-question transition-colors"><!> </button>`);function pk(e,t){O(t,!0);let n=q(t,`onSubmit`,7),r=q(t,`predefinedQuestion`,7),i=q(t,`index`,7);var a={get onSubmit(){return n()},set onSubmit(e){n(e),A()},get predefinedQuestion(){return r()},set predefinedQuestion(e){r(e),A()},get index(){return i()},set index(e){i(e),A()}},o=fk(),s=P(o);Oh(s,{name:`predefinedQuestion`,class:`predefined-question__icon transition-colors`});var c=I(s,1,!0);return D(o),ga(o,(e,t)=>Ch?.(e,t),()=>`predefinedQuestion`),L(()=>{K(o,`data-index`,i()),H(c,r().label??r().question)}),ii(`click`,o,()=>n()(r().question,r().id,r().switchQuestionId)),V(e,o),k(a)}ai([`click`]),J(pk,{onSubmit:{},predefinedQuestion:{},index:{}},[],[],{mode:`open`});var mk=z(`<li><!></li>`),hk=z(`<section><h2 class="sr-only"> </h2> <ul></ul></section>`);function gk(e,t){O(t,!0);let n=q(t,`class`,7),r=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`class`]);var i={get class(){return n()},set class(e){n(e),A()}},a=hk();qa(a,()=>({"aria-label":Z.t.ariaPredefinedQuestionsRegion,class:n(),...r}));var o=P(a),s=P(o,!0);D(o);var c=I(o,2);let l;return Yi(c,21,()=>Z.data.predefinedQuestions,Gi,(e,t,n)=>{var r=mk();pk(P(r),{get predefinedQuestion(){return R(t)},get onSubmit(){return Sh.onStartConversation},index:n}),D(r),V(e,r)}),D(c),D(a),L(()=>{H(s,Z.t.ariaPredefinedQuestions),l=Ea(c,1,`predefined-questions`,null,l,{"predefined-questions--pii-padding":Z.data.questionHasPii})}),V(e,a),k(i)}J(gk,{class:{}},[],[],{mode:`open`});var _k=z(`<div class="introduction-disclaimer text-container fly-in"></div>`),vk=z(`<section><!> <!> <!> <!></section>`);function yk(e,t){O(t,!0);let n=j(()=>Z.t),r=M(!1);Qn(()=>{N(r,!0)});let i=j(()=>Z.data.predefinedQuestions&&Z.data.predefinedQuestions.length),a=j(()=>R(i)&&Z.data.chatConfig.forcePredefinedQuestions);var o=vk();let s;var c=P(o);NO(c,{class:`start-page__introduction fly-in`});var l=I(c,2),u=e=>{{let t=j(()=>nl(R(n).introductionTitle||``));yO(e,{get onSubmit(){return Sh.onStartConversation},class:`start-page__chat-input fly-in`,style:`--fly-in-id: 1;`,get ariaLabel(){return R(t)}})}};W(l,e=>{R(a)||e(u)});var d=I(l,2),f=e=>{{let t=j(()=>R(a)?1:2);gk(e,{class:`start-page__predefined-questions fly-in`,get style(){return`--fly-in-id: ${R(t)??``};`}})}};W(d,e=>{R(i)&&e(f)});var p=I(d,2),m=e=>{var t=_k();ta(t,()=>R(n).introductionDisclaimer,!0),D(t),L(()=>Oa(t,`--fly-in-id: ${R(a)?2:3};`)),V(e,t)};W(p,e=>{R(n).introductionDisclaimer&&e(m)}),D(o),L(()=>s=Ea(o,1,`start-page container`,null,s,{mounted:R(r)})),V(e,o),k()}J(yk,{},[],[],{mode:`open`});var bk=RegExp(`([\\p{Ll}\\d])(\\p{Lu})`,`gu`),xk=RegExp(`(\\p{Lu})([\\p{Lu}][\\p{Ll}])`,`gu`),Sk=RegExp(`(\\d)(\\p{Ll})`,`gu`),Ck=RegExp(`(\\p{L})(\\d)`,`gu`),wk=/[^\p{L}\d]+/giu,Tk=`$1\0$2`,Ek=``;function Dk(e,t){let n=e.trim();n=n.replace(bk,Tk).replace(xk,Tk),t?.separateNumbers&&(n=n.replace(Sk,Tk).replace(Ck,Tk)),n=n.replace(wk,`\0`);let r=0,i=n.length;for(;n.charAt(r)===`\0`;)r++;if(r===i)return[];for(;n.charAt(i-1)===`\0`;)i--;return n.slice(r,i).split(/\0/g)}function Ok(e,t){return Uk(e,t?.prefixCharacters)+Dk(e,t).map(zk(t?.locale)).join(t?.delimiter??` `)}function kk(e,t){let n=Uk(e,t?.prefixCharacters),r=zk(t?.locale),i=Bk(t?.locale),a=t?.mergeAmbiguousCharacters?Vk(r,i):Hk(r,i);return n+Dk(e,t).map((e,t)=>t===0?r(e):a(e,t)).join(t?.delimiter??``)}function Ak(e,t){let n=Uk(e,t?.prefixCharacters),r=zk(t?.locale),i=Bk(t?.locale),a=t?.mergeAmbiguousCharacters?Vk(r,i):Hk(r,i);return n+Dk(e,t).map(a).join(t?.delimiter??``)}function jk(e,t){let n=Uk(e,t?.prefixCharacters),r=zk(t?.locale),i=Bk(t?.locale);return n+Dk(e,t).map(Vk(r,i)).join(t?.delimiter??` `)}function Mk(e,t){return Uk(e,t?.prefixCharacters)+Dk(e,t).map(Bk(t?.locale)).join(t?.delimiter??`_`)}function Nk(e,t){return Ok(e,{delimiter:`.`,...t})}function Pk(e,t){return Ok(e,{delimiter:`-`,...t})}function Fk(e,t){return Ok(e,{delimiter:`/`,...t})}function Ik(e,t){let n=Uk(e,t?.prefixCharacters),r=zk(t?.locale),i=Vk(r,Bk(t?.locale));return n+Dk(e,t).map((e,t)=>t===0?i(e):r(e)).join(t?.delimiter??` `)}function Lk(e,t){return Ok(e,{delimiter:`_`,...t})}function Rk(e,t){return jk(e,{delimiter:`-`,...t})}function zk(e){return e===!1?e=>e.toLowerCase():t=>t.toLocaleLowerCase(e)}function Bk(e){return e===!1?e=>e.toUpperCase():t=>t.toLocaleUpperCase(e)}function Vk(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Hk(e,t){return(n,r)=>{let i=n[0];return(r>0&&i>=`0`&&i<=`9`?`_`+i:t(i))+e(n.slice(1))}}function Uk(e,t=Ek){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(t.includes(i))n+=i;else break}return n}function Wk(e,t){let n=``;for(let r of e)n+=Math.random()>.5?r.toLocaleUpperCase(t):r.toLocaleLowerCase(t);return n}function Gk(e,t){let n=``;for(let r of e){let e=r.toLocaleLowerCase(t);n+=r===e?r.toLocaleUpperCase(t):e}return n}var Kk=/\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i,qk=/[^\s:–—-]+|./g,Jk=/\s/,Yk=/.(?=[A-Z]|\..)/,Xk=/[A-Za-z0-9\u00C0-\u00FF]/;function Zk(e){for(var t=``,n;(n=qk.exec(e))!==null;){var r=n[0],i=n.index;if(!Yk.test(r)&&(!Kk.test(r)||i===0||i+r.length===e.length)&&(e.charAt(i+r.length)!==`:`||Jk.test(e.charAt(i+r.length+1)))){t+=r.replace(Xk,function(e){return e.toUpperCase()});continue}t+=r}return t}var Qk=kk,$k=jk,eA=Mk,tA=Nk,nA=Ok,rA=Ak,iA=Fk,aA=Ik,oA=Lk,sA=Rk,cA=Pk,lA=Wk,uA=Gk,dA=Zk,fA=e=>e.toUpperCase(),pA=(e,t)=>e.toLocaleUpperCase(t),mA=e=>e.toLowerCase(),hA=(e,t)=>e.toLocaleLowerCase(t),gA=e=>e.charAt(0).toLowerCase()+e.slice(1),_A=e=>e.charAt(0).toUpperCase()+e.slice(1),vA=e=>e===e.toUpperCase(),yA=e=>e===e.toLowerCase(),bA=class{};bA.camel=Qk,bA.capital=$k,bA.constant=eA,bA.dot=tA,bA.kebab=cA,bA.lower=mA,bA.lowerFirst=gA,bA.localeLower=hA,bA.localeUpper=pA,bA.no=nA,bA.pascal=rA,bA.path=iA,bA.sentence=aA,bA.snake=oA,bA.sponge=lA,bA.swap=uA,bA.title=dA,bA.train=sA,bA.upper=fA,bA.upperFirst=_A,bA.isUpper=vA,bA.isLower=yA;var xA=640,SA=1024,CA=null,wA=()=>{if(CA)return CA;if(!globalThis.document)return 16;let e=globalThis.document.querySelector(`:root`);return CA=Number(getComputedStyle(e).fontSize.slice(0,-2)),CA},TA=({minRem:e,maxRem:t})=>{let n=wA(),r=xA/n,i=SA/n,a=(t-e)/(i-r);return`clamp( ${e}rem, ${-r*a+e}rem + ${a*100}cqw, ${t}rem )`},EA=e=>typeof e==`string`?e:typeof e==`number`?String(e):typeof e==`object`?e.minRem===e.maxRem?`${e.minRem}rem`:TA(e):``,DA=(e,t,n,r=!1)=>{let i=``;return n.forEach(n=>{let a=t[n];r&&!a&&n===`borderWidth`&&(a=`0px`),r&&!a&&n===`borderColor`&&(a=`transparent`),a&&(i+=`--${cA(e)}-${cA(n)}:${EA(a)}; `)}),i},OA=(e,t)=>Object.entries(t).map(([t,n])=>`--${e}-${cA(t)}:${EA(n)}`).join(`; `)+`; `,kA=(e,t)=>{let n=``;return n+=DA(e,t,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`borderRadius`,`color`],!0),t.hover&&(n+=DA(`${e}-hover`,t.hover,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.focus&&(n+=DA(`${e}-focus`,t.focus,[`background`,`borderWidth`,`borderColor`,`boxShadow`,`color`])),t.custom&&(n+=OA(e,t.custom)),n},AA=(e,t)=>Object.entries(t).map(([t,n])=>`--color-${e}-${t}:${n}`).join(`; `)+`; `,jA=e=>`--font-family: ${e?.family||`inherit`};`,MA=(e,t={})=>`${t.root??`.chat-app`} {${jA(e.font)} ${Object.entries(e.colors).map(([e,t])=>AA(e,t)).join(``)} ${OA(`base`,e.base)} ${Object.entries(e.components).map(([e,t])=>kA(cA(e),t)).join(``)}};`;function NA(e,t){O(t,!0);let n=q(t,`css`,7),r=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`css`]),i=e=>{Qn(()=>{n()&&(e.innerHTML=n())})};var a={get css(){return n()},set css(e){n(e),A()}},o=B(),s=F(o),c=e=>{var t=B();pa(F(t),()=>`style`,!1,(e,t)=>{ga(e,e=>i?.(e)),qa(e,()=>({...r}))}),V(e,t)};return W(s,e=>{n()&&e(c)}),V(e,o),k(a)}J(NA,{css:{}},[],[],{mode:`open`});var PA=`@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.chat-app{--spacer-1:.0625rem;--spacer-2:.125rem;--spacer-3:.1875rem;--spacer-4:.25rem;--spacer-5:.3125rem;--spacer-6:.375rem;--spacer-8:.5rem;--spacer-10:.625rem;--spacer-12:.75rem;--spacer-16:1rem;--spacer-20:1.25rem;--spacer-24:1.5rem;--spacer-28:1.75rem;--spacer-32:2rem;--spacer-40:2.5rem;--spacer-48:3rem;--spacer-56:3.5rem;--spacer-64:4rem;--spacer-72:4.5rem;--spacer-80:5rem;--spacer-120:7.5rem;--spacer-r-8:clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12:clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16:clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20:clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24:clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28:clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32:clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40:clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48:clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56:clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64:clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80:clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96:clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120:clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration:.2s;--default-transition-timing-function:ease-in-out;--z-index-flyout:10000;--z-index-dialog:600;--z-index-loader:500;--z-index-reference-number:400;--z-index-footer:300;--z-index-header:200;--z-index-tooltip:100;--z-index-tooltip-hover:101;--z-index-local-overlay:10;--z-index-below:-10;--ease-out-quart:cubic-bezier(.165, .84, .44, 1);--ease-in-quart:cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart:cubic-bezier(.77, 0, .175, 1);--fly-in-id:0;--btn-padding-x:var(--spacer-r-20);--btn-padding-y:var(--spacer-r-8);--btn-icon-size:var(--spacer-24);--btn-submit-size:2.5em;--last-bot-message-min-height:0}.chat-app :where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow,none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.chat-app ::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:0 0}.chat-app ::-webkit-scrollbar-thumb{background-color:#0000004d;border-radius:4px;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:#0000004d transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app :hover::-webkit-scrollbar-thumb{visibility:visible}.chat-app :active::-webkit-scrollbar-thumb{visibility:visible}.chat-app :focus::-webkit-scrollbar-thumb{visibility:visible}.svg{width:var(--spacer-r-24);height:auto}.svg svg{width:100%;height:auto;display:block;overflow:visible}.toast{width:100%;padding:var(--spacer-r-20);align-items:center;gap:var(--spacer-16);border-width:var(--toast-border-width,1px);border-radius:var(--toast-border-radius);border-color:var(--toast-border-color,transparent);background:var(--toast-background);box-shadow:var(--toast-box-shadow);color:var(--toast-color);display:flex}.toast[data-type=success] svg{color:var(--toast-icon-success-color)}.toast[data-type=error] svg{color:var(--toast-icon-error-color)}.toast[data-type=warning] svg{color:var(--toast-icon-warning-color)}.toast[data-type=info] svg{color:var(--toast-icon-info-color)}.toast svg{width:var(--spacer-24)!important;height:var(--spacer-24)!important}ol[data-sonner-toaster=true]{border:var(--spacer-16) solid transparent;max-width:600px;width:100%!important}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{content:"";background-color:#0000;position:absolute;inset:0}.chat-app :where(.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}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.skip-link){width:0;height:0;color:var(--anchor-color);font-weight:700;font-size:var(--base-font-size-xs);position:absolute;overflow:hidden}.chat-app :where(.skip-link):focus-visible{width:auto;height:auto;position:static}.chat-app :where(.fly-in){--fly-in-id:0;--fly-in-duration:.4s;--fly-out-duration:.2s;--fly-in-delay:.3s;--fly-in-delay-additional:.1s;--fly-in-y:var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease, var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration);transform:translateY(0)}.chat-app :where(.truncate){text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden}.chat-app :where(.line-clamp){-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--6){-webkit-line-clamp:6}.chat-app :where(.container){width:100%;max-width:var(--container-max-width,1024px);padding-right:var(--spacer-16);padding-left:var(--spacer-16);margin:0 auto}@container chat-container (width>=640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (width>=768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){margin-bottom:var(--spacer-r-24);display:block}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-type:decimal;list-style-position:outside}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){padding-left:1em;position:relative}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{content:"•";font-size:.9em;position:absolute;top:0;left:0}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;background-color:var(--color-grey-700);background-color:var(--hr-color);border:none}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight,var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration,underline);text-decoration:var(--anchor-text-decoration,underline);text-underline-offset:var(--anchor-text-underline-offset,.15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container) :where(table){border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.text-container) :where(:first-child){margin-top:0}.chat-app :where(.text-container) :where(:last-child){margin-bottom:0}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}.chat-app :where(.display-contents){display:contents}.chat-app :where(.absolute){position:absolute!important}}@layer components{.btn{min-height:calc(var(--btn-padding-y) * 2 + var(--btn-icon-size));padding:var(--btn-padding-y) var(--btn-padding-x);align-items:center;gap:var(--spacer-r-8);font-size:var(--base-font-size-sm);line-height:var(--base-line-height-tight);text-align:left;transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function);border-style:solid;flex-wrap:nowrap;text-decoration:none;display:flex;position:relative}.btn>:where(.svg){width:var(--btn-icon-size)}.btn:disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.btn--primary{border-width:var(--btn-primary-border-width);border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color);background:var(--btn-primary-background);box-shadow:var(--btn-primary-box-shadow);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700)}.btn--primary:hover{border-width:var(--btn-primary-hover-border-width,var(--btn-primary-border-width));border-color:var(--btn-primary-hover-border-color,var(--btn-primary-border-color));background:var(--btn-primary-hover-background,var(--btn-primary-background));box-shadow:var(--btn-primary-hover-box-shadow,var(--btn-primary-box-shadow));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.btn--secondary{border-width:var(--btn-secondary-border-width);border-radius:var(--btn-secondary-border-radius,var(--btn-primary-border-radius));border-color:var(--btn-secondary-border-color);background:var(--btn-secondary-background);box-shadow:var(--btn-secondary-box-shadow);color:var(--btn-secondary-color);font-weight:var(--btn-secondary-font-weight,700)}.btn--secondary:hover{border-width:var(--btn-secondary-hover-border-width,var(--btn-secondary-border-width));border-color:var(--btn-secondary-hover-border-color,var(--btn-secondary-border-color));background:var(--btn-secondary-hover-background,var(--btn-secondary-background));box-shadow:var(--btn-secondary-hover-box-shadow,var(--btn-secondary-box-shadow));color:var(--btn-secondary-hover-color,var(--btn-secondary-color))}.btn--tertiary{border-width:var(--btn-tertiary-border-width);border-radius:var(--btn-tertiary-border-radius,var(--btn-primary-border-radius));border-color:var(--btn-tertiary-border-color);background:var(--btn-tertiary-background);box-shadow:var(--btn-tertiary-box-shadow);color:var(--btn-tertiary-color);font-weight:var(--btn-tertiary-font-weight,700)}.btn--tertiary:hover{border-width:var(--btn-tertiary-hover-border-width,var(--btn-tertiary-border-width));border-color:var(--btn-tertiary-hover-border-color,var(--btn-tertiary-border-color));background:var(--btn-tertiary-hover-background,var(--btn-tertiary-background));box-shadow:var(--btn-tertiary-hover-box-shadow,var(--btn-tertiary-box-shadow));color:var(--btn-tertiary-hover-color,var(--btn-tertiary-color))}.btn--square{--btn-padding-x:var(--btn-padding-y)}.btn--square:after{z-index:var(--z-index-local-overlay);content:"";background:0 0;position:absolute;inset:-.5em}.btn--square>:where(.svg){width:var(--btn-icon-size)}.btn--square>:where(.btn__label){padding-right:calc(var(--btn-padding-x) * 1.25);display:none}@container chat-container (width>=640px){.btn--square>:where(.btn__label){display:block}}.form__caption{margin-bottom:var(--spacer-32)}.form__fields{gap:var(--spacer-16);flex-direction:column;width:100%;display:flex}.form__item{gap:var(--spacer-5);flex-direction:column;width:100%;display:flex}.form__label{color:var(--label-color,inherit);font-weight:var(--label-font-weight,inherit);font-size:var(--base-font-size-sm)}.form__options{margin-top:var(--spacer-r-8);flex-direction:column;display:flex}.form__option{align-items:baseline;gap:var(--spacer-r-12);cursor:pointer;display:inline-flex}.form__option .form__option-input{clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.form__option:has(.form__option-input:focus-visible) :where(.radio,.checkbox){outline-color:var(--body-focus-color);outline-style:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.form__select{width:100%;position:relative}.form__select select{appearance:none;padding-right:var(--spacer-56)}.form__select-arrow{top:50%;right:var(--spacer-r-20);width:var(--spacer-r-24);height:var(--spacer-r-24);color:var(--anchor-color);pointer-events:none;position:absolute;transform:translateY(-50%)}.form__footer{margin-top:var(--spacer-40)}.chat-app{display:contents}.chat-app__container{height:100%;display:flex;overflow:hidden;transform:translateZ(0);container:chat-container/inline-size}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__container.chat-app__container--inline-layout-contained{height:90svh;scroll-margin-top:10svh}@media (width>=768px){.chat-app__container.chat-app__container--inline-layout-contained{height:100svh;scroll-margin-top:0}}.chat-app__main{overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden auto;container:chat-inner-container/inline-size}.chat-app__container--inline-layout .chat-app__main{overscroll-behavior-y:auto}.chat-app__loader-container{z-index:var(--z-index-loader);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.chat-app__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);background:var(--body-background);position:sticky;top:0}.chat-app__header--unsticked{position:relative}.chat-app__header-content{--btn-padding-x:var(--btn-padding-y);column-gap:var(--spacer-r-12);min-height:calc(var(--btn-padding-y) * 2 + var(--btn-icon-size) + var(--spacer-10) * 2);margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex;position:relative}.chat-app__header-content>:where(*){z-index:0;pointer-events:auto;position:relative}.chat-app__header-content:after{right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);content:"";border-bottom:1px solid #0000;transition:border-color .1s ease-in-out;position:absolute}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.chat-app__header-new-conversation{margin-right:auto;position:relative}@container chat-container (width>=640px){.chat-app__header-new-conversation .tooltip{display:none}}.chat-app__header--with-logo :where(.chat-app__header-content){margin-left:0}.chat-app__header--with-logo :where(.chat-app__header-new-conversation){margin-right:unset;margin-left:auto}.chat-app__header-logo{margin-right:auto}.chat-app__header-logo :where(svg){width:auto;height:var(--spacer-28)}.chat-app__body{flex-direction:column;flex-grow:1;width:100%;display:flex;position:relative}.chat-app__page-transition{flex-direction:column;flex-grow:1;width:100%;height:100%;display:flex}.chat-app__aside{--duration-in:.65s;--duration-out:.5s;visibility:hidden;width:0;transition-delay:0s, var(--duration-out);transition-duration:var(--duration-out), 0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart), linear;flex-grow:1;position:relative;top:0;bottom:0}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in), 0s;transition-timing-function:var(--ease-out-quart), linear}.chat-app__aside .tooltip{--background-color:var(--btn-secondary-hover-background)}.chat-app__aside-container{width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:relative;overflow-y:auto}.chat-app__container--inline-layout .chat-app__aside-container{overscroll-behavior-y:auto}.chat-app__aside-header,.chat-app__sheet-header{z-index:var(--z-index-header);flex-wrap:no-wrap;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);justify-content:space-between;align-items:center;gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color);display:flex;position:sticky;top:0}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);background:var(--aside-background-overlay);position:fixed;inset:0}.chat-app__sheet-content{z-index:var(--z-index-flyout);width:100%;max-width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:fixed;top:0;right:0;overflow-y:auto}.chat-app__container--inline-layout .chat-app__sheet-content{overscroll-behavior-y:auto}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:#0000}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}.chat-app__close-button{z-index:var(--z-index-flyout)}.chat-input{--chat-input-padding:calc(.5em + var(--chat-input-border-width));--chat-input-settings-transition-duration:.2s;--chat-input-disabling-transition-duration:.2s}@container chat-container (width>=640px){.chat-input{--chat-input-padding:calc(.75em + var(--chat-input-border-width))}}.chat-input{z-index:var(--z-index-local-overlay);position:relative}.chat-input__textarea{box-sizing:border-box;width:100%;max-height:6lh;padding:1em var(--spacer-64) 1em calc(var(--spacer-r-24) - var(--chat-input-border-width));color:var(--chat-input-color);resize:none;transition:padding var(--chat-input-settings-transition-duration) var(--default-transition-timing-function);background:0 0;border:0 solid #0000;grid-area:textarea;display:block}.chat-input__textarea:has(+.chat-input__buttons .chat-input__mic-button){padding-right:calc(2.5em + var(--spacer-64))}.chat-input__grid--has-settings .chat-input__textarea{padding-left:var(--spacer-8)}.chat-input__grid--settings-is-open .chat-input__textarea{padding-right:var(--spacer-r-16);padding-left:var(--spacer-r-16)}@container chat-container (width>=640px){.chat-input__textarea{padding:1.25em var(--spacer-80) 1.25em calc(var(--spacer-r-28) - var(--chat-input-border-width))}.chat-input__grid--has-settings .chat-input__textarea{padding-left:var(--spacer-8)}.chat-input__grid--settings-is-open .chat-input__textarea{padding-right:var(--spacer-r-28);padding-left:var(--spacer-r-28)}}.chat-input__textarea:focus,.chat-input__textarea:focus-visible{outline-color:#0000}.chat-input__grid{--disabled-translateY:var(--spacer-20);border-width:var(--chat-input-border-width);border-radius:var(--chat-input-border-radius);border-style:solid;border-color:var(--chat-input-border-color);background:var(--chat-input-background);box-shadow:var(--chat-input-box-shadow);transition:grid-template-rows var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), grid-template-columns var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), background var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), box-shadow var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), outline-color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-radius var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), opacity var(--chat-input-disabling-transition-duration) var(--default-transition-timing-function), transform var(--chat-input-disabling-transition-duration) var(--default-transition-timing-function);display:flex}.chat-input__grid:has(.chat-input__textarea:focus-visible){border-width:var(--chat-input-focus-border-width,var(--chat-input-border-width));border-radius:var(--chat-input-focus-border-radius,var(--chat-input-border-radius));border-color:var(--chat-input-focus-border-color,var(--chat-input-border-color));background:var(--chat-input-focus-background,var(--chat-input-background));box-shadow:var(--chat-input-focus-box-shadow,var(--chat-input-box-shadow));color:var(--chat-input-focus-color,var(--chat-input-color));outline-color:#0000}.chat-input__grid:hover{background:var(--chat-input-hover-background,var(--chat-input-background));box-shadow:var(--chat-input-hover-box-shadow,var(--chat-input-box-shadow))}.chat-input--disabled .chat-input__grid{transform:translateY(var(--disabled-translateY));opacity:0}.chat-input__grid--has-settings{--chat-input-settings-height:0px;grid-template-rows:1fr var(--chat-input-settings-height);grid-template-columns:var(--btn-submit-size) 1fr;grid-template-areas:"toggle textarea"".settings";width:100%;display:grid}@container chat-container (width>=640px){.chat-input__grid--has-settings{grid-template-columns:calc(var(--btn-submit-size) + var(--spacer-r-12)) 1fr}}.chat-input__grid--settings-is-open{grid-template-columns:0 1fr}.chat-input__submit-button,.chat-input__abort-button{--margin:.5em}.chat-input__open-settings-button{margin-left:var(--spacer-r-12)}.chat-input__buttons{right:var(--chat-input-padding);bottom:var(--chat-input-padding);pointer-events:none;align-items:center;gap:.5em;display:flex;position:absolute}.chat-input__buttons>*{pointer-events:auto}.chat-input__submit-button{width:var(--btn-submit-size);height:var(--btn-submit-size);border-width:var(--chat-input-submit-border-width,0px);border-radius:var(--chat-input-submit-border-radius);border-color:var(--chat-input-submit-border-color);background:var(--chat-input-submit-background);box-shadow:var(--chat-input-submit-box-shadow);color:var(--chat-input-submit-color);cursor:pointer;justify-content:center;align-items:center;transition-property:opacity,background-color,transform;transition-duration:.2s,.2s,.35s;transition-timing-function:ease;display:flex}.chat-input__submit-button:hover{border-width:var(--chat-input-submit-hover-border-width,var(--chat-input-submit-border-width));border-radius:var(--chat-input-submit-hover-border-radius,var(--chat-input-submit-border-radius));border-color:var(--chat-input-submit-hover-border-color,var(--chat-input-submit-border-color));background:var(--chat-input-submit-hover-background,var(--chat-input-submit-background));box-shadow:var(--chat-input-submit-hover-box-shadow,var(--chat-input-submit-box-shadow));color:var(--chat-input-submit-hover-color,var(--chat-input-submit-color))}.chat-input__submit-button path{stroke:currentColor;stroke-width:var(--chat-input-submit-stroke-width,1.5px)}@container chat-container (width>=640px){.chat-input__submit-button{--margin:.75em}}.chat-input__submit-button--deactivated{transform:scale(var(--chat-input-submit-deactivated-scale,.8));border-color:var(--chat-input-submit-deactivated-border-color,var(--chat-input-submit-border-color));background:var(--chat-input-submit-deactivated-background,var(--chat-input-submit-background));color:var(--chat-input-submit-deactivated-color,var(--chat-input-submit-color));cursor:not-allowed;opacity:var(--chat-input-submit-deactivated-opacity,.5)}.chat-input__submit-button--deactivated:hover{border-color:var(--chat-input-submit-deactivated-border-color,var(--chat-input-submit-border-color));background:var(--chat-input-submit-deactivated-background,var(--chat-input-submit-background));color:var(--chat-input-submit-deactivated-color,var(--chat-input-submit-color))}.chat-input__submit-icon,.chat-input__abort-icon{width:var(--spacer-20);height:var(--spacer-20);pointer-events:none}.chat-input__notification-wrapper{border-radius:var(--chat-input-notification-border-radius);position:relative;overflow:hidden}.chat-input__notification-animation-element{padding-bottom:var(--spacer-2)}.chat-input__notification{padding:var(--spacer-8);gap:var(--spacer-8);border-width:var(--chat-input-notification-border-width);border-radius:var(--chat-input-notification-border-radius);border-color:var(--chat-input-notification-border-color);background:var(--chat-input-notification-background);box-shadow:var(--chat-input-notification-box-shadow);color:var(--chat-input-notification-color);display:flex}.chat-input__notification-label{font-weight:700;font-size:var(--base-font-size-xs);padding-top:.175em;line-height:1.35}@container chat-inner-container (width>=640px){.chat-input__notification-label{font-size:var(--base-font-size-sm);padding-top:.125em}}.chat-input__notification-icon{width:var(--spacer-20);height:var(--spacer-20);flex-shrink:0}@container chat-inner-container (width>=640px){.chat-input__notification-icon{width:var(--spacer-24);height:var(--spacer-24)}}.chat-input__mic-button{border-radius:var(--chat-input-submit-border-radius);cursor:pointer;--mic-base-color:var(--color-grey-500);--mic-accent-color:var(--color-accent-500);background:0 0;border:none;justify-content:center;align-items:center;width:2.5em;height:2.5em;transition-property:background-color,color;transition-duration:.2s;transition-timing-function:ease;display:flex}.chat-input__mic-button:hover{background-color:var(--color-grey-100);--mic-base-color:var(--color-grey-700);--mic-accent-color:var(--color-accent-600)}.chat-input__mic-button--listening{background-color:var(--chat-input-notification-background);box-shadow:var(--chat-input-submit-box-shadow);--mic-base-color:#fff6;--mic-accent-color:white}.chat-input__mic-button--listening:hover{background-color:var(--color-highlight-600)}.chat-input__mic-button--error{color:var(--color-highlight-600)}.chat-input__settings{width:100%;padding:var(--chat-input-padding) var(--spacer-80) var(--chat-input-padding) var(--spacer-r-12);gap:var(--spacer-8);pointer-events:none;grid-area:settings;display:flex;position:absolute;bottom:0;left:0;overflow:hidden}@container chat-container (width>=640px){.chat-input__settings{padding-left:var(--spacer-r-20)}}.chat-input__grid--settings-is-open .chat-input__settings{pointer-events:auto;overflow:visible}.chat-input__settings-button{min-width:0;height:100%;padding-right:var(--spacer-4);padding-left:var(--spacer-4);transform:translate(calc(var(--spacer-48) * -1), 150%);border-radius:var(--chat-input-submit-border-radius);outline-offset:0;font-size:var(--base-font-size-xs);opacity:0;transition:transform var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), background var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), box-shadow var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), border-radius var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), color var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), opacity var(--chat-input-settings-transition-duration) calc(var(--chat-input-settings-transition-duration) / 3) var(--default-transition-timing-function);flex-shrink:1;flex-basis:auto;gap:3px}@container chat-inner-container (width>=768px){.chat-input__settings-button{padding-right:var(--spacer-12);padding-left:var(--spacer-8)}}.chat-input__settings-button:disabled{transform:translate(calc(var(--spacer-48) * 1), 150%);opacity:0}.chat-input__grid--settings-is-open .chat-input__settings-button{transform:translateX(calc(var(--spacer-4) * -1));opacity:1}.chat-input__settings-button[data-has-error=true]{border-color:var(--chat-input-notification-border-color)!important;background:var(--chat-input-notification-background)!important;color:var(--chat-input-notification-color)!important}@container chat-inner-container (width>=640px){.chat-input__settings-button .tooltip{display:none}}.chat-input__toggle-area{grid-area:toggle;justify-content:center;place-self:center;align-items:center;width:100%;height:100%;display:flex}.chat-input__grid--settings-is-open .chat-input__toggle-area{overflow:hidden}.chat-input__settings-toggle-button{width:var(--btn-submit-size);height:var(--btn-submit-size);margin-left:var(--spacer-r-8);border-radius:var(--chat-input-submit-border-radius);outline-offset:0;opacity:1;transition:transform var(--chat-input-settings-transition-duration) var(--default-transition-timing-function), opacity var(--chat-input-settings-transition-duration) calc(var(--chat-input-settings-transition-duration) / 3) var(--default-transition-timing-function)}.chat-input__grid--settings-is-open .chat-input__settings-toggle-button{opacity:0;transform:translate(-100%)}.chat-input__settings-toggle-button .svg{flex-shrink:0}.chat-input__settings-button-icon:not(.svg--settingsClose){flex-shrink:0;display:block}@container chat-inner-container (width>=640px){.chat-input__settings-button-icon:not(.svg--settingsClose){display:none}}@container chat-inner-container (width>=768px){.chat-input__settings-button-icon:not(.svg--settingsClose){display:block}}.chat-input__settings-button-label{display:none}@container chat-inner-container (width>=640px){.chat-input__settings-button-label{text-overflow:ellipsis;white-space:nowrap;max-width:20ch;display:block;overflow:hidden}}@container chat-inner-container (width>=1024px){.chat-input__settings-button-label{max-width:40ch}}.chat-input__settings-button-label-name{display:none}@container chat-inner-container (width>=1024px){.chat-input__settings-button-label-name{display:inline}}.chat-input__settings-button-chevron{width:var(--spacer-10);height:var(--spacer-10);transition:transform .2s var(--default-transition-timing-function);flex-shrink:0}[data-state=open]>.chat-input__settings-button-chevron{transform:rotate(180deg)}.checkbox{--size:1em;width:var(--size);height:var(--size);border-width:var(--checkbox-border-width);border-radius:var(--checkbox-border-radius);border-color:var(--checkbox-border-color);background:var(--checkbox-background);box-shadow:var(--checkbox-box-shadow);color:var(--checkbox-color);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;top:.1em}.checkbox[data-checked=true]{border-color:var(--checkbox-checked-border-color);background:var(--checkbox-checked-background);color:var(--checkbox-checked-color)}.checkbox__icon{width:100%;height:100%;color:var(--color-background);opacity:1;transition:opacity .2s}.checkbox[data-checked=false] .checkbox__icon{opacity:0}.classification-feedback{margin-bottom:var(--spacer-16);gap:var(--spacer-16);border-width:var(--message-user-border-width);border-radius:var(--message-user-border-radius);border-color:var(--message-user-border-color);color:var(--message-user-color);flex-direction:column;display:flex}.classification-feedback__item{gap:var(--spacer-4);border:none;flex-direction:column;margin:0;padding:0;display:flex}.classification-feedback__label{margin-bottom:var(--spacer-8)}.classification-feedback__option{padding-left:var(--spacer-16);align-items:center;gap:var(--spacer-12);display:flex}.classification-feedback__option:has(input:checked){background:var(--btn-secondary-hover-background);color:var(--btn-secondary-hover-color)}.classification-feedback__option:has(input:focus-visible){border-radius:var(--spacer-8);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3)}.classification-feedback__option:has(input:focus-visible) input{outline:none}.radio{--size:1em;width:var(--size);height:var(--size);border-width:var(--radio-border-width);border-color:var(--radio-border-color);background:var(--radio-background);box-shadow:var(--radio-box-shadow);color:var(--radio-color);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative;top:.1em}.radio[data-checked=true]{border-color:var(--radio-checked-border-color);background:var(--radio-checked-background);color:var(--radio-checked-color)}.radio__indicator{--size:50%;--scale:0;width:var(--size);height:var(--size);transform:scale(var(--scale)) translate(-50%, -50%);opacity:0;background:currentColor;border-radius:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%}.radio[data-checked=true] .radio__indicator{--scale:1;opacity:1}.context-box{z-index:var(--z-index-flyout);position:relative}.context-box__content{--context-box-side-padding:var(--spacer-r-12);z-index:var(--z-index-local-overlay);width:calc(100cqw - var(--spacer-24));border-width:var(--context-box-border-width);border-radius:var(--context-box-border-radius);border-style:solid;border-color:var(--context-box-border-color);background:var(--context-box-background);max-width:300px;box-shadow:var(--context-box-box-shadow);color:var(--context-box-color);font-size:var(--base-font-size-sm)}.context-box__content:focus-visible{outline:none}.context-box__menu{padding:var(--context-box-side-padding);gap:var(--spacer-1);flex-direction:column;display:flex}.context-box__menu--scrollable{max-height:38vh;padding-right:var(--spacer-r-20);grid-template-columns:repeat(1,minmax(280px,10cqw));display:grid;overflow-y:auto}@container chat-inner-container (width>=480px){.context-box__menu--two-cols{column-gap:var(--spacer-r-20);grid-template-columns:repeat(2,minmax(180px,42cqw));display:grid}}@container chat-inner-container (width>=768px){.context-box__menu--three-cols{grid-template-columns:repeat(3,minmax(160px,25cqw))}}.context-box__menu-item{width:100%;padding:var(--spacer-4) var(--spacer-8);align-items:center;gap:var(--spacer-8);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-menu-item-background);color:var(--context-box-menu-item-color);cursor:pointer;display:flex;position:relative}.context-box__menu-item:hover{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}.context-box__menu-item:focus{z-index:var(--z-index-local-overlay)}.context-box__menu-item.active{background:var(--context-box-menu-item-active-background);color:var(--context-box-menu-item-active-color)}.context-box__menu-item--option{align-items:baseline}.context-box__menu-item__icon{width:var(--spacer-20);height:var(--spacer-20);color:currentColor}.context-box__title{padding:calc(var(--context-box-side-padding) * 1.5) var(--context-box-side-padding) 0 var(--context-box-side-padding);color:var(--context-box-title-color);font-weight:var(--context-box-title-font-weight);font-size:var(--base-font-size-xs)}.context-box__header{min-width:200px;padding:var(--context-box-side-padding);padding-left:calc(var(--context-box-side-padding) + var(--spacer-8));justify-content:space-between;align-items:center;gap:var(--spacer-r-12);border-bottom:1px solid var(--context-box-separator-color);font-weight:var(--context-box-title-font-weight);font-size:var(--base-font-size-xs);text-wrap:balance;display:flex}.context-box__close-button{--btn-padding-y:var(--spacer-4);--btn-padding-x:var(--spacer-4);flex-shrink:0}.context-box__footer{--btn-padding-x-smaller:calc(var(--btn-padding-x) * .75);padding:calc(var(--context-box-side-padding) * .5) calc(var(--context-box-side-padding) + var(--spacer-8) - var(--btn-padding-x-smaller));border-top:1px solid var(--context-box-separator-color);flex-wrap:wrap;display:flex}.context-box__footer-item{padding-right:var(--btn-padding-x-smaller);padding-left:var(--btn-padding-x-smaller);font-size:var(--base-font-size-xs);cursor:pointer}.context-box__separator{border-top:1px solid var(--context-box-separator-color)}.context-box__language-translation{opacity:.5}.context-box__color-scheme-selector{flex-direction:row;align-items:stretch;display:flex}.context-box__color-scheme-selector-button{width:100%;margin:var(--context-box-side-padding);padding:var(--spacer-4) var(--spacer-8);justify-content:center;align-items:center;gap:var(--spacer-8);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-menu-item-background);color:var(--context-box-menu-item-color);cursor:pointer;display:flex}.context-box__color-scheme-selector-button:hover{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}.context-box__color-scheme-selector-separator{border-top:0;border-left:1px solid var(--context-box-separator-color);width:1px;height:auto;display:block}.context-box__color-scheme-selector-button--active{background:var(--context-box-menu-item-active-background);color:var(--context-box-menu-item-active-color)}.context-box__notification[data-type=error]{color:var(--context-box-error-color)}.context-box__popover-close{z-index:var(--z-index-local-overlay);top:var(--spacer-4);right:var(--spacer-4);clip:rect(0 0 0 0);width:1px;height:1px;padding:var(--spacer-4);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-background);color:var(--context-box-color);clip-path:inset(50%);cursor:pointer;border:none;position:absolute;overflow:hidden}.context-box__popover-close:focus-visible{clip:auto;clip-path:none;width:auto;height:auto;overflow:visible}.context-box__content--info{width:calc(100cqw - var(--spacer-32));max-width:600px;max-height:60cqh;padding:var(--spacer-r-32);position:relative;overflow:hidden scroll}.context-box__content--info :where(.text-container){flex-direction:column;align-items:flex-start;display:flex}[data-bits-floating-content-wrapper]{padding-right:1em}.context-box--dropdown{max-width:min(var(--container-max-width,1024px), 90cqw)}.context-box--dropdown :where(.context-box__content){width:auto;max-width:100%}.consent-page{padding-top:var(--spacer-r-40);padding-bottom:var(--spacer-r-40);justify-content:center;align-items:stretch;gap:var(--spacer-r-48);flex-direction:column;flex-grow:1;display:flex}.consent-page__introduction{text-align:center}.consent-page__disclaimer{font-size:var(--base-font-size-sm);text-align:center;text-wrap:balance}.consent-page__actions{justify-content:center;gap:var(--spacer-r-16);flex-wrap:wrap;display:flex}.chat-page{padding-top:var(--spacer-r-80);flex-direction:column;flex-grow:1;display:flex;position:relative}.chat-page__survey-portal:not(:empty){z-index:calc(var(--z-index-header) - 1);position:sticky;top:4rem}.chat-page__body{flex-direction:column;flex-grow:1;display:flex}.chat-page__messages{gap:var(--spacer-r-40);flex-direction:column;flex-grow:1;display:flex}.chat-page__footer{z-index:var(--z-index-footer);flex-direction:column;justify-content:flex-end;display:flex;position:sticky;bottom:0}.chat-page__footer--unsticked{position:relative}.chat-page__footer-content{padding-bottom:var(--spacer-r-8);gap:var(--spacer-r-8);border-width:var(--chat-footer-border-width);border-top-right-radius:var(--chat-footer-border-radius);border-top-left-radius:var(--chat-footer-border-radius);border-style:solid;border-color:var(--chat-footer-border-color);background:var(--chat-footer-background);box-shadow:var(--chat-footer-box-shadow);color:var(--chat-footer-color);flex-direction:column;display:flex;position:relative}.chat-page__footer-text{font-size:var(--base-font-size-xs);text-align:center;text-wrap:balance}.chat-page__footer-text :where(a){text-underline-offset:.15em;text-decoration:underline}.chat-page__buttons{padding-top:var(--spacer-80);padding-bottom:var(--spacer-40);align-self:center}.chat-page__give-feedback--disabled{opacity:0}.chat-page__scroll-to-bottom{opacity:1;position:absolute;top:0;left:50%;transform:translate(-50%,-150%)}.chat-page__scroll-to-bottom--hidden{transform:translate(-50%);opacity:0!important}.dialog-overlay{z-index:var(--z-index-dialog);background:var(--dialog-background-overlay);position:fixed;inset:0}.dialog-content{z-index:var(--z-index-dialog);width:calc(100% - var(--spacer-32));border-width:var(--dialog-border-width);border-radius:var(--dialog-border-radius);border-color:var(--dialog-border-color);background:var(--dialog-background);max-width:600px;max-height:90vh;box-shadow:var(--dialog-box-shadow,none);flex-direction:column;display:flex;position:fixed;top:50%;left:50%;overflow:clip;transform:translate(-50%,-50%)}.dialog-header{padding:var(--spacer-r-24);border-bottom-width:1px;border-bottom-color:var(--dialog-header-border-bottom-color,var(--dialog-border-color));font-weight:var(--dialog-header-font-weight,inherit);font-size:var(--dialog-header-font-size,inherit);justify-content:space-between;align-items:center;display:flex}.dialog-title{padding:0}.dialog-close{color:var(--anchor-color);justify-self:flex-end;margin-left:auto}.dialog-close:hover{color:var(--anchor-hover-color,var(--dialog-color))}.dialog-description{min-height:0;padding:var(--spacer-r-24);flex:1;overflow-y:auto}.dialog-footer{padding:var(--spacer-r-24);border-top-width:1px;border-top-color:var(--dialog-header-border-bottom-color,var(--dialog-border-color));background:var(--dialog-background);flex-shrink:0}.dialog-footer__actions{justify-content:flex-end;gap:var(--spacer-r-12);display:flex}:where(.flyout){z-index:var(--z-index-flyout);pointer-events:none;width:570px;max-width:100cqw;height:960px;max-height:100cqh;padding:10px;display:block;position:fixed;bottom:0;right:0}.flyout__backdrop{background-color:color-mix(in srgb, var(--flyout-backdrop-color,transparent) calc(var(--flyout-backdrop-opacity) * 100%), transparent);position:fixed;inset:0}.flyout__body{pointer-events:none;place-content:end flex-end;place-items:end;width:100%;height:100%;display:block;position:relative}.flyout__body:has(.flyout__content){pointer-events:auto}.flyout__content{width:100%;height:100%;display:block}.flyout__open-button{z-index:var(--z-index-local-overlay);pointer-events:auto;position:absolute;bottom:0;right:0}.flyout__content{filter:drop-shadow(0 0 8px #0003);border-radius:4px;overflow:clip}.flyout--defaults{right:var(--spacer-r-16);bottom:var(--spacer-r-16);width:200px;height:200px;display:block;position:fixed}.introduction{justify-content:center;align-items:center;gap:var(--spacer-r-16);flex-direction:column;display:flex}.introduction__avatar{width:var(--spacer-r-80);height:var(--spacer-r-80)}.introduction__title{font-size:var(--base-font-size-h3);text-align:center;text-wrap:balance}.introduction-disclaimer{margin-top:var(--spacer-r-32);font-size:var(--base-font-size-sm)}.message{min-height:0;transition:min-height 0 1.1s;display:flex}.message:last-child{min-height:var(--last-bot-message-min-height)}.message--bot{justify-content:flex-start;width:100%}.message--user:first-child+.message--bot{min-height:0}.message--bot :where(.message__content){width:100%}.message--user{justify-content:flex-end}.message--user :where(.message__content){padding:var(--spacer-8) var(--spacer-16);border-width:var(--message-user-border-width);border-radius:var(--message-user-border-radius);border-color:var(--message-user-border-color);background:var(--message-user-background);box-shadow:var(--message-user-box-shadow);color:var(--message-user-color)}.message--no-padding{padding:0 var(--spacer-16)}.open-button{--open-button-avatar-height:var(--spacer-r-80);--open-button-avatar-width:var(--spacer-r-80);--open-button-duration:.4s;--open-button-delay:.3s;--open-button-ease:ease-in-out;cursor:pointer;flex-direction:row;align-items:flex-end;transition:opacity .15s ease-out;display:flex}.open-button--expanded{opacity:0;pointer-events:none}.open-button__text{margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);flex-direction:column;justify-content:center;align-items:flex-start;padding-left:0;display:flex;position:absolute;bottom:50%;right:100%;overflow:hidden;transform:translateY(50%);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__text{background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);transform:translateY(0)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);white-space:pre;font-weight:700}.open-button__mask{width:0;height:0;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), height var(--open-button-duration) var(--open-button-ease);overflow:hidden}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease), height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance;position:relative}.open-button__avatar{z-index:var(--z-index-local-overlay);width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);border-radius:var(--spacer-r-80);filter:drop-shadow(0 4px 6px #00000026);transition:transform .2s var(--open-button-ease);position:relative;overflow:clip}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color);display:none;position:absolute;right:0}:where(.open-button--standalone){right:var(--spacer-r-16);bottom:var(--spacer-r-16);position:fixed}@media (prefers-reduced-motion:reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}.open-button--hide-title-when-collapsed .open-button__text{visibility:hidden;opacity:0;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), visibility 0s linear calc(var(--open-button-duration) + var(--open-button-delay))}.open-button--hide-title-when-collapsed:is(:hover,.open-button--programmatic-expand) .open-button__text{visibility:visible;background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-ease), visibility 0s linear 0s;transform:translateY(0)}.predefined-question{width:100%;height:100%;padding:var(--spacer-r-20);gap:var(--spacer-r-12);border-width:var(--card-border-width);border-radius:var(--card-border-radius);border-color:var(--card-border-color);background:var(--card-background);box-shadow:var(--card-box-shadow,none);color:var(--card-color);line-height:var(--base-line-height-snug);text-align:left;cursor:pointer;flex-direction:column;display:flex;position:relative}.predefined-question:hover{border-width:var(--card-hover-border-width,var(--card-border-width));border-radius:var(--card-hover-border-radius,var(--card-border-radius));border-color:var(--card-hover-border-color,var(--card-border-color));background:var(--card-hover-background,var(--card-background));box-shadow:var(--card-hover-box-shadow,var(--card-box-shadow), none);color:var(--card-hover-color,var(--card-color))}.predefined-question:hover :where(.predefined-question__icon){color:var(--card-icon-hover-color)}.predefined-question:focus{z-index:var(--z-index-local-overlay)}@container chat-container (width>=640px){.predefined-question{padding:var(--spacer-r-24)}}.predefined-question__icon{color:var(--card-icon-color)}.predefined-questions{gap:var(--spacer-r-12);width:100%;display:grid}@container chat-container (width>=640px){.predefined-questions{grid-template-columns:repeat(3,1fr)}.predefined-questions:has(>li:only-child){grid-template-columns:1fr}.predefined-questions:has(>li:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}}.predefined-questions--pii-padding{transform:translateY(var(--spacer-56))}.reference-number{display:inline-block;position:relative}.reference-number__trigger{box-sizing:border-box;min-width:1.5em;height:1.5em;padding:var(--reference-number-trigger-padding);border-width:var(--reference-number-trigger-border-width);border-radius:var(--reference-number-trigger-border-radius);border-color:var(--reference-number-trigger-border-color);background:var(--reference-number-trigger-background);box-shadow:var(--reference-number-trigger-box-shadow);color:var(--reference-number-trigger-color);font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-xs);text-align:center;cursor:pointer;margin:0 .1em;line-height:1;text-decoration:none;display:inline-block;position:relative;top:-.1em}.reference-number__trigger:hover{background:var(--reference-number-trigger-hover-background);color:var(--reference-number-trigger-hover-color)}.reference-number__trigger:after{z-index:var(--z-index-local-overlay);content:"";background:0 0;position:absolute;inset:-.5em}.reference-number__content-wrapper{z-index:var(--z-index-reference-number);width:var(--reference-number-content-width);max-width:var(--reference-number-content-max-width);position:absolute}.reference-number__content{padding:var(--spacer-r-20);border-width:var(--reference-number-content-border-width);border-radius:var(--reference-number-content-border-radius);border-style:solid;border-color:var(--reference-number-content-border-color);background:var(--reference-number-content-background);box-shadow:var(--reference-number-content-box-shadow);display:block}.reference-number__content:hover{border-width:var(--reference-number-content-hover-border-width,var(--reference-number-content-border-width));border-color:var(--reference-number-content-hover-border-color,var(--reference-number-content-border-color));background:var(--reference-number-content-hover-background,var(--reference-number-content-background));color:var(--reference-number-content-hover-color,var(--reference-number-content-color));cursor:pointer}.reference-number__content:after{z-index:var(--z-index-local-overlay);content:"";background:0 0;position:absolute;inset:-.5em}.reference{padding:var(--spacer-12);gap:var(--spacer-12);border-width:var(--reference-border-width);border-radius:var(--reference-border-radius);border-color:var(--reference-border-color);background:var(--reference-background);box-shadow:var(--reference-box-shadow);color:var(--reference-color);cursor:pointer;display:flex}.reference:hover{border-width:var(--reference-hover-border-width,var(--reference-border-width));border-color:var(--reference-hover-border-color,var(--reference-border-color));background:var(--reference-hover-background,var(--reference-background));box-shadow:var(--reference-hover-box-shadow,var(--reference-box-shadow), none);color:var(--reference-hover-color,var(--reference-color))}.reference__number{min-width:1.5em;height:1.5em;margin-top:var(--spacer-1);padding:var(--reference-number-padding);border-width:var(--reference-number-border-width);border-radius:var(--reference-number-border-radius);border-color:var(--reference-number-border-color);background:var(--reference-number-background);box-shadow:var(--reference-number-box-shadow);color:var(--reference-number-color);font-weight:700;font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-xs);text-align:center;flex-shrink:0;line-height:1;display:block}@container chat-container (width>=640px){.reference__number{margin-top:calc(var(--spacer-1) * -1)}}a:hover .reference__number{border-width:var(--reference-number-hover-border-width,var(--reference-number-border-width));border-radius:var(--reference-number-hover-border-radius,var(--reference-number-border-radius));border-color:var(--reference-number-hover-border-color,var(--reference-number-border-color));background:var(--reference-number-hover-background,var(--reference-number-background));box-shadow:var(--reference-number-hover-box-shadow,var(--reference-number-box-shadow));color:var(--reference-number-hover-color,var(--reference-number-color))}.reference__header{justify-content:space-between;align-items:flex-start;gap:var(--spacer-12);width:100%;display:flex}.reference__title{font-size:var(--reference-font-size,var(--base-font-size-sm))}.reference__body{flex-direction:column;flex-grow:1;min-width:0;display:flex}.reference__icon{width:var(--spacer-20);color:var(--anchor-color);flex-shrink:0;position:relative}@media (hover:hover){.reference__icon{transform:translate(calc(var(--spacer-8) * -1), var(--spacer-8));opacity:0;transition:transform .2s ease-in-out,opacity .2s linear}}a:hover .reference__icon{opacity:1;transform:translate(0)}.reference__description{margin-top:var(--spacer-2);color:var(--reference-description-color);font-size:var(--base-font-size-sm)}a:hover .reference__description{color:var(--reference-description-hover-color)}.reference__footer{--footer-gap:var(--spacer-5);column-gap:var(--footer-gap);margin-top:var(--spacer-6);font-size:var(--base-font-size-xs);flex-wrap:wrap;display:flex}.reference__domain{max-width:100%;padding:var(--reference-domain-padding);border-width:var(--reference-domain-border-width);border-radius:var(--reference-domain-border-radius);border-color:var(--reference-domain-border-color);background:var(--reference-domain-background);box-shadow:var(--reference-domain-box-shadow);color:var(--reference-domain-color);font-weight:700;display:inline-flex}a:hover .reference__domain{border-width:var(--reference-domain-hover-border-width,var(--reference-domain-border-width));border-color:var(--reference-domain-hover-border-color,var(--reference-domain-border-color));background:var(--reference-domain-hover-background,var(--reference-domain-background));box-shadow:var(--reference-domain-hover-box-shadow,var(--reference-domain-box-shadow));color:var(--reference-domain-hover-color,var(--reference-domain-color))}.reference__breadcrumb{color:var(--reference-domain-color)}.reference__breadcrumb:before{padding-right:var(--footer-gap);content:"/";position:relative;top:-1px}a:hover .reference__breadcrumb{color:var(--reference-domain-hover-color,var(--reference-domain-color))}.references__container{--padding:var(--spacer-10);padding:var(--padding);flex-direction:column;display:flex}.references__transition{position:relative}.references__items{width:100%}.references__items :focus-within{z-index:var(--z-index-local-overlay);position:relative}.references__further{margin-top:var(--padding);margin-right:calc(var(--padding) * -1);margin-left:calc(var(--padding) * -1);border-top:1px solid var(--base-line-color)}.references__further :where(.references__container){scroll-margin-top:140px}.references__further :where(.reference){padding-left:var(--spacer-16)}.references__toggle{width:100%;padding:var(--spacer-20) var(--spacer-20) var(--spacer-20) var(--spacer-24);justify-content:space-between;align-items:center;gap:var(--spacer-8);border-width:var(--references-toggle-border-width);border-radius:var(--references-toggle-border-radius);border-color:var(--references-toggle-border-color);background:var(--references-toggle-background);box-shadow:var(--references-toggle-box-shadow);color:var(--references-toggle-color);font-weight:var(--references-toggle-font-weight,var(--base-font-weight-bold));font-size:var(--references-toggle-font-size,var(--base-font-size-sm));display:flex}.references__toggle:hover{border-color:var(--references-toggle-hover-border-color);background:var(--references-toggle-hover-background);box-shadow:var(--references-toggle-hover-box-shadow);color:var(--references-toggle-hover-color)}.references__toggle[data-state=open] :where(.references__toggle-icon){transform:rotate(180deg)}.references__toggle-icon{width:var(--spacer-24);transition:transform .2s}.references--inline :where(.references__container){--padding:0}.references--inline :where(.references__further){margin-top:var(--spacer-16)}.references--inline :where(.references__further .reference){padding-left:var(--spacer-12)}.references--inline :where(.references__toggle){padding-inline:var(--spacer-12)}.jsonld-references{margin-top:var(--spacer-r-20);gap:var(--spacer-r-20);display:grid}@keyframes jsonld-fly-in{0%{transform:translateY(var(--jsonld-item-y,30px));opacity:0}to{opacity:1;transform:none}}.jsonld-references__item{min-width:0;animation:jsonld-fly-in var(--jsonld-item-duration,.3s) cubic-bezier(.165, .84, .44, 1) both;animation-delay:var(--jsonld-item-delay,0s);display:flex}.jsonld-references__item--preloading{visibility:hidden;pointer-events:none;width:400px;animation:none;position:absolute;left:-9999px}.jsonld-card{padding:var(--spacer-r-24);gap:var(--spacer-r-16);border-style:solid;flex-direction:column;flex:1;display:flex}.jsonld-card--map{--jsonld-card-radius:var(--message-json-ld-map-border-radius);border-width:var(--message-json-ld-map-border-width);border-radius:var(--message-json-ld-map-border-radius);border-color:var(--message-json-ld-map-border-color);background:var(--message-json-ld-map-background);box-shadow:var(--message-json-ld-map-box-shadow);color:var(--message-json-ld-map-color)}.jsonld-card--event{--jsonld-card-radius:var(--message-json-ld-event-border-radius);border-width:var(--message-json-ld-event-border-width);border-radius:var(--message-json-ld-event-border-radius);border-color:var(--message-json-ld-event-border-color);background:var(--message-json-ld-event-background);box-shadow:var(--message-json-ld-event-box-shadow);color:var(--message-json-ld-event-color)}.jsonld-card--cta{--jsonld-card-radius:var(--message-json-ld-cta-border-radius);border-width:var(--message-json-ld-cta-border-width);border-radius:var(--message-json-ld-cta-border-radius);border-color:var(--message-json-ld-cta-border-color);background:var(--message-json-ld-cta-background);box-shadow:var(--message-json-ld-cta-box-shadow);color:var(--message-json-ld-cta-color)}.jsonld-card__header{align-items:flex-start;min-width:0;display:flex}.jsonld-card__title{min-width:0;font-size:var(--base-font-size-h3);line-height:var(--base-line-height-tight);word-break:break-word;margin:0}.jsonld-card__meta{column-gap:var(--spacer-8);row-gap:var(--spacer-4);font-size:var(--base-font-size-sm);grid-template-columns:max-content 1fr;align-items:baseline;margin:0;display:grid}.jsonld-card__meta-label{padding-right:var(--spacer-12);font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-xs);line-height:var(--base-line-height-snug);letter-spacing:.04em;text-transform:uppercase}.jsonld-card__meta-value{line-height:var(--base-line-height-snug);white-space:pre-line;margin:0}.jsonld-card__event-date{gap:var(--spacer-2);flex-direction:column;display:flex}.jsonld-card__event-time{opacity:.7}.jsonld-card__description{margin-bottom:var(--spacer-6);font-size:var(--base-font-size-sm);line-height:var(--base-line-height-default);opacity:.9}.jsonld-card__address{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-snug);white-space:pre-line;margin:0}.jsonld-card__cta{border-width:var(--btn-primary-border-width);border-radius:var(--btn-primary-border-radius);border-color:var(--btn-primary-border-color);background:var(--btn-primary-background);box-shadow:var(--btn-primary-box-shadow);color:var(--btn-primary-color);font-weight:var(--btn-primary-font-weight,700);align-self:flex-start;text-decoration:none}.jsonld-card__cta:hover{border-width:var(--btn-primary-hover-border-width,var(--btn-primary-border-width));border-color:var(--btn-primary-hover-border-color,var(--btn-primary-border-color));background:var(--btn-primary-hover-background,var(--btn-primary-background));box-shadow:var(--btn-primary-hover-box-shadow,var(--btn-primary-box-shadow));color:var(--btn-primary-hover-color,var(--btn-primary-color))}.jsonld-card__cta-icon{width:var(--spacer-16);height:var(--spacer-16);flex-shrink:0}.jsonld-card__actions{align-items:center;gap:var(--spacer-12);flex-wrap:wrap;display:flex}.jsonld-card__link{align-items:center;gap:var(--spacer-6);color:var(--anchor-color,currentColor);font-weight:var(--base-font-weight-bold);font-size:var(--base-font-size-sm);display:inline-flex}.jsonld-card__link:hover{text-decoration:underline}.jsonld-card__map-frame{aspect-ratio:16/9;border:1px solid color-mix(in srgb, currentColor 10%, transparent);border-radius:calc(var(--jsonld-card-radius) * .7);background:color-mix(in srgb, currentColor 6%, transparent);width:100%;position:relative;overflow:hidden}.jsonld-card__map-canvas,.jsonld-card__map-frame .maplibregl-map{width:100%;height:100%;position:absolute;inset:0}.jsonld-card__map-frame .maplibregl-ctrl-attrib,.jsonld-card__map-frame .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-canvas{border-radius:0}.selected-topic{z-index:-10;position:relative}.selected-topic__animation-container--hidden{transform:translateY(-100%)}.selected-topic__container{align-items:stretch;gap:var(--selected-topic-separator-width);border:var(--selected-topic-border-width) solid var(--selected-topic-border-color);border-radius:var(--selected-topic-border-radius) var(--selected-topic-border-radius) 0 0;background-color:var(--selected-topic-border-color);width:fit-content;font-size:var(--base-font-size-xs);flex-wrap:wrap;margin-inline:auto;display:flex;overflow:hidden}.selected-topic__label,.selected-topic__btn{padding:var(--selected-topic-padding);background-color:var(--selected-topic-background);font-weight:var(--base-font-weight-bold);text-align:center;flex-grow:1}.selected-topic__label{justify-content:center;align-items:center;gap:var(--selected-topic-label-gap);color:var(--selected-topic-color);font-size:var(--base-font-size-xs);line-height:var(--base-line-height-default);display:flex}.selected-topic__label-complement{display:none}@container chat-container (width>=640px){.selected-topic__label-complement{display:block}}.selected-topic__btn{color:var(--selected-topic-btn-color);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,box-shadow,transform,translate,opacity;transition-timing-function:var(--default-transition-timing-function)}.selected-topic__btn:hover{color:var(--selected-topic-btn-hover-color)}.start-page{padding-top:var(--spacer-r-40);padding-bottom:var(--spacer-r-40);flex-direction:column;flex-grow:1;justify-content:center;align-items:stretch;display:flex}.start-page__introduction{margin-bottom:var(--spacer-r-48)}.start-page__chat-input{width:100%;margin-bottom:var(--spacer-r-32)}.tooltip-container{z-index:var(--z-index-tooltip);position:relative}.tooltip-container:hover{z-index:var(--z-index-tooltip-hover)}.tooltip{--background-color:var(--tooltip-background);z-index:var(--z-index-tooltip);padding:var(--spacer-3) var(--spacer-8);border-radius:var(--tooltip-border-radius);background:var(--background-color);color:var(--tooltip-color);font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-xs);white-space:nowrap;opacity:1;transition:opacity .15s cubic-bezier(.33,1,.68,1),transform .15s cubic-bezier(.33,1,.68,1);position:absolute;transform:translateY(0)}.tooltip:after{content:"";border-style:solid;border-width:5px;position:absolute}.tooltip-top:after{bottom:-10px;left:calc(50% + var(--tooltip-arrow-offset,0px));border-color:var(--background-color) transparent transparent transparent;transform:translate(-50%)}.tooltip-bottom:after{top:-10px;left:calc(50% + var(--tooltip-arrow-offset,0px));border-color:transparent transparent var(--background-color) transparent;transform:translate(-50%)}.tooltip-left:after{border-color:transparent var(--background-color) transparent transparent;top:50%;right:-10px;transform:translateY(-50%)}.tooltip-right:after{border-color:transparent transparent transparent var(--background-color);top:50%;left:-10px;transform:translateY(-50%)}.tooltip-bottom-right:after{border-color:transparent transparent var(--background-color) transparent;top:-10px;left:80%;transform:translate(-50%)}.tooltip-bottom-left:after{border-color:transparent transparent var(--background-color) transparent;top:-10px;left:20px;transform:translate(-50%)}.tooltip-hidden{opacity:0;pointer-events:none;transform:translateY(1rem)}.context-box.open .tooltip{display:none}.mic-icon{justify-content:center;align-items:center;height:1.5rem;display:flex;position:relative}.mic-icon .svg{width:inherit}.audio-level-mic-svg{width:1.5rem;height:1.5rem}.embed-combobox{--embed-combobox-side-offset:10px;align-items:start;gap:var(--spacer-r-32);flex-direction:column;display:flex}.embed-combobox__container{transition:opacity .3s linear}.embed-combobox__container--hidden{opacity:0;height:0}.embed-combobox__combobox{border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);background:var(--input-background);align-items:stretch;width:100%;min-width:min(14rem,100%);max-width:500px;display:inline-flex;position:relative}.embed-combobox__combobox:has(:focus-visible:not([data-disabled])){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:solid;outline-width:var(--spacer-3);outline-offset:var(--spacer-2)}.embed-combobox__no-result{margin-top:var(--spacer-r-12);margin-bottom:var(--spacer-12);padding:var(--spacer-4) var(--spacer-8)}[data-combobox-input]{width:100%;min-width:0;padding:var(--input-padding);padding-right:var(--spacer-r-64);color:var(--input-color);background:0 0;outline:none}[data-combobox-input]::placeholder{color:var(--input-placeholder-color)}[data-combobox-trigger]{z-index:var(--z-index-local-overlay);aspect-ratio:1;border:0;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;right:0}[data-combobox-trigger] :where(.btn){border-radius:calc(var(--btn-tertiary-border-radius) * .75)}[data-combobox-trigger][data-state=open],[data-combobox-trigger]:hover,[data-combobox-trigger]:focus-visible{outline:none}:is([data-combobox-trigger][data-state=open],[data-combobox-trigger]:hover,[data-combobox-trigger]:focus-visible) :where(.btn){background:var(--btn-tertiary-hover-background);color:var(--btn-tertiary-hover-color)}[data-combobox-trigger][data-disabled],[data-combobox-input][data-disabled]{cursor:not-allowed;opacity:.5}[data-combobox-content]{z-index:var(--z-index-flyout);width:var(--bits-combobox-anchor-width);min-width:var(--bits-combobox-anchor-width);max-height:min(21rem, var(--bits-combobox-content-available-height));padding:0 var(--spacer-r-12);border-width:var(--context-box-border-width);border-radius:var(--context-box-border-radius);border-style:solid;border-color:var(--context-box-border-color);background:var(--context-box-background);box-shadow:var(--context-box-box-shadow);font-size:var(--base-font-size-sm);-webkit-user-select:none;user-select:none;position:relative;overflow:hidden}[data-combobox-viewport]{flex-direction:column;gap:1px;display:flex}[data-bits-floating-content-wrapper]{padding:0}[data-combobox-item]{padding:var(--spacer-4) var(--spacer-8);align-items:center;gap:.5rem;gap:var(--spacer-8);border-radius:var(--context-box-menu-item-border-radius);background:var(--context-box-menu-item-background);color:var(--context-box-menu-item-color);cursor:pointer;-webkit-user-select:none;user-select:none;grid-template-columns:1fr auto;transition:background .2s ease-in-out,color .2s ease-in-out;display:grid}[data-combobox-item]:first-of-type{margin-top:var(--spacer-r-12)}[data-combobox-item]:last-of-type{margin-bottom:var(--spacer-r-12)}[data-combobox-item][data-highlighted]{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}[data-combobox-item][data-selected]{background:var(--context-box-menu-item-active-background);color:var(--context-box-menu-item-active-color)}[data-combobox-item][data-disabled]{cursor:not-allowed;opacity:.5}[data-combobox-scroll-up-button],[data-combobox-scroll-down-button]{z-index:var(--z-index-local-overlay);padding:var(--spacer-4);background:linear-gradient(to bottom, var(--context-box-background), transparent);color:var(--context-box-menu-item-color);cursor:pointer;place-items:center;display:grid;position:absolute;top:0;left:0;right:0}:is([data-combobox-scroll-up-button],[data-combobox-scroll-down-button]):hover{background:var(--context-box-menu-item-hover-background);color:var(--context-box-menu-item-hover-color)}[data-combobox-scroll-down-button]{background:linear-gradient(to top, var(--context-box-background), transparent);top:auto;bottom:0}[data-combobox-scroll-down-button]:hover{background:var(--context-box-menu-item-hover-background)}.embed-buttons{align-items:start;gap:var(--spacer-r-16);flex-direction:column;display:flex}.embed-buttons__buttons{gap:var(--spacer-r-12);flex-wrap:wrap;display:flex}}@value container-xs, container-sm, container-md, container-lg, container-inner-xs, container-inner-sm, container-inner-md, container-inner-lg from "./viewports.css";.message__bot-layout{gap:var(--spacer-r-16);width:100%;display:flex}.message__bot-avatar{top:var(--spacer-80);width:var(--spacer-24);height:var(--spacer-24);margin-top:calc(var(--spacer-1) * -1);margin-bottom:var(--spacer-20);flex-shrink:0;display:none;position:sticky;overflow:clip}@container chat-container (width>=480px){.message__bot-avatar{display:block}}@container chat-container (width>=640px){.message__bot-avatar{width:var(--spacer-32);height:var(--spacer-32);margin-top:calc(var(--spacer-3) * -1);margin-bottom:var(--spacer-16)}}.svg--avatar--hide{visibility:hidden;height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}.message__content,.message__bot-body,.message__bot-options{min-width:0}.message__bot-body{width:100%}.message__bot-options{z-index:var(--z-index-local-overlay);column-gap:var(--spacer-20);row-gap:var(--spacer-8);margin-top:var(--spacer-24);padding-top:var(--spacer-12);border-top-width:var(--message-options-border-width);border-color:var(--message-options-border-color);flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}@container chat-container (width>=640px){.message__bot-options{margin-top:var(--spacer-32);margin-bottom:var(--spacer-20)}}.message__bot-options:has(>:only-child){justify-content:flex-end}.message__bot-references{--btn-padding-x:var(--btn-padding-y);column-gap:var(--spacer-8);margin-left:calc(var(--btn-padding-x) * -1);flex-wrap:wrap;flex-grow:1;align-items:center;display:flex}.message__bot-references :where(.btn__label){display:flex}.message__bot-references-inline{margin-top:var(--spacer-16)}.message__bot-actions{--btn-padding-x:var(--btn-padding-y);margin-right:calc(var(--btn-padding-x) * -1);display:flex;position:relative}@container chat-container (width>=640px){.message__bot-actions{gap:var(--spacer-8)}}.message__bot-action--active :where(.svg) path{fill:currentColor}.message__bot-loading{width:var(--spacer-16);height:var(--spacer-16);margin:0 var(--spacer-2);display:inline-block}`;function FA(e,{delay:t=0,duration:n=200,easing:r=e=>e,baseScale:i=0,transformOrigin:a=`bottom right`,scaleDirection:o=`scale`}={}){if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return{delay:0,duration:0,css:()=>`opacity: 1; transform: ${o}(1); transform-origin: ${a};`};let s=getComputedStyle(e),c=+s.opacity,l=s.transform.match(/scale[XY]?\(([0-9.]+)\)/),u=l?+l[1]:1,d=1-i;return{delay:t,duration:n,css:e=>{let t=r(e),n=t*u*d+i;return`opacity: ${t*c}; transform: ${o}(${n}); transform-origin: ${a};`}}}var IA=z(`<div class="loader-container svelte-6xtyn8"><svg width="40" height="40" viewBox="0 0 24 24"><circle cx="4" cy="12" r="3"><animate id="spinner_qFRN" begin="0;spinner_OcgL.end+0.25s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="12" cy="12" r="3"><animate begin="spinner_qFRN.begin+0.1s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle><circle cx="20" cy="12" r="3"><animate id="spinner_OcgL" begin="spinner_qFRN.begin+0.2s" attributeName="cy" calcMode="spline" dur="0.6s" values="12;6;12" keySplines=".33,.66,.66,1;.33,0,.66,.33"></animate></circle></svg></div>`),LA={hash:`svelte-6xtyn8`,code:`.loader-container.svelte-6xtyn8 {display:flex;z-index:var(--z-index-loader);position:absolute;top:0;right:0;bottom:0;left:0;align-items:center;justify-content:center;background-color:#fff;}`};function RA(e,t){O(t,!0),ha(e,LA);let n=q(t,`color`,7),r=q(t,`background`,7);var i={get color(){return n()},set color(e){n(e),A()},get background(){return r()},set background(e){r(e),A()}},a=IA(),o=P(a);return D(a),L(()=>{Oa(a,r()?`background: ${r()};`:``),K(o,`fill`,n()??`rgba(127, 127, 127, 0.3)`)}),V(e,a),k(i)}J(RA,{color:{},background:{}},[],[],{mode:`open`});var zA=`@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.chat-app{--spacer-1:.0625rem;--spacer-2:.125rem;--spacer-3:.1875rem;--spacer-4:.25rem;--spacer-5:.3125rem;--spacer-6:.375rem;--spacer-8:.5rem;--spacer-10:.625rem;--spacer-12:.75rem;--spacer-16:1rem;--spacer-20:1.25rem;--spacer-24:1.5rem;--spacer-28:1.75rem;--spacer-32:2rem;--spacer-40:2.5rem;--spacer-48:3rem;--spacer-56:3.5rem;--spacer-64:4rem;--spacer-72:4.5rem;--spacer-80:5rem;--spacer-120:7.5rem;--spacer-r-8:clamp(.375rem, .3182rem + .2841cqw, .5rem);--spacer-r-12:clamp(.625rem, .5682rem + .2841cqw, .75rem);--spacer-r-16:clamp(.75rem, .6364rem + .5682cqw, 1rem);--spacer-r-20:clamp(.875rem, .7045rem + .8523cqw, 1.25rem);--spacer-r-24:clamp(1rem, .7727rem + 1.1364cqw, 1.5rem);--spacer-r-28:clamp(1.125rem, .8409rem + 1.4205cqw, 1.75rem);--spacer-r-32:clamp(1.25rem, .9091rem + 1.7045cqw, 2rem);--spacer-r-40:clamp(1.5rem, 1.0455rem + 2.2727cqw, 2.5rem);--spacer-r-48:clamp(1.625rem, 1rem + 3.125cqw, 3rem);--spacer-r-56:clamp(1.75rem, .9545rem + 3.9773cqw, 3.5rem);--spacer-r-64:clamp(2rem, 1.0909rem + 4.5455cqw, 4rem);--spacer-r-80:clamp(3rem, 2.0909rem + 4.5455cqw, 5rem);--spacer-r-96:clamp(3.5rem, 2.3636rem + 5.6818cqw, 6rem);--spacer-r-120:clamp(4rem, 2.4091rem + 7.9545cqw, 7.5rem);--default-transition-duration:.2s;--default-transition-timing-function:ease-in-out;--z-index-flyout:10000;--z-index-dialog:600;--z-index-loader:500;--z-index-reference-number:400;--z-index-footer:300;--z-index-header:200;--z-index-tooltip:100;--z-index-tooltip-hover:101;--z-index-local-overlay:10;--z-index-below:-10;--ease-out-quart:cubic-bezier(.165, .84, .44, 1);--ease-in-quart:cubic-bezier(.895, .03, .685, .22);--ease-in-out-quart:cubic-bezier(.77, 0, .175, 1);--fly-in-id:0;--btn-padding-x:var(--spacer-r-20);--btn-padding-y:var(--spacer-r-8);--btn-icon-size:var(--spacer-24);--btn-submit-size:2.5em;--last-bot-message-min-height:0}.chat-app :where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){font-weight:var(--base-font-weight-title);line-height:var(--base-line-height-tight)}.chat-app :where(b,strong){font-weight:var(--base-font-weight-bold)}.chat-app :where(button){cursor:pointer}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select){width:100%;padding:var(--input-padding);border-width:var(--input-border-width);border-radius:var(--input-border-radius);border-color:var(--input-border-color);background:var(--input-background);box-shadow:var(--input-box-shadow,none);color:var(--input-color)}.chat-app :where(input[type=text],input[type=email],input[type=search],input[type=password],textarea,select)::placeholder{color:var(--input-placeholder-color);opacity:var(--input-placeholder-opacity)}.chat-app :where(input[type=radio],input[type=checkbox]){margin:0}.chat-app :where(:focus-visible){border-radius:var(--btn-primary-border-radius);outline-color:var(--body-focus-color);outline-style:var(--body-focus-style);outline-width:var(--body-focus-width);outline-offset:var(--body-focus-offset)}.chat-app ::selection{background:var(--body-selection-background);color:var(--body-selection-color)}.chat-app ::-webkit-scrollbar{width:8px;height:8px}.chat-app ::-webkit-scrollbar-track{background:0 0}.chat-app ::-webkit-scrollbar-thumb{background-color:#0000004d;border-radius:4px;transition:background-color .2s}.chat-app ::-webkit-scrollbar-thumb:hover{background-color:#00000080}.chat-app *{scrollbar-color:#0000004d transparent;scrollbar-width:thin}.chat-app ::-webkit-scrollbar-thumb{visibility:hidden}.chat-app :hover::-webkit-scrollbar-thumb{visibility:visible}.chat-app :active::-webkit-scrollbar-thumb{visibility:visible}.chat-app :focus::-webkit-scrollbar-thumb{visibility:visible}.svg{width:var(--spacer-r-24);height:auto}.svg svg{width:100%;height:auto;display:block;overflow:visible}}@layer utilities{.chat-app :where(.expand-interaction){position:relative}.chat-app :where(.expand-interaction):after{content:"";background-color:#0000;position:absolute;inset:0}.chat-app :where(.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}.chat-app :where(.transition-colors){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,box-shadow;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.transition){transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.skip-link){width:0;height:0;color:var(--anchor-color);font-weight:700;font-size:var(--base-font-size-xs);position:absolute;overflow:hidden}.chat-app :where(.skip-link):focus-visible{width:auto;height:auto;position:static}.chat-app :where(.fly-in){--fly-in-id:0;--fly-in-duration:.4s;--fly-out-duration:.2s;--fly-in-delay:.3s;--fly-in-delay-additional:.1s;--fly-in-y:var(--spacer-r-64);transform:translateY(var(--fly-in-y));opacity:0;transition-delay:0s,1s;transition-duration:var(--fly-out-duration);transition-property:opacity,transform;transition-timing-function:ease, var(--ease-out-quart)}.chat-app :where(.mounted .fly-in){opacity:1;transition-delay:calc(var(--fly-in-delay) + var(--fly-in-id) * var(--fly-in-delay-additional));transition-duration:var(--fly-in-duration);transform:translateY(0)}.chat-app :where(.truncate){text-overflow:ellipsis;white-space:nowrap;display:inline-block;overflow:hidden}.chat-app :where(.line-clamp){-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-app :where(.line-clamp--2){-webkit-line-clamp:2}.chat-app :where(.line-clamp--6){-webkit-line-clamp:6}.chat-app :where(.container){width:100%;max-width:var(--container-max-width,1024px);padding-right:var(--spacer-16);padding-left:var(--spacer-16);margin:0 auto}@container chat-container (width>=640px){.chat-app :where(.container){padding-right:var(--spacer-32);padding-left:var(--spacer-32)}}@container chat-container (width>=768px){.chat-app :where(.container){padding-right:var(--spacer-48);padding-left:var(--spacer-48)}}.chat-app :where(h1){font-size:var(--base-font-size-h1)}.chat-app :where(h2){font-size:var(--base-font-size-h2)}.chat-app :where(h3){font-size:var(--base-font-size-h3)}.chat-app :where(h4,h5,h6){font-size:var(--body-font-size)}.chat-app :where(.h1){font-size:var(--base-font-size-h1)}.chat-app :where(.h2){font-size:var(--base-font-size-h2)}.chat-app :where(.h3){font-size:var(--base-font-size-h3)}.chat-app :where(.h4,.h5,.h6){font-size:var(--body-font-size)}.chat-app :where(.text-container)>:where(p,ul,ol,img,table){margin-bottom:var(--spacer-r-24);display:block}.chat-app :where(.text-container)>:where(div){margin:var(--spacer-r-40) 0}.chat-app :where(.text-container)>:where(h1,.h1){margin-bottom:var(--spacer-r-28)}.chat-app :where(.text-container)>:where(h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-bottom:var(--spacer-r-20)}.chat-app :where(.text-container)>:where(h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6){margin-top:var(--spacer-r-40)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li){margin-bottom:var(--spacer-12)}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling),ol:not(.no-list-styling))>:where(li):last-child{margin-bottom:0}.chat-app :where(.text-container)>:where(ol){padding-left:1.5em;list-style-type:decimal;list-style-position:outside}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li){padding-left:1em;position:relative}.chat-app :where(.text-container)>:where(ul:not(.no-list-styling))>:where(li):before{content:"•";font-size:.9em;position:absolute;top:0;left:0}.chat-app :where(.text-container)>:where(hr){height:1px;margin:var(--spacer-r-40) 0;background-color:var(--color-grey-700);background-color:var(--hr-color);border:none}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)){color:var(--anchor-color);font-weight:var(--anchor-font-weight,var(--base-font-weight-normal));-webkit-text-decoration:var(--anchor-text-decoration,underline);text-decoration:var(--anchor-text-decoration,underline);text-underline-offset:var(--anchor-text-underline-offset,.15em);transition-duration:var(--default-transition-duration);transition-property:color,background-color,border-color;transition-timing-function:var(--default-transition-timing-function)}.chat-app :where(.text-container) :where(a:not(.button,.no-link-styling,.reference)):hover{color:var(--anchor-hover-color)}.chat-app :where(.text-container) :where(table){border-collapse:collapse;border-spacing:0;-webkit-overflow-scrolling:touch;width:100%;display:block;overflow-x:auto}.chat-app :where(.text-container) :where(th){width:1000px;padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);line-height:var(--base-line-height-tight);text-align:left;vertical-align:bottom}.chat-app :where(.text-container) :where(td){padding:var(--spacer-12) var(--spacer-16) var(--spacer-12) 0;border-bottom:1px solid var(--color-grey-300);vertical-align:top}.chat-app :where(.text-container) :where(tr:last-child td){border-bottom:none}.chat-app :where(.text-container) :where(:first-child){margin-top:0}.chat-app :where(.text-container) :where(:last-child){margin-bottom:0}.chat-app :where(.animated-height){transition:height .5s var(--ease-in-out-quart)}.chat-app :where(.display-contents){display:contents}.chat-app :where(.absolute){position:absolute!important}}@layer components{.chat-app{display:contents}.chat-app__container{height:100%;display:flex;overflow:hidden;transform:translateZ(0);container:chat-container/inline-size}.chat-app__container>:where(*){color:var(--body-color);font-style:normal;font-weight:var(--base-font-weight-normal);font-size:var(--base-font-size-body);line-height:var(--base-line-height-default);font-family:var(--font-family);font-optical-sizing:auto}.chat-app__container.chat-app__container--inline-layout-contained{height:90svh;scroll-margin-top:10svh}@media (width>=768px){.chat-app__container.chat-app__container--inline-layout-contained{height:100svh;scroll-margin-top:0}}.chat-app__main{overscroll-behavior-x:none;overscroll-behavior-y:contain;background:var(--body-background);scrollbar-gutter:stable;touch-action:pan-y;flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden auto;container:chat-inner-container/inline-size}.chat-app__container--inline-layout .chat-app__main{overscroll-behavior-y:auto}.chat-app__loader-container{z-index:var(--z-index-loader);justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.chat-app__portals{display:contents}.chat-app__header{z-index:var(--z-index-header);background:var(--body-background);position:sticky;top:0}.chat-app__header--unsticked{position:relative}.chat-app__header-content{--btn-padding-x:var(--btn-padding-y);column-gap:var(--spacer-r-12);min-height:calc(var(--btn-padding-y) * 2 + var(--btn-icon-size) + var(--spacer-10) * 2);margin-right:calc(var(--btn-padding-x) * -1);margin-left:calc(var(--btn-padding-x) * -1);padding-top:var(--spacer-10);padding-bottom:var(--spacer-10);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex;position:relative}.chat-app__header-content>:where(*){z-index:0;pointer-events:auto;position:relative}.chat-app__header-content:after{right:var(--btn-padding-x);bottom:0;left:var(--btn-padding-x);content:"";border-bottom:1px solid #0000;transition:border-color .1s ease-in-out;position:absolute}.chat-app__header-content.has-border:after{border-color:var(--base-line-color)}.chat-app__header-new-conversation{margin-right:auto;position:relative}@container chat-container (width>=640px){.chat-app__header-new-conversation .tooltip{display:none}}.chat-app__header--with-logo :where(.chat-app__header-content){margin-left:0}.chat-app__header--with-logo :where(.chat-app__header-new-conversation){margin-right:unset;margin-left:auto}.chat-app__header-logo{margin-right:auto}.chat-app__header-logo :where(svg){width:auto;height:var(--spacer-28)}.chat-app__body{flex-direction:column;flex-grow:1;width:100%;display:flex;position:relative}.chat-app__page-transition{flex-direction:column;flex-grow:1;width:100%;height:100%;display:flex}.chat-app__aside{--duration-in:.65s;--duration-out:.5s;visibility:hidden;width:0;transition-delay:0s, var(--duration-out);transition-duration:var(--duration-out), 0s;transition-property:width,visibility;transition-timing-function:var(--ease-in-out-quart), linear;flex-grow:1;position:relative;top:0;bottom:0}.chat-app__aside.open{visibility:visible;width:var(--aside-width);transition-delay:0s;transition-duration:var(--duration-in), 0s;transition-timing-function:var(--ease-out-quart), linear}.chat-app__aside .tooltip{--background-color:var(--btn-secondary-hover-background)}.chat-app__aside-container{width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:relative;overflow-y:auto}.chat-app__container--inline-layout .chat-app__aside-container{overscroll-behavior-y:auto}.chat-app__aside-header,.chat-app__sheet-header{z-index:var(--z-index-header);flex-wrap:no-wrap;padding:var(--spacer-12) var(--spacer-12) var(--spacer-12) var(--spacer-24);justify-content:space-between;align-items:center;gap:var(--spacer-24);border-bottom-width:var(--aside-header-border-width);border-color:var(--aside-header-border-color);background:var(--aside-background);color:var(--aside-header-color);display:flex;position:sticky;top:0}.chat-app__sheet-close{position:relative}.chat-app__sheet-overlay{z-index:var(--z-index-dialog);background:var(--aside-background-overlay);position:fixed;inset:0}.chat-app__sheet-content{z-index:var(--z-index-flyout);width:100%;max-width:var(--aside-width);overscroll-behavior:contain;border-left-width:var(--aside-border-width);border-color:var(--aside-border-color);background:var(--aside-background);scrollbar-gutter:stable;height:100%;position:fixed;top:0;right:0;overflow-y:auto}.chat-app__container--inline-layout .chat-app__sheet-content{overscroll-behavior-y:auto}:is(.chat-app__aside-close,.chat-app__sheet-close) :where(.btn){background-color:#0000}.chat-app__aside-title,.chat-app__sheet-title{font-size:var(--base-font-size-sm)}.chat-app__close-button{z-index:var(--z-index-flyout)}.open-button{--open-button-avatar-height:var(--spacer-r-80);--open-button-avatar-width:var(--spacer-r-80);--open-button-duration:.4s;--open-button-delay:.3s;--open-button-ease:ease-in-out;cursor:pointer;flex-direction:row;align-items:flex-end;transition:opacity .15s ease-out;display:flex}.open-button--expanded{opacity:0;pointer-events:none}.open-button__text{margin-right:calc(var(--open-button-avatar-width) * -.5);padding-top:var(--spacer-r-12);padding-right:0;padding-bottom:var(--spacer-r-12);border-width:var(--open-button-border-width);border-radius:var(--open-button-border-radius);border-color:var(--open-button-border-color);background:var(--open-button-background);color:var(--open-button-color);text-align:left;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);flex-direction:column;justify-content:center;align-items:flex-start;padding-left:0;display:flex;position:absolute;bottom:50%;right:100%;overflow:hidden;transform:translateY(50%);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__text{background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease);transform:translateY(0)}.open-button__title{max-width:240px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);white-space:pre;font-weight:700}.open-button__mask{width:0;height:0;transition:width var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), height var(--open-button-duration) var(--open-button-ease);overflow:hidden}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__mask{transition:width var(--open-button-duration) var(--open-button-ease), height var(--open-button-duration) var(--open-button-delay) var(--open-button-ease)}.open-button__description{width:50cqw;max-width:260px;padding:0 calc(var(--open-button-avatar-width) * .5 + var(--spacer-r-12)) 0 var(--spacer-r-12);text-wrap:balance;position:relative}.open-button__avatar{z-index:var(--z-index-local-overlay);width:var(--open-button-avatar-width);height:var(--open-button-avatar-height);border-radius:var(--spacer-r-80);filter:drop-shadow(0 4px 6px #00000026);transition:transform .2s var(--open-button-ease);position:relative;overflow:clip}.open-button:is(:hover,.open-button--programmatic-expand) .open-button__avatar{transform:scale(1.05)}.open-button__link-icon{width:var(--spacer-r-80);height:var(--spacer-r-80);padding:var(--spacer-r-20);color:var(--open-button-color);display:none;position:absolute;right:0}:where(.open-button--standalone){right:var(--spacer-r-16);bottom:var(--spacer-r-16);position:fixed}@media (prefers-reduced-motion:reduce){.open-button__text,.open-button__mask,.open-button:hover .open-button__text,.open-button:hover .open-button__mask{transition:none!important}.open-button__avatar,.open-button:hover .open-button__avatar{filter:none!important;transition:none!important}}.open-button--hide-title-when-collapsed .open-button__text{visibility:hidden;opacity:0;transition:transform var(--open-button-duration) var(--open-button-ease), padding-right var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), visibility 0s linear calc(var(--open-button-duration) + var(--open-button-delay))}.open-button--hide-title-when-collapsed:is(:hover,.open-button--programmatic-expand) .open-button__text{visibility:visible;background:var(--open-button-hover-background,var(--open-button-background));color:var(--open-button-hover-color,var(--open-button-color));opacity:1;transition:transform var(--open-button-duration) var(--open-button-delay) var(--open-button-ease), opacity var(--open-button-duration) var(--open-button-ease), visibility 0s linear 0s;transform:translateY(0)}}@value container-xs, container-sm, container-md, container-lg, container-inner-xs, container-inner-sm, container-inner-md, container-inner-lg from "./viewports.css";`,BA=e=>e,VA=typeof window<`u`?window:{screen:{},navigator:{}},HA=(VA.matchMedia||(function(){return{matches:!1}})).bind(VA),UA={get passive(){return!0}},WA=function(){};VA.addEventListener&&VA.addEventListener(`p`,WA,UA),VA.removeEventListener&&VA.removeEventListener(`p`,WA,!1),`PointerEvent`in VA;var GA=`ontouchstart`in VA,KA=`TouchEvent`in VA,qA=GA||KA&&HA(`(any-pointer: coarse)`).matches,JA=(VA.navigator.maxTouchPoints||0)>0||qA,YA=VA.navigator.userAgent||``,XA=HA(`(pointer: coarse)`).matches&&/iPad|Macintosh/.test(YA)&&Math.min(VA.screen.width||0,VA.screen.height||0)>=768,ZA=(HA(`(pointer: coarse)`).matches||!HA(`(pointer: fine)`).matches&&GA)&&!/Windows.*Firefox/.test(YA),QA=HA(`(any-pointer: fine)`).matches||HA(`(any-hover: hover)`).matches||XA||!GA,$A=JA&&(QA||!ZA)?`hybrid`:JA?`touchOnly`:`mouseOnly`,ej=$A===`mouseOnly`?`mouse`:$A===`touchOnly`||ZA?`touch`:`mouse`,tj=z(`<div class="open-button__title"></div>`),nj=z(`<div class="open-button__mask"><div class="open-button__description"></div></div>`),rj=z(`<div class="open-button__text"><!> <!></div>`),ij=z(`<div class="sr-only"> </div>`),aj=z(`<!> <div class="svg svg--avatar open-button__avatar" aria-hidden="true"></div>`,1),oj=z(`<link rel="stylesheet"/>`),sj=z(`<!> <!>`,1),cj=z(`<!> <!> <!> <main class="chat-app"><!></main>`,1);function lj(e,t){O(t,!0);let n=(e,n)=>{let r=()=>n?.().chatConfig,i=()=>n?.().language,a=()=>n?.().colorScheme,c=j(()=>{let{openButtonTitle:e,openButtonDescription:t}=r().translations[i()];return{openButtonTitle:e,openButtonDescription:t}}),l=j(()=>r().fullTheme[a()].tokens.svgs),u=j(()=>r().fullTheme[a()]?.tokens.components.openButton?.custom),d=j(()=>!!R(u)?.hideTitleWhenCollapsed);{let n=j(()=>r().buttonHref?void 0:s()?`true`:`false`),i=j(()=>r().buttonHref?void 0:`true`),a=j(()=>r().buttonHref?void 0:o()),u=j(()=>[`open-button`,t.buttonClass,Z.data.flyoutIsOpen?`open-button--expanded`:void 0,R(d)?`open-button--hide-title-when-collapsed`:void 0]);SE(e,{get href(){return r().buttonHref},onclick:de,onmouseenter:le,onmouseleave:ue,use:w,get"aria-expanded"(){return R(n)},get"aria-haspopup"(){return R(i)},get"aria-controls"(){return R(a)},get style(){return t.buttonStyle},get className(){return R(u)},get isStandalone(){return R(f)},children:(e,t)=>{var n=aj(),r=F(n),i=e=>{var t=rj(),n=P(t),r=e=>{var t=tj();ta(t,()=>R(c).openButtonTitle,!0),D(t),V(e,t)};W(n,e=>{R(c).openButtonTitle&&e(r)});var i=I(n,2),a=e=>{var t=nj(),n=P(t);ta(n,()=>R(c).openButtonDescription,!0),D(n),oo(n,e=>N(v,e),()=>R(v)),D(t),oo(t,e=>N(_,e),()=>R(_)),V(e,t)};W(i,e=>{R(c).openButtonDescription&&ej===`mouse`&&e(a)}),D(t),V(e,t)},a=e=>{var t=ij(),n=P(t,!0);D(t),L(()=>H(n,Z.t.ariaOpenChat)),V(e,t)};W(r,e=>{R(c).openButtonTitle||R(c).openButtonDescription?e(i):e(a,-1)});var o=I(r,2);ta(o,()=>R(l).avatar,!0),D(o),V(e,n)},$$slots:{default:!0}})}},r=M(`light`),i=q(t,`host`,7),a=q(t,`onError`,7),o=q(t,`flyoutId`,7),s=q(t,`flyoutIsOpen`,7),c=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`host`,`onError`,`flyoutId`,`flyoutIsOpen`]),l=async e=>BA(await(await fetch(`${e}/chatconfig`)).json()),u=async({forceTheme:e,lang:t,apiUrl:n})=>{let r=Zf(window.CHAT_CONFIG_OVERRIDE?window.CHAT_CONFIG_OVERRIDE:await l(n)),i;i=t?$f(t,r.supportedLanguages):np(r.supportedLanguages);let a=Jm(Object.keys(r.fullTheme));return{chatConfig:r,language:i,colorScheme:a}},d=(e,t)=>{if(e==null)return t;if(typeof e==`string`){let t=e.trim().toLowerCase();return!(t===``||t===`0`||t===`false`||t===`no`)}return typeof e==`number`?e!==0:typeof e==`boolean`?e:t},f=j(()=>!!i()),p=M(!1),m=M(!1),h=M(!1),g=M(void 0),_=M(void 0),v=M(void 0),y=j(()=>R(v)?.offsetWidth??0),b=j(()=>R(v)?.offsetHeight??0),x=M(void 0),S=M(!1),C,ee=M(!0);function te(){return R(x)?(clearTimeout(R(x)),N(x,void 0),!0):!1}async function ne(e){N(r,e.colorScheme,!0),C?.(),te(),N(S,!1);let n=e.chatConfig.fullTheme[R(r)]?.tokens.components.openButton?.custom??{},i=n.autoExpandScrollThreshold,a=Number(n.autoCollapseDelay??0),o=Number.isNaN(a)?0:Math.max(0,a),c=d(n.autoExpandOnce,!1),l=(()=>{if(i==null)return 100;if(typeof i==`string`){if(i.trim().toLowerCase()===`none`)return 0;let e=Number(i);return Number.isNaN(e)?100:e}let e=Number(i);return Number.isNaN(e)?100:e})();if(Number.isNaN(l)||l<=0)return;let u=`liipgpt-auto-expand-${t.apiUrl}`,f=!1;if(typeof window<`u`)try{f=window.localStorage.getItem(u)===`true`}catch(e){console.warn(`LiipGPT: unable to read auto-expand flag`,e)}N(h,f,!0);let p=()=>{if(!(window.scrollY/window.innerHeight*100>=l)){N(ee,!0);return}if(!(R(m)||s())&&!(c&&(f||R(h)))&&R(ee)){if(N(ee,!1),N(m,!0),N(h,!0),se(),c&&typeof window<`u`)try{window.localStorage.setItem(u,`true`)}catch(e){console.warn(`LiipGPT: unable to persist auto-expand flag`,e)}N(x,setTimeout(()=>{R(S)||(ce(),N(m,!1)),N(x,void 0)},o),!0)}};window.addEventListener(`scroll`,p,{passive:!0}),l===0&&(await Kr(),p()),C=()=>{window.removeEventListener(`scroll`,p)}}function re(){te(),N(m,!1),N(S,!1)}function w(e){N(g,e,!0)}function ie(){C?.(),te()}Ii(ie);function ae(){!R(v)||!R(_)||(R(_).style.width=`${R(y)}px`,R(_).style.height=`${R(b)}px`)}function oe(){R(_)&&(R(_).style.width=`0`,R(_).style.height=`0`)}function se(){R(g)&&(R(g).classList.add(`open-button--programmatic-expand`),ae())}function ce(){R(g)&&(R(g).classList.remove(`open-button--programmatic-expand`),oe())}function le(){te()&&N(S,!0),ae()}function ue(){te(),R(S)&&(N(m,!1),N(S,!1),R(g)?.classList.remove(`open-button--programmatic-expand`)),R(p)||oe()}function de(e){re(),t.onclick?.(e)}let fe=j(()=>u(c).then(async e=>(await ne(e),e)).catch(e=>a()(e)));var pe={get host(){return i()},set host(e){i(e),A()},get onError(){return a()},set onError(e){a(e),A()},get flyoutId(){return o()},set flyoutId(e){o(e),A()},get flyoutIsOpen(){return s()},set flyoutIsOpen(e){s(e),A()}},me=B();return ri(`beforeunload`,kn,ie),ma(`1k415fq`,e=>{var t=B(),n=F(t),r=e=>{var t=B();Hi(F(t),()=>R(fe),null,(e,t)=>{let n=j(()=>R(t).chatConfig.fullTheme[R(t).colorScheme]);var r=sj(),i=F(r);Yi(i,17,()=>R(n).fontURLs??[],Gi,(e,t)=>{var n=oj();L(()=>K(n,`href`,R(t))),V(e,n)}),NA(I(i,2),{id:`font-css`,get css(){return R(n).fontCSS}}),V(e,r)}),V(e,t)};W(n,e=>{R(f)&&e(r)}),V(e,t)}),Hi(F(me),()=>R(fe),e=>{},(e,t)=>{let i=j(()=>R(t).chatConfig.fullTheme[R(r)]);var a=B(),o=F(a),s=e=>{var r=cj(),a=F(r);{let e=j(()=>MA(R(i).tokens));NA(a,{id:`theme-css`,get css(){return R(e)}})}var o=I(a,2);NA(o,{id:`app-css`,get css(){return zA}});var s=I(o,2);NA(s,{id:`custom-css`,get css(){return R(i).customCSS}});var c=I(s,2);n(P(c),()=>R(t)),D(c),V(e,r)},c=e=>{n(e,()=>R(t))};W(o,e=>{R(f)?e(s):e(c,-1)}),V(e,a)}),V(e,me),k(pe)}J(lj,{host:{},onError:{},flyoutId:{},flyoutIsOpen:{}},[],[],{mode:`open`});var uj=z(`<div class="flyout__backdrop"></div>`),dj=z(`<div class="flyout__content"><!></div>`),fj=z(`<div><!> <div class="flyout__body"><!> <div><!></div></div></div>`),pj=z(`<!> <div class="chat-app__container"><div class="chat-app__loader-container"><!></div></div>`,1);function mj(e,t){O(t,!0);let n=q(t,`children`,7),r=q(t,`loaderColor`,7),i=q(t,`loaderBackground`,7),a=q(t,`flyout`,7),o=q(t,`flyoutClass`,7),s=q(t,`flyoutStyle`,7),c=q(t,`onCloseChat`,7),l=q(t,`onError`,7),u=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`children`,`loaderColor`,`loaderBackground`,`flyout`,`flyoutClass`,`flyoutStyle`,`onCloseChat`,`onError`]),d=j(()=>Z.theme?.components?.flyout?.custom??{}),f=j(()=>({enabled:Z.data?.chatConfig?.enableBackdrop??!1,delayIn:Number(R(d).backdropDelayIn??0),durationIn:Number(R(d).backdropDurationIn??200),delayOut:Number(R(d).backdropDelayOut??0),durationOut:Number(R(d).backdropDurationOut??200),baseScaleIn:Number(R(d).backdropBaseScaleIn??1),baseScaleOut:Number(R(d).backdropBaseScaleOut??1),transformOrigin:String(R(d).backdropTransformOrigin??`center`),scaleDirection:String(R(d).backdropScaleDirection??`scale`)})),p=j(()=>({in:{delay:R(f).delayIn,duration:R(f).durationIn,baseScale:R(f).baseScaleIn,transformOrigin:R(f).transformOrigin,scaleDirection:R(f).scaleDirection},out:{delay:R(f).delayOut,duration:R(f).durationOut,baseScale:R(f).baseScaleOut,transformOrigin:R(f).transformOrigin,scaleDirection:R(f).scaleDirection}})),m,h=e=>{Qn(()=>{let t=e=>{m=e};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t),m=void 0}})},g=`flyout`,_=M(void 0),v=j(()=>Z.data.flyoutIsOpen),y=M(!1),b=j(()=>Z.initialized),x=j(()=>Z.data.hasOpenedOverlays);Qn(()=>{!Z.data.flyoutIsOpen&&R(y)&&(R(_)?.querySelector(`button`))?.focus({preventScroll:!0}),N(y,R(v),!0)}),Qn(()=>{if(R(b)&&R(v)){let e=e=>{e.key===`Escape`&&(R(x)||c()())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}}});var S={get children(){return n()},set children(e){n(e),A()},get loaderColor(){return r()},set loaderColor(e){r(e),A()},get loaderBackground(){return i()},set loaderBackground(e){i(e),A()},get flyout(){return a()},set flyout(e){a(e),A()},get flyoutClass(){return o()},set flyoutClass(e){o(e),A()},get flyoutStyle(){return s()},set flyoutStyle(e){s(e),A()},get onCloseChat(){return c()},set onCloseChat(e){c(e),A()},get onError(){return l()},set onError(e){l(e),A()}},C=B();ri(`click`,kn,e=>{e!==m&&a()&&c()()});var ee=F(C),te=e=>{var t=B(),r=F(t),i=e=>{},a=e=>{var t=fj(),r=P(t),i=e=>{var t=uj();da(1,t,()=>FA,()=>({...R(p).in,easing:zT})),da(2,t,()=>FA,()=>({...R(p).out,easing:zT})),V(e,t)};W(r,e=>{Z.data.flyoutIsOpen&&R(f).enabled&&e(i)});var a=I(r,2);K(a,`id`,g);var c=P(a),d=e=>{var t=dj();U(P(t),n),D(t),da(1,t,()=>FA,()=>({delay:0,duration:500,easing:zT,baseScale:.3})),da(2,t,()=>FA,()=>({delay:100,duration:300,easing:zT,baseScale:.7})),V(e,t)};W(c,e=>{Z.data.flyoutIsOpen&&e(d)});var m=I(c,2);lj(P(m),po({get onError(){return l()},onclick:e=>{e.stopPropagation(),Sh.openFlyout()},flyoutId:g,get flyoutIsOpen(){return R(v)},buttonClass:`flyout__open-button`},()=>u)),D(m),oo(m,e=>N(_,e),()=>R(_)),D(a),ga(a,e=>h?.(e)),D(t),L(()=>{Oa(t,s()),Ea(t,1,ba([`flyout`,o()]))}),V(e,t)};W(r,e=>{Z.initialized?e(a,-1):e(i)}),V(e,t)},ne=e=>{var a=B(),o=F(a),s=e=>{var n=pj(),a=F(n);NA(a,{id:`app-css`,get css(){return PA}});var o=I(a,2),s=P(o);na(P(s),t,`loader`,{},e=>{RA(e,{get background(){return i()},get color(){return r()}})}),D(s),D(o),da(2,o,()=>ug,()=>({duration:200,delay:300})),V(e,n)},c=e=>{var t=B();U(F(t),n),V(e,t)};W(o,e=>{Z.initialized?e(c,-1):e(s)}),V(e,a)};return W(ee,e=>{a()?e(te):e(ne,-1)}),V(e,C),k(S)}J(mj,{children:{},loaderColor:{},loaderBackground:{},flyout:{},flyoutClass:{},flyoutStyle:{},onCloseChat:{},onError:{}},[`loader`],[],{mode:`open`});var hj=z(`<button type="button"> </button>`),gj=z(`<div class="dialog-footer__actions"></div>`);function _j(e,t){O(t,!1);function n(e){let t=Sh[e];typeof t==`function`&&t()}so();{let t=e=>{var t=B();ta(F(t),()=>Z.data.openedPopup?.title),V(e,t)},r=e=>{var t=B();ta(F(t),()=>Z.data.openedPopup?.content),V(e,t)},i=e=>{var t=B(),r=F(t),i=e=>{var t=gj();Yi(t,5,()=>Z.data.openedPopup.actions,Gi,(e,t)=>{let r=()=>R(t).action,i=()=>R(t).label,a=()=>R(t).type;var o=hj(),s=P(o,!0);D(o),L(()=>{Ea(o,1,`btn btn--${a()??`secondary`??``}`),H(s,i())}),ii(`click`,o,()=>n(r())),V(e,o)}),D(t),V(e,t)};W(r,e=>{Z.data.openedPopup?.actions?.length&&e(i)}),V(e,t)},a=un(()=>Z.data.openedPopup!==void 0);xD(e,{get open(){return R(a)},get onClose(){return Sh.closePopup},title:t,content:r,footer:i,$$slots:{title:!0,content:!0,footer:!0}})}k()}ai([`click`]),J(_j,{},[],[],{mode:`open`});var vj=z(`<span class="reference__description line-clamp line-clamp--6"> </span>`),yj=z(`<span class="reference__breadcrumb transition-colors"> </span>`),bj=z(`<span class="reference__footer"><span class="reference__domain transition-colors"><span class="truncate"> </span></span> <!></span>`),xj=z(`<div class="reference-number__content-wrapper" role="tooltip" aria-hidden="true"><a class="reference-number__content transition-colors no-link-styling" target="_blank" rel="noopener noreferrer" tabindex="-1" aria-hidden="true"><span class="reference__header"><h3 class="reference__title line-clamp line-clamp--2 h4"> </h3> <!></span> <!> <!></a></div>`),Sj=z(`<div class="reference-number"><a target="_blank" rel="noopener noreferrer" class="reference-number__trigger transition-colors no-link-styling"> </a> <!></div>`);function Cj(e,t){O(t,!0);let n=j(()=>Z.t),r=q(t,`usedNumber`,7),i=q(t,`source`,7),a=M(!1),o,s=M(void 0),c=M(void 0),l=j(i),u=j(()=>R(l).display.card.title),d=j(()=>R(l).display.card.description),f=j(()=>R(l).display.card.badge),p=j(()=>R(l).display.card.breadcrumbs),m={duration:Number(Z.theme.components.referenceNumberContent.custom?.transitionDuration)||200,delay:Number(Z.theme.components.referenceNumberContent.custom?.transitionDelay)||0,y:Number(Z.theme.components.referenceNumberContent.custom?.transitionY)||10},h=async()=>{if(!R(s)||!R(c))return;let{x:e,y:t}=await DC(R(s),R(c),{placement:`top`,middleware:[bC(8),SC(),xC({padding:8})]});Object.assign(R(c).style,{left:`${e}px`,top:`${t}px`})},g=()=>{o&&=(clearTimeout(o),void 0)},_=()=>{g(),o=setTimeout(()=>{N(a,!1)},100)},v=`tooltip-${pf()}`,y=e=>{e.key===`Escape`&&N(a,!1)},b=()=>{g(),N(a,!0)};Qn(()=>{R(a)?document.addEventListener(`keydown`,y):document.removeEventListener(`keydown`,y)}),Qn(()=>{R(a)&&h()});var x={get usedNumber(){return r()},set usedNumber(e){r(e),A()},get source(){return i()},set source(e){i(e),A()}},S=Sj(),C=P(S),ee=P(C,!0);D(C),oo(C,e=>N(s,e),()=>R(s));var te=I(C,2),ne=e=>{var t=xj(),n=P(t),r=P(n),i=P(r),a=P(i,!0);D(i),Oh(I(i,2),{name:`externalLink`,class:`reference__icon transition-colors`}),D(r);var o=I(r,2),s=e=>{var t=vj(),n=P(t,!0);D(t),L(()=>H(n,R(d))),V(e,t)};W(o,e=>{R(d)&&e(s)});var h=I(o,2),g=e=>{var t=bj(),n=P(t),r=P(n),i=P(r,!0);D(r),D(n);var a=I(n,2),o=e=>{var t=B();Yi(F(t),17,()=>R(p),Gi,(e,t)=>{var n=yj(),r=P(n,!0);D(n),L(()=>H(r,R(t))),V(e,n)}),V(e,t)};W(a,e=>{R(p)&&e(o)}),D(t),L(()=>H(i,R(f))),V(e,t)};W(h,e=>{R(f)&&e(g)}),D(n),D(t),oo(t,e=>N(c,e),()=>R(c)),L(()=>{K(t,`id`,v),K(n,`href`,R(l).url),H(a,R(u))}),ri(`mouseenter`,t,b),ri(`mouseleave`,t,_),da(3,t,()=>WT,()=>m),V(e,t)};return W(te,e=>{R(a)&&e(ne)}),D(S),L(()=>{K(C,`href`,R(l).url),K(C,`aria-describedby`,R(a)?v:void 0),K(C,`aria-label`,`${R(n).referenceLink??``}: ${R(u)??``}`),K(C,`data-state`,R(a)?`open`:`closed`),H(ee,r())}),ri(`mouseenter`,C,b),ri(`mouseleave`,C,_),ri(`focus`,C,()=>N(a,!0)),ri(`blur`,C,()=>N(a,!1)),V(e,S),k(x)}customElements.define(`liipgpt-reference-number`,J(Cj,{source:{attribute:`data-source`,type:`Object`},refNumber:{attribute:`data-all-index`,type:`String`},usedNumber:{attribute:`data-used-index`,type:`String`}},[],[]));var wj=`main-navigation`,Tj=e=>{e.preventDefault(),Z.targets.chatAppMainNavigation&&(Z.targets.chatAppMainNavigation.scrollIntoView({behavior:`smooth`,block:`start`}),Z.targets.chatAppMainNavigation.focus())},Ej=z(`<link rel="stylesheet"/>`),Dj=z(`<link rel="stylesheet"/>`),Oj=z(`<!> <!> <!>`,1),kj=z(`<link rel="stylesheet"/>`),Aj=z(`<!> <!> <!> <!>`,1),jj=z(`<h1 class="sr-only"> </h1>`),Mj=z(`<h2 class="sr-only absolute"> </h2>`),Nj=z(`<div class="chat-app__header-logo"></div>`),Pj=z(`<!> <!> <!>`,1),Fj=z(`<!> <!> <!> <!>`,1),Ij=z(`<div class="chat-app__page-transition"><!></div>`),Lj=z(`<div><div class="chat-app__main"><div class="chat-app__portals"></div> <!> <div><div class="container"><!> <!> <div id="chat-app-header-portal"></div></div></div> <div class="chat-app__body"><!> <!></div></div> <!> <!></div>`),Rj=z(`<div><!> <!></div>`);function zj(e,t){O(t,!0);let n=q(t,`host`,7),r=q(t,`onError`,7),i=uo(t,[`$$slots`,`$$events`,`$$legacy`,`$$host`,`host`,`onError`]);Qn(()=>{let e={forceTheme:t.forceTheme,apiUrl:t.apiUrl,apiKey:t.apiKey,speechRecognitionApiKey:t.speechRecognitionApiKey,lang:t.lang,features:t.features,loaderBackground:t.loaderBackground,loaderColor:t.loaderColor,flyout:t.flyout,flyoutStyle:t.flyoutStyle,flyoutClass:t.flyoutClass,chatClass:t.chatClass,inlineLayout:t.inlineLayout,forceChatPage:t.forceChatPage,hidePredefinedQuestions:t.hidePredefinedQuestions,autofirePredefinedQuestionId:t.autofirePredefinedQuestionId,additionalStartParameters:t.additionalStartParameters,question:t.question,mode:t.mode,source:t.source,cache:t.cache};Yr(()=>Sh.init(e).catch(e=>r()(e)))});let a=j(()=>Z.data.route.name),o=()=>{Sh.closeFlyout(),n().dispatchEvent(new CustomEvent(`closechat`))};Qn(()=>{Z.initialized&&Z.data?.chatConfig&&n().dispatchEvent(new CustomEvent(`configloaded`,{detail:Z.data.chatConfig}))});let s=M(void 0),c=M(null),l=Uf.fineGrained?.light?.tokens?.components?.aside?.custom?.containerWidthForMobileLayout,u=M(!1),d=j(()=>R(c)?Z.data.props?.flyout||R(c)<=l:null),f=M(void 0),p=M(!1),m=M(0);Qn(()=>{if(R(f)&&R(f).firstElementChild instanceof HTMLElement){let e=getComputedStyle(R(f).firstElementChild);N(m,parseFloat(e.paddingTop)||0,!0)}}),Qn(()=>{let e=!1,t=()=>{e||(e=!0,requestAnimationFrame(()=>{R(s)&&(e=!1,Z.targets.scrollContainer?.scrollTop===0&&y(),N(p,R(s).scrollTop>=R(m)+1))}))};return t(),R(s)?.addEventListener(`scroll`,t,{passive:!0}),()=>R(s)?.removeEventListener(`scroll`,t)});let h=()=>{Sh.closeReferencesAside()};Qn(()=>{Z.initialized&&Z.data.currentReferencesAsideId?N(u,!0):N(u,!1)});let g=M(void 0),_,v=M(!1),y=()=>{N(v,!1),_?.disconnect(),_=new IntersectionObserver(([e])=>{e.isIntersecting?(N(v,!0),_.disconnect()):N(v,!1)},{root:Z.targets.scrollContainer,rootMargin:`-15% 0px 0px 0px`}),R(g)&&_.observe(R(g))};Fi(()=>{if(R(g))return y(),window.addEventListener(`resize`,y),()=>{_?.disconnect(),window.removeEventListener(`resize`,y)}});let b=j(()=>Z.initialized);Qn(()=>{R(b)&&R(d)!==null&&Yr(()=>Sh.setAsideMobile(R(d)))});let x=M(void 0),S=j(()=>Z.data?.chatConfig?.inlineLayout&&!Z.data.props.flyout);Qn(()=>{let e=0,t=()=>{e=window.visualViewport?.height??window.innerHeight},n=new ResizeObserver(()=>{let t=window.innerWidth<768?.9:1;R(x)&&R(x).offsetHeight>e*t&&(Z.data.isInlineLayoutContained=!0,requestAnimationFrame(()=>{R(x)?.offsetHeight,window.dispatchEvent(new Event(`resize`))}))}),r=[`mouseup`,`click`],i=!1;Wm()||r.push(`keydown`);let a=()=>{i||(i=!0,R(x)?.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{i=!1},300))};return R(S)&&R(x)&&(t(),window.visualViewport?.addEventListener(`resize`,t),window.addEventListener(`resize`,t),n.observe(R(x)),r.forEach(e=>{R(x).addEventListener(e,a,!0)})),()=>{R(x)&&r.forEach(e=>{R(x).removeEventListener(e,a,!0)}),n.disconnect(),window.visualViewport?.removeEventListener(`resize`,t),window.removeEventListener(`resize`,t)}});let C=j(()=>Z.data.props?.flyout);return Qn(()=>{R(b)&&R(C)&&(n().setAttribute(`role`,`region`),Yr(()=>{n().setAttribute(`aria-label`,Z.t.ariaFlyoutRegion)}))}),ma(`3hann0`,e=>{var t=B(),n=F(t),r=e=>{var t=Oj(),n=F(t);Yi(n,17,()=>Z.themeBase.fontURLs??[],Gi,(e,t)=>{var n=Ej();L(()=>K(n,`href`,R(t))),V(e,n)});var r=I(n,2);Yi(r,17,()=>Z.data.additionalStylesheets,Gi,(e,t)=>{var n=Dj();L(()=>K(n,`href`,R(t))),V(e,n)}),NA(I(r,2),{id:`font-css`,get css(){return Z.themeBase.fontCSS}}),V(e,t)};W(n,e=>{Z.initialized&&e(r)}),V(e,t)}),hx(e,{get defaultPortalTo(){return R(s)},children:(e,n)=>{var l=Rj();let m;var _=P(l),y=e=>{var t=Aj(),n=F(t);{let e=j(()=>MA(Z.theme));NA(n,{id:`theme-css`,get css(){return R(e)}})}var r=I(n,2);NA(r,{id:`app-css`,get css(){return PA}});var i=I(r,2);NA(i,{id:`custom-css`,get css(){return Z.themeBase.customCSS}}),Yi(I(i,2),17,()=>Z.data.additionalStylesheets,Gi,(e,t)=>{var n=kj();L(()=>K(n,`href`,R(t))),V(e,n)}),V(e,t)};W(_,e=>{Z.initialized&&e(y)}),mj(I(_,2),po({onCloseChat:o,get onError(){return r()}},()=>i,{children:(e,t)=>{var n=Lj(),r=P(n),i=P(r);ga(i,(e,t)=>wh?.(e,t),()=>`portals`);var l=I(i,2);Eh(l,{});var m=I(l,2),_=P(m),y=P(_),b=e=>{var t=jj(),n=P(t,!0);D(t),L(()=>H(n,Z.t.ariaPageTitle)),V(e,t)};W(y,e=>{!R(C)&&!R(S)&&e(b)});var ee=I(y,2);pa(ee,()=>Z.hasMainNavigationContent?`nav`:`div`,!1,(e,t)=>{ga(e,(e,t)=>wh?.(e,t),()=>`chatAppMainNavigation`),qa(e,()=>({class:`chat-app__header-content`,"aria-label":Z.hasMainNavigationContent?Z.ariaMainNavigationRegion:void 0,tabindex:Z.hasMainNavigationContent?-1:void 0,id:wj,[Na]:{"has-border":R(p)}}));var n=Fj(),r=F(n),i=e=>{var t=Mj(),n=P(t,!0);D(t),L(()=>H(n,Z.t.ariaMainNavigation)),V(e,t)};W(r,e=>{Z.hasMainNavigationContent&&e(i)});var s=I(r,2),c=e=>{var t=Nj();ta(t,()=>Z.theme.svgs.headerLogo,!0),D(t),V(e,t)};W(s,e=>{Z.theme.svgs.headerLogo&&e(c)});var l=I(s,2),u=e=>{dk(e,{class:`chat-app__header-new-conversation`})};W(l,e=>{R(a)===`chat-page`&&!Z.data.chatConfig.forceChatPage&&e(u)});var d=I(l,2),f=e=>{var t=Pj(),n=F(t),r=e=>{{let t=j(()=>Z.t.aboutThisChat||``);WO(e,{get content(){return R(t)}})}};W(n,e=>{Z.data.chatConfig.showContextInfo&&e(r)});var i=I(n,2),a=e=>{ck(e,{})};W(i,e=>{Z.data.chatConfig.showContextMenu&&e(a)});var s=I(i,2),c=e=>{mD(e,{onclick:o})};W(s,e=>{(Z.data.chatConfig.showCloseChatButton||Z.data.props.flyout)&&e(c)}),V(e,t)};W(d,e=>{Z.initialized&&e(f)}),V(t,n)}),ga(I(ee,2),(e,t)=>wh?.(e,t),()=>`chatAppHeaderPortal`),D(_),D(m),oo(m,e=>N(g,e),()=>R(g)),ga(m,(e,t)=>wh?.(e,t),()=>`chatAppHeader`);var te=I(m,2),ne=P(te);_j(ne,{}),Wi(I(ne,2),()=>R(a),e=>{var t=Ij(),n=P(t),r=e=>{LO(e,{})},i=e=>{yk(e,{})},o=e=>{jO(e,{})};W(n,e=>{R(a)===`consent-page`?e(r):R(a)===`start-page`?e(i,1):R(a)===`chat-page`&&e(o,2)}),D(t),oo(t,e=>N(f,e),()=>R(f)),da(1,t,()=>UT,()=>({duration:300,delay:250})),da(2,t,()=>ug,()=>({duration:150})),V(e,t)}),D(te),D(r),oo(r,e=>N(s,e),()=>R(s)),ga(r,(e,t)=>wh?.(e,t),()=>`scrollContainer`);var re=I(r,2),w=e=>{fD(e,{get isOpen(){return R(u)},get isMobile(){return R(d)},get showReferencesByDefault(){return Z.data.chatConfig.showReferencesByDefault},onClose:h,get title(){return Z.t.referencesTitle},children:(e,t)=>{eE(e,{})},$$slots:{default:!0}})};W(re,e=>{R(d)!==null&&Z.data.chatConfig.referencesLayout!==`inline`&&e(w)}),km(I(re,2),{position:`top-center`,get containerAriaLabel(){return Z.t.ariaNotifications}}),D(n),rr(()=>io(n,`clientWidth`,e=>N(c,e))),oo(n,e=>N(x,e),()=>R(x)),ga(n,(e,t)=>wh?.(e,t),()=>`chatAppContainer`),L(()=>{Ea(n,1,ba([`chat-app__container`,{"chat-app__container--inline-layout":R(S),"chat-app__container--inline-layout-contained":Z.data.isInlineLayoutContained}])),Ea(m,1,ba([`chat-app__header`,{"chat-app__header--unsticked":R(v),"chat-app__header--with-logo":Z.theme.svgs.headerLogo}]))}),V(e,n)},$$slots:{default:!0}})),D(l),L(()=>{Ea(l,1,ba([`chat-app`,t.chatClass])),K(l,`role`,!R(C)&&!R(S)?`main`:void 0),m=Oa(l,``,m,{"color-scheme":Z.colorScheme||`light`})}),V(e,l)},$$slots:{default:!0}}),k({get host(){return n()},set host(e){n(e),A()},get onError(){return r()},set onError(e){r(e),A()}})}J(zj,{host:{},onError:{}},[],[],{mode:`open`});var Bj=z(`<div class="chat-app__container"><div class="error-message svelte-14mj70v">Server is unreachable, please try later... <button class="error-message__retry-button svelte-14mj70v">Retry</button></div></div>`),Vj=z(` <!>`,1),Hj={hash:`svelte-14mj70v`,code:`
|
|
547
547
|
/* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-14mj70v {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
|
|
548
548
|
BlinkMacSystemFont,
|
|
549
549
|
avenir next,
|
|
@@ -556,5 +556,5 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
556
556
|
roboto,
|
|
557
557
|
noto,
|
|
558
558
|
arial,
|
|
559
|
-
sans-serif;}.error-message__retry-button.svelte-14mj70v {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function
|
|
560
|
-
`,t())??``]),V(e,r)},r=q(t,`body`,7),i=q(t,`silent`,7),a=
|
|
559
|
+
sans-serif;}.error-message__retry-button.svelte-14mj70v {border:none;outline:none;background:none;font-size:1rem;text-decoration:underline;&:active {outline:none;}}`};function Uj(e,t){O(t,!0),ha(e,Hj);let n=(e,t=w,n=w)=>{Xe();var r=Vj(),a=F(r),o=I(a),s=e=>{},c=e=>{var t=Bj(),r=P(t),i=I(P(r));D(r),D(t),ii(`click`,i,()=>n()()),V(e,t)};W(o,e=>{i()?e(s):e(c,-1)}),L(e=>H(a,`${e??``} `),[()=>console.error(`Panic, uncaught error:
|
|
560
|
+
`,t())??``]),V(e,r)},r=q(t,`body`,7),i=q(t,`silent`,7),a=M(void 0),o=e=>{N(a,{error:e},!0)};var s={get body(){return r()},set body(e){r(e),A()},get silent(){return i()},set silent(e){i(e),A()}},c=B();return tn(F(c),{get failed(){return n}},e=>{var t=B(),i=F(t),s=e=>{n(e,()=>R(a).error,()=>()=>{N(a,void 0)})},c=e=>{var t=B();U(F(t),r,()=>o),V(e,t)};W(i,e=>{R(a)?e(s):e(c,-1)}),V(e,t)}),V(e,c),k(s)}ai([`click`]),J(Uj,{body:{},silent:{}},[],[],{mode:`open`});function Wj(e,t){O(t,!0);let n=q(t,`forceTheme`,7),r=q(t,`apiUrl`,7),i=q(t,`apiKey`,7),a=q(t,`speechRecognitionApiKey`,7),o=q(t,`lang`,7),s=q(t,`features`,7),c=q(t,`loaderBackground`,7),l=q(t,`loaderColor`,7),u=q(t,`flyout`,7),d=q(t,`flyoutStyle`,7),f=q(t,`flyoutClass`,7),p=q(t,`chatClass`,7),m=q(t,`inlineLayout`,7),h=q(t,`forceChatPage`,7),g=q(t,`hidePredefinedQuestions`,7),_=q(t,`autofirePredefinedQuestionId`,7),v=q(t,`additionalStartParameters`,7),y=q(t,`question`,7),b=q(t,`mode`,7),x=q(t,`source`,7),S=q(t,`cache`,7),C=j(()=>({forceTheme:n(),apiUrl:r(),apiKey:i(),speechRecognitionApiKey:a(),lang:o(),features:s(),loaderBackground:c(),loaderColor:l(),flyout:u(),flyoutStyle:d(),flyoutClass:f(),chatClass:p(),inlineLayout:m(),forceChatPage:h(),hidePredefinedQuestions:g(),autofirePredefinedQuestionId:_(),additionalStartParameters:v(),question:y(),mode:b(),source:x(),cache:S()}));var ee={get forceTheme(){return n()},set forceTheme(e){n(e),A()},get apiUrl(){return r()},set apiUrl(e){r(e),A()},get apiKey(){return i()},set apiKey(e){i(e),A()},get speechRecognitionApiKey(){return a()},set speechRecognitionApiKey(e){a(e),A()},get lang(){return o()},set lang(e){o(e),A()},get features(){return s()},set features(e){s(e),A()},get loaderBackground(){return c()},set loaderBackground(e){c(e),A()},get loaderColor(){return l()},set loaderColor(e){l(e),A()},get flyout(){return u()},set flyout(e){u(e),A()},get flyoutStyle(){return d()},set flyoutStyle(e){d(e),A()},get flyoutClass(){return f()},set flyoutClass(e){f(e),A()},get chatClass(){return p()},set chatClass(e){p(e),A()},get inlineLayout(){return m()},set inlineLayout(e){m(e),A()},get forceChatPage(){return h()},set forceChatPage(e){h(e),A()},get hidePredefinedQuestions(){return g()},set hidePredefinedQuestions(e){g(e),A()},get autofirePredefinedQuestionId(){return _()},set autofirePredefinedQuestionId(e){_(e),A()},get additionalStartParameters(){return v()},set additionalStartParameters(e){v(e),A()},get question(){return y()},set question(e){y(e),A()},get mode(){return b()},set mode(e){b(e),A()},get source(){return x()},set source(e){x(e),A()},get cache(){return S()},set cache(e){S(e),A()}};{let n=(e,n=w)=>{zj(e,po({host:t.$$host,get onError(){return n()}},()=>R(C)))},r=j(()=>R(C).flyout??!1);Uj(e,{get silent(){return R(r)},body:n,$$slots:{body:!0}})}return k(ee)}customElements.define(`liipgpt-chat`,J(Wj,{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{Wj as LiipGPTChat};
|