Update
|
@ -12,6 +12,8 @@
|
||||||
<meta property="og:url" content="">
|
<meta property="og:url" content="">
|
||||||
<link rel="icon" type="image/png" href="/favicon.png"/>
|
<link rel="icon" type="image/png" href="/favicon.png"/>
|
||||||
|
|
||||||
|
<link rel="preload" href="/locales/available.json" as="fetch" type="application/json" crossorigin="anonymous">
|
||||||
|
|
||||||
<!--Load libraries-->
|
<!--Load libraries-->
|
||||||
|
|
||||||
<!--Load fonts-->
|
<!--Load fonts-->
|
||||||
|
|
|
@ -13,7 +13,7 @@ dict_layouts = Dict(
|
||||||
:groups => generate_layout_html("main",controller,"groups",libraries=["Leaflet"]),
|
:groups => generate_layout_html("main",controller,"groups",libraries=["Leaflet"]),
|
||||||
:cooperatives => generate_layout_html("main",controller,"cooperatives",libraries=["Leaflet"]),
|
:cooperatives => generate_layout_html("main",controller,"cooperatives",libraries=["Leaflet"]),
|
||||||
:communities => generate_layout_html("main",controller,"communities",libraries=["Leaflet"]),
|
:communities => generate_layout_html("main",controller,"communities",libraries=["Leaflet"]),
|
||||||
:affiliates => generate_layout_html("main",controller,"affiliates",libraries=["Leaflet"]),
|
:partners => generate_layout_html("main",controller,"partners",libraries=["Leaflet"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
#---General-----------------------------------------------------
|
#---General-----------------------------------------------------
|
||||||
|
@ -61,9 +61,9 @@ function communities()
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
function affiliates()
|
function partners()
|
||||||
html(:basic,:affiliates, layout = dict_layouts[:affiliates], context = @__MODULE__,
|
html(:basic,:partners, layout = dict_layouts[:partners], context = @__MODULE__,
|
||||||
title = "LibSoc - Affiliates",
|
title = "LibSoc - Partners",
|
||||||
description = ""
|
description = ""
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<affiliates-component></affiliates-component>
|
|
|
@ -0,0 +1 @@
|
||||||
|
<partners-component></partners-component>
|
|
@ -16,8 +16,8 @@
|
||||||
--grey-blue:hsl(223, 13%, 22%);
|
--grey-blue:hsl(223, 13%, 22%);
|
||||||
--cream:hsl(34, 43%, 90%);
|
--cream:hsl(34, 43%, 90%);
|
||||||
--dark-cream:hsl(33, 26%, 84%);
|
--dark-cream:hsl(33, 26%, 84%);
|
||||||
--sans-serif: "Space Grotesk";
|
--sans-serif: "OpenSans";
|
||||||
--serif: "DejaVu";
|
--serif: "Lora";
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
|
@ -59,27 +59,25 @@ body {
|
||||||
/*---Fonts---------------------------------------------------------*/
|
/*---Fonts---------------------------------------------------------*/
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Space Grotesk';
|
font-family: 'OpenSans';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: /*local('Space Grotesk Light'),
|
src: /*local('Space Grotesk Light'),
|
||||||
local('SpaceGroteskLight-Regular'),
|
local('SpaceGroteskLight-Regular'),
|
||||||
local('Space Grotesk Light Regular'), */
|
local('Space Grotesk Light Regular'), */
|
||||||
url('/fonts/SpaceGrotesk/SpaceGrotesk.woff2') format('woff2'),
|
url('/fonts/OpenSans/opensans.woff2') format('woff2'),
|
||||||
url('/fonts/SpaceGrotesk/SpaceGrotesk.woff') format('woff');
|
url('/fonts/OpenSans/opensans.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'DejaVu';
|
font-family: 'Lora';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: /*local('DejaVuLGCSerif'),
|
src:
|
||||||
local('DejaVu LGC Serif'), */
|
url('/fonts/Lora/Lora-Regular.ttf') format('ttf'),
|
||||||
/*url('/fonts/DejaVu/DejaVuLGCSerif.woff2') format('woff2'), */
|
url('/fonts/lora/Lora-Regular.woff') format('woff');
|
||||||
url('/fonts/DejaVu/solitasserifnormregular.woff2') format('woff2'),
|
|
||||||
url('/fonts/DejaVu/DejaVuLGCSerif.woff') format('woff');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.serif {
|
.serif {
|
||||||
|
@ -124,7 +122,7 @@ h4 {
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
height: auto;
|
height: auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
|
@ -132,20 +130,20 @@ span {
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
line-height: 150%;
|
line-height: 160%;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,219 +0,0 @@
|
||||||
|
|
||||||
/* Header */
|
|
||||||
#navbar{
|
|
||||||
position: relative;
|
|
||||||
top: 0;
|
|
||||||
width: min(100%,116rem);
|
|
||||||
z-index: 1000;
|
|
||||||
height: 5.26rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#navbar * {
|
|
||||||
font-family: var(--sans-serif, sans-serif);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Logo */
|
|
||||||
#logo-container {
|
|
||||||
display: flex;
|
|
||||||
position: absolute;
|
|
||||||
margin-left: 1rem;
|
|
||||||
height: 100%;
|
|
||||||
max-height: 5.26rem;
|
|
||||||
color: black;
|
|
||||||
z-index: 1;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#navbar-logo {
|
|
||||||
height: 3.5rem;
|
|
||||||
width: 3.5rem;
|
|
||||||
object-fit: contain;
|
|
||||||
border-radius: 10rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#navbar-logo-text {
|
|
||||||
position: relative;
|
|
||||||
width: auto;
|
|
||||||
height: 100%;
|
|
||||||
line-height: 400%;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
color: #292222;
|
|
||||||
font-family: var(--sans-serif, sans-serif);
|
|
||||||
font-weight: 400;
|
|
||||||
padding-left: 1.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nav menu */
|
|
||||||
#nav {
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-color: white;
|
|
||||||
overflow: hidden;
|
|
||||||
z-index: 0;
|
|
||||||
}
|
|
||||||
#menu a {
|
|
||||||
display: block;
|
|
||||||
padding: 1.9rem;
|
|
||||||
padding-top: 1rem;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
color: black;
|
|
||||||
font-size: 1.4rem;
|
|
||||||
}
|
|
||||||
#menu a:hover {
|
|
||||||
background-color: rgb(220, 220, 220);
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu a:active{
|
|
||||||
background-color: #f7aec0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu li {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#nav{
|
|
||||||
max-height: 0;
|
|
||||||
/*transition: max-height .5s ease-out;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Menu Icon */
|
|
||||||
#hamb{
|
|
||||||
position: absolute;
|
|
||||||
cursor: pointer;
|
|
||||||
right: 0rem;
|
|
||||||
padding: 2.8rem 2rem;
|
|
||||||
z-index: 9999;
|
|
||||||
}/* Style label tag */
|
|
||||||
|
|
||||||
#hamb-line {
|
|
||||||
background: black;
|
|
||||||
display: block;
|
|
||||||
height: 2px;
|
|
||||||
position: relative;
|
|
||||||
width: 24px;
|
|
||||||
|
|
||||||
} /* Style span tag */
|
|
||||||
|
|
||||||
#hamb-line::before,
|
|
||||||
#hamb-line::after{
|
|
||||||
background: black;
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
transition: all .2s ease-out;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
#hamb-line::before{
|
|
||||||
top: 5px;
|
|
||||||
}
|
|
||||||
#hamb-line::after{
|
|
||||||
top: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu {
|
|
||||||
display: none;
|
|
||||||
} /* Hide checkbox */
|
|
||||||
|
|
||||||
/* Toggle menu icon */
|
|
||||||
#side-menu:checked ~ nav {
|
|
||||||
display: block;
|
|
||||||
max-height: 100%;
|
|
||||||
padding-top: 5.625rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu:checked ~ #logo-container {
|
|
||||||
position: fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu:checked ~ #hamb {
|
|
||||||
position: fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu:checked ~ #logo-container {
|
|
||||||
position: fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu:checked ~ #hamb #hamb-line {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu:checked ~ #hamb #hamb-line::before {
|
|
||||||
transform: rotate(-45deg);
|
|
||||||
top:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#side-menu:checked ~ #hamb #hamb-line::after {
|
|
||||||
transform: rotate(45deg);
|
|
||||||
top:0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cart-icon {
|
|
||||||
height: 1.8rem;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu a:hover div {
|
|
||||||
filter: saturate(50%) brightness(140%);
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu a:hover svg {
|
|
||||||
stroke: rgb(127, 127, 127);;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cart-counter {
|
|
||||||
position: relative;
|
|
||||||
top: -2.8rem;
|
|
||||||
left: 1.6rem;
|
|
||||||
width: 1.3rem;
|
|
||||||
height: 1.3rem;
|
|
||||||
border-radius: 3.4rem;
|
|
||||||
font-family: var(--sans-serif, sans-serif);
|
|
||||||
font-size: 1rem;
|
|
||||||
text-align: center;
|
|
||||||
color: white;
|
|
||||||
background: var(--pink);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Responsiveness */
|
|
||||||
@media only screen and (min-width: 1500px) {
|
|
||||||
|
|
||||||
#navbar {
|
|
||||||
left: 50%;
|
|
||||||
-ms-transform: translateX(-50%);
|
|
||||||
transform: translateX(-50%);
|
|
||||||
}
|
|
||||||
|
|
||||||
#nav {
|
|
||||||
max-height: none;
|
|
||||||
top: 0;
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
width: fit-content;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
#menu li {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu a:hover {
|
|
||||||
background-color: transparent;
|
|
||||||
color: rgb(127, 127, 127);
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu a {
|
|
||||||
padding: 1.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#hamb {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,26 +1,40 @@
|
||||||
|
|
||||||
export let communities = [
|
export let communities = [
|
||||||
{
|
{
|
||||||
location: ["Estonia, Kohtla-Järve",[59.409521829709504, 27.288415912535914]],
|
location: [{
|
||||||
status: "forming",
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.409521829709504, 27.288415912535914]],
|
||||||
|
status: {
|
||||||
|
en: "forming",
|
||||||
|
ru: "формируется"
|
||||||
|
},
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCommunities(map) {
|
export function addMarkersCommunities(map,content,locale) {
|
||||||
for (let g of communities) {
|
for (let g of communities) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = field[0].toUpperCase() + field.slice(1) + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0] + "<br>"
|
text += fieldText + g[field][0][locale[0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
|
else if (field=="status") {
|
||||||
|
text += fieldText + g[field][locale[0]] + "<br>"
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,46 +2,88 @@ export let coops = [
|
||||||
{
|
{
|
||||||
logo: "chiron_logo",
|
logo: "chiron_logo",
|
||||||
name: "Chiron Health",
|
name: "Chiron Health",
|
||||||
location: ["Estonia, Kohtla-Järve",[59.40338782864918, 27.286240058760324]],
|
location: [
|
||||||
market: "wellness and health",
|
{
|
||||||
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.40338782864918, 27.286240058760324]],
|
||||||
|
market: {
|
||||||
|
en: "wellness and health",
|
||||||
|
ru: "благополучие и здоровье"
|
||||||
|
},
|
||||||
workers: 2,
|
workers: 2,
|
||||||
status: "launch in 2 months",
|
status: {
|
||||||
|
en: "launch in 2 months",
|
||||||
|
ru: "запуск через 2 месяца"
|
||||||
|
},
|
||||||
website: "chrn.health",
|
website: "chrn.health",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"],
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
description: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}],
|
||||||
|
description: {
|
||||||
|
en: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
||||||
|
ru: "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
logo: "kuusk_logo",
|
logo: "kuusk_logo",
|
||||||
name: "Kuusk",
|
name: "Kuusk",
|
||||||
location: ["Estonia, Kohtla-Järve",[59.405466538976185, 27.289104862336302]],
|
location: [
|
||||||
market: "herbal teas",
|
{
|
||||||
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.405466538976185, 27.289104862336302]],
|
||||||
|
market: {
|
||||||
|
en: "herbal teas",
|
||||||
|
ru: "травяные чаи"
|
||||||
|
},
|
||||||
workers: 1,
|
workers: 1,
|
||||||
status: "launch in TBD months",
|
status: {
|
||||||
|
en: "launch in TBD months",
|
||||||
|
ru: "запуск через X месяцев"
|
||||||
|
},
|
||||||
website: "-",
|
website: "-",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"],
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
description: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}],
|
||||||
|
description: {
|
||||||
|
en: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
|
||||||
|
ru: "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCoops(map) {
|
export function addMarkersCoops(map,content,locale) {
|
||||||
for (let g of coops) {
|
for (let g of coops) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = "<b>" + field[0].toUpperCase() + field.slice(1) + ": " + "</b>"
|
let fieldText
|
||||||
|
if (field!="logo") {
|
||||||
|
fieldText = content[field] + ": "
|
||||||
|
}
|
||||||
if (field=="logo") {
|
if (field=="logo") {
|
||||||
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="contact") {
|
else if (field=="contact") {
|
||||||
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1] + "</a>" + "<br>"
|
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="website") {
|
else if (field=="website") {
|
||||||
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0] + "<br>"
|
text += fieldText + g[field][0][locale[0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
|
else if (field=="market" || field=="status" || field=="description") {
|
||||||
|
text += fieldText + g[field][locale[0]] + "<br>"
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,37 +1,73 @@
|
||||||
export let groups = [
|
export let groups = [
|
||||||
{
|
{
|
||||||
location: ["Denmark, Copenhagen",[55.6840661150132, 12.557133959514688]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Denmark, Copenhagen",
|
||||||
|
ru: "Дания, Копенгаген"
|
||||||
|
},
|
||||||
|
[55.6840661150132, 12.557133959514688]],
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://discord.gg/xAPZmyr8B6","Discord invite link"]
|
contact: ["https://discord.gg/xAPZmyr8B6",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "Discord ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: ["Estonia, Kohtla-Järve",[59.40629447076191, 27.280605339416322]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.40629447076191, 27.280605339416322]],
|
||||||
members: 3,
|
members: 3,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: ["Greece, Athens",[37.94877252621736, 23.677622972996158]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Greece, Athens",
|
||||||
|
ru: "Греция, Афины"
|
||||||
|
},
|
||||||
|
[37.94877252621736, 23.677622972996158]],
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: ["Latvia, Riga",[56.94748425529816, 24.003027136431925]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Latvia, Riga",
|
||||||
|
ru: "Латвия, Рига"
|
||||||
|
},
|
||||||
|
[56.94748425529816, 24.003027136431925]],
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersGroups(map) {
|
export function addMarkersGroups(map,content,locale) {
|
||||||
for (let g of groups) {
|
for (let g of groups) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = field[0].toUpperCase() + field.slice(1) + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0] + "<br>"
|
text += fieldText + g[field][0][locale[0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -62,3 +62,47 @@ export function sendText(route,data,callback) {
|
||||||
xhr.send(data)
|
xhr.send(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onlyUnique(value, index, array) {
|
||||||
|
return array.indexOf(value) === index;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function loadLocaleContent(content,componentName,loaded,callback) {
|
||||||
|
let langs
|
||||||
|
let localesAvailable
|
||||||
|
let locale = localStorage.getItem("locale")
|
||||||
|
if (locale==null) {
|
||||||
|
langs = navigator.languages.map(x => x.split("-")[0]).filter(onlyUnique)
|
||||||
|
}
|
||||||
|
getData("/locales/available.json",function(response) {
|
||||||
|
if (locale!=null) {
|
||||||
|
getData("/locales/" + locale + "/" + componentName + ".json" ,function(response) {
|
||||||
|
let parsed = JSON.parse(response)
|
||||||
|
content.set(parsed)
|
||||||
|
if (callback!=undefined) {
|
||||||
|
callback(locale)
|
||||||
|
}
|
||||||
|
loaded = 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
localesAvailable = JSON.parse(response)
|
||||||
|
for (let lang of langs) {
|
||||||
|
if (localesAvailable.includes(lang)) {
|
||||||
|
getData("/locales/" + lang + "/" + componentName + ".json" ,function(response) {
|
||||||
|
let parsed = JSON.parse(response)
|
||||||
|
content.set(parsed)
|
||||||
|
if (callback!=undefined) {
|
||||||
|
callback(locale)
|
||||||
|
}
|
||||||
|
loaded = 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getLocale(locale,lang) {
|
||||||
|
locale[0] = lang
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
["en","ru"]
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Communities",
|
||||||
|
"p1": "We establish libertarian socialist communities by buying land, housing and the means of production which are then owned by the members of these communities. There is no private property within the communities and, therefore, exploitation and suffering that comes with it. Decisions are made using direct democracy with a focus on consensus, ensuring that each community member has power over decisions that affect their life. Communities try to establish their own cooperatives in order to finance their development becoming financially independent and sustainable, which allows for their survival and growth. Within communities the gift economy is utilized whenever possible. Each community is a small beacon of socialism within the dark capitalist world showing us how good life can be if only we achieve our goal.",
|
||||||
|
"subheading1": "Our Communities",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"location": "Location",
|
||||||
|
"status": "Status",
|
||||||
|
"members": "Members",
|
||||||
|
"contact": "Contact"
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"heading": "Cooperatives",
|
||||||
|
"p1": "We establish worker cooperatives, which is a business model where employees own and control the enterprise. Each worker has a voice in decision-making, and profits are distributed based on individual contributions. This participatory structure fosters ownership, motivation, and job satisfaction, creating a more fulfilling work experience as well as challenging the wealth concentration in traditional capitalist businesses.",
|
||||||
|
"p2": "By focusing on employees' needs, our cooperatives create supportive and sustainable work environments that foster social cohesion and job security. We also prioritize the interests of local communities, taking a long-term perspective. With workers making decisions, we avoid harmful short-term profit-driven strategies and instead reinvest our profits, contributing to community development and resilience.",
|
||||||
|
"subheading1": "Our Cooperatives",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"name": "Name",
|
||||||
|
"location": "Location",
|
||||||
|
"market": "Market",
|
||||||
|
"status": "Status",
|
||||||
|
"workers": "Workers",
|
||||||
|
"contact": "Contact",
|
||||||
|
"description": "Description",
|
||||||
|
"website": "Website"
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"contactUs": "Contact Us",
|
||||||
|
"inviteLink": "invite link",
|
||||||
|
"libertarianSocialists": "Libertarian Socialists"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Groups",
|
||||||
|
"p1": "We aim to raise awareness about the negative impact of current politico-economic systems on our well-being. By highlighting these issues, we empower people to question the status quo and imagine fairer and more sustainable alternatives.",
|
||||||
|
"p2": "But our mission goes beyond theory. We engage in mutual aid and collective action to address immediate challenges within capitalism. Through mutual aid, we support each other by sharing resources, knowledge, and skills, fostering solidarity and resilience. Whether it's community gardens, food cooperatives, or support networks, our goal is to make life under capitalism more bearable and create pockets of resistance and alternatives within the system.",
|
||||||
|
"subheading1": "Our Groups",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"location": "Location",
|
||||||
|
"members": "Members",
|
||||||
|
"contact": "Contact"
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"heading": "Join Us",
|
||||||
|
"condition1": "Are you against dictatorship and in favor of democracy?",
|
||||||
|
"condition2": "Are you against exploitation of one human being by another?",
|
||||||
|
"condition3": "Do you agree that we should work with each other and not against each other?",
|
||||||
|
"conditionsOutcome": "If the answer is <b>YES</b>, then you are already a libertarian socialist. <b>JOIN US!</b>",
|
||||||
|
"subheading1": "What You Will Get",
|
||||||
|
"valueProposition1": "A community that is always ready to help with all your troubles;",
|
||||||
|
"valueProposition2": "Access to the means of production of our cooperatives;",
|
||||||
|
"valueProposition3": "Products and services at the cost of production or even for free;",
|
||||||
|
"valueProposition4": "Monetary and non-monetary help with opening your own cooperative;",
|
||||||
|
"valueProposition5": "and much more!",
|
||||||
|
"subheading2": "Find Us",
|
||||||
|
"findOur": "Find our",
|
||||||
|
"group": "group",
|
||||||
|
"community": "community",
|
||||||
|
"or": "or",
|
||||||
|
"cooperative": "cooperative",
|
||||||
|
"nearYou": "near you and join to help make a world we both envision a reality.",
|
||||||
|
"noneNear": "None of them near you? Not a problem! Join our",
|
||||||
|
"WhatsAppGroup": "WhatsApp group",
|
||||||
|
"DiscordServer": "Discord server",
|
||||||
|
"helpStart": " and we will help you start your own."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"top": "We are people united around a singular cause: bringing down authoritarian exploitative systems represented by various forms of capitalism and replacing them with libertarian socialist systems, with the goal of creating a more equitable and democratic world.",
|
||||||
|
"groupsTitle": "GROUPS",
|
||||||
|
"groupsText": "We organize groups for the purposes of education, advocacy, and mutual aid. Our objective is to demonstrate to people how the current politico-economic systems detrimentally impact our well-being, present them with alternative approaches, and engage in mutual aid to alleviate the challenges of living under capitalism.",
|
||||||
|
"communitiesTitle": "COMMUNITIES",
|
||||||
|
"communitiesText": "We establish communities based on libertarian socialist principles, where communities have ownership of their land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.",
|
||||||
|
"cooperativesTitle": "COOPERATIVES",
|
||||||
|
"cooperativesText": "We form worker cooperatives to finance the operations of our groups and communities. Recognizing that economic power influences political power, we consider the establishment of cooperatives to be one of the initial steps towards achieving socialism."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"orgName": "Libertarian socialists",
|
||||||
|
"manifesto": "Manifesto",
|
||||||
|
"joinUs": "Join Us",
|
||||||
|
"groups": "Groups",
|
||||||
|
"communities": "Communities",
|
||||||
|
"cooperatives": "Cooperatives",
|
||||||
|
"partners": "Partners"
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"heading": "Partners",
|
||||||
|
"p1": "We partner with organizations and initiatives that align with our mission. Together, we are a united force driven by a shared worldview where there is no place for authoritarian exploitative systems, but where systems promoting equity and democracy thrive.",
|
||||||
|
"subheading1": "Our Partners",
|
||||||
|
"subheading2": "Online",
|
||||||
|
"name": "Name",
|
||||||
|
"location": "Location",
|
||||||
|
"type": "Type",
|
||||||
|
"link": "Link",
|
||||||
|
"description": "Description"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Коммуны",
|
||||||
|
"p1": "Мы создаем либертарные социалистические коммуны, покупая землю, жилье и средства производства, которые затем принадлежат членам этих коммун. В коммунах нет частной собственности и, следовательно, эксплуатации и страданий, которые с ней связаны. Решения принимаются с использованием прямой демократии с упором на консенсус, гарантируя, что каждый член сообщества имеет право принимать решения, влияющие на его жизнь. Сообщества пытаются создавать свои собственные кооперативы, чтобы финансировать свое развитие, становясь финансово независимыми и устойчивыми, что позволяет им выживать и расти. В сообществах по возможности используется экономика дарения. Каждая коммуна — это маленький маяк социализма в темном капиталистическом мире, показывающий нам, насколько хорошей может быть жизнь, если мы только достигнем своей цели.",
|
||||||
|
"subheading1": "Наши коммуны",
|
||||||
|
"subheading2": "Европа",
|
||||||
|
"location": "Локация",
|
||||||
|
"status": "Статус",
|
||||||
|
"members": "Участники",
|
||||||
|
"contact": "Контакт"
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"heading": "Кооперативы",
|
||||||
|
"p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием и контролируют его. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.",
|
||||||
|
"p2": "Сосредоточив внимание на потребностях сотрудников, наши кооперативы создают благоприятную и устойчивую рабочую среду, которая способствует социальной сплоченности и гарантиям занятости. Мы также уделяем первостепенное внимание интересам местных сообществ, ориентируясь на долгосрочную перспективу. Когда решения принимают работники, мы избегаем вредных краткосрочных стратегий, ориентированных на получение прибыли, и вместо этого реинвестируем нашу прибыль, способствуя развитию и устойчивости сообщества.",
|
||||||
|
"subheading1": "Наши кооперативы",
|
||||||
|
"subheading2": "Европа",
|
||||||
|
"name": "Название",
|
||||||
|
"location": "Локация",
|
||||||
|
"market": "Рынок",
|
||||||
|
"status": "Статус",
|
||||||
|
"workers": "Работники",
|
||||||
|
"contact": "Контакт",
|
||||||
|
"description": "Описание",
|
||||||
|
"website": "Вебсайт"
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"contactUs": "Напиши нам",
|
||||||
|
"inviteLink": "ссылка",
|
||||||
|
"libertarianSocialists": "Либертарные Социалисты"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Группы",
|
||||||
|
"p1": "Мы стремимся повышать осведомленность о негативном влиянии нынешних политико-экономических систем на наше благополучие. Выдвигая на первый план эти проблемы, мы даем людям возможность поставить под сомнение статус-кво и представить себе более справедливые и устойчивые альтернативы.",
|
||||||
|
"p2": "Однако, наша миссия выходит за рамки теории. Мы участвуем во взаимопомощи и коллективных действиях для решения насущных проблем. Посредством взаимопомощи мы поддерживаем друг друга, делясь ресурсами, знаниями и навыками, укрепляя солидарность и устойчивость к негодам. Будь то общественные сады, продовольственные кооперативы или сети поддержки, наша цель — сделать жизнь при капитализме более терпимой и создать очаги сопротивления и альтернативы внутри системы.",
|
||||||
|
"subheading1": "Наши группы",
|
||||||
|
"subheading2": "Европа",
|
||||||
|
"location": "Локация",
|
||||||
|
"members": "Участники",
|
||||||
|
"contact": "Контакт"
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"heading": "Присоединяйся",
|
||||||
|
"condition1": "Ты против диктатуры и за демократию?",
|
||||||
|
"condition2": "Ты против эксплуатации одного человека другим?",
|
||||||
|
"condition3": "Ты согласен, что мы должны работать с друг другом, а не против друг друга?",
|
||||||
|
"conditionsOutcome": "Если твой ответ <b>ДА</b>, то ты уже лебиртарный социалист. <b>Присоединяйся!</b>",
|
||||||
|
"subheading1": "Что ты получишь",
|
||||||
|
"valueProposition1": "Сообщество, которое всегда готово прийти к тебе на помощь;",
|
||||||
|
"valueProposition2": "Доступ к средствам производства наших кооперативов;",
|
||||||
|
"valueProposition3": "Продукты и сервис за стоимость производства или бесплатно;",
|
||||||
|
"valueProposition4": "Денежная и другая помощь для открытия кооператива;",
|
||||||
|
"valueProposition5": "и многое другое!",
|
||||||
|
"subheading2": "Найди нас",
|
||||||
|
"findOur": "Найди нашу",
|
||||||
|
"group": "группу",
|
||||||
|
"community": "коммуну",
|
||||||
|
"or": "или",
|
||||||
|
"cooperative": "кооператив",
|
||||||
|
"nearYou": "около тебя и присоединяйся для того, чтобы сделать тот мир, о котором мы все мечтаем, реальностью.",
|
||||||
|
"noneNear": "Ни одного из них около тебя нет? Не проблема! Присоединяйся к нашей",
|
||||||
|
"WhatsAppGroup": "WhatsApp группе",
|
||||||
|
"DiscordServer": "Discord серверу",
|
||||||
|
"helpStart": " и мы поможем тебе создать создать свои."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"top": "Мы люди, объединенные одной целью: свержение авторитарных эксплуататорских систем, представленных различными формами капитализма, и замена их либертарными социалистическими системами с целью создания более справедливого и демократического мира.",
|
||||||
|
"groupsTitle": "ГРУППЫ",
|
||||||
|
"groupsText": "Мы организуем группы в целях образования, защиты наших интересов и взаимопомощи. Наша цель — продемонстрировать людям, как нынешние политико-экономические системы пагубно влияют на наше благополучие, представить им альтернативные варианты и заниматься взаимопомощью, чтобы сделать жизнь при капитализме легче.",
|
||||||
|
"communitiesTitle": "КОММУНЫ",
|
||||||
|
"communitiesText": "Мы создаем коммуны на основе либертарных социалистических принципов, где члены коммун владеют своей землей, домами и средствами производства, а также принимают решения, используя прямую демократию. Мы постепенно, по одной коммуне, расширяем наш социалистический мир.",
|
||||||
|
"cooperativesTitle": "КООПЕРАТИВЫ",
|
||||||
|
"cooperativesText": "Мы формируем рабочие кооперативы для финансирования операций наших групп и коммун. Признавая, что экономическая власть влияет на политическую власть, мы считаем создание кооперативов одним из первых шагов на пути к социализму."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"orgName": "Либертарные социалисты",
|
||||||
|
"manifesto": "Манифест",
|
||||||
|
"joinUs": "Присоединяйся",
|
||||||
|
"groups": "Группы",
|
||||||
|
"communities": "Сообщества",
|
||||||
|
"cooperatives": "Кооперативы",
|
||||||
|
"partners": "Партнеры"
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"heading": "Партнеры",
|
||||||
|
"p1": "Мы сотрудничаем с организациями и инициативами, которые соответствуют нашей миссии. Вместе мы являемся единой силой, движимой общим мировоззрением, где нет места авторитарным эксплуататорским системам, но где процветают системы, продвигающие справедливость и демократию.",
|
||||||
|
"subheading1": "Наши партнеры",
|
||||||
|
"subheading2": "Онлайн",
|
||||||
|
"name": "Название",
|
||||||
|
"location": "Локация",
|
||||||
|
"type": "Тип",
|
||||||
|
"link": "Ссылка",
|
||||||
|
"description": "Описание"
|
||||||
|
}
|
|
@ -30,7 +30,8 @@ function serve() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const walkSync = require("walk-sync");
|
const walkSync = require("walk-sync");
|
||||||
const paths = walkSync("./src", {globs: ["**/*.svelte"]}).map(x => "src/"+x)
|
const paths = walkSync("./src", {globs: ["**/*.svelte"]}).map(x => "src/"+x)
|
||||||
|
|
||||||
|
|
|
@ -1,168 +0,0 @@
|
||||||
<svelte:options tag="affiliates-component" />
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Import statements
|
|
||||||
import { onMount } from 'svelte'
|
|
||||||
//import { communities, addMarkersCommunities } from '/js/communities.js'
|
|
||||||
|
|
||||||
// Import components
|
|
||||||
import "/js/components/map-component.js"
|
|
||||||
|
|
||||||
// Main code
|
|
||||||
|
|
||||||
let affiliates = [
|
|
||||||
{
|
|
||||||
name: "Gaia's Fall",
|
|
||||||
type: "a place to discuss and organize",
|
|
||||||
link: "https://discord.libsoc.org",
|
|
||||||
description: "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together.",
|
|
||||||
logo: "gaias_fall"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
onMount(() => {
|
|
||||||
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div id="container">
|
|
||||||
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
|
|
||||||
<div id="text-container">
|
|
||||||
<h1>Affiliates</h1>
|
|
||||||
<img id="hands-img" src="/img/common/handshake.svg" alt="hands">
|
|
||||||
<p>We affiliate with organizations and initiatives that align with our mission. Together, we are a united force driven by a shared worldview where there is no place for authoritarian exploitative systems, but where systems promoting equity and democracy thrive.</p>
|
|
||||||
<h3>Our affiliates</h3>
|
|
||||||
<h4>Online</h4>
|
|
||||||
{#each affiliates as affiliate}
|
|
||||||
<div class="location-info">
|
|
||||||
<div class="img-general-info">
|
|
||||||
<picture>
|
|
||||||
<source srcset={"/img/affiliates/"+affiliate.logo+".webp"}>
|
|
||||||
<source srcset={"/img/affiliates/"+affiliate.logo+".jpg"}>
|
|
||||||
<img class="affiliate-logo" alt="logo">
|
|
||||||
</picture>
|
|
||||||
<div>
|
|
||||||
<p><b>Name: </b>{affiliate.name}</p>
|
|
||||||
<p><b>Type: </b>{affiliate.type}</p>
|
|
||||||
<p><b>Link: </b><a href={affiliate.link} target=;_blank; rel=noreferrer>{affiliate.link}</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p><b>Description: </b>{affiliate.description}</p>
|
|
||||||
</div>
|
|
||||||
{/each}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
@import '/css/common.css';
|
|
||||||
|
|
||||||
#hands-img {
|
|
||||||
position: absolute;
|
|
||||||
width: 10.5rem;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%);
|
|
||||||
z-index: 0;
|
|
||||||
opacity: 0.2;
|
|
||||||
margin-top: -2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#text-container>:nth-child(3) {
|
|
||||||
margin-top: 6rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.img-general-info {
|
|
||||||
display: flex;
|
|
||||||
align-content: center;
|
|
||||||
width: 100%;
|
|
||||||
gap: 1.5rem;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.img-general-info>:nth-child(2) {
|
|
||||||
flex:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.affiliate-logo {
|
|
||||||
position: relative;
|
|
||||||
right: 0;
|
|
||||||
max-height: 6rem;
|
|
||||||
max-width: 100%;
|
|
||||||
border-radius: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.location-info {
|
|
||||||
position: relative;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.location-info p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #DD1C1A;
|
|
||||||
}
|
|
||||||
|
|
||||||
#map {
|
|
||||||
--height: 30rem;
|
|
||||||
--width: 100%;
|
|
||||||
--margin-bottom: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#text-container {
|
|
||||||
max-width: calc(100vw - 4rem);
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
font-size: 2.2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
h3 {
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#container {
|
|
||||||
margin: auto;
|
|
||||||
max-width: 1000px;
|
|
||||||
margin-top: 1rem;
|
|
||||||
margin-bottom: 4rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#container>div>p {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#container p {
|
|
||||||
text-align: justify;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 500px) {
|
|
||||||
.img-general-info {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-content: left;
|
|
||||||
width: 100%;
|
|
||||||
gap: 1rem;
|
|
||||||
align-items: left;
|
|
||||||
margin-bottom: 0rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.img-general-info>:nth-child(1) {
|
|
||||||
width: max-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
.img-general-info>:nth-child(2) {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
|
@ -3,16 +3,23 @@
|
||||||
<script>
|
<script>
|
||||||
// Import statements
|
// Import statements
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
import { communities, addMarkersCommunities } from '/js/communities.js'
|
import { communities, addMarkersCommunities } from '/js/communities.js'
|
||||||
|
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
import "/js/components/map-component.js"
|
import "/js/components/map-component.js"
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
|
let loaded
|
||||||
|
let locale = []
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
function mapCallbackCommunities(createMap) {
|
loadLocaleContent(content,"communities-component",loaded,(lang) => getLocale(locale,lang))
|
||||||
|
|
||||||
|
function mapCallbackCommunities(createMap,content,locale) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersCommunities(map)
|
addMarkersCommunities(map,content,locale)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
@ -20,26 +27,30 @@
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="container">
|
{#key loaded}
|
||||||
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
|
{#if Object.keys($content).length!=0}
|
||||||
<div id="text-container">
|
<div id="container">
|
||||||
<h1>Communities</h1>
|
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
|
||||||
<img id="communities-img" src="/img/common/communities.svg" alt="communities">
|
<div id="text-container">
|
||||||
<p>We establish libertarian socialist communities by buying land, housing and the means of production which are then owned by the members of these communities. There is no private property within the communities and, therefore, exploitation and suffering that comes with it. Decisions are made using direct democracy with a focus on consensus, ensuring that each community member has power over decisions that affect their life. Communities try to establish their own cooperatives in order to finance their development becoming financially independent and sustainable, which allows for their survival and growth. Within communities the gift economy is utilized whenever possible. Each community is a small beacon of socialism within the dark capitalist world showing us how good life can be if only we achieve our goal.</p>
|
<h1>{$content.heading}</h1>
|
||||||
<h3>Our communities</h3>
|
<img id="communities-img" src="/img/common/communities.svg" alt="communities">
|
||||||
<map-component id="map" callback={mapCallbackCommunities}></map-component>
|
<p>{$content.p1}</p>
|
||||||
<h4>Europe</h4>
|
<h3>{$content.subheading1}</h3>
|
||||||
{#each communities as community}
|
<map-component id="map" callback={(createMap) => mapCallbackCommunities(createMap,$content,locale)}></map-component>
|
||||||
<div class="location-info">
|
<h4>{$content.subheading2}</h4>
|
||||||
<p><b>Location: </b>{community.location[0]}</p>
|
{#each communities as community}
|
||||||
<p><b>Status: </b>{community.status}</p>
|
<div class="location-info">
|
||||||
<p><b>Members: </b>{community.members}</p>
|
<p><b>{$content.location}: </b>{community.location[0][locale[0]]}</p>
|
||||||
<p><b>Contact: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{community.contact[1]}</a></p>
|
<p><b>{$content.status}: </b>{community.status[locale[0]]}</p>
|
||||||
|
<p><b>{$content.members}: </b>{community.members}</p>
|
||||||
|
<p><b>{$content.contact}: </b><a href={community.contact[0]} target=;_blank; rel=noreferrer>{community.contact[1][locale[0]]}</a></p>
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
{/key}
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
|
@ -97,7 +108,7 @@
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 1000px;
|
max-width: 800px;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,15 +3,23 @@
|
||||||
<script>
|
<script>
|
||||||
// Import statements
|
// Import statements
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
import { coops, addMarkersCoops } from '/js/coops.js'
|
import { coops, addMarkersCoops } from '/js/coops.js'
|
||||||
|
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
import "/js/components/map-component.js"
|
import "/js/components/map-component.js"
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
function mapCallbackCoops(createMap) {
|
let loaded
|
||||||
|
let locale = []
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
loadLocaleContent(content,"cooperatives-component",loaded,(lang) => getLocale(locale,lang))
|
||||||
|
|
||||||
|
function mapCallbackCoops(createMap,content,locale) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersCoops(map)
|
addMarkersCoops(map,content,locale)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
@ -19,38 +27,42 @@
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="container">
|
{#key loaded}
|
||||||
<div id="text-container">
|
{#if Object.keys($content).length!=0}
|
||||||
<h1>Cooperatives</h1>
|
<div id="container">
|
||||||
<img id="coops-img" src="/img/common/coops.svg" alt="coops">
|
<div id="text-container">
|
||||||
<p>We establish worker cooperatives that embody a transformative business model where employees own and control the enterprise. Each worker has a voice in decision-making, and profits are distributed based on individual contributions. This participatory structure fosters ownership, motivation, and job satisfaction, creating a more fulfilling work experience as well as challenging the wealth concentration in traditional capitalist businesses.</p>
|
<h1>{$content.heading}</h1>
|
||||||
<p>By focusing on employees' needs, our cooperatives create supportive and sustainable work environments that foster social cohesion and job security. We also prioritize the interests of local communities, taking a long-term perspective. With workers making decisions, we avoid harmful short-term profit-driven strategies and instead reinvest our profits, contributing to community development and resilience.</p>
|
<img id="coops-img" src="/img/common/coops.svg" alt="coops">
|
||||||
<h3>Our cooperatives</h3>
|
<p>{$content.p1}</p>
|
||||||
<map-component id="map" callback={mapCallbackCoops}></map-component>
|
<p>{$content.p2}</p>
|
||||||
<h4>Europe</h4>
|
<h3>{$content.subheading1}</h3>
|
||||||
{#each coops as coop}
|
<map-component id="map" callback={(createMap) => mapCallbackCoops(createMap,$content,locale)}></map-component>
|
||||||
<div class="location-info">
|
<h4>{$content.subheading2}</h4>
|
||||||
<div class="img-general-info">
|
{#each coops as coop}
|
||||||
<div>
|
<div class="location-info">
|
||||||
<p><b>Name: </b>{coop.name}</p>
|
<div class="img-general-info">
|
||||||
<p><b>Location: </b>{coop.location[0]}</p>
|
<div>
|
||||||
<p><b>Market: </b>{coop.market}</p>
|
<p><b>{$content.name}: </b>{coop.name}</p>
|
||||||
<p><b>Workers: </b>{coop.workers}</p>
|
<p><b>{$content.location}: </b>{coop.location[0][locale[0]]}</p>
|
||||||
<p><b>Status: </b>{coop.status}</p>
|
<p><b>{$content.market}: </b>{coop.market[locale[0]]}</p>
|
||||||
<p><b>Website: </b><a href={"https://www."+coop.website} target="_blank" rel=noreferrer>{coop.website}</a></p>
|
<p><b>{$content.workers}: </b>{coop.workers}</p>
|
||||||
<p><b>Contact: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{coop.contact[1]}</a></p>
|
<p><b>{$content.status}: </b>{coop.status[locale[0]]}</p>
|
||||||
|
<p><b>{$content.website}: </b><a href={"https://www."+coop.website} target="_blank" rel=noreferrer>{coop.website}</a></p>
|
||||||
|
<p><b>{$content.contact}: </b><a href={coop.contact[0]} target=;_blank; rel=noreferrer>{coop.contact[1][locale[0]]}</a></p>
|
||||||
|
</div>
|
||||||
|
<picture>
|
||||||
|
<source srcset={"/img/coops/"+coop.logo+".webp"}>
|
||||||
|
<source srcset={"/img/coops/"+coop.logo+".png"}>
|
||||||
|
<img class="coop-logo" alt="logo">
|
||||||
|
</picture>
|
||||||
|
</div>
|
||||||
|
<p><b>{$content.description}: </b>{coop.description[locale[0]]}</p>
|
||||||
</div>
|
</div>
|
||||||
<picture>
|
{/each}
|
||||||
<source srcset={"/img/coops/"+coop.logo+".webp"}>
|
|
||||||
<source srcset={"/img/coops/"+coop.logo+".png"}>
|
|
||||||
<img class="coop-logo" alt="logo">
|
|
||||||
</picture>
|
|
||||||
</div>
|
|
||||||
<p><b>Description: </b>{coop.description}</p>
|
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
</div>
|
{/key}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
|
@ -128,7 +140,7 @@
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 1000px;
|
max-width: 800px;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,35 +2,46 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// Import statements
|
// Import statements
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
|
let loaded
|
||||||
|
let locale = []
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
loadLocaleContent(content,"footer-component",loaded,(lang) => getLocale(locale,lang))
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<footer>
|
{#key loaded}
|
||||||
<div id="footer-content-container">
|
{#if Object.keys($content).length!=0}
|
||||||
<div id="footer-grid-content-container" class="logged">
|
<footer>
|
||||||
<div id="contact-us-container">
|
<div id="footer-content-container">
|
||||||
<h2>CONTACT US</h2>
|
<div id="footer-grid-content-container" class="logged">
|
||||||
<!--<p>Email: <a href="mailto:info@chiron.com">info@libsoc.org</a></p>-->
|
<div id="contact-us-container">
|
||||||
<p>WhatsApp: <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel=noreferrer style="margin-left: 0.5rem;">invite link</a></p>
|
<h2>{$content.contactUs}</h2>
|
||||||
<p>Discord: <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel=noreferrer style="margin-left: 2rem;">invite link</a></p>
|
<!--<p>Email: <a href="mailto:info@chiron.com">info@libsoc.org</a></p>-->
|
||||||
|
<p>WhatsApp: <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel=noreferrer style="margin-left: 0.5rem;">{$content.inviteLink}</a></p>
|
||||||
|
<p>Discord: <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel=noreferrer style="margin-left: 2rem;">{$content.inviteLink}</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button on:click={() => {location.href='#'}} id="footer-up" aria-label="go up">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601">
|
||||||
|
<g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)">
|
||||||
|
<rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"/>
|
||||||
|
<path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<p id="footer-copyright">© 2023 {$content.libertarianSocialists}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</footer>
|
||||||
<button on:click={() => {location.href='#'}} id="footer-up" aria-label="go up">
|
{/if}
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601">
|
{/key}
|
||||||
<g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)">
|
|
||||||
<rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"/>
|
|
||||||
<path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
<p id="footer-copyright">© 2023 Libertarian Socialists</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|
|
@ -3,40 +3,53 @@
|
||||||
<script>
|
<script>
|
||||||
// Import statements
|
// Import statements
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
import { groups, addMarkersGroups } from '/js/groups.js'
|
import { groups, addMarkersGroups } from '/js/groups.js'
|
||||||
|
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
import "/js/components/map-component.js"
|
import "/js/components/map-component.js"
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
export function mapCallbackGroups(createMap) {
|
let loaded
|
||||||
|
let locale = []
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
loadLocaleContent(content,"groups-component",loaded,(lang) => getLocale(locale,lang))
|
||||||
|
|
||||||
|
function mapCallbackGroups(createMap,content,locale) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersGroups(map)
|
addMarkersGroups(map,content,locale)
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="container">
|
{#key loaded}
|
||||||
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
|
{#if Object.keys($content).length!=0}
|
||||||
<div id="text-container">
|
<div id="container">
|
||||||
<h1>Groups</h1>
|
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
|
||||||
<img id="groups-img" src="/img/common/groups.svg" alt="groups">
|
<div id="text-container">
|
||||||
<p>We aim to raise awareness about the negative impact of current politico-economic systems on our well-being. Through education, community engagement, and analysis, we reveal the flaws and inequalities in capitalist societies. By highlighting these issues, we empower people to question the status quo and imagine fairer and more sustainable alternatives.</p>
|
<h1>{$content.heading}</h1>
|
||||||
<p>But our mission goes beyond theory. We engage in mutual aid and collective action to address immediate challenges within capitalism. Through mutual aid, we support each other by sharing resources, knowledge, and skills, fostering solidarity and resilience. Whether it's community gardens, food cooperatives, or support networks, our goal is to make life under capitalism more bearable and create pockets of resistance and alternatives within the system.</p>
|
<img id="groups-img" src="/img/common/groups.svg" alt="groups">
|
||||||
<h3>Our groups</h3>
|
<p>{$content.p1}</p>
|
||||||
<map-component id="map" callback={mapCallbackGroups}></map-component>
|
<p>{$content.p2}</p>
|
||||||
<h4>Europe</h4>
|
<h3>{$content.subheading1}</h3>
|
||||||
{#each groups as group}
|
<map-component id="map" callback={(createMap) => mapCallbackGroups(createMap,$content,locale)}></map-component>
|
||||||
<div class="location-info">
|
<h4>{$content.subheading2}</h4>
|
||||||
<p><b>Location: </b>{group.location[0]}</p>
|
{#each groups as group}
|
||||||
<p><b>Members: </b>{group.members}</p>
|
<div class="location-info">
|
||||||
<p><b>Contact: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{group.contact[1]}</a></p>
|
<p><b>{$content.location}: </b>{group.location[0][locale[0]]}</p>
|
||||||
|
<p><b>{$content.members}: </b>{group.members}</p>
|
||||||
|
<p><b>{$content.contact}: </b><a href={group.contact[0]} target=;_blank; rel=noreferrer>{group.contact[1][locale[0]]}</a></p>
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
</div>
|
{/key}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
|
@ -94,7 +107,7 @@
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 1000px;
|
max-width: 800px;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,17 +6,19 @@
|
||||||
import { addMarkersGroups } from '/js/groups.js'
|
import { addMarkersGroups } from '/js/groups.js'
|
||||||
import { addMarkersCoops } from '/js/coops.js'
|
import { addMarkersCoops } from '/js/coops.js'
|
||||||
import { addMarkersCommunities } from '/js/communities.js'
|
import { addMarkersCommunities } from '/js/communities.js'
|
||||||
// Import components
|
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
// Main code
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
import "/js/components/map-component.js"
|
import "/js/components/map-component.js"
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
export function mapCallback(createMap) {
|
let loaded
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
loadLocaleContent(content,"join-us-component",loaded)
|
||||||
|
|
||||||
|
function mapCallback(createMap) {
|
||||||
let map = createMap([51.505, -0.09],3)
|
let map = createMap([51.505, -0.09],3)
|
||||||
addMarkersGroups(map)
|
addMarkersGroups(map)
|
||||||
addMarkersCoops(map)
|
addMarkersCoops(map)
|
||||||
|
@ -28,46 +30,43 @@
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
{#key loaded}
|
||||||
Are you against exploitation of one human being by another?
|
{#if Object.keys($content).length!=0}
|
||||||
Do you agree that we should cooperate and not compete with each other?
|
<div id="container">
|
||||||
In that case, you are already a libertarian socialist. Join us
|
<div id="text-container">
|
||||||
|
<h1>{$content.heading}</h1>
|
||||||
FInd our group, community or cooperative near you and join in order to make a world we both envision a reality.
|
<img src="/img/common/join-group.svg" id="join-group" alt="join group">
|
||||||
|
<ol id="condition-list">
|
||||||
None of them near you? Not a problem! Join our WhatsApp group and we will help you get started.
|
<li>{$content.condition1}</li>
|
||||||
<div id="container">
|
<li>{$content.condition2}</li>
|
||||||
<div id="text-container">
|
<li>{$content.condition3}</li>
|
||||||
<h1>Join Us</h1>
|
<p>{@html $content.conditionsOutcome}</p>
|
||||||
<img src="/img/common/join-group.svg" id="join-group" alt="join group">
|
</ol>
|
||||||
<ol id="condition-list">
|
<h2>{$content.subheading1}</h2>
|
||||||
<li>Are you against dictatorship and in favor of democracy?</li>
|
<ol id="value-proposition-list">
|
||||||
<li>Are you against exploitation of one human being by another?</li>
|
<li>{$content.valueProposition1}</li>
|
||||||
<li>Do you agree that we should cooperate and not compete with each other?</li>
|
<li>{$content.valueProposition2}</li>
|
||||||
<p>If the answer is <b>YES</b>, then you are already a libertarian socialist. <b>JOIN US!</b></p>
|
<li>{$content.valueProposition3}</li>
|
||||||
</ol>
|
<li>{$content.valueProposition4}</li>
|
||||||
<h2>What You Will Get</h2>
|
<p>{$content.valueProposition5}</p>
|
||||||
<ol id="value-proposition-list">
|
</ol>
|
||||||
<li>A community that is always ready to help with all your troubles;</li>
|
<h2>{$content.subheading2}</h2>
|
||||||
<li>Access to the means of production of our cooperatives;</li>
|
<div id="call-to-action-list">
|
||||||
<li>Products and services at the cost of production or even for free;</li>
|
<p>{$content.findOur}</p>
|
||||||
<li>Monetary and non-monetary help with opening your own cooperative;</li>
|
<ol>
|
||||||
<p>and much more!</p>
|
<li><a href="/groups">{$content.group}</a>,</li>
|
||||||
</ol>
|
<li><a href="/communities">{$content.community}</a> {$content.or}</li>
|
||||||
<h2>Find Us</h2>
|
<li><a href="/cooperatives">{$content.cooperative}</a></li>
|
||||||
<div id="call-to-action-list">
|
</ol>
|
||||||
<p>Find our</p>
|
<p>{$content.nearYou}</p>
|
||||||
<ol>
|
</div>
|
||||||
<li><a href="/groups">group</a>,</li>
|
<p>{$content.noneNear} <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel=noreferrer>{$content.WhatsAppGroup}</a> {$content.or} <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel=noreferrer>{$content.DiscordServer}</a>{$content.helpStart}</p>
|
||||||
<li><a href="/communities">community</a> or</li>
|
<map-component id="map" callback={mapCallback}></map-component>
|
||||||
<li><a href="/cooperatives">cooperative</a></li>
|
</div>
|
||||||
</ol>
|
|
||||||
<p>near you and join to help make a world we both envision a reality.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<p>None of them near you? Not a problem! Join our <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel=noreferrer>WhatsApp group</a> or <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel=noreferrer>Discord server</a> and we will help you start your own.</p>
|
{/if}
|
||||||
<map-component id="map" callback={mapCallback}></map-component>
|
{/key}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
|
@ -135,7 +134,7 @@ None of them near you? Not a problem! Join our WhatsApp group and we will help y
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 1000px;
|
max-width: 800px;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4rem;
|
||||||
}
|
}
|
||||||
|
@ -148,6 +147,10 @@ None of them near you? Not a problem! Join our WhatsApp group and we will help y
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#call-to-action-list>:nth-child(1) {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
#call-to-action-list>:nth-child(2) {
|
#call-to-action-list>:nth-child(2) {
|
||||||
margin-bottom: 0rem;
|
margin-bottom: 0rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,47 +3,66 @@
|
||||||
<script>
|
<script>
|
||||||
// Import statements
|
// Import statements
|
||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
|
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
// Import components
|
// Import components
|
||||||
|
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
|
let grid
|
||||||
|
let gridWidth
|
||||||
|
let loaded
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
function changeWidth(locale) {
|
||||||
|
if (locale=="ru") {
|
||||||
|
gridWidth = "1.2fr 1.05fr 1fr"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
gridWidth = "1.2fr 1.1fr 1fr"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
loadLocaleContent(content,"landing-component",loaded,changeWidth)
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="container">
|
{#key loaded}
|
||||||
<picture>
|
{#if Object.keys($content).length!=0}
|
||||||
<source srcset="/img/crowd.webp">
|
<div id="container">
|
||||||
<source srcset="/img/crowd.png">
|
<picture>
|
||||||
<img id="crowd" alt="crowd">
|
<source srcset="/img/crowd.webp">
|
||||||
</picture>
|
<source srcset="/img/crowd.png">
|
||||||
|
<img id="crowd" alt="crowd">
|
||||||
<div id="text-container">
|
</picture>
|
||||||
<p>We are people united around a singular cause: bringing down authoritarian exploitative systems represented by various forms of capitalism and replacing them with libertarian socialist systems, with the goal of creating a more equitable and democratic world.</p>
|
|
||||||
<div id="container-grid">
|
<div id="text-container">
|
||||||
<div>
|
<p>{$content.top}</p>
|
||||||
<h2>GROUPS</h2>
|
<div bind:this={grid} id="container-grid" style="--grid-width: {gridWidth}">
|
||||||
<img id="groups-img" src="/img/common/groups.svg" alt="groups">
|
<div>
|
||||||
<p>We organize groups for the purposes of education, advocacy, and mutual aid. Our objective is to demonstrate to people how the current politico-economic systems detrimentally impact our well-being, present them with alternative approaches, and engage in mutual aid to alleviate the challenges of living under capitalism.</p>
|
<h2>{$content.groupsTitle}</h2>
|
||||||
</div>
|
<img id="groups-img" src="/img/common/groups.svg" alt="groups">
|
||||||
<div>
|
<p>{$content.groupsText}</p>
|
||||||
<h2>COMMUNITIES</h2>
|
</div>
|
||||||
<img id="communities-img" src="/img/common/communities.svg" alt="communities">
|
<div>
|
||||||
<p>We establish communities based on libertarian socialist principles, where communities have ownership of their land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.</p>
|
<h2>{$content.communitiesTitle}</h2>
|
||||||
</div>
|
<img id="communities-img" src="/img/common/communities.svg" alt="communities">
|
||||||
<div>
|
<p>{$content.communitiesText}</p>
|
||||||
<h2>COOPERATIVES</h2>
|
</div>
|
||||||
<img id="coops-img" src="/img/common/coops.svg" alt="coops">
|
<div>
|
||||||
<p>We form worker cooperatives to finance the operations of our groups and communities. Recognizing that economic power influences political power, we consider the establishment of cooperatives to be one of the initial steps towards achieving socialism.</p>
|
<h2>{$content.cooperativesTitle}</h2>
|
||||||
|
<img id="coops-img" src="/img/common/coops.svg" alt="coops">
|
||||||
|
<p>{$content.cooperativesText}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
</div>
|
{/key}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
|
@ -88,7 +107,7 @@
|
||||||
|
|
||||||
#container-grid {
|
#container-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1.2fr 1.1fr 1fr;
|
grid-template-columns: var(--grid-width);
|
||||||
grid-gap: 4rem;
|
grid-gap: 4rem;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
@ -103,7 +122,7 @@
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1000px) {
|
@media only screen and (max-width: 1060px) {
|
||||||
#container-grid {
|
#container-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|
|
@ -3,11 +3,18 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// Import statements
|
// Import statements
|
||||||
import { onMount } from 'svelte'
|
import { onMount, getContext } from 'svelte'
|
||||||
|
import { loadLocaleContent } from "/js/libraries/serverTools.js"
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
// Main code
|
// Main code
|
||||||
let hambInput
|
let hambInput
|
||||||
let navbar
|
let navbar
|
||||||
|
let localesDropdown
|
||||||
|
let loaded
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
loadLocaleContent(content,"navbar-component",loaded)
|
||||||
|
|
||||||
function changeNavbar() {
|
function changeNavbar() {
|
||||||
if (hambInput.checked) {
|
if (hambInput.checked) {
|
||||||
|
@ -25,6 +32,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showLocales() {
|
||||||
|
if (localesDropdown.style.display=="block") {
|
||||||
|
localesDropdown.style.display = "none"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
localesDropdown.style.display = "block"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeLocale(lang) {
|
||||||
|
localStorage.setItem("locale",lang)
|
||||||
|
location.reload()
|
||||||
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
@ -32,31 +53,312 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Navigation bar -->
|
<!-- Navigation bar -->
|
||||||
<header bind:this={navbar} id="navbar">
|
{#key loaded}
|
||||||
<!-- Hamburger icon -->
|
{#if Object.keys($content).length!=0}
|
||||||
<input bind:this={hambInput} type="checkbox" id="side-menu" on:click={changeNavbar}>
|
<header bind:this={navbar} id="navbar">
|
||||||
<label id="hamb" for="side-menu"><span id="hamb-line"></span></label>
|
<!-- Hamburger icon -->
|
||||||
<!-- Logo -->
|
<input bind:this={hambInput} type="checkbox" id="side-menu" on:click={changeNavbar}>
|
||||||
<a id=logo-container href="/">
|
<label id="hamb" for="side-menu"><span id="hamb-line"></span></label>
|
||||||
<img src="img/common/flag.png" id="navbar-logo" alt="logo">
|
<!-- Logo -->
|
||||||
<span id="navbar-logo-text">Libertarian socialists</span>
|
<a id=logo-container href="/">
|
||||||
</a>
|
<img src="img/common/flag.png" id="navbar-logo" alt="logo">
|
||||||
<!-- Menu -->
|
<span id="navbar-logo-text">{$content.orgName}</span>
|
||||||
<nav id="nav">
|
</a>
|
||||||
<ul id="menu">
|
<!-- Menu -->
|
||||||
<li><a href="/manifesto">Manifesto</a></li>
|
<nav id="nav">
|
||||||
<li><a href="/join-us">Join Us</a></li>
|
<ul id="menu">
|
||||||
<li><a href="/groups">Groups</a></li>
|
<li><a href="/manifesto">{$content.manifesto}</a></li>
|
||||||
<li><a href="/communities">Communities</a></li>
|
<li><a href="/join-us">{$content.joinUs}</a></li>
|
||||||
<li><a href="/cooperatives">Cooperatives</a></li>
|
<li><a href="/groups">{$content.groups}</a></li>
|
||||||
<li><a href="/affiliates">Affiliates</a></li>
|
<li><a href="/communities">{$content.communities}</a></li>
|
||||||
</ul>
|
<li><a href="/cooperatives">{$content.cooperatives}</a></li>
|
||||||
</nav>
|
<li><a href="/partners">{$content.partners}</a></li>
|
||||||
</header>
|
<li id="locales">
|
||||||
|
<button on:click={showLocales}>
|
||||||
|
<picture>
|
||||||
|
<source srcset="/img/common/globe.webp">
|
||||||
|
<source srcset="/img/common/globe.png">
|
||||||
|
<img id="locales-img" alt="globe">
|
||||||
|
</picture>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<div bind:this={localesDropdown} id="locales-dropdown">
|
||||||
|
<button on:click={() => changeLocale("en")}>English</button>
|
||||||
|
<button on:click={() => changeLocale("ru")}>Русский</button>
|
||||||
|
</div>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
{/if}
|
||||||
|
{/key}
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
@import '/css/common.css';
|
@import '/css/common.css';
|
||||||
@import '/css/navbar.css';
|
|
||||||
|
/* Header */
|
||||||
|
#navbar{
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
width: min(100%,116rem);
|
||||||
|
z-index: 1000000000;
|
||||||
|
height: 5.26rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navbar * {
|
||||||
|
font-family: var(--sans-serif, sans-serif);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Logo */
|
||||||
|
#logo-container {
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
margin-left: 1rem;
|
||||||
|
height: 100%;
|
||||||
|
max-height: 5.26rem;
|
||||||
|
color: black;
|
||||||
|
z-index: 1;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navbar-logo {
|
||||||
|
height: 3.5rem;
|
||||||
|
width: 3.5rem;
|
||||||
|
object-fit: contain;
|
||||||
|
border-radius: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navbar-logo-text {
|
||||||
|
position: relative;
|
||||||
|
width: auto;
|
||||||
|
height: 100%;
|
||||||
|
line-height: 400%;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
color: #292222;
|
||||||
|
font-family: var(--sans-serif, sans-serif);
|
||||||
|
font-weight: 400;
|
||||||
|
padding-left: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Nav menu */
|
||||||
|
#nav {
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: white;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
#menu a {
|
||||||
|
display: block;
|
||||||
|
padding: 1.2rem;
|
||||||
|
padding-top: 1rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
color: black;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
}
|
||||||
|
#menu a:hover {
|
||||||
|
background-color: rgb(220, 220, 220);
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu a:active{
|
||||||
|
background-color: #f7aec0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu li {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav{
|
||||||
|
max-height: 0;
|
||||||
|
/*transition: max-height .5s ease-out;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Menu Icon */
|
||||||
|
#hamb{
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
right: 0rem;
|
||||||
|
padding: 2.8rem 2rem;
|
||||||
|
z-index: 9999;
|
||||||
|
}/* Style label tag */
|
||||||
|
|
||||||
|
#hamb-line {
|
||||||
|
background: black;
|
||||||
|
display: block;
|
||||||
|
height: 2px;
|
||||||
|
position: relative;
|
||||||
|
width: 24px;
|
||||||
|
|
||||||
|
} /* Style span tag */
|
||||||
|
|
||||||
|
#hamb-line::before,
|
||||||
|
#hamb-line::after{
|
||||||
|
background: black;
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
transition: all .2s ease-out;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
#hamb-line::before{
|
||||||
|
top: 5px;
|
||||||
|
}
|
||||||
|
#hamb-line::after{
|
||||||
|
top: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu {
|
||||||
|
display: none;
|
||||||
|
} /* Hide checkbox */
|
||||||
|
|
||||||
|
/* Toggle menu icon */
|
||||||
|
#side-menu:checked ~ nav {
|
||||||
|
display: block;
|
||||||
|
max-height: 100%;
|
||||||
|
padding-top: 5.625rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ #logo-container {
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ #hamb {
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ #logo-container {
|
||||||
|
position: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ #hamb #hamb-line {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ #hamb #hamb-line::before {
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ #hamb #hamb-line::after {
|
||||||
|
transform: rotate(45deg);
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Localization*/
|
||||||
|
|
||||||
|
#locales {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales button {
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
|
height: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales button:hover {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-img {
|
||||||
|
position: relative;
|
||||||
|
top: 0rem;
|
||||||
|
height: 2rem;
|
||||||
|
margin-left: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-dropdown {
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
top: 5.6rem;
|
||||||
|
right: 1.8rem;
|
||||||
|
border: #404040 solid 0.1rem;
|
||||||
|
padding: 1.4rem;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-dropdown button {
|
||||||
|
display: block;
|
||||||
|
font-family: var(--sans-serif,sans-serif);
|
||||||
|
font-size: 1.3rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-dropdown button:hover {
|
||||||
|
color: rgb(127, 127, 127);
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-dropdown>:first-child {
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-dropdown>:nth-child(2) {
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Responsiveness */
|
||||||
|
@media only screen and (min-width: 1500px) {
|
||||||
|
|
||||||
|
#navbar {
|
||||||
|
position: relative;
|
||||||
|
width: min(95%,116rem);
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav {
|
||||||
|
max-height: none;
|
||||||
|
top: 0;
|
||||||
|
position: relative;
|
||||||
|
float: right;
|
||||||
|
width: fit-content;
|
||||||
|
background-color: transparent;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
#side-menu:checked ~ nav {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu li {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu a:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
color: rgb(127, 127, 127);
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu a {
|
||||||
|
padding: 1.2rem;
|
||||||
|
padding-top: 1.9rem;
|
||||||
|
padding-bottom: 1.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hamb {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales {
|
||||||
|
position: relative;
|
||||||
|
margin-right: 1.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-img {
|
||||||
|
top: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#locales-dropdown {
|
||||||
|
top: 5,7rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -0,0 +1,184 @@
|
||||||
|
<svelte:options tag="partners-component" />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Import statements
|
||||||
|
import { onMount } from 'svelte'
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
import { loadLocaleContent,getLocale } from "/js/libraries/serverTools.js"
|
||||||
|
//import { communities, addMarkersCommunities } from '/js/communities.js'
|
||||||
|
|
||||||
|
// Import components
|
||||||
|
import "/js/components/map-component.js"
|
||||||
|
|
||||||
|
// Main code
|
||||||
|
let loaded
|
||||||
|
let locale = []
|
||||||
|
let content = writable({})
|
||||||
|
|
||||||
|
loadLocaleContent(content,"partners-component",loaded,(lang) => getLocale(locale,lang))
|
||||||
|
|
||||||
|
let partners = [
|
||||||
|
{
|
||||||
|
name: "Gaia's Fall",
|
||||||
|
type: {
|
||||||
|
en: "a place to discuss and organize",
|
||||||
|
ru: "место для общения и организации"
|
||||||
|
},
|
||||||
|
link: "https://discord.libsoc.org",
|
||||||
|
description: {
|
||||||
|
en: "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together.",
|
||||||
|
ru: "Gaia's Fall — это сервер, который продвигает идеалы соларпанка, защиту окружающей среды, анархизм и антикапитализм. Мы поощряем гражданские дебаты, обсуждение теорий и возможностей, а также создание сообществ, сосредоточенных на формировании лучшего мира. Это наш официальный сервер Discord, на котором мы организуемся и работаем вместе"
|
||||||
|
},
|
||||||
|
logo: "gaias_fall"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#key loaded}
|
||||||
|
{#if Object.keys($content).length!=0}
|
||||||
|
<div id="container">
|
||||||
|
<!--<img src="img/crowd.png" id="crowd" alt="crowd">-->
|
||||||
|
<div id="text-container">
|
||||||
|
<h1>{$content.heading}</h1>
|
||||||
|
<img id="hands-img" src="/img/common/handshake.svg" alt="hands">
|
||||||
|
<p>{$content.p1}</p>
|
||||||
|
<h3>{$content.subheading1}</h3>
|
||||||
|
<h4>{$content.subheading2}</h4>
|
||||||
|
{#each partners as partner}
|
||||||
|
<div class="location-info">
|
||||||
|
<div class="img-general-info">
|
||||||
|
<picture>
|
||||||
|
<source srcset={"/img/partners/"+partner.logo+".webp"}>
|
||||||
|
<source srcset={"/img/partners/"+partner.logo+".jpg"}>
|
||||||
|
<img class="partner-logo" alt="logo">
|
||||||
|
</picture>
|
||||||
|
<div>
|
||||||
|
<p><b>{$content.name}: </b>{partner.name}</p>
|
||||||
|
<p><b>{$content.type}: </b>{partner.type[locale[0]]}</p>
|
||||||
|
<p><b>{$content.link}: </b><a href={partner.link[locale[0]]} target=;_blank; rel=noreferrer>{partner.link}</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p><b>{$content.description}: </b>{partner.description[locale[0]]}</p>
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{/key}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import '/css/common.css';
|
||||||
|
|
||||||
|
#hands-img {
|
||||||
|
position: absolute;
|
||||||
|
width: 10.5rem;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%);
|
||||||
|
z-index: 0;
|
||||||
|
opacity: 0.2;
|
||||||
|
margin-top: -2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#text-container>:nth-child(3) {
|
||||||
|
margin-top: 6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-general-info {
|
||||||
|
display: flex;
|
||||||
|
align-content: center;
|
||||||
|
width: 100%;
|
||||||
|
gap: 1.5rem;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-general-info>:nth-child(2) {
|
||||||
|
flex:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.partner-logo {
|
||||||
|
position: relative;
|
||||||
|
right: 0;
|
||||||
|
max-height: 6rem;
|
||||||
|
max-width: 100%;
|
||||||
|
border-radius: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-info {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-info p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #DD1C1A;
|
||||||
|
}
|
||||||
|
|
||||||
|
#map {
|
||||||
|
--height: 30rem;
|
||||||
|
--width: 100%;
|
||||||
|
--margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#text-container {
|
||||||
|
max-width: calc(100vw - 4rem);
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 2.2rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
margin: auto;
|
||||||
|
max-width: 800px;
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container>div>p {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container p {
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 500px) {
|
||||||
|
.img-general-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-content: left;
|
||||||
|
width: 100%;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: left;
|
||||||
|
margin-bottom: 0rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-general-info>:nth-child(1) {
|
||||||
|
width: max-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-general-info>:nth-child(2) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
|
@ -16,8 +16,8 @@
|
||||||
--grey-blue:hsl(223, 13%, 22%);
|
--grey-blue:hsl(223, 13%, 22%);
|
||||||
--cream:hsl(34, 43%, 90%);
|
--cream:hsl(34, 43%, 90%);
|
||||||
--dark-cream:hsl(33, 26%, 84%);
|
--dark-cream:hsl(33, 26%, 84%);
|
||||||
--sans-serif: "Space Grotesk";
|
--sans-serif: "OpenSans";
|
||||||
--serif: "DejaVu";
|
--serif: "Lora";
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
|
@ -59,27 +59,25 @@ body {
|
||||||
/*---Fonts---------------------------------------------------------*/
|
/*---Fonts---------------------------------------------------------*/
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Space Grotesk';
|
font-family: 'OpenSans';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: /*local('Space Grotesk Light'),
|
src: /*local('Space Grotesk Light'),
|
||||||
local('SpaceGroteskLight-Regular'),
|
local('SpaceGroteskLight-Regular'),
|
||||||
local('Space Grotesk Light Regular'), */
|
local('Space Grotesk Light Regular'), */
|
||||||
url('/fonts/SpaceGrotesk/SpaceGrotesk.woff2') format('woff2'),
|
url('/fonts/OpenSans/opensans.woff2') format('woff2'),
|
||||||
url('/fonts/SpaceGrotesk/SpaceGrotesk.woff') format('woff');
|
url('/fonts/OpenSans/opensans.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'DejaVu';
|
font-family: 'Lora';
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: /*local('DejaVuLGCSerif'),
|
src:
|
||||||
local('DejaVu LGC Serif'), */
|
url('/fonts/Lora/Lora-Regular.ttf') format('ttf'),
|
||||||
/*url('/fonts/DejaVu/DejaVuLGCSerif.woff2') format('woff2'), */
|
url('/fonts/lora/Lora-Regular.woff') format('woff');
|
||||||
url('/fonts/DejaVu/solitasserifnormregular.woff2') format('woff2'),
|
|
||||||
url('/fonts/DejaVu/DejaVuLGCSerif.woff') format('woff');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.serif {
|
.serif {
|
||||||
|
@ -124,7 +122,7 @@ h4 {
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
height: auto;
|
height: auto;
|
||||||
width: auto;
|
width: auto;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
|
@ -132,20 +130,20 @@ span {
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
line-height: 150%;
|
line-height: 160%;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
font-family: var(--serif, serif);
|
font-family: var(--serif, serif);
|
||||||
font-size: 1.25rem;
|
font-size: 1.15rem;
|
||||||
color: #222222;
|
color: #222222;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
@ -1,26 +1,40 @@
|
||||||
|
|
||||||
export let communities = [
|
export let communities = [
|
||||||
{
|
{
|
||||||
location: ["Estonia, Kohtla-Järve",[59.409521829709504, 27.288415912535914]],
|
location: [{
|
||||||
status: "forming",
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.409521829709504, 27.288415912535914]],
|
||||||
|
status: {
|
||||||
|
en: "forming",
|
||||||
|
ru: "формируется"
|
||||||
|
},
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCommunities(map) {
|
export function addMarkersCommunities(map,content,locale) {
|
||||||
for (let g of communities) {
|
for (let g of communities) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = field[0].toUpperCase() + field.slice(1) + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0] + "<br>"
|
text += fieldText + g[field][0][locale[0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
|
else if (field=="status") {
|
||||||
|
text += fieldText + g[field][locale[0]] + "<br>"
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,345 @@
|
||||||
import{S as t,i as e,a as i,b as n,s as a,e as o,c as r,n as s,d as l,f as m,g as c,h as g,j as d,o as h,t as f}from"./index-95aedb1a.js";import"../../../../../../../../../js/components/map-component.js";function p(t,e,i){const n=t.slice();return n[1]=e[i],n}function u(t){let e,i,a,m,d,h,p,u,x,b,w,v,y,k,C,j,z,D,T,A,E,F,G,L,O,R,S,W=t[1].name+"",_=t[1].type+"",q=t[1].link+"",H=t[1].description+"";return{c(){e=o("div"),i=o("div"),a=o("picture"),m=o("source"),d=r(),h=o("source"),p=r(),u=o("img"),x=r(),b=o("div"),w=o("p"),v=o("b"),v.textContent="Name: ",y=f(W),k=r(),C=o("p"),j=o("b"),j.textContent="Type: ",z=f(_),D=r(),T=o("p"),A=o("b"),A.textContent="Link: ",E=o("a"),F=f(q),G=r(),L=o("p"),O=o("b"),O.textContent="Description: ",R=f(H),S=r(),l(m,"srcset","/img/affiliates/"+t[1].logo+".webp"),l(h,"srcset","/img/affiliates/"+t[1].logo+".jpg"),l(u,"class","affiliate-logo"),l(u,"alt","logo"),l(E,"href",t[1].link),l(E,"target",";_blank;"),l(E,"rel","noreferrer"),l(i,"class","img-general-info"),l(e,"class","location-info")},m(t,o){n(t,e,o),c(e,i),c(i,a),c(a,m),c(a,d),c(a,h),c(a,p),c(a,u),c(i,x),c(i,b),c(b,w),c(w,v),c(w,y),c(b,k),c(b,C),c(C,j),c(C,z),c(b,D),c(b,T),c(T,A),c(T,E),c(E,F),c(e,G),c(e,L),c(L,O),c(L,R),c(e,S)},p:s,d(t){t&&g(e)}}}function x(t){let e,i,a,h,f,x,b,w,v,y,k,C,j,z=t[0],D=[];for(let e=0;e<z.length;e+=1)D[e]=u(p(t,z,e));return{c(){e=o("div"),i=o("div"),a=o("h1"),a.textContent="Affiliates",h=r(),f=o("img"),b=r(),w=o("p"),w.textContent="We affiliate with organizations and initiatives that align with our mission. Together, we are a united force driven by a shared worldview where there is no place for authoritarian exploitative systems, but where systems promoting equity and democracy thrive.",v=r(),y=o("h3"),y.textContent="Our affiliates",k=r(),C=o("h4"),C.textContent="Online",j=r();for(let t=0;t<D.length;t+=1)D[t].c();this.c=s,l(f,"id","hands-img"),m(f.src,x="/img/common/handshake.svg")||l(f,"src","/img/common/handshake.svg"),l(f,"alt","hands"),l(i,"id","text-container"),l(e,"id","container")},m(t,o){n(t,e,o),c(e,i),c(i,a),c(i,h),c(i,f),c(i,b),c(i,w),c(i,v),c(i,y),c(i,k),c(i,C),c(i,j);for(let t=0;t<D.length;t+=1)D[t].m(i,null)},p(t,[e]){if(1&e){let n;for(z=t[0],n=0;n<z.length;n+=1){const a=p(t,z,n);D[n]?D[n].p(a,e):(D[n]=u(a),D[n].c(),D[n].m(i,null))}for(;n<D.length;n+=1)D[n].d(1);D.length=z.length}},i:s,o:s,d(t){t&&g(e),d(D,t)}}}function b(t){return h((()=>{})),[[{name:"Gaia's Fall",type:"a place to discuss and organize",link:"https://discord.libsoc.org",description:"Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together.",logo:"gaias_fall"}]]}class w extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#hands-img{position:absolute;width:10.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;margin-top:-2rem}#text-container>:nth-child(3){margin-top:6rem}.img-general-info{display:flex;align-content:center;width:100%;gap:1.5rem;align-items:center;margin-bottom:1rem}.img-general-info>:nth-child(2){flex:none}.affiliate-logo{position:relative;right:0;max-height:6rem;max-width:100%;border-radius:1rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}@media only screen and (max-width: 500px){.img-general-info{display:flex;flex-direction:column;align-content:left;width:100%;gap:1rem;align-items:left;margin-bottom:0rem}.img-general-info>:nth-child(1){width:max-content}.img-general-info>:nth-child(2){width:100%}}</style>",e(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},b,x,a,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("affiliates-component",w);export{w as default};
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert_dev, s as safe_not_equal, v as validate_each_argument, d as dispatch_dev, c as validate_slots, o as onMount, e as element, f as space, n as noop, g as add_location, h as attr_dev, j as src_url_equal, k as append_dev, l as detach_dev, m as destroy_each, t as text } from './index-ab5c14c8.js';
|
||||||
|
import '../../../../../../../../../js/components/map-component.js';
|
||||||
|
|
||||||
|
/* src\affiliates-component.svelte generated by Svelte v3.52.0 */
|
||||||
|
|
||||||
|
const file = "src\\affiliates-component.svelte";
|
||||||
|
|
||||||
|
function get_each_context(ctx, list, i) {
|
||||||
|
const child_ctx = ctx.slice();
|
||||||
|
child_ctx[1] = list[i];
|
||||||
|
return child_ctx;
|
||||||
|
}
|
||||||
|
|
||||||
|
// (36:8) {#each affiliates as affiliate}
|
||||||
|
function create_each_block(ctx) {
|
||||||
|
let div2;
|
||||||
|
let div1;
|
||||||
|
let picture;
|
||||||
|
let source0;
|
||||||
|
let t0;
|
||||||
|
let source1;
|
||||||
|
let t1;
|
||||||
|
let img;
|
||||||
|
let t2;
|
||||||
|
let div0;
|
||||||
|
let p0;
|
||||||
|
let b0;
|
||||||
|
let t4_value = /*affiliate*/ ctx[1].name + "";
|
||||||
|
let t4;
|
||||||
|
let t5;
|
||||||
|
let p1;
|
||||||
|
let b1;
|
||||||
|
let t7_value = /*affiliate*/ ctx[1].type + "";
|
||||||
|
let t7;
|
||||||
|
let t8;
|
||||||
|
let p2;
|
||||||
|
let b2;
|
||||||
|
let a;
|
||||||
|
let t10_value = /*affiliate*/ ctx[1].link + "";
|
||||||
|
let t10;
|
||||||
|
let t11;
|
||||||
|
let p3;
|
||||||
|
let b3;
|
||||||
|
let t13_value = /*affiliate*/ ctx[1].description + "";
|
||||||
|
let t13;
|
||||||
|
let t14;
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div2 = element("div");
|
||||||
|
div1 = element("div");
|
||||||
|
picture = element("picture");
|
||||||
|
source0 = element("source");
|
||||||
|
t0 = space();
|
||||||
|
source1 = element("source");
|
||||||
|
t1 = space();
|
||||||
|
img = element("img");
|
||||||
|
t2 = space();
|
||||||
|
div0 = element("div");
|
||||||
|
p0 = element("p");
|
||||||
|
b0 = element("b");
|
||||||
|
b0.textContent = "Name: ";
|
||||||
|
t4 = text(t4_value);
|
||||||
|
t5 = space();
|
||||||
|
p1 = element("p");
|
||||||
|
b1 = element("b");
|
||||||
|
b1.textContent = "Type: ";
|
||||||
|
t7 = text(t7_value);
|
||||||
|
t8 = space();
|
||||||
|
p2 = element("p");
|
||||||
|
b2 = element("b");
|
||||||
|
b2.textContent = "Link: ";
|
||||||
|
a = element("a");
|
||||||
|
t10 = text(t10_value);
|
||||||
|
t11 = space();
|
||||||
|
p3 = element("p");
|
||||||
|
b3 = element("b");
|
||||||
|
b3.textContent = "Description: ";
|
||||||
|
t13 = text(t13_value);
|
||||||
|
t14 = space();
|
||||||
|
attr_dev(source0, "srcset", "/img/affiliates/" + /*affiliate*/ ctx[1].logo + ".webp");
|
||||||
|
add_location(source0, file, 39, 24, 1619);
|
||||||
|
attr_dev(source1, "srcset", "/img/affiliates/" + /*affiliate*/ ctx[1].logo + ".jpg");
|
||||||
|
add_location(source1, file, 40, 24, 1704);
|
||||||
|
attr_dev(img, "class", "affiliate-logo");
|
||||||
|
attr_dev(img, "alt", "logo");
|
||||||
|
add_location(img, file, 41, 24, 1788);
|
||||||
|
add_location(picture, file, 38, 20, 1584);
|
||||||
|
add_location(b0, file, 44, 27, 1915);
|
||||||
|
add_location(p0, file, 44, 24, 1912);
|
||||||
|
add_location(b1, file, 45, 27, 1977);
|
||||||
|
add_location(p1, file, 45, 24, 1974);
|
||||||
|
add_location(b2, file, 46, 27, 2039);
|
||||||
|
attr_dev(a, "href", /*affiliate*/ ctx[1].link);
|
||||||
|
attr_dev(a, "target", ";_blank;");
|
||||||
|
attr_dev(a, "rel", "noreferrer");
|
||||||
|
add_location(a, file, 46, 40, 2052);
|
||||||
|
add_location(p2, file, 46, 24, 2036);
|
||||||
|
add_location(div0, file, 43, 20, 1881);
|
||||||
|
attr_dev(div1, "class", "img-general-info");
|
||||||
|
add_location(div1, file, 37, 16, 1532);
|
||||||
|
add_location(b3, file, 49, 19, 2205);
|
||||||
|
add_location(p3, file, 49, 16, 2202);
|
||||||
|
attr_dev(div2, "class", "location-info");
|
||||||
|
add_location(div2, file, 36, 12, 1487);
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div2, anchor);
|
||||||
|
append_dev(div2, div1);
|
||||||
|
append_dev(div1, picture);
|
||||||
|
append_dev(picture, source0);
|
||||||
|
append_dev(picture, t0);
|
||||||
|
append_dev(picture, source1);
|
||||||
|
append_dev(picture, t1);
|
||||||
|
append_dev(picture, img);
|
||||||
|
append_dev(div1, t2);
|
||||||
|
append_dev(div1, div0);
|
||||||
|
append_dev(div0, p0);
|
||||||
|
append_dev(p0, b0);
|
||||||
|
append_dev(p0, t4);
|
||||||
|
append_dev(div0, t5);
|
||||||
|
append_dev(div0, p1);
|
||||||
|
append_dev(p1, b1);
|
||||||
|
append_dev(p1, t7);
|
||||||
|
append_dev(div0, t8);
|
||||||
|
append_dev(div0, p2);
|
||||||
|
append_dev(p2, b2);
|
||||||
|
append_dev(p2, a);
|
||||||
|
append_dev(a, t10);
|
||||||
|
append_dev(div2, t11);
|
||||||
|
append_dev(div2, p3);
|
||||||
|
append_dev(p3, b3);
|
||||||
|
append_dev(p3, t13);
|
||||||
|
append_dev(div2, t14);
|
||||||
|
},
|
||||||
|
p: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div2);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_each_block.name,
|
||||||
|
type: "each",
|
||||||
|
source: "(36:8) {#each affiliates as affiliate}",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function create_fragment(ctx) {
|
||||||
|
let div1;
|
||||||
|
let div0;
|
||||||
|
let h1;
|
||||||
|
let t1;
|
||||||
|
let img;
|
||||||
|
let img_src_value;
|
||||||
|
let t2;
|
||||||
|
let p;
|
||||||
|
let t4;
|
||||||
|
let h3;
|
||||||
|
let t6;
|
||||||
|
let h4;
|
||||||
|
let t8;
|
||||||
|
let each_value = /*affiliates*/ ctx[0];
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let each_blocks = [];
|
||||||
|
|
||||||
|
for (let i = 0; i < each_value.length; i += 1) {
|
||||||
|
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
||||||
|
}
|
||||||
|
|
||||||
|
const block = {
|
||||||
|
c: function create() {
|
||||||
|
div1 = element("div");
|
||||||
|
div0 = element("div");
|
||||||
|
h1 = element("h1");
|
||||||
|
h1.textContent = "Affiliates";
|
||||||
|
t1 = space();
|
||||||
|
img = element("img");
|
||||||
|
t2 = space();
|
||||||
|
p = element("p");
|
||||||
|
p.textContent = "We affiliate with organizations and initiatives that align with our mission. Together, we are a united force driven by a shared worldview where there is no place for authoritarian exploitative systems, but where systems promoting equity and democracy thrive.";
|
||||||
|
t4 = space();
|
||||||
|
h3 = element("h3");
|
||||||
|
h3.textContent = "Our affiliates";
|
||||||
|
t6 = space();
|
||||||
|
h4 = element("h4");
|
||||||
|
h4.textContent = "Online";
|
||||||
|
t8 = space();
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].c();
|
||||||
|
}
|
||||||
|
|
||||||
|
this.c = noop;
|
||||||
|
add_location(h1, file, 30, 8, 1006);
|
||||||
|
attr_dev(img, "id", "hands-img");
|
||||||
|
if (!src_url_equal(img.src, img_src_value = "/img/common/handshake.svg")) attr_dev(img, "src", img_src_value);
|
||||||
|
attr_dev(img, "alt", "hands");
|
||||||
|
add_location(img, file, 31, 8, 1035);
|
||||||
|
add_location(p, file, 32, 8, 1109);
|
||||||
|
add_location(h3, file, 33, 8, 1384);
|
||||||
|
add_location(h4, file, 34, 8, 1417);
|
||||||
|
attr_dev(div0, "id", "text-container");
|
||||||
|
add_location(div0, file, 29, 4, 971);
|
||||||
|
attr_dev(div1, "id", "container");
|
||||||
|
add_location(div1, file, 27, 0, 884);
|
||||||
|
},
|
||||||
|
l: function claim(nodes) {
|
||||||
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
||||||
|
},
|
||||||
|
m: function mount(target, anchor) {
|
||||||
|
insert_dev(target, div1, anchor);
|
||||||
|
append_dev(div1, div0);
|
||||||
|
append_dev(div0, h1);
|
||||||
|
append_dev(div0, t1);
|
||||||
|
append_dev(div0, img);
|
||||||
|
append_dev(div0, t2);
|
||||||
|
append_dev(div0, p);
|
||||||
|
append_dev(div0, t4);
|
||||||
|
append_dev(div0, h3);
|
||||||
|
append_dev(div0, t6);
|
||||||
|
append_dev(div0, h4);
|
||||||
|
append_dev(div0, t8);
|
||||||
|
|
||||||
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].m(div0, null);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
p: function update(ctx, [dirty]) {
|
||||||
|
if (dirty & /*affiliates*/ 1) {
|
||||||
|
each_value = /*affiliates*/ ctx[0];
|
||||||
|
validate_each_argument(each_value);
|
||||||
|
let i;
|
||||||
|
|
||||||
|
for (i = 0; i < each_value.length; i += 1) {
|
||||||
|
const child_ctx = get_each_context(ctx, each_value, i);
|
||||||
|
|
||||||
|
if (each_blocks[i]) {
|
||||||
|
each_blocks[i].p(child_ctx, dirty);
|
||||||
|
} else {
|
||||||
|
each_blocks[i] = create_each_block(child_ctx);
|
||||||
|
each_blocks[i].c();
|
||||||
|
each_blocks[i].m(div0, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (; i < each_blocks.length; i += 1) {
|
||||||
|
each_blocks[i].d(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
each_blocks.length = each_value.length;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
i: noop,
|
||||||
|
o: noop,
|
||||||
|
d: function destroy(detaching) {
|
||||||
|
if (detaching) detach_dev(div1);
|
||||||
|
destroy_each(each_blocks, detaching);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
dispatch_dev("SvelteRegisterBlock", {
|
||||||
|
block,
|
||||||
|
id: create_fragment.name,
|
||||||
|
type: "component",
|
||||||
|
source: "",
|
||||||
|
ctx
|
||||||
|
});
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
|
function instance($$self, $$props, $$invalidate) {
|
||||||
|
let { $$slots: slots = {}, $$scope } = $$props;
|
||||||
|
validate_slots('affiliates-component', slots, []);
|
||||||
|
|
||||||
|
let affiliates = [
|
||||||
|
{
|
||||||
|
name: "Gaia's Fall",
|
||||||
|
type: "a place to discuss and organize",
|
||||||
|
link: "https://discord.libsoc.org",
|
||||||
|
description: "Gaia's Fall is a server that promotes Solarpunk ideals, environmentalism, anarchism, and anti-capitalism. We encourage civil debates, discussions of theories and possibilities, and the creation of communities focused on shaping a better world. It is our official Discord server where we organize and work together.",
|
||||||
|
logo: "gaias_fall"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const writable_props = [];
|
||||||
|
|
||||||
|
Object.keys($$props).forEach(key => {
|
||||||
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<affiliates-component> was created with unknown prop '${key}'`);
|
||||||
|
});
|
||||||
|
|
||||||
|
$$self.$capture_state = () => ({ onMount, affiliates });
|
||||||
|
|
||||||
|
$$self.$inject_state = $$props => {
|
||||||
|
if ('affiliates' in $$props) $$invalidate(0, affiliates = $$props.affiliates);
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($$props && "$$inject" in $$props) {
|
||||||
|
$$self.$inject_state($$props.$$inject);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [affiliates];
|
||||||
|
}
|
||||||
|
|
||||||
|
class Affiliates_component extends SvelteElement {
|
||||||
|
constructor(options) {
|
||||||
|
super();
|
||||||
|
this.shadowRoot.innerHTML = `<style>@import '/css/common.css';#hands-img{position:absolute;width:10.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;margin-top:-2rem}#text-container>:nth-child(3){margin-top:6rem}.img-general-info{display:flex;align-content:center;width:100%;gap:1.5rem;align-items:center;margin-bottom:1rem}.img-general-info>:nth-child(2){flex:none}.affiliate-logo{position:relative;right:0;max-height:6rem;max-width:100%;border-radius:1rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}@media only screen and (max-width: 500px){.img-general-info{display:flex;flex-direction:column;align-content:left;width:100%;gap:1rem;align-items:left;margin-bottom:0rem}.img-general-info>:nth-child(1){width:max-content}.img-general-info>:nth-child(2){width:100%}}</style>`;
|
||||||
|
|
||||||
|
init(
|
||||||
|
this,
|
||||||
|
{
|
||||||
|
target: this.shadowRoot,
|
||||||
|
props: attribute_to_object(this.attributes),
|
||||||
|
customElement: true
|
||||||
|
},
|
||||||
|
instance,
|
||||||
|
create_fragment,
|
||||||
|
safe_not_equal,
|
||||||
|
{},
|
||||||
|
null
|
||||||
|
);
|
||||||
|
|
||||||
|
if (options) {
|
||||||
|
if (options.target) {
|
||||||
|
insert_dev(options.target, this, options.anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define("affiliates-component", Affiliates_component);
|
||||||
|
|
||||||
|
export { Affiliates_component as default };
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as e,a as n,b as o,s as i,e as a,c as s,n as m,d as r,f as c,k as l,g as h,h as u,j as d,o as g,t as p}from"./index-95aedb1a.js";import{communities as f,addMarkersCommunities as b}from"../../../../../../../../../js/communities.js";import"../../../../../../../../../js/components/map-component.js";function w(t,e,n){const o=t.slice();return o[1]=e[n],o}function x(t){let e,n,i,c,l,d,g,f,b,w,x,v,y,C,j,k,E,z,D=t[1].location[0]+"",L=t[1].status+"",M=t[1].members+"",R=t[1].contact[1]+"";return{c(){e=a("div"),n=a("p"),i=a("b"),i.textContent="Location: ",c=p(D),l=s(),d=a("p"),g=a("b"),g.textContent="Status: ",f=p(L),b=s(),w=a("p"),x=a("b"),x.textContent="Members: ",v=p(M),y=s(),C=a("p"),j=a("b"),j.textContent="Contact: ",k=a("a"),E=p(R),z=s(),r(k,"href",t[1].contact[0]),r(k,"target",";_blank;"),r(k,"rel","noreferrer"),r(e,"class","location-info")},m(t,a){o(t,e,a),h(e,n),h(n,i),h(n,c),h(e,l),h(e,d),h(d,g),h(d,f),h(e,b),h(e,w),h(w,x),h(w,v),h(e,y),h(e,C),h(C,j),h(C,k),h(k,E),h(e,z)},p:m,d(t){t&&u(e)}}}function v(t){let e,n,i,g,p,b,v,y,C,j,k,E,z,D,L,M=f,R=[];for(let e=0;e<M.length;e+=1)R[e]=x(w(t,M,e));return{c(){e=a("div"),n=a("div"),i=a("h1"),i.textContent="Communities",g=s(),p=a("img"),v=s(),y=a("p"),y.textContent="We establish libertarian socialist communities by buying land, housing and the means of production which are then owned by the members of these communities. There is no private property within the communities and, therefore, exploitation and suffering that comes with it. Decisions are made using direct democracy with a focus on consensus, ensuring that each community member has power over decisions that affect their life. Communities try to establish their own cooperatives in order to finance their development becoming financially independent and sustainable, which allows for their survival and growth. Within communities the gift economy is utilized whenever possible. Each community is a small beacon of socialism within the dark capitalist world showing us how good life can be if only we achieve our goal.",C=s(),j=a("h3"),j.textContent="Our communities",k=s(),E=a("map-component"),z=s(),D=a("h4"),D.textContent="Europe",L=s();for(let t=0;t<R.length;t+=1)R[t].c();this.c=m,r(p,"id","communities-img"),c(p.src,b="/img/common/communities.svg")||r(p,"src","/img/common/communities.svg"),r(p,"alt","communities"),l(E,"id","map"),l(E,"callback",t[0]),r(n,"id","text-container"),r(e,"id","container")},m(t,a){o(t,e,a),h(e,n),h(n,i),h(n,g),h(n,p),h(n,v),h(n,y),h(n,C),h(n,j),h(n,k),h(n,E),h(n,z),h(n,D),h(n,L);for(let t=0;t<R.length;t+=1)R[t].m(n,null)},p(t,[e]){if(0&e){let o;for(M=f,o=0;o<M.length;o+=1){const i=w(t,M,o);R[o]?R[o].p(i,e):(R[o]=x(i),R[o].c(),R[o].m(n,null))}for(;o<R.length;o+=1)R[o].d(1);R.length=M.length}},i:m,o:m,d(t){t&&u(e),d(R,t)}}}function y(t){return g((()=>{})),[function(t){let e=t([51.505,-.09],3);b(e)}]}class C extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:1000px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},y,v,i,{},null),t&&t.target&&o(t.target,this,t.anchor)}}customElements.define("communities-component",C);export{C as default};
|
import{S as t,i as n,a as o,b as e,s as i,e as m,n as a,d as s,c as r,o as c,f as l,t as g,g as p,h,j as u,k as d,l as f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.js";import{communities as v,addMarkersCommunities as w}from"../../../../../../../../../js/communities.js";import{loadLocaleContent as k,getLocale as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function z(t,n,o){const e=t.slice();return e[6]=n[o],e}function D(t){let n,o,i,m,a,r,c,j,w,k,y,D,O,R,T,A,C,H,L,M,N=t[0].heading+"",S=t[0].p1+"",_=t[0].subheading1+"",q=t[0].subheading2+"",B=v,F=[];for(let n=0;n<B.length;n+=1)F[n]=E(z(t,B,n));return{c(){n=l("div"),o=l("div"),i=l("h1"),m=g(N),a=p(),r=l("img"),j=p(),w=l("p"),k=g(S),y=p(),D=l("h3"),O=g(_),R=p(),T=l("map-component"),C=p(),H=l("h4"),L=g(q),M=p();for(let t=0;t<F.length;t+=1)F[t].c();h(r,"id","communities-img"),u(r.src,c="/img/common/communities.svg")||h(r,"src","/img/common/communities.svg"),h(r,"alt","communities"),d(T,"id","map"),d(T,"callback",A=t[5]),h(o,"id","text-container"),h(n,"id","container")},m(t,s){e(t,n,s),f(n,o),f(o,i),f(i,m),f(o,a),f(o,r),f(o,j),f(o,w),f(w,k),f(o,y),f(o,D),f(D,O),f(o,R),f(o,T),f(o,C),f(o,H),f(H,L),f(o,M);for(let t=0;t<F.length;t+=1)F[t].m(o,null)},p(t,n){if(1&n&&N!==(N=t[0].heading+"")&&b(m,N),1&n&&S!==(S=t[0].p1+"")&&b(k,S),1&n&&_!==(_=t[0].subheading1+"")&&b(O,_),1&n&&A!==(A=t[5])&&d(T,"callback",A),1&n&&q!==(q=t[0].subheading2+"")&&b(L,q),5&n){let e;for(B=v,e=0;e<B.length;e+=1){const i=z(t,B,e);F[e]?F[e].p(i,n):(F[e]=E(i),F[e].c(),F[e].m(o,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=B.length}},d(t){t&&s(n),x(F,t)}}}function E(t){let n,o,i,m,a,r,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T,A,C,H,L,M,N=t[0].location+"",S=t[6].location[0][t[2][0]]+"",_=t[0].status+"",q=t[6].status[t[2][0]]+"",B=t[0].members+"",F=t[6].members+"",G=t[0].contact+"",I=t[6].contact[1][t[2][0]]+"";return{c(){n=l("div"),o=l("p"),i=l("b"),m=g(N),a=g(": "),r=g(S),c=p(),u=l("p"),d=l("b"),x=g(_),j=g(": "),v=g(q),w=p(),k=l("p"),y=l("b"),z=g(B),D=g(": "),E=g(F),O=p(),R=l("p"),T=l("b"),A=g(G),C=g(": "),H=l("a"),L=g(I),M=p(),h(H,"href",t[6].contact[0]),h(H,"target",";_blank;"),h(H,"rel","noreferrer"),h(n,"class","location-info")},m(t,s){e(t,n,s),f(n,o),f(o,i),f(i,m),f(i,a),f(o,r),f(n,c),f(n,u),f(u,d),f(d,x),f(d,j),f(u,v),f(n,w),f(n,k),f(k,y),f(y,z),f(y,D),f(k,E),f(n,O),f(n,R),f(R,T),f(T,A),f(T,C),f(R,H),f(H,L),f(n,M)},p(t,n){1&n&&N!==(N=t[0].location+"")&&b(m,N),1&n&&_!==(_=t[0].status+"")&&b(x,_),1&n&&B!==(B=t[0].members+"")&&b(z,B),1&n&&G!==(G=t[0].contact+"")&&b(A,G)},d(t){t&&s(n)}}}function O(t){let n,o=0!=Object.keys(t[0]).length,i=o&&D(t);return{c(){i&&i.c(),n=m(),this.c=a},m(t,o){i&&i.m(t,o),e(t,n,o)},p(t,[e]){1&e&&(o=0!=Object.keys(t[0]).length),o?i?i.p(t,e):(i=D(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},i:a,o:a,d(t){i&&i.d(t),t&&s(n)}}}function R(t,n,o){let e,i,m=[],a=j({});function s(t,n,o){let e=t([51.505,-.09],3);w(e,n,o)}r(t,a,(t=>o(0,e=t))),k(a,"communities-component",i,(t=>y(m,t))),c((()=>{}));return[e,i,m,a,s,t=>s(t,e,m)]}class T extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#communities-img{position:absolute;width:11.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",n(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},R,O,i,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communities-component",T);export{T as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as e,i as s,a as t,b as o,s as i,e as a,n as r,d as n,h as c,o as d}from"./index-95aedb1a.js";function p(e){let s;return{c(){s=a("div"),s.innerHTML="<div><p>We use cookies to improve your experience, personalise your content and analyse site usage. By clicking “OK”, you agree to the use of cookies.</p></div>",this.c=r,n(s,"id","wrapper")},m(e,t){o(e,s,t)},p:r,i:r,o:r,d(e){e&&c(s)}}}function u(e){return d((()=>{})),[]}class h extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#wrapper{display:none;position:relative;height:5rem;width:100%;background:white;box-shadow:0 0 0.314rem rgb(187, 187, 187);;}</style>",s(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},u,p,i,{},null),e&&e.target&&o(e.target,this,e.anchor)}}customElements.define("cookies-dialog",h);export{h as default};
|
import{S as e,i as s,a as t,b as o,s as i,f as a,n as r,h as n,d as c,o as d}from"./index-ce8c147b.js";function p(e){let s;return{c(){s=a("div"),s.innerHTML="<div><p>We use cookies to improve your experience, personalise your content and analyse site usage. By clicking “OK”, you agree to the use of cookies.</p></div>",this.c=r,n(s,"id","wrapper")},m(e,t){o(e,s,t)},p:r,i:r,o:r,d(e){e&&c(s)}}}function u(e){return d((()=>{})),[]}class h extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#wrapper{display:none;position:relative;height:5rem;width:100%;background:white;box-shadow:0 0 0.314rem rgb(187, 187, 187);;}</style>",s(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},u,p,i,{},null),e&&e.target&&o(e.target,this,e.anchor)}}customElements.define("cookies-dialog",h);export{h as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as e,a,b as r,s as n,e as s,c as o,n as i,d as c,g as l,p as h,h as d}from"./index-95aedb1a.js";function p(t){let e,a,n,p,g,m,f,u,w;return{c(){e=s("footer"),a=s("div"),n=s("div"),n.innerHTML='<div id="contact-us-container"><h2>CONTACT US</h2> \n \n <p>WhatsApp: <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel="noreferrer" style="margin-left: 0.5rem;">invite link</a></p> \n <p>Discord: <a href="https://discord.gg/xAPZmyr8B6" target="_blank" rel="noreferrer" style="margin-left: 2rem;">invite link</a></p></div>',p=o(),g=s("button"),g.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601"><g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)"><rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"></rect><path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"></path></g></svg>',m=o(),f=s("p"),f.textContent="© 2023 Libertarian Socialists",this.c=i,c(n,"id","footer-grid-content-container"),c(n,"class","logged"),c(g,"id","footer-up"),c(g,"aria-label","go up"),c(f,"id","footer-copyright"),c(a,"id","footer-content-container")},m(s,o){r(s,e,o),l(e,a),l(a,n),l(a,p),l(a,g),l(a,m),l(a,f),u||(w=h(g,"click",t[0]),u=!0)},p:i,i:i,o:i,d(t){t&&d(e),u=!1,w()}}}function g(t){return[()=>{location.href="#"}]}class m extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/footer.css';</style>",e(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},g,p,n,{},null),t&&t.target&&r(t.target,this,t.anchor)}}customElements.define("footer-component",m);export{m as default};
|
import{S as t,i as e,a as r,b as a,s,e as o,n as i,d as n,c,f as l,t as d,g as h,h as m,r as f,l as p,u as g,m as u}from"./index-ce8c147b.js";import{w as b}from"./index-f2dbf8ff.js";import{loadLocaleContent as v,getLocale as w}from"../../../../../../../../../js/libraries/serverTools.js";function k(t){let e,r,s,o,i,c,b,v,w,k,x,j,y,L,U,_,A,R,S,T,B,D,H,M,P=t[0].contactUs+"",E=t[0].inviteLink+"",G=t[0].inviteLink+"",N=t[0].libertarianSocialists+"";return{c(){e=l("footer"),r=l("div"),s=l("div"),o=l("div"),i=l("h2"),c=d(P),b=h(),v=l("p"),w=d("WhatsApp: "),k=l("a"),x=d(E),j=h(),y=l("p"),L=d("Discord: "),U=l("a"),_=d(G),A=h(),R=l("button"),R.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601"><g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)"><rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"></rect><path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"></path></g></svg>',S=h(),T=l("p"),B=d("© 2023 "),D=d(N),m(k,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),m(k,"target","_blank"),m(k,"rel","noreferrer"),f(k,"margin-left","0.5rem"),m(U,"href","https://discord.gg/xAPZmyr8B6"),m(U,"target","_blank"),m(U,"rel","noreferrer"),f(U,"margin-left","2rem"),m(o,"id","contact-us-container"),m(s,"id","footer-grid-content-container"),m(s,"class","logged"),m(R,"id","footer-up"),m(R,"aria-label","go up"),m(T,"id","footer-copyright"),m(r,"id","footer-content-container")},m(n,l){a(n,e,l),p(e,r),p(r,s),p(s,o),p(o,i),p(i,c),p(o,b),p(o,v),p(v,w),p(v,k),p(k,x),p(o,j),p(o,y),p(y,L),p(y,U),p(U,_),p(r,A),p(r,R),p(r,S),p(r,T),p(T,B),p(T,D),H||(M=g(R,"click",t[3]),H=!0)},p(t,e){1&e&&P!==(P=t[0].contactUs+"")&&u(c,P),1&e&&E!==(E=t[0].inviteLink+"")&&u(x,E),1&e&&G!==(G=t[0].inviteLink+"")&&u(_,G),1&e&&N!==(N=t[0].libertarianSocialists+"")&&u(D,N)},d(t){t&&n(e),H=!1,M()}}}function x(t){let e,r=0!=Object.keys(t[0]).length,s=r&&k(t);return{c(){s&&s.c(),e=o(),this.c=i},m(t,r){s&&s.m(t,r),a(t,e,r)},p(t,[a]){1&a&&(r=0!=Object.keys(t[0]).length),r?s?s.p(t,a):(s=k(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:i,o:i,d(t){s&&s.d(t),t&&n(e)}}}function j(t,e,r){let a,s,o=[],i=b({});c(t,i,(t=>r(0,a=t))),v(i,"footer-component",s,(t=>w(o,t)));return[a,s,i,()=>{location.href="#"}]}class y extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/footer.css';</style>",e(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},j,x,s,{},null),t&&t.target&&a(t.target,this,t.anchor)}}customElements.define("footer-component",y);export{y as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as e,a as o,b as n,l as a,s as i,e as s,c as r,n as m,d as c,f as l,k as p,g as u,h as g,j as h,o as d,t as f}from"./index-95aedb1a.js";import{groups as b,addMarkersGroups as x}from"../../../../../../../../../js/groups.js";import"../../../../../../../../../js/components/map-component.js";function w(t,e,o){const n=t.slice();return n[1]=e[o],n}function v(t){let e,o,a,i,l,p,h,d,b,x,w,v,y,C,k=t[1].location[0]+"",j=t[1].members+"",G=t[1].contact[1]+"";return{c(){e=s("div"),o=s("p"),a=s("b"),a.textContent="Location: ",i=f(k),l=r(),p=s("p"),h=s("b"),h.textContent="Members: ",d=f(j),b=r(),x=s("p"),w=s("b"),w.textContent="Contact: ",v=s("a"),y=f(G),C=r(),c(v,"href",t[1].contact[0]),c(v,"target",";_blank;"),c(v,"rel","noreferrer"),c(e,"class","location-info")},m(t,s){n(t,e,s),u(e,o),u(o,a),u(o,i),u(e,l),u(e,p),u(p,h),u(p,d),u(e,b),u(e,x),u(x,w),u(x,v),u(v,y),u(e,C)},p:m,d(t){t&&g(e)}}}function y(t){let e,o,a,i,d,f,x,y,C,k,j,G,q,E,T,W,$,z=b,A=[];for(let e=0;e<z.length;e+=1)A[e]=v(w(t,z,e));return{c(){e=s("div"),o=s("div"),a=s("h1"),a.textContent="Groups",i=r(),d=s("img"),x=r(),y=s("p"),y.textContent="We aim to raise awareness about the negative impact of current politico-economic systems on our well-being. Through education, community engagement, and analysis, we reveal the flaws and inequalities in capitalist societies. By highlighting these issues, we empower people to question the status quo and imagine fairer and more sustainable alternatives.",C=r(),k=s("p"),k.textContent="But our mission goes beyond theory. We engage in mutual aid and collective action to address immediate challenges within capitalism. Through mutual aid, we support each other by sharing resources, knowledge, and skills, fostering solidarity and resilience. Whether it's community gardens, food cooperatives, or support networks, our goal is to make life under capitalism more bearable and create pockets of resistance and alternatives within the system.",j=r(),G=s("h3"),G.textContent="Our groups",q=r(),E=s("map-component"),T=r(),W=s("h4"),W.textContent="Europe",$=r();for(let t=0;t<A.length;t+=1)A[t].c();this.c=m,c(d,"id","groups-img"),l(d.src,f="/img/common/groups.svg")||c(d,"src","/img/common/groups.svg"),c(d,"alt","groups"),p(E,"id","map"),p(E,"callback",t[0]),c(o,"id","text-container"),c(e,"id","container")},m(t,s){n(t,e,s),u(e,o),u(o,a),u(o,i),u(o,d),u(o,x),u(o,y),u(o,C),u(o,k),u(o,j),u(o,G),u(o,q),u(o,E),u(o,T),u(o,W),u(o,$);for(let t=0;t<A.length;t+=1)A[t].m(o,null)},p(t,[e]){if(0&e){let n;for(z=b,n=0;n<z.length;n+=1){const a=w(t,z,n);A[n]?A[n].p(a,e):(A[n]=v(a),A[n].c(),A[n].m(o,null))}for(;n<A.length;n+=1)A[n].d(1);A.length=z.length}},i:m,o:m,d(t){t&&g(e),h(A,t)}}}function C(t,e,o){return d((()=>{})),[function(t){let e=t([51.505,-.09],3);x(e)}]}class k extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:1000px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",e(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},C,y,i,{mapCallbackGroups:0},null),t&&(t.target&&n(t.target,this,t.anchor),t.props&&(this.$set(t.props),a()))}static get observedAttributes(){return["mapCallbackGroups"]}get mapCallbackGroups(){return this.$$.ctx[0]}}customElements.define("groups-component",k);export{k as default};
|
import{S as t,i as o,a as n,b as e,s as r,e as a,n as i,d as s,c as m,o as c,f as l,t as p,g,h,j as u,k as d,l as f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.js";import{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k,getLocale as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function z(t,o,n){const e=t.slice();return e[6]=o[n],e}function D(t){let o,n,r,a,i,m,c,j,w,k,y,D,O,R,T,A,C,H,L,M,N,S,_,q=t[0].heading+"",B=t[0].p1+"",F=t[0].p2+"",G=t[0].subheading1+"",I=t[0].subheading2+"",J=v,K=[];for(let o=0;o<J.length;o+=1)K[o]=E(z(t,J,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),a=p(q),i=g(),m=l("img"),j=g(),w=l("p"),k=p(B),y=g(),D=l("p"),O=p(F),R=g(),T=l("h3"),A=p(G),C=g(),H=l("map-component"),M=g(),N=l("h4"),S=p(I),_=g();for(let t=0;t<K.length;t+=1)K[t].c();h(m,"id","groups-img"),u(m.src,c="/img/common/groups.svg")||h(m,"src","/img/common/groups.svg"),h(m,"alt","groups"),d(H,"id","map"),d(H,"callback",L=t[5]),h(n,"id","text-container"),h(o,"id","container")},m(t,s){e(t,o,s),f(o,n),f(n,r),f(r,a),f(n,i),f(n,m),f(n,j),f(n,w),f(w,k),f(n,y),f(n,D),f(D,O),f(n,R),f(n,T),f(T,A),f(n,C),f(n,H),f(n,M),f(n,N),f(N,S),f(n,_);for(let t=0;t<K.length;t+=1)K[t].m(n,null)},p(t,o){if(1&o&&q!==(q=t[0].heading+"")&&b(a,q),1&o&&B!==(B=t[0].p1+"")&&b(k,B),1&o&&F!==(F=t[0].p2+"")&&b(O,F),1&o&&G!==(G=t[0].subheading1+"")&&b(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&b(S,I),5&o){let e;for(J=v,e=0;e<J.length;e+=1){const r=z(t,J,e);K[e]?K[e].p(r,o):(K[e]=E(r),K[e].c(),K[e].m(n,null))}for(;e<K.length;e+=1)K[e].d(1);K.length=J.length}},d(t){t&&s(o),x(K,t)}}}function E(t){let o,n,r,a,i,m,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T=t[0].location+"",A=t[6].location[0][t[2][0]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[6].contact[1][t[2][0]]+"";return{c(){o=l("div"),n=l("p"),r=l("b"),a=p(T),i=p(": "),m=p(A),c=g(),u=l("p"),d=l("b"),x=p(C),j=p(": "),v=p(H),w=g(),k=l("p"),y=l("b"),z=p(L),D=p(": "),E=l("a"),O=p(M),R=g(),h(E,"href",t[6].contact[0]),h(E,"target",";_blank;"),h(E,"rel","noreferrer"),h(o,"class","location-info")},m(t,s){e(t,o,s),f(o,n),f(n,r),f(r,a),f(r,i),f(n,m),f(o,c),f(o,u),f(u,d),f(d,x),f(d,j),f(u,v),f(o,w),f(o,k),f(k,y),f(y,z),f(y,D),f(k,E),f(E,O),f(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&b(a,T),1&o&&C!==(C=t[0].members+"")&&b(x,C),1&o&&L!==(L=t[0].contact+"")&&b(z,L)},d(t){t&&s(o)}}}function O(t){let o,n=0!=Object.keys(t[0]).length,r=n&&D(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,n){r&&r.m(t,n),e(t,o,n)},p(t,[e]){1&e&&(n=0!=Object.keys(t[0]).length),n?r?r.p(t,e):(r=D(t),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i:i,o:i,d(t){r&&r.d(t),t&&s(o)}}}function R(t,o,n){let e,r,a=[],i=j({});function s(t,o,n){let e=t([51.505,-.09],3);w(e,o,n)}m(t,i,(t=>n(0,e=t))),k(i,"groups-component",r,(t=>y(a,t))),c((()=>{}));return[e,r,a,i,s,t=>s(t,e,a)]}class T extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",o(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},R,O,r,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("groups-component",T);export{T as default};
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { n as noop, s as safe_not_equal } from './index-a459c24b.js';
|
||||||
|
|
||||||
|
const subscriber_queue = [];
|
||||||
|
/**
|
||||||
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
||||||
|
* @param {*=}value initial value
|
||||||
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
||||||
|
*/
|
||||||
|
function writable(value, start = noop) {
|
||||||
|
let stop;
|
||||||
|
const subscribers = new Set();
|
||||||
|
function set(new_value) {
|
||||||
|
if (safe_not_equal(value, new_value)) {
|
||||||
|
value = new_value;
|
||||||
|
if (stop) { // store is ready
|
||||||
|
const run_queue = !subscriber_queue.length;
|
||||||
|
for (const subscriber of subscribers) {
|
||||||
|
subscriber[1]();
|
||||||
|
subscriber_queue.push(subscriber, value);
|
||||||
|
}
|
||||||
|
if (run_queue) {
|
||||||
|
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
||||||
|
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
||||||
|
}
|
||||||
|
subscriber_queue.length = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function update(fn) {
|
||||||
|
set(fn(value));
|
||||||
|
}
|
||||||
|
function subscribe(run, invalidate = noop) {
|
||||||
|
const subscriber = [run, invalidate];
|
||||||
|
subscribers.add(subscriber);
|
||||||
|
if (subscribers.size === 1) {
|
||||||
|
stop = start(set) || noop;
|
||||||
|
}
|
||||||
|
run(value);
|
||||||
|
return () => {
|
||||||
|
subscribers.delete(subscriber);
|
||||||
|
if (subscribers.size === 0) {
|
||||||
|
stop();
|
||||||
|
stop = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { set, update, subscribe };
|
||||||
|
}
|
||||||
|
|
||||||
|
export { writable as w };
|
|
@ -0,0 +1,53 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { n as noop, s as safe_not_equal } from './index-5cb337ff.js';
|
||||||
|
|
||||||
|
const subscriber_queue = [];
|
||||||
|
/**
|
||||||
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
||||||
|
* @param {*=}value initial value
|
||||||
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
||||||
|
*/
|
||||||
|
function writable(value, start = noop) {
|
||||||
|
let stop;
|
||||||
|
const subscribers = new Set();
|
||||||
|
function set(new_value) {
|
||||||
|
if (safe_not_equal(value, new_value)) {
|
||||||
|
value = new_value;
|
||||||
|
if (stop) { // store is ready
|
||||||
|
const run_queue = !subscriber_queue.length;
|
||||||
|
for (const subscriber of subscribers) {
|
||||||
|
subscriber[1]();
|
||||||
|
subscriber_queue.push(subscriber, value);
|
||||||
|
}
|
||||||
|
if (run_queue) {
|
||||||
|
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
||||||
|
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
||||||
|
}
|
||||||
|
subscriber_queue.length = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function update(fn) {
|
||||||
|
set(fn(value));
|
||||||
|
}
|
||||||
|
function subscribe(run, invalidate = noop) {
|
||||||
|
const subscriber = [run, invalidate];
|
||||||
|
subscribers.add(subscriber);
|
||||||
|
if (subscribers.size === 1) {
|
||||||
|
stop = start(set) || noop;
|
||||||
|
}
|
||||||
|
run(value);
|
||||||
|
return () => {
|
||||||
|
subscribers.delete(subscriber);
|
||||||
|
if (subscribers.size === 0) {
|
||||||
|
stop();
|
||||||
|
stop = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { set, update, subscribe };
|
||||||
|
}
|
||||||
|
|
||||||
|
export { writable as w };
|
|
@ -0,0 +1,513 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
function noop() { }
|
||||||
|
function add_location(element, file, line, column, char) {
|
||||||
|
element.__svelte_meta = {
|
||||||
|
loc: { file, line, column, char }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function run(fn) {
|
||||||
|
return fn();
|
||||||
|
}
|
||||||
|
function blank_object() {
|
||||||
|
return Object.create(null);
|
||||||
|
}
|
||||||
|
function run_all(fns) {
|
||||||
|
fns.forEach(run);
|
||||||
|
}
|
||||||
|
function is_function(thing) {
|
||||||
|
return typeof thing === 'function';
|
||||||
|
}
|
||||||
|
function safe_not_equal(a, b) {
|
||||||
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
||||||
|
}
|
||||||
|
let src_url_equal_anchor;
|
||||||
|
function src_url_equal(element_src, url) {
|
||||||
|
if (!src_url_equal_anchor) {
|
||||||
|
src_url_equal_anchor = document.createElement('a');
|
||||||
|
}
|
||||||
|
src_url_equal_anchor.href = url;
|
||||||
|
return element_src === src_url_equal_anchor.href;
|
||||||
|
}
|
||||||
|
function is_empty(obj) {
|
||||||
|
return Object.keys(obj).length === 0;
|
||||||
|
}
|
||||||
|
function validate_store(store, name) {
|
||||||
|
if (store != null && typeof store.subscribe !== 'function') {
|
||||||
|
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function subscribe(store, ...callbacks) {
|
||||||
|
if (store == null) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const unsub = store.subscribe(...callbacks);
|
||||||
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
||||||
|
}
|
||||||
|
function component_subscribe(component, store, callback) {
|
||||||
|
component.$$.on_destroy.push(subscribe(store, callback));
|
||||||
|
}
|
||||||
|
function set_store_value(store, ret, value) {
|
||||||
|
store.set(value);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
function append(target, node) {
|
||||||
|
target.appendChild(node);
|
||||||
|
}
|
||||||
|
function insert(target, node, anchor) {
|
||||||
|
target.insertBefore(node, anchor || null);
|
||||||
|
}
|
||||||
|
function detach(node) {
|
||||||
|
node.parentNode.removeChild(node);
|
||||||
|
}
|
||||||
|
function destroy_each(iterations, detaching) {
|
||||||
|
for (let i = 0; i < iterations.length; i += 1) {
|
||||||
|
if (iterations[i])
|
||||||
|
iterations[i].d(detaching);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function element(name) {
|
||||||
|
return document.createElement(name);
|
||||||
|
}
|
||||||
|
function svg_element(name) {
|
||||||
|
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
||||||
|
}
|
||||||
|
function text(data) {
|
||||||
|
return document.createTextNode(data);
|
||||||
|
}
|
||||||
|
function space() {
|
||||||
|
return text(' ');
|
||||||
|
}
|
||||||
|
function empty() {
|
||||||
|
return text('');
|
||||||
|
}
|
||||||
|
function listen(node, event, handler, options) {
|
||||||
|
node.addEventListener(event, handler, options);
|
||||||
|
return () => node.removeEventListener(event, handler, options);
|
||||||
|
}
|
||||||
|
function attr(node, attribute, value) {
|
||||||
|
if (value == null)
|
||||||
|
node.removeAttribute(attribute);
|
||||||
|
else if (node.getAttribute(attribute) !== value)
|
||||||
|
node.setAttribute(attribute, value);
|
||||||
|
}
|
||||||
|
function set_custom_element_data(node, prop, value) {
|
||||||
|
if (prop in node) {
|
||||||
|
node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
attr(node, prop, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function children(element) {
|
||||||
|
return Array.from(element.childNodes);
|
||||||
|
}
|
||||||
|
function set_style(node, key, value, important) {
|
||||||
|
if (value === null) {
|
||||||
|
node.style.removeProperty(key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
node.style.setProperty(key, value, important ? 'important' : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
|
||||||
|
const e = document.createEvent('CustomEvent');
|
||||||
|
e.initCustomEvent(type, bubbles, cancelable, detail);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
class HtmlTag {
|
||||||
|
constructor(is_svg = false) {
|
||||||
|
this.is_svg = false;
|
||||||
|
this.is_svg = is_svg;
|
||||||
|
this.e = this.n = null;
|
||||||
|
}
|
||||||
|
c(html) {
|
||||||
|
this.h(html);
|
||||||
|
}
|
||||||
|
m(html, target, anchor = null) {
|
||||||
|
if (!this.e) {
|
||||||
|
if (this.is_svg)
|
||||||
|
this.e = svg_element(target.nodeName);
|
||||||
|
else
|
||||||
|
this.e = element(target.nodeName);
|
||||||
|
this.t = target;
|
||||||
|
this.c(html);
|
||||||
|
}
|
||||||
|
this.i(anchor);
|
||||||
|
}
|
||||||
|
h(html) {
|
||||||
|
this.e.innerHTML = html;
|
||||||
|
this.n = Array.from(this.e.childNodes);
|
||||||
|
}
|
||||||
|
i(anchor) {
|
||||||
|
for (let i = 0; i < this.n.length; i += 1) {
|
||||||
|
insert(this.t, this.n[i], anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p(html) {
|
||||||
|
this.d();
|
||||||
|
this.h(html);
|
||||||
|
this.i(this.a);
|
||||||
|
}
|
||||||
|
d() {
|
||||||
|
this.n.forEach(detach);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function attribute_to_object(attributes) {
|
||||||
|
const result = {};
|
||||||
|
for (const attribute of attributes) {
|
||||||
|
result[attribute.name] = attribute.value;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
let current_component;
|
||||||
|
function set_current_component(component) {
|
||||||
|
current_component = component;
|
||||||
|
}
|
||||||
|
function get_current_component() {
|
||||||
|
if (!current_component)
|
||||||
|
throw new Error('Function called outside component initialization');
|
||||||
|
return current_component;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
||||||
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
||||||
|
* it can be called from an external module).
|
||||||
|
*
|
||||||
|
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
||||||
|
*/
|
||||||
|
function onMount(fn) {
|
||||||
|
get_current_component().$$.on_mount.push(fn);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Associates an arbitrary `context` object with the current component and the specified `key`
|
||||||
|
* and returns that object. The context is then available to children of the component
|
||||||
|
* (including slotted content) with `getContext`.
|
||||||
|
*
|
||||||
|
* Like lifecycle functions, this must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-setcontext
|
||||||
|
*/
|
||||||
|
function setContext(key, context) {
|
||||||
|
get_current_component().$$.context.set(key, context);
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Retrieves the context that belongs to the closest parent component with the specified `key`.
|
||||||
|
* Must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-getcontext
|
||||||
|
*/
|
||||||
|
function getContext(key) {
|
||||||
|
return get_current_component().$$.context.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
const dirty_components = [];
|
||||||
|
const binding_callbacks = [];
|
||||||
|
const render_callbacks = [];
|
||||||
|
const flush_callbacks = [];
|
||||||
|
const resolved_promise = Promise.resolve();
|
||||||
|
let update_scheduled = false;
|
||||||
|
function schedule_update() {
|
||||||
|
if (!update_scheduled) {
|
||||||
|
update_scheduled = true;
|
||||||
|
resolved_promise.then(flush);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function add_render_callback(fn) {
|
||||||
|
render_callbacks.push(fn);
|
||||||
|
}
|
||||||
|
// flush() calls callbacks in this order:
|
||||||
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
||||||
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
||||||
|
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
||||||
|
// for afterUpdates called during the initial onMount, which are called in
|
||||||
|
// reverse order: children before parents.
|
||||||
|
// Since callbacks might update component values, which could trigger another
|
||||||
|
// call to flush(), the following steps guard against this:
|
||||||
|
// 1. During beforeUpdate, any updated components will be added to the
|
||||||
|
// dirty_components array and will cause a reentrant call to flush(). Because
|
||||||
|
// the flush index is kept outside the function, the reentrant call will pick
|
||||||
|
// up where the earlier call left off and go through all dirty components. The
|
||||||
|
// current_component value is saved and restored so that the reentrant call will
|
||||||
|
// not interfere with the "parent" flush() call.
|
||||||
|
// 2. bind:this callbacks cannot trigger new flush() calls.
|
||||||
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
||||||
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
||||||
|
// function, guarantees this behavior.
|
||||||
|
const seen_callbacks = new Set();
|
||||||
|
let flushidx = 0; // Do *not* move this inside the flush() function
|
||||||
|
function flush() {
|
||||||
|
const saved_component = current_component;
|
||||||
|
do {
|
||||||
|
// first, call beforeUpdate functions
|
||||||
|
// and update components
|
||||||
|
while (flushidx < dirty_components.length) {
|
||||||
|
const component = dirty_components[flushidx];
|
||||||
|
flushidx++;
|
||||||
|
set_current_component(component);
|
||||||
|
update(component.$$);
|
||||||
|
}
|
||||||
|
set_current_component(null);
|
||||||
|
dirty_components.length = 0;
|
||||||
|
flushidx = 0;
|
||||||
|
while (binding_callbacks.length)
|
||||||
|
binding_callbacks.pop()();
|
||||||
|
// then, once components are updated, call
|
||||||
|
// afterUpdate functions. This may cause
|
||||||
|
// subsequent updates...
|
||||||
|
for (let i = 0; i < render_callbacks.length; i += 1) {
|
||||||
|
const callback = render_callbacks[i];
|
||||||
|
if (!seen_callbacks.has(callback)) {
|
||||||
|
// ...so guard against infinite loops
|
||||||
|
seen_callbacks.add(callback);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
render_callbacks.length = 0;
|
||||||
|
} while (dirty_components.length);
|
||||||
|
while (flush_callbacks.length) {
|
||||||
|
flush_callbacks.pop()();
|
||||||
|
}
|
||||||
|
update_scheduled = false;
|
||||||
|
seen_callbacks.clear();
|
||||||
|
set_current_component(saved_component);
|
||||||
|
}
|
||||||
|
function update($$) {
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
$$.update();
|
||||||
|
run_all($$.before_update);
|
||||||
|
const dirty = $$.dirty;
|
||||||
|
$$.dirty = [-1];
|
||||||
|
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
||||||
|
$$.after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const outroing = new Set();
|
||||||
|
function transition_in(block, local) {
|
||||||
|
if (block && block.i) {
|
||||||
|
outroing.delete(block);
|
||||||
|
block.i(local);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const globals = (typeof window !== 'undefined'
|
||||||
|
? window
|
||||||
|
: typeof globalThis !== 'undefined'
|
||||||
|
? globalThis
|
||||||
|
: global);
|
||||||
|
function mount_component(component, target, anchor, customElement) {
|
||||||
|
const { fragment, after_update } = component.$$;
|
||||||
|
fragment && fragment.m(target, anchor);
|
||||||
|
if (!customElement) {
|
||||||
|
// onMount happens before the initial afterUpdate
|
||||||
|
add_render_callback(() => {
|
||||||
|
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
||||||
|
// if the component was destroyed immediately
|
||||||
|
// it will update the `$$.on_destroy` reference to `null`.
|
||||||
|
// the destructured on_destroy may still reference to the old array
|
||||||
|
if (component.$$.on_destroy) {
|
||||||
|
component.$$.on_destroy.push(...new_on_destroy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Edge case - component was destroyed immediately,
|
||||||
|
// most likely as a result of a binding initialising
|
||||||
|
run_all(new_on_destroy);
|
||||||
|
}
|
||||||
|
component.$$.on_mount = [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
function destroy_component(component, detaching) {
|
||||||
|
const $$ = component.$$;
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
run_all($$.on_destroy);
|
||||||
|
$$.fragment && $$.fragment.d(detaching);
|
||||||
|
// TODO null out other refs, including component.$$ (but need to
|
||||||
|
// preserve final state?)
|
||||||
|
$$.on_destroy = $$.fragment = null;
|
||||||
|
$$.ctx = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function make_dirty(component, i) {
|
||||||
|
if (component.$$.dirty[0] === -1) {
|
||||||
|
dirty_components.push(component);
|
||||||
|
schedule_update();
|
||||||
|
component.$$.dirty.fill(0);
|
||||||
|
}
|
||||||
|
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
||||||
|
}
|
||||||
|
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
||||||
|
const parent_component = current_component;
|
||||||
|
set_current_component(component);
|
||||||
|
const $$ = component.$$ = {
|
||||||
|
fragment: null,
|
||||||
|
ctx: [],
|
||||||
|
// state
|
||||||
|
props,
|
||||||
|
update: noop,
|
||||||
|
not_equal,
|
||||||
|
bound: blank_object(),
|
||||||
|
// lifecycle
|
||||||
|
on_mount: [],
|
||||||
|
on_destroy: [],
|
||||||
|
on_disconnect: [],
|
||||||
|
before_update: [],
|
||||||
|
after_update: [],
|
||||||
|
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
||||||
|
// everything else
|
||||||
|
callbacks: blank_object(),
|
||||||
|
dirty,
|
||||||
|
skip_bound: false,
|
||||||
|
root: options.target || parent_component.$$.root
|
||||||
|
};
|
||||||
|
append_styles && append_styles($$.root);
|
||||||
|
let ready = false;
|
||||||
|
$$.ctx = instance
|
||||||
|
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
||||||
|
const value = rest.length ? rest[0] : ret;
|
||||||
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
||||||
|
if (!$$.skip_bound && $$.bound[i])
|
||||||
|
$$.bound[i](value);
|
||||||
|
if (ready)
|
||||||
|
make_dirty(component, i);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
})
|
||||||
|
: [];
|
||||||
|
$$.update();
|
||||||
|
ready = true;
|
||||||
|
run_all($$.before_update);
|
||||||
|
// `false` as a special case of no DOM component
|
||||||
|
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
||||||
|
if (options.target) {
|
||||||
|
if (options.hydrate) {
|
||||||
|
const nodes = children(options.target);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.l(nodes);
|
||||||
|
nodes.forEach(detach);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.c();
|
||||||
|
}
|
||||||
|
if (options.intro)
|
||||||
|
transition_in(component.$$.fragment);
|
||||||
|
mount_component(component, options.target, options.anchor, options.customElement);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
set_current_component(parent_component);
|
||||||
|
}
|
||||||
|
let SvelteElement;
|
||||||
|
if (typeof HTMLElement === 'function') {
|
||||||
|
SvelteElement = class extends HTMLElement {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.attachShadow({ mode: 'open' });
|
||||||
|
}
|
||||||
|
connectedCallback() {
|
||||||
|
const { on_mount } = this.$$;
|
||||||
|
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
for (const key in this.$$.slotted) {
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
this.appendChild(this.$$.slotted[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attributeChangedCallback(attr, _oldValue, newValue) {
|
||||||
|
this[attr] = newValue;
|
||||||
|
}
|
||||||
|
disconnectedCallback() {
|
||||||
|
run_all(this.$$.on_disconnect);
|
||||||
|
}
|
||||||
|
$destroy() {
|
||||||
|
destroy_component(this, 1);
|
||||||
|
this.$destroy = noop;
|
||||||
|
}
|
||||||
|
$on(type, callback) {
|
||||||
|
// TODO should this delegate to addEventListener?
|
||||||
|
if (!is_function(callback)) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
||||||
|
callbacks.push(callback);
|
||||||
|
return () => {
|
||||||
|
const index = callbacks.indexOf(callback);
|
||||||
|
if (index !== -1)
|
||||||
|
callbacks.splice(index, 1);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$set($$props) {
|
||||||
|
if (this.$$set && !is_empty($$props)) {
|
||||||
|
this.$$.skip_bound = true;
|
||||||
|
this.$$set($$props);
|
||||||
|
this.$$.skip_bound = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function dispatch_dev(type, detail) {
|
||||||
|
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.52.0' }, detail), { bubbles: true }));
|
||||||
|
}
|
||||||
|
function append_dev(target, node) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
||||||
|
append(target, node);
|
||||||
|
}
|
||||||
|
function insert_dev(target, node, anchor) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node, anchor });
|
||||||
|
insert(target, node, anchor);
|
||||||
|
}
|
||||||
|
function detach_dev(node) {
|
||||||
|
dispatch_dev('SvelteDOMRemove', { node });
|
||||||
|
detach(node);
|
||||||
|
}
|
||||||
|
function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
|
||||||
|
const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
|
||||||
|
if (has_prevent_default)
|
||||||
|
modifiers.push('preventDefault');
|
||||||
|
if (has_stop_propagation)
|
||||||
|
modifiers.push('stopPropagation');
|
||||||
|
dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
|
||||||
|
const dispose = listen(node, event, handler, options);
|
||||||
|
return () => {
|
||||||
|
dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
|
||||||
|
dispose();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function attr_dev(node, attribute, value) {
|
||||||
|
attr(node, attribute, value);
|
||||||
|
if (value == null)
|
||||||
|
dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
|
||||||
|
else
|
||||||
|
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
||||||
|
}
|
||||||
|
function set_data_dev(text, data) {
|
||||||
|
data = '' + data;
|
||||||
|
if (text.wholeText === data)
|
||||||
|
return;
|
||||||
|
dispatch_dev('SvelteDOMSetData', { node: text, data });
|
||||||
|
text.data = data;
|
||||||
|
}
|
||||||
|
function validate_each_argument(arg) {
|
||||||
|
if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {
|
||||||
|
let msg = '{#each} only iterates over array-like objects.';
|
||||||
|
if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {
|
||||||
|
msg += ' You can use a spread to convert this iterable into an array.';
|
||||||
|
}
|
||||||
|
throw new Error(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validate_slots(name, slot, keys) {
|
||||||
|
for (const slot_key of Object.keys(slot)) {
|
||||||
|
if (!~keys.indexOf(slot_key)) {
|
||||||
|
console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export { setContext as A, run_all as B, svg_element as C, empty as D, is_function as E, validate_store as F, component_subscribe as G, HtmlTag as H, set_store_value as I, SvelteElement as S, attribute_to_object as a, insert_dev as b, validate_slots as c, dispatch_dev as d, element as e, space as f, add_location as g, attr_dev as h, init as i, src_url_equal as j, append_dev as k, detach_dev as l, destroy_each as m, noop as n, onMount as o, set_custom_element_data as p, flush as q, globals as r, safe_not_equal as s, text as t, binding_callbacks as u, validate_each_argument as v, set_style as w, listen_dev as x, set_data_dev as y, getContext as z };
|
|
@ -0,0 +1,509 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
function noop() { }
|
||||||
|
function add_location(element, file, line, column, char) {
|
||||||
|
element.__svelte_meta = {
|
||||||
|
loc: { file, line, column, char }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function run(fn) {
|
||||||
|
return fn();
|
||||||
|
}
|
||||||
|
function blank_object() {
|
||||||
|
return Object.create(null);
|
||||||
|
}
|
||||||
|
function run_all(fns) {
|
||||||
|
fns.forEach(run);
|
||||||
|
}
|
||||||
|
function is_function(thing) {
|
||||||
|
return typeof thing === 'function';
|
||||||
|
}
|
||||||
|
function safe_not_equal(a, b) {
|
||||||
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
||||||
|
}
|
||||||
|
let src_url_equal_anchor;
|
||||||
|
function src_url_equal(element_src, url) {
|
||||||
|
if (!src_url_equal_anchor) {
|
||||||
|
src_url_equal_anchor = document.createElement('a');
|
||||||
|
}
|
||||||
|
src_url_equal_anchor.href = url;
|
||||||
|
return element_src === src_url_equal_anchor.href;
|
||||||
|
}
|
||||||
|
function is_empty(obj) {
|
||||||
|
return Object.keys(obj).length === 0;
|
||||||
|
}
|
||||||
|
function validate_store(store, name) {
|
||||||
|
if (store != null && typeof store.subscribe !== 'function') {
|
||||||
|
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function subscribe(store, ...callbacks) {
|
||||||
|
if (store == null) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const unsub = store.subscribe(...callbacks);
|
||||||
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
||||||
|
}
|
||||||
|
function component_subscribe(component, store, callback) {
|
||||||
|
component.$$.on_destroy.push(subscribe(store, callback));
|
||||||
|
}
|
||||||
|
function append(target, node) {
|
||||||
|
target.appendChild(node);
|
||||||
|
}
|
||||||
|
function insert(target, node, anchor) {
|
||||||
|
target.insertBefore(node, anchor || null);
|
||||||
|
}
|
||||||
|
function detach(node) {
|
||||||
|
node.parentNode.removeChild(node);
|
||||||
|
}
|
||||||
|
function destroy_each(iterations, detaching) {
|
||||||
|
for (let i = 0; i < iterations.length; i += 1) {
|
||||||
|
if (iterations[i])
|
||||||
|
iterations[i].d(detaching);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function element(name) {
|
||||||
|
return document.createElement(name);
|
||||||
|
}
|
||||||
|
function svg_element(name) {
|
||||||
|
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
||||||
|
}
|
||||||
|
function text(data) {
|
||||||
|
return document.createTextNode(data);
|
||||||
|
}
|
||||||
|
function space() {
|
||||||
|
return text(' ');
|
||||||
|
}
|
||||||
|
function empty() {
|
||||||
|
return text('');
|
||||||
|
}
|
||||||
|
function listen(node, event, handler, options) {
|
||||||
|
node.addEventListener(event, handler, options);
|
||||||
|
return () => node.removeEventListener(event, handler, options);
|
||||||
|
}
|
||||||
|
function attr(node, attribute, value) {
|
||||||
|
if (value == null)
|
||||||
|
node.removeAttribute(attribute);
|
||||||
|
else if (node.getAttribute(attribute) !== value)
|
||||||
|
node.setAttribute(attribute, value);
|
||||||
|
}
|
||||||
|
function set_custom_element_data(node, prop, value) {
|
||||||
|
if (prop in node) {
|
||||||
|
node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
attr(node, prop, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function children(element) {
|
||||||
|
return Array.from(element.childNodes);
|
||||||
|
}
|
||||||
|
function set_style(node, key, value, important) {
|
||||||
|
if (value === null) {
|
||||||
|
node.style.removeProperty(key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
node.style.setProperty(key, value, important ? 'important' : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
|
||||||
|
const e = document.createEvent('CustomEvent');
|
||||||
|
e.initCustomEvent(type, bubbles, cancelable, detail);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
class HtmlTag {
|
||||||
|
constructor(is_svg = false) {
|
||||||
|
this.is_svg = false;
|
||||||
|
this.is_svg = is_svg;
|
||||||
|
this.e = this.n = null;
|
||||||
|
}
|
||||||
|
c(html) {
|
||||||
|
this.h(html);
|
||||||
|
}
|
||||||
|
m(html, target, anchor = null) {
|
||||||
|
if (!this.e) {
|
||||||
|
if (this.is_svg)
|
||||||
|
this.e = svg_element(target.nodeName);
|
||||||
|
else
|
||||||
|
this.e = element(target.nodeName);
|
||||||
|
this.t = target;
|
||||||
|
this.c(html);
|
||||||
|
}
|
||||||
|
this.i(anchor);
|
||||||
|
}
|
||||||
|
h(html) {
|
||||||
|
this.e.innerHTML = html;
|
||||||
|
this.n = Array.from(this.e.childNodes);
|
||||||
|
}
|
||||||
|
i(anchor) {
|
||||||
|
for (let i = 0; i < this.n.length; i += 1) {
|
||||||
|
insert(this.t, this.n[i], anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p(html) {
|
||||||
|
this.d();
|
||||||
|
this.h(html);
|
||||||
|
this.i(this.a);
|
||||||
|
}
|
||||||
|
d() {
|
||||||
|
this.n.forEach(detach);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function attribute_to_object(attributes) {
|
||||||
|
const result = {};
|
||||||
|
for (const attribute of attributes) {
|
||||||
|
result[attribute.name] = attribute.value;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
let current_component;
|
||||||
|
function set_current_component(component) {
|
||||||
|
current_component = component;
|
||||||
|
}
|
||||||
|
function get_current_component() {
|
||||||
|
if (!current_component)
|
||||||
|
throw new Error('Function called outside component initialization');
|
||||||
|
return current_component;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
||||||
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
||||||
|
* it can be called from an external module).
|
||||||
|
*
|
||||||
|
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
||||||
|
*/
|
||||||
|
function onMount(fn) {
|
||||||
|
get_current_component().$$.on_mount.push(fn);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Associates an arbitrary `context` object with the current component and the specified `key`
|
||||||
|
* and returns that object. The context is then available to children of the component
|
||||||
|
* (including slotted content) with `getContext`.
|
||||||
|
*
|
||||||
|
* Like lifecycle functions, this must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-setcontext
|
||||||
|
*/
|
||||||
|
function setContext(key, context) {
|
||||||
|
get_current_component().$$.context.set(key, context);
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Retrieves the context that belongs to the closest parent component with the specified `key`.
|
||||||
|
* Must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-getcontext
|
||||||
|
*/
|
||||||
|
function getContext(key) {
|
||||||
|
return get_current_component().$$.context.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
const dirty_components = [];
|
||||||
|
const binding_callbacks = [];
|
||||||
|
const render_callbacks = [];
|
||||||
|
const flush_callbacks = [];
|
||||||
|
const resolved_promise = Promise.resolve();
|
||||||
|
let update_scheduled = false;
|
||||||
|
function schedule_update() {
|
||||||
|
if (!update_scheduled) {
|
||||||
|
update_scheduled = true;
|
||||||
|
resolved_promise.then(flush);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function add_render_callback(fn) {
|
||||||
|
render_callbacks.push(fn);
|
||||||
|
}
|
||||||
|
// flush() calls callbacks in this order:
|
||||||
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
||||||
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
||||||
|
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
||||||
|
// for afterUpdates called during the initial onMount, which are called in
|
||||||
|
// reverse order: children before parents.
|
||||||
|
// Since callbacks might update component values, which could trigger another
|
||||||
|
// call to flush(), the following steps guard against this:
|
||||||
|
// 1. During beforeUpdate, any updated components will be added to the
|
||||||
|
// dirty_components array and will cause a reentrant call to flush(). Because
|
||||||
|
// the flush index is kept outside the function, the reentrant call will pick
|
||||||
|
// up where the earlier call left off and go through all dirty components. The
|
||||||
|
// current_component value is saved and restored so that the reentrant call will
|
||||||
|
// not interfere with the "parent" flush() call.
|
||||||
|
// 2. bind:this callbacks cannot trigger new flush() calls.
|
||||||
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
||||||
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
||||||
|
// function, guarantees this behavior.
|
||||||
|
const seen_callbacks = new Set();
|
||||||
|
let flushidx = 0; // Do *not* move this inside the flush() function
|
||||||
|
function flush() {
|
||||||
|
const saved_component = current_component;
|
||||||
|
do {
|
||||||
|
// first, call beforeUpdate functions
|
||||||
|
// and update components
|
||||||
|
while (flushidx < dirty_components.length) {
|
||||||
|
const component = dirty_components[flushidx];
|
||||||
|
flushidx++;
|
||||||
|
set_current_component(component);
|
||||||
|
update(component.$$);
|
||||||
|
}
|
||||||
|
set_current_component(null);
|
||||||
|
dirty_components.length = 0;
|
||||||
|
flushidx = 0;
|
||||||
|
while (binding_callbacks.length)
|
||||||
|
binding_callbacks.pop()();
|
||||||
|
// then, once components are updated, call
|
||||||
|
// afterUpdate functions. This may cause
|
||||||
|
// subsequent updates...
|
||||||
|
for (let i = 0; i < render_callbacks.length; i += 1) {
|
||||||
|
const callback = render_callbacks[i];
|
||||||
|
if (!seen_callbacks.has(callback)) {
|
||||||
|
// ...so guard against infinite loops
|
||||||
|
seen_callbacks.add(callback);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
render_callbacks.length = 0;
|
||||||
|
} while (dirty_components.length);
|
||||||
|
while (flush_callbacks.length) {
|
||||||
|
flush_callbacks.pop()();
|
||||||
|
}
|
||||||
|
update_scheduled = false;
|
||||||
|
seen_callbacks.clear();
|
||||||
|
set_current_component(saved_component);
|
||||||
|
}
|
||||||
|
function update($$) {
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
$$.update();
|
||||||
|
run_all($$.before_update);
|
||||||
|
const dirty = $$.dirty;
|
||||||
|
$$.dirty = [-1];
|
||||||
|
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
||||||
|
$$.after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const outroing = new Set();
|
||||||
|
function transition_in(block, local) {
|
||||||
|
if (block && block.i) {
|
||||||
|
outroing.delete(block);
|
||||||
|
block.i(local);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const globals = (typeof window !== 'undefined'
|
||||||
|
? window
|
||||||
|
: typeof globalThis !== 'undefined'
|
||||||
|
? globalThis
|
||||||
|
: global);
|
||||||
|
function mount_component(component, target, anchor, customElement) {
|
||||||
|
const { fragment, after_update } = component.$$;
|
||||||
|
fragment && fragment.m(target, anchor);
|
||||||
|
if (!customElement) {
|
||||||
|
// onMount happens before the initial afterUpdate
|
||||||
|
add_render_callback(() => {
|
||||||
|
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
||||||
|
// if the component was destroyed immediately
|
||||||
|
// it will update the `$$.on_destroy` reference to `null`.
|
||||||
|
// the destructured on_destroy may still reference to the old array
|
||||||
|
if (component.$$.on_destroy) {
|
||||||
|
component.$$.on_destroy.push(...new_on_destroy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Edge case - component was destroyed immediately,
|
||||||
|
// most likely as a result of a binding initialising
|
||||||
|
run_all(new_on_destroy);
|
||||||
|
}
|
||||||
|
component.$$.on_mount = [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
function destroy_component(component, detaching) {
|
||||||
|
const $$ = component.$$;
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
run_all($$.on_destroy);
|
||||||
|
$$.fragment && $$.fragment.d(detaching);
|
||||||
|
// TODO null out other refs, including component.$$ (but need to
|
||||||
|
// preserve final state?)
|
||||||
|
$$.on_destroy = $$.fragment = null;
|
||||||
|
$$.ctx = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function make_dirty(component, i) {
|
||||||
|
if (component.$$.dirty[0] === -1) {
|
||||||
|
dirty_components.push(component);
|
||||||
|
schedule_update();
|
||||||
|
component.$$.dirty.fill(0);
|
||||||
|
}
|
||||||
|
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
||||||
|
}
|
||||||
|
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
||||||
|
const parent_component = current_component;
|
||||||
|
set_current_component(component);
|
||||||
|
const $$ = component.$$ = {
|
||||||
|
fragment: null,
|
||||||
|
ctx: [],
|
||||||
|
// state
|
||||||
|
props,
|
||||||
|
update: noop,
|
||||||
|
not_equal,
|
||||||
|
bound: blank_object(),
|
||||||
|
// lifecycle
|
||||||
|
on_mount: [],
|
||||||
|
on_destroy: [],
|
||||||
|
on_disconnect: [],
|
||||||
|
before_update: [],
|
||||||
|
after_update: [],
|
||||||
|
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
||||||
|
// everything else
|
||||||
|
callbacks: blank_object(),
|
||||||
|
dirty,
|
||||||
|
skip_bound: false,
|
||||||
|
root: options.target || parent_component.$$.root
|
||||||
|
};
|
||||||
|
append_styles && append_styles($$.root);
|
||||||
|
let ready = false;
|
||||||
|
$$.ctx = instance
|
||||||
|
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
||||||
|
const value = rest.length ? rest[0] : ret;
|
||||||
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
||||||
|
if (!$$.skip_bound && $$.bound[i])
|
||||||
|
$$.bound[i](value);
|
||||||
|
if (ready)
|
||||||
|
make_dirty(component, i);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
})
|
||||||
|
: [];
|
||||||
|
$$.update();
|
||||||
|
ready = true;
|
||||||
|
run_all($$.before_update);
|
||||||
|
// `false` as a special case of no DOM component
|
||||||
|
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
||||||
|
if (options.target) {
|
||||||
|
if (options.hydrate) {
|
||||||
|
const nodes = children(options.target);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.l(nodes);
|
||||||
|
nodes.forEach(detach);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.c();
|
||||||
|
}
|
||||||
|
if (options.intro)
|
||||||
|
transition_in(component.$$.fragment);
|
||||||
|
mount_component(component, options.target, options.anchor, options.customElement);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
set_current_component(parent_component);
|
||||||
|
}
|
||||||
|
let SvelteElement;
|
||||||
|
if (typeof HTMLElement === 'function') {
|
||||||
|
SvelteElement = class extends HTMLElement {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.attachShadow({ mode: 'open' });
|
||||||
|
}
|
||||||
|
connectedCallback() {
|
||||||
|
const { on_mount } = this.$$;
|
||||||
|
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
for (const key in this.$$.slotted) {
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
this.appendChild(this.$$.slotted[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attributeChangedCallback(attr, _oldValue, newValue) {
|
||||||
|
this[attr] = newValue;
|
||||||
|
}
|
||||||
|
disconnectedCallback() {
|
||||||
|
run_all(this.$$.on_disconnect);
|
||||||
|
}
|
||||||
|
$destroy() {
|
||||||
|
destroy_component(this, 1);
|
||||||
|
this.$destroy = noop;
|
||||||
|
}
|
||||||
|
$on(type, callback) {
|
||||||
|
// TODO should this delegate to addEventListener?
|
||||||
|
if (!is_function(callback)) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
||||||
|
callbacks.push(callback);
|
||||||
|
return () => {
|
||||||
|
const index = callbacks.indexOf(callback);
|
||||||
|
if (index !== -1)
|
||||||
|
callbacks.splice(index, 1);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$set($$props) {
|
||||||
|
if (this.$$set && !is_empty($$props)) {
|
||||||
|
this.$$.skip_bound = true;
|
||||||
|
this.$$set($$props);
|
||||||
|
this.$$.skip_bound = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function dispatch_dev(type, detail) {
|
||||||
|
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.52.0' }, detail), { bubbles: true }));
|
||||||
|
}
|
||||||
|
function append_dev(target, node) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
||||||
|
append(target, node);
|
||||||
|
}
|
||||||
|
function insert_dev(target, node, anchor) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node, anchor });
|
||||||
|
insert(target, node, anchor);
|
||||||
|
}
|
||||||
|
function detach_dev(node) {
|
||||||
|
dispatch_dev('SvelteDOMRemove', { node });
|
||||||
|
detach(node);
|
||||||
|
}
|
||||||
|
function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
|
||||||
|
const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
|
||||||
|
if (has_prevent_default)
|
||||||
|
modifiers.push('preventDefault');
|
||||||
|
if (has_stop_propagation)
|
||||||
|
modifiers.push('stopPropagation');
|
||||||
|
dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
|
||||||
|
const dispose = listen(node, event, handler, options);
|
||||||
|
return () => {
|
||||||
|
dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
|
||||||
|
dispose();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function attr_dev(node, attribute, value) {
|
||||||
|
attr(node, attribute, value);
|
||||||
|
if (value == null)
|
||||||
|
dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
|
||||||
|
else
|
||||||
|
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
||||||
|
}
|
||||||
|
function set_data_dev(text, data) {
|
||||||
|
data = '' + data;
|
||||||
|
if (text.wholeText === data)
|
||||||
|
return;
|
||||||
|
dispatch_dev('SvelteDOMSetData', { node: text, data });
|
||||||
|
text.data = data;
|
||||||
|
}
|
||||||
|
function validate_each_argument(arg) {
|
||||||
|
if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {
|
||||||
|
let msg = '{#each} only iterates over array-like objects.';
|
||||||
|
if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {
|
||||||
|
msg += ' You can use a spread to convert this iterable into an array.';
|
||||||
|
}
|
||||||
|
throw new Error(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validate_slots(name, slot, keys) {
|
||||||
|
for (const slot_key of Object.keys(slot)) {
|
||||||
|
if (!~keys.indexOf(slot_key)) {
|
||||||
|
console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export { setContext as A, run_all as B, svg_element as C, validate_store as D, component_subscribe as E, empty as F, is_function as G, HtmlTag as H, SvelteElement as S, attribute_to_object as a, insert_dev as b, validate_slots as c, dispatch_dev as d, element as e, space as f, add_location as g, attr_dev as h, init as i, src_url_equal as j, append_dev as k, detach_dev as l, destroy_each as m, noop as n, onMount as o, set_custom_element_data as p, flush as q, globals as r, safe_not_equal as s, text as t, binding_callbacks as u, validate_each_argument as v, set_style as w, listen_dev as x, set_data_dev as y, getContext as z };
|
|
@ -0,0 +1,509 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
function noop() { }
|
||||||
|
function add_location(element, file, line, column, char) {
|
||||||
|
element.__svelte_meta = {
|
||||||
|
loc: { file, line, column, char }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function run(fn) {
|
||||||
|
return fn();
|
||||||
|
}
|
||||||
|
function blank_object() {
|
||||||
|
return Object.create(null);
|
||||||
|
}
|
||||||
|
function run_all(fns) {
|
||||||
|
fns.forEach(run);
|
||||||
|
}
|
||||||
|
function is_function(thing) {
|
||||||
|
return typeof thing === 'function';
|
||||||
|
}
|
||||||
|
function safe_not_equal(a, b) {
|
||||||
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
||||||
|
}
|
||||||
|
let src_url_equal_anchor;
|
||||||
|
function src_url_equal(element_src, url) {
|
||||||
|
if (!src_url_equal_anchor) {
|
||||||
|
src_url_equal_anchor = document.createElement('a');
|
||||||
|
}
|
||||||
|
src_url_equal_anchor.href = url;
|
||||||
|
return element_src === src_url_equal_anchor.href;
|
||||||
|
}
|
||||||
|
function is_empty(obj) {
|
||||||
|
return Object.keys(obj).length === 0;
|
||||||
|
}
|
||||||
|
function validate_store(store, name) {
|
||||||
|
if (store != null && typeof store.subscribe !== 'function') {
|
||||||
|
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function subscribe(store, ...callbacks) {
|
||||||
|
if (store == null) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const unsub = store.subscribe(...callbacks);
|
||||||
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
||||||
|
}
|
||||||
|
function component_subscribe(component, store, callback) {
|
||||||
|
component.$$.on_destroy.push(subscribe(store, callback));
|
||||||
|
}
|
||||||
|
function append(target, node) {
|
||||||
|
target.appendChild(node);
|
||||||
|
}
|
||||||
|
function insert(target, node, anchor) {
|
||||||
|
target.insertBefore(node, anchor || null);
|
||||||
|
}
|
||||||
|
function detach(node) {
|
||||||
|
node.parentNode.removeChild(node);
|
||||||
|
}
|
||||||
|
function destroy_each(iterations, detaching) {
|
||||||
|
for (let i = 0; i < iterations.length; i += 1) {
|
||||||
|
if (iterations[i])
|
||||||
|
iterations[i].d(detaching);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function element(name) {
|
||||||
|
return document.createElement(name);
|
||||||
|
}
|
||||||
|
function svg_element(name) {
|
||||||
|
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
||||||
|
}
|
||||||
|
function text(data) {
|
||||||
|
return document.createTextNode(data);
|
||||||
|
}
|
||||||
|
function space() {
|
||||||
|
return text(' ');
|
||||||
|
}
|
||||||
|
function empty() {
|
||||||
|
return text('');
|
||||||
|
}
|
||||||
|
function listen(node, event, handler, options) {
|
||||||
|
node.addEventListener(event, handler, options);
|
||||||
|
return () => node.removeEventListener(event, handler, options);
|
||||||
|
}
|
||||||
|
function attr(node, attribute, value) {
|
||||||
|
if (value == null)
|
||||||
|
node.removeAttribute(attribute);
|
||||||
|
else if (node.getAttribute(attribute) !== value)
|
||||||
|
node.setAttribute(attribute, value);
|
||||||
|
}
|
||||||
|
function set_custom_element_data(node, prop, value) {
|
||||||
|
if (prop in node) {
|
||||||
|
node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
attr(node, prop, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function children(element) {
|
||||||
|
return Array.from(element.childNodes);
|
||||||
|
}
|
||||||
|
function set_style(node, key, value, important) {
|
||||||
|
if (value === null) {
|
||||||
|
node.style.removeProperty(key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
node.style.setProperty(key, value, important ? 'important' : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
|
||||||
|
const e = document.createEvent('CustomEvent');
|
||||||
|
e.initCustomEvent(type, bubbles, cancelable, detail);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
class HtmlTag {
|
||||||
|
constructor(is_svg = false) {
|
||||||
|
this.is_svg = false;
|
||||||
|
this.is_svg = is_svg;
|
||||||
|
this.e = this.n = null;
|
||||||
|
}
|
||||||
|
c(html) {
|
||||||
|
this.h(html);
|
||||||
|
}
|
||||||
|
m(html, target, anchor = null) {
|
||||||
|
if (!this.e) {
|
||||||
|
if (this.is_svg)
|
||||||
|
this.e = svg_element(target.nodeName);
|
||||||
|
else
|
||||||
|
this.e = element(target.nodeName);
|
||||||
|
this.t = target;
|
||||||
|
this.c(html);
|
||||||
|
}
|
||||||
|
this.i(anchor);
|
||||||
|
}
|
||||||
|
h(html) {
|
||||||
|
this.e.innerHTML = html;
|
||||||
|
this.n = Array.from(this.e.childNodes);
|
||||||
|
}
|
||||||
|
i(anchor) {
|
||||||
|
for (let i = 0; i < this.n.length; i += 1) {
|
||||||
|
insert(this.t, this.n[i], anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p(html) {
|
||||||
|
this.d();
|
||||||
|
this.h(html);
|
||||||
|
this.i(this.a);
|
||||||
|
}
|
||||||
|
d() {
|
||||||
|
this.n.forEach(detach);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function attribute_to_object(attributes) {
|
||||||
|
const result = {};
|
||||||
|
for (const attribute of attributes) {
|
||||||
|
result[attribute.name] = attribute.value;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
let current_component;
|
||||||
|
function set_current_component(component) {
|
||||||
|
current_component = component;
|
||||||
|
}
|
||||||
|
function get_current_component() {
|
||||||
|
if (!current_component)
|
||||||
|
throw new Error('Function called outside component initialization');
|
||||||
|
return current_component;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
||||||
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
||||||
|
* it can be called from an external module).
|
||||||
|
*
|
||||||
|
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
||||||
|
*/
|
||||||
|
function onMount(fn) {
|
||||||
|
get_current_component().$$.on_mount.push(fn);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Associates an arbitrary `context` object with the current component and the specified `key`
|
||||||
|
* and returns that object. The context is then available to children of the component
|
||||||
|
* (including slotted content) with `getContext`.
|
||||||
|
*
|
||||||
|
* Like lifecycle functions, this must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-setcontext
|
||||||
|
*/
|
||||||
|
function setContext(key, context) {
|
||||||
|
get_current_component().$$.context.set(key, context);
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Retrieves the context that belongs to the closest parent component with the specified `key`.
|
||||||
|
* Must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-getcontext
|
||||||
|
*/
|
||||||
|
function getContext(key) {
|
||||||
|
return get_current_component().$$.context.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
const dirty_components = [];
|
||||||
|
const binding_callbacks = [];
|
||||||
|
const render_callbacks = [];
|
||||||
|
const flush_callbacks = [];
|
||||||
|
const resolved_promise = Promise.resolve();
|
||||||
|
let update_scheduled = false;
|
||||||
|
function schedule_update() {
|
||||||
|
if (!update_scheduled) {
|
||||||
|
update_scheduled = true;
|
||||||
|
resolved_promise.then(flush);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function add_render_callback(fn) {
|
||||||
|
render_callbacks.push(fn);
|
||||||
|
}
|
||||||
|
// flush() calls callbacks in this order:
|
||||||
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
||||||
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
||||||
|
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
||||||
|
// for afterUpdates called during the initial onMount, which are called in
|
||||||
|
// reverse order: children before parents.
|
||||||
|
// Since callbacks might update component values, which could trigger another
|
||||||
|
// call to flush(), the following steps guard against this:
|
||||||
|
// 1. During beforeUpdate, any updated components will be added to the
|
||||||
|
// dirty_components array and will cause a reentrant call to flush(). Because
|
||||||
|
// the flush index is kept outside the function, the reentrant call will pick
|
||||||
|
// up where the earlier call left off and go through all dirty components. The
|
||||||
|
// current_component value is saved and restored so that the reentrant call will
|
||||||
|
// not interfere with the "parent" flush() call.
|
||||||
|
// 2. bind:this callbacks cannot trigger new flush() calls.
|
||||||
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
||||||
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
||||||
|
// function, guarantees this behavior.
|
||||||
|
const seen_callbacks = new Set();
|
||||||
|
let flushidx = 0; // Do *not* move this inside the flush() function
|
||||||
|
function flush() {
|
||||||
|
const saved_component = current_component;
|
||||||
|
do {
|
||||||
|
// first, call beforeUpdate functions
|
||||||
|
// and update components
|
||||||
|
while (flushidx < dirty_components.length) {
|
||||||
|
const component = dirty_components[flushidx];
|
||||||
|
flushidx++;
|
||||||
|
set_current_component(component);
|
||||||
|
update(component.$$);
|
||||||
|
}
|
||||||
|
set_current_component(null);
|
||||||
|
dirty_components.length = 0;
|
||||||
|
flushidx = 0;
|
||||||
|
while (binding_callbacks.length)
|
||||||
|
binding_callbacks.pop()();
|
||||||
|
// then, once components are updated, call
|
||||||
|
// afterUpdate functions. This may cause
|
||||||
|
// subsequent updates...
|
||||||
|
for (let i = 0; i < render_callbacks.length; i += 1) {
|
||||||
|
const callback = render_callbacks[i];
|
||||||
|
if (!seen_callbacks.has(callback)) {
|
||||||
|
// ...so guard against infinite loops
|
||||||
|
seen_callbacks.add(callback);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
render_callbacks.length = 0;
|
||||||
|
} while (dirty_components.length);
|
||||||
|
while (flush_callbacks.length) {
|
||||||
|
flush_callbacks.pop()();
|
||||||
|
}
|
||||||
|
update_scheduled = false;
|
||||||
|
seen_callbacks.clear();
|
||||||
|
set_current_component(saved_component);
|
||||||
|
}
|
||||||
|
function update($$) {
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
$$.update();
|
||||||
|
run_all($$.before_update);
|
||||||
|
const dirty = $$.dirty;
|
||||||
|
$$.dirty = [-1];
|
||||||
|
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
||||||
|
$$.after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const outroing = new Set();
|
||||||
|
function transition_in(block, local) {
|
||||||
|
if (block && block.i) {
|
||||||
|
outroing.delete(block);
|
||||||
|
block.i(local);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const globals = (typeof window !== 'undefined'
|
||||||
|
? window
|
||||||
|
: typeof globalThis !== 'undefined'
|
||||||
|
? globalThis
|
||||||
|
: global);
|
||||||
|
function mount_component(component, target, anchor, customElement) {
|
||||||
|
const { fragment, after_update } = component.$$;
|
||||||
|
fragment && fragment.m(target, anchor);
|
||||||
|
if (!customElement) {
|
||||||
|
// onMount happens before the initial afterUpdate
|
||||||
|
add_render_callback(() => {
|
||||||
|
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
||||||
|
// if the component was destroyed immediately
|
||||||
|
// it will update the `$$.on_destroy` reference to `null`.
|
||||||
|
// the destructured on_destroy may still reference to the old array
|
||||||
|
if (component.$$.on_destroy) {
|
||||||
|
component.$$.on_destroy.push(...new_on_destroy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Edge case - component was destroyed immediately,
|
||||||
|
// most likely as a result of a binding initialising
|
||||||
|
run_all(new_on_destroy);
|
||||||
|
}
|
||||||
|
component.$$.on_mount = [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
function destroy_component(component, detaching) {
|
||||||
|
const $$ = component.$$;
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
run_all($$.on_destroy);
|
||||||
|
$$.fragment && $$.fragment.d(detaching);
|
||||||
|
// TODO null out other refs, including component.$$ (but need to
|
||||||
|
// preserve final state?)
|
||||||
|
$$.on_destroy = $$.fragment = null;
|
||||||
|
$$.ctx = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function make_dirty(component, i) {
|
||||||
|
if (component.$$.dirty[0] === -1) {
|
||||||
|
dirty_components.push(component);
|
||||||
|
schedule_update();
|
||||||
|
component.$$.dirty.fill(0);
|
||||||
|
}
|
||||||
|
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
||||||
|
}
|
||||||
|
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
||||||
|
const parent_component = current_component;
|
||||||
|
set_current_component(component);
|
||||||
|
const $$ = component.$$ = {
|
||||||
|
fragment: null,
|
||||||
|
ctx: [],
|
||||||
|
// state
|
||||||
|
props,
|
||||||
|
update: noop,
|
||||||
|
not_equal,
|
||||||
|
bound: blank_object(),
|
||||||
|
// lifecycle
|
||||||
|
on_mount: [],
|
||||||
|
on_destroy: [],
|
||||||
|
on_disconnect: [],
|
||||||
|
before_update: [],
|
||||||
|
after_update: [],
|
||||||
|
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
||||||
|
// everything else
|
||||||
|
callbacks: blank_object(),
|
||||||
|
dirty,
|
||||||
|
skip_bound: false,
|
||||||
|
root: options.target || parent_component.$$.root
|
||||||
|
};
|
||||||
|
append_styles && append_styles($$.root);
|
||||||
|
let ready = false;
|
||||||
|
$$.ctx = instance
|
||||||
|
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
||||||
|
const value = rest.length ? rest[0] : ret;
|
||||||
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
||||||
|
if (!$$.skip_bound && $$.bound[i])
|
||||||
|
$$.bound[i](value);
|
||||||
|
if (ready)
|
||||||
|
make_dirty(component, i);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
})
|
||||||
|
: [];
|
||||||
|
$$.update();
|
||||||
|
ready = true;
|
||||||
|
run_all($$.before_update);
|
||||||
|
// `false` as a special case of no DOM component
|
||||||
|
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
||||||
|
if (options.target) {
|
||||||
|
if (options.hydrate) {
|
||||||
|
const nodes = children(options.target);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.l(nodes);
|
||||||
|
nodes.forEach(detach);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.c();
|
||||||
|
}
|
||||||
|
if (options.intro)
|
||||||
|
transition_in(component.$$.fragment);
|
||||||
|
mount_component(component, options.target, options.anchor, options.customElement);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
set_current_component(parent_component);
|
||||||
|
}
|
||||||
|
let SvelteElement;
|
||||||
|
if (typeof HTMLElement === 'function') {
|
||||||
|
SvelteElement = class extends HTMLElement {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.attachShadow({ mode: 'open' });
|
||||||
|
}
|
||||||
|
connectedCallback() {
|
||||||
|
const { on_mount } = this.$$;
|
||||||
|
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
for (const key in this.$$.slotted) {
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
this.appendChild(this.$$.slotted[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attributeChangedCallback(attr, _oldValue, newValue) {
|
||||||
|
this[attr] = newValue;
|
||||||
|
}
|
||||||
|
disconnectedCallback() {
|
||||||
|
run_all(this.$$.on_disconnect);
|
||||||
|
}
|
||||||
|
$destroy() {
|
||||||
|
destroy_component(this, 1);
|
||||||
|
this.$destroy = noop;
|
||||||
|
}
|
||||||
|
$on(type, callback) {
|
||||||
|
// TODO should this delegate to addEventListener?
|
||||||
|
if (!is_function(callback)) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
||||||
|
callbacks.push(callback);
|
||||||
|
return () => {
|
||||||
|
const index = callbacks.indexOf(callback);
|
||||||
|
if (index !== -1)
|
||||||
|
callbacks.splice(index, 1);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$set($$props) {
|
||||||
|
if (this.$$set && !is_empty($$props)) {
|
||||||
|
this.$$.skip_bound = true;
|
||||||
|
this.$$set($$props);
|
||||||
|
this.$$.skip_bound = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function dispatch_dev(type, detail) {
|
||||||
|
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.52.0' }, detail), { bubbles: true }));
|
||||||
|
}
|
||||||
|
function append_dev(target, node) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
||||||
|
append(target, node);
|
||||||
|
}
|
||||||
|
function insert_dev(target, node, anchor) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node, anchor });
|
||||||
|
insert(target, node, anchor);
|
||||||
|
}
|
||||||
|
function detach_dev(node) {
|
||||||
|
dispatch_dev('SvelteDOMRemove', { node });
|
||||||
|
detach(node);
|
||||||
|
}
|
||||||
|
function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
|
||||||
|
const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
|
||||||
|
if (has_prevent_default)
|
||||||
|
modifiers.push('preventDefault');
|
||||||
|
if (has_stop_propagation)
|
||||||
|
modifiers.push('stopPropagation');
|
||||||
|
dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
|
||||||
|
const dispose = listen(node, event, handler, options);
|
||||||
|
return () => {
|
||||||
|
dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
|
||||||
|
dispose();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function attr_dev(node, attribute, value) {
|
||||||
|
attr(node, attribute, value);
|
||||||
|
if (value == null)
|
||||||
|
dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
|
||||||
|
else
|
||||||
|
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
||||||
|
}
|
||||||
|
function set_data_dev(text, data) {
|
||||||
|
data = '' + data;
|
||||||
|
if (text.wholeText === data)
|
||||||
|
return;
|
||||||
|
dispatch_dev('SvelteDOMSetData', { node: text, data });
|
||||||
|
text.data = data;
|
||||||
|
}
|
||||||
|
function validate_each_argument(arg) {
|
||||||
|
if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {
|
||||||
|
let msg = '{#each} only iterates over array-like objects.';
|
||||||
|
if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {
|
||||||
|
msg += ' You can use a spread to convert this iterable into an array.';
|
||||||
|
}
|
||||||
|
throw new Error(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validate_slots(name, slot, keys) {
|
||||||
|
for (const slot_key of Object.keys(slot)) {
|
||||||
|
if (!~keys.indexOf(slot_key)) {
|
||||||
|
console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export { setContext as A, run_all as B, svg_element as C, empty as D, is_function as E, validate_store as F, component_subscribe as G, HtmlTag as H, SvelteElement as S, attribute_to_object as a, insert_dev as b, validate_slots as c, dispatch_dev as d, element as e, space as f, add_location as g, attr_dev as h, init as i, src_url_equal as j, append_dev as k, detach_dev as l, destroy_each as m, noop as n, onMount as o, set_custom_element_data as p, flush as q, globals as r, safe_not_equal as s, text as t, binding_callbacks as u, validate_each_argument as v, set_style as w, listen_dev as x, set_data_dev as y, getContext as z };
|
|
@ -0,0 +1,509 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
function noop() { }
|
||||||
|
function add_location(element, file, line, column, char) {
|
||||||
|
element.__svelte_meta = {
|
||||||
|
loc: { file, line, column, char }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function run(fn) {
|
||||||
|
return fn();
|
||||||
|
}
|
||||||
|
function blank_object() {
|
||||||
|
return Object.create(null);
|
||||||
|
}
|
||||||
|
function run_all(fns) {
|
||||||
|
fns.forEach(run);
|
||||||
|
}
|
||||||
|
function is_function(thing) {
|
||||||
|
return typeof thing === 'function';
|
||||||
|
}
|
||||||
|
function safe_not_equal(a, b) {
|
||||||
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
||||||
|
}
|
||||||
|
let src_url_equal_anchor;
|
||||||
|
function src_url_equal(element_src, url) {
|
||||||
|
if (!src_url_equal_anchor) {
|
||||||
|
src_url_equal_anchor = document.createElement('a');
|
||||||
|
}
|
||||||
|
src_url_equal_anchor.href = url;
|
||||||
|
return element_src === src_url_equal_anchor.href;
|
||||||
|
}
|
||||||
|
function is_empty(obj) {
|
||||||
|
return Object.keys(obj).length === 0;
|
||||||
|
}
|
||||||
|
function validate_store(store, name) {
|
||||||
|
if (store != null && typeof store.subscribe !== 'function') {
|
||||||
|
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function subscribe(store, ...callbacks) {
|
||||||
|
if (store == null) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const unsub = store.subscribe(...callbacks);
|
||||||
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
||||||
|
}
|
||||||
|
function component_subscribe(component, store, callback) {
|
||||||
|
component.$$.on_destroy.push(subscribe(store, callback));
|
||||||
|
}
|
||||||
|
function append(target, node) {
|
||||||
|
target.appendChild(node);
|
||||||
|
}
|
||||||
|
function insert(target, node, anchor) {
|
||||||
|
target.insertBefore(node, anchor || null);
|
||||||
|
}
|
||||||
|
function detach(node) {
|
||||||
|
node.parentNode.removeChild(node);
|
||||||
|
}
|
||||||
|
function destroy_each(iterations, detaching) {
|
||||||
|
for (let i = 0; i < iterations.length; i += 1) {
|
||||||
|
if (iterations[i])
|
||||||
|
iterations[i].d(detaching);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function element(name) {
|
||||||
|
return document.createElement(name);
|
||||||
|
}
|
||||||
|
function svg_element(name) {
|
||||||
|
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
||||||
|
}
|
||||||
|
function text(data) {
|
||||||
|
return document.createTextNode(data);
|
||||||
|
}
|
||||||
|
function space() {
|
||||||
|
return text(' ');
|
||||||
|
}
|
||||||
|
function empty() {
|
||||||
|
return text('');
|
||||||
|
}
|
||||||
|
function listen(node, event, handler, options) {
|
||||||
|
node.addEventListener(event, handler, options);
|
||||||
|
return () => node.removeEventListener(event, handler, options);
|
||||||
|
}
|
||||||
|
function attr(node, attribute, value) {
|
||||||
|
if (value == null)
|
||||||
|
node.removeAttribute(attribute);
|
||||||
|
else if (node.getAttribute(attribute) !== value)
|
||||||
|
node.setAttribute(attribute, value);
|
||||||
|
}
|
||||||
|
function set_custom_element_data(node, prop, value) {
|
||||||
|
if (prop in node) {
|
||||||
|
node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
attr(node, prop, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function children(element) {
|
||||||
|
return Array.from(element.childNodes);
|
||||||
|
}
|
||||||
|
function set_style(node, key, value, important) {
|
||||||
|
if (value === null) {
|
||||||
|
node.style.removeProperty(key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
node.style.setProperty(key, value, important ? 'important' : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
|
||||||
|
const e = document.createEvent('CustomEvent');
|
||||||
|
e.initCustomEvent(type, bubbles, cancelable, detail);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
class HtmlTag {
|
||||||
|
constructor(is_svg = false) {
|
||||||
|
this.is_svg = false;
|
||||||
|
this.is_svg = is_svg;
|
||||||
|
this.e = this.n = null;
|
||||||
|
}
|
||||||
|
c(html) {
|
||||||
|
this.h(html);
|
||||||
|
}
|
||||||
|
m(html, target, anchor = null) {
|
||||||
|
if (!this.e) {
|
||||||
|
if (this.is_svg)
|
||||||
|
this.e = svg_element(target.nodeName);
|
||||||
|
else
|
||||||
|
this.e = element(target.nodeName);
|
||||||
|
this.t = target;
|
||||||
|
this.c(html);
|
||||||
|
}
|
||||||
|
this.i(anchor);
|
||||||
|
}
|
||||||
|
h(html) {
|
||||||
|
this.e.innerHTML = html;
|
||||||
|
this.n = Array.from(this.e.childNodes);
|
||||||
|
}
|
||||||
|
i(anchor) {
|
||||||
|
for (let i = 0; i < this.n.length; i += 1) {
|
||||||
|
insert(this.t, this.n[i], anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p(html) {
|
||||||
|
this.d();
|
||||||
|
this.h(html);
|
||||||
|
this.i(this.a);
|
||||||
|
}
|
||||||
|
d() {
|
||||||
|
this.n.forEach(detach);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function attribute_to_object(attributes) {
|
||||||
|
const result = {};
|
||||||
|
for (const attribute of attributes) {
|
||||||
|
result[attribute.name] = attribute.value;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
let current_component;
|
||||||
|
function set_current_component(component) {
|
||||||
|
current_component = component;
|
||||||
|
}
|
||||||
|
function get_current_component() {
|
||||||
|
if (!current_component)
|
||||||
|
throw new Error('Function called outside component initialization');
|
||||||
|
return current_component;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
||||||
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
||||||
|
* it can be called from an external module).
|
||||||
|
*
|
||||||
|
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
||||||
|
*/
|
||||||
|
function onMount(fn) {
|
||||||
|
get_current_component().$$.on_mount.push(fn);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Associates an arbitrary `context` object with the current component and the specified `key`
|
||||||
|
* and returns that object. The context is then available to children of the component
|
||||||
|
* (including slotted content) with `getContext`.
|
||||||
|
*
|
||||||
|
* Like lifecycle functions, this must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-setcontext
|
||||||
|
*/
|
||||||
|
function setContext(key, context) {
|
||||||
|
get_current_component().$$.context.set(key, context);
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Retrieves the context that belongs to the closest parent component with the specified `key`.
|
||||||
|
* Must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-getcontext
|
||||||
|
*/
|
||||||
|
function getContext(key) {
|
||||||
|
return get_current_component().$$.context.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
const dirty_components = [];
|
||||||
|
const binding_callbacks = [];
|
||||||
|
const render_callbacks = [];
|
||||||
|
const flush_callbacks = [];
|
||||||
|
const resolved_promise = Promise.resolve();
|
||||||
|
let update_scheduled = false;
|
||||||
|
function schedule_update() {
|
||||||
|
if (!update_scheduled) {
|
||||||
|
update_scheduled = true;
|
||||||
|
resolved_promise.then(flush);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function add_render_callback(fn) {
|
||||||
|
render_callbacks.push(fn);
|
||||||
|
}
|
||||||
|
// flush() calls callbacks in this order:
|
||||||
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
||||||
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
||||||
|
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
||||||
|
// for afterUpdates called during the initial onMount, which are called in
|
||||||
|
// reverse order: children before parents.
|
||||||
|
// Since callbacks might update component values, which could trigger another
|
||||||
|
// call to flush(), the following steps guard against this:
|
||||||
|
// 1. During beforeUpdate, any updated components will be added to the
|
||||||
|
// dirty_components array and will cause a reentrant call to flush(). Because
|
||||||
|
// the flush index is kept outside the function, the reentrant call will pick
|
||||||
|
// up where the earlier call left off and go through all dirty components. The
|
||||||
|
// current_component value is saved and restored so that the reentrant call will
|
||||||
|
// not interfere with the "parent" flush() call.
|
||||||
|
// 2. bind:this callbacks cannot trigger new flush() calls.
|
||||||
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
||||||
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
||||||
|
// function, guarantees this behavior.
|
||||||
|
const seen_callbacks = new Set();
|
||||||
|
let flushidx = 0; // Do *not* move this inside the flush() function
|
||||||
|
function flush() {
|
||||||
|
const saved_component = current_component;
|
||||||
|
do {
|
||||||
|
// first, call beforeUpdate functions
|
||||||
|
// and update components
|
||||||
|
while (flushidx < dirty_components.length) {
|
||||||
|
const component = dirty_components[flushidx];
|
||||||
|
flushidx++;
|
||||||
|
set_current_component(component);
|
||||||
|
update(component.$$);
|
||||||
|
}
|
||||||
|
set_current_component(null);
|
||||||
|
dirty_components.length = 0;
|
||||||
|
flushidx = 0;
|
||||||
|
while (binding_callbacks.length)
|
||||||
|
binding_callbacks.pop()();
|
||||||
|
// then, once components are updated, call
|
||||||
|
// afterUpdate functions. This may cause
|
||||||
|
// subsequent updates...
|
||||||
|
for (let i = 0; i < render_callbacks.length; i += 1) {
|
||||||
|
const callback = render_callbacks[i];
|
||||||
|
if (!seen_callbacks.has(callback)) {
|
||||||
|
// ...so guard against infinite loops
|
||||||
|
seen_callbacks.add(callback);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
render_callbacks.length = 0;
|
||||||
|
} while (dirty_components.length);
|
||||||
|
while (flush_callbacks.length) {
|
||||||
|
flush_callbacks.pop()();
|
||||||
|
}
|
||||||
|
update_scheduled = false;
|
||||||
|
seen_callbacks.clear();
|
||||||
|
set_current_component(saved_component);
|
||||||
|
}
|
||||||
|
function update($$) {
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
$$.update();
|
||||||
|
run_all($$.before_update);
|
||||||
|
const dirty = $$.dirty;
|
||||||
|
$$.dirty = [-1];
|
||||||
|
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
||||||
|
$$.after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const outroing = new Set();
|
||||||
|
function transition_in(block, local) {
|
||||||
|
if (block && block.i) {
|
||||||
|
outroing.delete(block);
|
||||||
|
block.i(local);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const globals = (typeof window !== 'undefined'
|
||||||
|
? window
|
||||||
|
: typeof globalThis !== 'undefined'
|
||||||
|
? globalThis
|
||||||
|
: global);
|
||||||
|
function mount_component(component, target, anchor, customElement) {
|
||||||
|
const { fragment, after_update } = component.$$;
|
||||||
|
fragment && fragment.m(target, anchor);
|
||||||
|
if (!customElement) {
|
||||||
|
// onMount happens before the initial afterUpdate
|
||||||
|
add_render_callback(() => {
|
||||||
|
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
||||||
|
// if the component was destroyed immediately
|
||||||
|
// it will update the `$$.on_destroy` reference to `null`.
|
||||||
|
// the destructured on_destroy may still reference to the old array
|
||||||
|
if (component.$$.on_destroy) {
|
||||||
|
component.$$.on_destroy.push(...new_on_destroy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Edge case - component was destroyed immediately,
|
||||||
|
// most likely as a result of a binding initialising
|
||||||
|
run_all(new_on_destroy);
|
||||||
|
}
|
||||||
|
component.$$.on_mount = [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
function destroy_component(component, detaching) {
|
||||||
|
const $$ = component.$$;
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
run_all($$.on_destroy);
|
||||||
|
$$.fragment && $$.fragment.d(detaching);
|
||||||
|
// TODO null out other refs, including component.$$ (but need to
|
||||||
|
// preserve final state?)
|
||||||
|
$$.on_destroy = $$.fragment = null;
|
||||||
|
$$.ctx = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function make_dirty(component, i) {
|
||||||
|
if (component.$$.dirty[0] === -1) {
|
||||||
|
dirty_components.push(component);
|
||||||
|
schedule_update();
|
||||||
|
component.$$.dirty.fill(0);
|
||||||
|
}
|
||||||
|
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
||||||
|
}
|
||||||
|
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
||||||
|
const parent_component = current_component;
|
||||||
|
set_current_component(component);
|
||||||
|
const $$ = component.$$ = {
|
||||||
|
fragment: null,
|
||||||
|
ctx: [],
|
||||||
|
// state
|
||||||
|
props,
|
||||||
|
update: noop,
|
||||||
|
not_equal,
|
||||||
|
bound: blank_object(),
|
||||||
|
// lifecycle
|
||||||
|
on_mount: [],
|
||||||
|
on_destroy: [],
|
||||||
|
on_disconnect: [],
|
||||||
|
before_update: [],
|
||||||
|
after_update: [],
|
||||||
|
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
||||||
|
// everything else
|
||||||
|
callbacks: blank_object(),
|
||||||
|
dirty,
|
||||||
|
skip_bound: false,
|
||||||
|
root: options.target || parent_component.$$.root
|
||||||
|
};
|
||||||
|
append_styles && append_styles($$.root);
|
||||||
|
let ready = false;
|
||||||
|
$$.ctx = instance
|
||||||
|
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
||||||
|
const value = rest.length ? rest[0] : ret;
|
||||||
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
||||||
|
if (!$$.skip_bound && $$.bound[i])
|
||||||
|
$$.bound[i](value);
|
||||||
|
if (ready)
|
||||||
|
make_dirty(component, i);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
})
|
||||||
|
: [];
|
||||||
|
$$.update();
|
||||||
|
ready = true;
|
||||||
|
run_all($$.before_update);
|
||||||
|
// `false` as a special case of no DOM component
|
||||||
|
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
||||||
|
if (options.target) {
|
||||||
|
if (options.hydrate) {
|
||||||
|
const nodes = children(options.target);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.l(nodes);
|
||||||
|
nodes.forEach(detach);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.c();
|
||||||
|
}
|
||||||
|
if (options.intro)
|
||||||
|
transition_in(component.$$.fragment);
|
||||||
|
mount_component(component, options.target, options.anchor, options.customElement);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
set_current_component(parent_component);
|
||||||
|
}
|
||||||
|
let SvelteElement;
|
||||||
|
if (typeof HTMLElement === 'function') {
|
||||||
|
SvelteElement = class extends HTMLElement {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.attachShadow({ mode: 'open' });
|
||||||
|
}
|
||||||
|
connectedCallback() {
|
||||||
|
const { on_mount } = this.$$;
|
||||||
|
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
for (const key in this.$$.slotted) {
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
this.appendChild(this.$$.slotted[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attributeChangedCallback(attr, _oldValue, newValue) {
|
||||||
|
this[attr] = newValue;
|
||||||
|
}
|
||||||
|
disconnectedCallback() {
|
||||||
|
run_all(this.$$.on_disconnect);
|
||||||
|
}
|
||||||
|
$destroy() {
|
||||||
|
destroy_component(this, 1);
|
||||||
|
this.$destroy = noop;
|
||||||
|
}
|
||||||
|
$on(type, callback) {
|
||||||
|
// TODO should this delegate to addEventListener?
|
||||||
|
if (!is_function(callback)) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
||||||
|
callbacks.push(callback);
|
||||||
|
return () => {
|
||||||
|
const index = callbacks.indexOf(callback);
|
||||||
|
if (index !== -1)
|
||||||
|
callbacks.splice(index, 1);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$set($$props) {
|
||||||
|
if (this.$$set && !is_empty($$props)) {
|
||||||
|
this.$$.skip_bound = true;
|
||||||
|
this.$$set($$props);
|
||||||
|
this.$$.skip_bound = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function dispatch_dev(type, detail) {
|
||||||
|
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.52.0' }, detail), { bubbles: true }));
|
||||||
|
}
|
||||||
|
function append_dev(target, node) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
||||||
|
append(target, node);
|
||||||
|
}
|
||||||
|
function insert_dev(target, node, anchor) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node, anchor });
|
||||||
|
insert(target, node, anchor);
|
||||||
|
}
|
||||||
|
function detach_dev(node) {
|
||||||
|
dispatch_dev('SvelteDOMRemove', { node });
|
||||||
|
detach(node);
|
||||||
|
}
|
||||||
|
function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
|
||||||
|
const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
|
||||||
|
if (has_prevent_default)
|
||||||
|
modifiers.push('preventDefault');
|
||||||
|
if (has_stop_propagation)
|
||||||
|
modifiers.push('stopPropagation');
|
||||||
|
dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
|
||||||
|
const dispose = listen(node, event, handler, options);
|
||||||
|
return () => {
|
||||||
|
dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
|
||||||
|
dispose();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function attr_dev(node, attribute, value) {
|
||||||
|
attr(node, attribute, value);
|
||||||
|
if (value == null)
|
||||||
|
dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
|
||||||
|
else
|
||||||
|
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
||||||
|
}
|
||||||
|
function set_data_dev(text, data) {
|
||||||
|
data = '' + data;
|
||||||
|
if (text.wholeText === data)
|
||||||
|
return;
|
||||||
|
dispatch_dev('SvelteDOMSetData', { node: text, data });
|
||||||
|
text.data = data;
|
||||||
|
}
|
||||||
|
function validate_each_argument(arg) {
|
||||||
|
if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {
|
||||||
|
let msg = '{#each} only iterates over array-like objects.';
|
||||||
|
if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {
|
||||||
|
msg += ' You can use a spread to convert this iterable into an array.';
|
||||||
|
}
|
||||||
|
throw new Error(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validate_slots(name, slot, keys) {
|
||||||
|
for (const slot_key of Object.keys(slot)) {
|
||||||
|
if (!~keys.indexOf(slot_key)) {
|
||||||
|
console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export { set_style as A, listen_dev as B, getContext as C, setContext as D, run_all as E, svg_element as F, is_function as G, HtmlTag as H, SvelteElement as S, attribute_to_object as a, insert_dev as b, validate_store as c, dispatch_dev as d, component_subscribe as e, validate_each_argument as f, globals as g, empty as h, init as i, detach_dev as j, element as k, space as l, add_location as m, noop as n, onMount as o, attr_dev as p, src_url_equal as q, set_custom_element_data as r, safe_not_equal as s, text as t, append_dev as u, validate_slots as v, set_data_dev as w, destroy_each as x, flush as y, binding_callbacks as z };
|
|
@ -0,0 +1,509 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
function noop() { }
|
||||||
|
function add_location(element, file, line, column, char) {
|
||||||
|
element.__svelte_meta = {
|
||||||
|
loc: { file, line, column, char }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function run(fn) {
|
||||||
|
return fn();
|
||||||
|
}
|
||||||
|
function blank_object() {
|
||||||
|
return Object.create(null);
|
||||||
|
}
|
||||||
|
function run_all(fns) {
|
||||||
|
fns.forEach(run);
|
||||||
|
}
|
||||||
|
function is_function(thing) {
|
||||||
|
return typeof thing === 'function';
|
||||||
|
}
|
||||||
|
function safe_not_equal(a, b) {
|
||||||
|
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
||||||
|
}
|
||||||
|
let src_url_equal_anchor;
|
||||||
|
function src_url_equal(element_src, url) {
|
||||||
|
if (!src_url_equal_anchor) {
|
||||||
|
src_url_equal_anchor = document.createElement('a');
|
||||||
|
}
|
||||||
|
src_url_equal_anchor.href = url;
|
||||||
|
return element_src === src_url_equal_anchor.href;
|
||||||
|
}
|
||||||
|
function is_empty(obj) {
|
||||||
|
return Object.keys(obj).length === 0;
|
||||||
|
}
|
||||||
|
function validate_store(store, name) {
|
||||||
|
if (store != null && typeof store.subscribe !== 'function') {
|
||||||
|
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function subscribe(store, ...callbacks) {
|
||||||
|
if (store == null) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const unsub = store.subscribe(...callbacks);
|
||||||
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
||||||
|
}
|
||||||
|
function component_subscribe(component, store, callback) {
|
||||||
|
component.$$.on_destroy.push(subscribe(store, callback));
|
||||||
|
}
|
||||||
|
function append(target, node) {
|
||||||
|
target.appendChild(node);
|
||||||
|
}
|
||||||
|
function insert(target, node, anchor) {
|
||||||
|
target.insertBefore(node, anchor || null);
|
||||||
|
}
|
||||||
|
function detach(node) {
|
||||||
|
node.parentNode.removeChild(node);
|
||||||
|
}
|
||||||
|
function destroy_each(iterations, detaching) {
|
||||||
|
for (let i = 0; i < iterations.length; i += 1) {
|
||||||
|
if (iterations[i])
|
||||||
|
iterations[i].d(detaching);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function element(name) {
|
||||||
|
return document.createElement(name);
|
||||||
|
}
|
||||||
|
function svg_element(name) {
|
||||||
|
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
||||||
|
}
|
||||||
|
function text(data) {
|
||||||
|
return document.createTextNode(data);
|
||||||
|
}
|
||||||
|
function space() {
|
||||||
|
return text(' ');
|
||||||
|
}
|
||||||
|
function empty() {
|
||||||
|
return text('');
|
||||||
|
}
|
||||||
|
function listen(node, event, handler, options) {
|
||||||
|
node.addEventListener(event, handler, options);
|
||||||
|
return () => node.removeEventListener(event, handler, options);
|
||||||
|
}
|
||||||
|
function attr(node, attribute, value) {
|
||||||
|
if (value == null)
|
||||||
|
node.removeAttribute(attribute);
|
||||||
|
else if (node.getAttribute(attribute) !== value)
|
||||||
|
node.setAttribute(attribute, value);
|
||||||
|
}
|
||||||
|
function set_custom_element_data(node, prop, value) {
|
||||||
|
if (prop in node) {
|
||||||
|
node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
attr(node, prop, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function children(element) {
|
||||||
|
return Array.from(element.childNodes);
|
||||||
|
}
|
||||||
|
function set_style(node, key, value, important) {
|
||||||
|
if (value === null) {
|
||||||
|
node.style.removeProperty(key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
node.style.setProperty(key, value, important ? 'important' : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
|
||||||
|
const e = document.createEvent('CustomEvent');
|
||||||
|
e.initCustomEvent(type, bubbles, cancelable, detail);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
class HtmlTag {
|
||||||
|
constructor(is_svg = false) {
|
||||||
|
this.is_svg = false;
|
||||||
|
this.is_svg = is_svg;
|
||||||
|
this.e = this.n = null;
|
||||||
|
}
|
||||||
|
c(html) {
|
||||||
|
this.h(html);
|
||||||
|
}
|
||||||
|
m(html, target, anchor = null) {
|
||||||
|
if (!this.e) {
|
||||||
|
if (this.is_svg)
|
||||||
|
this.e = svg_element(target.nodeName);
|
||||||
|
else
|
||||||
|
this.e = element(target.nodeName);
|
||||||
|
this.t = target;
|
||||||
|
this.c(html);
|
||||||
|
}
|
||||||
|
this.i(anchor);
|
||||||
|
}
|
||||||
|
h(html) {
|
||||||
|
this.e.innerHTML = html;
|
||||||
|
this.n = Array.from(this.e.childNodes);
|
||||||
|
}
|
||||||
|
i(anchor) {
|
||||||
|
for (let i = 0; i < this.n.length; i += 1) {
|
||||||
|
insert(this.t, this.n[i], anchor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p(html) {
|
||||||
|
this.d();
|
||||||
|
this.h(html);
|
||||||
|
this.i(this.a);
|
||||||
|
}
|
||||||
|
d() {
|
||||||
|
this.n.forEach(detach);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function attribute_to_object(attributes) {
|
||||||
|
const result = {};
|
||||||
|
for (const attribute of attributes) {
|
||||||
|
result[attribute.name] = attribute.value;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
let current_component;
|
||||||
|
function set_current_component(component) {
|
||||||
|
current_component = component;
|
||||||
|
}
|
||||||
|
function get_current_component() {
|
||||||
|
if (!current_component)
|
||||||
|
throw new Error('Function called outside component initialization');
|
||||||
|
return current_component;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
||||||
|
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
||||||
|
* it can be called from an external module).
|
||||||
|
*
|
||||||
|
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-onmount
|
||||||
|
*/
|
||||||
|
function onMount(fn) {
|
||||||
|
get_current_component().$$.on_mount.push(fn);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Associates an arbitrary `context` object with the current component and the specified `key`
|
||||||
|
* and returns that object. The context is then available to children of the component
|
||||||
|
* (including slotted content) with `getContext`.
|
||||||
|
*
|
||||||
|
* Like lifecycle functions, this must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-setcontext
|
||||||
|
*/
|
||||||
|
function setContext(key, context) {
|
||||||
|
get_current_component().$$.context.set(key, context);
|
||||||
|
return context;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Retrieves the context that belongs to the closest parent component with the specified `key`.
|
||||||
|
* Must be called during component initialisation.
|
||||||
|
*
|
||||||
|
* https://svelte.dev/docs#run-time-svelte-getcontext
|
||||||
|
*/
|
||||||
|
function getContext(key) {
|
||||||
|
return get_current_component().$$.context.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
const dirty_components = [];
|
||||||
|
const binding_callbacks = [];
|
||||||
|
const render_callbacks = [];
|
||||||
|
const flush_callbacks = [];
|
||||||
|
const resolved_promise = Promise.resolve();
|
||||||
|
let update_scheduled = false;
|
||||||
|
function schedule_update() {
|
||||||
|
if (!update_scheduled) {
|
||||||
|
update_scheduled = true;
|
||||||
|
resolved_promise.then(flush);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function add_render_callback(fn) {
|
||||||
|
render_callbacks.push(fn);
|
||||||
|
}
|
||||||
|
// flush() calls callbacks in this order:
|
||||||
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
||||||
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
||||||
|
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
||||||
|
// for afterUpdates called during the initial onMount, which are called in
|
||||||
|
// reverse order: children before parents.
|
||||||
|
// Since callbacks might update component values, which could trigger another
|
||||||
|
// call to flush(), the following steps guard against this:
|
||||||
|
// 1. During beforeUpdate, any updated components will be added to the
|
||||||
|
// dirty_components array and will cause a reentrant call to flush(). Because
|
||||||
|
// the flush index is kept outside the function, the reentrant call will pick
|
||||||
|
// up where the earlier call left off and go through all dirty components. The
|
||||||
|
// current_component value is saved and restored so that the reentrant call will
|
||||||
|
// not interfere with the "parent" flush() call.
|
||||||
|
// 2. bind:this callbacks cannot trigger new flush() calls.
|
||||||
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
||||||
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
||||||
|
// function, guarantees this behavior.
|
||||||
|
const seen_callbacks = new Set();
|
||||||
|
let flushidx = 0; // Do *not* move this inside the flush() function
|
||||||
|
function flush() {
|
||||||
|
const saved_component = current_component;
|
||||||
|
do {
|
||||||
|
// first, call beforeUpdate functions
|
||||||
|
// and update components
|
||||||
|
while (flushidx < dirty_components.length) {
|
||||||
|
const component = dirty_components[flushidx];
|
||||||
|
flushidx++;
|
||||||
|
set_current_component(component);
|
||||||
|
update(component.$$);
|
||||||
|
}
|
||||||
|
set_current_component(null);
|
||||||
|
dirty_components.length = 0;
|
||||||
|
flushidx = 0;
|
||||||
|
while (binding_callbacks.length)
|
||||||
|
binding_callbacks.pop()();
|
||||||
|
// then, once components are updated, call
|
||||||
|
// afterUpdate functions. This may cause
|
||||||
|
// subsequent updates...
|
||||||
|
for (let i = 0; i < render_callbacks.length; i += 1) {
|
||||||
|
const callback = render_callbacks[i];
|
||||||
|
if (!seen_callbacks.has(callback)) {
|
||||||
|
// ...so guard against infinite loops
|
||||||
|
seen_callbacks.add(callback);
|
||||||
|
callback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
render_callbacks.length = 0;
|
||||||
|
} while (dirty_components.length);
|
||||||
|
while (flush_callbacks.length) {
|
||||||
|
flush_callbacks.pop()();
|
||||||
|
}
|
||||||
|
update_scheduled = false;
|
||||||
|
seen_callbacks.clear();
|
||||||
|
set_current_component(saved_component);
|
||||||
|
}
|
||||||
|
function update($$) {
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
$$.update();
|
||||||
|
run_all($$.before_update);
|
||||||
|
const dirty = $$.dirty;
|
||||||
|
$$.dirty = [-1];
|
||||||
|
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
||||||
|
$$.after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const outroing = new Set();
|
||||||
|
function transition_in(block, local) {
|
||||||
|
if (block && block.i) {
|
||||||
|
outroing.delete(block);
|
||||||
|
block.i(local);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const globals = (typeof window !== 'undefined'
|
||||||
|
? window
|
||||||
|
: typeof globalThis !== 'undefined'
|
||||||
|
? globalThis
|
||||||
|
: global);
|
||||||
|
function mount_component(component, target, anchor, customElement) {
|
||||||
|
const { fragment, after_update } = component.$$;
|
||||||
|
fragment && fragment.m(target, anchor);
|
||||||
|
if (!customElement) {
|
||||||
|
// onMount happens before the initial afterUpdate
|
||||||
|
add_render_callback(() => {
|
||||||
|
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
||||||
|
// if the component was destroyed immediately
|
||||||
|
// it will update the `$$.on_destroy` reference to `null`.
|
||||||
|
// the destructured on_destroy may still reference to the old array
|
||||||
|
if (component.$$.on_destroy) {
|
||||||
|
component.$$.on_destroy.push(...new_on_destroy);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Edge case - component was destroyed immediately,
|
||||||
|
// most likely as a result of a binding initialising
|
||||||
|
run_all(new_on_destroy);
|
||||||
|
}
|
||||||
|
component.$$.on_mount = [];
|
||||||
|
});
|
||||||
|
}
|
||||||
|
after_update.forEach(add_render_callback);
|
||||||
|
}
|
||||||
|
function destroy_component(component, detaching) {
|
||||||
|
const $$ = component.$$;
|
||||||
|
if ($$.fragment !== null) {
|
||||||
|
run_all($$.on_destroy);
|
||||||
|
$$.fragment && $$.fragment.d(detaching);
|
||||||
|
// TODO null out other refs, including component.$$ (but need to
|
||||||
|
// preserve final state?)
|
||||||
|
$$.on_destroy = $$.fragment = null;
|
||||||
|
$$.ctx = [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function make_dirty(component, i) {
|
||||||
|
if (component.$$.dirty[0] === -1) {
|
||||||
|
dirty_components.push(component);
|
||||||
|
schedule_update();
|
||||||
|
component.$$.dirty.fill(0);
|
||||||
|
}
|
||||||
|
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
||||||
|
}
|
||||||
|
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
||||||
|
const parent_component = current_component;
|
||||||
|
set_current_component(component);
|
||||||
|
const $$ = component.$$ = {
|
||||||
|
fragment: null,
|
||||||
|
ctx: [],
|
||||||
|
// state
|
||||||
|
props,
|
||||||
|
update: noop,
|
||||||
|
not_equal,
|
||||||
|
bound: blank_object(),
|
||||||
|
// lifecycle
|
||||||
|
on_mount: [],
|
||||||
|
on_destroy: [],
|
||||||
|
on_disconnect: [],
|
||||||
|
before_update: [],
|
||||||
|
after_update: [],
|
||||||
|
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
||||||
|
// everything else
|
||||||
|
callbacks: blank_object(),
|
||||||
|
dirty,
|
||||||
|
skip_bound: false,
|
||||||
|
root: options.target || parent_component.$$.root
|
||||||
|
};
|
||||||
|
append_styles && append_styles($$.root);
|
||||||
|
let ready = false;
|
||||||
|
$$.ctx = instance
|
||||||
|
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
||||||
|
const value = rest.length ? rest[0] : ret;
|
||||||
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
||||||
|
if (!$$.skip_bound && $$.bound[i])
|
||||||
|
$$.bound[i](value);
|
||||||
|
if (ready)
|
||||||
|
make_dirty(component, i);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
})
|
||||||
|
: [];
|
||||||
|
$$.update();
|
||||||
|
ready = true;
|
||||||
|
run_all($$.before_update);
|
||||||
|
// `false` as a special case of no DOM component
|
||||||
|
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
||||||
|
if (options.target) {
|
||||||
|
if (options.hydrate) {
|
||||||
|
const nodes = children(options.target);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.l(nodes);
|
||||||
|
nodes.forEach(detach);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
|
$$.fragment && $$.fragment.c();
|
||||||
|
}
|
||||||
|
if (options.intro)
|
||||||
|
transition_in(component.$$.fragment);
|
||||||
|
mount_component(component, options.target, options.anchor, options.customElement);
|
||||||
|
flush();
|
||||||
|
}
|
||||||
|
set_current_component(parent_component);
|
||||||
|
}
|
||||||
|
let SvelteElement;
|
||||||
|
if (typeof HTMLElement === 'function') {
|
||||||
|
SvelteElement = class extends HTMLElement {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.attachShadow({ mode: 'open' });
|
||||||
|
}
|
||||||
|
connectedCallback() {
|
||||||
|
const { on_mount } = this.$$;
|
||||||
|
this.$$.on_disconnect = on_mount.map(run).filter(is_function);
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
for (const key in this.$$.slotted) {
|
||||||
|
// @ts-ignore todo: improve typings
|
||||||
|
this.appendChild(this.$$.slotted[key]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
attributeChangedCallback(attr, _oldValue, newValue) {
|
||||||
|
this[attr] = newValue;
|
||||||
|
}
|
||||||
|
disconnectedCallback() {
|
||||||
|
run_all(this.$$.on_disconnect);
|
||||||
|
}
|
||||||
|
$destroy() {
|
||||||
|
destroy_component(this, 1);
|
||||||
|
this.$destroy = noop;
|
||||||
|
}
|
||||||
|
$on(type, callback) {
|
||||||
|
// TODO should this delegate to addEventListener?
|
||||||
|
if (!is_function(callback)) {
|
||||||
|
return noop;
|
||||||
|
}
|
||||||
|
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
||||||
|
callbacks.push(callback);
|
||||||
|
return () => {
|
||||||
|
const index = callbacks.indexOf(callback);
|
||||||
|
if (index !== -1)
|
||||||
|
callbacks.splice(index, 1);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
$set($$props) {
|
||||||
|
if (this.$$set && !is_empty($$props)) {
|
||||||
|
this.$$.skip_bound = true;
|
||||||
|
this.$$set($$props);
|
||||||
|
this.$$.skip_bound = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function dispatch_dev(type, detail) {
|
||||||
|
document.dispatchEvent(custom_event(type, Object.assign({ version: '3.52.0' }, detail), { bubbles: true }));
|
||||||
|
}
|
||||||
|
function append_dev(target, node) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node });
|
||||||
|
append(target, node);
|
||||||
|
}
|
||||||
|
function insert_dev(target, node, anchor) {
|
||||||
|
dispatch_dev('SvelteDOMInsert', { target, node, anchor });
|
||||||
|
insert(target, node, anchor);
|
||||||
|
}
|
||||||
|
function detach_dev(node) {
|
||||||
|
dispatch_dev('SvelteDOMRemove', { node });
|
||||||
|
detach(node);
|
||||||
|
}
|
||||||
|
function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
|
||||||
|
const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
|
||||||
|
if (has_prevent_default)
|
||||||
|
modifiers.push('preventDefault');
|
||||||
|
if (has_stop_propagation)
|
||||||
|
modifiers.push('stopPropagation');
|
||||||
|
dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
|
||||||
|
const dispose = listen(node, event, handler, options);
|
||||||
|
return () => {
|
||||||
|
dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
|
||||||
|
dispose();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function attr_dev(node, attribute, value) {
|
||||||
|
attr(node, attribute, value);
|
||||||
|
if (value == null)
|
||||||
|
dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
|
||||||
|
else
|
||||||
|
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
||||||
|
}
|
||||||
|
function set_data_dev(text, data) {
|
||||||
|
data = '' + data;
|
||||||
|
if (text.wholeText === data)
|
||||||
|
return;
|
||||||
|
dispatch_dev('SvelteDOMSetData', { node: text, data });
|
||||||
|
text.data = data;
|
||||||
|
}
|
||||||
|
function validate_each_argument(arg) {
|
||||||
|
if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {
|
||||||
|
let msg = '{#each} only iterates over array-like objects.';
|
||||||
|
if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {
|
||||||
|
msg += ' You can use a spread to convert this iterable into an array.';
|
||||||
|
}
|
||||||
|
throw new Error(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validate_slots(name, slot, keys) {
|
||||||
|
for (const slot_key of Object.keys(slot)) {
|
||||||
|
if (!~keys.indexOf(slot_key)) {
|
||||||
|
console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export { set_style as A, listen_dev as B, getContext as C, setContext as D, run_all as E, svg_element as F, is_function as G, HtmlTag as H, SvelteElement as S, attribute_to_object as a, insert_dev as b, validate_slots as c, dispatch_dev as d, element as e, space as f, add_location as g, attr_dev as h, init as i, src_url_equal as j, append_dev as k, detach_dev as l, destroy_each as m, noop as n, onMount as o, validate_store as p, component_subscribe as q, globals as r, safe_not_equal as s, text as t, empty as u, validate_each_argument as v, set_custom_element_data as w, set_data_dev as x, flush as y, binding_callbacks as z };
|
|
@ -0,0 +1 @@
|
||||||
|
function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function r(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}let i,c;function a(t,n){return i||(i=document.createElement("a")),i.href=n,t===i.href}function u(n,e,o){n.$$.on_destroy.push(function(n,...e){if(null==n)return t;const o=n.subscribe(...e);return o.unsubscribe?()=>o.unsubscribe():o}(e,o))}function f(t,n){t.appendChild(n)}function l(t,n,e){t.insertBefore(n,e||null)}function h(t){t.parentNode.removeChild(t)}function d(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function $(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function m(){return p(" ")}function g(){return p("")}function b(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function y(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function _(t,n,e){n in t?t[n]="boolean"==typeof t[n]&&""===e||e:y(t,n,e)}function x(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function v(t,n,e,o){null===e?t.style.removeProperty(n):t.style.setProperty(n,e,o?"important":"")}class E{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,e=null){var o;this.e||(this.is_svg?this.e=(o=n.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=$(n.nodeName),this.t=n,this.c(t)),this.i(e)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)l(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(h)}}function w(t){const n={};for(const e of t)n[e.name]=e.value;return n}function k(t){c=t}function C(){if(!c)throw new Error("Function called outside component initialization");return c}function N(t){C().$$.on_mount.push(t)}function A(t){return C().$$.context.get(t)}const L=[],S=[],T=[],j=[],H=Promise.resolve();let M=!1;function O(t){T.push(t)}const P=new Set;let q=0;function z(){const t=c;do{for(;q<L.length;){const t=L[q];q++,k(t),B(t.$$)}for(k(null),L.length=0,q=0;S.length;)S.pop()();for(let t=0;t<T.length;t+=1){const n=T[t];P.has(n)||(P.add(n),n())}T.length=0}while(L.length);for(;j.length;)j.pop()();M=!1,P.clear(),k(t)}function B(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(O)}}const F=new Set;function D(t,n){-1===t.$$.dirty[0]&&(L.push(t),M||(M=!0,H.then(z)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function G(r,i,a,u,f,l,d,$=[-1]){const p=c;k(r);const m=r.$$={fragment:null,ctx:[],props:l,update:t,not_equal:f,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(p?p.$$.context:[])),callbacks:e(),dirty:$,skip_bound:!1,root:i.target||p.$$.root};d&&d(m.root);let g=!1;if(m.ctx=a?a(r,i.props||{},((t,n,...e)=>{const o=e.length?e[0]:n;return m.ctx&&f(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),g&&D(r,t)),n})):[],m.update(),g=!0,o(m.before_update),m.fragment=!!u&&u(m.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);m.fragment&&m.fragment.l(t),t.forEach(h)}else m.fragment&&m.fragment.c();i.intro&&((b=r.$$.fragment)&&b.i&&(F.delete(b),b.i(y))),function(t,e,r,i){const{fragment:c,after_update:a}=t.$$;c&&c.m(e,r),i||O((()=>{const e=t.$$.on_mount.map(n).filter(s);t.$$.on_destroy?t.$$.on_destroy.push(...e):o(e),t.$$.on_mount=[]})),a.forEach(O)}(r,i.target,i.anchor,i.customElement),z()}var b,y;k(p)}let I;"function"==typeof HTMLElement&&(I=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(s);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(n,e){if(!s(e))return t;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});export{E as H,I as S,w as a,l as b,u as c,h as d,g as e,$ as f,m as g,y as h,G as i,a as j,_ as k,f as l,x as m,t as n,N as o,d as p,z as q,v as r,r as s,p as t,b as u,S as v,A as w,o as x,s as y};
|
|
@ -0,0 +1,53 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { n as noop, s as safe_not_equal } from './index-ab5c14c8.js';
|
||||||
|
|
||||||
|
const subscriber_queue = [];
|
||||||
|
/**
|
||||||
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
||||||
|
* @param {*=}value initial value
|
||||||
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
||||||
|
*/
|
||||||
|
function writable(value, start = noop) {
|
||||||
|
let stop;
|
||||||
|
const subscribers = new Set();
|
||||||
|
function set(new_value) {
|
||||||
|
if (safe_not_equal(value, new_value)) {
|
||||||
|
value = new_value;
|
||||||
|
if (stop) { // store is ready
|
||||||
|
const run_queue = !subscriber_queue.length;
|
||||||
|
for (const subscriber of subscribers) {
|
||||||
|
subscriber[1]();
|
||||||
|
subscriber_queue.push(subscriber, value);
|
||||||
|
}
|
||||||
|
if (run_queue) {
|
||||||
|
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
||||||
|
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
||||||
|
}
|
||||||
|
subscriber_queue.length = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function update(fn) {
|
||||||
|
set(fn(value));
|
||||||
|
}
|
||||||
|
function subscribe(run, invalidate = noop) {
|
||||||
|
const subscriber = [run, invalidate];
|
||||||
|
subscribers.add(subscriber);
|
||||||
|
if (subscribers.size === 1) {
|
||||||
|
stop = start(set) || noop;
|
||||||
|
}
|
||||||
|
run(value);
|
||||||
|
return () => {
|
||||||
|
subscribers.delete(subscriber);
|
||||||
|
if (subscribers.size === 0) {
|
||||||
|
stop();
|
||||||
|
stop = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { set, update, subscribe };
|
||||||
|
}
|
||||||
|
|
||||||
|
export { writable as w };
|
|
@ -0,0 +1 @@
|
||||||
|
import{n,s as t}from"./index-ce8c147b.js";const e=[];function s(s,o=n){let c;const i=new Set;function f(n){if(t(s,n)&&(s=n,c)){const n=!e.length;for(const n of i)n[1](),e.push(n,s);if(n){for(let n=0;n<e.length;n+=2)e[n][0](e[n+1]);e.length=0}}}return{set:f,update:function(n){f(n(s))},subscribe:function(t,e=n){const r=[t,e];return i.add(r),1===i.size&&(c=o(f)||n),t(s),()=>{i.delete(r),0===i.size&&(c(),c=null)}}}}export{s as w};
|
|
@ -0,0 +1,53 @@
|
||||||
|
|
||||||
|
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
|
||||||
|
import { n as noop, s as safe_not_equal } from './index-970976e6.js';
|
||||||
|
|
||||||
|
const subscriber_queue = [];
|
||||||
|
/**
|
||||||
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
||||||
|
* @param {*=}value initial value
|
||||||
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
||||||
|
*/
|
||||||
|
function writable(value, start = noop) {
|
||||||
|
let stop;
|
||||||
|
const subscribers = new Set();
|
||||||
|
function set(new_value) {
|
||||||
|
if (safe_not_equal(value, new_value)) {
|
||||||
|
value = new_value;
|
||||||
|
if (stop) { // store is ready
|
||||||
|
const run_queue = !subscriber_queue.length;
|
||||||
|
for (const subscriber of subscribers) {
|
||||||
|
subscriber[1]();
|
||||||
|
subscriber_queue.push(subscriber, value);
|
||||||
|
}
|
||||||
|
if (run_queue) {
|
||||||
|
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
||||||
|
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
||||||
|
}
|
||||||
|
subscriber_queue.length = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function update(fn) {
|
||||||
|
set(fn(value));
|
||||||
|
}
|
||||||
|
function subscribe(run, invalidate = noop) {
|
||||||
|
const subscriber = [run, invalidate];
|
||||||
|
subscribers.add(subscriber);
|
||||||
|
if (subscribers.size === 1) {
|
||||||
|
stop = start(set) || noop;
|
||||||
|
}
|
||||||
|
run(value);
|
||||||
|
return () => {
|
||||||
|
subscribers.delete(subscriber);
|
||||||
|
if (subscribers.size === 0) {
|
||||||
|
stop();
|
||||||
|
stop = null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return { set, update, subscribe };
|
||||||
|
}
|
||||||
|
|
||||||
|
export { writable as w };
|
|
@ -1 +1 @@
|
||||||
import{S as i,i as e,a as t,b as o,s as n,e as a,n as r,d as s,h as m,o as c}from"./index-95aedb1a.js";function d(i){let e;return{c(){e=a("div"),e.innerHTML='<picture><source srcset="/img/crowd.webp"/> \n <source srcset="/img/crowd.png"/> \n <img id="crowd" alt="crowd"/></picture> \n \n <div id="text-container"><p>We are people united around a singular cause: bringing down authoritarian exploitative systems represented by various forms of capitalism and replacing them with libertarian socialist systems, with the goal of creating a more equitable and democratic world.</p> \n <div id="container-grid"><div><h2>GROUPS</h2> \n <img id="groups-img" src="/img/common/groups.svg" alt="groups"/> \n <p>We organize groups for the purposes of education, advocacy, and mutual aid. Our objective is to demonstrate to people how the current politico-economic systems detrimentally impact our well-being, present them with alternative approaches, and engage in mutual aid to alleviate the challenges of living under capitalism.</p></div> \n <div><h2>COMMUNITIES</h2> \n <img id="communities-img" src="/img/common/communities.svg" alt="communities"/> \n <p>We establish communities based on libertarian socialist principles, where communities have ownership of their land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.</p></div> \n <div><h2>COOPERATIVES</h2> \n <img id="coops-img" src="/img/common/coops.svg" alt="coops"/> \n <p>We form worker cooperatives to finance the operations of our groups and communities. Recognizing that economic power influences political power, we consider the establishment of cooperatives to be one of the initial steps towards achieving socialism.</p></div></div></div>',this.c=r,s(e,"id","container")},m(i,t){o(i,e,t)},p:r,i:r,o:r,d(i){i&&m(e)}}}function p(i){return c((()=>{})),[]}class g extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#container-grid>div>h2{text-align:center}#groups-img,#communities-img,#coops-img{position:absolute;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;height:8rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#crowd{width:100%;margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:2rem;margin-bottom:5rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}#container-grid{display:grid;grid-template-columns:1.2fr 1.1fr 1fr;grid-gap:4rem;margin-top:2rem}#container-grid>div{position:relative}#container-grid>div>p{position:relative;margin-top:5rem;z-index:2}@media only screen and (max-width: 1000px){#container-grid{display:grid;grid-template-columns:1fr;grid-gap:2rem}}</style>",e(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},p,d,n,{},null),i&&i.target&&o(i.target,this,i.anchor)}}customElements.define("landing-component",g);export{g as default};
|
import{S as i,i as t,a as o,b as e,s as r,e as s,n,d as m,c as a,o as c,f as g,g as d,t as p,h as l,j as u,r as h,l as f,m as v,v as x}from"./index-ce8c147b.js";import{loadLocaleContent as w}from"../../../../../../../../../js/libraries/serverTools.js";import{w as T}from"./index-f2dbf8ff.js";function b(i){let t,o,r,s,n,a,c,x,w,T,b,y,j,k,z,E,H,L,M,O,R,N,S,q,A,B,C,D,F,G,I,J,K,P,Q,U,V,W=i[2].top+"",X=i[2].groupsTitle+"",Y=i[2].groupsText+"",Z=i[2].communitiesTitle+"",$=i[2].communitiesText+"",_=i[2].cooperativesTitle+"",ii=i[2].cooperativesText+"";return{c(){t=g("div"),o=g("picture"),o.innerHTML='<source srcset="/img/crowd.webp"/> \n <source srcset="/img/crowd.png"/> \n <img id="crowd" alt="crowd"/>',r=d(),s=g("div"),n=g("p"),a=p(W),c=d(),x=g("div"),w=g("div"),T=g("h2"),b=p(X),y=d(),j=g("img"),z=d(),E=g("p"),H=p(Y),L=d(),M=g("div"),O=g("h2"),R=p(Z),N=d(),S=g("img"),A=d(),B=g("p"),C=p($),D=d(),F=g("div"),G=g("h2"),I=p(_),J=d(),K=g("img"),Q=d(),U=g("p"),V=p(ii),l(j,"id","groups-img"),u(j.src,k="/img/common/groups.svg")||l(j,"src","/img/common/groups.svg"),l(j,"alt","groups"),l(S,"id","communities-img"),u(S.src,q="/img/common/communities.svg")||l(S,"src","/img/common/communities.svg"),l(S,"alt","communities"),l(K,"id","coops-img"),u(K.src,P="/img/common/coops.svg")||l(K,"src","/img/common/coops.svg"),l(K,"alt","coops"),l(x,"id","container-grid"),h(x,"--grid-width",i[1]),l(s,"id","text-container"),l(t,"id","container")},m(m,g){e(m,t,g),f(t,o),f(t,r),f(t,s),f(s,n),f(n,a),f(s,c),f(s,x),f(x,w),f(w,T),f(T,b),f(w,y),f(w,j),f(w,z),f(w,E),f(E,H),f(x,L),f(x,M),f(M,O),f(O,R),f(M,N),f(M,S),f(M,A),f(M,B),f(B,C),f(x,D),f(x,F),f(F,G),f(G,I),f(F,J),f(F,K),f(F,Q),f(F,U),f(U,V),i[5](x)},p(i,t){4&t&&W!==(W=i[2].top+"")&&v(a,W),4&t&&X!==(X=i[2].groupsTitle+"")&&v(b,X),4&t&&Y!==(Y=i[2].groupsText+"")&&v(H,Y),4&t&&Z!==(Z=i[2].communitiesTitle+"")&&v(R,Z),4&t&&$!==($=i[2].communitiesText+"")&&v(C,$),4&t&&_!==(_=i[2].cooperativesTitle+"")&&v(I,_),4&t&&ii!==(ii=i[2].cooperativesText+"")&&v(V,ii),2&t&&h(x,"--grid-width",i[1])},d(o){o&&m(t),i[5](null)}}}function y(i){let t,o=0!=Object.keys(i[2]).length,r=o&&b(i);return{c(){r&&r.c(),t=s(),this.c=n},m(i,o){r&&r.m(i,o),e(i,t,o)},p(i,[e]){4&e&&(o=0!=Object.keys(i[2]).length),o?r?r.p(i,e):(r=b(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:n,o:n,d(i){r&&r.d(i),i&&m(t)}}}function j(i,t,o){let e,r,s,n,m=T({});return a(i,m,(i=>o(2,e=i))),w(m,"landing-component",n,(function(i){o(1,s="ru"==i?"1.2fr 1.05fr 1fr":"1.2fr 1.1fr 1fr")})),c((()=>{})),[r,s,e,n,m,function(i){x[i?"unshift":"push"]((()=>{r=i,o(0,r)}))}]}class k extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#container-grid>div>h2{text-align:center}#groups-img,#communities-img,#coops-img{position:absolute;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;height:8rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}#crowd{width:100%;margin-bottom:2rem}#container{margin:auto;max-width:1000px;margin-top:2rem;margin-bottom:5rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}#container-grid{display:grid;grid-template-columns:var(--grid-width);grid-gap:4rem;margin-top:2rem}#container-grid>div{position:relative}#container-grid>div>p{position:relative;margin-top:5rem;z-index:2}@media only screen and (max-width: 1060px){#container-grid{display:grid;grid-template-columns:1fr;grid-gap:2rem}}</style>",t(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},j,y,r,{},null),i&&i.target&&e(i.target,this,i.anchor)}}customElements.define("landing-component",k);export{k as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as e,a as s,b as o,l as n,s as r,e as i,n as a,d as l,h as c,j as p,o as u,c as h,t as d,m,g as f,p as g,q as y,r as $}from"./index-95aedb1a.js";import{pullLegendData as b}from"../../../../../../../../../js/predict/charts.js";function w(t,e,s){const o=t.slice();return o[10]=e[s],o[11]=e,o[12]=s,o}function x(t){let e,s,n,r,a,p,u,$,b=t[10].name+"",w=t[12];const x=()=>t[6](e,w),k=()=>t[6](null,w);function j(){return t[7](t[12])}return{c(){e=i("button"),s=i("div"),n=h(),r=i("span"),a=d(b),p=h(),l(s,"class","marker"),m(s,"background-color",t[10].color)},m(t,i){o(t,e,i),f(e,s),f(e,n),f(e,r),f(r,a),f(e,p),x(),u||($=g(e,"click",j),u=!0)},p(e,o){t=e,1&o&&m(s,"background-color",t[10].color),1&o&&b!==(b=t[10].name+"")&&y(a,b),w!==t[12]&&(k(),w=t[12],x())},d(t){t&&c(e),k(),u=!1,$()}}}function k(t){let e,s=t[0],n=[];for(let e=0;e<s.length;e+=1)n[e]=x(w(t,s,e));return{c(){e=i("div");for(let t=0;t<n.length;t+=1)n[t].c();this.c=a,l(e,"class","legend")},m(t,s){o(t,e,s);for(let t=0;t<n.length;t+=1)n[t].m(e,null)},p(t,[o]){if(7&o){let r;for(s=t[0],r=0;r<s.length;r+=1){const i=w(t,s,r);n[r]?n[r].p(i,o):(n[r]=x(i),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=s.length}},i:a,o:a,d(t){t&&c(e),p(n,t)}}}function j(t,e,s){let o,{option:n=null}=e,{chart:r=null}=e,{data:i={}}=e,a=[],l=[];function c(){if(null==n||null==n||null==r||null==r)setTimeout(c,100);else{s(0,a=b(a,n));for(let t of a)s(3,i[t.name]=!0,i);o=Object.keys(i)}}function p(t){s(3,i[o[t]]=!i[o[t]],i);let e=[],a=n.series.map((t=>t._id)),c=a[t];for(let t=0;t<a.length;t++)a[t]==c&&e.push(t);for(let t of e){let o=n.series[t];o.tooltip.show?(o.lineStyle.opacity=0,o.itemStyle.opacity=0,o.tooltip.show=!1,s(1,l[e[0]].style.opacity=.5,l)):(o.lineStyle.opacity=1,o.itemStyle.opacity=1,o.tooltip.show=!0,s(1,l[e[0]].style.opacity=1,l))}r.setOption(n)}u((()=>{c()}));return t.$$set=t=>{"option"in t&&s(4,n=t.option),"chart"in t&&s(5,r=t.chart),"data"in t&&s(3,i=t.data)},[a,l,p,i,n,r,function(t,e){$[t?"unshift":"push"]((()=>{l[e]=t,s(1,l)}))},t=>p(t)]}class v extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/test-basic.css';button{cursor:pointer}.legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1rem}.legend *{font-family:var(--sans-serif)}.marker{position:relative;display:inline-block;margin-right:0.5rem;top:0.1rem;width:1rem;height:1rem;border-radius:1rem}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},j,k,r,{option:4,chart:5,data:3},null),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["option","chart","data"]}get option(){return this.$$.ctx[4]}set option(t){this.$$set({option:t}),n()}get chart(){return this.$$.ctx[5]}set chart(t){this.$$set({chart:t}),n()}get data(){return this.$$.ctx[3]}set data(t){this.$$set({data:t}),n()}}customElements.define("legend-component",v);export{v as default};
|
import{S as t,i as e,a as s,b as o,q as n,s as r,f as i,n as a,h as l,d as c,p,o as u,g as h,t as d,r as m,l as f,u as g,m as y,v as $}from"./index-ce8c147b.js";import{pullLegendData as b}from"../../../../../../../../../js/predict/charts.js";function w(t,e,s){const o=t.slice();return o[10]=e[s],o[11]=e,o[12]=s,o}function x(t){let e,s,n,r,a,p,u,$,b=t[10].name+"",w=t[12];const x=()=>t[6](e,w),k=()=>t[6](null,w);function v(){return t[7](t[12])}return{c(){e=i("button"),s=i("div"),n=h(),r=i("span"),a=d(b),p=h(),l(s,"class","marker"),m(s,"background-color",t[10].color)},m(t,i){o(t,e,i),f(e,s),f(e,n),f(e,r),f(r,a),f(e,p),x(),u||($=g(e,"click",v),u=!0)},p(e,o){t=e,1&o&&m(s,"background-color",t[10].color),1&o&&b!==(b=t[10].name+"")&&y(a,b),w!==t[12]&&(k(),w=t[12],x())},d(t){t&&c(e),k(),u=!1,$()}}}function k(t){let e,s=t[0],n=[];for(let e=0;e<s.length;e+=1)n[e]=x(w(t,s,e));return{c(){e=i("div");for(let t=0;t<n.length;t+=1)n[t].c();this.c=a,l(e,"class","legend")},m(t,s){o(t,e,s);for(let t=0;t<n.length;t+=1)n[t].m(e,null)},p(t,[o]){if(7&o){let r;for(s=t[0],r=0;r<s.length;r+=1){const i=w(t,s,r);n[r]?n[r].p(i,o):(n[r]=x(i),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=s.length}},i:a,o:a,d(t){t&&c(e),p(n,t)}}}function v(t,e,s){let o,{option:n=null}=e,{chart:r=null}=e,{data:i={}}=e,a=[],l=[];function c(){if(null==n||null==n||null==r||null==r)setTimeout(c,100);else{s(0,a=b(a,n));for(let t of a)s(3,i[t.name]=!0,i);o=Object.keys(i)}}function p(t){s(3,i[o[t]]=!i[o[t]],i);let e=[],a=n.series.map((t=>t._id)),c=a[t];for(let t=0;t<a.length;t++)a[t]==c&&e.push(t);for(let t of e){let o=n.series[t];o.tooltip.show?(o.lineStyle.opacity=0,o.itemStyle.opacity=0,o.tooltip.show=!1,s(1,l[e[0]].style.opacity=.5,l)):(o.lineStyle.opacity=1,o.itemStyle.opacity=1,o.tooltip.show=!0,s(1,l[e[0]].style.opacity=1,l))}r.setOption(n)}u((()=>{c()}));return t.$$set=t=>{"option"in t&&s(4,n=t.option),"chart"in t&&s(5,r=t.chart),"data"in t&&s(3,i=t.data)},[a,l,p,i,n,r,function(t,e){$[t?"unshift":"push"]((()=>{l[e]=t,s(1,l)}))},t=>p(t)]}class j extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/test-basic.css';button{cursor:pointer}.legend{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:1rem}.legend *{font-family:var(--sans-serif)}.marker{position:relative;display:inline-block;margin-right:0.5rem;top:0.1rem;width:1rem;height:1rem;border-radius:1rem}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},v,k,r,{option:4,chart:5,data:3},null),t&&(t.target&&o(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["option","chart","data"]}get option(){return this.$$.ctx[4]}set option(t){this.$$set({option:t}),n()}get chart(){return this.$$.ctx[5]}set chart(t){this.$$set({chart:t}),n()}get data(){return this.$$.ctx[3]}set data(t){this.$$set({data:t}),n()}}customElements.define("legend-component",j);export{j as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as s,a as e,b as n,s as a,e as o,n as i,d as r,m as d,h as u,o as c,r as l}from"./index-95aedb1a.js";function h(t){let s;return{c(){s=o("div"),this.c=i,r(s,"id","loadscreen"),d(s,"width","100%"),d(s,"height","100%"),d(s,"background","white"),d(s,"position","absolute"),d(s,"z-index","100000")},m(e,a){n(e,s,a),t[1](s)},p:i,i:i,o:i,d(e){e&&u(s),t[1](null)}}}function p(t,s,e){let n;return c((()=>{window.addEventListener("load",(function(){e(0,n.parentNode.host.style.display="none",n)}))})),[n,function(t){l[t?"unshift":"push"]((()=>{n=t,e(0,n)}))}]}class m extends t{constructor(t){super(),s(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},p,h,a,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("loadscreen-component",m);export{m as default};
|
import{S as t,i as s,a as e,b as n,s as o,f as a,n as i,h as r,r as d,d as c,o as u,v as l}from"./index-ce8c147b.js";function h(t){let s;return{c(){s=a("div"),this.c=i,r(s,"id","loadscreen"),d(s,"width","100%"),d(s,"height","100%"),d(s,"background","white"),d(s,"position","absolute"),d(s,"z-index","100000")},m(e,o){n(e,s,o),t[1](s)},p:i,i:i,o:i,d(e){e&&c(s),t[1](null)}}}function p(t,s,e){let n;return u((()=>{window.addEventListener("load",(function(){e(0,n.parentNode.host.style.display="none",n)}))})),[n,function(t){l[t?"unshift":"push"]((()=>{n=t,e(0,n)}))}]}class f extends t{constructor(t){super(),s(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},p,h,o,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("loadscreen-component",f);export{f as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as a,a as e,b as s,l as o,s as r,e as i,n,d as l,h as c,o as p,r as m}from"./index-95aedb1a.js";function h(t){let a;return{c(){a=i("div"),this.c=n,l(a,"id","map")},m(e,o){s(e,a,o),t[2](a)},p:n,i:n,o:n,d(e){e&&c(a),t[2](null)}}}function u(t,a,e){let s,{callback:o=null}=a;function r(t,a){let e=L.map(s,{center:t,zoom:a});return L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',minNativeZoom:2,minZoom:2,maxNativeZoom:16,maxZoom:16}).addTo(e),e}return p((()=>{o(r)})),t.$$set=t=>{"callback"in t&&e(1,o=t.callback)},[s,o,function(t){m[t?"unshift":"push"]((()=>{s=t,e(0,s)}))}]}class b extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css';#map{height:var(--height);width:var(--width,100%);margin-bottom:var(--margin-bottom,0)\n }</style>",a(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},u,h,r,{callback:1},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),o()))}static get observedAttributes(){return["callback"]}get callback(){return this.$$.ctx[1]}set callback(t){this.$$set({callback:t}),o()}}customElements.define("map-component",b);export{b as default};
|
import{S as t,i as a,a as e,b as s,q as o,s as r,f as i,n,h as c,d as l,o as p,v as m}from"./index-ce8c147b.js";function h(t){let a;return{c(){a=i("div"),this.c=n,c(a,"id","map")},m(e,o){s(e,a,o),t[2](a)},p:n,i:n,o:n,d(e){e&&l(a),t[2](null)}}}function u(t,a,e){let s,{callback:o=null}=a;function r(t,a){let e=L.map(s,{center:t,zoom:a});return L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',minNativeZoom:2,minZoom:2,maxNativeZoom:16,maxZoom:16}).addTo(e),e}return p((()=>{o(r)})),t.$$set=t=>{"callback"in t&&e(1,o=t.callback)},[s,o,function(t){m[t?"unshift":"push"]((()=>{s=t,e(0,s)}))}]}class b extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.css';#map{height:var(--height);width:var(--width,100%);margin-bottom:var(--margin-bottom,0)\n }</style>",a(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},u,h,r,{callback:1},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),o()))}static get observedAttributes(){return["callback"]}get callback(){return this.$$.ctx[1]}set callback(t){this.$$set({callback:t}),o()}}customElements.define("map-component",b);export{b as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as e,i,a,b as t,s as n,e as r,c as s,n as d,d as o,g as l,h as m,u as p,o as h,r as g}from"./index-95aedb1a.js";import{debounce as c}from"../../../../../../../../../js/libraries/miscTools.js";function f(e){let i,a,n,p,h,g,c,f,u,b;return{c(){i=r("div"),a=r("div"),n=r("div"),p=r("div"),p.innerHTML='<slot name="sidebar-left"></slot>',h=s(),g=r("div"),g.innerHTML='<slot name="sidebar-left2"></slot>',c=s(),f=r("div"),f.innerHTML='<slot name="sidebar-right"></slot>',u=s(),b=r("div"),b.innerHTML='<slot name="main" id="main-slot"></slot>',this.c=d,o(p,"id","sidebar-left"),o(p,"class","pane"),o(g,"id","sidebar-left2"),o(g,"class","pane"),o(n,"id","sidebars-left"),o(n,"class","sidebar"),o(f,"id","sidebar-right"),o(f,"class","pane sidebar"),o(b,"id","main-pane"),o(b,"class","pane"),o(a,"class","pane-container"),o(i,"id","root"),o(i,"class","pane-centering")},m(r,s){t(r,i,s),l(i,a),l(a,n),l(n,p),e[5](p),l(n,h),l(n,g),e[6](g),l(a,c),l(a,f),e[7](f),l(a,u),l(a,b),e[8](b),e[9](i)},p:d,i:d,o:d,d(a){a&&m(i),e[5](null),e[6](null),e[7](null),e[8](null),e[9](null)}}}function u(e,i,a){let t,n,r,s,d,o=null!=p("alignerParent")?p("alignerParent").switchView:void 0,l=!1,m=!1,f=!1;function u(){if(null!=t.parentNode){let e=t.parentNode.host.childNodes;if(0==e.length)setTimeout(u,50);else{let i=!1,n=t.parentNode.innerHTML;for(let a of e)"sidebar-left"!=a.slot||l?"sidebar-left2"!=a.slot||m?"sidebar-right"!=a.slot||f||(n=n.replace("#sidebar-right{display:none;","#sidebar-right{"),f=!0,i=!0):(n=n.replace("#sidebar-left2{display:none}",""),m=!0,i=!0):(n=n.replace("#sidebar-left{display:none}",""),l=!0,i=!0);null!=o&&(n=n.replace("1880px",o),i=!0),i&&a(0,t.parentNode.innerHTML=n,t)}}}return window.addEventListener("resize",c(u,100)),h((()=>{u()})),[t,n,r,s,d,function(e){g[e?"unshift":"push"]((()=>{r=e,a(2,r)}))},function(e){g[e?"unshift":"push"]((()=>{s=e,a(3,s)}))},function(e){g[e?"unshift":"push"]((()=>{d=e,a(4,d)}))},function(e){g[e?"unshift":"push"]((()=>{n=e,a(1,n)}))},function(e){g[e?"unshift":"push"]((()=>{t=e,a(0,t)}))}]}class b extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.pane-container{display:block;margin-left:var(--total-margin-left,0rem)}#root{min-height:var(--min-height,auto)}#main-pane{position:relative;padding-left:var(--padding-left,0rem);padding-right:var(--padding-right,0rem);padding-top:var(--padding-top,0rem);padding-bottom:var(--padding-bottom,0rem);text-align:justify;background:var(--background,white);box-shadow:var(--box-shadow,0 0 0.314rem rgb(187, 187, 187));margin:auto;height:min-content;max-width:var(--width-main,66rem);width:var(--width-main,66rem);z-index:1;overflow-x:var(--overflow-x,hidden)}.sidebar{position:absolute}#sidebars-left{display:flex;flex-direction:column;gap:1rem;margin-left:calc(-1*var(--width-left,22.5rem) - 1rem - 4rem);width:calc(var(--width-left,22.5rem) + 4rem)}#sidebar-left,#sidebar-left2{position:relative;background-color:white;padding:2rem 2rem}#sidebar-left{display:none}#sidebar-left2{display:none}#sidebar-right{display:none;margin-left:calc(var(--width-main,66rem) + 1rem);width:var(--width-right,auto);background-color:white;padding:2rem 2rem}@media only screen and (max-width: 1880px){#main-pane{max-width:initial;width:100%;max-width:var(--width-main,66rem);padding-left:var(--padding-left-mobile,1.8rem);padding-right:var(--padding-right-mobile,1.8rem);padding-top:var(--padding-top-mobile,1.8rem);padding-bottom:var(--padding-bottom-mobile,1.8rem)}#sidebars-left,#sidebar-right{position:relative;margin:auto;margin-top:1rem;margin-bottom:1rem;max-width:var(--width-main,66rem);width:100%}.pane-container{width:95%;justify-items:center;grid-auto-flow:row;margin-left:0}}</style>",i(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},u,f,n,{},null),e&&e.target&&t(e.target,this,e.anchor)}}customElements.define("pane-aligner",b);export{b as default};
|
import{S as i,i as e,a,b as t,s as n,f as r,g as s,n as d,h as o,l,d as m,w as p,o as h,v as g}from"./index-ce8c147b.js";import{debounce as c}from"../../../../../../../../../js/libraries/miscTools.js";function f(i){let e,a,n,p,h,g,c,f,u,b;return{c(){e=r("div"),a=r("div"),n=r("div"),p=r("div"),p.innerHTML='<slot name="sidebar-left"></slot>',h=s(),g=r("div"),g.innerHTML='<slot name="sidebar-left2"></slot>',c=s(),f=r("div"),f.innerHTML='<slot name="sidebar-right"></slot>',u=s(),b=r("div"),b.innerHTML='<slot name="main" id="main-slot"></slot>',this.c=d,o(p,"id","sidebar-left"),o(p,"class","pane"),o(g,"id","sidebar-left2"),o(g,"class","pane"),o(n,"id","sidebars-left"),o(n,"class","sidebar"),o(f,"id","sidebar-right"),o(f,"class","pane sidebar"),o(b,"id","main-pane"),o(b,"class","pane"),o(a,"class","pane-container"),o(e,"id","root"),o(e,"class","pane-centering")},m(r,s){t(r,e,s),l(e,a),l(a,n),l(n,p),i[5](p),l(n,h),l(n,g),i[6](g),l(a,c),l(a,f),i[7](f),l(a,u),l(a,b),i[8](b),i[9](e)},p:d,i:d,o:d,d(a){a&&m(e),i[5](null),i[6](null),i[7](null),i[8](null),i[9](null)}}}function u(i,e,a){let t,n,r,s,d,o=null!=p("alignerParent")?p("alignerParent").switchView:void 0,l=!1,m=!1,f=!1;function u(){if(null!=t.parentNode){let i=t.parentNode.host.childNodes;if(0==i.length)setTimeout(u,50);else{let e=!1,n=t.parentNode.innerHTML;for(let a of i)"sidebar-left"!=a.slot||l?"sidebar-left2"!=a.slot||m?"sidebar-right"!=a.slot||f||(n=n.replace("#sidebar-right{display:none;","#sidebar-right{"),f=!0,e=!0):(n=n.replace("#sidebar-left2{display:none}",""),m=!0,e=!0):(n=n.replace("#sidebar-left{display:none}",""),l=!0,e=!0);null!=o&&(n=n.replace("1880px",o),e=!0),e&&a(0,t.parentNode.innerHTML=n,t)}}}return window.addEventListener("resize",c(u,100)),h((()=>{u()})),[t,n,r,s,d,function(i){g[i?"unshift":"push"]((()=>{r=i,a(2,r)}))},function(i){g[i?"unshift":"push"]((()=>{s=i,a(3,s)}))},function(i){g[i?"unshift":"push"]((()=>{d=i,a(4,d)}))},function(i){g[i?"unshift":"push"]((()=>{n=i,a(1,n)}))},function(i){g[i?"unshift":"push"]((()=>{t=i,a(0,t)}))}]}class b extends i{constructor(i){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.pane-container{display:block;margin-left:var(--total-margin-left,0rem)}#root{min-height:var(--min-height,auto)}#main-pane{position:relative;padding-left:var(--padding-left,0rem);padding-right:var(--padding-right,0rem);padding-top:var(--padding-top,0rem);padding-bottom:var(--padding-bottom,0rem);text-align:justify;background:var(--background,white);box-shadow:var(--box-shadow,0 0 0.314rem rgb(187, 187, 187));margin:auto;height:min-content;max-width:var(--width-main,66rem);width:var(--width-main,66rem);z-index:1;overflow-x:var(--overflow-x,hidden)}.sidebar{position:absolute}#sidebars-left{display:flex;flex-direction:column;gap:1rem;margin-left:calc(-1*var(--width-left,22.5rem) - 1rem - 4rem);width:calc(var(--width-left,22.5rem) + 4rem)}#sidebar-left,#sidebar-left2{position:relative;background-color:white;padding:2rem 2rem}#sidebar-left{display:none}#sidebar-left2{display:none}#sidebar-right{display:none;margin-left:calc(var(--width-main,66rem) + 1rem);width:var(--width-right,auto);background-color:white;padding:2rem 2rem}@media only screen and (max-width: 1880px){#main-pane{max-width:initial;width:100%;max-width:var(--width-main,66rem);padding-left:var(--padding-left-mobile,1.8rem);padding-right:var(--padding-right-mobile,1.8rem);padding-top:var(--padding-top-mobile,1.8rem);padding-bottom:var(--padding-bottom-mobile,1.8rem)}#sidebars-left,#sidebar-right{position:relative;margin:auto;margin-top:1rem;margin-bottom:1rem;max-width:var(--width-main,66rem);width:100%}.pane-container{width:95%;justify-items:center;grid-auto-flow:row;margin-left:0}}</style>",e(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},u,f,n,{},null),i&&i.target&&t(i.target,this,i.anchor)}}customElements.define("pane-aligner",b);export{b as default};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import{S as t,i as e,a as s,b as c,l as a,s as i,e as r,c as o,n as h,d as n,g as l,p as d,h as p,v as u,o as b}from"./index-95aedb1a.js";import"../../../../../../../../../js/libraries/miscTools.js";function k(t){let e,s,a,i,b,k;return{c(){e=r("label"),s=r("input"),a=o(),i=r("span"),this.c=h,n(s,"type","checkbox"),n(i,"class","switch-span"),n(e,"class","switch")},m(r,o){c(r,e,o),l(e,s),s.checked=t[0],l(e,a),l(e,i),b||(k=[d(s,"change",t[4]),d(s,"click",t[1])],b=!0)},p(t,[e]){1&e&&(s.checked=t[0])},i:h,o:h,d(t){t&&p(e),b=!1,u(k)}}}function g(t,e,s){let{callback:c=null}=e,{checked:a=!1}=e;const i=()=>{setTimeout((()=>{null!=c?(s(0,a=!a),c()):i()}),100)};return b((()=>{})),t.$$set=t=>{"callback"in t&&s(2,c=t.callback),"checked"in t&&s(0,a=t.checked)},[a,function(){null!=c&&(s(0,a=!a),c())},c,i,function(){a=this.checked,s(0,a)}]}class m extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.switch span{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:calc(2* 1.2rem)}.switch span:before{position:absolute;content:\"\";height:calc(var(--height) - 0.5rem);width:calc(var(--height) - 0.5rem);left:calc(0.3rem);bottom:0.25rem;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}.switch input:checked+.switch-span{background-color:var(--pink)}.switch input:hover+.switch-span{box-shadow:0 0 0 var(--pink)}.switch input:checked+.switch-span:before{-webkit-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));-ms-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem))}.switch{position:relative;display:inline-block;width:var(--width);height:var(--height)}.switch input{position:absolute;width:var(--width);height:var(--height);opacity:0}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},g,k,i,{callback:2,checked:0,toggle:3},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),a()))}static get observedAttributes(){return["callback","checked","toggle"]}get callback(){return this.$$.ctx[2]}set callback(t){this.$$set({callback:t}),a()}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),a()}get toggle(){return this.$$.ctx[3]}}customElements.define("switch-component",m);export{m as default};
|
import{S as t,i as e,a as s,b as c,q as i,s as a,f as r,g as o,n as h,h as n,l,u as d,d as u,x as p,o as b}from"./index-ce8c147b.js";import"../../../../../../../../../js/libraries/miscTools.js";function k(t){let e,s,i,a,b,k;return{c(){e=r("label"),s=r("input"),i=o(),a=r("span"),this.c=h,n(s,"type","checkbox"),n(a,"class","switch-span"),n(e,"class","switch")},m(r,o){c(r,e,o),l(e,s),s.checked=t[0],l(e,i),l(e,a),b||(k=[d(s,"change",t[4]),d(s,"click",t[1])],b=!0)},p(t,[e]){1&e&&(s.checked=t[0])},i:h,o:h,d(t){t&&u(e),b=!1,p(k)}}}function g(t,e,s){let{callback:c=null}=e,{checked:i=!1}=e;const a=()=>{setTimeout((()=>{null!=c?(s(0,i=!i),c()):a()}),100)};return b((()=>{})),t.$$set=t=>{"callback"in t&&s(2,c=t.callback),"checked"in t&&s(0,i=t.checked)},[i,function(){null!=c&&(s(0,i=!i),c())},c,a,function(){i=this.checked,s(0,i)}]}class m extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';.switch span{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s;border-radius:calc(2* 1.2rem)}.switch span:before{position:absolute;content:\"\";height:calc(var(--height) - 0.5rem);width:calc(var(--height) - 0.5rem);left:calc(0.3rem);bottom:0.25rem;background-color:white;-webkit-transition:.4s;transition:.4s;border-radius:50%}.switch input:checked+.switch-span{background-color:var(--pink)}.switch input:hover+.switch-span{box-shadow:0 0 0 var(--pink)}.switch input:checked+.switch-span:before{-webkit-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));-ms-transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem));transform:translateX(calc(var(--width) - var(--height)/2 - 2*0.6rem))}.switch{position:relative;display:inline-block;width:var(--width);height:var(--height)}.switch input{position:absolute;width:var(--width);height:var(--height);opacity:0}</style>",e(this,{target:this.shadowRoot,props:s(this.attributes),customElement:!0},g,k,a,{callback:2,checked:0,toggle:3},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),i()))}static get observedAttributes(){return["callback","checked","toggle"]}get callback(){return this.$$.ctx[2]}set callback(t){this.$$set({callback:t}),i()}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),i()}get toggle(){return this.$$.ctx[3]}}customElements.define("switch-component",m);export{m as default};
|
||||||
|
|
|
@ -2,46 +2,88 @@ export let coops = [
|
||||||
{
|
{
|
||||||
logo: "chiron_logo",
|
logo: "chiron_logo",
|
||||||
name: "Chiron Health",
|
name: "Chiron Health",
|
||||||
location: ["Estonia, Kohtla-Järve",[59.40338782864918, 27.286240058760324]],
|
location: [
|
||||||
market: "wellness and health",
|
{
|
||||||
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.40338782864918, 27.286240058760324]],
|
||||||
|
market: {
|
||||||
|
en: "wellness and health",
|
||||||
|
ru: "благополучие и здоровье"
|
||||||
|
},
|
||||||
workers: 2,
|
workers: 2,
|
||||||
status: "launch in 2 months",
|
status: {
|
||||||
|
en: "launch in 2 months",
|
||||||
|
ru: "запуск через 2 месяца"
|
||||||
|
},
|
||||||
website: "chrn.health",
|
website: "chrn.health",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"],
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
description: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}],
|
||||||
|
description: {
|
||||||
|
en: "Chiron Health is a health platform providing courses and services on the topics of nutrition, exercise, sleep and mental wellbeing.",
|
||||||
|
ru: "Chiron Health — это платформа о здоровье, предлагающая курсы и услуги по вопросам питания, физических упражнений, сна и психического благополучия"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
logo: "kuusk_logo",
|
logo: "kuusk_logo",
|
||||||
name: "Kuusk",
|
name: "Kuusk",
|
||||||
location: ["Estonia, Kohtla-Järve",[59.405466538976185, 27.289104862336302]],
|
location: [
|
||||||
market: "herbal teas",
|
{
|
||||||
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.405466538976185, 27.289104862336302]],
|
||||||
|
market: {
|
||||||
|
en: "herbal teas",
|
||||||
|
ru: "травяные чаи"
|
||||||
|
},
|
||||||
workers: 1,
|
workers: 1,
|
||||||
status: "launch in TBD months",
|
status: {
|
||||||
|
en: "launch in TBD months",
|
||||||
|
ru: "запуск через X месяцев"
|
||||||
|
},
|
||||||
website: "-",
|
website: "-",
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"],
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
description: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}],
|
||||||
|
description: {
|
||||||
|
en: "Kuusk is an online store that sells herbal teas from exclusively local wild plants, as well as an online gathering course.",
|
||||||
|
ru: "Kuusk — интернет-магазин, в котором продаются травяные чаи исключительно из местных дикорастущих растений, а также онлайн-курс по собирательству."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersCoops(map) {
|
export function addMarkersCoops(map,content,locale) {
|
||||||
for (let g of coops) {
|
for (let g of coops) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = "<b>" + field[0].toUpperCase() + field.slice(1) + ": " + "</b>"
|
let fieldText
|
||||||
|
if (field!="logo") {
|
||||||
|
fieldText = content[field] + ": "
|
||||||
|
}
|
||||||
if (field=="logo") {
|
if (field=="logo") {
|
||||||
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
text += "<picture><source srcset=" + "/img/coops/" + g.logo + ".webp><source srcset='/img/coops/" + g.logo + ".png'><img alt='logo' style='position: relative; max-height: 5rem; max-width: 100%; margin: auto;'></picture>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="contact") {
|
else if (field=="contact") {
|
||||||
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1] + "</a>" + "<br>"
|
text += fieldText + "<a href='https://www." + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="website") {
|
else if (field=="website") {
|
||||||
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
text += fieldText + "<a href='" + g.website + "' target='_blank' rel=noreferrer>" + g.website + "</a>" + "<br>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0] + "<br>"
|
text += fieldText + g[field][0][locale[0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
|
else if (field=="market" || field=="status" || field=="description") {
|
||||||
|
text += fieldText + g[field][locale[0]] + "<br>"
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
text += fieldText + g[field] + "<br>"
|
text += fieldText + g[field] + "<br>"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,37 +1,73 @@
|
||||||
export let groups = [
|
export let groups = [
|
||||||
{
|
{
|
||||||
location: ["Denmark, Copenhagen",[55.6840661150132, 12.557133959514688]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Denmark, Copenhagen",
|
||||||
|
ru: "Дания, Копенгаген"
|
||||||
|
},
|
||||||
|
[55.6840661150132, 12.557133959514688]],
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://discord.gg/xAPZmyr8B6","Discord invite link"]
|
contact: ["https://discord.gg/xAPZmyr8B6",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "Discord ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: ["Estonia, Kohtla-Järve",[59.40629447076191, 27.280605339416322]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Estonia, Kohtla-Järve",
|
||||||
|
ru: "Эстония, Кохтла-Ярве"
|
||||||
|
},
|
||||||
|
[59.40629447076191, 27.280605339416322]],
|
||||||
members: 3,
|
members: 3,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: ["Greece, Athens",[37.94877252621736, 23.677622972996158]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Greece, Athens",
|
||||||
|
ru: "Греция, Афины"
|
||||||
|
},
|
||||||
|
[37.94877252621736, 23.677622972996158]],
|
||||||
members: 1,
|
members: 1,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
location: ["Latvia, Riga",[56.94748425529816, 24.003027136431925]],
|
location: [
|
||||||
|
{
|
||||||
|
en: "Latvia, Riga",
|
||||||
|
ru: "Латвия, Рига"
|
||||||
|
},
|
||||||
|
[56.94748425529816, 24.003027136431925]],
|
||||||
members: 2,
|
members: 2,
|
||||||
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh","WhatsApp invite link"]
|
contact: ["https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh",
|
||||||
|
{
|
||||||
|
en: "WhatsApp invite link",
|
||||||
|
ru: "WhatsApp ссылка"
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export function addMarkersGroups(map) {
|
export function addMarkersGroups(map,content,locale) {
|
||||||
for (let g of groups) {
|
for (let g of groups) {
|
||||||
let coordinates
|
let coordinates
|
||||||
let text = ""
|
let text = ""
|
||||||
for (let field in g) {
|
for (let field in g) {
|
||||||
let fieldText = field[0].toUpperCase() + field.slice(1) + ": "
|
let fieldText = content[field] + ": "
|
||||||
if (field=="contact") {
|
if (field=="contact") {
|
||||||
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1] + "</a>"
|
text += fieldText + "<a href='" + g.contact[0] + "' target='_blank' rel=noreferrer>" + g.contact[1][locale[0]] + "</a>"
|
||||||
}
|
}
|
||||||
else if (field=="location") {
|
else if (field=="location") {
|
||||||
text += fieldText + g[field][0] + "<br>"
|
text += fieldText + g[field][0][locale[0]] + "<br>"
|
||||||
coordinates = g[field][1]
|
coordinates = g[field][1]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -62,3 +62,47 @@ export function sendText(route,data,callback) {
|
||||||
xhr.send(data)
|
xhr.send(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onlyUnique(value, index, array) {
|
||||||
|
return array.indexOf(value) === index;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function loadLocaleContent(content,componentName,loaded,callback) {
|
||||||
|
let langs
|
||||||
|
let localesAvailable
|
||||||
|
let locale = localStorage.getItem("locale")
|
||||||
|
if (locale==null) {
|
||||||
|
langs = navigator.languages.map(x => x.split("-")[0]).filter(onlyUnique)
|
||||||
|
}
|
||||||
|
getData("/locales/available.json",function(response) {
|
||||||
|
if (locale!=null) {
|
||||||
|
getData("/locales/" + locale + "/" + componentName + ".json" ,function(response) {
|
||||||
|
let parsed = JSON.parse(response)
|
||||||
|
content.set(parsed)
|
||||||
|
if (callback!=undefined) {
|
||||||
|
callback(locale)
|
||||||
|
}
|
||||||
|
loaded = 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
localesAvailable = JSON.parse(response)
|
||||||
|
for (let lang of langs) {
|
||||||
|
if (localesAvailable.includes(lang)) {
|
||||||
|
getData("/locales/" + lang + "/" + componentName + ".json" ,function(response) {
|
||||||
|
let parsed = JSON.parse(response)
|
||||||
|
content.set(parsed)
|
||||||
|
if (callback!=undefined) {
|
||||||
|
callback(locale)
|
||||||
|
}
|
||||||
|
loaded = 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getLocale(locale,lang) {
|
||||||
|
locale[0] = lang
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
["en","ru"]
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Communities",
|
||||||
|
"p1": "We establish libertarian socialist communities by buying land, housing and the means of production which are then owned by the members of these communities. There is no private property within the communities and, therefore, exploitation and suffering that comes with it. Decisions are made using direct democracy with a focus on consensus, ensuring that each community member has power over decisions that affect their life. Communities try to establish their own cooperatives in order to finance their development becoming financially independent and sustainable, which allows for their survival and growth. Within communities the gift economy is utilized whenever possible. Each community is a small beacon of socialism within the dark capitalist world showing us how good life can be if only we achieve our goal.",
|
||||||
|
"subheading1": "Our Communities",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"location": "Location",
|
||||||
|
"status": "Status",
|
||||||
|
"members": "Members",
|
||||||
|
"contact": "Contact"
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"heading": "Cooperatives",
|
||||||
|
"p1": "We establish worker cooperatives, which is a business model where employees own and control the enterprise. Each worker has a voice in decision-making, and profits are distributed based on individual contributions. This participatory structure fosters ownership, motivation, and job satisfaction, creating a more fulfilling work experience as well as challenging the wealth concentration in traditional capitalist businesses.",
|
||||||
|
"p2": "By focusing on employees' needs, our cooperatives create supportive and sustainable work environments that foster social cohesion and job security. We also prioritize the interests of local communities, taking a long-term perspective. With workers making decisions, we avoid harmful short-term profit-driven strategies and instead reinvest our profits, contributing to community development and resilience.",
|
||||||
|
"subheading1": "Our Cooperatives",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"name": "Name",
|
||||||
|
"location": "Location",
|
||||||
|
"market": "Market",
|
||||||
|
"status": "Status",
|
||||||
|
"workers": "Workers",
|
||||||
|
"contact": "Contact",
|
||||||
|
"description": "Description",
|
||||||
|
"website": "Website"
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"contactUs": "Contact Us",
|
||||||
|
"inviteLink": "invite link",
|
||||||
|
"libertarianSocialists": "Libertarian Socialists"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Groups",
|
||||||
|
"p1": "We aim to raise awareness about the negative impact of current politico-economic systems on our well-being. Through education, community engagement, and analysis, we reveal the flaws and inequalities in capitalist societies. By highlighting these issues, we empower people to question the status quo and imagine fairer and more sustainable alternatives.",
|
||||||
|
"p2": "But our mission goes beyond theory. We engage in mutual aid and collective action to address immediate challenges within capitalism. Through mutual aid, we support each other by sharing resources, knowledge, and skills, fostering solidarity and resilience. Whether it's community gardens, food cooperatives, or support networks, our goal is to make life under capitalism more bearable and create pockets of resistance and alternatives within the system.",
|
||||||
|
"subheading1": "Our Groups",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"location": "Location",
|
||||||
|
"members": "Members",
|
||||||
|
"contact": "Contact"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Groups",
|
||||||
|
"p1": "We aim to raise awareness about the negative impact of current politico-economic systems on our well-being. By highlighting these issues, we empower people to question the status quo and imagine fairer and more sustainable alternatives.",
|
||||||
|
"p2": "But our mission goes beyond theory. We engage in mutual aid and collective action to address immediate challenges within capitalism. Through mutual aid, we support each other by sharing resources, knowledge, and skills, fostering solidarity and resilience. Whether it's community gardens, food cooperatives, or support networks, our goal is to make life under capitalism more bearable and create pockets of resistance and alternatives within the system.",
|
||||||
|
"subheading1": "Our Groups",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"location": "Location",
|
||||||
|
"members": "Members",
|
||||||
|
"contact": "Contact"
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"heading": "Join Us",
|
||||||
|
"condition1": "Are you against dictatorship and in favor of democracy?",
|
||||||
|
"condition2": "Are you against exploitation of one human being by another?",
|
||||||
|
"condition3": "Do you agree that we should work with each other and not against each other?",
|
||||||
|
"conditionsOutcome": "If the answer is <b>YES</b>, then you are already a libertarian socialist. <b>JOIN US!</b>",
|
||||||
|
"subheading1": "What You Will Get",
|
||||||
|
"valueProposition1": "A community that is always ready to help with all your troubles;",
|
||||||
|
"valueProposition2": "Access to the means of production of our cooperatives;",
|
||||||
|
"valueProposition3": "Products and services at the cost of production or even for free;",
|
||||||
|
"valueProposition4": "Monetary and non-monetary help with opening your own cooperative;",
|
||||||
|
"valueProposition5": "and much more!",
|
||||||
|
"subheading2": "Find Us",
|
||||||
|
"findOur": "Find our",
|
||||||
|
"group": "group",
|
||||||
|
"community": "community",
|
||||||
|
"or": "or",
|
||||||
|
"cooperative": "cooperative",
|
||||||
|
"nearYou": "near you and join to help make a world we both envision a reality.",
|
||||||
|
"noneNear": "None of them near you? Not a problem! Join our",
|
||||||
|
"WhatsAppGroup": "WhatsApp group",
|
||||||
|
"DiscordServer": "Discord server",
|
||||||
|
"helpStart": " and we will help you start your own."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"top": "We are people united around a singular cause: bringing down authoritarian exploitative systems represented by various forms of capitalism and replacing them with libertarian socialist systems, with the goal of creating a more equitable and democratic world.",
|
||||||
|
"groupsTitle": "GROUPS",
|
||||||
|
"groupsText": "We organize groups for the purposes of education, advocacy, and mutual aid. Our objective is to demonstrate to people how the current politico-economic systems detrimentally impact our well-being, present them with alternative approaches, and engage in mutual aid to alleviate the challenges of living under capitalism.",
|
||||||
|
"communitiesTitle": "COMMUNITIES",
|
||||||
|
"communitiesText": "We establish communities based on libertarian socialist principles, where communities have ownership of their land, houses, and the means of production as well as make decisions using direct democracy. We are gradually expanding our socialist world, one community at a time.",
|
||||||
|
"cooperativesTitle": "COOPERATIVES",
|
||||||
|
"cooperativesText": "We form worker cooperatives to finance the operations of our groups and communities. Recognizing that economic power influences political power, we consider the establishment of cooperatives to be one of the initial steps towards achieving socialism."
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"orgName": "Libertarian socialists",
|
||||||
|
"manifesto": "Manifesto",
|
||||||
|
"joinUs": "Join Us",
|
||||||
|
"groups": "Groups",
|
||||||
|
"communities": "Communities",
|
||||||
|
"cooperatives": "Cooperatives",
|
||||||
|
"partners": "Partners"
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"heading": "Partners",
|
||||||
|
"p1": "We partner with organizations and initiatives that align with our mission. Together, we are a united force driven by a shared worldview where there is no place for authoritarian exploitative systems, but where systems promoting equity and democracy thrive.",
|
||||||
|
"subheading1": "Our Partners",
|
||||||
|
"subheading2": "Online",
|
||||||
|
"name": "Name",
|
||||||
|
"location": "Location",
|
||||||
|
"type": "Type",
|
||||||
|
"link": "Link",
|
||||||
|
"description": "Description"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Коммуны",
|
||||||
|
"p1": "Мы создаем либертарные социалистические коммуны, покупая землю, жилье и средства производства, которые затем принадлежат членам этих коммун. В коммунах нет частной собственности и, следовательно, эксплуатации и страданий, которые с ней связаны. Решения принимаются с использованием прямой демократии с упором на консенсус, гарантируя, что каждый член сообщества имеет право принимать решения, влияющие на его жизнь. Сообщества пытаются создавать свои собственные кооперативы, чтобы финансировать свое развитие, становясь финансово независимыми и устойчивыми, что позволяет им выживать и расти. В сообществах по возможности используется экономика дарения. Каждая коммуна — это маленький маяк социализма в темном капиталистическом мире, показывающий нам, насколько хорошей может быть жизнь, если мы только достигнем своей цели.",
|
||||||
|
"subheading1": "Наши коммуны",
|
||||||
|
"subheading2": "Европа",
|
||||||
|
"location": "Локация",
|
||||||
|
"status": "Статус",
|
||||||
|
"members": "Участники",
|
||||||
|
"contact": "Контакт"
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"heading": "Cooperatives",
|
||||||
|
"p1": "We establish worker cooperatives that embody a transformative business model where employees own and control the enterprise. Each worker has a voice in decision-making, and profits are distributed based on individual contributions. This participatory structure fosters ownership, motivation, and job satisfaction, creating a more fulfilling work experience as well as challenging the wealth concentration in traditional capitalist businesses.",
|
||||||
|
"p2": "By focusing on employees' needs, our cooperatives create supportive and sustainable work environments that foster social cohesion and job security. We also prioritize the interests of local communities, taking a long-term perspective. With workers making decisions, we avoid harmful short-term profit-driven strategies and instead reinvest our profits, contributing to community development and resilience.",
|
||||||
|
"subheading1": "Our Cooperatives",
|
||||||
|
"subheading2": "Europe",
|
||||||
|
"name": "Name",
|
||||||
|
"location": "Location",
|
||||||
|
"market": "Market",
|
||||||
|
"status": "Status",
|
||||||
|
"workers": "workers",
|
||||||
|
"contact": "Contact",
|
||||||
|
"description": "Description",
|
||||||
|
"website": "Website"
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"heading": "Кооперативы",
|
||||||
|
"p1": "Мы создаем рабочие кооперативы, которые представляют собой бизнес-модель, в которой работники владеют предприятием и контролируют его. Каждый работник имеет право голоса при принятии решений, а прибыль распределяется на основе индивидуальных вкладов. Эта структура способствует мотивации и удовлетворенности работой, создавая более приятные условия труда, а также бросает вызов концентрации богатства в традиционных капиталистических предприятиях.",
|
||||||
|
"p2": "Сосредоточив внимание на потребностях сотрудников, наши кооперативы создают благоприятную и устойчивую рабочую среду, которая способствует социальной сплоченности и гарантиям занятости. Мы также уделяем первостепенное внимание интересам местных сообществ, ориентируясь на долгосрочную перспективу. Когда решения принимают работники, мы избегаем вредных краткосрочных стратегий, ориентированных на получение прибыли, и вместо этого реинвестируем нашу прибыль, способствуя развитию и устойчивости сообщества.",
|
||||||
|
"subheading1": "Наши кооперативы",
|
||||||
|
"subheading2": "Европа",
|
||||||
|
"name": "Название",
|
||||||
|
"location": "Локация",
|
||||||
|
"market": "Рынок",
|
||||||
|
"status": "Статус",
|
||||||
|
"workers": "Работники",
|
||||||
|
"contact": "Контакт",
|
||||||
|
"description": "Описание",
|
||||||
|
"website": "Вебсайт"
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"contactUs": "Напиши нам",
|
||||||
|
"inviteLink": "ссылка",
|
||||||
|
"libertarianSocialists": "Либертарные Социалисты"
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"heading": "Группы",
|
||||||
|
"p1": "Мы стремимся повышать осведомленность о негативном влиянии нынешних политико-экономических систем на наше благополучие. Выдвигая на первый план эти проблемы, мы даем людям возможность поставить под сомнение статус-кво и представить себе более справедливые и устойчивые альтернативы.",
|
||||||
|
"p2": "Однако, наша миссия выходит за рамки теории. Мы участвуем во взаимопомощи и коллективных действиях для решения насущных проблем. Посредством взаимопомощи мы поддерживаем друг друга, делясь ресурсами, знаниями и навыками, укрепляя солидарность и устойчивость к негодам. Будь то общественные сады, продовольственные кооперативы или сети поддержки, наша цель — сделать жизнь при капитализме более терпимой и создать очаги сопротивления и альтернативы внутри системы.",
|
||||||
|
"subheading1": "Наши группы",
|
||||||
|
"subheading2": "Европа",
|
||||||
|
"location": "Локация",
|
||||||
|
"members": "Участники",
|
||||||
|
"contact": "Контакт"
|
||||||
|
}
|