From 707b523fed55be8fbfea4db04693dcc072d64774 Mon Sep 17 00:00:00 2001 From: Vadim Date: Mon, 3 Apr 2023 23:54:49 +0300 Subject: [PATCH] Update docs --- docs/index.css | 4 ++-- docs/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.css b/docs/index.css index d7d85a0..9f8e107 100644 --- a/docs/index.css +++ b/docs/index.css @@ -7,15 +7,15 @@ code[class*="language-"],pre[class*="language-"] {color:#ccc;background:none;fon :root{--sc-color-rgb-light-50p:rgba(93,93,93,0.5);--sc-color-rgb-light:#5d5d5d;--sc-color-hex-dark-50p:rgba(30,30,30,0.5);--sc-color-hex-dark:#1e1e1e}.sc-carousel__carousel-container.svelte-uwo0yk{display:flex;width:100%;flex-direction:column;align-items:center}.sc-carousel__content-container.svelte-uwo0yk{position:relative;display:flex;width:100%}.sc-carousel__pages-window.svelte-uwo0yk{flex:1;display:flex;overflow:hidden;box-sizing:border-box;position:relative}.sc-carousel__pages-container.svelte-uwo0yk{width:100%;display:flex;transition-property:transform}.sc-carousel__arrow-container.svelte-uwo0yk{padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.sc-carousel-progress__container.svelte-uwo0yk{width:100%;height:5px;background-color:var(--sc-color-rgb-light-50p);position:absolute;bottom:0}.sc-carousel-button{all:unset;cursor:pointer}.sc-carousel-button:focus{outline:5px auto} .albums-container.svelte-tqqkfc.svelte-tqqkfc{display:flex;justify-content:center;flex-wrap:wrap}.album-container.svelte-tqqkfc.svelte-tqqkfc{width:250px;padding:10px;background-color:#c6c6c6;border-radius:5px;margin:5px}.album-title.svelte-tqqkfc.svelte-tqqkfc{font-size:16px}.album-size.svelte-tqqkfc.svelte-tqqkfc{font-size:10px;color:#585858}.album-tag.svelte-tqqkfc.svelte-tqqkfc{background-color:#8f8f8f;border-radius:5px;padding:1px 5px;color:#ffffff;margin-top:3px;margin-bottom:3px;display:inline-block;font-size:10px}.album-tag.svelte-tqqkfc.svelte-tqqkfc:not(:last-child){margin-right:3px}.album-arrow.svelte-tqqkfc.svelte-tqqkfc{width:20px;background-color:#000000;opacity:0;position:absolute;top:0;bottom:0;z-index:1;transition:opacity 150ms ease;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}.album-arrow.svelte-tqqkfc>i.svelte-tqqkfc{border:solid #1e1e1e;border-width:0 5px 5px 0;padding:5px;position:relative}.album-container.svelte-tqqkfc:hover .album-arrow.svelte-tqqkfc{opacity:0.5}.album-arrow-prev.svelte-tqqkfc.svelte-tqqkfc{left:0}.album-arrow-prev.svelte-tqqkfc>i.svelte-tqqkfc{transform:rotate(135deg);right:-4px}.album-arrow-next.svelte-tqqkfc.svelte-tqqkfc{right:0}.album-arrow-next.svelte-tqqkfc>i.svelte-tqqkfc{transform:rotate(-45deg);left:-4px} .docs__main-layout__main-container.svelte-1g4wbsx.svelte-1g4wbsx{background-color:#eaeaea}.docs__main-layout__header-container.svelte-1g4wbsx.svelte-1g4wbsx{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px;padding:10px;box-sizing:border-box;background-color:#f0e68c}.docs__main-layout__logo-container.svelte-1g4wbsx.svelte-1g4wbsx{position:relative;max-width:min(90%,500px)}.docs__main-layout__version.svelte-1g4wbsx.svelte-1g4wbsx{position:absolute;top:20px;right:20px;background-color:#fff;padding:3px 7px;border-radius:5px;line-height:14px;font-size:14px}.docs__main-layout__logo.svelte-1g4wbsx.svelte-1g4wbsx{max-height:100%;max-width:100%;object-fit:contain}.docs__main-layout__links-container.svelte-1g4wbsx.svelte-1g4wbsx{display:flex;justify-content:center;padding:10px}.docs__main-layout__links-container.svelte-1g4wbsx>a.svelte-1g4wbsx{text-decoration:none;display:flex;align-items:center;background-color:#ffffff;padding:5px;border-radius:3px}.docs__main-layout__links-container.svelte-1g4wbsx>a.svelte-1g4wbsx:not(:last-child){margin-right:10px}.docs__main-layout__links-container.svelte-1g4wbsx>a.svelte-1g4wbsx:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.docs__main-layout__links-container.svelte-1g4wbsx>a.svelte-1g4wbsx:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.docs__main-layout__link-icon.svelte-1g4wbsx.svelte-1g4wbsx{width:25px}.docs__main-layout__link-text.svelte-1g4wbsx.svelte-1g4wbsx{color:#009800;font-size:18px;font-weight:500}.docs__main-layout__content-container.svelte-1g4wbsx.svelte-1g4wbsx{margin:0 auto}@media screen and (min-width:0px){.docs__main-layout__content-container.svelte-1g4wbsx.svelte-1g4wbsx{width:95%}}@media screen and (min-width:768px){.docs__main-layout__content-container.svelte-1g4wbsx.svelte-1g4wbsx{width:70%}}@media screen and (min-width:992px){.docs__main-layout__content-container.svelte-1g4wbsx.svelte-1g4wbsx{width:60%}}@media screen and (min-width:1200px){.docs__main-layout__content-container.svelte-1g4wbsx.svelte-1g4wbsx{width:50%}} -:root{--sc-arrow-size:2px}.sc-carousel-arrow__circle.svelte-9ztt4p{width:20px;height:20px;border-radius:50%;background-color:var(--sc-color-rgb-light-50p);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer;-webkit-tap-highlight-color:transparent}.sc-carousel-arrow__circle.svelte-9ztt4p:hover{opacity:0.9}.sc-carousel-arrow__arrow.svelte-9ztt4p{border:solid var(--sc-color-hex-dark);border-width:0 var(--sc-arrow-size) var(--sc-arrow-size) 0;padding:var(--sc-arrow-size);position:relative}.sc-carousel-arrow__arrow-next.svelte-9ztt4p{transform:rotate(-45deg);left:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__arrow-prev.svelte-9ztt4p{transform:rotate(135deg);right:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__circle_disabled.svelte-9ztt4p,.sc-carousel-arrow__circle_disabled.svelte-9ztt4p:hover{opacity:0.5} .sc-carousel-progress__indicator.svelte-nuyenl{height:100%;background-color:var(--sc-color-hex-dark-50p)} .sc-carousel-dots__container.svelte-1oj5bge{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:0 30px}.sc-carousel-dots__dot-container.svelte-1oj5bge{height:calc(var(--sc-dot-size) + 14px);width:calc(var(--sc-dot-size) + 10px);display:flex;align-items:center;justify-content:center} +:root{--sc-arrow-size:2px}.sc-carousel-arrow__circle.svelte-9ztt4p{width:20px;height:20px;border-radius:50%;background-color:var(--sc-color-rgb-light-50p);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer;-webkit-tap-highlight-color:transparent}.sc-carousel-arrow__circle.svelte-9ztt4p:hover{opacity:0.9}.sc-carousel-arrow__arrow.svelte-9ztt4p{border:solid var(--sc-color-hex-dark);border-width:0 var(--sc-arrow-size) var(--sc-arrow-size) 0;padding:var(--sc-arrow-size);position:relative}.sc-carousel-arrow__arrow-next.svelte-9ztt4p{transform:rotate(-45deg);left:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__arrow-prev.svelte-9ztt4p{transform:rotate(135deg);right:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__circle_disabled.svelte-9ztt4p,.sc-carousel-arrow__circle_disabled.svelte-9ztt4p:hover{opacity:0.5} .image-container.svelte-1cv82er{display:block;width:100%;height:150px}img.svelte-1cv82er{width:100%;height:100%;object-fit:cover;-webkit-user-drag:none} td.svelte-17sscyq{padding:2px 10px} tr.svelte-yxhgu7{border-bottom:2px solid #009800} th.svelte-1w3aa8v{padding:5px 10px} .table-wrapper.svelte-1dxl093{overflow-x:auto}table.svelte-1dxl093{border-collapse:collapse;width:100%} :root{--sc-dot-size:6px;--sc-active-dot-size:8px;--sc-dot-size-animation-time:250ms}.sc-carousel-dot__dot.svelte-yu7247{background-color:var(--sc-color-rgb-light);border-radius:50%;display:inline-block;opacity:0.5;transition:opacity 100ms ease,height var(--sc-dot-size-animation-time) ease,width var(--sc-dot-size-animation-time) ease;cursor:pointer;-webkit-tap-highlight-color:transparent;height:var(--sc-dot-size);width:var(--sc-dot-size)}.sc-carousel-dot__dot.svelte-yu7247:hover{opacity:0.9}.sc-carousel-dot__dot_active.svelte-yu7247{opacity:0.7;height:var(--sc-active-dot-size);width:var(--sc-active-dot-size)} -h1.docs__title{margin:16px 0}h1.docs__title .docs__anchor::before{top:15px} h2.docs__title{margin:14px 0}h2.docs__title .docs__anchor::before{top:8px} +h1.docs__title{margin:16px 0}h1.docs__title .docs__anchor::before{top:15px} .docs__title{display:inline-block}.docs__title:hover .docs__anchor::before{visibility:visible}.docs__anchor.svelte-1pk4365{position:relative;margin-left:16px;text-decoration:none;color:#000000}.docs__anchor.svelte-1pk4365::before{visibility:hidden;font-size:14px;content:"\1F517";position:absolute;left:-23px}.hidden-title.svelte-1pk4365{display:none} \ No newline at end of file diff --git a/docs/index.js b/docs/index.js index 187586a..3c0f20c 100644 --- a/docs/index.js +++ b/docs/index.js @@ -1,4 +1,4 @@ -var app=function(){"use strict";function t(){}function n(t,n){for(const e in n)t[e]=n[e];return t}function e(t){return t()}function a(){return Object.create(null)}function r(t){t.forEach(e)}function s(t){return"function"==typeof t}function o(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function c(t,n,e,a){if(t){const r=u(t,n,e,a);return t[0](r)}}function u(t,e,a,r){return t[1]&&r?n(a.ctx.slice(),t[1](r(e))):a.ctx}function i(t,n,e,a,r,s,o){const c=function(t,n,e,a){if(t[2]&&a){const r=t[2](a(e));if(void 0===n.dirty)return r;if("object"==typeof r){const t=[],e=Math.max(n.dirty.length,r.length);for(let a=0;at.removeEventListener(n,e,a)}function x(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function _(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const a in n)null==n[a]?t.removeAttribute(a):"style"===a?t.style.cssText=n[a]:"__value"===a?t.value=t[a]=n[a]:e[a]&&e[a].set?t[a]=n[a]:x(t,a,n[a])}function k(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function w(t,n,e,a){t.style.setProperty(n,e,a?"important":"")}function b(t,n,e){t.classList[e?"add":"remove"](n)}let C;function j(t){C=t}function P(){if(!C)throw new Error("Function called outside component initialization");return C}function T(t){P().$$.on_mount.push(t)}function S(){const t=P();return(n,e)=>{const a=t.$$.callbacks[n];if(a){const r=function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(n,e);a.slice().forEach((n=>{n.call(t,r)}))}}}function I(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach((t=>t(n)))}const O=[],A=[],E=[],M=[],L=Promise.resolve();let z=!1;function D(){z||(z=!0,L.then(q))}function N(){return D(),L}function R(t){E.push(t)}let F=!1;const W=new Set;function q(){if(!F){F=!0;do{for(let t=0;t{B.delete(t),a&&(e&&t.d(1),a())})),t.o(n)}}function K(t,n){t.d(1),n.delete(t.key)}function X(t,n){Z(t,1,1,(()=>{n.delete(t.key)}))}function J(t,n,e,a,r,s,o,c,u,i,l,p){let f=t.length,$=s.length,d=f;const g={};for(;d--;)g[t[d].key]=d;const h=[],m=new Map,v=new Map;for(d=$;d--;){const t=p(r,s,d),c=e(t);let u=o.get(c);u?a&&u.p(t,n):(u=i(c,t),u.c()),m.set(c,h[d]=u),c in g&&v.set(c,Math.abs(d-g[c]))}const y=new Set,x=new Set;function _(t){Y(t,1),t.m(c,l),o.set(t.key,t),l=t.first,$--}for(;f&&$;){const n=h[$-1],e=t[f-1],a=n.key,r=e.key;n===e?(l=n.first,f--,$--):m.has(r)?!o.has(a)||y.has(a)?_(n):x.has(r)?f--:v.get(a)>v.get(r)?(x.add(a),_(n)):(y.add(r),f--):(u(e,o),f--)}for(;f--;){const n=t[f];m.has(n.key)||u(n,o)}for(;$;)_(h[$-1]);return h}function Q(t,n){const e={},a={},r={$$scope:1};let s=t.length;for(;s--;){const o=t[s],c=n[s];if(c){for(const t in o)t in c||(a[t]=1);for(const t in c)r[t]||(e[t]=c[t],r[t]=1);t[s]=c}else for(const t in o)r[t]=1}for(const t in a)t in e||(e[t]=void 0);return e}function tt(t){t&&t.c()}function nt(t,n,a){const{fragment:o,on_mount:c,on_destroy:u,after_update:i}=t.$$;o&&o.m(n,a),R((()=>{const n=c.map(e).filter(s);u?u.push(...n):r(n),t.$$.on_mount=[]})),i.forEach(R)}function et(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function at(n,e,s,o,c,u,i=[-1]){const l=C;j(n);const p=e.props||{},f=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:a(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:a(),dirty:i,skip_bound:!1};let $=!1;if(f.ctx=s?s(n,p,((t,e,...a)=>{const r=a.length?a[0]:e;return f.ctx&&c(f.ctx[t],f.ctx[t]=r)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](r),$&&function(t,n){-1===t.$$.dirty[0]&&(O.push(t),D(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const t=e.indexOf(n);-1!==t&&e.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)}}var st="1.0.24";var ot=function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t};function ct(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function ut(t){for(var n=1;n{l=null})),G()):l?(l.p(t,e),8&e&&Y(l,1)):(l=it(t),l.c(),Y(l,1),l.m(u.parentNode,u))},i(t){i||(Y(l),i=!0)},o(t){Z(l),i=!1},d(t){t&&d(n),t&&d(s),t&&d(o),t&&d(c),l&&l.d(t),t&&d(u)}}}function pt(t){let n,e,a;var r=t[0];function s(t){return{props:{id:t[2],class:"docs__title",$$slots:{default:[lt]},$$scope:{ctx:t}}}}return r&&(e=new r(s(t))),{c(){n=g("div"),e&&tt(e.$$.fragment)},m(t,r){$(t,n,r),e&&nt(e,n,null),a=!0},p(t,[a]){const o={};if(4&a&&(o.id=t[2]),78&a&&(o.$$scope={dirty:a,ctx:t}),r!==(r=t[0])){if(e){V();const t=e;Z(t.$$.fragment,1,0,(()=>{et(t,1)})),G()}r?(e=new r(s(t)),tt(e.$$.fragment),Y(e.$$.fragment,1),nt(e,n,null)):e=null}else r&&e.$set(o)},i(t){a||(e&&Y(e.$$.fragment,t),a=!0)},o(t){e&&Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),e&&et(e)}}}function ft(t,n,e){let a,r,s,{$$slots:o={},$$scope:c}=n,{titleComponent:u}=n;return T((()=>{const t=(n=a.textContent,{title:(c=n.split("!"))[0],props:(o=c[1],((null==o?void 0:o.split(";").filter(Boolean))||[]).reduce((function(t,n){var e=n.split(":");return ut(ut({},t),{},ot({},e[0],e[1]))}),{}))});var n,o,c;e(3,s=t.title),e(2,r=t.props.anchorId)})),t.$$set=t=>{"titleComponent"in t&&e(0,u=t.titleComponent),"$$scope"in t&&e(6,c=t.$$scope)},[u,a,r,s,o,function(t){A[t?"unshift":"push"]((()=>{a=t,e(1,a)}))},c]}class $t extends rt{constructor(t){super(),at(this,t,ft,pt,o,{titleComponent:0})}}function dt(t){let e,a;const r=t[2].default,s=c(r,t,t[1],null);let o=[t[0]],u={};for(let t=0;t{a(0,e=n(n({},e),l(t))),"$$scope"in t&&a(1,s=t.$$scope)},[e=l(e),s,r]}class ht extends rt{constructor(t){super(),at(this,t,gt,dt,o,{})}}function mt(t){let n;const e=t[0].default,a=c(e,t,t[1],null);return{c(){a&&a.c()},m(t,e){a&&a.m(t,e),n=!0},p(t,n){a&&a.p&&2&n&&i(a,e,t,t[1],n,null,null)},i(t){n||(Y(a,t),n=!0)},o(t){Z(a,t),n=!1},d(t){a&&a.d(t)}}}function vt(t){let n,e;return n=new $t({props:{titleComponent:ht,$$slots:{default:[mt]},$$scope:{ctx:t}}}),{c(){tt(n.$$.fragment)},m(t,a){nt(n,t,a),e=!0},p(t,[e]){const a={};2&e&&(a.$$scope={dirty:e,ctx:t}),n.$set(a)},i(t){e||(Y(n.$$.fragment,t),e=!0)},o(t){Z(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}function yt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(1,r=t.$$scope)},[a,r]}class xt extends rt{constructor(t){super(),at(this,t,yt,vt,o,{})}}function _t(t){let e,a;const r=t[2].default,s=c(r,t,t[1],null);let o=[t[0]],u={};for(let t=0;t{a(0,e=n(n({},e),l(t))),"$$scope"in t&&a(1,s=t.$$scope)},[e=l(e),s,r]}class wt extends rt{constructor(t){super(),at(this,t,kt,_t,o,{})}}function bt(t){let n;const e=t[0].default,a=c(e,t,t[1],null);return{c(){a&&a.c()},m(t,e){a&&a.m(t,e),n=!0},p(t,n){a&&a.p&&2&n&&i(a,e,t,t[1],n,null,null)},i(t){n||(Y(a,t),n=!0)},o(t){Z(a,t),n=!1},d(t){a&&a.d(t)}}}function Ct(t){let n,e;return n=new $t({props:{titleComponent:wt,$$slots:{default:[bt]},$$scope:{ctx:t}}}),{c(){tt(n.$$.fragment)},m(t,a){nt(n,t,a),e=!0},p(t,[e]){const a={};2&e&&(a.$$scope={dirty:e,ctx:t}),n.$set(a)},i(t){e||(Y(n.$$.fragment,t),e=!0)},o(t){Z(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}function jt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(1,r=t.$$scope)},[a,r]}class Pt extends rt{constructor(t){super(),at(this,t,jt,Ct,o,{})}}function Tt(t){let n,e;const a=t[1].default,r=c(a,t,t[0],null);return{c(){n=g("td"),r&&r.c(),x(n,"class","svelte-17sscyq")},m(t,a){$(t,n,a),r&&r.m(n,null),e=!0},p(t,[n]){r&&r.p&&1&n&&i(r,a,t,t[0],n,null,null)},i(t){e||(Y(r,t),e=!0)},o(t){Z(r,t),e=!1},d(t){t&&d(n),r&&r.d(t)}}}function St(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class It extends rt{constructor(t){super(),at(this,t,St,Tt,o,{})}}function Ot(t){let n,e;const a=t[1].default,r=c(a,t,t[0],null);return{c(){n=g("tr"),r&&r.c(),x(n,"class","svelte-yxhgu7")},m(t,a){$(t,n,a),r&&r.m(n,null),e=!0},p(t,[n]){r&&r.p&&1&n&&i(r,a,t,t[0],n,null,null)},i(t){e||(Y(r,t),e=!0)},o(t){Z(r,t),e=!1},d(t){t&&d(n),r&&r.d(t)}}}function At(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class Et extends rt{constructor(t){super(),at(this,t,At,Ot,o,{})}}function Mt(t){let n,e;const a=t[1].default,r=c(a,t,t[0],null);return{c(){n=g("th"),r&&r.c(),x(n,"class","svelte-1w3aa8v")},m(t,a){$(t,n,a),r&&r.m(n,null),e=!0},p(t,[n]){r&&r.p&&1&n&&i(r,a,t,t[0],n,null,null)},i(t){e||(Y(r,t),e=!0)},o(t){Z(r,t),e=!1},d(t){t&&d(n),r&&r.d(t)}}}function Lt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class zt extends rt{constructor(t){super(),at(this,t,Lt,Mt,o,{})}}function Dt(t){let n,e,a;const r=t[1].default,s=c(r,t,t[0],null);return{c(){n=g("div"),e=g("table"),s&&s.c(),x(e,"class","svelte-1dxl093"),x(n,"class","table-wrapper svelte-1dxl093")},m(t,r){$(t,n,r),f(n,e),s&&s.m(e,null),a=!0},p(t,[n]){s&&s.p&&1&n&&i(s,r,t,t[0],n,null,null)},i(t){a||(Y(s,t),a=!0)},o(t){Z(s,t),a=!1},d(t){t&&d(n),s&&s.d(t)}}}function Nt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class Rt extends rt{constructor(t){super(),at(this,t,Nt,Dt,o,{})}}function Ft(n){let e,a,r;return{c(){e=g("button"),x(e,"class","sc-carousel-button sc-carousel-dot__dot svelte-yu7247"),b(e,"sc-carousel-dot__dot_active",n[0])},m(t,s){$(t,e,s),a||(r=y(e,"click",n[1]),a=!0)},p(t,[n]){1&n&&b(e,"sc-carousel-dot__dot_active",t[0])},i:t,o:t,d(t){t&&d(e),a=!1,r()}}}function Wt(t,n,e){let{active:a=!1}=n;return t.$$set=t=>{"active"in t&&e(0,a=t.active)},[a,function(n){I(t,n)}]}class qt extends rt{constructor(t){super(),at(this,t,Wt,Ft,o,{active:0})}}function Ht(t,n,e){const a=t.slice();return a[5]=n[e],a[7]=e,a}function Bt(t,n){let e,a,r,s;return a=new qt({props:{active:n[1]===n[7]}}),a.$on("click",(function(){return n[3](n[7])})),{key:t,first:null,c(){e=g("div"),tt(a.$$.fragment),r=m(),x(e,"class","sc-carousel-dots__dot-container svelte-1oj5bge"),this.first=e},m(t,n){$(t,e,n),nt(a,e,null),f(e,r),s=!0},p(t,e){n=t;const r={};3&e&&(r.active=n[1]===n[7]),a.$set(r)},i(t){s||(Y(a.$$.fragment,t),s=!0)},o(t){Z(a.$$.fragment,t),s=!1},d(t){t&&d(e),et(a)}}}function Ut(t){let n,e,a=[],r=new Map,s=Array(t[0]);const o=t=>t[7];for(let n=0;n{"pagesCount"in t&&e(0,r=t.pagesCount),"currentPageIndex"in t&&e(1,s=t.currentPageIndex)},[r,s,o,t=>o(t)]}class Gt extends rt{constructor(t){super(),at(this,t,Vt,Ut,o,{pagesCount:0,currentPageIndex:1})}}var Yt="prev",Zt="next";function Kt(n){let e,a,r,s;return{c(){e=g("button"),a=g("i"),x(a,"class","sc-carousel-arrow__arrow svelte-9ztt4p"),b(a,"sc-carousel-arrow__arrow-next",n[0]===Zt),b(a,"sc-carousel-arrow__arrow-prev",n[0]===Yt),x(e,"class","sc-carousel-button sc-carousel-arrow__circle svelte-9ztt4p"),b(e,"sc-carousel-arrow__circle_disabled",n[1])},m(t,o){$(t,e,o),f(e,a),r||(s=y(e,"click",n[2]),r=!0)},p(t,[n]){1&n&&b(a,"sc-carousel-arrow__arrow-next",t[0]===Zt),1&n&&b(a,"sc-carousel-arrow__arrow-prev",t[0]===Yt),2&n&&b(e,"sc-carousel-arrow__circle_disabled",t[1])},i:t,o:t,d(t){t&&d(e),r=!1,s()}}}function Xt(t,n,e){let{direction:a=Zt}=n,{disabled:r=!1}=n;return t.$$set=t=>{"direction"in t&&e(0,a=t.direction),"disabled"in t&&e(1,r=t.disabled)},[a,r,function(n){I(t,n)}]}class Jt extends rt{constructor(t){super(),at(this,t,Xt,Kt,o,{direction:0,disabled:1})}}function Qt(n){let e;return{c(){e=g("div"),x(e,"class","sc-carousel-progress__indicator svelte-nuyenl"),w(e,"width",n[0]+"%")},m(t,n){$(t,e,n)},p(t,[n]){1&n&&w(e,"width",t[0]+"%")},i:t,o:t,d(t){t&&d(e)}}}function tn(t,n,e){let a,{value:r=0}=n;return t.$$set=t=>{"value"in t&&e(1,r=t.value)},t.$$.update=()=>{2&t.$$.dirty&&e(0,a=Math.min(Math.max(100*r,0),100))},[a,r]}class nn extends rt{constructor(t){super(),at(this,t,tn,Qt,o,{value:1})}}function en(t,n){t.removeEventListener("mouseup",n),t.removeEventListener("touchend",n)}function an(t,n){t.removeEventListener("mousemove",n),t.removeEventListener("touchmove",n)}function rn(t){return function(n,e){t.dispatchEvent(new CustomEvent(n,{detail:e}))}}function sn(t){if("TouchEvent"in window&&t instanceof TouchEvent){var n=t.touches[0];return{x:n?n.clientX:0,y:n?n.clientY:0}}return{x:t.clientX,y:t.clientY}}function on(t,n){var e,a,r,s,o,c=n.thresholdProvider,u=rn(t),i=0,l=!1;function p(t){r=Date.now(),i=0,l=!0;var n,s,o=sn(t);e=o.x,a=o.y,u("swipeStart",{x:e,y:a}),n=window,s=f,n.addEventListener("mousemove",s),n.addEventListener("touchmove",s),function(t,n){t.addEventListener("mouseup",n),t.addEventListener("touchend",n)}(window,$)}function f(t){if(l){var n=sn(t),r=n.x-e,s=n.y-a;e=n.x,a=n.y,u("swipeMove",{x:e,y:a,dx:r,dy:s}),0!==r&&Math.sign(r)!==Math.sign(i)&&(i=0),i+=r,Math.abs(i)>c()&&(u("swipeThresholdReached",{direction:i>0?Yt:Zt}),en(window,$),an(window,f))}}function $(t){if(en(window,$),an(window,f),l=!1,Date.now()-r>=111&&Math.abs(i)>=20){var n=sn(t);u("swipeEnd",{x:n.x,y:n.y})}else u("swipeFailed")}return o=p,(s=t).addEventListener("mousedown",o),s.addEventListener("touchstart",o,{passive:!0}),{destroy:function(){!function(t,n){t.removeEventListener("mousedown",n),t.removeEventListener("touchstart",n)}(t,p)}}}function cn(t,n){t.removeEventListener("mouseleave",n)}function un(t){var n,e=rn(t);function a(){var n;n=r,t.addEventListener("mouseleave",n),e("hovered",{value:!0})}function r(){e("hovered",{value:!1}),cn(t,r)}return n=a,t.addEventListener("mouseenter",n),{destroy:function(){!function(t,n){t.removeEventListener("mouseenter",n)}(t,a),cn(t,r)}}}function ln(t,n,e){return Math.max(t,Math.min(n,e))}function pn(t,n){t.removeEventListener("touchend",n)}function fn(t){var n,e=rn(t),a=0,r={x:0,y:0};function s(t){var n,e,s,o,c=t.tapEndedAt,u=t.tapEndedPos,i=c-a,l=(n=r,s=(e=u).x-n.x,o=e.y-n.y,Math.sqrt(s*s+o*o));return i<=110&&l<=9}function o(n){a=Date.now();var e,s=n.touches[0];r={x:s.clientX,y:s.clientY},e=c,t.addEventListener("touchend",e)}function c(n){pn(t,c);var a=n.changedTouches[0];s({tapEndedAt:Date.now(),tapEndedPos:{x:a.clientX,y:a.clientY}})&&e("tapped")}return n=o,t.addEventListener("touchstart",n,{passive:!0}),{destroy:function(){!function(t,n){t.removeEventListener("touchstart",n)}(t,o),pn(t,c)}}}function $n(t){var n=t.currentParticleIndex,e=t.particlesCount,a=t.clonesCountHead,r=t.clonesCountTotal,s=t.infinite,o=t.particlesToScroll;return s?function(t){var n=t.currentParticleIndex,e=t.particlesCount,a=t.clonesCountHead,r=t.clonesCountTotal,s=t.particlesToScroll;return n===e-a?0:0===n?dn({particlesCountWithoutClones:e-r,particlesToScroll:s})-1:Math.floor((n-a)/s)}({currentParticleIndex:n,particlesCount:e,clonesCountHead:a,clonesCountTotal:r,particlesToScroll:o}):function(t){var n=t.currentParticleIndex,e=t.particlesToScroll;return Math.ceil(n/e)}({currentParticleIndex:n,particlesToScroll:o})}function dn(t){var n=t.particlesCountWithoutClones,e=t.particlesToScroll;return Math.ceil(n/e)}function gn(t){var n=t.infinite,e=t.particlesCountWithoutClones,a=t.particlesToScroll,r=t.particlesToShow;return n?dn({particlesCountWithoutClones:e,particlesToScroll:a}):function(t){var n=t.particlesCountWithoutClones,e=t.particlesToScroll,a=mn({particlesCountWithoutClones:n,particlesToScroll:e,particlesToShow:t.particlesToShow});return Math.ceil(n/e)-a}({particlesCountWithoutClones:e,particlesToScroll:a,particlesToShow:r})}function hn(t){var n=t.infinite,e=t.pageIndex,a=t.clonesCountHead,r=t.clonesCountTail,s=t.particlesToScroll,o=t.particlesCount,c=t.particlesToShow;return n?function(t){var n=t.pageIndex,e=t.clonesCountHead,a=t.clonesCountTail,r=t.particlesToScroll,s=t.particlesCount;return ln(0,Math.min(e+n*r,s-a),s-1)}({pageIndex:e,clonesCountHead:a,clonesCountTail:r,particlesToScroll:s,particlesCount:o}):function(t){var n=t.pageIndex,e=t.particlesToScroll,a=t.particlesCount,r=t.particlesToShow;return ln(0,Math.min(n*e,a-r),a-1)}({pageIndex:e,particlesToScroll:s,particlesCount:o,particlesToShow:c})}function mn(t){for(var n=t.particlesToScroll,e=t.particlesToShow,a=t.particlesCountWithoutClones,r=n-e,s=e;;){var o=a-s-r;if(ot.length)&&(n=t.length);for(var e=0,a=new Array(n);e=0;--s){var o=this.tryEntries[s],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),i=a.call(o,"finallyLoc");if(u&&i){if(this.prev=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),g}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var a=e.completion;if("throw"===a.type){var r=a.arg;P(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:S(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=n),g}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}})),En="__lodash_hash_undefined__",Mn="[object Function]",Ln="[object GeneratorFunction]",zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,Nn=/^\./,Rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/\\(\\)?/g,Wn=/^\[object .+?Constructor\]$/,qn="object"==typeof In&&In&&In.Object===Object&&In,Hn="object"==typeof self&&self&&self.Object===Object&&self,Bn=qn||Hn||Function("return this")();var Un,Vn=Array.prototype,Gn=Function.prototype,Yn=Object.prototype,Zn=Bn["__core-js_shared__"],Kn=(Un=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||""))?"Symbol(src)_1."+Un:"",Xn=Gn.toString,Jn=Yn.hasOwnProperty,Qn=Yn.toString,te=RegExp("^"+Xn.call(Jn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=Bn.Symbol,ee=Vn.splice,ae=de(Bn,"Map"),re=de(Object,"create"),se=ne?ne.prototype:void 0,oe=se?se.toString:void 0;function ce(t){var n=-1,e=t?t.length:0;for(this.clear();++n-1},ue.prototype.set=function(t,n){var e=this.__data__,a=le(e,t);return a<0?e.push([t,n]):e[a][1]=n,this},ie.prototype.clear=function(){this.__data__={hash:new ce,map:new(ae||ue),string:new ce}},ie.prototype.delete=function(t){return $e(this,t).delete(t)},ie.prototype.get=function(t){return $e(this,t).get(t)},ie.prototype.has=function(t){return $e(this,t).has(t)},ie.prototype.set=function(t,n){return $e(this,t).set(t,n),this};var ge=me((function(t){var n;t=null==(n=t)?"":function(t){if("string"==typeof t)return t;if(xe(t))return oe?oe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(n);var e=[];return Nn.test(t)&&e.push(""),t.replace(Rn,(function(t,n,a,r){e.push(a?r.replace(Fn,"$1"):n||t)})),e}));function he(t){if("string"==typeof t||xe(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function me(t,n){if("function"!=typeof t||n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var a=arguments,r=n?n.apply(this,a):a[0],s=e.cache;if(s.has(r))return s.get(r);var o=t.apply(this,a);return e.cache=s.set(r,o),o};return e.cache=new(me.Cache||ie),e}me.Cache=ie;var ve=Array.isArray;function ye(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function xe(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==Qn.call(t)}var _e=function(t,n,e){var a=null==t?void 0:pe(t,n);return void 0===a?e:a},ke=On((function(t,n){var e="__lodash_hash_undefined__",a=9007199254740991,r="[object Arguments]",s="[object Boolean]",o="[object Date]",c="[object Function]",u="[object GeneratorFunction]",i="[object Map]",l="[object Number]",p="[object Object]",f="[object Promise]",$="[object RegExp]",d="[object Set]",g="[object String]",h="[object Symbol]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",_="[object Float64Array]",k="[object Int8Array]",w="[object Int16Array]",b="[object Int32Array]",C="[object Uint8Array]",j="[object Uint8ClampedArray]",P="[object Uint16Array]",T="[object Uint32Array]",S=/\w*$/,I=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,A={};A[r]=A["[object Array]"]=A[v]=A[y]=A[s]=A[o]=A[x]=A[_]=A[k]=A[w]=A[b]=A[i]=A[l]=A[p]=A[$]=A[d]=A[g]=A[h]=A[C]=A[j]=A[P]=A[T]=!0,A["[object Error]"]=A[c]=A[m]=!1;var E="object"==typeof In&&In&&In.Object===Object&&In,M="object"==typeof self&&self&&self.Object===Object&&self,L=E||M||Function("return this")(),z=n&&!n.nodeType&&n,D=z&&t&&!t.nodeType&&t,N=D&&D.exports===z;function R(t,n){return t.set(n[0],n[1]),t}function F(t,n){return t.add(n),t}function W(t,n,e,a){var r=-1,s=t?t.length:0;for(a&&s&&(e=t[++r]);++r-1},Ct.prototype.set=function(t,n){var e=this.__data__,a=It(e,t);return a<0?e.push([t,n]):e[a][1]=n,this},jt.prototype.clear=function(){this.__data__={hash:new bt,map:new(ft||Ct),string:new bt}},jt.prototype.delete=function(t){return Lt(this,t).delete(t)},jt.prototype.get=function(t){return Lt(this,t).get(t)},jt.prototype.has=function(t){return Lt(this,t).has(t)},jt.prototype.set=function(t,n){return Lt(this,t).set(t,n),this},Pt.prototype.clear=function(){this.__data__=new Ct},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Ct){var a=e.__data__;if(!ft||a.length<199)return a.push([t,n]),this;e=this.__data__=new jt(a)}return e.set(t,n),this};var Dt=ut?B(ut,Object):function(){return[]},Nt=function(t){return Q.call(t)};function Rt(t,n){return!!(n=null==n?a:n)&&("number"==typeof t||O.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=a}(t.length)&&!Vt(t)}var Ut=it||function(){return!1};function Vt(t){var n=Gt(t)?Q.call(t):"";return n==c||n==u}function Gt(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function Yt(t){return Bt(t)?Tt(t):function(t){if(!Ft(t))return lt(t);var n=[];for(var e in Object(t))J.call(t,e)&&"constructor"!=e&&n.push(e);return n}(t)}t.exports=function(t){return Ot(t,!0,!0)}})),we=On((function(t,n){var e="__lodash_hash_undefined__",a=9007199254740991,r="[object Arguments]",s="[object Array]",o="[object Boolean]",c="[object Date]",u="[object Error]",i="[object Function]",l="[object Map]",p="[object Number]",f="[object Object]",$="[object Promise]",d="[object RegExp]",g="[object Set]",h="[object String]",m="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",_=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[r]=w[s]=w[y]=w[o]=w[x]=w[c]=w[u]=w[i]=w[l]=w[p]=w[f]=w[d]=w[g]=w[h]=w[v]=!1;var b="object"==typeof In&&In&&In.Object===Object&&In,C="object"==typeof self&&self&&self.Object===Object&&self,j=b||C||Function("return this")(),P=n&&!n.nodeType&&n,T=P&&t&&!t.nodeType&&t,S=T&&T.exports===P,I=S&&b.process,O=function(){try{return I&&I.binding&&I.binding("util")}catch(t){}}(),A=O&&O.isTypedArray;function E(t,n){for(var e=-1,a=null==t?0:t.length;++ec))return!1;var i=s.get(t);if(i&&s.get(n))return i==n;var l=-1,p=!0,f=2&e?new vt:void 0;for(s.set(t,n),s.set(n,t);++l-1},ht.prototype.set=function(t,n){var e=this.__data__,a=_t(e,t);return a<0?(++this.size,e.push([t,n])):e[a][1]=n,this},mt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(at||ht),string:new gt}},mt.prototype.delete=function(t){var n=St(this,t).delete(t);return this.size-=n?1:0,n},mt.prototype.get=function(t){return St(this,t).get(t)},mt.prototype.has=function(t){return St(this,t).has(t)},mt.prototype.set=function(t,n){var e=St(this,t),a=e.size;return e.set(t,n),this.size+=e.size==a?0:1,this},vt.prototype.add=vt.prototype.push=function(t){return this.__data__.set(t,e),this},vt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.clear=function(){this.__data__=new ht,this.size=0},yt.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},yt.prototype.get=function(t){return this.__data__.get(t)},yt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ht){var a=e.__data__;if(!at||a.length<199)return a.push([t,n]),this.size=++e.size,this;e=this.__data__=new mt(a)}return e.set(t,n),this.size=e.size,this};var Ot=Q?function(t){return null==t?[]:(t=Object(t),function(t,n){for(var e=-1,a=null==t?0:t.length,r=0,s=[];++e-1&&t%1==0&&t-1&&t%1==0&&t<=a}function Wt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function qt(t){return null!=t&&"object"==typeof t}var Ht=A?function(t){return function(n){return t(n)}}(A):function(t){return qt(t)&&Ft(t.length)&&!!w[kt(t)]};function Bt(t){return null!=(n=t)&&Ft(n.length)&&!Rt(n)?xt(t):jt(t);var n}t.exports=function(t,n){return bt(t,n)}}));const be=()=>{const t={};return{subscribers:t,subscribe(n,e){n&&((n,e)=>{const{watcherName:a,fn:r}=n,{prop:s,value:o}=e;t[a]||(t[a]={deps:{},fn:r}),t[a].deps[s]=o})(n,e)},notify(n,e){Object.entries(t).forEach((([a,{deps:r,fn:s}])=>{const o=(t=>Object.keys(t||{}))(r);if(o.includes(e)){const e=((t,n)=>{const e={};return t.forEach((t=>{e[t]=n[t]})),e})(o,n);we(r,e)||(t[a].deps=e,s())}}))}}};function Ce(t,n){const e=_e(t,"data",{}),a=_e(t,"watch",{}),r=_e(t,"methods",{}),s=_e(n,"onChange",(()=>{})),{subscribe:o,notify:c,subscribers:u}=be(),{targetWatcher:i,getTarget:l}=(()=>{let t=null;return{targetWatcher(n,e){t={watcherName:n,fn:e},t.fn(),t=null},getTarget:()=>t}})();let p;const f={},$=()=>({data:p,methods:f});let d=!1;Object.entries(r).forEach((([t,n])=>{var e;f[t]=(e=(...t)=>n($(),...t),(...t)=>{d=!0;const n=e(...t);return d=!1,n}),Object.defineProperty(f[t],"name",{value:t})})),p=new Proxy(ke(e),{get(t,n){return l()&&!d&&o(l(),{prop:n,value:t[n]}),Reflect.get(...arguments)},set(t,n,e){return t[n]===e||(Reflect.set(...arguments),l()||(s&&s(n,e),c(p,n))),!0}}),Object.entries(a).forEach((([t,n])=>{i(t,(()=>{n($())}))}));const g=[p,f];return g._internal={_getSubscribers:()=>u},g}var je=function(t){if(Array.isArray(t))return bn(t)};var Pe=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)};var Te=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Se=function(t){return je(t)||Pe(t)||Cn(t)||Te()};function Ie(t){var n=t.infinite,e=t.pageIndex,a=t.pagesCount,r=t.particlesCount,s=t.particlesToShow,o=t.particlesToScroll,c=ln(0,e,a-1),u=c-1,i=c+1;u=n?u<0?a-1:u:Math.max(0,u),i=n?i>a-1?0:i:Math.min(a-1,i);var l=Se(new Set([u,c,i,0,a-1])).sort((function(t,n){return t-n})),p=l.flatMap((function(t){return function(t){for(var n=t.pageIndex,e=t.particlesToShow,a=t.particlesToScroll,r=t.particlesCount,s=n*e-n*(0===n?0:e-a),o=s+Math.max(e,a)-1,c=[],u=s;u<=Math.min(r-1,o);u++)c.push(u);return c}({pageIndex:t,particlesToShow:s,particlesToScroll:o,particlesCount:r})}));return{pageIndexes:l,particleIndexes:Se(new Set(p)).sort((function(t,n){return t-n}))}}var Oe=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")};function Ae(t,n){for(var e=0;e1)){a.next=10;break}return n.reset(),a.next=9,t();case 9:e();case 10:case"end":return a.stop()}}),a)}))))(),setInterval(a,r))}))}},{key:"pause",value:function(){this._paused=!0}},{key:"resume",value:function(){this._paused=!1}},{key:"reset",value:function(){clearInterval(this._interval),this._onProgressValueChange(1)}}]),t}();function Le(t){var n=new Me({onProgressValueChange:function(n){t("progressValue",1-n)}}),e=Ce({data:{particlesCountWithoutClones:0,particlesToShow:1,particlesToShowInit:1,particlesToScroll:1,particlesToScrollInit:1,particlesCount:1,currentParticleIndex:1,infinite:!1,autoplayDuration:1e3,clonesCountHead:0,clonesCountTail:0,clonesCountTotal:0,partialPageSize:1,currentPageIndex:1,pagesCount:1,pauseOnFocus:!1,focused:!1,autoplay:!1,autoplayDirection:"next",disabled:!1,durationMsInit:1e3,durationMs:1e3,offset:0,particleWidth:0,loaded:[]},watch:{setLoaded:function(t){var n=t.data;n.loaded=Ie({infinite:n.infinite,pageIndex:n.currentPageIndex,pagesCount:n.pagesCount,particlesCount:n.particlesCountWithoutClones,particlesToShow:n.particlesToShow,particlesToScroll:n.particlesToScroll}).particleIndexes},setCurrentPageIndex:function(t){var n=t.data;n.currentPageIndex=$n({currentParticleIndex:n.currentParticleIndex,particlesCount:n.particlesCount,clonesCountHead:n.clonesCountHead,clonesCountTotal:n.clonesCountTotal,infinite:n.infinite,particlesToScroll:n.particlesToScroll})},setPartialPageSize:function(t){var n=t.data;n.partialPageSize=mn({particlesToScroll:n.particlesToScroll,particlesToShow:n.particlesToShow,particlesCountWithoutClones:n.particlesCountWithoutClones})},setClonesCount:function(t){var n,e,a,r,s,o=t.data,c=(n={infinite:o.infinite,particlesToShow:o.particlesToShow,partialPageSize:o.partialPageSize},e=n.infinite,a=n.particlesToShow,r=n.partialPageSize,yn(yn({},s=e?{head:Math.ceil(r||a),tail:Math.ceil(a)}:{head:0,tail:0}),{},{total:s.head+s.tail})),u=c.head,i=c.tail;o.clonesCountHead=u,o.clonesCountTail=i,o.clonesCountTotal=u+i},setProgressManagerAutoplayDuration:function(t){var e=t.data;n.setAutoplayDuration(e.autoplayDuration)},toggleProgressManager:function(t){var e=t.data,a=e.pauseOnFocus,r=e.focused;a&&(r?n.pause():n.resume())},initDuration:function(t){var n=t.data;n.durationMs=n.durationMsInit},applyAutoplay:function(t){var n=t.data,e=t.methods._applyAutoplayIfNeeded;n.autoplay&&e(n.autoplay)},setPagesCount:function(t){var n=t.data;n.pagesCount=gn({infinite:n.infinite,particlesCountWithoutClones:n.particlesCountWithoutClones,particlesToScroll:n.particlesToScroll,particlesToShow:n.particlesToShow})},setParticlesToShow:function(t){var n=t.data;n.particlesToShow=ln(1,n.particlesToShowInit,n.particlesCountWithoutClones)},setParticlesToScroll:function(t){var n=t.data;n.particlesToScroll=ln(1,n.particlesToScrollInit,n.particlesCountWithoutClones)}},methods:{_prev:function(t){var n=t.data;n.currentParticleIndex=hn({infinite:n.infinite,pageIndex:n.currentPageIndex-1,clonesCountHead:n.clonesCountHead,clonesCountTail:n.clonesCountTail,particlesToScroll:n.particlesToScroll,particlesCount:n.particlesCount,particlesToShow:n.particlesToShow})},_next:function(t){var n=t.data;n.currentParticleIndex=hn({infinite:n.infinite,pageIndex:n.currentPageIndex+1,clonesCountHead:n.clonesCountHead,clonesCountTail:n.clonesCountTail,particlesToScroll:n.particlesToScroll,particlesCount:n.particlesCount,particlesToShow:n.particlesToShow})},_moveToParticle:function(t,n){var e=t.data;e.currentParticleIndex=ln(0,n,e.particlesCount-1)},toggleFocused:function(t){var n=t.data;n.focused=!n.focused},_applyAutoplayIfNeeded:function(t){return Sn(An.mark((function e(){var a,r,s;return An.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.data,r=t.methods,a.infinite||!(a.autoplayDirection===Zt&&a.currentParticleIndex===a.particlesCount-1||a.autoplayDirection===Yt&&0===a.currentParticleIndex)){e.next=4;break}return n.reset(),e.abrupt("return");case 4:if(!a.autoplay){e.next=8;break}return s=function(){var t;return _n((ot(t={},Zt,Sn(An.mark((function t(){return An.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.showNextPage());case 1:case"end":return t.stop()}}),t)})))),ot(t,Yt,Sn(An.mark((function t(){return An.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.showPrevPage());case 1:case"end":return t.stop()}}),t)})))),t))(a.autoplayDirection)},e.next=8,n.start(s);case 8:case"end":return e.stop()}}),e)})))()},_jumpIfNeeded:function(t){return Sn(An.mark((function n(){var e,a,r;return An.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e=t.data,a=t.methods,r=!1,!e.infinite){n.next=13;break}if(0!==e.currentParticleIndex){n.next=9;break}return n.next=6,a.showParticle(e.particlesCount-e.clonesCountTotal,{animated:!1});case 6:r=!0,n.next=13;break;case 9:if(e.currentParticleIndex!==e.particlesCount-e.clonesCountTail){n.next=13;break}return n.next=12,a.showParticle(e.clonesCountHead,{animated:!1});case 12:r=!0;case 13:return n.abrupt("return",r);case 14:case"end":return n.stop()}}),n)})))()},changePage:function(t,e,a){return Sn(An.mark((function r(){var s,o;return An.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=t.data,o=t.methods,n.reset(),!s.disabled){r.next=4;break}return r.abrupt("return");case 4:return s.disabled=!0,e(),r.next=8,o.offsetPage({animated:xn(a,"animated",!0)});case 8:return s.disabled=!1,r.next=11,o._jumpIfNeeded();case 11:!r.sent&&o._applyAutoplayIfNeeded();case 13:case"end":return r.stop()}}),r)})))()},showNextPage:function(t,n){return Sn(An.mark((function e(){var a,r;return An.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.data,r=t.methods,!a.disabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,r.changePage(r._next,n);case 5:case"end":return e.stop()}}),e)})))()},showPrevPage:function(t,n){return Sn(An.mark((function e(){var a,r;return An.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.data,r=t.methods,!a.disabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,r.changePage(r._prev,n);case 5:case"end":return e.stop()}}),e)})))()},showParticle:function(t,n,e){return Sn(An.mark((function a(){var r;return An.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=t.methods,a.next=3,r.changePage((function(){return r._moveToParticle(n)}),e);case 3:case"end":return a.stop()}}),a)})))()},_getParticleIndexByPageIndex:function(t,n){var e=t.data;return hn({infinite:e.infinite,pageIndex:n,clonesCountHead:e.clonesCountHead,clonesCountTail:e.clonesCountTail,particlesToScroll:e.particlesToScroll,particlesCount:e.particlesCount,particlesToShow:e.particlesToShow})},showPage:function(t,n,e){return Sn(An.mark((function a(){var r,s;return An.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=t.methods,s=r._getParticleIndexByPageIndex(n),a.next=4,r.showParticle(s,e);case 4:case"end":return a.stop()}}),a)})))()},offsetPage:function(t,n){var e=t.data,a=xn(n,"animated",!0);return new Promise((function(t){e.durationMs=a?e.durationMsInit:0,e.offset=-e.currentParticleIndex*e.particleWidth,setTimeout((function(){t()}),e.durationMs)}))}}},{onChange:t}),a=Pn(e,2),r=a[0],s=a[1];return[{data:r,progressManager:n},s,e._internal]}const ze=t=>({currentPageIndex:32&t[0],pagesCount:1024&t[0],loaded:64&t[0]}),De=t=>({currentPageIndex:t[5],pagesCount:t[10],showPage:t[15],loaded:t[6]}),Ne=t=>({loaded:64&t[0],currentPageIndex:32&t[0]}),Re=t=>({showNextPage:t[14].showNextPage,loaded:t[6],currentPageIndex:t[5]}),Fe=t=>({loaded:64&t[0],currentPageIndex:32&t[0]}),We=t=>({loaded:t[6],currentPageIndex:t[5]}),qe=t=>({loaded:64&t[0],currentPageIndex:32&t[0]}),He=t=>({showPrevPage:t[14].showPrevPage,loaded:t[6],currentPageIndex:t[5]});function Be(t){let n;const e=t[37].prev,a=c(e,t,t[36],He),r=a||function(t){let n,e,a;return e=new Jt({props:{direction:"prev",disabled:!t[2]&&0===t[5]}}),e.$on("click",t[23]),{c(){n=g("div"),tt(e.$$.fragment),x(n,"class","sc-carousel__arrow-container svelte-uwo0yk")},m(t,r){$(t,n,r),nt(e,n,null),a=!0},p(t,n){const a={};36&n[0]&&(a.disabled=!t[2]&&0===t[5]),e.$set(a)},i(t){a||(Y(e.$$.fragment,t),a=!0)},o(t){Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),et(e)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){a?a.p&&96&n[0]|32&n[1]&&i(a,e,t,t[36],n,qe,He):r&&r.p&&36&n[0]&&r.p(t,n)},i(t){n||(Y(r,t),n=!0)},o(t){Z(r,t),n=!1},d(t){r&&r.d(t)}}}function Ue(t){let n,e,a;return e=new nn({props:{value:t[7]}}),{c(){n=g("div"),tt(e.$$.fragment),x(n,"class","sc-carousel-progress__container svelte-uwo0yk")},m(t,r){$(t,n,r),nt(e,n,null),a=!0},p(t,n){const a={};128&n[0]&&(a.value=t[7]),e.$set(a)},i(t){a||(Y(e.$$.fragment,t),a=!0)},o(t){Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),et(e)}}}function Ve(t){let n;const e=t[37].next,a=c(e,t,t[36],Re),r=a||function(t){let n,e,a;return e=new Jt({props:{direction:"next",disabled:!t[2]&&t[5]===t[10]-1}}),e.$on("click",t[14].showNextPage),{c(){n=g("div"),tt(e.$$.fragment),x(n,"class","sc-carousel__arrow-container svelte-uwo0yk")},m(t,r){$(t,n,r),nt(e,n,null),a=!0},p(t,n){const a={};1060&n[0]&&(a.disabled=!t[2]&&t[5]===t[10]-1),e.$set(a)},i(t){a||(Y(e.$$.fragment,t),a=!0)},o(t){Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),et(e)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){a?a.p&&96&n[0]|32&n[1]&&i(a,e,t,t[36],n,Ne,Re):r&&r.p&&1060&n[0]&&r.p(t,n)},i(t){n||(Y(r,t),n=!0)},o(t){Z(r,t),n=!1},d(t){r&&r.d(t)}}}function Ge(t){let n;const e=t[37].dots,a=c(e,t,t[36],De),r=a||function(t){let n,e;return n=new Gt({props:{pagesCount:t[10],currentPageIndex:t[5]}}),n.$on("pageChange",t[41]),{c(){tt(n.$$.fragment)},m(t,a){nt(n,t,a),e=!0},p(t,e){const a={};1024&e[0]&&(a.pagesCount=t[10]),32&e[0]&&(a.currentPageIndex=t[5]),n.$set(a)},i(t){e||(Y(n.$$.fragment,t),e=!0)},o(t){Z(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){a?a.p&&1120&n[0]|32&n[1]&&i(a,e,t,t[36],n,ze,De):r&&r.p&&1056&n[0]&&r.p(t,n)},i(t){n||(Y(r,t),n=!0)},o(t){Z(r,t),n=!1},d(t){r&&r.d(t)}}}function Ye(t){let n,e,a,o,u,l,h,v,_,k,b,C,j=t[1]&&Be(t);const P=t[37].default,T=c(P,t,t[36],We);let S=t[3]&&Ue(t),I=t[1]&&Ve(t),O=t[4]&&Ge(t);return{c(){n=g("div"),e=g("div"),j&&j.c(),a=m(),o=g("div"),u=g("div"),T&&T.c(),h=m(),S&&S.c(),v=m(),I&&I.c(),_=m(),O&&O.c(),x(u,"class","sc-carousel__pages-container svelte-uwo0yk"),w(u,"transform","translateX("+t[8]+"px)"),w(u,"transition-duration",t[9]+"ms"),w(u,"transition-timing-function",t[0]),x(o,"class","sc-carousel__pages-window svelte-uwo0yk"),x(e,"class","sc-carousel__content-container svelte-uwo0yk"),x(n,"class","sc-carousel__carousel-container svelte-uwo0yk")},m(r,s){$(r,n,s),f(n,e),j&&j.m(e,null),f(e,a),f(e,o),f(o,u),T&&T.m(u,null),t[39](u),f(o,h),S&&S.m(o,null),t[40](o),f(e,v),I&&I.m(e,null),f(n,_),O&&O.m(n,null),k=!0,b||(C=[p(l=on.call(null,u,{thresholdProvider:t[38]})),y(u,"swipeStart",t[16]),y(u,"swipeMove",t[18]),y(u,"swipeEnd",t[19]),y(u,"swipeFailed",t[20]),y(u,"swipeThresholdReached",t[17]),p(un.call(null,o)),y(o,"hovered",t[21]),p(fn.call(null,o)),y(o,"tapped",t[22])],b=!0)},p(t,r){t[1]?j?(j.p(t,r),2&r[0]&&Y(j,1)):(j=Be(t),j.c(),Y(j,1),j.m(e,a)):j&&(V(),Z(j,1,1,(()=>{j=null})),G()),T&&T.p&&96&r[0]|32&r[1]&&i(T,P,t,t[36],r,Fe,We),(!k||256&r[0])&&w(u,"transform","translateX("+t[8]+"px)"),(!k||512&r[0])&&w(u,"transition-duration",t[9]+"ms"),(!k||1&r[0])&&w(u,"transition-timing-function",t[0]),l&&s(l.update)&&2048&r[0]&&l.update.call(null,{thresholdProvider:t[38]}),t[3]?S?(S.p(t,r),8&r[0]&&Y(S,1)):(S=Ue(t),S.c(),Y(S,1),S.m(o,null)):S&&(V(),Z(S,1,1,(()=>{S=null})),G()),t[1]?I?(I.p(t,r),2&r[0]&&Y(I,1)):(I=Ve(t),I.c(),Y(I,1),I.m(e,null)):I&&(V(),Z(I,1,1,(()=>{I=null})),G()),t[4]?O?(O.p(t,r),16&r[0]&&Y(O,1)):(O=Ge(t),O.c(),Y(O,1),O.m(n,null)):O&&(V(),Z(O,1,1,(()=>{O=null})),G())},i(t){k||(Y(j),Y(T,t),Y(S),Y(I),Y(O),k=!0)},o(t){Z(j),Z(T,t),Z(S),Z(I),Z(O),k=!1},d(e){e&&d(n),j&&j.d(),T&&T.d(e),t[39](null),S&&S.d(),t[40](null),I&&I.d(),O&&O.d(),b=!1,r(C)}}}function Ze(t,n,e){let a,r,{$$slots:s={},$$scope:o}=n,c=[],u=0,i=0,l=1;const[{data:p,progressManager:f},$,d]=Le(((t,n)=>{_n({currentPageIndex:()=>e(5,a=n),progressValue:()=>e(7,r=n),offset:()=>e(8,u=n),durationMs:()=>e(9,i=n),pagesCount:()=>e(10,l=n),loaded:()=>e(6,c=n)})(t)})),g=S();let{timingFunction:h="ease-in-out"}=n,{arrows:m=!0}=n,{infinite:v=!0}=n,{initialPageIndex:y=0}=n,{duration:x=500}=n,{autoplay:_=!1}=n,{autoplayDuration:k=3e3}=n,{autoplayDirection:w=Zt}=n,{pauseOnFocus:b=!1}=n,{autoplayProgressVisible:C=!1}=n,{dots:j=!0}=n,{swiping:I=!0}=n,{particlesToShow:O=1}=n,{particlesToScroll:E=1}=n;let M,L,z=0;const D=(R=({width:t})=>{e(11,z=t),p.particleWidth=z/p.particlesToShow,function(t){for(var n=t.particlesContainerChildren,e=t.particleWidth,a=0;a{(async()=>{await N(),L&&M&&(p.particlesCountWithoutClones=L.children.length,await N(),p.infinite&&function(){const{clonesToAppend:t,clonesToPrepend:n}=function(t){for(var n=t.clonesCountHead,e=t.clonesCountTail,a=t.particlesContainerChildren,r=[],s=0;sc-1-n;u--)o.push(a[u].cloneNode(!0));return{clonesToAppend:r,clonesToPrepend:o}}({clonesCountHead:p.clonesCountHead,clonesCountTail:p.clonesCountTail,particlesContainerChildren:L.children});!function(t){for(var n=t.particlesContainer,e=t.clonesToAppend,a=t.clonesToPrepend,r=0;r{D.disconnect(),f.reset()},P().$$.on_destroy.push(F);return t.$$set=t=>{"timingFunction"in t&&e(0,h=t.timingFunction),"arrows"in t&&e(1,m=t.arrows),"infinite"in t&&e(2,v=t.infinite),"initialPageIndex"in t&&e(24,y=t.initialPageIndex),"duration"in t&&e(25,x=t.duration),"autoplay"in t&&e(26,_=t.autoplay),"autoplayDuration"in t&&e(27,k=t.autoplayDuration),"autoplayDirection"in t&&e(28,w=t.autoplayDirection),"pauseOnFocus"in t&&e(29,b=t.pauseOnFocus),"autoplayProgressVisible"in t&&e(3,C=t.autoplayProgressVisible),"dots"in t&&e(4,j=t.dots),"swiping"in t&&e(30,I=t.swiping),"particlesToShow"in t&&e(31,O=t.particlesToShow),"particlesToScroll"in t&&e(32,E=t.particlesToScroll),"$$scope"in t&&e(36,o=t.$$scope)},t.$$.update=()=>{32&t.$$.dirty[0]&&g("pageChange",a),4&t.$$.dirty[0]&&(p.infinite=v),33554432&t.$$.dirty[0]&&(p.durationMsInit=x),67108864&t.$$.dirty[0]&&(p.autoplay=_),134217728&t.$$.dirty[0]&&(p.autoplayDuration=k),268435456&t.$$.dirty[0]&&(p.autoplayDirection=w),536870912&t.$$.dirty[0]&&(p.pauseOnFocus=b),1&t.$$.dirty[1]&&(p.particlesToShowInit=O),2&t.$$.dirty[1]&&(p.particlesToScrollInit=E)},[h,m,v,C,j,a,c,r,u,i,l,z,M,L,$,W,function(){I&&(p.durationMs=0)},async function(t){I&&await _n({[Zt]:$.showNextPage,[Yt]:$.showPrevPage})(t.detail.direction)},function(t){I&&(p.offset+=t.detail.dx)},function(){I&&$.showParticle(p.currentParticleIndex)},async function(){I&&await $.offsetPage({animated:!0})},function(t){p.focused=t.detail.value},function(){$.toggleFocused()},function(){$.showPrevPage()},y,x,_,k,w,b,I,O,E,async function(t,n){const e=xn(n,"animated",!0);if("number"!=typeof t)throw new Error("pageIndex should be a number");await $.showPage(t,{animated:e})},async function(t){const n=xn(t,"animated",!0);await $.showPrevPage({animated:n})},async function(t){const n=xn(t,"animated",!0);await $.showNextPage({animated:n})},o,s,()=>z/3,function(t){A[t?"unshift":"push"]((()=>{L=t,e(13,L)}))},function(t){A[t?"unshift":"push"]((()=>{M=t,e(12,M)}))},t=>W(t.detail)]}class Ke extends rt{constructor(t){super(),at(this,t,Ze,Ye,o,{timingFunction:0,arrows:1,infinite:2,initialPageIndex:24,duration:25,autoplay:26,autoplayDuration:27,autoplayDirection:28,pauseOnFocus:29,autoplayProgressVisible:3,dots:4,swiping:30,particlesToShow:31,particlesToScroll:32,goTo:33,goToPrev:34,goToNext:35},[-1,-1])}get goTo(){return this.$$.ctx[33]}get goToPrev(){return this.$$.ctx[34]}get goToNext(){return this.$$.ctx[35]}}var Xe=[{title:"GitHub",iconName:"github-logo",url:"https://github.com/vadimkorr/svelte-carousel"},{title:"NPM",iconName:"npm-logo",url:"https://www.npmjs.com/package/svelte-carousel"},{title:"YouTube",iconName:"youtube-logo",url:"https://www.youtube.com/channel/UCQnQ5wh8Eh1q-E2s-fN1Xcg"},{title:"REPL",url:"https://svelte.dev/repl/f503a458832f4a358d9ec00f88945ff5"}];function Je(t,n,e){const a=t.slice();return a[3]=n[e].url,a[4]=n[e].title,a[5]=n[e].iconName,a}function Qe(t,n,e){const a=t.slice();return a[8]=n[e],a}function ta(t,n){let e,a;return{key:t,first:null,c(){e=g("img"),x(e,"class","docs__main-layout__logo svelte-1g4wbsx"),e.src!==(a="./svelte-carousel-logo-md-full-width.png")&&x(e,"src","./svelte-carousel-logo-md-full-width.png"),x(e,"alt","svelte-carousel-logo"),this.first=e},m(t,n){$(t,e,n)},d(t){t&&d(e)}}}function na(n){let e,a=[],r=new Map,s=Array.from(Array(3).keys());const o=t=>t[8];for(let t=0;tt[4];for(let n=0;n{"$$scope"in t&&e(2,r=t.$$scope)},[s,a,r]}class ca extends rt{constructor(t){super(),at(this,t,oa,sa,o,{})}} +var app=function(){"use strict";function t(){}function n(t,n){for(const e in n)t[e]=n[e];return t}function e(t){return t()}function a(){return Object.create(null)}function r(t){t.forEach(e)}function s(t){return"function"==typeof t}function o(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function c(t,n,e,a){if(t){const r=u(t,n,e,a);return t[0](r)}}function u(t,e,a,r){return t[1]&&r?n(a.ctx.slice(),t[1](r(e))):a.ctx}function i(t,n,e,a,r,s,o){const c=function(t,n,e,a){if(t[2]&&a){const r=t[2](a(e));if(void 0===n.dirty)return r;if("object"==typeof r){const t=[],e=Math.max(n.dirty.length,r.length);for(let a=0;at.removeEventListener(n,e,a)}function x(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function _(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const a in n)null==n[a]?t.removeAttribute(a):"style"===a?t.style.cssText=n[a]:"__value"===a?t.value=t[a]=n[a]:e[a]&&e[a].set?t[a]=n[a]:x(t,a,n[a])}function k(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function w(t,n,e,a){t.style.setProperty(n,e,a?"important":"")}function b(t,n,e){t.classList[e?"add":"remove"](n)}let C;function j(t){C=t}function P(){if(!C)throw new Error("Function called outside component initialization");return C}function T(t){P().$$.on_mount.push(t)}function S(){const t=P();return(n,e)=>{const a=t.$$.callbacks[n];if(a){const r=function(t,n){const e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,n),e}(n,e);a.slice().forEach((n=>{n.call(t,r)}))}}}function I(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach((t=>t(n)))}const O=[],A=[],E=[],M=[],L=Promise.resolve();let z=!1;function D(){z||(z=!0,L.then(q))}function N(){return D(),L}function R(t){E.push(t)}let F=!1;const W=new Set;function q(){if(!F){F=!0;do{for(let t=0;t{B.delete(t),a&&(e&&t.d(1),a())})),t.o(n)}}function K(t,n){t.d(1),n.delete(t.key)}function X(t,n){Z(t,1,1,(()=>{n.delete(t.key)}))}function J(t,n,e,a,r,s,o,c,u,i,l,p){let f=t.length,$=s.length,d=f;const g={};for(;d--;)g[t[d].key]=d;const h=[],m=new Map,v=new Map;for(d=$;d--;){const t=p(r,s,d),c=e(t);let u=o.get(c);u?a&&u.p(t,n):(u=i(c,t),u.c()),m.set(c,h[d]=u),c in g&&v.set(c,Math.abs(d-g[c]))}const y=new Set,x=new Set;function _(t){Y(t,1),t.m(c,l),o.set(t.key,t),l=t.first,$--}for(;f&&$;){const n=h[$-1],e=t[f-1],a=n.key,r=e.key;n===e?(l=n.first,f--,$--):m.has(r)?!o.has(a)||y.has(a)?_(n):x.has(r)?f--:v.get(a)>v.get(r)?(x.add(a),_(n)):(y.add(r),f--):(u(e,o),f--)}for(;f--;){const n=t[f];m.has(n.key)||u(n,o)}for(;$;)_(h[$-1]);return h}function Q(t,n){const e={},a={},r={$$scope:1};let s=t.length;for(;s--;){const o=t[s],c=n[s];if(c){for(const t in o)t in c||(a[t]=1);for(const t in c)r[t]||(e[t]=c[t],r[t]=1);t[s]=c}else for(const t in o)r[t]=1}for(const t in a)t in e||(e[t]=void 0);return e}function tt(t){t&&t.c()}function nt(t,n,a){const{fragment:o,on_mount:c,on_destroy:u,after_update:i}=t.$$;o&&o.m(n,a),R((()=>{const n=c.map(e).filter(s);u?u.push(...n):r(n),t.$$.on_mount=[]})),i.forEach(R)}function et(t,n){const e=t.$$;null!==e.fragment&&(r(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function at(n,e,s,o,c,u,i=[-1]){const l=C;j(n);const p=e.props||{},f=n.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:a(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:a(),dirty:i,skip_bound:!1};let $=!1;if(f.ctx=s?s(n,p,((t,e,...a)=>{const r=a.length?a[0]:e;return f.ctx&&c(f.ctx[t],f.ctx[t]=r)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](r),$&&function(t,n){-1===t.$$.dirty[0]&&(O.push(t),D(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const t=e.indexOf(n);-1!==t&&e.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)}}var st="1.0.25";var ot=function(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t};function ct(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,a)}return e}function ut(t){for(var n=1;n{l=null})),G()):l?(l.p(t,e),8&e&&Y(l,1)):(l=it(t),l.c(),Y(l,1),l.m(u.parentNode,u))},i(t){i||(Y(l),i=!0)},o(t){Z(l),i=!1},d(t){t&&d(n),t&&d(s),t&&d(o),t&&d(c),l&&l.d(t),t&&d(u)}}}function pt(t){let n,e,a;var r=t[0];function s(t){return{props:{id:t[2],class:"docs__title",$$slots:{default:[lt]},$$scope:{ctx:t}}}}return r&&(e=new r(s(t))),{c(){n=g("div"),e&&tt(e.$$.fragment)},m(t,r){$(t,n,r),e&&nt(e,n,null),a=!0},p(t,[a]){const o={};if(4&a&&(o.id=t[2]),78&a&&(o.$$scope={dirty:a,ctx:t}),r!==(r=t[0])){if(e){V();const t=e;Z(t.$$.fragment,1,0,(()=>{et(t,1)})),G()}r?(e=new r(s(t)),tt(e.$$.fragment),Y(e.$$.fragment,1),nt(e,n,null)):e=null}else r&&e.$set(o)},i(t){a||(e&&Y(e.$$.fragment,t),a=!0)},o(t){e&&Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),e&&et(e)}}}function ft(t,n,e){let a,r,s,{$$slots:o={},$$scope:c}=n,{titleComponent:u}=n;return T((()=>{const t=(n=a.textContent,{title:(c=n.split("!"))[0],props:(o=c[1],((null==o?void 0:o.split(";").filter(Boolean))||[]).reduce((function(t,n){var e=n.split(":");return ut(ut({},t),{},ot({},e[0],e[1]))}),{}))});var n,o,c;e(3,s=t.title),e(2,r=t.props.anchorId)})),t.$$set=t=>{"titleComponent"in t&&e(0,u=t.titleComponent),"$$scope"in t&&e(6,c=t.$$scope)},[u,a,r,s,o,function(t){A[t?"unshift":"push"]((()=>{a=t,e(1,a)}))},c]}class $t extends rt{constructor(t){super(),at(this,t,ft,pt,o,{titleComponent:0})}}function dt(t){let e,a;const r=t[2].default,s=c(r,t,t[1],null);let o=[t[0]],u={};for(let t=0;t{a(0,e=n(n({},e),l(t))),"$$scope"in t&&a(1,s=t.$$scope)},[e=l(e),s,r]}class ht extends rt{constructor(t){super(),at(this,t,gt,dt,o,{})}}function mt(t){let n;const e=t[0].default,a=c(e,t,t[1],null);return{c(){a&&a.c()},m(t,e){a&&a.m(t,e),n=!0},p(t,n){a&&a.p&&2&n&&i(a,e,t,t[1],n,null,null)},i(t){n||(Y(a,t),n=!0)},o(t){Z(a,t),n=!1},d(t){a&&a.d(t)}}}function vt(t){let n,e;return n=new $t({props:{titleComponent:ht,$$slots:{default:[mt]},$$scope:{ctx:t}}}),{c(){tt(n.$$.fragment)},m(t,a){nt(n,t,a),e=!0},p(t,[e]){const a={};2&e&&(a.$$scope={dirty:e,ctx:t}),n.$set(a)},i(t){e||(Y(n.$$.fragment,t),e=!0)},o(t){Z(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}function yt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(1,r=t.$$scope)},[a,r]}class xt extends rt{constructor(t){super(),at(this,t,yt,vt,o,{})}}function _t(t){let e,a;const r=t[2].default,s=c(r,t,t[1],null);let o=[t[0]],u={};for(let t=0;t{a(0,e=n(n({},e),l(t))),"$$scope"in t&&a(1,s=t.$$scope)},[e=l(e),s,r]}class wt extends rt{constructor(t){super(),at(this,t,kt,_t,o,{})}}function bt(t){let n;const e=t[0].default,a=c(e,t,t[1],null);return{c(){a&&a.c()},m(t,e){a&&a.m(t,e),n=!0},p(t,n){a&&a.p&&2&n&&i(a,e,t,t[1],n,null,null)},i(t){n||(Y(a,t),n=!0)},o(t){Z(a,t),n=!1},d(t){a&&a.d(t)}}}function Ct(t){let n,e;return n=new $t({props:{titleComponent:wt,$$slots:{default:[bt]},$$scope:{ctx:t}}}),{c(){tt(n.$$.fragment)},m(t,a){nt(n,t,a),e=!0},p(t,[e]){const a={};2&e&&(a.$$scope={dirty:e,ctx:t}),n.$set(a)},i(t){e||(Y(n.$$.fragment,t),e=!0)},o(t){Z(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}function jt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(1,r=t.$$scope)},[a,r]}class Pt extends rt{constructor(t){super(),at(this,t,jt,Ct,o,{})}}function Tt(t){let n,e;const a=t[1].default,r=c(a,t,t[0],null);return{c(){n=g("td"),r&&r.c(),x(n,"class","svelte-17sscyq")},m(t,a){$(t,n,a),r&&r.m(n,null),e=!0},p(t,[n]){r&&r.p&&1&n&&i(r,a,t,t[0],n,null,null)},i(t){e||(Y(r,t),e=!0)},o(t){Z(r,t),e=!1},d(t){t&&d(n),r&&r.d(t)}}}function St(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class It extends rt{constructor(t){super(),at(this,t,St,Tt,o,{})}}function Ot(t){let n,e;const a=t[1].default,r=c(a,t,t[0],null);return{c(){n=g("tr"),r&&r.c(),x(n,"class","svelte-yxhgu7")},m(t,a){$(t,n,a),r&&r.m(n,null),e=!0},p(t,[n]){r&&r.p&&1&n&&i(r,a,t,t[0],n,null,null)},i(t){e||(Y(r,t),e=!0)},o(t){Z(r,t),e=!1},d(t){t&&d(n),r&&r.d(t)}}}function At(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class Et extends rt{constructor(t){super(),at(this,t,At,Ot,o,{})}}function Mt(t){let n,e;const a=t[1].default,r=c(a,t,t[0],null);return{c(){n=g("th"),r&&r.c(),x(n,"class","svelte-1w3aa8v")},m(t,a){$(t,n,a),r&&r.m(n,null),e=!0},p(t,[n]){r&&r.p&&1&n&&i(r,a,t,t[0],n,null,null)},i(t){e||(Y(r,t),e=!0)},o(t){Z(r,t),e=!1},d(t){t&&d(n),r&&r.d(t)}}}function Lt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class zt extends rt{constructor(t){super(),at(this,t,Lt,Mt,o,{})}}function Dt(t){let n,e,a;const r=t[1].default,s=c(r,t,t[0],null);return{c(){n=g("div"),e=g("table"),s&&s.c(),x(e,"class","svelte-1dxl093"),x(n,"class","table-wrapper svelte-1dxl093")},m(t,r){$(t,n,r),f(n,e),s&&s.m(e,null),a=!0},p(t,[n]){s&&s.p&&1&n&&i(s,r,t,t[0],n,null,null)},i(t){a||(Y(s,t),a=!0)},o(t){Z(s,t),a=!1},d(t){t&&d(n),s&&s.d(t)}}}function Nt(t,n,e){let{$$slots:a={},$$scope:r}=n;return t.$$set=t=>{"$$scope"in t&&e(0,r=t.$$scope)},[r,a]}class Rt extends rt{constructor(t){super(),at(this,t,Nt,Dt,o,{})}}function Ft(n){let e,a,r;return{c(){e=g("button"),x(e,"class","sc-carousel-button sc-carousel-dot__dot svelte-yu7247"),b(e,"sc-carousel-dot__dot_active",n[0])},m(t,s){$(t,e,s),a||(r=y(e,"click",n[1]),a=!0)},p(t,[n]){1&n&&b(e,"sc-carousel-dot__dot_active",t[0])},i:t,o:t,d(t){t&&d(e),a=!1,r()}}}function Wt(t,n,e){let{active:a=!1}=n;return t.$$set=t=>{"active"in t&&e(0,a=t.active)},[a,function(n){I(t,n)}]}class qt extends rt{constructor(t){super(),at(this,t,Wt,Ft,o,{active:0})}}function Ht(t,n,e){const a=t.slice();return a[5]=n[e],a[7]=e,a}function Bt(t,n){let e,a,r,s;return a=new qt({props:{active:n[1]===n[7]}}),a.$on("click",(function(){return n[3](n[7])})),{key:t,first:null,c(){e=g("div"),tt(a.$$.fragment),r=m(),x(e,"class","sc-carousel-dots__dot-container svelte-1oj5bge"),this.first=e},m(t,n){$(t,e,n),nt(a,e,null),f(e,r),s=!0},p(t,e){n=t;const r={};3&e&&(r.active=n[1]===n[7]),a.$set(r)},i(t){s||(Y(a.$$.fragment,t),s=!0)},o(t){Z(a.$$.fragment,t),s=!1},d(t){t&&d(e),et(a)}}}function Ut(t){let n,e,a=[],r=new Map,s=Array(t[0]);const o=t=>t[7];for(let n=0;n{"pagesCount"in t&&e(0,r=t.pagesCount),"currentPageIndex"in t&&e(1,s=t.currentPageIndex)},[r,s,o,t=>o(t)]}class Gt extends rt{constructor(t){super(),at(this,t,Vt,Ut,o,{pagesCount:0,currentPageIndex:1})}}var Yt="prev",Zt="next";function Kt(n){let e,a,r,s;return{c(){e=g("button"),a=g("i"),x(a,"class","sc-carousel-arrow__arrow svelte-9ztt4p"),b(a,"sc-carousel-arrow__arrow-next",n[0]===Zt),b(a,"sc-carousel-arrow__arrow-prev",n[0]===Yt),x(e,"class","sc-carousel-button sc-carousel-arrow__circle svelte-9ztt4p"),b(e,"sc-carousel-arrow__circle_disabled",n[1])},m(t,o){$(t,e,o),f(e,a),r||(s=y(e,"click",n[2]),r=!0)},p(t,[n]){1&n&&b(a,"sc-carousel-arrow__arrow-next",t[0]===Zt),1&n&&b(a,"sc-carousel-arrow__arrow-prev",t[0]===Yt),2&n&&b(e,"sc-carousel-arrow__circle_disabled",t[1])},i:t,o:t,d(t){t&&d(e),r=!1,s()}}}function Xt(t,n,e){let{direction:a=Zt}=n,{disabled:r=!1}=n;return t.$$set=t=>{"direction"in t&&e(0,a=t.direction),"disabled"in t&&e(1,r=t.disabled)},[a,r,function(n){I(t,n)}]}class Jt extends rt{constructor(t){super(),at(this,t,Xt,Kt,o,{direction:0,disabled:1})}}function Qt(n){let e;return{c(){e=g("div"),x(e,"class","sc-carousel-progress__indicator svelte-nuyenl"),w(e,"width",n[0]+"%")},m(t,n){$(t,e,n)},p(t,[n]){1&n&&w(e,"width",t[0]+"%")},i:t,o:t,d(t){t&&d(e)}}}function tn(t,n,e){let a,{value:r=0}=n;return t.$$set=t=>{"value"in t&&e(1,r=t.value)},t.$$.update=()=>{2&t.$$.dirty&&e(0,a=Math.min(Math.max(100*r,0),100))},[a,r]}class nn extends rt{constructor(t){super(),at(this,t,tn,Qt,o,{value:1})}}function en(t,n){t.removeEventListener("mouseup",n),t.removeEventListener("touchend",n)}function an(t,n){t.removeEventListener("mousemove",n),t.removeEventListener("touchmove",n)}function rn(t){return function(n,e){t.dispatchEvent(new CustomEvent(n,{detail:e}))}}function sn(t){if("TouchEvent"in window&&t instanceof TouchEvent){var n=t.touches[0];return{x:n?n.clientX:0,y:n?n.clientY:0}}return{x:t.clientX,y:t.clientY}}function on(t,n){var e,a,r,s,o,c=n.thresholdProvider,u=rn(t),i=0,l=!1;function p(t){r=Date.now(),i=0,l=!0;var n,s,o=sn(t);e=o.x,a=o.y,u("swipeStart",{x:e,y:a}),n=window,s=f,n.addEventListener("mousemove",s),n.addEventListener("touchmove",s),function(t,n){t.addEventListener("mouseup",n),t.addEventListener("touchend",n)}(window,$)}function f(t){if(l){var n=sn(t),r=n.x-e,s=n.y-a;e=n.x,a=n.y,u("swipeMove",{x:e,y:a,dx:r,dy:s}),0!==r&&Math.sign(r)!==Math.sign(i)&&(i=0),i+=r,Math.abs(i)>c()&&(u("swipeThresholdReached",{direction:i>0?Yt:Zt}),en(window,$),an(window,f))}}function $(t){if(en(window,$),an(window,f),l=!1,Date.now()-r>=111&&Math.abs(i)>=20){var n=sn(t);u("swipeEnd",{x:n.x,y:n.y})}else u("swipeFailed")}return o=p,(s=t).addEventListener("mousedown",o),s.addEventListener("touchstart",o,{passive:!0}),{destroy:function(){!function(t,n){t.removeEventListener("mousedown",n),t.removeEventListener("touchstart",n)}(t,p)}}}function cn(t,n){t.removeEventListener("mouseleave",n)}function un(t){var n,e=rn(t);function a(){var n;n=r,t.addEventListener("mouseleave",n),e("hovered",{value:!0})}function r(){e("hovered",{value:!1}),cn(t,r)}return n=a,t.addEventListener("mouseenter",n),{destroy:function(){!function(t,n){t.removeEventListener("mouseenter",n)}(t,a),cn(t,r)}}}function ln(t,n,e){return Math.max(t,Math.min(n,e))}function pn(t,n){t.removeEventListener("touchend",n)}function fn(t){var n,e=rn(t),a=0,r={x:0,y:0};function s(t){var n,e,s,o,c=t.tapEndedAt,u=t.tapEndedPos,i=c-a,l=(n=r,s=(e=u).x-n.x,o=e.y-n.y,Math.sqrt(s*s+o*o));return i<=110&&l<=9}function o(n){a=Date.now();var e,s=n.touches[0];r={x:s.clientX,y:s.clientY},e=c,t.addEventListener("touchend",e)}function c(n){pn(t,c);var a=n.changedTouches[0];s({tapEndedAt:Date.now(),tapEndedPos:{x:a.clientX,y:a.clientY}})&&e("tapped")}return n=o,t.addEventListener("touchstart",n,{passive:!0}),{destroy:function(){!function(t,n){t.removeEventListener("touchstart",n)}(t,o),pn(t,c)}}}function $n(t){var n=t.currentParticleIndex,e=t.particlesCount,a=t.clonesCountHead,r=t.clonesCountTotal,s=t.infinite,o=t.particlesToScroll;return s?function(t){var n=t.currentParticleIndex,e=t.particlesCount,a=t.clonesCountHead,r=t.clonesCountTotal,s=t.particlesToScroll;return n===e-a?0:0===n?dn({particlesCountWithoutClones:e-r,particlesToScroll:s})-1:Math.floor((n-a)/s)}({currentParticleIndex:n,particlesCount:e,clonesCountHead:a,clonesCountTotal:r,particlesToScroll:o}):function(t){var n=t.currentParticleIndex,e=t.particlesToScroll;return Math.ceil(n/e)}({currentParticleIndex:n,particlesToScroll:o})}function dn(t){var n=t.particlesCountWithoutClones,e=t.particlesToScroll;return Math.ceil(n/e)}function gn(t){var n=t.infinite,e=t.particlesCountWithoutClones,a=t.particlesToScroll,r=t.particlesToShow;return n?dn({particlesCountWithoutClones:e,particlesToScroll:a}):function(t){var n=t.particlesCountWithoutClones,e=t.particlesToScroll,a=mn({particlesCountWithoutClones:n,particlesToScroll:e,particlesToShow:t.particlesToShow});return Math.ceil(n/e)-a}({particlesCountWithoutClones:e,particlesToScroll:a,particlesToShow:r})}function hn(t){var n=t.infinite,e=t.pageIndex,a=t.clonesCountHead,r=t.clonesCountTail,s=t.particlesToScroll,o=t.particlesCount,c=t.particlesToShow;return n?function(t){var n=t.pageIndex,e=t.clonesCountHead,a=t.clonesCountTail,r=t.particlesToScroll,s=t.particlesCount;return ln(0,Math.min(e+n*r,s-a),s-1)}({pageIndex:e,clonesCountHead:a,clonesCountTail:r,particlesToScroll:s,particlesCount:o}):function(t){var n=t.pageIndex,e=t.particlesToScroll,a=t.particlesCount,r=t.particlesToShow;return ln(0,Math.min(n*e,a-r),a-1)}({pageIndex:e,particlesToScroll:s,particlesCount:o,particlesToShow:c})}function mn(t){for(var n=t.particlesToScroll,e=t.particlesToShow,a=t.particlesCountWithoutClones,r=n-e,s=e;;){var o=a-s-r;if(ot.length)&&(n=t.length);for(var e=0,a=new Array(n);e=0;--s){var o=this.tryEntries[s],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),i=a.call(o,"finallyLoc");if(u&&i){if(this.prev=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),g}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var a=e.completion;if("throw"===a.type){var r=a.arg;P(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:S(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=n),g}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}})),En="__lodash_hash_undefined__",Mn="[object Function]",Ln="[object GeneratorFunction]",zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,Nn=/^\./,Rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fn=/\\(\\)?/g,Wn=/^\[object .+?Constructor\]$/,qn="object"==typeof In&&In&&In.Object===Object&&In,Hn="object"==typeof self&&self&&self.Object===Object&&self,Bn=qn||Hn||Function("return this")();var Un,Vn=Array.prototype,Gn=Function.prototype,Yn=Object.prototype,Zn=Bn["__core-js_shared__"],Kn=(Un=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||""))?"Symbol(src)_1."+Un:"",Xn=Gn.toString,Jn=Yn.hasOwnProperty,Qn=Yn.toString,te=RegExp("^"+Xn.call(Jn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=Bn.Symbol,ee=Vn.splice,ae=de(Bn,"Map"),re=de(Object,"create"),se=ne?ne.prototype:void 0,oe=se?se.toString:void 0;function ce(t){var n=-1,e=t?t.length:0;for(this.clear();++n-1},ue.prototype.set=function(t,n){var e=this.__data__,a=le(e,t);return a<0?e.push([t,n]):e[a][1]=n,this},ie.prototype.clear=function(){this.__data__={hash:new ce,map:new(ae||ue),string:new ce}},ie.prototype.delete=function(t){return $e(this,t).delete(t)},ie.prototype.get=function(t){return $e(this,t).get(t)},ie.prototype.has=function(t){return $e(this,t).has(t)},ie.prototype.set=function(t,n){return $e(this,t).set(t,n),this};var ge=me((function(t){var n;t=null==(n=t)?"":function(t){if("string"==typeof t)return t;if(xe(t))return oe?oe.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(n);var e=[];return Nn.test(t)&&e.push(""),t.replace(Rn,(function(t,n,a,r){e.push(a?r.replace(Fn,"$1"):n||t)})),e}));function he(t){if("string"==typeof t||xe(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}function me(t,n){if("function"!=typeof t||n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var a=arguments,r=n?n.apply(this,a):a[0],s=e.cache;if(s.has(r))return s.get(r);var o=t.apply(this,a);return e.cache=s.set(r,o),o};return e.cache=new(me.Cache||ie),e}me.Cache=ie;var ve=Array.isArray;function ye(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function xe(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==Qn.call(t)}var _e=function(t,n,e){var a=null==t?void 0:pe(t,n);return void 0===a?e:a},ke=On((function(t,n){var e="__lodash_hash_undefined__",a=9007199254740991,r="[object Arguments]",s="[object Boolean]",o="[object Date]",c="[object Function]",u="[object GeneratorFunction]",i="[object Map]",l="[object Number]",p="[object Object]",f="[object Promise]",$="[object RegExp]",d="[object Set]",g="[object String]",h="[object Symbol]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",_="[object Float64Array]",k="[object Int8Array]",w="[object Int16Array]",b="[object Int32Array]",C="[object Uint8Array]",j="[object Uint8ClampedArray]",P="[object Uint16Array]",T="[object Uint32Array]",S=/\w*$/,I=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,A={};A[r]=A["[object Array]"]=A[v]=A[y]=A[s]=A[o]=A[x]=A[_]=A[k]=A[w]=A[b]=A[i]=A[l]=A[p]=A[$]=A[d]=A[g]=A[h]=A[C]=A[j]=A[P]=A[T]=!0,A["[object Error]"]=A[c]=A[m]=!1;var E="object"==typeof In&&In&&In.Object===Object&&In,M="object"==typeof self&&self&&self.Object===Object&&self,L=E||M||Function("return this")(),z=n&&!n.nodeType&&n,D=z&&t&&!t.nodeType&&t,N=D&&D.exports===z;function R(t,n){return t.set(n[0],n[1]),t}function F(t,n){return t.add(n),t}function W(t,n,e,a){var r=-1,s=t?t.length:0;for(a&&s&&(e=t[++r]);++r-1},Ct.prototype.set=function(t,n){var e=this.__data__,a=It(e,t);return a<0?e.push([t,n]):e[a][1]=n,this},jt.prototype.clear=function(){this.__data__={hash:new bt,map:new(ft||Ct),string:new bt}},jt.prototype.delete=function(t){return Lt(this,t).delete(t)},jt.prototype.get=function(t){return Lt(this,t).get(t)},jt.prototype.has=function(t){return Lt(this,t).has(t)},jt.prototype.set=function(t,n){return Lt(this,t).set(t,n),this},Pt.prototype.clear=function(){this.__data__=new Ct},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Ct){var a=e.__data__;if(!ft||a.length<199)return a.push([t,n]),this;e=this.__data__=new jt(a)}return e.set(t,n),this};var Dt=ut?B(ut,Object):function(){return[]},Nt=function(t){return Q.call(t)};function Rt(t,n){return!!(n=null==n?a:n)&&("number"==typeof t||O.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=a}(t.length)&&!Vt(t)}var Ut=it||function(){return!1};function Vt(t){var n=Gt(t)?Q.call(t):"";return n==c||n==u}function Gt(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function Yt(t){return Bt(t)?Tt(t):function(t){if(!Ft(t))return lt(t);var n=[];for(var e in Object(t))J.call(t,e)&&"constructor"!=e&&n.push(e);return n}(t)}t.exports=function(t){return Ot(t,!0,!0)}})),we=On((function(t,n){var e="__lodash_hash_undefined__",a=9007199254740991,r="[object Arguments]",s="[object Array]",o="[object Boolean]",c="[object Date]",u="[object Error]",i="[object Function]",l="[object Map]",p="[object Number]",f="[object Object]",$="[object Promise]",d="[object RegExp]",g="[object Set]",h="[object String]",m="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",_=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[r]=w[s]=w[y]=w[o]=w[x]=w[c]=w[u]=w[i]=w[l]=w[p]=w[f]=w[d]=w[g]=w[h]=w[v]=!1;var b="object"==typeof In&&In&&In.Object===Object&&In,C="object"==typeof self&&self&&self.Object===Object&&self,j=b||C||Function("return this")(),P=n&&!n.nodeType&&n,T=P&&t&&!t.nodeType&&t,S=T&&T.exports===P,I=S&&b.process,O=function(){try{return I&&I.binding&&I.binding("util")}catch(t){}}(),A=O&&O.isTypedArray;function E(t,n){for(var e=-1,a=null==t?0:t.length;++ec))return!1;var i=s.get(t);if(i&&s.get(n))return i==n;var l=-1,p=!0,f=2&e?new vt:void 0;for(s.set(t,n),s.set(n,t);++l-1},ht.prototype.set=function(t,n){var e=this.__data__,a=_t(e,t);return a<0?(++this.size,e.push([t,n])):e[a][1]=n,this},mt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(at||ht),string:new gt}},mt.prototype.delete=function(t){var n=St(this,t).delete(t);return this.size-=n?1:0,n},mt.prototype.get=function(t){return St(this,t).get(t)},mt.prototype.has=function(t){return St(this,t).has(t)},mt.prototype.set=function(t,n){var e=St(this,t),a=e.size;return e.set(t,n),this.size+=e.size==a?0:1,this},vt.prototype.add=vt.prototype.push=function(t){return this.__data__.set(t,e),this},vt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.clear=function(){this.__data__=new ht,this.size=0},yt.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},yt.prototype.get=function(t){return this.__data__.get(t)},yt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof ht){var a=e.__data__;if(!at||a.length<199)return a.push([t,n]),this.size=++e.size,this;e=this.__data__=new mt(a)}return e.set(t,n),this.size=e.size,this};var Ot=Q?function(t){return null==t?[]:(t=Object(t),function(t,n){for(var e=-1,a=null==t?0:t.length,r=0,s=[];++e-1&&t%1==0&&t-1&&t%1==0&&t<=a}function Wt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function qt(t){return null!=t&&"object"==typeof t}var Ht=A?function(t){return function(n){return t(n)}}(A):function(t){return qt(t)&&Ft(t.length)&&!!w[kt(t)]};function Bt(t){return null!=(n=t)&&Ft(n.length)&&!Rt(n)?xt(t):jt(t);var n}t.exports=function(t,n){return bt(t,n)}}));const be=()=>{const t={};return{subscribers:t,subscribe(n,e){n&&((n,e)=>{const{watcherName:a,fn:r}=n,{prop:s,value:o}=e;t[a]||(t[a]={deps:{},fn:r}),t[a].deps[s]=o})(n,e)},notify(n,e){Object.entries(t).forEach((([a,{deps:r,fn:s}])=>{const o=(t=>Object.keys(t||{}))(r);if(o.includes(e)){const e=((t,n)=>{const e={};return t.forEach((t=>{e[t]=n[t]})),e})(o,n);we(r,e)||(t[a].deps=e,s())}}))}}};function Ce(t,n){const e=_e(t,"data",{}),a=_e(t,"watch",{}),r=_e(t,"methods",{}),s=_e(n,"onChange",(()=>{})),{subscribe:o,notify:c,subscribers:u}=be(),{targetWatcher:i,getTarget:l}=(()=>{let t=null;return{targetWatcher(n,e){t={watcherName:n,fn:e},t.fn(),t=null},getTarget:()=>t}})();let p;const f={},$=()=>({data:p,methods:f});let d=!1;Object.entries(r).forEach((([t,n])=>{var e;f[t]=(e=(...t)=>n($(),...t),(...t)=>{d=!0;const n=e(...t);return d=!1,n}),Object.defineProperty(f[t],"name",{value:t})})),p=new Proxy(ke(e),{get(t,n){return l()&&!d&&o(l(),{prop:n,value:t[n]}),Reflect.get(...arguments)},set(t,n,e){return t[n]===e||(Reflect.set(...arguments),l()||(s&&s(n,e),c(p,n))),!0}}),Object.entries(a).forEach((([t,n])=>{i(t,(()=>{n($())}))}));const g=[p,f];return g._internal={_getSubscribers:()=>u},g}var je=function(t){if(Array.isArray(t))return bn(t)};var Pe=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)};var Te=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var Se=function(t){return je(t)||Pe(t)||Cn(t)||Te()};function Ie(t){var n=t.infinite,e=t.pageIndex,a=t.pagesCount,r=t.particlesCount,s=t.particlesToShow,o=t.particlesToScroll,c=ln(0,e,a-1),u=c-1,i=c+1;u=n?u<0?a-1:u:Math.max(0,u),i=n?i>a-1?0:i:Math.min(a-1,i);var l=Se(new Set([u,c,i,0,a-1])).sort((function(t,n){return t-n})),p=l.flatMap((function(t){return function(t){for(var n=t.pageIndex,e=t.particlesToShow,a=t.particlesToScroll,r=t.particlesCount,s=n*e-n*(0===n?0:e-a),o=s+Math.max(e,a)-1,c=[],u=s;u<=Math.min(r-1,o);u++)c.push(u);return c}({pageIndex:t,particlesToShow:s,particlesToScroll:o,particlesCount:r})}));return{pageIndexes:l,particleIndexes:Se(new Set(p)).sort((function(t,n){return t-n}))}}var Oe=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")};function Ae(t,n){for(var e=0;e1)){a.next=10;break}return n.reset(),a.next=9,t();case 9:e();case 10:case"end":return a.stop()}}),a)}))))(),setInterval(a,r))}))}},{key:"pause",value:function(){this._paused=!0}},{key:"resume",value:function(){this._paused=!1}},{key:"reset",value:function(){clearInterval(this._interval),this._onProgressValueChange(1)}}]),t}();function Le(t){var n=new Me({onProgressValueChange:function(n){t("progressValue",1-n)}}),e=Ce({data:{particlesCountWithoutClones:0,particlesToShow:1,particlesToShowInit:1,particlesToScroll:1,particlesToScrollInit:1,particlesCount:1,currentParticleIndex:1,infinite:!1,autoplayDuration:1e3,clonesCountHead:0,clonesCountTail:0,clonesCountTotal:0,partialPageSize:1,currentPageIndex:1,pagesCount:1,pauseOnFocus:!1,focused:!1,autoplay:!1,autoplayDirection:"next",disabled:!1,durationMsInit:1e3,durationMs:1e3,offset:0,particleWidth:0,loaded:[]},watch:{setLoaded:function(t){var n=t.data;n.loaded=Ie({infinite:n.infinite,pageIndex:n.currentPageIndex,pagesCount:n.pagesCount,particlesCount:n.particlesCountWithoutClones,particlesToShow:n.particlesToShow,particlesToScroll:n.particlesToScroll}).particleIndexes},setCurrentPageIndex:function(t){var n=t.data;n.currentPageIndex=$n({currentParticleIndex:n.currentParticleIndex,particlesCount:n.particlesCount,clonesCountHead:n.clonesCountHead,clonesCountTotal:n.clonesCountTotal,infinite:n.infinite,particlesToScroll:n.particlesToScroll})},setPartialPageSize:function(t){var n=t.data;n.partialPageSize=mn({particlesToScroll:n.particlesToScroll,particlesToShow:n.particlesToShow,particlesCountWithoutClones:n.particlesCountWithoutClones})},setClonesCount:function(t){var n,e,a,r,s,o=t.data,c=(n={infinite:o.infinite,particlesToShow:o.particlesToShow,partialPageSize:o.partialPageSize},e=n.infinite,a=n.particlesToShow,r=n.partialPageSize,yn(yn({},s=e?{head:Math.ceil(r||a),tail:Math.ceil(a)}:{head:0,tail:0}),{},{total:s.head+s.tail})),u=c.head,i=c.tail;o.clonesCountHead=u,o.clonesCountTail=i,o.clonesCountTotal=u+i},setProgressManagerAutoplayDuration:function(t){var e=t.data;n.setAutoplayDuration(e.autoplayDuration)},toggleProgressManager:function(t){var e=t.data,a=e.pauseOnFocus,r=e.focused;a&&(r?n.pause():n.resume())},initDuration:function(t){var n=t.data;n.durationMs=n.durationMsInit},applyAutoplay:function(t){var n=t.data,e=t.methods._applyAutoplayIfNeeded;n.autoplay&&e(n.autoplay)},setPagesCount:function(t){var n=t.data;n.pagesCount=gn({infinite:n.infinite,particlesCountWithoutClones:n.particlesCountWithoutClones,particlesToScroll:n.particlesToScroll,particlesToShow:n.particlesToShow})},setParticlesToShow:function(t){var n=t.data;n.particlesToShow=ln(1,n.particlesToShowInit,n.particlesCountWithoutClones)},setParticlesToScroll:function(t){var n=t.data;n.particlesToScroll=ln(1,n.particlesToScrollInit,n.particlesCountWithoutClones)}},methods:{_prev:function(t){var n=t.data;n.currentParticleIndex=hn({infinite:n.infinite,pageIndex:n.currentPageIndex-1,clonesCountHead:n.clonesCountHead,clonesCountTail:n.clonesCountTail,particlesToScroll:n.particlesToScroll,particlesCount:n.particlesCount,particlesToShow:n.particlesToShow})},_next:function(t){var n=t.data;n.currentParticleIndex=hn({infinite:n.infinite,pageIndex:n.currentPageIndex+1,clonesCountHead:n.clonesCountHead,clonesCountTail:n.clonesCountTail,particlesToScroll:n.particlesToScroll,particlesCount:n.particlesCount,particlesToShow:n.particlesToShow})},_moveToParticle:function(t,n){var e=t.data;e.currentParticleIndex=ln(0,n,e.particlesCount-1)},toggleFocused:function(t){var n=t.data;n.focused=!n.focused},_applyAutoplayIfNeeded:function(t){return Sn(An.mark((function e(){var a,r,s;return An.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.data,r=t.methods,a.infinite||!(a.autoplayDirection===Zt&&a.currentParticleIndex===a.particlesCount-1||a.autoplayDirection===Yt&&0===a.currentParticleIndex)){e.next=4;break}return n.reset(),e.abrupt("return");case 4:if(!a.autoplay){e.next=8;break}return s=function(){var t;return _n((ot(t={},Zt,Sn(An.mark((function t(){return An.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.showNextPage());case 1:case"end":return t.stop()}}),t)})))),ot(t,Yt,Sn(An.mark((function t(){return An.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.showPrevPage());case 1:case"end":return t.stop()}}),t)})))),t))(a.autoplayDirection)},e.next=8,n.start(s);case 8:case"end":return e.stop()}}),e)})))()},_jumpIfNeeded:function(t){return Sn(An.mark((function n(){var e,a,r;return An.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e=t.data,a=t.methods,r=!1,!e.infinite){n.next=13;break}if(0!==e.currentParticleIndex){n.next=9;break}return n.next=6,a.showParticle(e.particlesCount-e.clonesCountTotal,{animated:!1});case 6:r=!0,n.next=13;break;case 9:if(e.currentParticleIndex!==e.particlesCount-e.clonesCountTail){n.next=13;break}return n.next=12,a.showParticle(e.clonesCountHead,{animated:!1});case 12:r=!0;case 13:return n.abrupt("return",r);case 14:case"end":return n.stop()}}),n)})))()},changePage:function(t,e,a){return Sn(An.mark((function r(){var s,o;return An.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=t.data,o=t.methods,n.reset(),!s.disabled){r.next=4;break}return r.abrupt("return");case 4:return s.disabled=!0,e(),r.next=8,o.offsetPage({animated:xn(a,"animated",!0)});case 8:return s.disabled=!1,r.next=11,o._jumpIfNeeded();case 11:!r.sent&&o._applyAutoplayIfNeeded();case 13:case"end":return r.stop()}}),r)})))()},showNextPage:function(t,n){return Sn(An.mark((function e(){var a,r;return An.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.data,r=t.methods,!a.disabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,r.changePage(r._next,n);case 5:case"end":return e.stop()}}),e)})))()},showPrevPage:function(t,n){return Sn(An.mark((function e(){var a,r;return An.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.data,r=t.methods,!a.disabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,r.changePage(r._prev,n);case 5:case"end":return e.stop()}}),e)})))()},showParticle:function(t,n,e){return Sn(An.mark((function a(){var r;return An.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=t.methods,a.next=3,r.changePage((function(){return r._moveToParticle(n)}),e);case 3:case"end":return a.stop()}}),a)})))()},_getParticleIndexByPageIndex:function(t,n){var e=t.data;return hn({infinite:e.infinite,pageIndex:n,clonesCountHead:e.clonesCountHead,clonesCountTail:e.clonesCountTail,particlesToScroll:e.particlesToScroll,particlesCount:e.particlesCount,particlesToShow:e.particlesToShow})},showPage:function(t,n,e){return Sn(An.mark((function a(){var r,s;return An.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return r=t.methods,s=r._getParticleIndexByPageIndex(n),a.next=4,r.showParticle(s,e);case 4:case"end":return a.stop()}}),a)})))()},offsetPage:function(t,n){var e=t.data,a=xn(n,"animated",!0);return new Promise((function(t){e.durationMs=a?e.durationMsInit:0,e.offset=-e.currentParticleIndex*e.particleWidth,setTimeout((function(){t()}),e.durationMs)}))}}},{onChange:t}),a=Pn(e,2),r=a[0],s=a[1];return[{data:r,progressManager:n},s,e._internal]}const ze=t=>({currentPageIndex:32&t[0],pagesCount:1024&t[0],loaded:64&t[0]}),De=t=>({currentPageIndex:t[5],pagesCount:t[10],showPage:t[15],loaded:t[6]}),Ne=t=>({loaded:64&t[0],currentPageIndex:32&t[0]}),Re=t=>({showNextPage:t[14].showNextPage,loaded:t[6],currentPageIndex:t[5]}),Fe=t=>({loaded:64&t[0],currentPageIndex:32&t[0]}),We=t=>({loaded:t[6],currentPageIndex:t[5]}),qe=t=>({loaded:64&t[0],currentPageIndex:32&t[0]}),He=t=>({showPrevPage:t[14].showPrevPage,loaded:t[6],currentPageIndex:t[5]});function Be(t){let n;const e=t[37].prev,a=c(e,t,t[36],He),r=a||function(t){let n,e,a;return e=new Jt({props:{direction:"prev",disabled:!t[2]&&0===t[5]}}),e.$on("click",t[23]),{c(){n=g("div"),tt(e.$$.fragment),x(n,"class","sc-carousel__arrow-container svelte-uwo0yk")},m(t,r){$(t,n,r),nt(e,n,null),a=!0},p(t,n){const a={};36&n[0]&&(a.disabled=!t[2]&&0===t[5]),e.$set(a)},i(t){a||(Y(e.$$.fragment,t),a=!0)},o(t){Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),et(e)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){a?a.p&&96&n[0]|32&n[1]&&i(a,e,t,t[36],n,qe,He):r&&r.p&&36&n[0]&&r.p(t,n)},i(t){n||(Y(r,t),n=!0)},o(t){Z(r,t),n=!1},d(t){r&&r.d(t)}}}function Ue(t){let n,e,a;return e=new nn({props:{value:t[7]}}),{c(){n=g("div"),tt(e.$$.fragment),x(n,"class","sc-carousel-progress__container svelte-uwo0yk")},m(t,r){$(t,n,r),nt(e,n,null),a=!0},p(t,n){const a={};128&n[0]&&(a.value=t[7]),e.$set(a)},i(t){a||(Y(e.$$.fragment,t),a=!0)},o(t){Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),et(e)}}}function Ve(t){let n;const e=t[37].next,a=c(e,t,t[36],Re),r=a||function(t){let n,e,a;return e=new Jt({props:{direction:"next",disabled:!t[2]&&t[5]===t[10]-1}}),e.$on("click",t[14].showNextPage),{c(){n=g("div"),tt(e.$$.fragment),x(n,"class","sc-carousel__arrow-container svelte-uwo0yk")},m(t,r){$(t,n,r),nt(e,n,null),a=!0},p(t,n){const a={};1060&n[0]&&(a.disabled=!t[2]&&t[5]===t[10]-1),e.$set(a)},i(t){a||(Y(e.$$.fragment,t),a=!0)},o(t){Z(e.$$.fragment,t),a=!1},d(t){t&&d(n),et(e)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){a?a.p&&96&n[0]|32&n[1]&&i(a,e,t,t[36],n,Ne,Re):r&&r.p&&1060&n[0]&&r.p(t,n)},i(t){n||(Y(r,t),n=!0)},o(t){Z(r,t),n=!1},d(t){r&&r.d(t)}}}function Ge(t){let n;const e=t[37].dots,a=c(e,t,t[36],De),r=a||function(t){let n,e;return n=new Gt({props:{pagesCount:t[10],currentPageIndex:t[5]}}),n.$on("pageChange",t[41]),{c(){tt(n.$$.fragment)},m(t,a){nt(n,t,a),e=!0},p(t,e){const a={};1024&e[0]&&(a.pagesCount=t[10]),32&e[0]&&(a.currentPageIndex=t[5]),n.$set(a)},i(t){e||(Y(n.$$.fragment,t),e=!0)},o(t){Z(n.$$.fragment,t),e=!1},d(t){et(n,t)}}}(t);return{c(){r&&r.c()},m(t,e){r&&r.m(t,e),n=!0},p(t,n){a?a.p&&1120&n[0]|32&n[1]&&i(a,e,t,t[36],n,ze,De):r&&r.p&&1056&n[0]&&r.p(t,n)},i(t){n||(Y(r,t),n=!0)},o(t){Z(r,t),n=!1},d(t){r&&r.d(t)}}}function Ye(t){let n,e,a,o,u,l,h,v,_,k,b,C,j=t[1]&&Be(t);const P=t[37].default,T=c(P,t,t[36],We);let S=t[3]&&Ue(t),I=t[1]&&Ve(t),O=t[4]&&Ge(t);return{c(){n=g("div"),e=g("div"),j&&j.c(),a=m(),o=g("div"),u=g("div"),T&&T.c(),h=m(),S&&S.c(),v=m(),I&&I.c(),_=m(),O&&O.c(),x(u,"class","sc-carousel__pages-container svelte-uwo0yk"),w(u,"transform","translateX("+t[8]+"px)"),w(u,"transition-duration",t[9]+"ms"),w(u,"transition-timing-function",t[0]),x(o,"class","sc-carousel__pages-window svelte-uwo0yk"),x(e,"class","sc-carousel__content-container svelte-uwo0yk"),x(n,"class","sc-carousel__carousel-container svelte-uwo0yk")},m(r,s){$(r,n,s),f(n,e),j&&j.m(e,null),f(e,a),f(e,o),f(o,u),T&&T.m(u,null),t[39](u),f(o,h),S&&S.m(o,null),t[40](o),f(e,v),I&&I.m(e,null),f(n,_),O&&O.m(n,null),k=!0,b||(C=[p(l=on.call(null,u,{thresholdProvider:t[38]})),y(u,"swipeStart",t[16]),y(u,"swipeMove",t[18]),y(u,"swipeEnd",t[19]),y(u,"swipeFailed",t[20]),y(u,"swipeThresholdReached",t[17]),p(un.call(null,o)),y(o,"hovered",t[21]),p(fn.call(null,o)),y(o,"tapped",t[22])],b=!0)},p(t,r){t[1]?j?(j.p(t,r),2&r[0]&&Y(j,1)):(j=Be(t),j.c(),Y(j,1),j.m(e,a)):j&&(V(),Z(j,1,1,(()=>{j=null})),G()),T&&T.p&&96&r[0]|32&r[1]&&i(T,P,t,t[36],r,Fe,We),(!k||256&r[0])&&w(u,"transform","translateX("+t[8]+"px)"),(!k||512&r[0])&&w(u,"transition-duration",t[9]+"ms"),(!k||1&r[0])&&w(u,"transition-timing-function",t[0]),l&&s(l.update)&&2048&r[0]&&l.update.call(null,{thresholdProvider:t[38]}),t[3]?S?(S.p(t,r),8&r[0]&&Y(S,1)):(S=Ue(t),S.c(),Y(S,1),S.m(o,null)):S&&(V(),Z(S,1,1,(()=>{S=null})),G()),t[1]?I?(I.p(t,r),2&r[0]&&Y(I,1)):(I=Ve(t),I.c(),Y(I,1),I.m(e,null)):I&&(V(),Z(I,1,1,(()=>{I=null})),G()),t[4]?O?(O.p(t,r),16&r[0]&&Y(O,1)):(O=Ge(t),O.c(),Y(O,1),O.m(n,null)):O&&(V(),Z(O,1,1,(()=>{O=null})),G())},i(t){k||(Y(j),Y(T,t),Y(S),Y(I),Y(O),k=!0)},o(t){Z(j),Z(T,t),Z(S),Z(I),Z(O),k=!1},d(e){e&&d(n),j&&j.d(),T&&T.d(e),t[39](null),S&&S.d(),t[40](null),I&&I.d(),O&&O.d(),b=!1,r(C)}}}function Ze(t,n,e){let a,r,{$$slots:s={},$$scope:o}=n,c=[],u=0,i=0,l=1;const[{data:p,progressManager:f},$,d]=Le(((t,n)=>{_n({currentPageIndex:()=>e(5,a=n),progressValue:()=>e(7,r=n),offset:()=>e(8,u=n),durationMs:()=>e(9,i=n),pagesCount:()=>e(10,l=n),loaded:()=>e(6,c=n)})(t)})),g=S();let{timingFunction:h="ease-in-out"}=n,{arrows:m=!0}=n,{infinite:v=!0}=n,{initialPageIndex:y=0}=n,{duration:x=500}=n,{autoplay:_=!1}=n,{autoplayDuration:k=3e3}=n,{autoplayDirection:w=Zt}=n,{pauseOnFocus:b=!1}=n,{autoplayProgressVisible:C=!1}=n,{dots:j=!0}=n,{swiping:I=!0}=n,{particlesToShow:O=1}=n,{particlesToScroll:E=1}=n;let M,L,z=0;const D=(R=({width:t})=>{e(11,z=t),p.particleWidth=z/p.particlesToShow,function(t){for(var n=t.particlesContainerChildren,e=t.particleWidth,a=0;a{(async()=>{await N(),L&&M&&(p.particlesCountWithoutClones=L.children.length,await N(),p.infinite&&function(){const{clonesToAppend:t,clonesToPrepend:n}=function(t){for(var n=t.clonesCountHead,e=t.clonesCountTail,a=t.particlesContainerChildren,r=[],s=0;sc-1-n;u--)o.push(a[u].cloneNode(!0));return{clonesToAppend:r,clonesToPrepend:o}}({clonesCountHead:p.clonesCountHead,clonesCountTail:p.clonesCountTail,particlesContainerChildren:L.children});!function(t){for(var n=t.particlesContainer,e=t.clonesToAppend,a=t.clonesToPrepend,r=0;r{D.disconnect(),f.reset()},P().$$.on_destroy.push(F);return t.$$set=t=>{"timingFunction"in t&&e(0,h=t.timingFunction),"arrows"in t&&e(1,m=t.arrows),"infinite"in t&&e(2,v=t.infinite),"initialPageIndex"in t&&e(24,y=t.initialPageIndex),"duration"in t&&e(25,x=t.duration),"autoplay"in t&&e(26,_=t.autoplay),"autoplayDuration"in t&&e(27,k=t.autoplayDuration),"autoplayDirection"in t&&e(28,w=t.autoplayDirection),"pauseOnFocus"in t&&e(29,b=t.pauseOnFocus),"autoplayProgressVisible"in t&&e(3,C=t.autoplayProgressVisible),"dots"in t&&e(4,j=t.dots),"swiping"in t&&e(30,I=t.swiping),"particlesToShow"in t&&e(31,O=t.particlesToShow),"particlesToScroll"in t&&e(32,E=t.particlesToScroll),"$$scope"in t&&e(36,o=t.$$scope)},t.$$.update=()=>{32&t.$$.dirty[0]&&g("pageChange",a),4&t.$$.dirty[0]&&(p.infinite=v),33554432&t.$$.dirty[0]&&(p.durationMsInit=x),67108864&t.$$.dirty[0]&&(p.autoplay=_),134217728&t.$$.dirty[0]&&(p.autoplayDuration=k),268435456&t.$$.dirty[0]&&(p.autoplayDirection=w),536870912&t.$$.dirty[0]&&(p.pauseOnFocus=b),1&t.$$.dirty[1]&&(p.particlesToShowInit=O),2&t.$$.dirty[1]&&(p.particlesToScrollInit=E)},[h,m,v,C,j,a,c,r,u,i,l,z,M,L,$,W,function(){I&&(p.durationMs=0)},async function(t){I&&await _n({[Zt]:$.showNextPage,[Yt]:$.showPrevPage})(t.detail.direction)},function(t){I&&(p.offset+=t.detail.dx)},function(){I&&$.showParticle(p.currentParticleIndex)},async function(){I&&await $.offsetPage({animated:!0})},function(t){p.focused=t.detail.value},function(){$.toggleFocused()},function(){$.showPrevPage()},y,x,_,k,w,b,I,O,E,async function(t,n){const e=xn(n,"animated",!0);if("number"!=typeof t)throw new Error("pageIndex should be a number");await $.showPage(t,{animated:e})},async function(t){const n=xn(t,"animated",!0);await $.showPrevPage({animated:n})},async function(t){const n=xn(t,"animated",!0);await $.showNextPage({animated:n})},o,s,()=>z/3,function(t){A[t?"unshift":"push"]((()=>{L=t,e(13,L)}))},function(t){A[t?"unshift":"push"]((()=>{M=t,e(12,M)}))},t=>W(t.detail)]}class Ke extends rt{constructor(t){super(),at(this,t,Ze,Ye,o,{timingFunction:0,arrows:1,infinite:2,initialPageIndex:24,duration:25,autoplay:26,autoplayDuration:27,autoplayDirection:28,pauseOnFocus:29,autoplayProgressVisible:3,dots:4,swiping:30,particlesToShow:31,particlesToScroll:32,goTo:33,goToPrev:34,goToNext:35},[-1,-1])}get goTo(){return this.$$.ctx[33]}get goToPrev(){return this.$$.ctx[34]}get goToNext(){return this.$$.ctx[35]}}var Xe=[{title:"GitHub",iconName:"github-logo",url:"https://github.com/vadimkorr/svelte-carousel"},{title:"NPM",iconName:"npm-logo",url:"https://www.npmjs.com/package/svelte-carousel"},{title:"YouTube",iconName:"youtube-logo",url:"https://www.youtube.com/channel/UCQnQ5wh8Eh1q-E2s-fN1Xcg"},{title:"REPL",url:"https://svelte.dev/repl/f503a458832f4a358d9ec00f88945ff5"}];function Je(t,n,e){const a=t.slice();return a[3]=n[e].url,a[4]=n[e].title,a[5]=n[e].iconName,a}function Qe(t,n,e){const a=t.slice();return a[8]=n[e],a}function ta(t,n){let e,a;return{key:t,first:null,c(){e=g("img"),x(e,"class","docs__main-layout__logo svelte-1g4wbsx"),e.src!==(a="./svelte-carousel-logo-md-full-width.png")&&x(e,"src","./svelte-carousel-logo-md-full-width.png"),x(e,"alt","svelte-carousel-logo"),this.first=e},m(t,n){$(t,e,n)},d(t){t&&d(e)}}}function na(n){let e,a=[],r=new Map,s=Array.from(Array(3).keys());const o=t=>t[8];for(let t=0;tt[4];for(let n=0;n{"$$scope"in t&&e(2,r=t.$$scope)},[s,a,r]}class ca extends rt{constructor(t){super(),at(this,t,oa,sa,o,{})}} /** * @license * Lodash