@luigi-project/container 1.7.6-dev.20260590104 → 1.7.7-dev.202605260713

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/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
- "undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");let e=!1;e=!0;const t={},n=Symbol(),r=Symbol("filename"),i="http://www.w3.org/1999/xhtml",s=globalThis.process?.env?.NODE_ENV;var o=s&&!s.toLowerCase().startsWith("prod"),a=Array.isArray,l=Array.prototype.indexOf,c=Array.prototype.includes,u=Array.from,d=Object.keys,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,g=Object.getPrototypeOf,m=Object.isExtensible;const E=()=>{};function w(e){return e()}function T(e){for(var t=0;t<e.length;t++)e[t]()}function S(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const b=16,y=32,C=64,R=512,A=1024,O=2048,I=4096,$=8192,U=16384,N=32768,L=1<<25,k=65536,D=1<<17,P=1<<19,x=65536,M=1<<21,Q=1<<22,H=1<<23,W=Symbol("$state"),j=Symbol("legacy props"),G=Symbol(""),B=Symbol("proxy path"),V=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},q=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function F(e){if(o){const t=new Error(`lifecycle_outside_component\n\`${e}(...)\` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var K="font-weight: bold",z="font-weight: normal";function X(e){o?console.warn(`%c[svelte] hydration_mismatch\n%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}\nhttps://svelte.dev/e/hydration_mismatch`,K,z):console.warn("https://svelte.dev/e/hydration_mismatch")}function J(e){o?console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,K,z):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}let Z,Y=!1;function ee(e){Y=e}function te(e){if(null===e)throw X(),t;return Z=e}function ne(){return te(Mt(Z))}function re(e=!0){for(var t=0,n=Z;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Mt(n);e&&n.remove(),n=i}}function ie(e){return e===this.v}function se(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function oe(e,t){return e.label=t,ae(e.v,t),e}function ae(e,t){return e?.[B]?.(t),e}function le(e){const t=new Error,n=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),r=[];for(let e=0;e<n.length;e++){const t=n[e],i=t.replaceAll("\\","/");if("Error"!==t.trim()){if(t.includes("validate_each_keys"))return[];i.includes("svelte/src/internal")||i.includes("node_modules/.vite")||r.push(t)}}return r}();return 0===n.length?null:(n.unshift("\n"),f(t,"stack",{value:n.join("\n")}),f(t,"name",{value:e}),t)}function ce(e,t){if(!o)throw new Error("invariant(...) was not guarded by if (DEV)");e||function(e){if(o){const t=new Error(`invariant_violation\nAn invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"\nhttps://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/invariant_violation")}(t)}let ue=null;function de(e){ue=e}let fe=null;function he(e){fe=e}let pe=null;function _e(e){pe=e}function ve(t,n=!1,r){ue={p:ue,i:!1,c:null,e:null,s:t,x:null,r:gn,l:e&&!n?{s:null,u:null,$:[]}:null},o&&(ue.function=r,pe=r)}function ge(e){var t=ue,n=t.e;if(null!==n)for(var r of(t.e=null,n))Kt(r);return void 0!==e&&(t.x=e),t.i=!0,ue=t.p,o&&(pe=ue?.function??null),e??{}}function me(){return!e||null!==ue&&null===ue.l}let Ee=[];function we(){var e=Ee;Ee=[],T(e)}function Te(e){if(0===Ee.length&&!xe){var t=Ee;queueMicrotask(()=>{t===Ee&&we()})}Ee.push(e)}function Se(){for(;Ee.length>0;)we()}const be=new WeakMap;function ye(e){var t=gn;if(null===t)return pn.f|=H,e;if(o&&e instanceof Error&&!be.has(e)&&be.set(e,function(e,t){const n=h(e,"message");if(n&&!n.configurable)return;var i=Nt?" ":"\t",s=`\n${i}in ${t.fn?.name||"<unknown>"}`,o=t.ctx;for(;null!==o;)s+=`\n${i}in ${o.function?.[r].split("/").pop()}`,o=o.p;return{message:e.message+`\n${s}\n`,stack:e.stack?.split("\n").filter(e=>!e.includes("svelte/src/internal")).join("\n")}}(e,t)),0===(t.f&N)&&!(4&t.f))throw o&&!t.parent&&e instanceof Error&&Re(e),e;Ce(e,t)}function Ce(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&N))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw o&&e instanceof Error&&Re(e),e}function Re(e){const t=be.get(e);t&&(f(e,"message",{value:t.message}),f(e,"stack",{value:t.stack}))}const Ae=-7169;function Oe(e,t){e.f=e.f&Ae|t}function Ie(e){0!==(e.f&R)||null===e.deps?Oe(e,A):Oe(e,I)}function $e(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&x)&&(t.f^=x,$e(t.deps))}function Ue(e,t,n){0!==(e.f&O)?t.add(e):0!==(e.f&I)&&n.add(e),$e(e.deps),Oe(e,A)}let Ne=!1;const Le=new Set;let ke=null,De=null,Pe=null,xe=!1,Me=!1,Qe=null,He=null;var We=0,je=o?new Set:null;let Ge=1;class Be{id=Ge++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#s=[];#o=[];#a=new Set;#l=new Set;#c=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#h(){for(const n of this.#d)for(const r of n.#r.keys()){for(var e=!1,t=r;null!==t.parent;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){for(var n of(this.#c.delete(e),t.d))Oe(n,O),this.schedule(n);for(n of t.m)Oe(n,I),this.schedule(n)}}#p(){if(We++>1e3&&(Le.delete(this),function(){if(o){var e=new Map;for(const n of ke.current.keys())for(const[r,i]of n.updated??[]){var t=e.get(r);t||(t={error:i.error,count:0},e.set(r,t)),t.count+=i.count}for(const t of e.values())t.error&&console.error(t.error)}try{!function(){if(o){const e=new Error("effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){o&&f(e,"stack",{value:""}),Ce(e,Pe)}}()),!this.#f()){for(const e of this.#a)this.#l.delete(e),Oe(e,O),this.schedule(e);for(const e of this.#l)Oe(e,I),this.schedule(e)}const e=this.#s;this.#s=[],this.apply();var t=Qe=[],n=[],r=He=[];for(const r of e)try{this.#_(r,t,n)}catch(e){throw Ze(r),e}if(ke=null,r.length>0){var i=Be.ensure();for(const e of r)i.schedule(e)}if(Qe=null,He=null,this.#f()||this.#h()){this.#v(n),this.#v(t);for(const[e,t]of this.#c)Je(e,t)}else{0===this.#n.size&&Le.delete(this),this.#a.clear(),this.#l.clear();for(const e of this.#e)e(this);this.#e.clear(),Fe(n),Fe(t),this.#i?.resolve()}var s=ke;if(this.#s.length>0){const e=s??=this;e.#s.push(...this.#s.filter(t=>!e.#s.includes(t)))}if(null!==s){if(Le.add(s),o)for(const e of this.current.keys())je.add(e);s.#p()}Le.has(this)||this.#g()}#_(e,t,n){e.f^=A;for(var r=e.first;null!==r;){var i=r.f,s=!!(96&i);if(!(s&&0!==(i&A)||0!==(i&$)||this.#c.has(r))&&null!==r.fn){s?r.f^=A:4&i?t.push(r):On(r)&&(0!==(i&b)&&this.#l.add(r),Ln(r));var o=r.first;if(null!==o){r=o;continue}}for(;null!==r;){var a=r.next;if(null!==a){r=a;break}r=r.parent}}}#v(e){for(var t=0;t<e.length;t+=1)Ue(e[t],this.#a,this.#l)}capture(e,t,r=!1){t===n||this.previous.has(e)||this.previous.set(e,t),0===(e.f&H)&&(this.current.set(e,[e.v,r]),De?.set(e,e.v))}activate(){ke=this}deactivate(){ke=null,De=null}flush(){var e=o?new Set:null;try{Me=!0,ke=this,this.#p()}finally{if(We=0,Pe=null,Qe=null,He=null,Me=!1,ke=null,De=null,pt.clear(),o)for(const t of e)t.updated=null}}discard(){for(const e of this.#t)e(this);this.#t.clear(),Le.delete(this)}register_created_effect(e){this.#o.push(e)}#g(){for(const u of Le){var e=u.id<this.id,t=[];for(const[r,[i,s]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(!e||i===n)continue;u.current.set(r,[i,s])}t.push(r)}var r=[...u.current.keys()].filter(e=>!this.current.has(e));if(0===r.length)e&&u.discard();else if(t.length>0){o&&ce(0===u.#s.length,"Batch has scheduled roots"),u.activate();var i=new Set,s=new Map;for(var a of t)Ke(a,r,i,s);s=new Map;var l=[...u.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e);for(const e of this.#o)155648&e.f||!ze(e,l,s)||(4194320&e.f?(Oe(e,O),u.schedule(e)):u.#a.add(e));if(u.#s.length>0){for(var c of(u.apply(),u.#s))u.#_(c,[],[]);u.#s=[]}u.deactivate()}}for(const e of Le)e.#d.has(this)&&(e.#d.delete(this),0!==e.#d.size||e.#f()||(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(1===r?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;1===e?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,Te(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(const t of e)this.#a.add(t);for(const e of t)this.#l.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=S()).promise}static ensure(){if(null===ke){const e=ke=new Be;Me||(Le.add(ke),xe||Te(()=>{ke===e&&e.flush()}))}return ke}apply(){De=null}schedule(e){if(Pe=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&N))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===Qe||t!==gn||null!==pn&&2&pn.f))return;if(96&n){if(0===(n&A))return;t.f^=A}}this.#s.push(t)}}}function Ve(e){var t=xe;xe=!0;try{var n;for(e&&(null===ke||ke.is_fork||ke.flush(),n=e());;){if(Se(),null===ke)return n;ke.flush()}}finally{xe=t}}let qe=null;function Fe(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&On(r)&&(qe=new Set,Ln(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&rn(r),qe?.size>0)){pt.clear();for(const e of qe){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)qe.has(n)&&(qe.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Ln(n)}}qe.clear()}}qe=null}}function Ke(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?Ke(i,t,n,r):4194320&e&&0===(e&O)&&ze(i,t,r)&&(Oe(i,O),Xe(i))}}function ze(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(c.call(t,r))return!0;if(2&r.f&&ze(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Xe(e){ke.schedule(e)}function Je(e,t){if(0===(e.f&y)||0===(e.f&A)){0!==(e.f&O)?t.d.push(e):0!==(e.f&I)&&t.m.push(e),Oe(e,A);for(var n=e.first;null!==n;)Je(n,t),n=n.next}}function Ze(e){Oe(e,A);for(var t=e.first;null!==t;)Ze(t),t=t.next}class Ye{parent;is_pending=!1;transform_error;#m;#E=Y?Z:null;#w;#T;#S;#b=null;#y=null;#C=null;#R=null;#A=0;#O=0;#I=!1;#a=new Set;#l=new Set;#$=null;#U=function(e){let t,n=0,r=gt(0);return o&&oe(r,"createSubscriber version"),()=>{Vt()&&(kn(r),Xt(()=>(0===n&&(t=xn(()=>e(()=>yt(r)))),n+=1,()=>{Te(()=>{n-=1,0===n&&(t?.(),t=void 0,yt(r))})})))}}(()=>(this.#$=gt(this.#A),o&&oe(this.#$,"$effect.pending()"),()=>{this.#$=null}));constructor(e,t,n,r){this.#m=e,this.#w=t,this.#T=e=>{var t=gn;t.b=this,t.f|=128,n(e)},this.parent=gn.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#S=Zt(()=>{if(Y){const e=this.#E;ne();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#N(t)}else t?this.#L():this.#k()}else this.#D()},589824),Y&&(this.#m=Z)}#k(){try{this.#b=Yt(()=>this.#T(this.#m))}catch(e){this.error(e)}}#N(e){const t=this.#w.failed;t&&(this.#C=Yt(()=>{t(this.#m,()=>e,()=>()=>{})}))}#L(){const e=this.#w.pending;e&&(this.is_pending=!0,this.#y=Yt(()=>e(this.#m)),Te(()=>{var e=this.#R=document.createDocumentFragment(),t=Pt();e.append(t),this.#b=this.#P(()=>Yt(()=>this.#T(t))),0===this.#O&&(this.#m.before(e),this.#R=null,sn(this.#y,()=>{this.#y=null}),this.#x(ke))}))}#D(){try{if(this.is_pending=this.has_pending_snippet(),this.#O=0,this.#A=0,this.#b=Yt(()=>{this.#T(this.#m)}),this.#O>0){var e=this.#R=document.createDocumentFragment();cn(this.#b,e);const t=this.#w.pending;this.#y=Yt(()=>t(this.#m))}else this.#x(ke)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#a,this.#l)}defer_effect(e){Ue(e,this.#a,this.#l)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#w.pending}#P(e){var t=gn,n=pn,r=ue;mn(this.#S),vn(this.#S),de(this.#S.ctx);try{return Be.ensure(),e()}catch(e){return ye(e),null}finally{mn(t),vn(n),de(r)}}#M(e,t){this.has_pending_snippet()?(this.#O+=e,0===this.#O&&(this.#x(t),this.#y&&sn(this.#y,()=>{this.#y=null}),this.#R&&(this.#m.before(this.#R),this.#R=null))):this.parent&&this.parent.#M(e,t)}update_pending_count(e,t){this.#M(e,t),this.#A+=e,this.#$&&!this.#I&&(this.#I=!0,Te(()=>{this.#I=!1,this.#$&&St(this.#$,this.#A)}))}get_effect_pending(){return this.#U(),kn(this.#$)}error(e){var t=this.#w.onerror;let n=this.#w.failed;if(!t&&!n)throw e;this.#b&&(nn(this.#b),this.#b=null),this.#y&&(nn(this.#y),this.#y=null),this.#C&&(nn(this.#C),this.#C=null),Y&&(te(this.#E),function(e=1){if(Y){for(var t=e,n=Z;t--;)n=Mt(n);Z=n}}(),te(re()));var r=!1,i=!1;const s=()=>{r?o?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",K,z):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,i&&function(){if(o){const e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#C&&sn(this.#C,()=>{this.#C=null}),this.#P(()=>{this.#D()}))},a=e=>{try{i=!0,t?.(e,s),i=!1}catch(e){Ce(e,this.#S&&this.#S.parent)}n&&(this.#C=this.#P(()=>{try{return Yt(()=>{var t=gn;t.b=this,t.f|=128,n(this.#m,()=>e,()=>s)})}catch(e){return Ce(e,this.#S.parent),null}}))};Te(()=>{var t;try{t=this.transform_error(e)}catch(e){return void Ce(e,this.#S&&this.#S.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(a,e=>Ce(e,this.#S&&this.#S.parent)):a(t)})}}function et(e,t,r,i){const s=me()?ot:at;var a=e.filter(e=>!e.settled);if(0!==r.length||0!==a.length){var l=gn,c=function(){var e=gn,t=pn,n=ue,r=ke;if(o)var i=fe;return function(s=!0){mn(e),vn(t),de(n),s&&0===(e.f&U)&&(r?.activate(),r?.apply()),o&&(it(null),he(i))}}(),u=1===a.length?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;if(0!==r.length){var d=nt();u?u.then(()=>{c(),h(),tt()}):h()}else u.then(()=>f(t.map(s)))}else i(t.map(s));function f(e){c();try{i(e)}catch(e){0===(l.f&U)&&Ce(e,l)}tt()}function h(){Promise.all(r.map(e=>function(e,t,r){let i=gn;null===i&&function(){if(o){const e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/async_derived_orphan")}();var s=void 0,a=gt(n);o&&(a.label=t);var l=!pn,c=new Map;(function(e){Bt(4718592,e)})(()=>{o&&(rt={effect:gn,warned:!1});var t=gn,n=S();s=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(tt)}catch(e){n.reject(e),tt()}o&&(rt=null);var u=ke;if(l){if(0!==(t.f&N))var d=nt();if(i.b.is_rendered())c.get(u)?.reject(V),c.delete(u);else{for(const e of c.values())e.reject(V);c.clear()}c.set(u,n)}const f=(e,n=void 0)=>{(o&&(rt=null),d)&&d(n===V);if(n!==V&&0===(t.f&U)){if(u.activate(),n)a.f|=H,St(a,n);else{0!==(a.f&H)&&(a.f^=H),St(a,e);for(const[e,t]of c){if(c.delete(e),e===u)break;t.reject(V)}o&&void 0!==r&&(st.add(a),setTimeout(()=>{st.has(a)&&(!function(e,t){o?console.warn(`%c[svelte] await_waterfall\n%cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app\nhttps://svelte.dev/e/await_waterfall`,K,z):console.warn("https://svelte.dev/e/await_waterfall")}(a.label,r),st.delete(a))}))}u.deactivate()}};n.promise.then(f,e=>f(null,e||"unknown"))}),qt(()=>{for(const e of c.values())e.reject(V)}),o&&(a.f|=Q);return new Promise(e=>{function t(n){function r(){n===s?e(a):t(s)}n.then(r,r)}t(s)})}(e))).then(e=>f([...t.map(s),...e])).catch(e=>Ce(e,l)).finally(()=>d())}}function tt(e=!0){mn(null),vn(null),de(null),e&&ke?.deactivate(),o&&(it(null),he(null))}function nt(){var e=gn,t=e.b,n=ke,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}let rt=null;function it(e){rt=e}const st=new Set;function ot(e){var t=null!==pn&&2&pn.f?pn:null;null!==gn&&(gn.f|=P);const r={ctx:ue,deps:null,effects:null,equals:ie,f:2050,fn:e,reactions:null,rv:0,v:n,wv:0,parent:t??gn,ac:null};return r}function at(e){const t=ot(e);return t.equals=se,t}function lt(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)nn(t[n])}}let ct=[];function ut(e){var t,n=gn;if(mn(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&U)?t:null;t=t.parent}return null}(e)),o){let r=ht;_t(new Set);try{c.call(ct,e)&&function(){if(o){const e=new Error("derived_references_self\nA derived value cannot reference itself recursively\nhttps://svelte.dev/e/derived_references_self");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/derived_references_self")}(),ct.push(e),e.f&=-65537,lt(e),t=$n(e)}finally{mn(n),_t(r),ct.pop()}}else try{e.f&=-65537,lt(e),t=$n(e)}finally{mn(n)}return t}function dt(e){var t=e.v,n=ut(e);e.equals(n)||(e.wv=An(),ke?.is_fork&&null!==e.deps||(e.v=n,ke?.capture(e,t,!0),null!==e.deps))?fn||(null!==De?(Vt()||ke?.is_fork)&&De.set(e,n):Ie(e)):Oe(e,A)}function ft(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Ln(t)}let ht=new Set;const pt=new Map;function _t(e){ht=e}let vt=!1;function gt(e,t){var n={f:0,v:e,reactions:null,equals:ie,rv:0,wv:0};return n}function mt(e,t){const n=gt(e);var r;return r=n,null!==pn&&(null===En?En=[r]:En.push(r)),n}function Et(t,n=!1,r=!0){const i=gt(t);return n||(i.equals=se),e&&r&&null!==ue&&null!==ue.l&&(ue.l.s??=[]).push(i),i}function wt(e,t){return Tt(e,xn(()=>kn(e))),t}function Tt(e,t,n=!1){null===pn||_n&&0===(pn.f&D)||!me()||!(4325394&pn.f)||null!==En&&c.call(En,e)||function(){if(o){const e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let r=n?At(t):t;return o&&ae(r,e.label),St(e,r,He)}function St(e,t,n=null){if(!e.equals(t)){var r=e.v;fn?pt.set(e,t):pt.set(e,r),e.v=t;var i=Be.ensure();if(i.capture(e,r),o){if(null!==gn){e.updated??=new Map;const t=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:t}),t>5){const t=le("updated at");if(null!==t){let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}}null!==gn&&(e.set_during_effect=!0)}if(2&e.f){const t=e;0!==(e.f&O)&&ut(t),null===De&&Ie(t)}e.wv=An(),Ct(e,O,n),!me()||null===gn||0===(gn.f&A)||96&gn.f||(null===Sn?function(e){Sn=e}([e]):Sn.push(e)),!i.is_fork&&ht.size>0&&!vt&&bt()}return t}function bt(){vt=!1;for(const e of ht)0!==(e.f&A)&&Oe(e,I),On(e)&&Ln(e);ht.clear()}function yt(e){Tt(e,e.v+1)}function Ct(e,t,n){var r=e.reactions;if(null!==r)for(var i=me(),s=r.length,a=0;a<s;a++){var l=r[a],c=l.f;if(i||l!==gn)if(o&&0!==(c&D))ht.add(l);else{var u=0===(c&O);if(u&&Oe(l,t),2&c){var d=l;De?.delete(d),0===(c&x)&&(c&R&&(l.f|=x),Ct(d,I,n))}else if(u){var f=l;0!==(c&b)&&null!==qe&&qe.add(f),null!==n?n.push(f):Xe(f)}}}}const Rt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function At(e){if("object"!=typeof e||null===e||W in e)return e;const t=g(e);if(t!==_&&t!==v)return e;var r=new Map,i=a(e),s=mt(0),l=Cn,c=e=>{if(Cn===l)return e();var t=pn,n=Cn;vn(null),Rn(l);var r=e();return vn(t),Rn(n),r};i&&(r.set("length",mt(e.length)),o&&(e=new Proxy(e,{get(e,t,n){var r=Reflect.get(e,t,n);return $t.has(t)?function(...e){vt=!0;var t=r.apply(this,e);return bt(),t}:r}})));var u="";let d=!1;function f(e){if(!d){d=!0,oe(s,`${u=e} version`);for(const[e,t]of r)oe(t,Ot(u,e));d=!1}}return new Proxy(e,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){if(o){const e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=r.get(t);return void 0===i?c(()=>{var e=mt(n.value);return r.set(t,e),o&&"string"==typeof t&&oe(e,Ot(u,t)),e}):Tt(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(void 0===i){if(t in e){const e=c(()=>mt(n));r.set(t,e),yt(s),o&&oe(e,Ot(u,t))}}else Tt(i,n),yt(s);return!0},get(t,i,s){if(i===W)return e;if(o&&i===B)return f;var a=r.get(i),l=i in t;if(void 0!==a||l&&!h(t,i)?.writable||(a=c(()=>{var e=mt(At(l?t[i]:n));return o&&oe(e,Ot(u,i)),e}),r.set(i,a)),void 0!==a){var d=kn(a);return d===n?void 0:d}return Reflect.get(t,i,s)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&"value"in i){var s=r.get(t);s&&(i.value=kn(s))}else if(void 0===i){var o=r.get(t),a=o?.v;if(void 0!==o&&a!==n)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return i},has(e,t){if(t===W)return!0;var i=r.get(t),s=void 0!==i&&i.v!==n||Reflect.has(e,t);if((void 0!==i||null!==gn&&(!s||h(e,t)?.writable))&&(void 0===i&&(i=c(()=>{var r=mt(s?At(e[t]):n);return o&&oe(r,Ot(u,t)),r}),r.set(t,i)),kn(i)===n))return!1;return s},set(e,t,a,l){var d=r.get(t),f=t in e;if(i&&"length"===t)for(var p=a;p<d.v;p+=1){var _=r.get(p+"");void 0!==_?Tt(_,n):p in e&&(_=c(()=>mt(n)),r.set(p+"",_),o&&oe(_,Ot(u,p)))}void 0===d?f&&!h(e,t)?.writable||(d=c(()=>mt(void 0)),o&&oe(d,Ot(u,t)),Tt(d,At(a)),r.set(t,d)):(f=d.v!==n,Tt(d,c(()=>At(a))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(l,a),!f){if(i&&"string"==typeof t){var g=r.get("length"),m=Number(t);Number.isInteger(m)&&m>=g.v&&Tt(g,m+1)}yt(s)}return!0},ownKeys(e){kn(s);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==n});for(var[i,o]of r)o.v===n||i in e||t.push(i);return t},setPrototypeOf(){!function(){if(o){const e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Ot(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Rt.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function It(e){try{if(null!==e&&"object"==typeof e&&W in e)return e[W]}catch{}return e}const $t=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var Ut,Nt,Lt,kt;function Dt(){if(void 0===Ut){Ut=window,Nt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Lt=h(t,"firstChild").get,kt=h(t,"nextSibling").get,m(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),m(n)&&(n.__t=void 0),o&&(e.__svelte_meta=null,function(){const e=Array.prototype,t=Array.__svelte_cleanup;t&&t();const{indexOf:n,lastIndexOf:r,includes:i}=e;e.indexOf=function(e,t){const r=n.call(this,e,t);if(-1===r)for(let n=t??0;n<this.length;n+=1)if(It(this[n])===e){J("array.indexOf(...)");break}return r},e.lastIndexOf=function(e,t){const n=r.call(this,e,t??this.length-1);if(-1===n)for(let n=0;n<=(t??this.length-1);n+=1)if(It(this[n])===e){J("array.lastIndexOf(...)");break}return n},e.includes=function(e,t){const n=i.call(this,e,t);if(!n)for(let t=0;t<this.length;t+=1)if(It(this[t])===e){J("array.includes(...)");break}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=r,e.includes=i}}())}}function Pt(e=""){return document.createTextNode(e)}function xt(e){return Lt.call(e)}function Mt(e){return kt.call(e)}function Qt(e,t=!1){if(!Y){var n=xt(e);return n instanceof Comment&&""===n.data?Mt(n):n}if(t){if(3!==Z?.nodeType){var r=Pt();return Z?.before(r),te(r),r}Wt(Z)}return Z}function Ht(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??i,e,r)}function Wt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jt(e){var t=pn,n=gn;vn(null),mn(null);try{return e()}finally{vn(t),mn(n)}}function Gt(e){null===gn&&(null===pn&&function(e){if(o){const t=new Error(`effect_orphan\n\`${e}\` can only be used inside an effect (e.g. during component initialisation)\nhttps://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_orphan")}(e),function(){if(o){const e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),fn&&function(e){if(o){const t=new Error(`effect_in_teardown\n\`${e}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_in_teardown")}(e)}function Bt(e,t){var n=gn;if(o)for(;null!==n&&0!==(n.f&D);)n=n.parent;null!==n&&0!==(n.f&$)&&(e|=$);var r={ctx:ue,deps:null,nodes:null,f:e|O|R,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};o&&(r.component_function=pe),ke?.register_created_effect(r);var i=r;if(4&e)null!==Qe?Qe.push(r):Be.ensure().schedule(r);else if(null!==t){try{Ln(r)}catch(i){throw nn(r),i}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&0===(i.f&P)&&(i=i.first,0!==(e&b)&&0!==(e&k)&&null!==i&&(i.f|=k))}if(null!==i&&(i.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(i,n),null!==pn&&2&pn.f&&0===(e&C))){var s=pn;(s.effects??=[]).push(i)}return r}function Vt(){return null!==pn&&!_n}function qt(e){const t=Bt(8,null);return Oe(t,A),t.teardown=e,t}function Ft(e){Gt("$effect"),o&&f(e,"name",{value:"$effect"});var t=gn.f;if(!(!pn&&0!==(t&y)&&0===(t&N)))return Kt(e);var n=ue;(n.e??=[]).push(e)}function Kt(e){return Bt(1048580,e)}function zt(e){return Bt(4,e)}function Xt(e,t=0){return Bt(8|t,e)}function Jt(e,t=[],n=[],r=[]){et(r,t,n,t=>{Bt(8,()=>e(...t.map(kn)))})}function Zt(e,t=0){var n=Bt(b|t,e);return o&&(n.dev_stack=fe),n}function Yt(e){return Bt(524320,e)}function en(e){var t=e.teardown;if(null!==t){const e=fn,n=pn;hn(!0),vn(null);try{t.call(null)}finally{hn(e),vn(n)}}}function tn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&jt(()=>{e.abort(V)});var r=n.next;0!==(n.f&C)?n.parent=null:nn(n,t),n=r}}function nn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(!function(e,t){for(;null!==e;){var n=e===t?null:Mt(e);e.remove(),e=n}}(e.nodes.start,e.nodes.end),n=!0),Oe(e,L),tn(e,t&&!n),Nn(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();en(e),e.f^=L,e.f|=U;var i=e.parent;null!==i&&null!==i.first&&rn(e),o&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function rn(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function sn(e,t,n=!0){var r=[];on(e,r,!0);var i=()=>{n&&nn(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var a of r)a.out(o)}else i()}function on(e,t,n){if(0===(e.f&$)){e.f^=$;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var s=i.next;on(i,t,!!(0!==(i.f&k)||0!==(i.f&y)&&0!==(e.f&b))&&n),i=s}}}function an(e){ln(e,!0)}function ln(e,t){if(0!==(e.f&$)){e.f^=$,0===(e.f&A)&&(Oe(e,O),Be.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;ln(n,!!(0!==(n.f&k)||0!==(n.f&y))&&t),n=r}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function cn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:Mt(n);t.append(n),n=i}}let un=null,dn=!1,fn=!1;function hn(e){fn=e}let pn=null,_n=!1;function vn(e){pn=e}let gn=null;function mn(e){gn=e}let En=null;let wn=null,Tn=0,Sn=null;let bn=1,yn=0,Cn=yn;function Rn(e){Cn=e}function An(){return++bn}function On(e){var t=e.f;if(0!==(t&O))return!0;if(2&t&&(e.f&=-65537),0!==(t&I)){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(On(s)&&dt(s),s.wv>e.wv)return!0}0!==(t&R)&&null===De&&Oe(e,A)}return!1}function In(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===En||!c.call(En,e)))for(var i=0;i<r.length;i++){var s=r[i];2&s.f?In(s,t,!1):t===s&&(n?Oe(s,O):0!==(s.f&A)&&Oe(s,I),Xe(s))}}function $n(e){var t=wn,n=Tn,r=Sn,i=pn,s=En,o=ue,a=_n,l=Cn,c=e.f;wn=null,Tn=0,Sn=null,pn=96&c?null:e,En=null,de(e.ctx),_n=!1,Cn=++yn,null!==e.ac&&(jt(()=>{e.ac.abort(V)}),e.ac=null);try{e.f|=M;var u=(0,e.fn)();e.f|=N;var d=e.deps,f=ke?.is_fork;if(null!==wn){var h;if(f||Nn(e,Tn),null!==d&&Tn>0)for(d.length=Tn+wn.length,h=0;h<wn.length;h++)d[Tn+h]=wn[h];else e.deps=d=wn;if(Vt()&&0!==(e.f&R))for(h=Tn;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!f&&null!==d&&Tn<d.length&&(Nn(e,Tn),d.length=Tn);if(me()&&null!==Sn&&!_n&&null!==d&&!(6146&e.f))for(h=0;h<Sn.length;h++)In(Sn[h],e);if(null!==i&&i!==e){if(yn++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=yn;if(null!==t)for(const e of t)e.rv=yn;null!==Sn&&(null===r?r=Sn:r.push(...Sn))}return 0!==(e.f&H)&&(e.f^=H),u}catch(e){return ye(e)}finally{e.f^=M,wn=t,Tn=n,Sn=r,pn=i,En=s,de(o),_n=a,Cn=l}}function Un(e,t){let n=t.reactions;if(null!==n){var r=l.call(n,e);if(-1!==r){var i=n.length-1;0===i?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(null===n&&2&t.f&&(null===wn||!c.call(wn,t))){var s=t;0!==(s.f&R)&&(s.f^=R,s.f&=-65537),Ie(s),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(V),t.teardown=E,t.ac=null,Nn(t,0),tn(t))}(s),Nn(s,0)}}function Nn(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Un(e,n[r])}function Ln(e){var t=e.f;if(0===(t&U)){Oe(e,A);var n=gn,r=dn;if(gn=e,dn=!0,o){var i=pe;_e(e.component_function);var s=fe;he(e.dev_stack??fe)}try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&y)&&nn(t),t=n}}(e):tn(e),en(e);var a=$n(e);e.teardown="function"==typeof a?a:null,e.wv=bn}finally{dn=r,gn=n,o&&(_e(i),he(s))}}}function kn(e){var t,n=!!(2&e.f);if((un?.add(e),null!==pn&&!_n)&&!(null!==gn&&0!==(gn.f&U)||null!==En&&c.call(En,e))){var r=pn.deps;if(0!==(pn.f&M))e.rv<yn&&(e.rv=yn,null===wn&&null!==r&&r[Tn]===e?Tn++:null===wn?wn=[e]:wn.push(e));else{(pn.deps??=[]).push(e);var i=e.reactions;null===i?e.reactions=[pn]:c.call(i,pn)||i.push(pn)}}if(o){if(!_n&&rt&&!rt.warned&&0===(rt.effect.f&M)){rt.warned=!0,t=e.label,o?console.warn(`%c[svelte] await_reactivity_loss\n%cDetected reactivity loss when reading \`${t}\`. This happens when state is read in an async function after an earlier \`await\`\nhttps://svelte.dev/e/await_reactivity_loss`,K,z):console.warn("https://svelte.dev/e/await_reactivity_loss");var s=le("traced at");s&&console.warn(s)}st.delete(e)}if(fn&&pt.has(e))return pt.get(e);if(n){var a=e;if(fn){var l=a.v;return(0===(a.f&A)&&null!==a.reactions||Pn(a))&&(l=ut(a)),pt.set(a,l),l}var u=0===(a.f&R)&&!_n&&null!==pn&&(dn||0!==(pn.f&R)),d=0===(a.f&N);On(a)&&(u&&(a.f|=R),dt(a)),u&&!d&&(ft(a),Dn(a))}if(De?.has(e))return De.get(e);if(0!==(e.f&H))throw e.v;return e.v}function Dn(e){if(e.f|=R,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&R)&&(ft(t),Dn(t))}function Pn(e){if(e.v===n)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(pt.has(t))return!0;if(2&t.f&&Pn(t))return!0}return!1}function xn(e){var t=_n;try{return _n=!0,e()}finally{_n=t}}function Mn(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(W in e)Qn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&W in n&&Qn(n)}}function Qn(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Qn(e[n],t)}catch(e){}const n=g(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=p(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}const Hn=Symbol("events"),Wn=new Set,jn=new Set;let Gn=null;function Bn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Gn=e;var o=0,a=Gn===e&&e[Hn];if(a){var l=i.indexOf(a);if(-1!==l&&(t===document||t===window))return void(e[Hn]=t);var c=i.indexOf(t);if(-1===c)return;l<=c&&(o=l)}if((s=i[o]||e.target)!==t){f(e,"currentTarget",{configurable:!0,get:()=>s||n});var u=pn,d=gn;vn(null),mn(null);try{for(var h,p=[];null!==s;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var v=s[Hn]?.[r];null==v||s.disabled&&e.target!==s||v.call(s,e)}catch(e){h?p.push(e):h=e}if(e.cancelBubble||_===t||null===_)break;s=_}if(h){for(let e of p)queueMicrotask(()=>{throw e});throw h}}finally{e[Hn]=t,delete e.currentTarget,vn(u),mn(d)}}}const Vn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function qn(e){var t=Ht("template");return t.innerHTML=function(e){return Vn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Fn(e,t){var n=gn;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Kn(e,t){var n,r=!!(1&t),i=!!(2&t),s=!e.startsWith("<!>");return()=>{if(Y)return Fn(Z,null),Z;void 0===n&&(n=qn(s?e:"<!>"+e),r||(n=xt(n)));var t=i||Nt?document.importNode(n,!0):n.cloneNode(!0);r?Fn(xt(t),t.lastChild):Fn(t,t);return t}}function zn(e,t){if(Y){var n=gn;return 0!==(n.f&N)&&null!==n.nodes.end||(n.nodes.end=Z),void ne()}null!==e&&e.before(t)}const Xn=["touchstart","touchmove"];function Jn(e){return Xn.includes(e)}function Zn(e,t){return tr(e,t)}function Yn(e,n){Dt(),n.intro=n.intro??!1;const r=n.target,i=Y,s=Z;try{for(var a=xt(r);a&&(8!==a.nodeType||"["!==a.data);)a=Mt(a);if(!a)throw t;ee(!0),te(a);const i=tr(e,{...n,anchor:a});return ee(!1),i}catch(i){if(i instanceof Error&&i.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw i;return i!==t&&console.warn("Failed to hydrate: ",i),!1===n.recover&&function(){if(o){const e=new Error("hydration_failed\nFailed to hydrate the application\nhttps://svelte.dev/e/hydration_failed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/hydration_failed")}(),Dt(),r.textContent="",ee(!1),Zn(e,n)}finally{ee(i),te(s)}}const er=new Map;function tr(e,{target:n,anchor:r,props:i={},events:s,context:o,intro:a=!0,transformError:l}){Dt();var c=void 0,d=function(e){Be.ensure();const t=Bt(524352,e);return(e={})=>new Promise(n=>{e.outro?sn(t,()=>{nn(t),n(void 0)}):(nn(t),n(void 0))})}(()=>{var a=r??n.appendChild(Pt());!function(e,t,n,r){new Ye(e,t,n,r)}(a,{pending:()=>{}},n=>{if(ve({}),o&&(ue.c=o),s&&(i.$$events=s),Y&&Fn(n,null),c=e(n,i)||{},Y&&(gn.nodes.end=Z,null===Z||8!==Z.nodeType||"]"!==Z.data))throw X(),t;ge()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=Jn(r);for(const e of[n,document]){var s=er.get(e);void 0===s&&(s=new Map,er.set(e,s));var o=s.get(r);void 0===o?(e.addEventListener(r,Bn,{passive:i}),s.set(r,1)):s.set(r,o+1)}}}};return f(u(Wn)),jn.add(f),()=>{for(var e of d)for(const r of[n,document]){var t=er.get(r),i=t.get(e);0==--i?(r.removeEventListener(e,Bn),t.delete(e),0===t.size&&er.delete(r)):t.set(e,i)}jn.delete(f),a!==r&&a.parentNode?.removeChild(a)}});return nr.set(c,d),c}let nr=new WeakMap;function rr(e,t){const n=nr.get(e);return n?(nr.delete(e),n(t)):(o&&(W in e?o?console.warn("%c[svelte] state_proxy_unmount\n%cTried to unmount a state proxy, rather than a component\nhttps://svelte.dev/e/state_proxy_unmount",K,z):console.warn("https://svelte.dev/e/state_proxy_unmount"):o?console.warn("%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount",K,z):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}class ir{anchor;#Q=new Map;#H=new Map;#W=new Map;#j=new Set;#G=!0;constructor(e,t=!0){this.anchor=e,this.#G=t}#g=e=>{if(this.#Q.has(e)){var t=this.#Q.get(e),n=this.#H.get(t);if(n)an(n),this.#j.delete(t);else{var r=this.#W.get(t);r&&(this.#H.set(t,r.effect),this.#W.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#Q){if(this.#Q.delete(t),t===e)break;const r=this.#W.get(n);r&&(nn(r.effect),this.#W.delete(n))}for(const[e,r]of this.#H){if(e===t||this.#j.has(e))continue;const i=()=>{if(Array.from(this.#Q.values()).includes(e)){var t=document.createDocumentFragment();cn(r,t),t.append(Pt()),this.#W.set(e,{effect:r,fragment:t})}else nn(r);this.#j.delete(e),this.#H.delete(e)};this.#G||!n?(this.#j.add(e),sn(r,i,!1)):i()}}};#B=e=>{this.#Q.delete(e);const t=Array.from(this.#Q.values());for(const[e,n]of this.#W)t.includes(e)||(nn(n.effect),this.#W.delete(e))};ensure(e,t){var n=ke;!t||this.#H.has(e)||this.#W.has(e)||this.#H.set(e,Yt(()=>t(this.anchor)));this.#Q.set(n,e),Y&&(this.anchor=Z),this.#g(n)}}if(o){function Jr(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(o){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}Jr("$state"),Jr("$effect"),Jr("$derived"),Jr("$inspect"),Jr("$props"),Jr("$bindable")}function sr(t){var n,r;null===ue&&F("onMount"),e&&null!==ue.l?(n=ue,r=n.l,r.u??={a:[],b:[],m:[]}).m.push(t):Ft(()=>{const e=xn(t);if("function"==typeof e)return e})}var or=new Map;function ar(e,n,r=!1){var i;Y&&(i=Z,ne());var s=new ir(e);function o(e,n){if(Y){var r=function(e){if(!e||8!==e.nodeType)throw X(),t;return e.data}(i);if(e!==parseInt(r.substring(1))){var o=re();return te(o),s.anchor=o,ee(!1),s.ensure(e,n),void ee(!0)}}s.ensure(e,n)}Zt(()=>{var e=!1;n((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},r?k:0)}function lr(e,t){zt(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const e=Ht("style");e.id=t.hash,e.textContent=t.code,r.appendChild(e),o&&function(e,t){var n=or.get(e);n||(n=new Set,or.set(e,n)),n.add(t)}(t.hash,e)}})}function cr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=cr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ur(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const dr=[..." \t\n\r\f \v\ufeff"];function fr(e,t,n,r,i,s){var o=e.__className;if(Y||o!==n||void 0===o){var a=function(e,t,n){var r=null==e?"":""+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 s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;0!==o&&!dr.includes(r[o-1])||a!==r.length&&!dr.includes(r[a])?o=a:r=(0===o?"":r.substring(0,o))+r.substring(a+1)}return""===r?null:r}(n,r,s);Y&&a===e.getAttribute("class")||(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=n}else if(s&&i!==s)for(var l in s){var c=!!s[l];null!=i&&c===!!i[l]||e.classList.toggle(l,c)}return s}const hr=Symbol("is custom element"),pr=Symbol("is html"),_r=q?"link":"LINK";function vr(e,t,n,r){var s=function(e){return e.__attributes??={[hr]:e.nodeName.includes("-"),[pr]:e.namespaceURI===i}}(e);Y&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===_r)?r||function(e,t,n){if(!o)return;if("srcset"===t&&function(e,t){var n=Er(e.srcset),r=Er(t);return r.length===n.length&&r.every(([e,t],r)=>t===n[r][1]&&(mr(n[r][0],e)||mr(e,n[r][0])))}(e,n))return;if(mr(e.getAttribute(t)??"",n))return;!function(e,t,n){o?console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${n}\`, will be ignored in favour of the server value\nhttps://svelte.dev/e/hydration_attribute_changed`,K,z):console.warn("https://svelte.dev/e/hydration_attribute_changed")}(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(n))}(e,t,n??""):s[t]!==(s[t]=n)&&("loading"===t&&(e[G]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,r=gr.get(n);if(r)return r;gr.set(n,r=[]);var i=e,s=Element.prototype;for(;s!==i;){for(var o in t=p(i))t[o].set&&r.push(o);i=g(i)}return r}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}var gr=new Map;function mr(e,t){return e===t||new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Er(e){return e.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function wr(e,t,n){var r=h(e,t);r&&r.set&&(e[t]=n,qt(()=>{e[t]=null}))}function Tr(e,t){return e===t||e?.[W]===t}function Sr(e={},t,n,r){var i=ue.r,s=gn;return zt(()=>{var o,a;return Xt(()=>{o=a,a=r?.()||[],xn(()=>{e!==n(...a)&&(t(e,...a),o&&Tr(n(...o),e)&&t(null,...o))})}),()=>{let r=s;for(;r!==i&&null!==r.parent&&r.parent.f&L;)r=r.parent;const o=r.teardown;r.teardown=()=>{a&&Tr(n(...a),e)&&t(null,...a),o?.()}}}),e}function br(e=!1){const t=ue,n=t.l.u;if(!n)return;let r=()=>Mn(t.s);if(e){let e=0,n={};const i=ot(()=>{let r=!1;const i=t.s;for(const e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>kn(i)}var i;n.b.length&&(i=()=>{yr(t,r),T(n.b)},Gt("$effect.pre"),o&&f(i,"name",{value:"$effect.pre"}),Bt(1048584,i)),Ft(()=>{const e=xn(()=>n.m.map(w));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&Ft(()=>{yr(t,r),T(n.a)})}function yr(e,t){if(e.l.s)for(const t of e.l.s)kn(t);t()}function Cr(t,n,r,i){var s=!e||!!(2&r),a=!!(8&r),l=!!(16&r),c=i,u=!0,d=()=>(u&&(u=!1,c=l?xn(i):i),c);let f;if(a){var p=W in t||j in t;f=h(t,n)?.set??(p&&n in t?e=>t[n]=e:void 0)}var _,v,g=!1;if(a?[_,g]=function(e){var t=Ne;try{return Ne=!1,[e(),Ne]}finally{Ne=t}}(()=>t[n]):_=t[n],void 0===_&&void 0!==i&&(_=d(),f&&(s&&function(e){if(o){const t=new Error(`props_invalid_value\nCannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_invalid_value")}(n),f(_))),v=s?()=>{var e=t[n];return void 0===e?d():(u=!0,e)}:()=>{var e=t[n];return void 0!==e&&(c=void 0),void 0===e?c:e},s&&!(4&r))return v;if(f){var m=t.$$legacy;return function(e,t){return arguments.length>0?(s&&t&&!m&&!g||f(t?v():e),e):v()}}var E=!1,w=(1&r?ot:at)(()=>(E=!1,v()));o&&(w.label=n),a&&kn(w);var T=gn;return function(e,t){if(arguments.length>0){const n=t?kn(w):s&&a?At(e):e;return Tt(w,n),E=!0,void 0!==c&&(c=n),e}return fn&&E||0!==(T.f&U)?w.v:kn(w)}}class Rr{#V;#q;constructor(e){var t=new Map,n=(e,n)=>{var r=Et(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>kn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===j||(kn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(Tt(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});this.#q=(e.hydrate?Yn:Zn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||Ve(),this.#V=r.$$events;for(const e of Object.keys(this.#q))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&f(this,e,{get(){return this.#q[e]},set(t){this.#q[e]=t},enumerable:!0});this.#q.$set=e=>{Object.assign(r,e)},this.#q.$destroy=()=>{rr(this.#q)}}$set(e){this.#q.$set(e)}$on(e,t){this.#V[e]=this.#V[e]||[];const n=(...e)=>t.call(this,...e);return this.#V[e].push(n),()=>{this.#V[e]=this.#V[e].filter(e=>e!==n)}}$destroy(){this.#q.$destroy()}}let Ar;function Or(e,t,n,r){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function Ir(e,t,n,r,i,s){let o=class extends Ar{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return d(t).map(e=>(t[e].attribute||e).toLowerCase())}};return d(t).forEach(e=>{f(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Or(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var i=h(r,e)?.get;i?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{f(o.prototype,e,{get(){return this.$$c?.[e]}})}),s&&(o=s(o)),e.element=o,o}var $r;"function"==typeof HTMLElement&&(Ar=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){const 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){const 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 t(e){return t=>{const n=Ht("slot");"default"!==e&&(n.name=e),zn(t,n)}}const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const i of this.$$s)i in r&&("default"!==i||this.$$d.children?n[i]=t(i):(this.$$d.children=t(i),n.default=!0));for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Or(o,s.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||void 0===this[a]||(this.$$d[a]=this[a],delete this[a]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new Rr(e)),this.$$me=function(e){Be.ensure();const t=Bt(524352,e);return()=>{nn(t)}}(()=>{Xt(()=>{this.$$r=!0;for(const e of d(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Or(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const l in this.$$l)for(const c of this.$$l[l]){const u=this.$$c.$on(l,c);this.$$l_u.set(c,u)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Or(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 d(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}}),function(e){e.CUSTOM_MESSAGE="custom",e.GET_CONTEXT="luigi.get-context",e.SEND_CONTEXT_HANDSHAKE="luigi.init",e.CONTEXT_RECEIVED="luigi.init.ok",e.NAVIGATION_REQUEST="luigi.navigation.open",e.ALERT_REQUEST="luigi.ux.alert.show",e.ALERT_CLOSED="luigi.ux.alert.hide",e.INITIALIZED="luigi.init.ok",e.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",e.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",e.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",e.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",e.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",e.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",e.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",e.LOCAL_STORAGE_SET_REQUEST="storage",e.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",e.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",e.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",e.BACK_NAVIGATION_REQUEST="luigi.navigation.back",e.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",e.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",e.SEND_CONTEXT_OBJECT="luigi.navigate",e.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",e.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",e.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",e.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",e.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",e.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",e.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",e.AUTH_SET_TOKEN="luigi.auth.tokenIssued",e.ADD_BACKDROP_REQUEST="luigi.add-backdrop",e.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",e.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",e.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"}($r||($r={}));class Ur extends Event{constructor(e,t,n,r){super(e),this.detail=t,this.payload=n||t||{},this.callbackFn=r}callback(e){this.callbackFn&&this.callbackFn(e)}}const Nr={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class Lr{isVisible(e){return"none"!==getComputedStyle(e).display&&!(!e.offsetWidth&&!e.offsetHeight)}sendCustomMessageToIframe(e,t,n){const r=n||"custom";if(e?.iframe?.contentWindow){const n=new URL(e.iframe.src);"custom"===r?e.iframe.contentWindow.postMessage({msg:r,data:t},n.origin):e.iframe.contentWindow.postMessage({msg:r,...t},n.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(e,t,n,r,i){this.dispatch(e,t,n,i,r)}dispatch(e,t,n,r,i){const s=new Ur(e,n,i,r);t.dispatchEvent(s)}getTargetContainer(e){let t;return globalThis.__luigi_container_manager.container.forEach(n=>{n.iframeHandle?.iframe&&n.iframeHandle.iframe.contentWindow===e.source&&(t=n)}),t}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:e=>{const t=this.getTargetContainer(e),n=t?.iframeHandle?.iframe?.contentWindow;if(n&&n===e.source){switch(e.data.msg){case $r.CUSTOM_MESSAGE:{const n=e.data.data,r=n.id;delete n.id,this.dispatch(Nr.CUSTOM_MESSAGE,t,{id:r,_metaData:{},data:n})}break;case $r.GET_CONTEXT:n.postMessage({msg:$r.SEND_CONTEXT_HANDSHAKE,context:t.context||{},internal:{thirdPartyCookieCheck:{disabled:"true"===t.skipCookieCheck},currentTheme:t.theme,currentLocale:t.locale,activeFeatureToggleList:t.activeFeatureToggleList||[],cssVariables:t.cssVariables||{},anchor:t.anchor||"",userSettings:t.userSettings||null,drawer:t.drawer||!1,modal:t.modal||!1,viewStackSize:t.viewStackSize||0,isNavigateBack:t.isNavigateBack||!1},authData:t.authData||{},nodeParams:t.nodeParams||{},searchParams:t.searchParams||{},pathParams:t.pathParams||{}},e.origin);break;case $r.NAVIGATION_REQUEST:this.dispatch(Nr.NAVIGATION_REQUEST,t,e.data.params,t=>{n.postMessage({msg:$r.CLOSE_MODAL_ANSWER,data:t},e.origin)});break;case $r.ALERT_REQUEST:this.dispatchWithPayload(Nr.ALERT_REQUEST,t,e,e.data?.data?.settings,n=>{t.notifyAlertClosed(e.data?.data?.settings?.id,n)});break;case $r.INITIALIZED:this.dispatch(Nr.INITIALIZED,t,e.data?.params||{});break;case $r.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(Nr.ADD_SEARCH_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case $r.ADD_NODE_PARAMS_REQUEST:this.dispatch(Nr.ADD_NODE_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case $r.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(Nr.SHOW_CONFIRMATION_MODAL_REQUEST,t,e.data.data,e.data.data?.settings,e=>{t.notifyConfirmationModalClosed(e)});break;case $r.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(Nr.SHOW_LOADING_INDICATOR_REQUEST,t,e);break;case $r.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(Nr.HIDE_LOADING_INDICATOR_REQUEST,t,e);break;case $r.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(Nr.SET_CURRENT_LOCALE_REQUEST,t,e,e.data.data);break;case $r.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(Nr.LOCAL_STORAGE_SET_REQUEST,t,e,e.data.data?.params);break;case $r.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(Nr.RUNTIME_ERROR_HANDLING_REQUEST,t,e);break;case $r.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(Nr.SET_ANCHOR_LINK_REQUEST,t,e,e.data.anchor);break;case $r.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(Nr.SET_THIRD_PARTY_COOKIES_REQUEST,t,e);break;case $r.BACK_NAVIGATION_REQUEST:{let n=e.data?.goBackContext||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e)}this.dispatch(Nr.GO_BACK_REQUEST,t,n),this.dispatch(Nr.BACK_NAVIGATION_REQUEST,t,e)}break;case $r.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(Nr.GET_CURRENT_ROUTE_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:$r.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:e.data?.data?.id,route:t}},e.origin)});break;case $r.NAVIGATION_COMPLETED_REPORT:this.dispatch(Nr.NAVIGATION_COMPLETED_REPORT,t,e);break;case $r.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(Nr.UPDATE_MODAL_PATH_DATA_REQUEST,t,e,e.data.params);break;case $r.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(Nr.UPDATE_MODAL_SETTINGS_REQUEST,t,e,{addHistoryEntry:e.data.addHistoryEntry,updatedModalSettings:e.data.updatedModalSettings});break;case $r.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(Nr.CHECK_PATH_EXISTS_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:$r.SEND_PATH_EXISTS_ANSWER,data:{correlationId:e.data?.data?.id,pathExists:t}},e.origin)});break;case $r.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(Nr.SET_DIRTY_STATUS_REQUEST,t,e,{dirty:e.data.dirty});break;case $r.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(Nr.SET_VIEW_GROUP_DATA_REQUEST,t,e.data.data);break;case $r.ADD_BACKDROP_REQUEST:this.dispatch(Nr.ADD_BACKDROP_REQUEST,t,e);break;case $r.REMOVE_BACKDROP_REQUEST:this.dispatch(Nr.REMOVE_BACKDROP_REQUEST,t,e);break;case $r.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(Nr.CLOSE_CURRENT_MODAL_REQUEST,t,e)}}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(e){this.getContainerManager().container.push(e)}}const kr=new Lr;const Dr=new class{constructor(){this.updateContext=(e,t,n,r,i,s)=>{if(n){const o=t||{};kr.sendCustomMessageToIframe(n,{context:e,nodeParams:r||{},pathParams:i||{},searchParams:s||{},internal:o,withoutSync:!0},$r.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(e,t,n,r)=>{if(r){const i=n||{};kr.sendCustomMessageToIframe(r,{context:t,internal:i,withoutSync:!1,viewUrl:e},$r.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(e,t)=>{e&&t?kr.sendCustomMessageToIframe(e,{authData:t},$r.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(e,t,n,r,i)=>{if(n&&t._luigi_mfe_webcomponent)kr.dispatch(e,t._luigi_mfe_webcomponent,i);else{const t={...i};t.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),t.id=e,kr.sendCustomMessageToIframe(r,t)}},this.notifyConfirmationModalClosed=(e,t)=>{const n={data:{confirmed:e}};kr.sendCustomMessageToIframe(t,n,$r.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(e,t,n){const r=t?{id:e,dismissKey:t}:{id:e};kr.sendCustomMessageToIframe(n,r,$r.ALERT_CLOSED)}},Pr=e=>{if(!e)return;const t=e;return t.forEach((n,r)=>{t[r]=n+(-1!=n.indexOf(";")?"":";"),t[r]=e[r].replaceAll('"',"'")}),t.join(" ")};class xr{constructor(e){e?(this.rendererObject=e,this.config=e.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(e){return document.createElement("div")}attachCompoundItem(e,t){e.appendChild(t)}}class Mr extends xr{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=Hr({use:e.use.extends,config:e.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):super.createCompoundItemContainer(e)}attachCompoundItem(e,t){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,t,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,t):super.attachCompoundItem(e,t)}}class Qr extends xr{createCompoundContainer(){const e="__lui_compound_"+(new Date).getTime(),t=document.createElement("div");t.classList.add(e);let n="";return this.config.layouts&&this.config.layouts.forEach(t=>{if(t.minWidth||t.maxWidth){let r="@media only screen ";null!=t.minWidth&&(r+=`and (min-width: ${t.minWidth}px) `),null!=t.maxWidth&&(r+=`and (max-width: ${t.maxWidth}px) `),r+=`{\n .${e} {\n grid-template-columns: ${t.columns||"auto"};\n grid-template-rows: ${t.rows||"auto"};\n grid-gap: ${t.gap||"0"};\n }\n }\n `,n+=r}}),t.innerHTML=`\n <style scoped>\n .${e} {\n display: grid;\n grid-template-columns: ${this.config.columns||"auto"};\n grid-template-rows: ${this.config.rows||"auto"};\n grid-gap: ${this.config.gap||"0"};\n min-height: ${this.config.minHeight||"auto"};\n }\n ${n}\n </style>\n `,t}createCompoundItemContainer(e){const t=e||{},n=document.createElement("div");return n.setAttribute("style",`grid-row: ${t.row||"auto"}; grid-column: ${t.column||"auto"}`),n.classList.add("lui-compoundItemCnt"),n}}const Hr=e=>{const t=e.use;return t?"grid"===t?new Qr(e):t.createCompoundContainer||t.createCompoundItemContainer||t.attachCompoundItem?new Mr(e):new xr(e):new xr(e)},Wr=(e,t,n,r)=>{t?.eventListeners&&t.eventListeners.forEach(t=>{const i=t.source+"."+t.name,s=e[i],o={wcElementId:n,wcElement:r,action:t.action,converter:t.dataConverter};s?s.push(o):e[i]=[o]})};function jr(e){return String(e).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class Gr{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Lr}dynamicImport(e){return Object.freeze(import(/* webpackIgnore: true */e))}processViewUrl(e,t){return e}attachWC(e,t,n,r,i,s,o){if(n&&n.contains(t)){const a=document.createElement(e);s&&a.setAttribute("nodeId",s),a.setAttribute("lui_web_component","true"),this.initWC(a,e,n,i,r,s,o),n.replaceChild(a,t),n._luigi_node&&(n._luigi_mfe_webcomponent=a),n.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(e,t,n){this.containerService.dispatch(e,this.thisComponent,t,n)}createClientAPI(e,t,n,r,i){return{linkManager:()=>{let e=null,t=!1,n=!1,r=!1,i={};const s={navigate:(s,o={},a)=>{const l={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i,...o};this.dispatchLuigiEvent(Nr.NAVIGATION_REQUEST,{link:s,...l},a)},navigateToIntent:(e,t={})=>{let n="#?intent=";if(n+=e,t&&Object.keys(t)?.length){const e=Object.entries(t);if(e.length>0){n+="?";for(const[t,r]of e)n+=t+"="+r+"&";n=n.slice(0,-1)}}s.navigate(n)},fromClosestContext:()=>(t=!0,s),fromContext:t=>(e=t,s),fromVirtualTreeRoot:()=>(n=!0,s),fromParent:()=>(r=!0,s),getCurrentRoute:()=>{const s={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i};return new Promise((e,t)=>{this.containerService.dispatch(Nr.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...s},n=>{n?e(n):t("No current route received.")})})},withParams:e=>(i=e,s),updateModalPathInternalNavigation:(s,o={},a=!1)=>{if(!s)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const l={fromClosestContext:t,fromContext:e,fromParent:r,fromVirtualTreeRoot:n,nodeParams:i};this.dispatchLuigiEvent(Nr.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(l,{history:a,link:s,modal:o}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(Nr.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:s=>{const o={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i};return new Promise((e,t)=>{this.containerService.dispatch(Nr.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)}),this.containerService.dispatch(Nr.PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)})})},openAsDrawer:(e,t={})=>{s.navigate(e,{drawer:t})},openAsModal:(e,t={},n)=>new Promise(r=>{s.navigate(e,{modal:t},e=>{r({goBackValue:e}),n&&"function"==typeof n&&n(e)})}),openAsSplitView:(e,t={})=>{s.navigate(e,{splitView:t})},goBack:e=>{this.dispatchLuigiEvent(Nr.GO_BACK_REQUEST,e)},hasBack:()=>!1,updateModalSettings:(e={},t=!1)=>{this.dispatchLuigiEvent(Nr.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:e,addHistoryEntry:t})}};return s},uxManager:()=>({showAlert:e=>(e.id=this.alertIndex++,new Promise(t=>{this.alertResolvers[e.id]=t,this.dispatchLuigiEvent(Nr.ALERT_REQUEST,e,t=>{this.resolveAlert(e.id,t)})})),showConfirmationModal:e=>new Promise((t,n)=>{this.modalResolver={resolve:t,reject:n},this.containerService.dispatch(Nr.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,e,e=>{e?t():n()})}),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(Nr.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(Nr.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(Nr.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:e=>{this.dispatchLuigiEvent(Nr.SET_DOCUMENT_TITLE_REQUEST,e)},setDirtyStatus:e=>{this.dispatchLuigiEvent(Nr.SET_DIRTY_STATUS_REQUEST,{dirty:e})},setCurrentLocale:e=>{e&&this.dispatchLuigiEvent(Nr.SET_CURRENT_LOCALE_REQUEST,{currentLocale:e})},removeBackdrop:()=>{this.dispatchLuigiEvent(Nr.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(Nr.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(Nr.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(Nr.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(Nr.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(Nr.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:i=>{e&&e.eventBus&&e.eventBus.onPublishEvent(i,t,n);const s={id:i.type,_metaData:{nodeId:t,wc_id:n,src:r},data:i.detail};this.dispatchLuigiEvent(Nr.CUSTOM_MESSAGE,s)},luigiClientInit:()=>{this.dispatchLuigiEvent(Nr.INITIALIZED,{})},addNodeParams:(e,t)=>{i||this.dispatchLuigiEvent(Nr.ADD_NODE_PARAMS_REQUEST,{params:e,data:e,keepBrowserHistory:t})},getNodeParams:e=>{return i?{}:e?(t=this.thisComponent.nodeParams,Object.entries(t).reduce((e,t)=>(e[jr(t[0])]=jr(t[1]),e),{})):this.thisComponent.nodeParams||{};var t},setAnchor:e=>{i||this.dispatchLuigiEvent(Nr.SET_ANCHOR_LINK_REQUEST,e)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(e={},t=!0)=>{this.dispatchLuigiEvent(Nr.ADD_SEARCH_PARAMS_REQUEST,{data:e,keepBrowserHistory:t})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:e=>{this.dispatchLuigiEvent(Nr.SET_VIEW_GROUP_DATA_REQUEST,e)}}}initWC(e,t,n,r,i,s,o){const a=this.createClientAPI(n,s,t,e,o);if(e.__postProcess){const t=new URL(document.baseURI).origin===new URL(r,document.baseURI).origin?new URL("./",new URL(r,document.baseURI)):new URL("./",r);e.__postProcess(i,a,t.origin+t.pathname)}else e.context=i,e.LuigiClient=a}generateWCId(e){let t="";const n=new URL(e,encodeURI(location.href)).href;for(let e=0;e<n.length;e++)t+=n.charCodeAt(e).toString(16);return"luigi-wc-"+t}registerWCFromUrl(e,t){const n=this.processViewUrl(e);return new Promise((e,r)=>{if(this.checkWCUrl(n))this.dynamicImport(n).then(n=>{try{if(!window.customElements.get(t)){let e=n.default;if(!HTMLElement.isPrototypeOf(e)){const t=Object.keys(n);for(let r=0;r<t.length&&(e=n[t[r]],!HTMLElement.isPrototypeOf(e));r++);}window.customElements.define(t,e)}e(1)}catch(e){r(e)}}).catch(e=>{r(e)});else{r(`Error: View URL '${n}' not allowed to be included`)}})}includeSelfRegisteredWCFromUrl(e,t,n){if(this.checkWCUrl(t)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(e,t)=>{window.customElements.define(this.generateWCId(e),t)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(e,t)=>{this.containerService.getContainerManager()._registerWebcomponent(e,t)}));const r=document.createElement("script");r.setAttribute("src",t),"module"===e.webcomponent.type&&r.setAttribute("type","module"),r.setAttribute("defer","true"),r.addEventListener("load",()=>{n()}),document.body.appendChild(r)}else console.warn(`View URL '${t}' not allowed to be included`)}checkWCUrl(e){return!0}renderWebComponent(e,t,n,r,i,s){const o=this.processViewUrl(e,{context:n}),a=r?.webcomponent?.tagName||this.generateWCId(o),l=document.createElement("div");t.appendChild(l),t._luigi_node=r,window.customElements.get(a)?this.attachWC(a,l,t,n,o,i,s):window.luigiWCFn?window.luigiWCFn(o,a,l,()=>{this.attachWC(a,l,t,n,o,i,s)}):r?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(r,o,()=>{this.attachWC(a,l,t,n,o,i,s)}):this.registerWCFromUrl(o,a).then(()=>{this.attachWC(a,l,t,n,o,i,s)}).catch(e=>{console.warn("ERROR =>",e),this.containerService.dispatch(Nr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})}createCompoundContainerAsync(e,t,n){return new Promise((r,i)=>{if(e.viewUrl)try{const i=n?.webcomponent?.tagName||this.generateWCId(e.viewUrl);n?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(n,e.viewUrl,()=>{const n=document.createElement(i);n.setAttribute("lui_web_component","true"),this.initWC(n,i,n,e.viewUrl,t,"_root"),r(n)}):this.registerWCFromUrl(e.viewUrl,i).then(()=>{const n=document.createElement(i);n.setAttribute("lui_web_component","true"),this.initWC(n,i,n,e.viewUrl,t,"_root"),r(n)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Nr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})}catch(e){i(e)}else r(e.createCompoundContainer())})}renderWebComponentCompound(e,t,n){let r;return e.webcomponent&&e.viewUrl?(r=new xr,r.viewUrl=this.processViewUrl(e.viewUrl,{context:n}),r.createCompoundItemContainer=e=>{const t=document.createElement("div");return e?.slot&&t.setAttribute("slot",e.slot),t}):e.compound?.renderer&&(r=Hr(e.compound.renderer)),r=r||new xr,new Promise(i=>{this.createCompoundContainerAsync(r,n,e).then(s=>{t._luigi_mfe_webcomponent=s,t._luigi_node=e;const o={};s.eventBus={listeners:o,onPublishEvent:(e,t,n)=>{const r=o[t+"."+e.type]||[];r.push(...o["*."+e.type]||[]),r.forEach(t=>{const n=t.wcElement||s.querySelector("[nodeId="+t.wcElementId+"]");n?n.dispatchEvent(new CustomEvent(t.action,{detail:t.converter?t.converter(e.detail):e.detail})):console.debug("Could not find event target",t)})}},e.compound?.children?.forEach((e,t)=>{const i={...n,...e.context},a=r.createCompoundItemContainer(e.layoutConfig);a.eventBus=s.eventBus,r.attachCompoundItem(s,a);const l=e.id||"gen_"+t;this.renderWebComponent(e.viewUrl,a,i,e,l,!0),Wr(o,e,l)}),t.appendChild(s),Wr(o,e.compound,"_root",s),i(s)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Nr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})})}resolveAlert(e,t){this.alertResolvers[e]?(this.alertResolvers[e](void 0===t||t),this.alertResolvers[e]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(e){this.modalResolver?(e?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const Br=new class{isFunction(e){return e&&"[object Function]"==={}.toString.call(e)}isObject(e){return!(!e||"object"!=typeof e||Array.isArray(e))}checkWebcomponentValue(e){return"string"==typeof e?JSON.parse(e):"boolean"==typeof e||"object"==typeof e?e:void console.warn("Webcomponent value has a wrong type.")}resolveContext(e){return e?"string"==typeof e?JSON.parse(e):e:{}}};var Vr=Kn("<style>main.lui-isolated,\n .lui-isolated iframe {\n width: 100%;\n height: 100%;\n border: none;\n }\n\n main.lui-isolated {\n line-height: 0;\n }</style> <iframe></iframe>",1),qr=Kn("<main><!></main>");function Fr(e,n){ve(n,!1);let r=Cr(n,"activeFeatureToggleList",12),i=Cr(n,"allowRules",12),s=Cr(n,"anchor",12),o=Cr(n,"authData",12),a=Cr(n,"clientPermissions",12),l=Cr(n,"context",12),c=Cr(n,"deferInit",12),u=Cr(n,"dirtyStatus",12),d=Cr(n,"documentTitle",12),f=Cr(n,"hasBack",12),h=Cr(n,"label",12),p=Cr(n,"locale",12),_=Cr(n,"noShadow",12),v=Cr(n,"nodeParams",12),g=Cr(n,"pathParams",12),m=Cr(n,"sandboxRules",12),E=Cr(n,"searchParams",12),w=Cr(n,"skipCookieCheck",12),T=Cr(n,"skipInitCheck",12),S=Cr(n,"theme",12),b=Cr(n,"userSettings",12),y=Cr(n,"viewurl",12),C=Cr(n,"webcomponent",12);const R=Et({});let O=Et(),$=Et(!1),U=Et();const N=new Gr,L=()=>r()&&i()&&s()&&o()&&a()&&u()&&d()&&f()&&p()&&_()&&v()&&g()&&m()&&E()&&w()&&T()&&S()&&b(),k=e=>{if(!kn($)){e.sendCustomMessage=(t,n)=>{Dr.sendCustomMessage(t,e.getNoShadow()?e:kn(O),!!C(),kn(R),n)},e.updateContext=(t,n)=>{if(l(t),C())(e.getNoShadow()?e:kn(O))._luigi_mfe_webcomponent.context=t;else{const r={...n||{},activeFeatureToggleList:e.activeFeatureToggleList||[],currentLocale:e.locale,currentTheme:e.theme,userSettings:e.userSettings||null,cssVariables:e.cssVariables||{},anchor:e.anchor||"",drawer:e.drawer||!1,modal:e.modal||!1,viewStackSize:e.viewStackSize||0,isNavigateBack:e.isNavigateBack||!1};Dr.updateContext(t,r,kn(R),v(),g(),E())}},e.closeAlert=(t,n)=>{e.notifyAlertClosed(t,n)},e.notifyAlertClosed=(t,n)=>{e.isConnected&&(C()?N.resolveAlert(t,n):Dr.notifyAlertClosed(t,n,kn(R)))},e.notifyConfirmationModalClosed=t=>{e.isConnected&&(C()?N.notifyConfirmationModalClosed(!!t):Dr.notifyConfirmationModalClosed(!!t,kn(R)))},kr.registerContainer(e),N.thisComponent=e;const t=Br.resolveContext(l());if(e.updateViewUrl=(e,t)=>{e?.length&&Dr.updateViewUrl(e,Br.resolveContext(l()),t,kn(R))},C()&&"false"!=C()){if(e.getNoShadow())e.innerHTML="";else{wt(O,kn(O).innerHTML="");e.attachShadow({mode:"open"}).append(kn(O))}const n=Br.checkWebcomponentValue(C());N.renderWebComponent(y(),e.getNoShadow()?e:kn(O),t,"object"==typeof n?{webcomponent:n}:{})}else if(!e.getNoShadow()){e.innerHTML="";e.attachShadow({mode:"open"}).append(kn(O))}T()?(e.initialized=!0,setTimeout(()=>{N.dispatchLuigiEvent(Nr.INITIALIZED,{})})):C()&&(e.getNoShadow()?e:kn(O)).addEventListener("wc_ready",()=>{(e.getNoShadow()?e:kn(O))._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(e.initialized=!0,N.dispatchLuigiEvent(Nr.INITIALIZED,{}))}),Tt($,!0),e.containerInitialized=!0}};var D;sr(async()=>{Tt(U,kn(O).parentNode),wt(U,kn(U).iframeHandle=kn(R)),wt(U,kn(U).init=()=>{k(kn(U))}),!c()&&y()&&k(kn(U))}),D=async()=>{},null===ue&&F("onDestroy"),sr(()=>()=>xn(D)),function(e,t){var n={effect:null,ran:!1,deps:e};ue.l.$.push(n),n.effect=Xt(()=>{if(e(),!n.ran){n.ran=!0;var r=gn;try{mn(r.parent),xn(t)}finally{mn(r)}}})}(()=>(kn($),Mn(y()),Mn(c()),kn(U)),()=>{!kn($)&&y()&&!c()&&kn(U)&&k(kn(U))}),function(){var e=ue;Xt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;0!==(n.f&A)&&null!==n.deps&&Oe(n,I),On(n)&&Ln(n),t.ran=!1}})}();var P={unwarn:L,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ve()},get allowRules(){return i()},set allowRules(e){i(e),Ve()},get anchor(){return s()},set anchor(e){s(e),Ve()},get authData(){return o()},set authData(e){o(e),Ve()},get clientPermissions(){return a()},set clientPermissions(e){a(e),Ve()},get context(){return l()},set context(e){l(e),Ve()},get deferInit(){return c()},set deferInit(e){c(e),Ve()},get dirtyStatus(){return u()},set dirtyStatus(e){u(e),Ve()},get documentTitle(){return d()},set documentTitle(e){d(e),Ve()},get hasBack(){return f()},set hasBack(e){f(e),Ve()},get label(){return h()},set label(e){h(e),Ve()},get locale(){return p()},set locale(e){p(e),Ve()},get noShadow(){return _()},set noShadow(e){_(e),Ve()},get nodeParams(){return v()},set nodeParams(e){v(e),Ve()},get pathParams(){return g()},set pathParams(e){g(e),Ve()},get sandboxRules(){return m()},set sandboxRules(e){m(e),Ve()},get searchParams(){return E()},set searchParams(e){E(e),Ve()},get skipCookieCheck(){return w()},set skipCookieCheck(e){w(e),Ve()},get skipInitCheck(){return T()},set skipInitCheck(e){T(e),Ve()},get theme(){return S()},set theme(e){S(e),Ve()},get userSettings(){return b()},set userSettings(e){b(e),Ve()},get viewurl(){return y()},set viewurl(e){y(e),Ve()},get webcomponent(){return C()},set webcomponent(e){C(e),Ve()}};br();var x=qr(),M=function(e,t){if(!Y)return xt(e);var n=xt(Z);if(null===n)n=Z.appendChild(Pt());else if(t&&3!==n.nodeType){var r=Pt();return n?.before(r),te(r),r}return t&&Wt(n),te(n),n}(x),Q=e=>{var t=function(){if(Y)return Fn(Z,null),Z;var e=document.createDocumentFragment(),t=document.createComment(""),n=Pt();return e.append(t,n),Fn(t,n),e}(),n=Qt(t),r=e=>{var t=Vr(),n=function(e,t=1,n=!1){let r=Y?Z:e;for(var i;t--;)i=r,r=Mt(r);if(!Y)return r;if(n){if(3!==r?.nodeType){var s=Pt();return null===r?i?.after(s):r.before(s),te(s),s}Wt(r)}return te(r),r}(Qt(t),2);Sr(n,e=>wt(R,kn(R).iframe=e),()=>kn(R)?.iframe),Jt((e,t)=>{vr(n,"src",y()),vr(n,"title",h()),vr(n,"allow",e),vr(n,"sandbox",t)},[()=>(Mn(Pr),Mn(i()),xn(()=>Pr(i()))),()=>(Mn(m()),xn(()=>m()?m().join(" "):void 0))]),zn(e,t)};ar(n,e=>{C()&&"false"!==C()||e(r)}),zn(e,t)};return ar(M,e=>{kn($)&&e(Q)}),function(e){if(Y){if(null!==Mt(Z))throw X(),t;Z=e}}(x),Sr(x,e=>Tt(O,e),()=>kn(O)),Jt(()=>fr(x,1,ur(C()?void 0:"lui-isolated"))),zn(e,x),wr(n,"unwarn",L),ge(P)}Ir(Fr,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},allowRules:{attribute:"allow-rules",type:"Array"},anchor:{attribute:"anchor",type:"String"},authData:{attribute:"auth-data",type:"Object"},clientPermissions:{attribute:"client-permissions",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},label:{attribute:"label",type:"String"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},sandboxRules:{attribute:"sandbox-rules",type:"Array"},searchParams:{attribute:"search-params",type:"Object"},skipCookieCheck:{attribute:"skip-cookie-check",type:"String"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,e=>{let t=e=>()=>console.warn(e+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends e{sendCustomMessage=t("sendCustomMessage");updateContext=t("updateContext");updateViewUrl=t("updateViewUrl");closeAlert=t("closeAlert");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(e,t,n){try{super.attributeChangedCallback(e,t,n)}catch(e){console.error("Error in super.attributeChangedCallback",e)}this.containerInitialized&&("context"===e&&this.updateContext(JSON.parse(n)),"auth-data"===e&&Dr.updateAuthData(this.iframeHandle,JSON.parse(n)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}});var Kr=Kn('<main class="svelte-1yfh4yd"></main>');const zr={hash:"svelte-1yfh4yd",code:"main.svelte-1yfh4yd {width:100%;height:100%;border:none;}"};function Xr(e,t){ve(t,!1),lr(e,zr);let n,r=Cr(t,"activeFeatureToggleList",12),i=Cr(t,"anchor",12),s=Cr(t,"clientPermissions",12),o=Cr(t,"compoundConfig",12),a=Cr(t,"context",12),l=Cr(t,"deferInit",12),c=Cr(t,"dirtyStatus",12),u=Cr(t,"documentTitle",12),d=Cr(t,"hasBack",12),f=Cr(t,"locale",12),h=Cr(t,"noShadow",12),p=Cr(t,"nodeParams",12),_=Cr(t,"pathParams",12),v=Cr(t,"searchParams",12),g=Cr(t,"skipInitCheck",12),m=Cr(t,"theme",12),E=Cr(t,"userSettings",12),w=Cr(t,"viewurl",12),T=Cr(t,"webcomponent",12),S=!1,b=Et();const y=new Lr,C=new Gr,R=()=>r()&&i()&&s()&&c()&&u()&&d()&&f()&&h()&&p()&&_()&&v()&&g()&&m()&&E(),A=e=>{if(!o()||S)return;e.updateContext=(t,n)=>{const r=e.getNoShadow()?e:kn(b);r._luigi_mfe_webcomponent.context=t,a(t);const i=r._luigi_mfe_webcomponent;if(i){const e=i.querySelectorAll("[lui_web_component]");e?.forEach(e=>{const n=e.context||{};e.context=Object.assign(n,t)})}};const t=Br.resolveContext(a());l(!1),e.notifyAlertClosed=(t,n)=>{e.isConnected&&C.resolveAlert(t,n)},e.notifyConfirmationModalClosed=t=>{e.isConnected&&C.notifyConfirmationModalClosed(!!t)};const r={compound:o(),viewUrl:w(),webcomponent:Br.checkWebcomponentValue(T())||!0};if(e.getNoShadow())e.innerHTML="";else{wt(b,kn(b).innerHTML="");e.attachShadow({mode:"open"}).append(kn(b))}C.renderWebComponentCompound(r,e.getNoShadow()?e:kn(b),t).then(t=>{n=t,g()||!r.viewUrl?(e.initialized=!0,setTimeout(()=>{C.dispatchLuigiEvent(Nr.INITIALIZED,{})})):n.LuigiClient&&!n.deferLuigiClientWCInit&&(e.initialized=!0,C.dispatchLuigiEvent(Nr.INITIALIZED,{}))}),S=!0,e.containerInitialized=!0};sr(async()=>{const e=kn(b).getRootNode()===document?kn(b).parentNode:kn(b).getRootNode().host;e.init=()=>{A(e)},l()||A(e),y.registerContainer(e),C.thisComponent=e});var O={unwarn:R,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ve()},get anchor(){return i()},set anchor(e){i(e),Ve()},get clientPermissions(){return s()},set clientPermissions(e){s(e),Ve()},get compoundConfig(){return o()},set compoundConfig(e){o(e),Ve()},get context(){return a()},set context(e){a(e),Ve()},get deferInit(){return l()},set deferInit(e){l(e),Ve()},get dirtyStatus(){return c()},set dirtyStatus(e){c(e),Ve()},get documentTitle(){return u()},set documentTitle(e){u(e),Ve()},get hasBack(){return d()},set hasBack(e){d(e),Ve()},get locale(){return f()},set locale(e){f(e),Ve()},get noShadow(){return h()},set noShadow(e){h(e),Ve()},get nodeParams(){return p()},set nodeParams(e){p(e),Ve()},get pathParams(){return _()},set pathParams(e){_(e),Ve()},get searchParams(){return v()},set searchParams(e){v(e),Ve()},get skipInitCheck(){return g()},set skipInitCheck(e){g(e),Ve()},get theme(){return m()},set theme(e){m(e),Ve()},get userSettings(){return E()},set userSettings(e){E(e),Ve()},get viewurl(){return w()},set viewurl(e){w(e),Ve()},get webcomponent(){return T()},set webcomponent(e){T(e),Ve()}};br();var I=Kr();return Sr(I,e=>Tt(b,e),()=>kn(b)),zn(e,I),wr(t,"unwarn",R),ge(O)}Ir(Xr,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},anchor:{attribute:"anchor",type:"String"},clientPermissions:{attribute:"client-permissions",type:"Object"},compoundConfig:{attribute:"compound-config",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},searchParams:{attribute:"search-params",type:"Object"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,e=>{let t=e=>()=>console.warn(e+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends e{updateContext=t("updateContext");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(e,t,n){try{super.attributeChangedCallback(e,t,n)}catch(e){console.warn("Error in attributeChangedCallback",e)}this.containerInitialized&&"context"===e&&this.updateContext(JSON.parse(n))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}),customElements.get("luigi-container")||customElements.define("luigi-container",Fr.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",Xr.element);export{Xr as LuigiCompoundContainer,Fr as LuigiContainer,Nr as LuigiEvents,Nr as default};
1
+ "undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");let e=!1;e=!0;const t={},n=Symbol(),r=Symbol("filename"),i="http://www.w3.org/1999/xhtml",s=globalThis.process?.env?.NODE_ENV;var o=s&&!s.toLowerCase().startsWith("prod"),a=Array.isArray,l=Array.prototype.indexOf,c=Array.prototype.includes,u=Array.from,d=Object.keys,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,m=Object.getPrototypeOf,g=Object.isExtensible;const E=()=>{};function w(e){return e()}function T(e){for(var t=0;t<e.length;t++)e[t]()}function S(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const y=16,b=32,C=64,R=512,A=1024,O=2048,I=4096,$=8192,U=16384,k=32768,N=1<<25,L=65536,D=1<<17,P=1<<19,x=65536,M=1<<21,Q=1<<22,H=1<<23,W=Symbol("$state"),j=Symbol("legacy props"),G=Symbol(""),B=Symbol("proxy path"),V=Symbol("attributes"),q=Symbol("class"),F=Symbol("style"),K=Symbol("text"),z=Symbol("hmr anchor"),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},J=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Z(e){if(o){const t=new Error(`lifecycle_outside_component\n\`${e}(...)\` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Y="font-weight: bold",ee="font-weight: normal";function te(e){o?console.warn(`%c[svelte] hydration_mismatch\n%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}\nhttps://svelte.dev/e/hydration_mismatch`,Y,ee):console.warn("https://svelte.dev/e/hydration_mismatch")}function ne(e){o?console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,Y,ee):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}let re,ie=!1;function se(e){ie=e}function oe(e){if(null===e)throw te(),t;return re=e}function ae(){return oe(qt(re))}function le(e=!0){for(var t=0,n=re;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=qt(n);e&&n.remove(),n=i}}function ce(e){return e===this.v}function ue(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function de(e,t){return e.label=t,fe(e.v,t),e}function fe(e,t){return e?.[B]?.(t),e}function he(e){const t=new Error,n=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),r=[];for(let e=0;e<n.length;e++){const t=n[e],i=t.replaceAll("\\","/");if("Error"!==t.trim()){if(t.includes("validate_each_keys"))return[];i.includes("svelte/src/internal")||i.includes("node_modules/.vite")||r.push(t)}}return r}();return 0===n.length?null:(n.unshift("\n"),f(t,"stack",{value:n.join("\n")}),f(t,"name",{value:e}),t)}function pe(e,t){if(!o)throw new Error("invariant(...) was not guarded by if (DEV)");e||function(e){if(o){const t=new Error(`invariant_violation\nAn invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"\nhttps://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/invariant_violation")}(t)}let _e=null;function ve(e){_e=e}let me=null;function ge(e){me=e}let Ee=null;function we(e){Ee=e}function Te(t,n=!1,r){_e={p:_e,i:!1,c:null,e:null,s:t,x:null,r:Cn,l:e&&!n?{s:null,u:null,$:[]}:null},o&&(_e.function=r,Ee=r)}function Se(e){var t=_e,n=t.e;if(null!==n)for(var r of(t.e=null,n))nn(r);return void 0!==e&&(t.x=e),t.i=!0,_e=t.p,o&&(Ee=_e?.function??null),e??{}}function ye(){return!e||null!==_e&&null===_e.l}let be=[];function Ce(){var e=be;be=[],T(e)}function Re(e){if(0===be.length&&!Be){var t=be;queueMicrotask(()=>{t===be&&Ce()})}be.push(e)}function Ae(){for(;be.length>0;)Ce()}const Oe=new WeakMap;function Ie(e){var t=Cn;if(null===t)return Sn.f|=H,e;if(o&&e instanceof Error&&!Oe.has(e)&&Oe.set(e,function(e,t){const n=h(e,"message");if(n&&!n.configurable)return;var i=Ht?" ":"\t",s=`\n${i}in ${t.fn?.name||"<unknown>"}`,o=t.ctx;for(;null!==o;)s+=`\n${i}in ${o.function?.[r].split("/").pop()}`,o=o.p;return{message:e.message+`\n${s}\n`,stack:e.stack?.split("\n").filter(e=>!e.includes("svelte/src/internal")).join("\n")}}(e,t)),0===(t.f&k)&&!(4&t.f))throw o&&!t.parent&&e instanceof Error&&Ue(e),e;$e(e,t)}function $e(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&k))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw o&&e instanceof Error&&Ue(e),e}function Ue(e){const t=Oe.get(e);t&&(f(e,"message",{value:t.message}),f(e,"stack",{value:t.stack}))}const ke=-7169;function Ne(e,t){e.f=e.f&ke|t}function Le(e){0!==(e.f&R)||null===e.deps?Ne(e,A):Ne(e,I)}function De(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&x)&&(t.f^=x,De(t.deps))}function Pe(e,t,n){0!==(e.f&O)?t.add(e):0!==(e.f&I)&&n.add(e),De(e.deps),Ne(e,A)}let xe=!1;let Me=null,Qe=null,He=null,We=null,je=null,Ge=null,Be=!1,Ve=!1,qe=null,Fe=null;var Ke=0,ze=new Set;let Xe=1;class Je{id=Xe++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#s=new Set;#o=0;#a=new Map;#l=null;#c=[];#u=[];#d=new Set;#f=new Set;#h=new Map;#p=new Set;is_fork=!1;#_=!1;#v(){if(this.is_fork)return!0;for(const n of this.#a.keys()){for(var e=n,t=!1;null!==e.parent;){if(this.#h.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#h.has(e)||this.#h.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#h.get(e);if(n){for(var r of(this.#h.delete(e),n.d))Ne(r,O),t(r);for(r of n.m)Ne(r,I),t(r)}this.#p.add(e)}#m(){if(this.#e=!0,Ke++>1e3&&(this.#g(),function(){if(o){var e=new Map;for(const n of He.current.keys())for(const[r,i]of n.updated??[]){var t=e.get(r);t||(t={error:i.error,count:0},e.set(r,t)),t.count+=i.count}for(const t of e.values())t.error&&console.error(t.error)}try{!function(){if(o){const e=new Error("effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){o&&f(e,"stack",{value:""}),$e(e,Ge)}}()),o)for(const e of this.current.keys())ze.add(e);if(!this.#v()){for(const e of this.#d)this.#f.delete(e),Ne(e,O),this.schedule(e);for(const e of this.#f)Ne(e,I),this.schedule(e)}const e=this.#c;this.#c=[],this.apply();var t=qe=[],n=[],r=Fe=[];for(const r of e)try{this.#E(r,t,n)}catch(e){throw st(r),e}if(He=null,r.length>0){var i=Je.ensure();for(const e of r)i.schedule(e)}if(qe=null,Fe=null,this.#v()){this.#w(n),this.#w(t);for(const[e,t]of this.#h)it(e,t);return void(r.length>0&&He.#m())}const s=this.#T();if(s)s.#S(this);else{this.#d.clear(),this.#f.clear();for(const e of this.#r)e(this);this.#r.clear(),We=this,et(n),et(t),We=null,this.#l?.resolve();var a=He;if(this.linked&&0===this.#o&&this.#g(),this.#c.length>0){null===a&&(a=this,this.#y());const e=a;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}null!==a&&a.#m()}}#E(e,t,n){e.f^=A;for(var r=e.first;null!==r;){var i=r.f,s=!!(96&i);if(!(s&&0!==(i&A)||0!==(i&$)||this.#h.has(r))&&null!==r.fn){s?r.f^=A:4&i?t.push(r):Pn(r)&&(0!==(i&y)&&this.#f.add(r),Wn(r));var o=r.first;if(null!==o){r=o;continue}}for(;null!==r;){var a=r.next;if(null!==a){r=a;break}r=r.parent}}}#T(){for(var e=this.#t;null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=e.#t}return null}#S(e){for(const[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(const[t,n]of e.async_deriveds){const e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}const t=e=>{var n=e.reactions;if(null!==n)for(const e of n){var r=e.f;if(2&r)t(e);else{var i=e;4194320&r&&!this.async_deriveds.has(i)&&(this.#f.delete(i),Ne(i,O),this.schedule(i))}}};for(const e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#g(),He=this,this.#m()}#w(e){for(var t=0;t<e.length;t+=1)Pe(e[t],this.#d,this.#f)}capture(e,t,r=!1){e.v===n||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&H)&&(this.current.set(e,[t,r]),je?.set(e,t)),this.is_fork||(e.v=t)}activate(){He=this}deactivate(){He=null,je=null}flush(){try{o&&ze.clear(),Ve=!0,He=this,this.#m()}finally{if(Ke=0,Ge=null,qe=null,Fe=null,Ve=!1,He=null,je=null,St.clear(),o)for(const e of ze)e.updated=null}}discard(){for(const e of this.#i)e(this);this.#i.clear(),this.#s.clear(),this.#g()}register_created_effect(e){this.#u.push(e)}#b(){this.#g();for(let u=Me;null!==u;u=u.#n){var e=u.id<this.id,t=[];for(const[r,[i,s]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(!e||i===n)continue;u.current.set(r,[i,s])}t.push(r)}if(e)for(const[e,t]of this.async_deriveds){const n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(u.#e){var r=[...u.current.keys()].filter(e=>!this.current.has(e));if(0===r.length)e&&u.discard();else if(t.length>0){if(o&&pe(0===u.#c.length,"Batch has scheduled roots"),e)for(const e of this.#p)u.unskip_effect(e,e=>{4194320&e.f?u.schedule(e):u.#w([e])});u.activate();var i=new Set,s=new Map;for(var a of t)tt(a,r,i,s);s=new Map;var l=[...u.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e.v);if(l.length>0)for(const e of this.#u)155648&e.f||!nt(e,l,s)||(4194320&e.f?(Ne(e,O),u.schedule(e)):u.#d.add(e));if(u.#c.length>0){for(var c of(u.apply(),u.#c))u.#E(c,[],[]);u.#c=[]}u.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#a.get(t)??0;this.#a.set(t,e+1)}}decrement(e,t){if(this.#o-=1,e){let e=this.#a.get(t)??0;1===e?this.#a.delete(t):this.#a.set(t,e-1)}this.#_||(this.#_=!0,Re(()=>{this.#_=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(const t of e)this.#d.add(t);for(const e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#s.add(e)}run_fork_commit_callbacks(){for(const e of this.#s)e(this);this.#s.clear()}settled(){return(this.#l??=S()).promise}static ensure(){if(null===He){const e=He=new Je;e.#y(),Ve||Be||Re(()=>{e.#e||e.flush()})}return He}apply(){je=null}schedule(e){if(Ge=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&k))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===qe||t!==Cn||null!==Sn&&2&Sn.f))return;if(96&n){if(0===(n&A))return;t.f^=A}}this.#c.push(t)}}#y(){null===Qe?Me=Qe=this:(Qe.#n=this,this.#t=Qe),Qe=this}#g(){var e=this.#t,t=this.#n;null===e?Me=t:e.#n=t,null===t?Qe=e:t.#t=e,this.linked=!1}}function Ze(e){var t=Be;Be=!0;try{var n;for(e&&(null===He||He.is_fork||He.flush(),n=e());;){if(Ae(),null===He)return n;He.flush()}}finally{Be=t}}let Ye=null;function et(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&Pn(r)&&(Ye=new Set,Wn(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&fn(r),Ye?.size>0)){St.clear();for(const e of Ye){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Ye.has(n)&&(Ye.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Wn(n)}}Ye.clear()}}Ye=null}}function tt(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?tt(i,t,n,r):4194320&e&&0===(e&O)&&nt(i,t,r)&&(Ne(i,O),rt(i))}}function nt(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(c.call(t,r))return!0;if(2&r.f&&nt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function rt(e){He.schedule(e)}function it(e,t){if(0===(e.f&b)||0===(e.f&A)){0!==(e.f&O)?t.d.push(e):0!==(e.f&I)&&t.m.push(e),Ne(e,A);for(var n=e.first;null!==n;)it(n,t),n=n.next}}function st(e){Ne(e,A);for(var t=e.first;null!==t;)st(t),t=t.next}class ot{parent;is_pending=!1;transform_error;#C;#R=ie?re:null;#A;#O;#I;#$=null;#U=null;#k=null;#N=null;#L=0;#D=0;#P=!1;#d=new Set;#f=new Set;#x=null;#M=function(e){let t,n=0,r=Ct(0);return o&&de(r,"createSubscriber version"),()=>{Yt()&&(jn(r),sn(()=>(0===n&&(t=Vn(()=>e(()=>kt(r)))),n+=1,()=>{Re(()=>{n-=1,0===n&&(t?.(),t=void 0,kt(r))})})))}}(()=>(this.#x=Ct(this.#L),o&&de(this.#x,"$effect.pending()"),()=>{this.#x=null}));constructor(e,t,n,r){this.#C=e,this.#A=t,this.#O=e=>{var t=Cn;t.b=this,t.f|=128,n(e)},this.parent=Cn.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#I=an(()=>{if(ie){const e=this.#R;ae();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#Q(t)}else t?this.#H():this.#W()}else this.#j()},589824),ie&&(this.#C=re)}#W(){try{this.#$=ln(()=>this.#O(this.#C))}catch(e){this.error(e)}}#Q(e){const t=this.#A.failed;t&&(this.#k=ln(()=>{t(this.#C,()=>e,()=>()=>{})}))}#H(){const e=this.#A.pending;e&&(this.is_pending=!0,this.#U=ln(()=>e(this.#C)),Re(()=>{var e=this.#N=document.createDocumentFragment(),t=Bt();e.append(t),this.#$=this.#G(()=>ln(()=>this.#O(t))),0===this.#D&&(this.#C.before(e),this.#N=null,hn(this.#U,()=>{this.#U=null}),this.#B(He))}))}#j(){try{if(this.is_pending=this.has_pending_snippet(),this.#D=0,this.#L=0,this.#$=ln(()=>{this.#O(this.#C)}),this.#D>0){var e=this.#N=document.createDocumentFragment();mn(this.#$,e);const t=this.#A.pending;this.#U=ln(()=>t(this.#C))}else this.#B(He)}catch(e){this.error(e)}}#B(e){this.is_pending=!1,e.transfer_effects(this.#d,this.#f)}defer_effect(e){Pe(e,this.#d,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#A.pending}#G(e){var t=Cn,n=Sn,r=_e;Rn(this.#I),bn(this.#I),ve(this.#I.ctx);try{return Je.ensure(),e()}catch(e){return Ie(e),null}finally{Rn(t),bn(n),ve(r)}}#V(e,t){this.has_pending_snippet()?(this.#D+=e,0===this.#D&&(this.#B(t),this.#U&&hn(this.#U,()=>{this.#U=null}),this.#N&&(this.#C.before(this.#N),this.#N=null))):this.parent&&this.parent.#V(e,t)}update_pending_count(e,t){this.#V(e,t),this.#L+=e,this.#x&&!this.#P&&(this.#P=!0,Re(()=>{this.#P=!1,this.#x&&$t(this.#x,this.#L)}))}get_effect_pending(){return this.#M(),jn(this.#x)}error(e){if(!this.#A.onerror&&!this.#A.failed)throw e;He?.is_fork?(this.#$&&He.skip_effect(this.#$),this.#U&&He.skip_effect(this.#U),this.#k&&He.skip_effect(this.#k),He.on_fork_commit(()=>{this.#q(e)})):this.#q(e)}#q(e){this.#$&&(dn(this.#$),this.#$=null),this.#U&&(dn(this.#U),this.#U=null),this.#k&&(dn(this.#k),this.#k=null),ie&&(oe(this.#R),function(e=1){if(ie){for(var t=e,n=re;t--;)n=qt(n);re=n}}(),oe(le()));var t=this.#A.onerror;let n=this.#A.failed;var r=!1,i=!1;const s=()=>{r?o?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",Y,ee):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,i&&function(){if(o){const e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#k&&hn(this.#k,()=>{this.#k=null}),this.#G(()=>{this.#j()}))},a=e=>{try{i=!0,t?.(e,s),i=!1}catch(e){$e(e,this.#I&&this.#I.parent)}n&&(this.#k=this.#G(()=>{try{return ln(()=>{var t=Cn;t.b=this,t.f|=128,n(this.#C,()=>e,()=>s)})}catch(e){return $e(e,this.#I.parent),null}}))};Re(()=>{var t;try{t=this.transform_error(e)}catch(e){return void $e(e,this.#I&&this.#I.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(a,e=>$e(e,this.#I&&this.#I.parent)):a(t)})}}function at(e,t,r,i){const s=ye()?ht:_t;var a=e.filter(e=>!e.settled);if(0!==r.length||0!==a.length){var l=Cn,c=function(){var e=Cn,t=Sn,n=_e,r=He;if(o)var i=me;return function(s=!0){Rn(e),bn(t),ve(n),s&&0===(e.f&U)&&(r?.activate(),r?.apply()),o&&(dt(null),ge(i))}}(),u=1===a.length?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null,d=ct();0!==r.length?u?u.then(()=>{c(),h(),lt()}):h():u.then(()=>f(t.map(s))).finally(d)}else i(t.map(s));function f(e){if(0===(l.f&U)){c();try{i(e)}catch(e){$e(e,l)}lt()}}function h(){Promise.all(r.map(e=>function(e,t,r){let i=Cn;null===i&&function(){if(o){const e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/async_derived_orphan")}();var s=void 0,a=Ct(n);o&&(a.label=t??e.toString());var l=!Sn,c=new Set;(function(e){Zt(4718592,e)})(()=>{var t=Cn;o&&(ut={effect:t,effect_deps:new Set,warned:!1});var n=S();s=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==X&&n.reject(e)}).finally(lt)}catch(e){n.reject(e),lt()}if(o){if(ut){if(null!==t.deps)for(let e=0;e<In;e+=1)ut.effect_deps.add(t.deps[e]);if(null!==On)for(let e=0;e<On.length;e+=1)ut.effect_deps.add(On[e])}ut=null}var u=He;if(l){if(0!==(t.f&k))var d=ct();if(i.b.is_rendered())u.async_deriveds.get(t)?.reject(pt);else for(const e of c.values())e.reject(pt);c.add(n),u.async_deriveds.set(t,n)}const f=(e,i=void 0)=>{o&&(ut=null),d?.(),c.delete(n),i!==pt&&(u.activate(),i?(a.f|=H,$t(a,i)):(0!==(a.f&H)&&(a.f^=H),$t(a,e),o&&void 0!==r&&(ft.add(a),setTimeout(()=>{ft.has(a)&&0===(t.f&U)&&(!function(e,t){o?console.warn(`%c[svelte] await_waterfall\n%cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app\nhttps://svelte.dev/e/await_waterfall`,Y,ee):console.warn("https://svelte.dev/e/await_waterfall")}(a.label,r),ft.delete(a))}))),u.deactivate())};n.promise.then(f,e=>f(null,e||"unknown"))}),en(()=>{for(const e of c)e.reject(pt)}),o&&(a.f|=Q);return new Promise(e=>{function t(n){function r(){n===s?e(a):t(s)}n.then(r,r)}t(s)})}(e))).then(e=>f([...t.map(s),...e])).catch(e=>$e(e,l)).finally(d)}}function lt(e=!0){Rn(null),bn(null),ve(null),e&&He?.deactivate(),o&&(dt(null),ge(null))}function ct(){var e=Cn,t=e.b,n=He,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}let ut=null;function dt(e){ut=e}const ft=new Set;function ht(e){null!==Cn&&(Cn.f|=P);const t={ctx:_e,deps:null,effects:null,equals:ce,f:2050,fn:e,reactions:null,rv:0,v:n,wv:0,parent:Cn,ac:null};return t}const pt=Symbol("obsolete");function _t(e){const t=ht(e);return t.equals=ue,t}function vt(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)dn(t[n])}}let mt=[];function gt(e){var t,n=Cn,r=e.parent;if(!wn&&null!==r&&24576&r.f)return o?console.warn("%c[svelte] derived_inert\n%cReading a derived belonging to a now-destroyed effect may result in stale values\nhttps://svelte.dev/e/derived_inert",Y,ee):console.warn("https://svelte.dev/e/derived_inert"),e.v;if(Rn(r),o){let r=Tt;yt(new Set);try{c.call(mt,e)&&function(){if(o){const e=new Error("derived_references_self\nA derived value cannot reference itself recursively\nhttps://svelte.dev/e/derived_references_self");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/derived_references_self")}(),mt.push(e),e.f&=-65537,vt(e),t=Mn(e)}finally{Rn(n),yt(r),mt.pop()}}else try{e.f&=-65537,vt(e),t=Mn(e)}finally{Rn(n)}return t}function Et(e){var t=gt(e);e.equals(t)||(e.wv=Dn(),He?.is_fork&&null!==e.deps||(null!==He?(He.capture(e,t,!0),We?.capture(e,t,!0)):e.v=t,null!==e.deps))?wn||(null!==je?(Yt()||He?.is_fork)&&je.set(e,t):Le(e)):Ne(e,A)}function wt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Wn(t)}let Tt=new Set;const St=new Map;function yt(e){Tt=e}let bt=!1;function Ct(e,t){var n={f:0,v:e,reactions:null,equals:ce,rv:0,wv:0};return n}function Rt(e,t){const n=Ct(e);var r;return r=n,null!==Sn&&(null===An?An=[r]:An.push(r)),n}function At(t,n=!1,r=!0){const i=Ct(t);return n||(i.equals=ue),e&&r&&null!==_e&&null!==_e.l&&(_e.l.s??=[]).push(i),i}function Ot(e,t){return It(e,Vn(()=>jn(e))),t}function It(e,t,n=!1){null===Sn||yn&&0===(Sn.f&D)||!ye()||!(4325394&Sn.f)||null!==An&&c.call(An,e)||function(){if(o){const e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let r=n?Dt(t):t;return o&&fe(r,e.label),$t(e,r,Fe)}function $t(e,t,n=null){if(!e.equals(t)){St.set(e,wn?t:e.v);var r=Je.ensure();if(r.capture(e,t),o){if(null!==Cn){e.updated??=new Map;const t=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:t}),t>5){const t=he("updated at");if(null!==t){let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}}null!==Cn&&(e.set_during_effect=!0)}if(2&e.f){const t=e;0!==(e.f&O)&&gt(t),null===je&&Le(t)}e.wv=Dn(),Nt(e,O,n),!ye()||null===Cn||0===(Cn.f&A)||96&Cn.f||(null===$n?function(e){$n=e}([e]):$n.push(e)),!r.is_fork&&Tt.size>0&&!bt&&Ut()}return t}function Ut(){bt=!1;for(const e of Tt){let t;0!==(e.f&A)&&Ne(e,I);try{t=Pn(e)}catch{t=!0}t&&Wn(e)}Tt.clear()}function kt(e){It(e,e.v+1)}function Nt(e,t,n){var r=e.reactions;if(null!==r)for(var i=ye(),s=r.length,o=0;o<s;o++){var a=r[o],l=a.f;if(i||a!==Cn){var c=0===(l&O);if(c&&Ne(a,t),0!==(l&D))Tt.add(a);else if(2&l){var u=a;je?.delete(u),0===(l&x)&&(l&R&&(null===Cn||0===(Cn.f&M))&&(a.f|=x),Nt(u,I,n))}else if(c){var d=a;0!==(l&y)&&null!==Ye&&Ye.add(d),null!==n?n.push(d):rt(d)}}}}const Lt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Dt(e){if("object"!=typeof e||null===e||W in e)return e;const t=m(e);if(t!==_&&t!==v)return e;var r=new Map,i=a(e),s=Rt(0),l=Nn,c=e=>{if(Nn===l)return e();var t=Sn,n=Nn;bn(null),Ln(l);var r=e();return bn(t),Ln(n),r};i&&(r.set("length",Rt(e.length)),o&&(e=new Proxy(e,{get(e,t,n){var r=Reflect.get(e,t,n);return Mt.has(t)?function(...e){bt=!0;var t=r.apply(this,e);return Ut(),t}:r}})));var u="";let d=!1;function f(e){if(!d){d=!0,de(s,`${u=e} version`);for(const[e,t]of r)de(t,Pt(u,e));d=!1}}return new Proxy(e,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){if(o){const e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=r.get(t);return void 0===i?c(()=>{var e=Rt(n.value);return r.set(t,e),o&&"string"==typeof t&&de(e,Pt(u,t)),e}):It(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(void 0===i){if(t in e){const e=c(()=>Rt(n));r.set(t,e),kt(s),o&&de(e,Pt(u,t))}}else It(i,n),kt(s);return!0},get(t,i,s){if(i===W)return e;if(o&&i===B)return f;var a=r.get(i),l=i in t;if(void 0!==a||l&&!h(t,i)?.writable||(a=c(()=>{var e=Rt(Dt(l?t[i]:n));return o&&de(e,Pt(u,i)),e}),r.set(i,a)),void 0!==a){var d=jn(a);return d===n?void 0:d}return Reflect.get(t,i,s)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&"value"in i){var s=r.get(t);s&&(i.value=jn(s))}else if(void 0===i){var o=r.get(t),a=o?.v;if(void 0!==o&&a!==n)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return i},has(e,t){if(t===W)return!0;var i=r.get(t),s=void 0!==i&&i.v!==n||Reflect.has(e,t);if((void 0!==i||null!==Cn&&(!s||h(e,t)?.writable))&&(void 0===i&&(i=c(()=>{var r=Rt(s?Dt(e[t]):n);return o&&de(r,Pt(u,t)),r}),r.set(t,i)),jn(i)===n))return!1;return s},set(e,t,a,l){var d=r.get(t),f=t in e;if(i&&"length"===t)for(var p=a;p<d.v;p+=1){var _=r.get(p+"");void 0!==_?It(_,n):p in e&&(_=c(()=>Rt(n)),r.set(p+"",_),o&&de(_,Pt(u,p)))}void 0===d?f&&!h(e,t)?.writable||(d=c(()=>Rt(void 0)),o&&de(d,Pt(u,t)),It(d,Dt(a)),r.set(t,d)):(f=d.v!==n,It(d,c(()=>Dt(a))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(l,a),!f){if(i&&"string"==typeof t){var m=r.get("length"),g=Number(t);Number.isInteger(g)&&g>=m.v&&It(m,g+1)}kt(s)}return!0},ownKeys(e){jn(s);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==n});for(var[i,o]of r)o.v===n||i in e||t.push(i);return t},setPrototypeOf(){!function(){if(o){const e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Pt(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Lt.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function xt(e){try{if(null!==e&&"object"==typeof e&&W in e)return e[W]}catch{}return e}const Mt=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var Qt,Ht,Wt,jt;function Gt(){if(void 0===Qt){Qt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=h(t,"firstChild").get,jt=h(t,"nextSibling").get,g(e)&&(e[q]=void 0,e[V]=null,e[F]=void 0,e.__e=void 0),g(n)&&(n[K]=void 0),o&&(e.__svelte_meta=null,function(){const e=Array.prototype,t=Array.__svelte_cleanup;t&&t();const{indexOf:n,lastIndexOf:r,includes:i}=e;e.indexOf=function(e,t){const r=n.call(this,e,t);if(-1===r)for(let n=t??0;n<this.length;n+=1)if(xt(this[n])===e){ne("array.indexOf(...)");break}return r},e.lastIndexOf=function(e,t){const n=r.call(this,e,t??this.length-1);if(-1===n)for(let n=0;n<=(t??this.length-1);n+=1)if(xt(this[n])===e){ne("array.lastIndexOf(...)");break}return n},e.includes=function(e,t){const n=i.call(this,e,t);if(!n)for(let t=0;t<this.length;t+=1)if(xt(this[t])===e){ne("array.includes(...)");break}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=r,e.includes=i}}())}}function Bt(e=""){return document.createTextNode(e)}function Vt(e){return Wt.call(e)}function qt(e){return jt.call(e)}function Ft(e,t=!1){if(!ie){var n=Vt(e);return n instanceof Comment&&""===n.data?qt(n):n}if(t){if(3!==re?.nodeType){var r=Bt();return re?.before(r),oe(r),r}zt(re)}return re}function Kt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??i,e,r)}function zt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Xt(e){var t=Sn,n=Cn;bn(null),Rn(null);try{return e()}finally{bn(t),Rn(n)}}function Jt(e){null===Cn&&(null===Sn&&function(e){if(o){const t=new Error(`effect_orphan\n\`${e}\` can only be used inside an effect (e.g. during component initialisation)\nhttps://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_orphan")}(e),function(){if(o){const e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),wn&&function(e){if(o){const t=new Error(`effect_in_teardown\n\`${e}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_in_teardown")}(e)}function Zt(e,t){var n=Cn;if(o)for(;null!==n&&0!==(n.f&D);)n=n.parent;null!==n&&0!==(n.f&$)&&(e|=$);var r={ctx:_e,deps:null,nodes:null,f:e|O|R,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};o&&(r.component_function=Ee),He?.register_created_effect(r);var i=r;if(4&e)null!==qe?qe.push(r):Je.ensure().schedule(r);else if(null!==t){try{Wn(r)}catch(i){throw dn(r),i}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&0===(i.f&P)&&(i=i.first,0!==(e&y)&&0!==(e&L)&&null!==i&&(i.f|=L))}if(null!==i&&(i.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(i,n),null!==Sn&&2&Sn.f&&0===(e&C))){var s=Sn;(s.effects??=[]).push(i)}return r}function Yt(){return null!==Sn&&!yn}function en(e){const t=Zt(8,null);return Ne(t,A),t.teardown=e,t}function tn(e){Jt("$effect"),o&&f(e,"name",{value:"$effect"});var t=Cn.f;if(!(!Sn&&0!==(t&b)&&0===(t&k)))return nn(e);var n=_e;(n.e??=[]).push(e)}function nn(e){return Zt(1048580,e)}function rn(e){return Zt(4,e)}function sn(e,t=0){return Zt(8|t,e)}function on(e,t=[],n=[],r=[]){at(r,t,n,t=>{Zt(8,()=>e(...t.map(jn)))})}function an(e,t=0){var n=Zt(y|t,e);return o&&(n.dev_stack=me),n}function ln(e){return Zt(524320,e)}function cn(e){var t=e.teardown;if(null!==t){const e=wn,n=Sn;Tn(!0),bn(null);try{t.call(null)}finally{Tn(e),bn(n)}}}function un(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Xt(()=>{e.abort(X)});var r=n.next;0!==(n.f&C)?n.parent=null:dn(n,t),n=r}}function dn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(!function(e,t){for(;null!==e;){var n=e===t?null:qt(e);e.remove(),e=n}}(e.nodes.start,e.nodes.end),n=!0),Ne(e,N),un(e,t&&!n),Hn(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();cn(e),e.f^=N,e.f|=U;var i=e.parent;null!==i&&null!==i.first&&fn(e),o&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function fn(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hn(e,t,n=!0){var r=[];pn(e,r,!0);var i=()=>{n&&dn(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var a of r)a.out(o)}else i()}function pn(e,t,n){if(0===(e.f&$)){e.f^=$;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var s=i.next;if(0===(i.f&C))pn(i,t,!!(0!==(i.f&L)||0!==(i.f&b)&&0!==(e.f&y))&&n);i=s}}}function _n(e){vn(e,!0)}function vn(e,t){if(0!==(e.f&$)){e.f^=$,0===(e.f&A)&&(Ne(e,O),Je.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;vn(n,!!(0!==(n.f&L)||0!==(n.f&b))&&t),n=r}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function mn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:qt(n);t.append(n),n=i}}let gn=null,En=!1,wn=!1;function Tn(e){wn=e}let Sn=null,yn=!1;function bn(e){Sn=e}let Cn=null;function Rn(e){Cn=e}let An=null;let On=null,In=0,$n=null;let Un=1,kn=0,Nn=kn;function Ln(e){Nn=e}function Dn(){return++Un}function Pn(e){var t=e.f;if(0!==(t&O))return!0;if(2&t&&(e.f&=-65537),0!==(t&I)){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Pn(s)&&Et(s),s.wv>e.wv)return!0}0!==(t&R)&&null===je&&Ne(e,A)}return!1}function xn(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===An||!c.call(An,e)))for(var i=0;i<r.length;i++){var s=r[i];2&s.f?xn(s,t,!1):t===s&&(n?Ne(s,O):0!==(s.f&A)&&Ne(s,I),rt(s))}}function Mn(e){var t=On,n=In,r=$n,i=Sn,s=An,o=_e,a=yn,l=Nn,c=e.f;On=null,In=0,$n=null,Sn=96&c?null:e,An=null,ve(e.ctx),yn=!1,Nn=++kn,null!==e.ac&&(Xt(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=M;var u=(0,e.fn)();e.f|=k;var d=e.deps,f=He?.is_fork;if(null!==On){var h;if(f||Hn(e,In),null!==d&&In>0)for(d.length=In+On.length,h=0;h<On.length;h++)d[In+h]=On[h];else e.deps=d=On;if(Yt()&&0!==(e.f&R))for(h=In;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!f&&null!==d&&In<d.length&&(Hn(e,In),d.length=In);if(ye()&&null!==$n&&!yn&&null!==d&&!(6146&e.f))for(h=0;h<$n.length;h++)xn($n[h],e);if(null!==i&&i!==e){if(kn++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=kn;if(null!==t)for(const e of t)e.rv=kn;null!==$n&&(null===r?r=$n:r.push(...$n))}return 0!==(e.f&H)&&(e.f^=H),u}catch(e){return Ie(e)}finally{e.f^=M,On=t,In=n,$n=r,Sn=i,An=s,ve(o),yn=a,Nn=l}}function Qn(e,t){let r=t.reactions;if(null!==r){var i=l.call(r,e);if(-1!==i){var s=r.length-1;0===s?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(null===r&&2&t.f&&(null===On||!c.call(On,t))){var o=t;0!==(o.f&R)&&(o.f^=R,o.f&=-65537),o.v!==n&&Le(o),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=E,t.ac=null,Hn(t,0),un(t))}(o),Hn(o,0)}}function Hn(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Qn(e,n[r])}function Wn(e){var t=e.f;if(0===(t&U)){Ne(e,A);var n=Cn,r=En;if(Cn=e,En=!0,o){var i=Ee;we(e.component_function);var s=me;ge(e.dev_stack??me)}try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&b)&&dn(t),t=n}}(e):un(e),cn(e);var a=Mn(e);e.teardown="function"==typeof a?a:null,e.wv=Un}finally{En=r,Cn=n,o&&(we(i),ge(s))}}}function jn(e){var t,n=!!(2&e.f);if((gn?.add(e),null!==Sn&&!yn)&&!(null!==Cn&&0!==(Cn.f&U)||null!==An&&c.call(An,e))){var r=Sn.deps;if(0!==(Sn.f&M))e.rv<kn&&(e.rv=kn,null===On&&null!==r&&r[In]===e?In++:null===On?On=[e]:On.push(e));else{(Sn.deps??=[]).push(e);var i=e.reactions;null===i?e.reactions=[Sn]:c.call(i,Sn)||i.push(Sn)}}if(o){if(!yn&&ut&&!ut.warned&&0===(ut.effect.f&M)&&!ut.effect_deps.has(e)){ut.warned=!0,t=e.label,o?console.warn(`%c[svelte] await_reactivity_loss\n%cDetected reactivity loss when reading \`${t}\`. This happens when state is read in an async function after an earlier \`await\`\nhttps://svelte.dev/e/await_reactivity_loss`,Y,ee):console.warn("https://svelte.dev/e/await_reactivity_loss");var s=he("traced at");s&&console.warn(s)}ft.delete(e)}if(wn&&St.has(e))return St.get(e);if(n){var a=e;if(wn){var l=a.v;return(0===(a.f&A)&&null!==a.reactions||Bn(a))&&(l=gt(a)),St.set(a,l),l}var u=0===(a.f&R)&&!yn&&null!==Sn&&(En||0!==(Sn.f&R)),d=0===(a.f&k);Pn(a)&&(u&&(a.f|=R),Et(a)),u&&!d&&(wt(a),Gn(a))}if(je?.has(e))return je.get(e);if(0!==(e.f&H))throw e.v;return e.v}function Gn(e){if(e.f|=R,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&R)&&(wt(t),Gn(t))}function Bn(e){if(e.v===n)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(St.has(t))return!0;if(2&t.f&&Bn(t))return!0}return!1}function Vn(e){var t=yn;try{return yn=!0,e()}finally{yn=t}}function qn(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(W in e)Fn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&W in n&&Fn(n)}}function Fn(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Fn(e[n],t)}catch(e){}const n=m(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=p(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}const Kn=Symbol("events"),zn=new Set,Xn=new Set;let Jn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Jn=e;var o=0,a=Jn===e&&e[Kn];if(a){var l=i.indexOf(a);if(-1!==l&&(t===document||t===window))return void(e[Kn]=t);var c=i.indexOf(t);if(-1===c)return;l<=c&&(o=l)}if((s=i[o]||e.target)!==t){f(e,"currentTarget",{configurable:!0,get:()=>s||n});var u=Sn,d=Cn;bn(null),Rn(null);try{for(var h,p=[];null!==s;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var v=s[Kn]?.[r];null==v||s.disabled&&e.target!==s||v.call(s,e)}catch(e){h?p.push(e):h=e}if(e.cancelBubble||_===t||null===_)break;s=_}if(h){for(let e of p)queueMicrotask(()=>{throw e});throw h}}finally{e[Kn]=t,delete e.currentTarget,bn(u),Rn(d)}}}const Yn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function er(e){var t=Kt("template");return t.innerHTML=function(e){return Yn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function tr(e,t){var n=Cn;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n,r=!!(1&t),i=!!(2&t),s=!e.startsWith("<!>");return()=>{if(ie)return tr(re,null),re;void 0===n&&(n=er(s?e:"<!>"+e),r||(n=Vt(n)));var t=i||Ht?document.importNode(n,!0):n.cloneNode(!0);r?tr(Vt(t),t.lastChild):tr(t,t);return t}}function rr(e,t){if(ie){var n=Cn;return 0!==(n.f&k)&&null!==n.nodes.end||(n.nodes.end=re),void ae()}null!==e&&e.before(t)}const ir=["touchstart","touchmove"];function sr(e){return ir.includes(e)}function or(e,t){return cr(e,t)}function ar(e,n){Gt(),n.intro=n.intro??!1;const r=n.target,i=ie,s=re;try{for(var a=Vt(r);a&&(8!==a.nodeType||"["!==a.data);)a=qt(a);if(!a)throw t;se(!0),oe(a);const i=cr(e,{...n,anchor:a});return se(!1),i}catch(i){if(i instanceof Error&&i.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw i;return i!==t&&console.warn("Failed to hydrate: ",i),!1===n.recover&&function(){if(o){const e=new Error("hydration_failed\nFailed to hydrate the application\nhttps://svelte.dev/e/hydration_failed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/hydration_failed")}(),Gt(),r.textContent="",se(!1),or(e,n)}finally{se(i),oe(s)}}const lr=new Map;function cr(e,{target:n,anchor:r,props:i={},events:s,context:o,intro:a=!0,transformError:l}){Gt();var c=void 0,d=function(e){Je.ensure();const t=Zt(524352,e);return(e={})=>new Promise(n=>{e.outro?hn(t,()=>{dn(t),n(void 0)}):(dn(t),n(void 0))})}(()=>{var a=r??n.appendChild(Bt());!function(e,t,n,r){new ot(e,t,n,r)}(a,{pending:()=>{}},n=>{if(Te({}),o&&(_e.c=o),s&&(i.$$events=s),ie&&tr(n,null),c=e(n,i)||{},ie&&(Cn.nodes.end=re,null===re||8!==re.nodeType||"]"!==re.data))throw te(),t;Se()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=sr(r);for(const e of[n,document]){var s=lr.get(e);void 0===s&&(s=new Map,lr.set(e,s));var o=s.get(r);void 0===o?(e.addEventListener(r,Zn,{passive:i}),s.set(r,1)):s.set(r,o+1)}}}};return f(u(zn)),Xn.add(f),()=>{for(var e of d)for(const r of[n,document]){var t=lr.get(r),i=t.get(e);0==--i?(r.removeEventListener(e,Zn),t.delete(e),0===t.size&&lr.delete(r)):t.set(e,i)}Xn.delete(f),a!==r&&a.parentNode?.removeChild(a)}});return ur.set(c,d),c}let ur=new WeakMap;function dr(e,t){const n=ur.get(e);return n?(ur.delete(e),n(t)):(o&&(W in e?o?console.warn("%c[svelte] state_proxy_unmount\n%cTried to unmount a state proxy, rather than a component\nhttps://svelte.dev/e/state_proxy_unmount",Y,ee):console.warn("https://svelte.dev/e/state_proxy_unmount"):o?console.warn("%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount",Y,ee):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}class fr{anchor;#F=new Map;#K=new Map;#z=new Map;#X=new Set;#J=!0;constructor(e,t=!0){this.anchor=e,this.#J=t}#b=e=>{if(this.#F.has(e)){var t=this.#F.get(e),n=this.#K.get(t);if(n)_n(n),this.#X.delete(t);else{var r=this.#z.get(t);r&&(this.#K.set(t,r.effect),this.#z.delete(t),o&&(r.fragment.lastChild[z]=this.anchor),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#F){if(this.#F.delete(t),t===e)break;const r=this.#z.get(n);r&&(dn(r.effect),this.#z.delete(n))}for(const[e,r]of this.#K){if(e===t||this.#X.has(e))continue;const i=()=>{if(Array.from(this.#F.values()).includes(e)){var t=document.createDocumentFragment();mn(r,t),t.append(Bt()),this.#z.set(e,{effect:r,fragment:t})}else dn(r);this.#X.delete(e),this.#K.delete(e)};this.#J||!n?(this.#X.add(e),hn(r,i,!1)):i()}}};#Z=e=>{this.#F.delete(e);const t=Array.from(this.#F.values());for(const[e,n]of this.#z)t.includes(e)||(dn(n.effect),this.#z.delete(e))};ensure(e,t){var n=He;!t||this.#K.has(e)||this.#z.has(e)||this.#K.set(e,ln(()=>t(this.anchor)));this.#F.set(n,e),ie&&(this.anchor=re),this.#b(n)}}if(o){function si(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(o){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}si("$state"),si("$effect"),si("$derived"),si("$inspect"),si("$props"),si("$bindable")}function hr(t){var n,r;null===_e&&Z("onMount"),e&&null!==_e.l?(n=_e,r=n.l,r.u??={a:[],b:[],m:[]}).m.push(t):tn(()=>{const e=Vn(t);if("function"==typeof e)return e})}var pr=new Map;function _r(e,n,r=!1){var i;ie&&(i=re,ae());var s=new fr(e);function o(e,n){if(ie){var r=function(e){if(!e||8!==e.nodeType)throw te(),t;return e.data}(i);if(e!==parseInt(r.substring(1))){var o=le();return oe(o),s.anchor=o,se(!1),s.ensure(e,n),void se(!0)}}s.ensure(e,n)}an(()=>{var e=!1;n((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},r?L:0)}function vr(e,t){rn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const e=Kt("style");e.id=t.hash,e.textContent=t.code,r.appendChild(e),o&&function(e,t){var n=pr.get(e);n||(n=new Set,pr.set(e,n)),n.add(t)}(t.hash,e)}})}function mr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gr(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const Er=[..." \t\n\r\f \v\ufeff"];function wr(e,t,n,r,i,s){var o=e[q];if(ie||o!==n||void 0===o){var a=function(e,t,n){var r=null==e?"":""+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 s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;0!==o&&!Er.includes(r[o-1])||a!==r.length&&!Er.includes(r[a])?o=a:r=(0===o?"":r.substring(0,o))+r.substring(a+1)}return""===r?null:r}(n,r,s);ie&&a===e.getAttribute("class")||(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e[q]=n}else if(s&&i!==s)for(var l in s){var c=!!s[l];null!=i&&c===!!i[l]||e.classList.toggle(l,c)}return s}const Tr=Symbol("is custom element"),Sr=Symbol("is html"),yr=J?"link":"LINK";function br(e,t,n,r){var s=function(e){return e[V]??={[Tr]:e.nodeName.includes("-"),[Sr]:e.namespaceURI===i}}(e);ie&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===yr)?r||function(e,t,n){if(!o)return;if("srcset"===t&&function(e,t){var n=Ar(e.srcset),r=Ar(t);return r.length===n.length&&r.every(([e,t],r)=>t===n[r][1]&&(Rr(n[r][0],e)||Rr(e,n[r][0])))}(e,n))return;if(Rr(e.getAttribute(t)??"",n))return;!function(e,t,n){o?console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${n}\`, will be ignored in favour of the server value\nhttps://svelte.dev/e/hydration_attribute_changed`,Y,ee):console.warn("https://svelte.dev/e/hydration_attribute_changed")}(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(n))}(e,t,n??""):s[t]!==(s[t]=n)&&("loading"===t&&(e[G]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,r=Cr.get(n);if(r)return r;Cr.set(n,r=[]);var i=e,s=Element.prototype;for(;s!==i;){for(var o in t=p(i))t[o].set&&"innerHTML"!==o&&"textContent"!==o&&"innerText"!==o&&r.push(o);i=m(i)}return r}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}var Cr=new Map;function Rr(e,t){return e===t||new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Ar(e){return e.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Or(e,t,n){var r=h(e,t);r&&r.set&&(e[t]=n,en(()=>{e[t]=null}))}function Ir(e,t){return e===t||e?.[W]===t}function $r(e={},t,n,r){var i=_e.r,s=Cn;return rn(()=>{var o,a;return sn(()=>{o=a,a=r?.()||[],Vn(()=>{Ir(n(...a),e)||(t(e,...a),o&&Ir(n(...o),e)&&t(null,...o))})}),()=>{let r=s;for(;r!==i&&null!==r.parent&&r.parent.f&N;)r=r.parent;const o=r.teardown;r.teardown=()=>{a&&Ir(n(...a),e)&&t(null,...a),o?.()}}}),e}function Ur(e=!1){const t=_e,n=t.l.u;if(!n)return;let r=()=>qn(t.s);if(e){let e=0,n={};const i=ht(()=>{let r=!1;const i=t.s;for(const e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>jn(i)}var i;n.b.length&&(i=()=>{kr(t,r),T(n.b)},Jt("$effect.pre"),o&&f(i,"name",{value:"$effect.pre"}),Zt(1048584,i)),tn(()=>{const e=Vn(()=>n.m.map(w));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&tn(()=>{kr(t,r),T(n.a)})}function kr(e,t){if(e.l.s)for(const t of e.l.s)jn(t);t()}function Nr(t,n,r,i){var s=!e||!!(2&r),a=!!(8&r),l=!!(16&r),c=i,u=!0,d=void 0,f=()=>l&&s?(d??=ht(i),jn(d)):(u&&(u=!1,c=l?Vn(i):i),c);let p;if(a){var _=W in t||j in t;p=h(t,n)?.set??(_&&n in t?e=>t[n]=e:void 0)}var v,m,g=!1;if(a?[v,g]=function(e){var t=xe;try{return xe=!1,[e(),xe]}finally{xe=t}}(()=>t[n]):v=t[n],void 0===v&&void 0!==i&&(v=f(),p&&(s&&function(e){if(o){const t=new Error(`props_invalid_value\nCannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_invalid_value")}(n),p(v))),m=s?()=>{var e=t[n];return void 0===e?f():(u=!0,e)}:()=>{var e=t[n];return void 0!==e&&(c=void 0),void 0===e?c:e},s&&!(4&r))return m;if(p){var E=t.$$legacy;return function(e,t){return arguments.length>0?(s&&t&&!E&&!g||p(t?m():e),e):m()}}var w=!1,T=(1&r?ht:_t)(()=>(w=!1,m()));o&&(T.label=n),a&&jn(T);var S=Cn;return function(e,t){if(arguments.length>0){const n=t?jn(T):s&&a?Dt(e):e;return It(T,n),w=!0,void 0!==c&&(c=n),e}return wn&&w||0!==(S.f&U)?T.v:jn(T)}}class Lr{#Y;#ee;constructor(e){var t=new Map,n=(e,n)=>{var r=At(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>jn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===j||(jn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(It(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});this.#ee=(e.hydrate?ar:or)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||Ze(),this.#Y=r.$$events;for(const e of Object.keys(this.#ee))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&f(this,e,{get(){return this.#ee[e]},set(t){this.#ee[e]=t},enumerable:!0});this.#ee.$set=e=>{Object.assign(r,e)},this.#ee.$destroy=()=>{dr(this.#ee)}}$set(e){this.#ee.$set(e)}$on(e,t){this.#Y[e]=this.#Y[e]||[];const n=(...e)=>t.call(this,...e);return this.#Y[e].push(n),()=>{this.#Y[e]=this.#Y[e].filter(e=>e!==n)}}$destroy(){this.#ee.$destroy()}}let Dr;function Pr(e,t,n,r){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function xr(e,t,n,r,i,s){let o=class extends Dr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return d(t).map(e=>(t[e].attribute||e).toLowerCase())}};return d(t).forEach(e=>{f(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Pr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var i=h(r,e)?.get;i?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{f(o.prototype,e,{get(){return this.$$c?.[e]}})}),s&&(o=s(o)),e.element=o,o}var Mr;"function"==typeof HTMLElement&&(Dr=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){const 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){const 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 t(e){return t=>{const n=Kt("slot");"default"!==e&&(n.name=e),rr(t,n)}}const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const i of this.$$s)i in r&&("default"!==i||this.$$d.children?n[i]=t(i):(this.$$d.children=t(i),n.default=!0));for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Pr(o,s.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||void 0===this[a]||(this.$$d[a]=this[a],delete this[a]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new Lr(e)),this.$$me=function(e){Je.ensure();const t=Zt(524352,e);return()=>{dn(t)}}(()=>{sn(()=>{this.$$r=!0;for(const e of d(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Pr(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const l in this.$$l)for(const c of this.$$l[l]){const u=this.$$c.$on(l,c);this.$$l_u.set(c,u)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pr(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 d(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}}),function(e){e.CUSTOM_MESSAGE="custom",e.GET_CONTEXT="luigi.get-context",e.SEND_CONTEXT_HANDSHAKE="luigi.init",e.CONTEXT_RECEIVED="luigi.init.ok",e.NAVIGATION_REQUEST="luigi.navigation.open",e.ALERT_REQUEST="luigi.ux.alert.show",e.ALERT_CLOSED="luigi.ux.alert.hide",e.INITIALIZED="luigi.init.ok",e.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",e.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",e.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",e.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",e.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",e.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",e.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",e.LOCAL_STORAGE_SET_REQUEST="storage",e.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",e.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",e.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",e.BACK_NAVIGATION_REQUEST="luigi.navigation.back",e.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",e.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",e.SEND_CONTEXT_OBJECT="luigi.navigate",e.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",e.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",e.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",e.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",e.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",e.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",e.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",e.AUTH_SET_TOKEN="luigi.auth.tokenIssued",e.ADD_BACKDROP_REQUEST="luigi.add-backdrop",e.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",e.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",e.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"}(Mr||(Mr={}));class Qr extends Event{constructor(e,t,n,r){super(e),this.detail=t,this.payload=n||t||{},this.callbackFn=r}callback(e){this.callbackFn&&this.callbackFn(e)}}const Hr={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class Wr{isVisible(e){return"none"!==getComputedStyle(e).display&&!(!e.offsetWidth&&!e.offsetHeight)}sendCustomMessageToIframe(e,t,n){const r=n||"custom";if(e?.iframe?.contentWindow){const n=new URL(e.iframe.src);"custom"===r?e.iframe.contentWindow.postMessage({msg:r,data:t},n.origin):e.iframe.contentWindow.postMessage({msg:r,...t},n.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(e,t,n,r,i){this.dispatch(e,t,n,i,r)}dispatch(e,t,n,r,i){const s=new Qr(e,n,i,r);t.dispatchEvent(s)}getTargetContainer(e){let t;return globalThis.__luigi_container_manager.container.forEach(n=>{n.iframeHandle?.iframe&&n.iframeHandle.iframe.contentWindow===e.source&&(t=n)}),t}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:e=>{const t=this.getTargetContainer(e),n=t?.iframeHandle?.iframe?.contentWindow;if(n&&n===e.source){switch(e.data.msg){case Mr.CUSTOM_MESSAGE:{const n=e.data.data,r=n.id;delete n.id,this.dispatch(Hr.CUSTOM_MESSAGE,t,{id:r,_metaData:{},data:n})}break;case Mr.GET_CONTEXT:n.postMessage({msg:Mr.SEND_CONTEXT_HANDSHAKE,context:t.context||{},internal:{thirdPartyCookieCheck:{disabled:"true"===t.skipCookieCheck},currentTheme:t.theme,currentLocale:t.locale,activeFeatureToggleList:t.activeFeatureToggleList||[],cssVariables:t.cssVariables||{},anchor:t.anchor||"",userSettings:t.userSettings||null,drawer:t.drawer||!1,modal:t.modal||!1,viewStackSize:t.viewStackSize||0,isNavigateBack:t.isNavigateBack||!1},authData:t.authData||{},nodeParams:t.nodeParams||{},searchParams:t.searchParams||{},pathParams:t.pathParams||{}},e.origin);break;case Mr.NAVIGATION_REQUEST:this.dispatch(Hr.NAVIGATION_REQUEST,t,e.data.params,t=>{n.postMessage({msg:Mr.CLOSE_MODAL_ANSWER,data:t},e.origin)});break;case Mr.ALERT_REQUEST:this.dispatchWithPayload(Hr.ALERT_REQUEST,t,e,e.data?.data?.settings,n=>{t.notifyAlertClosed(e.data?.data?.settings?.id,n)});break;case Mr.INITIALIZED:this.dispatch(Hr.INITIALIZED,t,e.data?.params||{});break;case Mr.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(Hr.ADD_SEARCH_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case Mr.ADD_NODE_PARAMS_REQUEST:this.dispatch(Hr.ADD_NODE_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case Mr.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(Hr.SHOW_CONFIRMATION_MODAL_REQUEST,t,e.data.data,e.data.data?.settings,e=>{t.notifyConfirmationModalClosed(e)});break;case Mr.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(Hr.SHOW_LOADING_INDICATOR_REQUEST,t,e);break;case Mr.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(Hr.HIDE_LOADING_INDICATOR_REQUEST,t,e);break;case Mr.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(Hr.SET_CURRENT_LOCALE_REQUEST,t,e,e.data.data);break;case Mr.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(Hr.LOCAL_STORAGE_SET_REQUEST,t,e,e.data.data?.params);break;case Mr.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,t,e);break;case Mr.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(Hr.SET_ANCHOR_LINK_REQUEST,t,e,e.data.anchor);break;case Mr.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(Hr.SET_THIRD_PARTY_COOKIES_REQUEST,t,e);break;case Mr.BACK_NAVIGATION_REQUEST:{let n=e.data?.goBackContext||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e)}this.dispatch(Hr.GO_BACK_REQUEST,t,n),this.dispatch(Hr.BACK_NAVIGATION_REQUEST,t,e)}break;case Mr.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(Hr.GET_CURRENT_ROUTE_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:Mr.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:e.data?.data?.id,route:t}},e.origin)});break;case Mr.NAVIGATION_COMPLETED_REPORT:this.dispatch(Hr.NAVIGATION_COMPLETED_REPORT,t,e);break;case Mr.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(Hr.UPDATE_MODAL_PATH_DATA_REQUEST,t,e,e.data.params);break;case Mr.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(Hr.UPDATE_MODAL_SETTINGS_REQUEST,t,e,{addHistoryEntry:e.data.addHistoryEntry,updatedModalSettings:e.data.updatedModalSettings});break;case Mr.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(Hr.CHECK_PATH_EXISTS_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:Mr.SEND_PATH_EXISTS_ANSWER,data:{correlationId:e.data?.data?.id,pathExists:t}},e.origin)});break;case Mr.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(Hr.SET_DIRTY_STATUS_REQUEST,t,e,{dirty:e.data.dirty});break;case Mr.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(Hr.SET_VIEW_GROUP_DATA_REQUEST,t,e.data.data);break;case Mr.ADD_BACKDROP_REQUEST:this.dispatch(Hr.ADD_BACKDROP_REQUEST,t,e);break;case Mr.REMOVE_BACKDROP_REQUEST:this.dispatch(Hr.REMOVE_BACKDROP_REQUEST,t,e);break;case Mr.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(Hr.CLOSE_CURRENT_MODAL_REQUEST,t,e)}}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(e){this.getContainerManager().container.push(e)}}const jr=new Wr;const Gr=new class{constructor(){this.updateContext=(e,t,n,r,i,s)=>{if(n){const o=t||{};jr.sendCustomMessageToIframe(n,{context:e,nodeParams:r||{},pathParams:i||{},searchParams:s||{},internal:o,withoutSync:o.withoutSync??!0},Mr.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(e,t,n,r)=>{if(r){const i=n||{};jr.sendCustomMessageToIframe(r,{context:t,internal:i,withoutSync:!1,viewUrl:e},Mr.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(e,t)=>{e&&t?jr.sendCustomMessageToIframe(e,{authData:t},Mr.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(e,t,n,r,i)=>{if(n&&t._luigi_mfe_webcomponent)jr.dispatch(e,t._luigi_mfe_webcomponent,i);else{const t={...i};t.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),t.id=e,jr.sendCustomMessageToIframe(r,t)}},this.notifyConfirmationModalClosed=(e,t)=>{const n={data:{confirmed:e}};jr.sendCustomMessageToIframe(t,n,Mr.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(e,t,n){const r=t?{id:e,dismissKey:t}:{id:e};jr.sendCustomMessageToIframe(n,r,Mr.ALERT_CLOSED)}},Br=e=>{if(!e)return;const t=e;return t.forEach((n,r)=>{t[r]=n+(-1!=n.indexOf(";")?"":";"),t[r]=e[r].replaceAll('"',"'")}),t.join(" ")};class Vr{constructor(e){e?(this.rendererObject=e,this.config=e.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(e){return document.createElement("div")}attachCompoundItem(e,t){e.appendChild(t)}}class qr extends Vr{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=Kr({use:e.use.extends,config:e.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):super.createCompoundItemContainer(e)}attachCompoundItem(e,t){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,t,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,t):super.attachCompoundItem(e,t)}}class Fr extends Vr{createCompoundContainer(){const e="__lui_compound_"+(new Date).getTime(),t=document.createElement("div");t.classList.add(e);let n="";return this.config.layouts&&this.config.layouts.forEach(t=>{if(t.minWidth||t.maxWidth){let r="@media only screen ";null!=t.minWidth&&(r+=`and (min-width: ${t.minWidth}px) `),null!=t.maxWidth&&(r+=`and (max-width: ${t.maxWidth}px) `),r+=`{\n .${e} {\n grid-template-columns: ${t.columns||"auto"};\n grid-template-rows: ${t.rows||"auto"};\n grid-gap: ${t.gap||"0"};\n }\n }\n `,n+=r}}),t.innerHTML=`\n <style scoped>\n .${e} {\n display: grid;\n grid-template-columns: ${this.config.columns||"auto"};\n grid-template-rows: ${this.config.rows||"auto"};\n grid-gap: ${this.config.gap||"0"};\n min-height: ${this.config.minHeight||"auto"};\n }\n ${n}\n </style>\n `,t}createCompoundItemContainer(e){const t=e||{},n=document.createElement("div");return n.setAttribute("style",`grid-row: ${t.row||"auto"}; grid-column: ${t.column||"auto"}`),n.classList.add("lui-compoundItemCnt"),n}}const Kr=e=>{const t=e.use;return t?"grid"===t?new Fr(e):t.createCompoundContainer||t.createCompoundItemContainer||t.attachCompoundItem?new qr(e):new Vr(e):new Vr(e)},zr=(e,t,n,r)=>{t?.eventListeners&&t.eventListeners.forEach(t=>{const i=t.source+"."+t.name,s=e[i],o={wcElementId:n,wcElement:r,action:t.action,converter:t.dataConverter};s?s.push(o):e[i]=[o]})};function Xr(e){return String(e).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class Jr{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Wr}dynamicImport(e){return Object.freeze(import(/* webpackIgnore: true */e))}processViewUrl(e,t){return e}attachWC(e,t,n,r,i,s,o){if(n&&n.contains(t)){const a=document.createElement(e);s&&a.setAttribute("nodeId",s),a.setAttribute("lui_web_component","true"),this.initWC(a,e,n,i,r,s,o),n.replaceChild(a,t),n._luigi_node&&(n._luigi_mfe_webcomponent=a),n.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(e,t,n){this.containerService.dispatch(e,this.thisComponent,t,n)}createClientAPI(e,t,n,r,i){return{linkManager:()=>{let e=null,t=!1,n=!1,r=!1,i={};const s={navigate:(s,o={},a)=>{const l={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i,...o};this.dispatchLuigiEvent(Hr.NAVIGATION_REQUEST,{link:s,...l},a)},navigateToIntent:(e,t={})=>{let n="#?intent=";if(n+=e,t&&Object.keys(t)?.length){const e=Object.entries(t);if(e.length>0){n+="?";for(const[t,r]of e)n+=t+"="+r+"&";n=n.slice(0,-1)}}s.navigate(n)},fromClosestContext:()=>(t=!0,s),fromContext:t=>(e=t,s),fromVirtualTreeRoot:()=>(n=!0,s),fromParent:()=>(r=!0,s),getCurrentRoute:()=>{const s={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i};return new Promise((e,t)=>{this.containerService.dispatch(Hr.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...s},n=>{n?e(n):t("No current route received.")})})},withParams:e=>(i=e,s),updateModalPathInternalNavigation:(s,o={},a=!1)=>{if(!s)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const l={fromClosestContext:t,fromContext:e,fromParent:r,fromVirtualTreeRoot:n,nodeParams:i};this.dispatchLuigiEvent(Hr.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(l,{history:a,link:s,modal:o}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(Hr.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:s=>{const o={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i};return new Promise((e,t)=>{this.containerService.dispatch(Hr.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)}),this.containerService.dispatch(Hr.PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)})})},openAsDrawer:(e,t={})=>{s.navigate(e,{drawer:t})},openAsModal:(e,t={},n)=>new Promise(r=>{s.navigate(e,{modal:t},e=>{r({goBackValue:e}),n&&"function"==typeof n&&n(e)})}),openAsSplitView:(e,t={})=>{s.navigate(e,{splitView:t})},goBack:e=>{this.dispatchLuigiEvent(Hr.GO_BACK_REQUEST,e)},hasBack:()=>!1,updateModalSettings:(e={},t=!1)=>{this.dispatchLuigiEvent(Hr.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:e,addHistoryEntry:t})}};return s},uxManager:()=>({showAlert:e=>(e.id=this.alertIndex++,new Promise(t=>{this.alertResolvers[e.id]=t,this.dispatchLuigiEvent(Hr.ALERT_REQUEST,e,t=>{this.resolveAlert(e.id,t)})})),showConfirmationModal:e=>new Promise((t,n)=>{this.modalResolver={resolve:t,reject:n},this.containerService.dispatch(Hr.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,e,e=>{e?t():n()})}),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(Hr.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(Hr.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(Hr.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:e=>{this.dispatchLuigiEvent(Hr.SET_DOCUMENT_TITLE_REQUEST,e)},setDirtyStatus:e=>{this.dispatchLuigiEvent(Hr.SET_DIRTY_STATUS_REQUEST,{dirty:e})},setCurrentLocale:e=>{e&&this.dispatchLuigiEvent(Hr.SET_CURRENT_LOCALE_REQUEST,{currentLocale:e})},removeBackdrop:()=>{this.dispatchLuigiEvent(Hr.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(Hr.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(Hr.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(Hr.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(Hr.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(Hr.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:i=>{e&&e.eventBus&&e.eventBus.onPublishEvent(i,t,n);const s={id:i.type,_metaData:{nodeId:t,wc_id:n,src:r},data:i.detail};this.dispatchLuigiEvent(Hr.CUSTOM_MESSAGE,s)},luigiClientInit:()=>{this.dispatchLuigiEvent(Hr.INITIALIZED,{})},addNodeParams:(e,t)=>{i||this.dispatchLuigiEvent(Hr.ADD_NODE_PARAMS_REQUEST,{params:e,data:e,keepBrowserHistory:t})},getNodeParams:e=>{return i?{}:e?(t=this.thisComponent.nodeParams,Object.entries(t).reduce((e,t)=>(e[Xr(t[0])]=Xr(t[1]),e),{})):this.thisComponent.nodeParams||{};var t},setAnchor:e=>{i||this.dispatchLuigiEvent(Hr.SET_ANCHOR_LINK_REQUEST,e)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(e={},t=!0)=>{this.dispatchLuigiEvent(Hr.ADD_SEARCH_PARAMS_REQUEST,{data:e,keepBrowserHistory:t})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:e=>{this.dispatchLuigiEvent(Hr.SET_VIEW_GROUP_DATA_REQUEST,e)}}}initWC(e,t,n,r,i,s,o){const a=this.createClientAPI(n,s,t,e,o);if(e.__postProcess){const t=new URL(document.baseURI).origin===new URL(r,document.baseURI).origin?new URL("./",new URL(r,document.baseURI)):new URL("./",r);e.__postProcess(i,a,t.origin+t.pathname)}else e.context=i,e.LuigiClient=a}generateWCId(e){let t="";const n=new URL(e,encodeURI(location.href)).href;for(let e=0;e<n.length;e++)t+=n.charCodeAt(e).toString(16);return"luigi-wc-"+t}registerWCFromUrl(e,t){const n=this.processViewUrl(e);return new Promise((e,r)=>{if(this.checkWCUrl(n))this.dynamicImport(n).then(n=>{try{if(!window.customElements.get(t)){let e=n.default;if(!HTMLElement.isPrototypeOf(e)){const t=Object.keys(n);for(let r=0;r<t.length&&(e=n[t[r]],!HTMLElement.isPrototypeOf(e));r++);}window.customElements.define(t,e)}e(1)}catch(e){r(e)}}).catch(e=>{r(e)});else{r(`Error: View URL '${n}' not allowed to be included`)}})}includeSelfRegisteredWCFromUrl(e,t,n){if(this.checkWCUrl(t)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(e,t)=>{window.customElements.define(this.generateWCId(e),t)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(e,t)=>{this.containerService.getContainerManager()._registerWebcomponent(e,t)}));const r=document.createElement("script");r.setAttribute("src",t),"module"===e.webcomponent.type&&r.setAttribute("type","module"),r.setAttribute("defer","true"),r.addEventListener("load",()=>{n()}),document.body.appendChild(r)}else console.warn(`View URL '${t}' not allowed to be included`)}checkWCUrl(e){return!0}renderWebComponent(e,t,n,r,i,s){const o=this.processViewUrl(e,{context:n}),a=r?.webcomponent?.tagName||this.generateWCId(o),l=document.createElement("div");t.appendChild(l),t._luigi_node=r,window.customElements.get(a)?this.attachWC(a,l,t,n,o,i,s):window.luigiWCFn?window.luigiWCFn(o,a,l,()=>{this.attachWC(a,l,t,n,o,i,s)}):r?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(r,o,()=>{this.attachWC(a,l,t,n,o,i,s)}):this.registerWCFromUrl(o,a).then(()=>{this.attachWC(a,l,t,n,o,i,s)}).catch(e=>{console.warn("ERROR =>",e),this.containerService.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})}createCompoundContainerAsync(e,t,n){return new Promise((r,i)=>{if(e.viewUrl)try{const i=n?.webcomponent?.tagName||this.generateWCId(e.viewUrl);n?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(n,e.viewUrl,()=>{const n=document.createElement(i);n.setAttribute("lui_web_component","true"),this.initWC(n,i,n,e.viewUrl,t,"_root"),r(n)}):this.registerWCFromUrl(e.viewUrl,i).then(()=>{const n=document.createElement(i);n.setAttribute("lui_web_component","true"),this.initWC(n,i,n,e.viewUrl,t,"_root"),r(n)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})}catch(e){i(e)}else r(e.createCompoundContainer())})}renderWebComponentCompound(e,t,n){let r;return e.webcomponent&&e.viewUrl?(r=new Vr,r.viewUrl=this.processViewUrl(e.viewUrl,{context:n}),r.createCompoundItemContainer=e=>{const t=document.createElement("div");return e?.slot&&t.setAttribute("slot",e.slot),t}):e.compound?.renderer&&(r=Kr(e.compound.renderer)),r=r||new Vr,new Promise(i=>{this.createCompoundContainerAsync(r,n,e).then(s=>{t._luigi_mfe_webcomponent=s,t._luigi_node=e;const o={};s.eventBus={listeners:o,onPublishEvent:(e,t,n)=>{const r=o[t+"."+e.type]||[];r.push(...o["*."+e.type]||[]),r.forEach(t=>{const n=t.wcElement||s.querySelector("[nodeId="+t.wcElementId+"]");n?n.dispatchEvent(new CustomEvent(t.action,{detail:t.converter?t.converter(e.detail):e.detail})):console.debug("Could not find event target",t)})}},e.compound?.children?.forEach((e,t)=>{const i={...n,...e.context},a=r.createCompoundItemContainer(e.layoutConfig);a.eventBus=s.eventBus,r.attachCompoundItem(s,a);const l=e.id||"gen_"+t;this.renderWebComponent(e.viewUrl,a,i,e,l,!0),zr(o,e,l)}),t.appendChild(s),zr(o,e.compound,"_root",s),i(s)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})})}resolveAlert(e,t){this.alertResolvers[e]?(this.alertResolvers[e](void 0===t||t),this.alertResolvers[e]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(e){this.modalResolver?(e?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const Zr=new class{isFunction(e){return e&&"[object Function]"==={}.toString.call(e)}isObject(e){return!(!e||"object"!=typeof e||Array.isArray(e))}checkWebcomponentValue(e){return"string"==typeof e?JSON.parse(e):"boolean"==typeof e||"object"==typeof e?e:void console.warn("Webcomponent value has a wrong type.")}resolveContext(e){return e?"string"==typeof e?JSON.parse(e):e:{}}};var Yr=nr("<style>main.lui-isolated,\n .lui-isolated iframe {\n width: 100%;\n height: 100%;\n border: none;\n }\n\n main.lui-isolated {\n line-height: 0;\n }</style> <iframe></iframe>",1),ei=nr("<main><!></main>");function ti(e,n){Te(n,!1);let r=Nr(n,"activeFeatureToggleList",12),i=Nr(n,"allowRules",12),s=Nr(n,"anchor",12),o=Nr(n,"authData",12),a=Nr(n,"clientPermissions",12),l=Nr(n,"context",12),c=Nr(n,"deferInit",12),u=Nr(n,"dirtyStatus",12),d=Nr(n,"documentTitle",12),f=Nr(n,"hasBack",12),h=Nr(n,"label",12),p=Nr(n,"locale",12),_=Nr(n,"noShadow",12),v=Nr(n,"nodeParams",12),m=Nr(n,"pathParams",12),g=Nr(n,"sandboxRules",12),E=Nr(n,"searchParams",12),w=Nr(n,"skipCookieCheck",12),T=Nr(n,"skipInitCheck",12),S=Nr(n,"theme",12),y=Nr(n,"userSettings",12),b=Nr(n,"viewurl",12),C=Nr(n,"webcomponent",12);const R=At({});let O=At(),$=At(!1),U=At();const k=new Jr,N=()=>r()&&i()&&s()&&o()&&a()&&u()&&d()&&f()&&p()&&_()&&v()&&m()&&g()&&E()&&w()&&T()&&S()&&y(),L=e=>{if(!jn($)){e.sendCustomMessage=(t,n)=>{Gr.sendCustomMessage(t,e.getNoShadow()?e:jn(O),!!C(),jn(R),n)},e.updateContext=(t,n)=>{if(l(t),C())(e.getNoShadow()?e:jn(O))._luigi_mfe_webcomponent.context=t;else{const r={...n||{},activeFeatureToggleList:e.activeFeatureToggleList||[],currentLocale:e.locale,currentTheme:e.theme,userSettings:e.userSettings||null,cssVariables:e.cssVariables||{},anchor:e.anchor||"",drawer:e.drawer||!1,modal:e.modal||!1,viewStackSize:e.viewStackSize||0,isNavigateBack:e.isNavigateBack||!1};Gr.updateContext(t,r,jn(R),v(),m(),E())}},e.closeAlert=(t,n)=>{e.notifyAlertClosed(t,n)},e.notifyAlertClosed=(t,n)=>{e.isConnected&&(C()?k.resolveAlert(t,n):Gr.notifyAlertClosed(t,n,jn(R)))},e.notifyConfirmationModalClosed=t=>{e.isConnected&&(C()?k.notifyConfirmationModalClosed(!!t):Gr.notifyConfirmationModalClosed(!!t,jn(R)))},jr.registerContainer(e),k.thisComponent=e;const t=Zr.resolveContext(l());if(e.updateViewUrl=(e,t)=>{e?.length&&Gr.updateViewUrl(e,Zr.resolveContext(l()),t,jn(R))},C()&&"false"!=C()){if(e.getNoShadow())e.innerHTML="";else{Ot(O,jn(O).innerHTML="");e.attachShadow({mode:"open"}).append(jn(O))}const n=Zr.checkWebcomponentValue(C());k.renderWebComponent(b(),e.getNoShadow()?e:jn(O),t,"object"==typeof n?{webcomponent:n}:{})}else if(!e.getNoShadow()){e.innerHTML="";e.attachShadow({mode:"open"}).append(jn(O))}T()?(e.initialized=!0,setTimeout(()=>{k.dispatchLuigiEvent(Hr.INITIALIZED,{})})):C()&&(e.getNoShadow()?e:jn(O)).addEventListener("wc_ready",()=>{(e.getNoShadow()?e:jn(O))._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(e.initialized=!0,k.dispatchLuigiEvent(Hr.INITIALIZED,{}))}),It($,!0),e.containerInitialized=!0}};var D;hr(async()=>{It(U,jn(O).parentNode),Ot(U,jn(U).iframeHandle=jn(R)),Ot(U,jn(U).init=()=>{L(jn(U))}),!c()&&b()&&L(jn(U))}),D=async()=>{},null===_e&&Z("onDestroy"),hr(()=>()=>Vn(D)),function(e,t){var n={effect:null,ran:!1,deps:e};_e.l.$.push(n),n.effect=sn(()=>{if(e(),!n.ran){n.ran=!0;var r=Cn;try{Rn(r.parent),Vn(t)}finally{Rn(r)}}})}(()=>(jn($),qn(b()),qn(c()),jn(U)),()=>{!jn($)&&b()&&!c()&&jn(U)&&L(jn(U))}),function(){var e=_e;sn(()=>{for(var t of e.l.$){t.deps();var n=t.effect;0!==(n.f&A)&&null!==n.deps&&Ne(n,I),Pn(n)&&Wn(n),t.ran=!1}})}();var P={unwarn:N,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ze()},get allowRules(){return i()},set allowRules(e){i(e),Ze()},get anchor(){return s()},set anchor(e){s(e),Ze()},get authData(){return o()},set authData(e){o(e),Ze()},get clientPermissions(){return a()},set clientPermissions(e){a(e),Ze()},get context(){return l()},set context(e){l(e),Ze()},get deferInit(){return c()},set deferInit(e){c(e),Ze()},get dirtyStatus(){return u()},set dirtyStatus(e){u(e),Ze()},get documentTitle(){return d()},set documentTitle(e){d(e),Ze()},get hasBack(){return f()},set hasBack(e){f(e),Ze()},get label(){return h()},set label(e){h(e),Ze()},get locale(){return p()},set locale(e){p(e),Ze()},get noShadow(){return _()},set noShadow(e){_(e),Ze()},get nodeParams(){return v()},set nodeParams(e){v(e),Ze()},get pathParams(){return m()},set pathParams(e){m(e),Ze()},get sandboxRules(){return g()},set sandboxRules(e){g(e),Ze()},get searchParams(){return E()},set searchParams(e){E(e),Ze()},get skipCookieCheck(){return w()},set skipCookieCheck(e){w(e),Ze()},get skipInitCheck(){return T()},set skipInitCheck(e){T(e),Ze()},get theme(){return S()},set theme(e){S(e),Ze()},get userSettings(){return y()},set userSettings(e){y(e),Ze()},get viewurl(){return b()},set viewurl(e){b(e),Ze()},get webcomponent(){return C()},set webcomponent(e){C(e),Ze()}};Ur();var x=ei(),M=function(e,t){if(!ie)return Vt(e);var n=Vt(re);if(null===n)n=re.appendChild(Bt());else if(t&&3!==n.nodeType){var r=Bt();return n?.before(r),oe(r),r}return t&&zt(n),oe(n),n}(x),Q=e=>{var t=function(){if(ie)return tr(re,null),re;var e=document.createDocumentFragment(),t=document.createComment(""),n=Bt();return e.append(t,n),tr(t,n),e}(),n=Ft(t),r=e=>{var t=Yr(),n=function(e,t=1,n=!1){let r=ie?re:e;for(var i;t--;)i=r,r=qt(r);if(!ie)return r;if(n){if(3!==r?.nodeType){var s=Bt();return null===r?i?.after(s):r.before(s),oe(s),s}zt(r)}return oe(r),r}(Ft(t),2);$r(n,e=>Ot(R,jn(R).iframe=e),()=>jn(R)?.iframe),on((e,t)=>{br(n,"src",b()),br(n,"title",h()),br(n,"allow",e),br(n,"sandbox",t)},[()=>(qn(Br),qn(i()),Vn(()=>Br(i()))),()=>(qn(g()),Vn(()=>g()?g().join(" "):void 0))]),rr(e,t)};_r(n,e=>{C()&&"false"!==C()||e(r)}),rr(e,t)};return _r(M,e=>{jn($)&&e(Q)}),function(e){if(ie){if(null!==qt(re))throw te(),t;re=e}}(x),$r(x,e=>It(O,e),()=>jn(O)),on(()=>wr(x,1,gr(C()?void 0:"lui-isolated"))),rr(e,x),Or(n,"unwarn",N),Se(P)}xr(ti,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},allowRules:{attribute:"allow-rules",type:"Array"},anchor:{attribute:"anchor",type:"String"},authData:{attribute:"auth-data",type:"Object"},clientPermissions:{attribute:"client-permissions",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},label:{attribute:"label",type:"String"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},sandboxRules:{attribute:"sandbox-rules",type:"Array"},searchParams:{attribute:"search-params",type:"Object"},skipCookieCheck:{attribute:"skip-cookie-check",type:"String"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,e=>{let t=e=>()=>console.warn(e+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends e{sendCustomMessage=t("sendCustomMessage");updateContext=t("updateContext");updateViewUrl=t("updateViewUrl");closeAlert=t("closeAlert");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(e,t,n){try{super.attributeChangedCallback(e,t,n)}catch(e){console.error("Error in super.attributeChangedCallback",e)}this.containerInitialized&&("context"===e&&this.updateContext(JSON.parse(n)),"auth-data"===e&&Gr.updateAuthData(this.iframeHandle,JSON.parse(n)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}});var ni=nr('<main class="svelte-1yfh4yd"></main>');const ri={hash:"svelte-1yfh4yd",code:"main.svelte-1yfh4yd {width:100%;height:100%;border:none;}"};function ii(e,t){Te(t,!1),vr(e,ri);let n,r=Nr(t,"activeFeatureToggleList",12),i=Nr(t,"anchor",12),s=Nr(t,"clientPermissions",12),o=Nr(t,"compoundConfig",12),a=Nr(t,"context",12),l=Nr(t,"deferInit",12),c=Nr(t,"dirtyStatus",12),u=Nr(t,"documentTitle",12),d=Nr(t,"hasBack",12),f=Nr(t,"locale",12),h=Nr(t,"noShadow",12),p=Nr(t,"nodeParams",12),_=Nr(t,"pathParams",12),v=Nr(t,"searchParams",12),m=Nr(t,"skipInitCheck",12),g=Nr(t,"theme",12),E=Nr(t,"userSettings",12),w=Nr(t,"viewurl",12),T=Nr(t,"webcomponent",12),S=!1,y=At();const b=new Wr,C=new Jr,R=()=>r()&&i()&&s()&&c()&&u()&&d()&&f()&&h()&&p()&&_()&&v()&&m()&&g()&&E(),A=e=>{if(!o()||S)return;e.updateContext=(t,n)=>{const r=e.getNoShadow()?e:jn(y);r._luigi_mfe_webcomponent.context=t,a(t);const i=r._luigi_mfe_webcomponent;if(i){const e=i.querySelectorAll("[lui_web_component]");e?.forEach(e=>{const n=e.context||{};e.context=Object.assign(n,t)})}};const t=Zr.resolveContext(a());l(!1),e.notifyAlertClosed=(t,n)=>{e.isConnected&&C.resolveAlert(t,n)},e.notifyConfirmationModalClosed=t=>{e.isConnected&&C.notifyConfirmationModalClosed(!!t)};const r={compound:o(),viewUrl:w(),webcomponent:Zr.checkWebcomponentValue(T())||!0};if(e.getNoShadow())e.innerHTML="";else{Ot(y,jn(y).innerHTML="");e.attachShadow({mode:"open"}).append(jn(y))}C.renderWebComponentCompound(r,e.getNoShadow()?e:jn(y),t).then(t=>{n=t,m()||!r.viewUrl?(e.initialized=!0,setTimeout(()=>{C.dispatchLuigiEvent(Hr.INITIALIZED,{})})):n.LuigiClient&&!n.deferLuigiClientWCInit&&(e.initialized=!0,C.dispatchLuigiEvent(Hr.INITIALIZED,{}))}),S=!0,e.containerInitialized=!0};hr(async()=>{const e=jn(y).getRootNode()===document?jn(y).parentNode:jn(y).getRootNode().host;e.init=()=>{A(e)},l()||A(e),b.registerContainer(e),C.thisComponent=e});var O={unwarn:R,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ze()},get anchor(){return i()},set anchor(e){i(e),Ze()},get clientPermissions(){return s()},set clientPermissions(e){s(e),Ze()},get compoundConfig(){return o()},set compoundConfig(e){o(e),Ze()},get context(){return a()},set context(e){a(e),Ze()},get deferInit(){return l()},set deferInit(e){l(e),Ze()},get dirtyStatus(){return c()},set dirtyStatus(e){c(e),Ze()},get documentTitle(){return u()},set documentTitle(e){u(e),Ze()},get hasBack(){return d()},set hasBack(e){d(e),Ze()},get locale(){return f()},set locale(e){f(e),Ze()},get noShadow(){return h()},set noShadow(e){h(e),Ze()},get nodeParams(){return p()},set nodeParams(e){p(e),Ze()},get pathParams(){return _()},set pathParams(e){_(e),Ze()},get searchParams(){return v()},set searchParams(e){v(e),Ze()},get skipInitCheck(){return m()},set skipInitCheck(e){m(e),Ze()},get theme(){return g()},set theme(e){g(e),Ze()},get userSettings(){return E()},set userSettings(e){E(e),Ze()},get viewurl(){return w()},set viewurl(e){w(e),Ze()},get webcomponent(){return T()},set webcomponent(e){T(e),Ze()}};Ur();var I=ni();return $r(I,e=>It(y,e),()=>jn(y)),rr(e,I),Or(t,"unwarn",R),Se(O)}xr(ii,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},anchor:{attribute:"anchor",type:"String"},clientPermissions:{attribute:"client-permissions",type:"Object"},compoundConfig:{attribute:"compound-config",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},searchParams:{attribute:"search-params",type:"Object"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,e=>{let t=e=>()=>console.warn(e+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends e{updateContext=t("updateContext");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(e,t,n){try{super.attributeChangedCallback(e,t,n)}catch(e){console.warn("Error in attributeChangedCallback",e)}this.containerInitialized&&"context"===e&&this.updateContext(JSON.parse(n))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}),customElements.get("luigi-container")||customElements.define("luigi-container",ti.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",ii.element);export{ii as LuigiCompoundContainer,ti as LuigiContainer,Hr as LuigiEvents,Hr as default};
2
2
  //# sourceMappingURL=bundle.js.map