import{S as t,i as e,a as n,b as r,s as l,e as o,n as i,f as c,g as s,h as m,o as a,w as u,j as f,c as h,t as g,H as d}from"./index-04d7984b.js";import{getData as p}from"../../../../../../../../../js/libraries/serverTools.js";function x(t,e,n){const r=t.slice();return r[3]=e[n],r}function b(t,e,n){const r=t.slice();return r[6]=e[n],r}function j(t,e,n){const r=t.slice();return r[6]=e[n],r}function w(t){let e,n,l,a=t[3]+"";return{c(){e=o("p"),n=new d(!1),l=h(),n.a=l,c(e,"class","margin-end")},m(t,o){r(t,e,o),n.m(a,e),s(e,l)},p:i,d(t){t&&m(e)}}}function H(t){let e,n=t[3].slice(2,t[3].length)+"";return{c(){e=o("h1")},m(t,l){r(t,e,l),e.innerHTML=n},p:i,d(t){t&&m(e)}}}function T(t){let e,n=t[3].slice(3,t[3].length)+"";return{c(){e=o("h2")},m(t,l){r(t,e,l),e.innerHTML=n},p:i,d(t){t&&m(e)}}}function v(t){let e,n=t[3].slice(4,t[3].length)+"";return{c(){e=o("h3")},m(t,l){r(t,e,l),e.innerHTML=n},p:i,d(t){t&&m(e)}}}function y(t){let e,n,l=t[3].ol,i=[];for(let e=0;e<l.length;e+=1)i[e]=M(b(t,l,e));return{c(){e=o("ol");for(let t=0;t<i.length;t+=1)i[t].c();n=h()},m(t,l){r(t,e,l);for(let t=0;t<i.length;t+=1)i[t].m(e,null);s(e,n)},p(t,r){if(2&r){let o;for(l=t[3].ol,o=0;o<l.length;o+=1){const c=b(t,l,o);i[o]?i[o].p(c,r):(i[o]=M(c),i[o].c(),i[o].m(e,n))}for(;o<i.length;o+=1)i[o].d(1);i.length=l.length}},d(t){t&&m(e),f(i,t)}}}function L(t){let e,n,l=t[3].ul,i=[];for(let e=0;e<l.length;e+=1)i[e]=k(j(t,l,e));return{c(){e=o("ul");for(let t=0;t<i.length;t+=1)i[t].c();n=h()},m(t,l){r(t,e,l);for(let t=0;t<i.length;t+=1)i[t].m(e,null);s(e,n)},p(t,r){if(2&r){let o;for(l=t[3].ul,o=0;o<l.length;o+=1){const c=j(t,l,o);i[o]?i[o].p(c,r):(i[o]=k(c),i[o].c(),i[o].m(e,n))}for(;o<i.length;o+=1)i[o].d(1);i.length=l.length}},d(t){t&&m(e),f(i,t)}}}function M(t){let e,n=t[6]+"";return{c(){e=o("li")},m(t,l){r(t,e,l),e.innerHTML=n},p:i,d(t){t&&m(e)}}}function k(t){let e,n,l=t[6]+"";return{c(){e=o("li"),n=g(l)},m(t,l){r(t,e,l),s(e,n)},p:i,d(t){t&&m(e)}}}function z(t){let e,n=""!==t[3]&&function(t){let e,n=function(t,e){return t[3],"ul"==Object.keys(t[3])[0]?L:(t[3],"ol"==Object.keys(t[3])[0]?y:"###"==t[3].slice(0,3)?v:"##"==t[3].slice(0,2)?T:"#"==t[3][0]?H:w)}(t),l=n(t);return{c(){l.c(),e=u()},m(t,n){l.m(t,n),r(t,e,n)},p(t,e){l.p(t,e)},d(t){l.d(t),t&&m(e)}}}(t);return{c(){n&&n.c(),e=u()},m(t,l){n&&n.m(t,l),r(t,e,l)},p(t,e){""!==t[3]&&n.p(t,e)},d(t){n&&n.d(t),t&&m(e)}}}function E(t){let e,n=t[1],l=[];for(let e=0;e<n.length;e+=1)l[e]=z(x(t,n,e));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=u()},m(t,n){for(let e=0;e<l.length;e+=1)l[e].m(t,n);r(t,e,n)},p(t,r){if(2&r){let o;for(n=t[1],o=0;o<n.length;o+=1){const i=x(t,n,o);l[o]?l[o].p(i,r):(l[o]=z(i),l[o].c(),l[o].m(e.parentNode,e))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(t){f(l,t),t&&m(e)}}}function O(t){let e,n,a=t[0],u=E(t);return{c(){e=o("div"),n=o("div"),u.c(),this.c=i,c(n,"id","text-container"),c(e,"id","container")},m(t,l){r(t,e,l),s(e,n),u.m(n,null)},p(t,[e]){1&e&&l(a,a=t[0])?(u.d(1),u=E(t),u.c(),u.m(n,null)):u.p(t,e)},i:i,o:i,d(t){t&&m(e),u.d(t)}}}function R(t,e,n){let r,l=[];const o=["ul","ol"];return p("/assets/manifesto.txt",(function(t){let e=t.split(/\r?\n/);for(let t=0;t<e.length;t++){let n=e[t],r=o.map((t=>n.includes("<"+t+">"))).findIndex((t=>t));if(-1!=r){let i=o[r],c={};c[i]=[];let s="</"+i+">";for(;;){if(t+=1,n=e[t],n.includes(s)){l.push(c);break}c[i].push(n)}}else l.push(n)}n(0,r+=1)})),a((()=>{})),[r,l]}class I extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';h1{margin-bottom:1rem;font-size:2.5rem;text-align:center}h2{margin-bottom:1rem;text-align:center}h3{margin-bottom:1rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#container{margin:auto;max-width:1200px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{font-size:1.2rem;text-align:justify}</style>",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},R,O,l,{},null),t&&t.target&&r(t.target,this,t.anchor)}}customElements.define("manifesto-component",I);export{I as default};
