@vkontakte/videoplayer 1.1.55-dev.7131fb97.0 → 1.1.55-dev.74e495c6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2018.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.55-dev.7131fb97.0
3
- * Mon, 03 Feb 2025 12:51:57 GMT
2
+ * @vkontakte/videoplayer v1.1.55-dev.74e495c6.0
3
+ * Wed, 05 Feb 2025 12:51:40 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-55/doc/
5
5
  */
6
6
  "use strict";var d_=Object.create;var id=Object.defineProperty;var c_=Object.getOwnPropertyDescriptor;var u_=Object.getOwnPropertyNames;var p_=Object.getPrototypeOf,f_=Object.prototype.hasOwnProperty;var Nm=t=>{throw TypeError(t)};var m_=(t,e,i)=>e in t?id(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var v_=(t,e)=>{for(var i in e)id(t,i,{get:e[i],enumerable:!0})},Dm=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of u_(e))!f_.call(t,n)&&n!==i&&id(t,n,{get:()=>e[n],enumerable:!(o=c_(e,n))||o.enumerable});return t};var Om=(t,e,i)=>(i=t!=null?d_(p_(t)):{},Dm(e||!t||!t.__esModule?id(i,"default",{value:t,enumerable:!0}):i,t)),g_=t=>Dm(id({},"__esModule",{value:!0}),t);var Hn=(t,e,i)=>m_(t,typeof e!="symbol"?e+"":e,i),Gp=(t,e,i)=>e.has(t)||Nm("Cannot "+i);var ki=(t,e,i)=>(Gp(t,e,"read from private field"),i?i.call(t):e.get(t)),vs=(t,e,i)=>e.has(t)?Nm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ma=(t,e,i,o)=>(Gp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Hm=(t,e,i)=>(Gp(t,e,"access private method"),i);var s3={};v_(s3,{ControlButtonType:()=>Ed,GridTypes:()=>xr,InterfaceLanguage:()=>Xl.InterfaceLanguage,MenuItemType:()=>ul,VERSION:()=>ca,VKNumericLanguage:()=>Xl.VKNumericLanguage,VideoFormat:()=>Wp.VideoFormat,VideoQuality:()=>Wp.VideoQuality,loadVKLangPack:()=>Xl.loadVKLangPack,registerPlayerWebComponent:()=>r3});module.exports=g_(s3);var Ro=Symbol("$state"),jr=Symbol("$state metadata"),od=Symbol("legacy props"),Fm=Symbol("");var Um,zm,Yp=(zm=(Um=globalThis.process)==null?void 0:Um.env)==null?void 0:zm.NODE_ENV;Yp||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Fe=Yp&&!Yp.toLowerCase().includes("prod");var $r=Array.isArray,qm=Array.prototype.indexOf,nd=Array.from,jp=Object.keys,Ji=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,Wd=Object.getOwnPropertyDescriptors,Zp=Object.prototype,Wm=Array.prototype,Zr=Object.getPrototypeOf;function Ws(t){return typeof t=="function"}var Gt=()=>{};function Km(t){return t()}function gs(t){for(var e=0;e<t.length;e++)t[e]()}var Kd=!1,Gm=!1,Xp=[],Qm=[];function Ym(){Kd=!1;let t=Xp.slice();Xp=[],gs(t)}function __(){Gm=!1;let t=Qm.slice();Qm=[],gs(t)}function $n(t){Kd||(Kd=!0,queueMicrotask(Ym)),Xp.push(t)}function jm(){Kd&&Ym(),Gm&&__()}var Ks="font-weight: bold",Qs="font-weight: normal";function Zm(t,e,i){Fe?console.warn(`%c[svelte] hydration_attribute_changed
@@ -42,7 +42,7 @@ ${n.map(h=>`
42
42
  ${a}in ${h}`).join("")}
43
43
  `}),Ji(t,"component_stack",{value:n});let c=t.stack;if(c){let h=c.split(`
44
44
  `),g=[];for(let _=0;_<h.length;_++){let b=h[_];b.includes("svelte/src/internal")||g.push(b)}Ji(t,"stack",{value:g.join(`
45
- `)})}if(Cv(t,e),Sv(e))throw t}function Zd(t){var h,g;var e=xo,i=zn,o=es,n=Ot,r=ns,l=br,d=Pt,a=t.f;xo=null,zn=0,es=null,Ot=a&96?null:t,ns=!is&&(a&256)!==0,br=null,Pt=t.ctx,tc++;try{var c=(0,t.fn)(),v=t.deps;if(xo!==null){var m;if(Js(t,zn),v!==null&&zn>0)for(v.length=zn+xo.length,m=0;m<xo.length;m++)v[zn+m]=xo[m];else t.deps=v=xo;if(!ns)for(m=zn;m<v.length;m++)((g=(h=v[m]).reactions)!=null?g:h.reactions=[]).push(t)}else v!==null&&zn<v.length&&(Js(t,zn),v.length=zn);return n!==null&&tc++,c}finally{xo=e,zn=i,es=o,Ot=n,ns=r,br=l,Pt=d}}function E_(t,e){let i=e.reactions;if(i!==null){var o=qm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(xo===null||!xo.includes(e))&&(jo(e,4096),e.f&768||(e.f^=512),Js(e,0))}function Js(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)E_(t,i[o])}function Xs(t){var e=t.f;if(!(e&16384)){jo(t,1024);var i=St,o=Pt;if(St=t,Fe){var n=Go;Go=t.component_function}try{e&16?Lv(t):$f(t),_f(t),hf(t);var r=Zd(t);t.teardown=typeof r=="function"?r:null,t.wv=kv;var l=t.deps;if(Fe&&Br&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=ad(),d.trace_need_increase=void 0,d.trace_v=void 0)}Fe&&cd.push(t)}catch(a){Wa(a,t,i,o||t.ctx)}finally{St=i,Fe&&(Go=n)}}}function Tv(){console.error("Last ten effects were: ",cd.slice(-10).map(t=>t.fn)),cd=[]}function Pv(){if(za>1e3){za=0;try{dv()}catch(t){if(Fe&&Ji(t,"stack",{value:""}),Ua!==null)if(Fe)try{Wa(t,Ua,null,null)}catch(e){throw Tv(),e}else Wa(t,Ua,null,null);else throw Fe&&Tv(),t}}za++}function Av(t){var e=t.length;if(e!==0){Pv();var i=is;is=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Mv(n,r),k_(r)}}finally{is=i}}}function k_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{_s(o)&&(Xs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bf(o):o.fn=null))}catch(n){Wa(n,o,null,o.ctx)}}}function P_(){if(dd=!1,za>1001)return;let t=ea;ea=[],Av(t),dd||(za=0,Ua=null,Fe&&(cd=[]))}function Ha(t){Jd===Ev&&(dd||(dd=!0,queueMicrotask(P_))),Ua=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}ea.push(e)}function Mv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else try{_s(i)&&Xs(i)}catch(m){Wa(m,i,null,i.ctx)}var a=i.first;if(a!==null){i=a;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var c=m.next;if(c!==null){i=c;continue e}m=m.parent}}i=d}for(var v=0;v<o.length;v++)a=o[v],e.push(a),Mv(a,e)}function u(t){var e=Jd,i=ea;try{Pv();let n=[];Jd=I_,ea=n,dd=!1,Av(i);var o=t==null?void 0:t();return jm(),(ea.length>0||n.length>0)&&u(),za=0,Ua=null,Fe&&(cd=[]),o}finally{Jd=e,ea=i}}async function uo(){await Promise.resolve(),u()}function s(t){var m,h;var e=t.f,i=(e&2)!==0;if(i&&e&16384){var o=pf(t);return ld(t),o}if(sd!==null&&sd.add(t),Ot!==null){br!==null&&br.includes(t)&&gv();var n=Ot.deps;t.rv<tc&&(t.rv=tc,xo===null&&n!==null&&n[zn]===t?zn++:xo===null?xo=[t]:xo.push(t),es!==null&&St!==null&&St.f&1024&&!(St.f&32)&&es.includes(t)&&(jo(St,2048),Ha(St)))}else if(i&&t.deps===null)for(var r=t,l=r.parent,d=r;l!==null;)if(l.f&2){var a=l;d=a,l=a.parent}else{var c=l;(m=c.deriveds)!=null&&m.includes(d)||((h=c.deriveds)!=null?h:c.deriveds=[]).push(d);break}if(i&&(r=t,_s(r)&&ff(r)),Fe&&Br&&rd!==null&&Ot!==null&&rd.reaction===Ot){if(t.debug)t.debug();else if(t.created){var v=rd.entries.get(t);v===void 0&&(v={read:[]},rd.entries.set(t,v)),v.read.push(Jr("TracedAt"))}}return t.v}function mi(t){let e=Ot;try{return Ot=null,t()}finally{Ot=e}}var A_=-7169;function jo(t,e){t.f=t.f&A_|e}function ta(t){let i=gf("getContext").get(t);if(Fe){let o=Pt.function;o&&Yd(i,o,!0)}return i}function ia(t,e){return gf("setContext").set(t,e),e}function Qa(){let t=gf("getAllContexts");if(Fe){let e=Pt==null?void 0:Pt.function;if(e)for(let i of t.values())Yd(i,e,!0)}return t}function gf(t){var e;return Pt===null&&Fa(t),(e=Pt.c)!=null?e:Pt.c=new Map(M_(Pt)||void 0)}function M_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}function nc(t,e=1){var i=s(t),o=e===1?i++:i--;return Q(t,i),o}function k(t,e=!1,i){Pt={p:Pt,c:null,e:null,m:!1,s:t,x:null,l:null},Vr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Bi(!1)}),Fe&&(Pt.function=i,Go=i)}function P(t){var l,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=St,o=Ot;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];eo(r.effect),Zo(r.reaction),qn(r.fn)}}finally{eo(i),Zo(o)}}Pt=e.p,Fe&&(Go=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function rc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ro in t)ic(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ro in i&&ic(i)}}}function ic(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{ic(t[o],e)}catch(n){}let i=Zr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Wd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}if(Fe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;fv(e)},set:o=>{i=o}})}};L_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var L_;var gt=!1;function yn(t){gt=t}var Tt;function yi(t){if(t===null)throw Gs(),Xr;return Tt=t}function Ui(){return yi(wo(Tt))}function $(t){if(gt){if(wo(Tt)!==null)throw Gs(),Xr;Tt=t}}function Pe(t=1){if(gt){for(var e=t,i=Tt;e--;)i=wo(i);Tt=i}}function Ga(){for(var t=0,e=Tt;;){if(e.nodeType===8){var i=e.data;if(i===js){if(t===0)return e;t-=1}else(i===La||i===Ys)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function be(t,e=null,i){var c,v;var o=null;if(Fe&&Br&&(o=Jr("CreatedAt")),typeof t!="object"||t===null||Ro in t)return t;let n=Zr(t);if(n!==Zp&&n!==Wm)return t;var r=new Map,l=$r(t),d=Bi(0);l&&r.set("length",Bi(t.length,o));var a;if(Fe)if(a={parent:e,owners:null},i){let m=(v=(c=i.v)==null?void 0:c[jr])==null?void 0:v.owners;a.owners=m?new Set(m):null}else a.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty(m,h,g){(!("value"in g)||g.configurable===!1||g.enumerable===!1||g.writable===!1)&&mv();var _=r.get(h);return _===void 0?(_=Bi(g.value,o),r.set(h,_)):Q(_,be(g.value,a)),!0},deleteProperty(m,h){var g=r.get(h);if(g===void 0)h in m&&r.set(h,Bi(Fi,o));else{if(l&&typeof h=="string"){var _=r.get("length"),b=Number(h);Number.isInteger(b)&&b<_.v&&Q(_,b)}Q(g,Fi),Rv(d)}return!0},get(m,h,g){var O;if(Fe&&h===jr)return a;if(h===Ro)return t;var _=r.get(h),b=h in m;if(_===void 0&&(!b||(O=Fn(m,h))!=null&&O.writable)&&(_=Bi(be(b?m[h]:Fi,a),o),r.set(h,_)),_!==void 0){var T=s(_);if(Fe){var L=T==null?void 0:T[jr];L&&(L==null?void 0:L.parent)!==a&&tf(a,L)}return T===Fi?void 0:T}return Reflect.get(m,h,g)},getOwnPropertyDescriptor(m,h){var g=Reflect.getOwnPropertyDescriptor(m,h);if(g&&"value"in g){var _=r.get(h);_&&(g.value=s(_))}else if(g===void 0){var b=r.get(h),T=b==null?void 0:b.v;if(b!==void 0&&T!==Fi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return g},has(m,h){var T;if(Fe&&h===jr||h===Ro)return!0;var g=r.get(h),_=g!==void 0&&g.v!==Fi||Reflect.has(m,h);if(g!==void 0||St!==null&&(!_||(T=Fn(m,h))!=null&&T.writable)){g===void 0&&(g=Bi(_?be(m[h],a):Fi,o),r.set(h,g));var b=s(g);if(b===Fi)return!1}return _},set(m,h,g,_){var Y;var b=r.get(h),T=h in m;if(l&&h==="length")for(var L=g;L<b.v;L+=1){var O=r.get(L+"");O!==void 0?Q(O,Fi):L in m&&(O=Bi(Fi,o),r.set(L+"",O))}if(b===void 0?(!T||(Y=Fn(m,h))!=null&&Y.writable)&&(b=Bi(void 0,o),Q(b,be(g,a)),r.set(h,b)):(T=b.v!==Fi,Q(b,be(g,a))),Fe){var V=g==null?void 0:g[jr];V&&(V==null?void 0:V.parent)!==a&&tf(a,V),ov(a)}var U=Reflect.getOwnPropertyDescriptor(m,h);if(U!=null&&U.set&&U.set.call(_,g),!T){if(l&&typeof h=="string"){var S=r.get("length"),N=Number(h);Number.isInteger(N)&&N>=S.v&&Q(S,N+1)}Rv(d)}return!0},ownKeys(m){s(d);var h=Reflect.ownKeys(m).filter(b=>{var T=r.get(b);return T===void 0||T.v!==Fi});for(var[g,_]of r)_.v!==Fi&&!(g in m)&&h.push(g);return h},setPrototypeOf(){vv()}})}function Rv(t,e=1){Q(t,t.v+e)}function sc(t){return t!==null&&typeof t=="object"&&Ro in t?t[Ro]:t}function Vv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(sc(this[a])===r){Qd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(sc(this[a])===r){Qd("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(sc(this[a])===r){Qd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var oa,Bv,Nv,Dv;function ac(){if(oa===void 0){oa=window,Bv=document;var t=Element.prototype,e=Node.prototype;Nv=Fn(e,"firstChild").get,Dv=Fn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Fe&&(t.__svelte_meta=null,Vv())}}function xn(t=""){return document.createTextNode(t)}function _i(t){return Nv.call(t)}function wo(t){return Dv.call(t)}function y(t,e){if(!gt)return _i(t);var i=_i(Tt);if(i===null)i=Tt.appendChild(xn());else if(e&&i.nodeType!==3){var o=xn();return i==null||i.before(o),yi(o),o}return yi(i),i}function we(t,e){var n,r;if(!gt){var i=_i(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&((n=Tt)==null?void 0:n.nodeType)!==3){var o=xn();return(r=Tt)==null||r.before(o),yi(o),o}return Tt}function D(t,e=1,i=!1){let o=gt?Tt:t;for(var n;e--;)n=o,o=wo(o);if(!gt)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=xn();return o===null?n==null||n.after(l):o.before(l),yi(l),l}return yi(o),o}function ud(t){t.textContent=""}function yf(t){St===null&&Ot===null&&lv(t),Ot!==null&&Ot.f&256&&av(),oc&&sv(t)}function R_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function na(t,e,i,o=!0){var v;var n=(t&64)!==0,r=St;if(Fe)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Pt,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(Fe&&(l.component_function=Go),i){var d=is;try{Na(!0),Xs(l),l.f|=32768}catch(m){throw co(l),m}finally{Na(d)}}else e!==null&&Ha(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&R_(l,r),Ot!==null&&Ot.f&2)){var c=Ot;((v=c.children)!=null?v:c.children=[]).push(l)}return l}function Wn(t){let e=na(8,null,!1);return jo(e,1024),e.teardown=t,e}function We(t){var n;yf("$effect");var e=St!==null&&(St.f&32)!==0&&Pt!==null&&!Pt.m;if(Fe&&Ji(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:St,reaction:Ot})}else{var o=qn(t);return o}}function Ra(t){return yf("$effect.pre"),Fe&&Ji(t,"name",{value:"$effect.pre"}),yo(t)}function lc(t){let e=na(64,t,!0);return()=>{co(e)}}function Fv(t){let e=na(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Kn(e,()=>{co(e),o(void 0)}):(co(e),o(void 0))})}function qn(t){return na(4,t,!1)}function yo(t){return na(8,t,!0)}function R(t){return Fe&&Ji(t,"name",{value:"{expression}"}),po(t)}function po(t,e=0){return na(24|e,t,!0)}function Yi(t,e=!0){return na(40,t,!0,e)}function hf(t){var e=t.teardown;if(e!==null){let i=oc,o=Ot;vf(!0),Zo(null);try{e.call(null)}finally{vf(i),Zo(o)}}}function _f(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var i=0;i<e.length;i+=1)ld(e[i])}}function $f(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;co(i,e),i=o}}function Lv(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||co(e),e=i}}function co(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:wo(o);o.remove(),o=r}i=!0}$f(t,e&&!i),_f(t),Js(t,0),jo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();hf(t);var d=t.parent;d!==null&&d.first!==null&&bf(t),Fe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function bf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Kn(t,e){var i=[];dc(t,i,!0),xf(i,()=>{co(t),e&&e()})}function xf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function dc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;dc(o,e,r?i:!1),o=n}}}function ys(t){Uv(t,!0)}function Uv(t,e){if(t.f&8192){_s(t)&&Xs(t),t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Uv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function wf(t,e){if(e){let i=document.body;t.autofocus=!0,$n(()=>{document.activeElement===i&&t.focus()})}}function Cf(t){var e=Ot,i=St;Zo(null),eo(null);try{return t()}finally{Zo(e),eo(i)}}var Sf=new Set,cc=new Set;function ra(t){if(!gt)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Tf(t,e,i,o){function n(r){if(o.capture||Ya.call(e,r),!r.cancelBubble)return Cf(()=>i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?$n(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Dt(t,e,i,o,n){var r={capture:o,passive:n},l=Tf(t,e,i,r);(e===document.body||e===window||e===document)&&Wn(()=>{e.removeEventListener(t,l,r)})}function wt(t){for(var e=0;e<t.length;e++)Sf.add(t[e]);for(var i of cc)i(t)}function Ya(t){var O;var e=this,i=e.ownerDocument,o=t.type,n=((O=t.composedPath)==null?void 0:O.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){Ji(t,"currentTarget",{configurable:!0,get(){return r||i}});var v=Ot,m=St;Zo(null),eo(null);try{for(var h,g=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var b=r["__"+o];if(b!==void 0&&!r.disabled)if($r(b)){var[T,...L]=b;T.apply(r,[t,...L])}else b.call(r,t)}catch(V){h?g.push(V):h=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(h){for(let V of g)queueMicrotask(()=>{throw V});throw h}}finally{t.__root=e,delete t.currentTarget,Zo(v),eo(m)}}}var B_;function zv(){B_=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Co(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function F(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(gt)return Co(Tt,null),Tt;n===void 0&&(n=ja(r?t:"<!>"+t),i||(n=_i(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=_i(l),a=l.lastChild;Co(d,a)}else Co(l,l);return l}}function Ae(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(gt)return Co(Tt,null),Tt;if(!l){var d=ja(r),a=_i(d);if(n)for(l=document.createDocumentFragment();_i(a);)l.appendChild(_i(a));else l=_i(a)}var c=l.cloneNode(!0);if(n){var v=_i(c),m=c.lastChild;Co(v,m)}else Co(c,c);return c}}function nr(t=""){if(!gt){var e=xn(t+"");return Co(e,e),e}var i=Tt;return i.nodeType!==3&&(i.before(i=xn()),yi(i)),Co(i,i),i}function Ge(){if(gt)return Co(Tt,null),Tt;var t=document.createDocumentFragment(),e=document.createComment(""),i=xn();return t.append(e,i),Co(e,i),t}function w(t,e){if(gt){St.nodes_end=Tt,Ui();return}t!==null&&t.before(e)}var D_=/\r/g;function Wv(t){t=t.replace(D_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Kv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var O_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qv(t){return O_.includes(t)}var H_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var F_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Gv(t){var e;return t=t.toLowerCase(),(e=F_[t])!=null?e:t}var C5=[...H_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var U_=["touchstart","touchmove"];function Yv(t){return U_.includes(t)}function If(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ef=!0;function Ie(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i==null?"":i+"")}function uc(t,e){return jv(t,e)}function Pf(t,e){var l;ac(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=gt,n=Tt;try{for(var r=_i(i);r&&(r.nodeType!==8||r.data!==La);)r=wo(r);if(!r)throw Xr;yn(!0),yi(r),Ui();let d=jv(t,{...e,anchor:r});if(Tt===null||Tt.nodeType!==8||Tt.data!==js)throw Gs(),Xr;return yn(!1),d}catch(d){if(d===Xr)return e.recover===!1&&cv(),ac(),ud(i),yn(!1),uc(t,e);throw d}finally{yn(o),yi(n),zv()}}var Za=new Map;function jv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){ac();var d=new Set,a=m=>{for(var h=0;h<m.length;h++){var g=m[h];if(!d.has(g)){d.add(g);var _=Yv(g);e.addEventListener(g,Ya,{passive:_});var b=Za.get(g);b===void 0?(document.addEventListener(g,Ya,{passive:_}),Za.set(g,1)):Za.set(g,b+1)}}};a(nd(Sf)),cc.add(a);var c=void 0,v=Fv(()=>{var m=i!=null?i:e.appendChild(xn());return Yi(()=>{if(r){k({});var h=Pt;h.c=r}n&&(o.$$events=n),gt&&Co(m,null),Ef=l,c=t(m,o)||{},Ef=!0,gt&&(St.nodes_end=Tt),r&&P()}),()=>{var _;for(var h of d){e.removeEventListener(h,Ya);var g=Za.get(h);--g===0?(document.removeEventListener(h,Ya),Za.delete(h)):Za.set(h,g)}cc.delete(a),m!==i&&((_=m.parentNode)==null||_.removeChild(m))}});return kf.set(c,v),c}var kf=new WeakMap;function Af(t,e){let i=kf.get(t);return i?(kf.delete(t),i(e)):(Fe&&Jm(),Promise.resolve())}var Lf;function E(t){return Lf=t.target,new Mf(t)}var rs,rr,Mf=class{constructor(e){vs(this,rs);vs(this,rr);var r,l;var i=new Map,o=(d,a)=>{var c=ts(a);return i.set(d,c),c};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===od?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var v;return Q((v=i.get(a))!=null?v:o(a,c),c),Reflect.set(d,a,c)}});Ma(this,rr,(e.hydrate?Pf:uc)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),Ma(this,rs,n.$$events);for(let d of Object.keys(ki(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||Ji(this,d,{get(){return ki(this,rr)[d]},set(a){ki(this,rr)[d]=a},enumerable:!0});ki(this,rr).$set=d=>{Object.assign(n,d)},ki(this,rr).$destroy=()=>{Af(ki(this,rr))}}$set(e){ki(this,rr).$set(e)}$on(e,i){ki(this,rs)[e]=ki(this,rs)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,rs)[e].push(o),()=>{ki(this,rs)[e]=ki(this,rs)[e].filter(n=>n!==o)}}$destroy(){ki(this,rr).$destroy()}};rs=new WeakMap,rr=new WeakMap;var Zv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zv);var Xv=new Map;function Jv(t,e){var i=Xv.get(t);i||(i=new Set,Xv.set(t,i)),i.add(e)}function W(t,e,i=!1){gt&&Ui();var o=t,n=null,r=null,l=Fi,d=i?65536:0,a=!1;let c=(m,h=!0)=>{a=!0,v(h,m)},v=(m,h)=>{if(l===(l=m))return;let g=!1;if(gt){let _=o.data===Ys;!!l===_&&(o=Ga(),yi(o),yn(!1),g=!0)}l?(n?ys(n):h&&(n=Yi(()=>h(o))),r&&Kn(r,()=>{r=null})):(r?ys(r):h&&(r=Yi(()=>h(o))),n&&Kn(n,()=>{n=null})),g&&yn(!0)};po(()=>{a=!1,e(c),a||v(null,null)},d),gt&&(o=Tt)}function pd(t,e,i){gt&&Ui();var o=t,n=Fi,r,l=hs()?nv:Va;po(()=>{l(n,n=e())&&(r&&Kn(r),r=Yi(()=>i(o)))}),gt&&(o=Tt)}var fd=null;function Pi(t,e){return e}function e$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)dc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ud(a),a.append(i),o.clear(),xs(t,e[0].prev,e[r-1].next)}xf(n,()=>{for(var c=0;c<r;c++){var v=e[c];d||(o.delete(v.k),xs(t,v.prev,v.next)),co(v.e,!d)}})}function xi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=gt?yi(_i(c)):c.appendChild(xn())}gt&&Ui();var v=null,m=!1,h=os(()=>{var g=i();return $r(g)?g:g==null?[]:nd(g)});po(()=>{var g=s(h),_=g.length;if(m&&_===0)return;m=_===0;let b=!1;if(gt){var T=l.data===Ys;T!==(_===0)&&(l=Ga(),yi(l),yn(!1),b=!0)}if(gt){for(var L=null,O,V=0;V<_;V++){if(Tt.nodeType===8&&Tt.data===js){l=Tt,b=!0,yn(!1);break}var U=g[V],S=o(U,V);O=ig(Tt,d,L,null,U,S,V,n,e,i),d.items.set(S,O),L=O}_>0&&yi(Ga())}if(!gt){var N=Ot;t$(g,d,l,n,e,(N.f&8192)!==0,o,i)}r!==null&&(_===0?v?ys(v):v=Yi(()=>r(l)):v!==null&&Kn(v,()=>{v=null})),b&&yn(!0),s(h)}),gt&&(l=Tt)}function t$(t,e,i,o,n,r,l,d){var fe,ie,ge,G;var a=(n&8)!==0,c=(n&3)!==0,v=t.length,m=e.items,h=e.first,g=h,_,b=null,T,L=[],O=[],V,U,S,N;if(a)for(N=0;N<v;N+=1)V=t[N],U=l(V,N),S=m.get(U),S!==void 0&&((fe=S.a)==null||fe.measure(),(T!=null?T:T=new Set).add(S));for(N=0;N<v;N+=1){if(V=t[N],U=l(V,N),S=m.get(U),S===void 0){var Y=g?g.e.nodes_start:i;b=ig(Y,e,b,b===null?e.first:b.next,V,U,N,o,n,d),m.set(U,b),L=[],O=[],g=b.next;continue}if(c&&i$(S,V,N,n),S.e.f&8192&&(ys(S.e),a&&((ie=S.a)==null||ie.unfix(),(T!=null?T:T=new Set).delete(S))),S!==g){if(_!==void 0&&_.has(S)){if(L.length<O.length){var K=O[0],j;b=K.prev;var oe=L[0],ce=L[L.length-1];for(j=0;j<L.length;j+=1)eg(L[j],K,i);for(j=0;j<O.length;j+=1)_.delete(O[j]);xs(e,oe.prev,ce.next),xs(e,b,oe),xs(e,ce,K),g=K,b=ce,N-=1,L=[],O=[]}else _.delete(S),eg(S,g,i),xs(e,S.prev,S.next),xs(e,S,b===null?e.first:b.next),xs(e,b,S),b=S;continue}for(L=[],O=[];g!==null&&g.k!==U;)(r||!(g.e.f&8192))&&(_!=null?_:_=new Set).add(g),O.push(g),g=g.next;if(g===null)continue;S=g}L.push(S),b=S,g=S.next}if(g!==null||_!==void 0){for(var X=_===void 0?[]:nd(_);g!==null;)(r||!(g.e.f&8192))&&X.push(g),g=g.next;var Z=X.length;if(Z>0){var He=n&4&&v===0?i:null;if(a){for(N=0;N<Z;N+=1)(ge=X[N].a)==null||ge.measure();for(N=0;N<Z;N+=1)(G=X[N].a)==null||G.fix()}e$(e,X,He,m)}}a&&$n(()=>{var ee;if(T!==void 0)for(S of T)(ee=S.a)==null||ee.apply()}),St.first=e.first&&e.first.e,St.last=b&&b.e}function i$(t,e,i,o){o&1&&Oa(t.v,e),o&2?Oa(t.i,i):t.i=i}function ig(t,e,i,o,n,r,l,d,a,c){var v=fd,m=(a&1)!==0,h=(a&16)===0,g=m?h?ts(n):Bi(n):n,_=a&2?Bi(l):l;Fe&&m&&(g.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var b={i:_,v:g,k:r,a:null,e:null,prev:i,next:o};fd=b;try{return b.e=Yi(()=>d(t,g,_),gt),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{fd=v}}function eg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=wo(r);n.before(r),r=l}}function xs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function o$(t,e,i){var r,l;if(!e||e===Wv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Go)!=null&&l[Vi]&&(o=`in ${Go[Vi]}`),Xm(If(o))}function md(t,e,i,o,n){var r=t,l="",d;po(()=>{var a;if(l===(l=(a=e())!=null?a:"")){gt&&Ui();return}d!==void 0&&(co(d),d=void 0),l!==""&&(d=Yi(()=>{if(gt){for(var c=Tt.data,v=Ui(),m=v;v!==null&&(v.nodeType!==8||v.data!=="");)m=v,v=wo(v);if(v===null)throw Gs(),Xr;Fe&&!n&&o$(v.parentNode,c,l),Co(Tt,m),r=yi(v);return}var h=l+"";i?h=`<svg>${h}</svg>`:o&&(h=`<math>${h}</math>`);var g=ja(h);if((i||o)&&(g=_i(g)),Co(_i(g),g.lastChild),i||o)for(;_i(g);)r.before(_i(g));else r.before(g)}))})}function Ve(t,e,i,o,n){var d;gt&&Ui();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function fo(t,e,...i){var o=t,n=Gt,r;po(()=>{n!==(n=e())&&(r&&(co(r),r=null),Fe&&n==null&&uv(),r=Yi(()=>n(o,...i)))},65536),gt&&(o=Tt)}function Ni(t,e,i){gt&&Ui();var o=t,n,r;po(()=>{n!==(n=e())&&(r&&(Kn(r),r=null),n&&(r=Yi(()=>i(o,n))))},65536),gt&&(o=Tt)}function le(t,e){$n(()=>{var n,r;var i=t.getRootNode(),o=(i.host?i:(n=i.head)!=null?n:i.ownerDocument.head)||((r=Lf)==null?void 0:r.parentNode);if(!(o!=null&&o.querySelector("#"+e.hash))){let l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l),Fe&&Jv(e.hash,l)}})}function og(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=og(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ng(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=og(t))&&(o&&(o+=" "),o+=e);return o}function vd(t){return typeof t=="object"?ng(t):t!=null?t:""}function ag(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(gt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||dg(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Fm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&lg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Be(t,e,i,o,n=!1,r=!1,l=!1){var O;var d=e||{},a=t.tagName==="OPTION";for(var c in e)c in i||(i[c]=null);i.class&&(i.class=vd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var v=lg(t),m=(O=t.__attributes)!=null?O:t.__attributes={};for(let V in i){let U=i[V];if(a&&V==="value"&&U==null){t.value=t.__value="",d[V]=U;continue}var h=d[V];if(U!==h){d[V]=U;var g=V[0]+V[1];if(g!=="$$"){if(g==="on"){let S={},N="$$"+V,Y=V.slice(2);var _=Qv(Y);if(Kv(Y)&&(Y=Y.slice(0,-7),S.capture=!0),!_&&h){if(U!=null)continue;t.removeEventListener(Y,d[N],S),d[N]=null}if(U!=null)if(_)t[`__${Y}`]=U,wt([Y]);else{let K=function(j){d[V].call(this,j)};var L=K;d[N]=Tf(Y,t,K,S)}else _&&(t[`__${Y}`]=void 0)}else if(V==="style"&&U!=null)t.style.cssText=U+"";else if(V==="autofocus")wf(t,!!U);else if(V==="__value"||V==="value"&&U!=null)t.value=t[V]=t.__value=U;else if(V==="selected"&&a)ag(t,U);else{var b=V;n||(b=Gv(b));var T=b==="defaultValue"||b==="defaultChecked";if(U==null&&!r&&!T)if(m[V]=null,b==="value"||b==="checked"){let S=t;if(b==="value"){let N=S.defaultValue;S.removeAttribute(b),S.defaultValue=N}else{let N=S.defaultChecked;S.removeAttribute(b),S.defaultChecked=N}}else t.removeAttribute(V);else T||v.includes(b)&&(r||typeof U!="string")?t[b]=U:typeof U!="function"&&(gt&&(b==="src"||b==="href"||b==="srcset")?l||dg(t,b,U!=null?U:""):me(t,b,U))}V==="style"&&"__styles"in t&&(t.__styles={})}}}return d}var rg=new Map;function lg(t){var e=rg.get(t.nodeName);if(e)return e;rg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Wd(o);for(var r in i)i[r].set&&e.push(r);o=Zr(o)}return e}function dg(t,e,i){var o;Fe&&(e==="srcset"&&r$(t,i)||Bf((o=t.getAttribute(e))!=null?o:"",i)||Zm(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Bf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function sg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function r$(t,e){var i=sg(t.srcset),o=sg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Bf(i[l][0],n)||Bf(n,i[l][0])))}function Xo(t,e,i){var o=t.__className,n=s$(e,i);gt&&t.className===n?t.__className=n:(o!==n||gt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function s$(t,e){return(t==null?"":t)+(e?" "+e:"")}function ne(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var ws,Xa,gd,fc,cg,mc=class mc{constructor(e){vs(this,fc);vs(this,ws,new WeakMap);vs(this,Xa);vs(this,gd);Ma(this,gd,e)}observe(e,i){var o=ki(this,ws).get(e)||new Set;return o.add(i),ki(this,ws).set(e,o),Hm(this,fc,cg).call(this).observe(e,ki(this,gd)),()=>{var n=ki(this,ws).get(e);n.delete(i),n.size===0&&(ki(this,ws).delete(e),ki(this,Xa).unobserve(e))}}};ws=new WeakMap,Xa=new WeakMap,gd=new WeakMap,fc=new WeakSet,cg=function(){var e;return(e=ki(this,Xa))!=null?e:Ma(this,Xa,new ResizeObserver(i=>{for(var o of i){mc.entries.set(o.target,o);for(var n of ki(this,ws).get(o.target)||[])n(o)}}))},Hn(mc,"entries",new WeakMap);var Nf=mc;var c$=new Nf({box:"border-box"});function sa(t,e,i){var o=c$.observe(t,()=>i(t[e]));qn(()=>(mi(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Ro])===e}function Ct(t={},e,i,o){return qn(()=>{var n,r;return yo(()=>{n=r,r=(o==null?void 0:o())||[],mi(()=>{t!==i(...r)&&(e(t,...r),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{$n(()=>{r&&ug(i(...r),t)&&e(null,...r)})}}),t}function yr(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>rc(e.s);if(t){let n=0,r={},l=x(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ra(()=>{pg(e,o),gs(i.b)}),We(()=>{let n=mi(()=>i.m.map(Km));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{pg(e,o),gs(i.a)})}function pg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function A(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function M(t){for(var e in t)e in this&&(this[e]=t[e])}function Ht(t){Pt===null&&Fa("onMount"),Vr&&Pt.l!==null?p$(Pt).m.push(t):We(()=>{let e=mi(t);if(typeof e=="function")return e})}function sr(t){Pt===null&&Fa("onDestroy"),Ht(()=>()=>mi(t))}function p$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function hd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Gt;let o=mi(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function ar(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Gt){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let a=!Ja.length;for(let c of o)c[1](),Ja.push(c,t);if(a){for(let c=0;c<Ja.length;c+=2)Ja[c][0](Ja[c+1]);Ja.length=0}}}function r(d){n(d(t))}function l(d,a=Gt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Gt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function vi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return ar(i,(l,d)=>{let a=!1,c=[],v=0,m=Gt,h=()=>{if(v)return;m();let _=e(o?c[0]:c,l,d);r?l(_):m=typeof _=="function"?_:Gt},g=n.map((_,b)=>hd(_,T=>{c[b]=T,v&=~(1<<b),a&&h()},()=>{v|=1<<b}));return a=!0,h(),function(){gs(g),m(),a=!1}})}function Le(t){let e;return hd(t,i=>e=i)(),e}var vc=!1,Df=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ts(void 0),unsubscribe:Gt};if(o.store!==t&&!(Df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Gt;else{var n=!0;o.unsubscribe=hd(t,l=>{n?o.source.v=l:Q(o.source,l)}),n=!1}return t&&Df in i?Le(t):s(o.source)}function Ze(){let t={};function e(){Wn(()=>{for(var i in t)t[i].unsubscribe();Ji(t,Df,{enumerable:!1,value:!0})})}return[t,e]}function Of(t){var e=vc;try{return vc=!1,[t(),vc]}finally{vc=e}}var h$={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),nc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),nc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e){return new Proxy({props:t,exclude:e,special:{},version:Bi(0)},h$)}var _$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ws(n)&&(n=n());let r=Fn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Fn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===od)return!1;for(let i of t.props)if(Ws(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ws(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ss(...t){return new Proxy({props:t},_$)}function fg(t){for(var e=St,i=St;e!==null&&!(e.f&96);)e=e.parent;try{return eo(e),t()}finally{eo(i)}}function p(t,e,i,o){var Y,K;var n=(i&1)!==0,r=!Vr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Of(()=>t[e]):c=t[e];var v=Ro in t||od in t,m=l&&((K=(Y=Fn(t,e))==null?void 0:Y.set)!=null?K:v&&e in t&&(j=>t[e]=j))||void 0,h=o,g=!0,_=!1,b=()=>(_=!0,g&&(g=!1,d?h=mi(o):h=o),h);c===void 0&&o!==void 0&&(m&&r&&pv(e),c=b(),m&&m(c));var T;if(r)T=()=>{var j=t[e];return j===void 0?b():(g=!0,_=!1,j)};else{var L=fg(()=>(n?x:os)(()=>t[e]));L.f|=131072,T=()=>{var j=s(L);return j!==void 0&&(h=void 0),j===void 0?h:j}}if(!(i&4))return T;if(m){var O=t.$$legacy;return function(j,oe){return arguments.length>0?((!r||!oe||O||a)&&m(oe?T():j),j):T()}}var V=!1,U=!1,S=ts(c),N=fg(()=>x(()=>{var j=T(),oe=s(S);return V?(V=!1,U=!0,oe):(U=!1,S.v=j)}));return n||(N.equals=Ba),function(j,oe){if(sd!==null&&(V=U,T(),s(S)),arguments.length>0){let ce=oe?s(N):r&&l?be(j):j;return N.equals(ce)||(V=!0,Q(S,ce),_&&h!==void 0&&(h=ce),mi(()=>s(N))),j}return s(N)}}var $$;typeof HTMLElement=="function"&&($$=class extends HTMLElement{constructor(e,i,o){super();Hn(this,"$$ctor");Hn(this,"$$s");Hn(this,"$$c");Hn(this,"$$cn",!1);Hn(this,"$$d",{});Hn(this,"$$r",!1);Hn(this,"$$p_d",{});Hn(this,"$$l",{});Hn(this,"$$l_u",new Map);Hn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),w(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=b$(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Hf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=lc(()=>{yo(()=>{var r;this.$$r=!0;for(let l of jp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Hf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Hf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function b$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Sr=require("@vkontakte/videoplayer-shared/es2018"),Jh=require("@vkontakte/videoplayer-statistics/es2018");var aa=require("@vkontakte/videoplayer-shared/es2018");var x$={isMobile:void 0,defaultLanguage:aa.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:aa.VideoQuality.Q_480P,highQualityLimit:aa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackStateValue:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},vg=t=>(0,aa.fillWithDefault)(t,x$),gg=t=>ia("ui-config",t),ei=()=>ta("ui-config");var _d="vk_player_debug_panel_opened";var hg="videoplayer",_g="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$g=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),bg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),yg=new Set(["ShiftRight","ShiftLeft"]);var xg=["TIMELINE"],$d=[...xg,"GRAPH_BUTTON"],Ff=[...xg,"PLAY_BUTTON"],bd=[...$d,"PLAY_BUTTON"];var xr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(xr||{}),da={xs:0,s:1,m:2,l:3,xl:4};var yd=require("@vkontakte/videoplayer-shared/es2018"),wg=require("@vkontakte/videoplayer-core/es2018"),Cg=require("@vkontakte/videoplayer-statistics/es2018");var gc="prod",ca="1.1.55-dev.7131fb97.0";var ua=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Sg=Symbol("storeContext"),Tg=Symbol("microStoresContext"),Ig=(t,e)=>{ia(Sg,t),ia(Tg,e),gc==="dev"&&(window.app={store:t,microStores:e})},De=()=>{let t=ta(Sg);return(0,yd.assertNonNullable)(t,"Store context is empty!"),t},Jo=()=>{let t=ta(Tg);return(0,yd.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>_c(t,t.getValue(),e),_c=(t,e,i)=>ar(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Eg=(t,e,i)=>{var L,O,V,U,S,N;let o=t.info,{width:n,height:r}=Le(i.ui.playerSize),l=(O=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?O:0,d=(U=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?U:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${ca} (core: ${wg.VERSION}, stat: ${Cg.VERSION}, shared: ${yd.VERSION})`,v=Le(i.state.errorLog$),m=v.length?`
45
+ `)})}if(Cv(t,e),Sv(e))throw t}function Zd(t){var h,g;var e=xo,i=zn,o=es,n=Ot,r=ns,l=br,d=Pt,a=t.f;xo=null,zn=0,es=null,Ot=a&96?null:t,ns=!is&&(a&256)!==0,br=null,Pt=t.ctx,tc++;try{var c=(0,t.fn)(),v=t.deps;if(xo!==null){var m;if(Js(t,zn),v!==null&&zn>0)for(v.length=zn+xo.length,m=0;m<xo.length;m++)v[zn+m]=xo[m];else t.deps=v=xo;if(!ns)for(m=zn;m<v.length;m++)((g=(h=v[m]).reactions)!=null?g:h.reactions=[]).push(t)}else v!==null&&zn<v.length&&(Js(t,zn),v.length=zn);return n!==null&&tc++,c}finally{xo=e,zn=i,es=o,Ot=n,ns=r,br=l,Pt=d}}function E_(t,e){let i=e.reactions;if(i!==null){var o=qm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(xo===null||!xo.includes(e))&&(jo(e,4096),e.f&768||(e.f^=512),Js(e,0))}function Js(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)E_(t,i[o])}function Xs(t){var e=t.f;if(!(e&16384)){jo(t,1024);var i=St,o=Pt;if(St=t,Fe){var n=Go;Go=t.component_function}try{e&16?Lv(t):$f(t),_f(t),hf(t);var r=Zd(t);t.teardown=typeof r=="function"?r:null,t.wv=kv;var l=t.deps;if(Fe&&Br&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=ad(),d.trace_need_increase=void 0,d.trace_v=void 0)}Fe&&cd.push(t)}catch(a){Wa(a,t,i,o||t.ctx)}finally{St=i,Fe&&(Go=n)}}}function Tv(){console.error("Last ten effects were: ",cd.slice(-10).map(t=>t.fn)),cd=[]}function Pv(){if(za>1e3){za=0;try{dv()}catch(t){if(Fe&&Ji(t,"stack",{value:""}),Ua!==null)if(Fe)try{Wa(t,Ua,null,null)}catch(e){throw Tv(),e}else Wa(t,Ua,null,null);else throw Fe&&Tv(),t}}za++}function Av(t){var e=t.length;if(e!==0){Pv();var i=is;is=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Mv(n,r),k_(r)}}finally{is=i}}}function k_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{_s(o)&&(Xs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bf(o):o.fn=null))}catch(n){Wa(n,o,null,o.ctx)}}}function P_(){if(dd=!1,za>1001)return;let t=ea;ea=[],Av(t),dd||(za=0,Ua=null,Fe&&(cd=[]))}function Ha(t){Jd===Ev&&(dd||(dd=!0,queueMicrotask(P_))),Ua=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}ea.push(e)}function Mv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else try{_s(i)&&Xs(i)}catch(m){Wa(m,i,null,i.ctx)}var a=i.first;if(a!==null){i=a;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var c=m.next;if(c!==null){i=c;continue e}m=m.parent}}i=d}for(var v=0;v<o.length;v++)a=o[v],e.push(a),Mv(a,e)}function u(t){var e=Jd,i=ea;try{Pv();let n=[];Jd=I_,ea=n,dd=!1,Av(i);var o=t==null?void 0:t();return jm(),(ea.length>0||n.length>0)&&u(),za=0,Ua=null,Fe&&(cd=[]),o}finally{Jd=e,ea=i}}async function uo(){await Promise.resolve(),u()}function s(t){var m,h;var e=t.f,i=(e&2)!==0;if(i&&e&16384){var o=pf(t);return ld(t),o}if(sd!==null&&sd.add(t),Ot!==null){br!==null&&br.includes(t)&&gv();var n=Ot.deps;t.rv<tc&&(t.rv=tc,xo===null&&n!==null&&n[zn]===t?zn++:xo===null?xo=[t]:xo.push(t),es!==null&&St!==null&&St.f&1024&&!(St.f&32)&&es.includes(t)&&(jo(St,2048),Ha(St)))}else if(i&&t.deps===null)for(var r=t,l=r.parent,d=r;l!==null;)if(l.f&2){var a=l;d=a,l=a.parent}else{var c=l;(m=c.deriveds)!=null&&m.includes(d)||((h=c.deriveds)!=null?h:c.deriveds=[]).push(d);break}if(i&&(r=t,_s(r)&&ff(r)),Fe&&Br&&rd!==null&&Ot!==null&&rd.reaction===Ot){if(t.debug)t.debug();else if(t.created){var v=rd.entries.get(t);v===void 0&&(v={read:[]},rd.entries.set(t,v)),v.read.push(Jr("TracedAt"))}}return t.v}function mi(t){let e=Ot;try{return Ot=null,t()}finally{Ot=e}}var A_=-7169;function jo(t,e){t.f=t.f&A_|e}function ta(t){let i=gf("getContext").get(t);if(Fe){let o=Pt.function;o&&Yd(i,o,!0)}return i}function ia(t,e){return gf("setContext").set(t,e),e}function Qa(){let t=gf("getAllContexts");if(Fe){let e=Pt==null?void 0:Pt.function;if(e)for(let i of t.values())Yd(i,e,!0)}return t}function gf(t){var e;return Pt===null&&Fa(t),(e=Pt.c)!=null?e:Pt.c=new Map(M_(Pt)||void 0)}function M_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}function nc(t,e=1){var i=s(t),o=e===1?i++:i--;return Q(t,i),o}function k(t,e=!1,i){Pt={p:Pt,c:null,e:null,m:!1,s:t,x:null,l:null},Vr&&!e&&(Pt.l={s:null,u:null,r1:[],r2:Bi(!1)}),Fe&&(Pt.function=i,Go=i)}function P(t){var l,d;let e=Pt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=St,o=Ot;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];eo(r.effect),Zo(r.reaction),qn(r.fn)}}finally{eo(i),Zo(o)}}Pt=e.p,Fe&&(Go=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function rc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ro in t)ic(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Ro in i&&ic(i)}}}function ic(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{ic(t[o],e)}catch(n){}let i=Zr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Wd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}if(Fe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;fv(e)},set:o=>{i=o}})}};L_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var L_;var gt=!1;function yn(t){gt=t}var Tt;function yi(t){if(t===null)throw Gs(),Xr;return Tt=t}function Ui(){return yi(wo(Tt))}function $(t){if(gt){if(wo(Tt)!==null)throw Gs(),Xr;Tt=t}}function Pe(t=1){if(gt){for(var e=t,i=Tt;e--;)i=wo(i);Tt=i}}function Ga(){for(var t=0,e=Tt;;){if(e.nodeType===8){var i=e.data;if(i===js){if(t===0)return e;t-=1}else(i===La||i===Ys)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function be(t,e=null,i){var c,v;var o=null;if(Fe&&Br&&(o=Jr("CreatedAt")),typeof t!="object"||t===null||Ro in t)return t;let n=Zr(t);if(n!==Zp&&n!==Wm)return t;var r=new Map,l=$r(t),d=Bi(0);l&&r.set("length",Bi(t.length,o));var a;if(Fe)if(a={parent:e,owners:null},i){let m=(v=(c=i.v)==null?void 0:c[jr])==null?void 0:v.owners;a.owners=m?new Set(m):null}else a.owners=e===null?Pt!==null?new Set([Pt.function]):null:new Set;return new Proxy(t,{defineProperty(m,h,g){(!("value"in g)||g.configurable===!1||g.enumerable===!1||g.writable===!1)&&mv();var _=r.get(h);return _===void 0?(_=Bi(g.value,o),r.set(h,_)):Q(_,be(g.value,a)),!0},deleteProperty(m,h){var g=r.get(h);if(g===void 0)h in m&&r.set(h,Bi(Fi,o));else{if(l&&typeof h=="string"){var _=r.get("length"),b=Number(h);Number.isInteger(b)&&b<_.v&&Q(_,b)}Q(g,Fi),Rv(d)}return!0},get(m,h,g){var O;if(Fe&&h===jr)return a;if(h===Ro)return t;var _=r.get(h),b=h in m;if(_===void 0&&(!b||(O=Fn(m,h))!=null&&O.writable)&&(_=Bi(be(b?m[h]:Fi,a),o),r.set(h,_)),_!==void 0){var T=s(_);if(Fe){var L=T==null?void 0:T[jr];L&&(L==null?void 0:L.parent)!==a&&tf(a,L)}return T===Fi?void 0:T}return Reflect.get(m,h,g)},getOwnPropertyDescriptor(m,h){var g=Reflect.getOwnPropertyDescriptor(m,h);if(g&&"value"in g){var _=r.get(h);_&&(g.value=s(_))}else if(g===void 0){var b=r.get(h),T=b==null?void 0:b.v;if(b!==void 0&&T!==Fi)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return g},has(m,h){var T;if(Fe&&h===jr||h===Ro)return!0;var g=r.get(h),_=g!==void 0&&g.v!==Fi||Reflect.has(m,h);if(g!==void 0||St!==null&&(!_||(T=Fn(m,h))!=null&&T.writable)){g===void 0&&(g=Bi(_?be(m[h],a):Fi,o),r.set(h,g));var b=s(g);if(b===Fi)return!1}return _},set(m,h,g,_){var Y;var b=r.get(h),T=h in m;if(l&&h==="length")for(var L=g;L<b.v;L+=1){var O=r.get(L+"");O!==void 0?Q(O,Fi):L in m&&(O=Bi(Fi,o),r.set(L+"",O))}if(b===void 0?(!T||(Y=Fn(m,h))!=null&&Y.writable)&&(b=Bi(void 0,o),Q(b,be(g,a)),r.set(h,b)):(T=b.v!==Fi,Q(b,be(g,a))),Fe){var V=g==null?void 0:g[jr];V&&(V==null?void 0:V.parent)!==a&&tf(a,V),ov(a)}var U=Reflect.getOwnPropertyDescriptor(m,h);if(U!=null&&U.set&&U.set.call(_,g),!T){if(l&&typeof h=="string"){var S=r.get("length"),N=Number(h);Number.isInteger(N)&&N>=S.v&&Q(S,N+1)}Rv(d)}return!0},ownKeys(m){s(d);var h=Reflect.ownKeys(m).filter(b=>{var T=r.get(b);return T===void 0||T.v!==Fi});for(var[g,_]of r)_.v!==Fi&&!(g in m)&&h.push(g);return h},setPrototypeOf(){vv()}})}function Rv(t,e=1){Q(t,t.v+e)}function sc(t){return t!==null&&typeof t=="object"&&Ro in t?t[Ro]:t}function Vv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(sc(this[a])===r){Qd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(sc(this[a])===r){Qd("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(sc(this[a])===r){Qd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var oa,Bv,Nv,Dv;function ac(){if(oa===void 0){oa=window,Bv=document;var t=Element.prototype,e=Node.prototype;Nv=Fn(e,"firstChild").get,Dv=Fn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Fe&&(t.__svelte_meta=null,Vv())}}function xn(t=""){return document.createTextNode(t)}function _i(t){return Nv.call(t)}function wo(t){return Dv.call(t)}function y(t,e){if(!gt)return _i(t);var i=_i(Tt);if(i===null)i=Tt.appendChild(xn());else if(e&&i.nodeType!==3){var o=xn();return i==null||i.before(o),yi(o),o}return yi(i),i}function we(t,e){var n,r;if(!gt){var i=_i(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&((n=Tt)==null?void 0:n.nodeType)!==3){var o=xn();return(r=Tt)==null||r.before(o),yi(o),o}return Tt}function D(t,e=1,i=!1){let o=gt?Tt:t;for(var n;e--;)n=o,o=wo(o);if(!gt)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=xn();return o===null?n==null||n.after(l):o.before(l),yi(l),l}return yi(o),o}function ud(t){t.textContent=""}function yf(t){St===null&&Ot===null&&lv(t),Ot!==null&&Ot.f&256&&av(),oc&&sv(t)}function R_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function na(t,e,i,o=!0){var v;var n=(t&64)!==0,r=St;if(Fe)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Pt,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(Fe&&(l.component_function=Go),i){var d=is;try{Na(!0),Xs(l),l.f|=32768}catch(m){throw co(l),m}finally{Na(d)}}else e!==null&&Ha(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&R_(l,r),Ot!==null&&Ot.f&2)){var c=Ot;((v=c.children)!=null?v:c.children=[]).push(l)}return l}function Wn(t){let e=na(8,null,!1);return jo(e,1024),e.teardown=t,e}function We(t){var n;yf("$effect");var e=St!==null&&(St.f&32)!==0&&Pt!==null&&!Pt.m;if(Fe&&Ji(t,"name",{value:"$effect"}),e){var i=Pt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:St,reaction:Ot})}else{var o=qn(t);return o}}function Ra(t){return yf("$effect.pre"),Fe&&Ji(t,"name",{value:"$effect.pre"}),yo(t)}function lc(t){let e=na(64,t,!0);return()=>{co(e)}}function Fv(t){let e=na(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Kn(e,()=>{co(e),o(void 0)}):(co(e),o(void 0))})}function qn(t){return na(4,t,!1)}function yo(t){return na(8,t,!0)}function R(t){return Fe&&Ji(t,"name",{value:"{expression}"}),po(t)}function po(t,e=0){return na(24|e,t,!0)}function Yi(t,e=!0){return na(40,t,!0,e)}function hf(t){var e=t.teardown;if(e!==null){let i=oc,o=Ot;vf(!0),Zo(null);try{e.call(null)}finally{vf(i),Zo(o)}}}function _f(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var i=0;i<e.length;i+=1)ld(e[i])}}function $f(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;co(i,e),i=o}}function Lv(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||co(e),e=i}}function co(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:wo(o);o.remove(),o=r}i=!0}$f(t,e&&!i),_f(t),Js(t,0),jo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();hf(t);var d=t.parent;d!==null&&d.first!==null&&bf(t),Fe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function bf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function Kn(t,e){var i=[];dc(t,i,!0),xf(i,()=>{co(t),e&&e()})}function xf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function dc(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;dc(o,e,r?i:!1),o=n}}}function ys(t){Uv(t,!0)}function Uv(t,e){if(t.f&8192){_s(t)&&Xs(t),t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Uv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function wf(t,e){if(e){let i=document.body;t.autofocus=!0,$n(()=>{document.activeElement===i&&t.focus()})}}function Cf(t){var e=Ot,i=St;Zo(null),eo(null);try{return t()}finally{Zo(e),eo(i)}}var Sf=new Set,cc=new Set;function ra(t){if(!gt)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Tf(t,e,i,o){function n(r){if(o.capture||Ya.call(e,r),!r.cancelBubble)return Cf(()=>i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?$n(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Dt(t,e,i,o,n){var r={capture:o,passive:n},l=Tf(t,e,i,r);(e===document.body||e===window||e===document)&&Wn(()=>{e.removeEventListener(t,l,r)})}function wt(t){for(var e=0;e<t.length;e++)Sf.add(t[e]);for(var i of cc)i(t)}function Ya(t){var O;var e=this,i=e.ownerDocument,o=t.type,n=((O=t.composedPath)==null?void 0:O.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){Ji(t,"currentTarget",{configurable:!0,get(){return r||i}});var v=Ot,m=St;Zo(null),eo(null);try{for(var h,g=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var b=r["__"+o];if(b!==void 0&&!r.disabled)if($r(b)){var[T,...L]=b;T.apply(r,[t,...L])}else b.call(r,t)}catch(V){h?g.push(V):h=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(h){for(let V of g)queueMicrotask(()=>{throw V});throw h}}finally{t.__root=e,delete t.currentTarget,Zo(v),eo(m)}}}var B_;function zv(){B_=void 0}function ja(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Co(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function F(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(gt)return Co(Tt,null),Tt;n===void 0&&(n=ja(r?t:"<!>"+t),i||(n=_i(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=_i(l),a=l.lastChild;Co(d,a)}else Co(l,l);return l}}function Ae(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(gt)return Co(Tt,null),Tt;if(!l){var d=ja(r),a=_i(d);if(n)for(l=document.createDocumentFragment();_i(a);)l.appendChild(_i(a));else l=_i(a)}var c=l.cloneNode(!0);if(n){var v=_i(c),m=c.lastChild;Co(v,m)}else Co(c,c);return c}}function nr(t=""){if(!gt){var e=xn(t+"");return Co(e,e),e}var i=Tt;return i.nodeType!==3&&(i.before(i=xn()),yi(i)),Co(i,i),i}function Ge(){if(gt)return Co(Tt,null),Tt;var t=document.createDocumentFragment(),e=document.createComment(""),i=xn();return t.append(e,i),Co(e,i),t}function w(t,e){if(gt){St.nodes_end=Tt,Ui();return}t!==null&&t.before(e)}var D_=/\r/g;function Wv(t){t=t.replace(D_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Kv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var O_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qv(t){return O_.includes(t)}var H_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var F_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Gv(t){var e;return t=t.toLowerCase(),(e=F_[t])!=null?e:t}var C5=[...H_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var U_=["touchstart","touchmove"];function Yv(t){return U_.includes(t)}function If(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Ef=!0;function Ie(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i==null?"":i+"")}function uc(t,e){return jv(t,e)}function Pf(t,e){var l;ac(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=gt,n=Tt;try{for(var r=_i(i);r&&(r.nodeType!==8||r.data!==La);)r=wo(r);if(!r)throw Xr;yn(!0),yi(r),Ui();let d=jv(t,{...e,anchor:r});if(Tt===null||Tt.nodeType!==8||Tt.data!==js)throw Gs(),Xr;return yn(!1),d}catch(d){if(d===Xr)return e.recover===!1&&cv(),ac(),ud(i),yn(!1),uc(t,e);throw d}finally{yn(o),yi(n),zv()}}var Za=new Map;function jv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){ac();var d=new Set,a=m=>{for(var h=0;h<m.length;h++){var g=m[h];if(!d.has(g)){d.add(g);var _=Yv(g);e.addEventListener(g,Ya,{passive:_});var b=Za.get(g);b===void 0?(document.addEventListener(g,Ya,{passive:_}),Za.set(g,1)):Za.set(g,b+1)}}};a(nd(Sf)),cc.add(a);var c=void 0,v=Fv(()=>{var m=i!=null?i:e.appendChild(xn());return Yi(()=>{if(r){k({});var h=Pt;h.c=r}n&&(o.$$events=n),gt&&Co(m,null),Ef=l,c=t(m,o)||{},Ef=!0,gt&&(St.nodes_end=Tt),r&&P()}),()=>{var _;for(var h of d){e.removeEventListener(h,Ya);var g=Za.get(h);--g===0?(document.removeEventListener(h,Ya),Za.delete(h)):Za.set(h,g)}cc.delete(a),m!==i&&((_=m.parentNode)==null||_.removeChild(m))}});return kf.set(c,v),c}var kf=new WeakMap;function Af(t,e){let i=kf.get(t);return i?(kf.delete(t),i(e)):(Fe&&Jm(),Promise.resolve())}var Lf;function E(t){return Lf=t.target,new Mf(t)}var rs,rr,Mf=class{constructor(e){vs(this,rs);vs(this,rr);var r,l;var i=new Map,o=(d,a)=>{var c=ts(a);return i.set(d,c),c};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===od?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var v;return Q((v=i.get(a))!=null?v:o(a,c),c),Reflect.set(d,a,c)}});Ma(this,rr,(e.hydrate?Pf:uc)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),Ma(this,rs,n.$$events);for(let d of Object.keys(ki(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||Ji(this,d,{get(){return ki(this,rr)[d]},set(a){ki(this,rr)[d]=a},enumerable:!0});ki(this,rr).$set=d=>{Object.assign(n,d)},ki(this,rr).$destroy=()=>{Af(ki(this,rr))}}$set(e){ki(this,rr).$set(e)}$on(e,i){ki(this,rs)[e]=ki(this,rs)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,rs)[e].push(o),()=>{ki(this,rs)[e]=ki(this,rs)[e].filter(n=>n!==o)}}$destroy(){ki(this,rr).$destroy()}};rs=new WeakMap,rr=new WeakMap;var Zv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Zv);var Xv=new Map;function Jv(t,e){var i=Xv.get(t);i||(i=new Set,Xv.set(t,i)),i.add(e)}function W(t,e,i=!1){gt&&Ui();var o=t,n=null,r=null,l=Fi,d=i?65536:0,a=!1;let c=(m,h=!0)=>{a=!0,v(h,m)},v=(m,h)=>{if(l===(l=m))return;let g=!1;if(gt){let _=o.data===Ys;!!l===_&&(o=Ga(),yi(o),yn(!1),g=!0)}l?(n?ys(n):h&&(n=Yi(()=>h(o))),r&&Kn(r,()=>{r=null})):(r?ys(r):h&&(r=Yi(()=>h(o))),n&&Kn(n,()=>{n=null})),g&&yn(!0)};po(()=>{a=!1,e(c),a||v(null,null)},d),gt&&(o=Tt)}function pd(t,e,i){gt&&Ui();var o=t,n=Fi,r,l=hs()?nv:Va;po(()=>{l(n,n=e())&&(r&&Kn(r),r=Yi(()=>i(o)))}),gt&&(o=Tt)}var fd=null;function Pi(t,e){return e}function e$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)dc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;ud(a),a.append(i),o.clear(),xs(t,e[0].prev,e[r-1].next)}xf(n,()=>{for(var c=0;c<r;c++){var v=e[c];d||(o.delete(v.k),xs(t,v.prev,v.next)),co(v.e,!d)}})}function xi(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=gt?yi(_i(c)):c.appendChild(xn())}gt&&Ui();var v=null,m=!1,h=os(()=>{var g=i();return $r(g)?g:g==null?[]:nd(g)});po(()=>{var g=s(h),_=g.length;if(m&&_===0)return;m=_===0;let b=!1;if(gt){var T=l.data===Ys;T!==(_===0)&&(l=Ga(),yi(l),yn(!1),b=!0)}if(gt){for(var L=null,O,V=0;V<_;V++){if(Tt.nodeType===8&&Tt.data===js){l=Tt,b=!0,yn(!1);break}var U=g[V],S=o(U,V);O=ig(Tt,d,L,null,U,S,V,n,e,i),d.items.set(S,O),L=O}_>0&&yi(Ga())}if(!gt){var N=Ot;t$(g,d,l,n,e,(N.f&8192)!==0,o,i)}r!==null&&(_===0?v?ys(v):v=Yi(()=>r(l)):v!==null&&Kn(v,()=>{v=null})),b&&yn(!0),s(h)}),gt&&(l=Tt)}function t$(t,e,i,o,n,r,l,d){var fe,ie,ge,G;var a=(n&8)!==0,c=(n&3)!==0,v=t.length,m=e.items,h=e.first,g=h,_,b=null,T,L=[],O=[],V,U,S,N;if(a)for(N=0;N<v;N+=1)V=t[N],U=l(V,N),S=m.get(U),S!==void 0&&((fe=S.a)==null||fe.measure(),(T!=null?T:T=new Set).add(S));for(N=0;N<v;N+=1){if(V=t[N],U=l(V,N),S=m.get(U),S===void 0){var Y=g?g.e.nodes_start:i;b=ig(Y,e,b,b===null?e.first:b.next,V,U,N,o,n,d),m.set(U,b),L=[],O=[],g=b.next;continue}if(c&&i$(S,V,N,n),S.e.f&8192&&(ys(S.e),a&&((ie=S.a)==null||ie.unfix(),(T!=null?T:T=new Set).delete(S))),S!==g){if(_!==void 0&&_.has(S)){if(L.length<O.length){var K=O[0],j;b=K.prev;var oe=L[0],ce=L[L.length-1];for(j=0;j<L.length;j+=1)eg(L[j],K,i);for(j=0;j<O.length;j+=1)_.delete(O[j]);xs(e,oe.prev,ce.next),xs(e,b,oe),xs(e,ce,K),g=K,b=ce,N-=1,L=[],O=[]}else _.delete(S),eg(S,g,i),xs(e,S.prev,S.next),xs(e,S,b===null?e.first:b.next),xs(e,b,S),b=S;continue}for(L=[],O=[];g!==null&&g.k!==U;)(r||!(g.e.f&8192))&&(_!=null?_:_=new Set).add(g),O.push(g),g=g.next;if(g===null)continue;S=g}L.push(S),b=S,g=S.next}if(g!==null||_!==void 0){for(var X=_===void 0?[]:nd(_);g!==null;)(r||!(g.e.f&8192))&&X.push(g),g=g.next;var Z=X.length;if(Z>0){var He=n&4&&v===0?i:null;if(a){for(N=0;N<Z;N+=1)(ge=X[N].a)==null||ge.measure();for(N=0;N<Z;N+=1)(G=X[N].a)==null||G.fix()}e$(e,X,He,m)}}a&&$n(()=>{var ee;if(T!==void 0)for(S of T)(ee=S.a)==null||ee.apply()}),St.first=e.first&&e.first.e,St.last=b&&b.e}function i$(t,e,i,o){o&1&&Oa(t.v,e),o&2?Oa(t.i,i):t.i=i}function ig(t,e,i,o,n,r,l,d,a,c){var v=fd,m=(a&1)!==0,h=(a&16)===0,g=m?h?ts(n):Bi(n):n,_=a&2?Bi(l):l;Fe&&m&&(g.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var b={i:_,v:g,k:r,a:null,e:null,prev:i,next:o};fd=b;try{return b.e=Yi(()=>d(t,g,_),gt),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{fd=v}}function eg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=wo(r);n.before(r),r=l}}function xs(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function o$(t,e,i){var r,l;if(!e||e===Wv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Go)!=null&&l[Vi]&&(o=`in ${Go[Vi]}`),Xm(If(o))}function md(t,e,i,o,n){var r=t,l="",d;po(()=>{var a;if(l===(l=(a=e())!=null?a:"")){gt&&Ui();return}d!==void 0&&(co(d),d=void 0),l!==""&&(d=Yi(()=>{if(gt){for(var c=Tt.data,v=Ui(),m=v;v!==null&&(v.nodeType!==8||v.data!=="");)m=v,v=wo(v);if(v===null)throw Gs(),Xr;Fe&&!n&&o$(v.parentNode,c,l),Co(Tt,m),r=yi(v);return}var h=l+"";i?h=`<svg>${h}</svg>`:o&&(h=`<math>${h}</math>`);var g=ja(h);if((i||o)&&(g=_i(g)),Co(_i(g),g.lastChild),i||o)for(;_i(g);)r.before(_i(g));else r.before(g)}))})}function Ve(t,e,i,o,n){var d;gt&&Ui();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function fo(t,e,...i){var o=t,n=Gt,r;po(()=>{n!==(n=e())&&(r&&(co(r),r=null),Fe&&n==null&&uv(),r=Yi(()=>n(o,...i)))},65536),gt&&(o=Tt)}function Ni(t,e,i){gt&&Ui();var o=t,n,r;po(()=>{n!==(n=e())&&(r&&(Kn(r),r=null),n&&(r=Yi(()=>i(o,n))))},65536),gt&&(o=Tt)}function le(t,e){$n(()=>{var n,r;var i=t.getRootNode(),o=(i.host?i:(n=i.head)!=null?n:i.ownerDocument.head)||((r=Lf)==null?void 0:r.parentNode);if(!(o!=null&&o.querySelector("#"+e.hash))){let l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l),Fe&&Jv(e.hash,l)}})}function og(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=og(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ng(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=og(t))&&(o&&(o+=" "),o+=e);return o}function vd(t){return typeof t=="object"?ng(t):t!=null?t:""}function ag(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(gt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||dg(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Fm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&lg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Be(t,e,i,o,n=!1,r=!1,l=!1){var O;var d=e||{},a=t.tagName==="OPTION";for(var c in e)c in i||(i[c]=null);i.class&&(i.class=vd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var v=lg(t),m=(O=t.__attributes)!=null?O:t.__attributes={};for(let V in i){let U=i[V];if(a&&V==="value"&&U==null){t.value=t.__value="",d[V]=U;continue}var h=d[V];if(U!==h){d[V]=U;var g=V[0]+V[1];if(g!=="$$"){if(g==="on"){let S={},N="$$"+V,Y=V.slice(2);var _=Qv(Y);if(Kv(Y)&&(Y=Y.slice(0,-7),S.capture=!0),!_&&h){if(U!=null)continue;t.removeEventListener(Y,d[N],S),d[N]=null}if(U!=null)if(_)t[`__${Y}`]=U,wt([Y]);else{let K=function(j){d[V].call(this,j)};var L=K;d[N]=Tf(Y,t,K,S)}else _&&(t[`__${Y}`]=void 0)}else if(V==="style"&&U!=null)t.style.cssText=U+"";else if(V==="autofocus")wf(t,!!U);else if(V==="__value"||V==="value"&&U!=null)t.value=t[V]=t.__value=U;else if(V==="selected"&&a)ag(t,U);else{var b=V;n||(b=Gv(b));var T=b==="defaultValue"||b==="defaultChecked";if(U==null&&!r&&!T)if(m[V]=null,b==="value"||b==="checked"){let S=t;if(b==="value"){let N=S.defaultValue;S.removeAttribute(b),S.defaultValue=N}else{let N=S.defaultChecked;S.removeAttribute(b),S.defaultChecked=N}}else t.removeAttribute(V);else T||v.includes(b)&&(r||typeof U!="string")?t[b]=U:typeof U!="function"&&(gt&&(b==="src"||b==="href"||b==="srcset")?l||dg(t,b,U!=null?U:""):me(t,b,U))}V==="style"&&"__styles"in t&&(t.__styles={})}}}return d}var rg=new Map;function lg(t){var e=rg.get(t.nodeName);if(e)return e;rg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Wd(o);for(var r in i)i[r].set&&e.push(r);o=Zr(o)}return e}function dg(t,e,i){var o;Fe&&(e==="srcset"&&r$(t,i)||Bf((o=t.getAttribute(e))!=null?o:"",i)||Zm(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Bf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function sg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function r$(t,e){var i=sg(t.srcset),o=sg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Bf(i[l][0],n)||Bf(n,i[l][0])))}function Xo(t,e,i){var o=t.__className,n=s$(e,i);gt&&t.className===n?t.__className=n:(o!==n||gt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function s$(t,e){return(t==null?"":t)+(e?" "+e:"")}function ne(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var ws,Xa,gd,fc,cg,mc=class mc{constructor(e){vs(this,fc);vs(this,ws,new WeakMap);vs(this,Xa);vs(this,gd);Ma(this,gd,e)}observe(e,i){var o=ki(this,ws).get(e)||new Set;return o.add(i),ki(this,ws).set(e,o),Hm(this,fc,cg).call(this).observe(e,ki(this,gd)),()=>{var n=ki(this,ws).get(e);n.delete(i),n.size===0&&(ki(this,ws).delete(e),ki(this,Xa).unobserve(e))}}};ws=new WeakMap,Xa=new WeakMap,gd=new WeakMap,fc=new WeakSet,cg=function(){var e;return(e=ki(this,Xa))!=null?e:Ma(this,Xa,new ResizeObserver(i=>{for(var o of i){mc.entries.set(o.target,o);for(var n of ki(this,ws).get(o.target)||[])n(o)}}))},Hn(mc,"entries",new WeakMap);var Nf=mc;var c$=new Nf({box:"border-box"});function sa(t,e,i){var o=c$.observe(t,()=>i(t[e]));qn(()=>(mi(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Ro])===e}function Ct(t={},e,i,o){return qn(()=>{var n,r;return yo(()=>{n=r,r=(o==null?void 0:o())||[],mi(()=>{t!==i(...r)&&(e(t,...r),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{$n(()=>{r&&ug(i(...r),t)&&e(null,...r)})}}),t}function yr(t=!1){let e=Pt,i=e.l.u;if(!i)return;let o=()=>rc(e.s);if(t){let n=0,r={},l=x(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ra(()=>{pg(e,o),gs(i.b)}),We(()=>{let n=mi(()=>i.m.map(Km));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{pg(e,o),gs(i.a)})}function pg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function A(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function M(t){for(var e in t)e in this&&(this[e]=t[e])}function Ht(t){Pt===null&&Fa("onMount"),Vr&&Pt.l!==null?p$(Pt).m.push(t):We(()=>{let e=mi(t);if(typeof e=="function")return e})}function sr(t){Pt===null&&Fa("onDestroy"),Ht(()=>()=>mi(t))}function p$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function hd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Gt;let o=mi(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ja=[];function ar(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Gt){let i=null,o=new Set;function n(d){if(Va(t,d)&&(t=d,i)){let a=!Ja.length;for(let c of o)c[1](),Ja.push(c,t);if(a){for(let c=0;c<Ja.length;c+=2)Ja[c][0](Ja[c+1]);Ja.length=0}}}function r(d){n(d(t))}function l(d,a=Gt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Gt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function vi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return ar(i,(l,d)=>{let a=!1,c=[],v=0,m=Gt,h=()=>{if(v)return;m();let _=e(o?c[0]:c,l,d);r?l(_):m=typeof _=="function"?_:Gt},g=n.map((_,b)=>hd(_,T=>{c[b]=T,v&=~(1<<b),a&&h()},()=>{v|=1<<b}));return a=!0,h(),function(){gs(g),m(),a=!1}})}function Le(t){let e;return hd(t,i=>e=i)(),e}var vc=!1,Df=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ts(void 0),unsubscribe:Gt};if(o.store!==t&&!(Df in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Gt;else{var n=!0;o.unsubscribe=hd(t,l=>{n?o.source.v=l:Q(o.source,l)}),n=!1}return t&&Df in i?Le(t):s(o.source)}function Ze(){let t={};function e(){Wn(()=>{for(var i in t)t[i].unsubscribe();Ji(t,Df,{enumerable:!1,value:!0})})}return[t,e]}function Of(t){var e=vc;try{return vc=!1,[t(),vc]}finally{vc=e}}var h$={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),nc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),nc(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e){return new Proxy({props:t,exclude:e,special:{},version:Bi(0)},h$)}var _$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Ws(n)&&(n=n());let r=Fn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ws(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Fn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===od)return!1;for(let i of t.props)if(Ws(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ws(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ss(...t){return new Proxy({props:t},_$)}function fg(t){for(var e=St,i=St;e!==null&&!(e.f&96);)e=e.parent;try{return eo(e),t()}finally{eo(i)}}function p(t,e,i,o){var Y,K;var n=(i&1)!==0,r=!Vr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Of(()=>t[e]):c=t[e];var v=Ro in t||od in t,m=l&&((K=(Y=Fn(t,e))==null?void 0:Y.set)!=null?K:v&&e in t&&(j=>t[e]=j))||void 0,h=o,g=!0,_=!1,b=()=>(_=!0,g&&(g=!1,d?h=mi(o):h=o),h);c===void 0&&o!==void 0&&(m&&r&&pv(e),c=b(),m&&m(c));var T;if(r)T=()=>{var j=t[e];return j===void 0?b():(g=!0,_=!1,j)};else{var L=fg(()=>(n?x:os)(()=>t[e]));L.f|=131072,T=()=>{var j=s(L);return j!==void 0&&(h=void 0),j===void 0?h:j}}if(!(i&4))return T;if(m){var O=t.$$legacy;return function(j,oe){return arguments.length>0?((!r||!oe||O||a)&&m(oe?T():j),j):T()}}var V=!1,U=!1,S=ts(c),N=fg(()=>x(()=>{var j=T(),oe=s(S);return V?(V=!1,U=!0,oe):(U=!1,S.v=j)}));return n||(N.equals=Ba),function(j,oe){if(sd!==null&&(V=U,T(),s(S)),arguments.length>0){let ce=oe?s(N):r&&l?be(j):j;return N.equals(ce)||(V=!0,Q(S,ce),_&&h!==void 0&&(h=ce),mi(()=>s(N))),j}return s(N)}}var $$;typeof HTMLElement=="function"&&($$=class extends HTMLElement{constructor(e,i,o){super();Hn(this,"$$ctor");Hn(this,"$$s");Hn(this,"$$c");Hn(this,"$$cn",!1);Hn(this,"$$d",{});Hn(this,"$$r",!1);Hn(this,"$$p_d",{});Hn(this,"$$l",{});Hn(this,"$$l_u",new Map);Hn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),w(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=b$(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Hf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=lc(()=>{yo(()=>{var r;this.$$r=!0;for(let l of jp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Hf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Hf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return jp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Hf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function b$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Sr=require("@vkontakte/videoplayer-shared/es2018"),Jh=require("@vkontakte/videoplayer-statistics/es2018");var aa=require("@vkontakte/videoplayer-shared/es2018");var x$={isMobile:void 0,defaultLanguage:aa.InterfaceLanguage.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:aa.VideoQuality.Q_480P,highQualityLimit:aa.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackStateValue:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},vg=t=>(0,aa.fillWithDefault)(t,x$),gg=t=>ia("ui-config",t),ei=()=>ta("ui-config");var _d="vk_player_debug_panel_opened";var hg="videoplayer",_g="videoplayer";var Or={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$g=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),bg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),yg=new Set(["ShiftRight","ShiftLeft"]);var xg=["TIMELINE"],$d=[...xg,"GRAPH_BUTTON"],Ff=[...xg,"PLAY_BUTTON"],bd=[...$d,"PLAY_BUTTON"];var xr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(xr||{}),da={xs:0,s:1,m:2,l:3,xl:4};var yd=require("@vkontakte/videoplayer-shared/es2018"),wg=require("@vkontakte/videoplayer-core/es2018"),Cg=require("@vkontakte/videoplayer-statistics/es2018");var gc="prod",ca="1.1.55-dev.74e495c6.0";var ua=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Sg=Symbol("storeContext"),Tg=Symbol("microStoresContext"),Ig=(t,e)=>{ia(Sg,t),ia(Tg,e),gc==="dev"&&(window.app={store:t,microStores:e})},De=()=>{let t=ta(Sg);return(0,yd.assertNonNullable)(t,"Store context is empty!"),t},Jo=()=>{let t=ta(Tg);return(0,yd.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>_c(t,t.getValue(),e),_c=(t,e,i)=>ar(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Eg=(t,e,i)=>{var L,O,V,U,S,N;let o=t.info,{width:n,height:r}=Le(i.ui.playerSize),l=(O=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?O:0,d=(U=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?U:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${ca} (core: ${wg.VERSION}, stat: ${Cg.VERSION}, shared: ${yd.VERSION})`,v=Le(i.state.errorLog$),m=v.length?`
46
46
  `+v.map((Y,K)=>{var X;let j=`${K}) Type: ${Y.id}
47
47
  `,oe=`Message: ${Y.message} (${Y.thrown})
48
48
  `,ce=`Trace: ${(X=Y.thrown)==null?void 0:X.stack}
package/es2018.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.55-dev.7131fb97.0
3
- * Mon, 03 Feb 2025 12:51:57 GMT
2
+ * @vkontakte/videoplayer v1.1.55-dev.74e495c6.0
3
+ * Wed, 05 Feb 2025 12:51:40 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-55/doc/
5
5
  */
6
6
  var Gh=Object.defineProperty;var dm=t=>{throw TypeError(t)};var Yh=(t,e,i)=>e in t?Gh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Nn=(t,e,i)=>Yh(t,typeof e!="symbol"?e+"":e,i),Mp=(t,e,i)=>e.has(t)||dm("Cannot "+i);var Si=(t,e,i)=>(Mp(t,e,"read from private field"),i?i.call(t):e.get(t)),ps=(t,e,i)=>e.has(t)?dm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),xa=(t,e,i,o)=>(Mp(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),cm=(t,e,i)=>(Mp(t,e,"access private method"),i);var Po=Symbol("$state"),Kr=Symbol("$state metadata"),Ol=Symbol("legacy props"),um=Symbol("");var pm,fm,Lp=(fm=(pm=globalThis.process)==null?void 0:pm.env)==null?void 0:fm.NODE_ENV;Lp||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Fe=Lp&&!Lp.toLowerCase().includes("prod");var hr=Array.isArray,mm=Array.prototype.indexOf,Hl=Array.from,Rp=Object.keys,Gi=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Sd=Object.getOwnPropertyDescriptors,Vp=Object.prototype,vm=Array.prototype,Qr=Object.getPrototypeOf;function Hs(t){return typeof t=="function"}var Qt=()=>{};function gm(t){return t()}function fs(t){for(var e=0;e<t.length;e++)t[e]()}var Td=!1,_m=!1,Bp=[],hm=[];function $m(){Td=!1;let t=Bp.slice();Bp=[],fs(t)}function Zh(){_m=!1;let t=hm.slice();hm=[],fs(t)}function vn(t){Td||(Td=!0,queueMicrotask($m)),Bp.push(t)}function bm(){Td&&$m(),_m&&Zh()}var Fs="font-weight: bold",Us="font-weight: normal";function ym(t,e,i){Fe?console.warn(`%c[svelte] hydration_attribute_changed
@@ -42,7 +42,7 @@ ${n.map(h=>`
42
42
  ${a}in ${h}`).join("")}
43
43
  `}),Gi(t,"component_stack",{value:n});let c=t.stack;if(c){let h=c.split(`
44
44
  `),g=[];for(let _=0;_<h.length;_++){let b=h[_];b.includes("svelte/src/internal")||g.push(b)}Gi(t,"stack",{value:g.join(`
45
- `)})}if(Gm(t,e),Ym(e))throw t}function Ad(t){var h,g;var e=_o,i=Hn,o=jr,n=Dt,r=es,l=_r,d=kt,a=t.f;_o=null,Hn=0,jr=null,Dt=a&96?null:t,es=!Xr&&(a&256)!==0,_r=null,kt=t.ctx,Vd++;try{var c=(0,t.fn)(),v=t.deps;if(_o!==null){var m;if(Gs(t,Hn),v!==null&&Hn>0)for(v.length=Hn+_o.length,m=0;m<_o.length;m++)v[Hn+m]=_o[m];else t.deps=v=_o;if(!es)for(m=Hn;m<v.length;m++)((g=(h=v[m]).reactions)!=null?g:h.reactions=[]).push(t)}else v!==null&&Hn<v.length&&(Gs(t,Hn),v.length=Hn);return n!==null&&Vd++,c}finally{_o=e,Hn=i,jr=o,Dt=n,es=r,_r=l,kt=d}}function a_(t,e){let i=e.reactions;if(i!==null){var o=mm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(_o===null||!_o.includes(e))&&(Qo(e,4096),e.f&768||(e.f^=512),Gs(e,0))}function Gs(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a_(t,i[o])}function Qs(t){var e=t.f;if(!(e&16384)){Qo(t,1024);var i=St,o=kt;if(St=t,Fe){var n=Wo;Wo=t.component_function}try{e&16?ov(t):of(t),tf(t),ef(t);var r=Ad(t);t.teardown=typeof r=="function"?r:null,t.wv=Jm;var l=t.deps;if(Fe&&Mr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=zl(),d.trace_need_increase=void 0,d.trace_v=void 0)}Fe&&Kl.push(t)}catch(a){Va(a,t,i,o||t.ctx)}finally{St=i,Fe&&(Wo=n)}}}function jm(){console.error("Last ten effects were: ",Kl.slice(-10).map(t=>t.fn)),Kl=[]}function ev(){if(La>1e3){La=0;try{Lm()}catch(t){if(Fe&&Gi(t,"stack",{value:""}),Ma!==null)if(Fe)try{Va(t,Ma,null,null)}catch(e){throw jm(),e}else Va(t,Ma,null,null);else throw Fe&&jm(),t}}La++}function tv(t){var e=t.length;if(e!==0){ev();var i=Xr;Xr=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];iv(n,r),l_(r)}}finally{Xr=i}}}function l_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{vs(o)&&(Qs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?nf(o):o.fn=null))}catch(n){Va(n,o,null,o.ctx)}}}function d_(){if(Wl=!1,La>1001)return;let t=Ys;Ys=[],tv(t),Wl||(La=0,Ma=null,Fe&&(Kl=[]))}function Pa(t){Ld===Xm&&(Wl||(Wl=!0,queueMicrotask(d_))),Ma=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}Ys.push(e)}function iv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else try{vs(i)&&Qs(i)}catch(m){Va(m,i,null,i.ctx)}var a=i.first;if(a!==null){i=a;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var c=m.next;if(c!==null){i=c;continue e}m=m.parent}}i=d}for(var v=0;v<o.length;v++)a=o[v],e.push(a),iv(a,e)}function u(t){var e=Ld,i=Ys;try{ev();let n=[];Ld=s_,Ys=n,Wl=!1,tv(i);var o=t==null?void 0:t();return bm(),(Ys.length>0||n.length>0)&&u(),La=0,Ma=null,Fe&&(Kl=[]),o}finally{Ld=e,Ys=i}}async function ro(){await Promise.resolve(),u()}function s(t){var m,h;var e=t.f,i=(e&2)!==0;if(i&&e&16384){var o=Yp(t);return ql(t),o}if(Ul!==null&&Ul.add(t),Dt!==null){_r!==null&&_r.includes(t)&&Hm();var n=Dt.deps;t.rv<Vd&&(t.rv=Vd,_o===null&&n!==null&&n[Hn]===t?Hn++:_o===null?_o=[t]:_o.push(t),jr!==null&&St!==null&&St.f&1024&&!(St.f&32)&&jr.includes(t)&&(Qo(St,2048),Pa(St)))}else if(i&&t.deps===null)for(var r=t,l=r.parent,d=r;l!==null;)if(l.f&2){var a=l;d=a,l=a.parent}else{var c=l;(m=c.deriveds)!=null&&m.includes(d)||((h=c.deriveds)!=null?h:c.deriveds=[]).push(d);break}if(i&&(r=t,vs(r)&&jp(r)),Fe&&Mr&&Fl!==null&&Dt!==null&&Fl.reaction===Dt){if(t.debug)t.debug();else if(t.created){var v=Fl.entries.get(t);v===void 0&&(v={read:[]},Fl.entries.set(t,v)),v.read.push(Yr("TracedAt"))}}return t.v}function ui(t){let e=Dt;try{return Dt=null,t()}finally{Dt=e}}var c_=-7169;function Qo(t,e){t.f=t.f&c_|e}function js(t){let i=Jp("getContext").get(t);if(Fe){let o=kt.function;o&&kd(i,o,!0)}return i}function Zs(t,e){return Jp("setContext").set(t,e),e}function Na(){let t=Jp("getAllContexts");if(Fe){let e=kt==null?void 0:kt.function;if(e)for(let i of t.values())kd(i,e,!0)}return t}function Jp(t){var e;return kt===null&&Aa(t),(e=kt.c)!=null?e:kt.c=new Map(u_(kt)||void 0)}function u_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}function Dd(t,e=1){var i=s(t),o=e===1?i++:i--;return Q(t,i),o}function k(t,e=!1,i){kt={p:kt,c:null,e:null,m:!1,s:t,x:null,l:null},Ar&&!e&&(kt.l={s:null,u:null,r1:[],r2:Ai(!1)}),Fe&&(kt.function=i,Wo=i)}function P(t){var l,d;let e=kt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=St,o=Dt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];Yi(r.effect),Go(r.reaction),Fn(r.fn)}}finally{Yi(i),Go(o)}}kt=e.p,Fe&&(Wo=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Od(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Po in t)Bd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Po in i&&Bd(i)}}}function Bd(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Bd(t[o],e)}catch(n){}let i=Qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Sd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}if(Fe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nm(e)},set:o=>{i=o}})}};p_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var p_;var gt=!1;function hn(t){gt=t}var Tt;function hi(t){if(t===null)throw zs(),Gr;return Tt=t}function Di(){return hi($o(Tt))}function $(t){if(gt){if($o(Tt)!==null)throw zs(),Gr;Tt=t}}function Pe(t=1){if(gt){for(var e=t,i=Tt;e--;)i=$o(i);Tt=i}}function Da(){for(var t=0,e=Tt;;){if(e.nodeType===8){var i=e.data;if(i===Ws){if(t===0)return e;t-=1}else(i===wa||i===qs)&&(t+=1)}var o=$o(e);e.remove(),e=o}}function be(t,e=null,i){var c,v;var o=null;if(Fe&&Mr&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||Po in t)return t;let n=Qr(t);if(n!==Vp&&n!==vm)return t;var r=new Map,l=hr(t),d=Ai(0);l&&r.set("length",Ai(t.length,o));var a;if(Fe)if(a={parent:e,owners:null},i){let m=(v=(c=i.v)==null?void 0:c[Kr])==null?void 0:v.owners;a.owners=m?new Set(m):null}else a.owners=e===null?kt!==null?new Set([kt.function]):null:new Set;return new Proxy(t,{defineProperty(m,h,g){(!("value"in g)||g.configurable===!1||g.enumerable===!1||g.writable===!1)&&Dm();var _=r.get(h);return _===void 0?(_=Ai(g.value,o),r.set(h,_)):Q(_,be(g.value,a)),!0},deleteProperty(m,h){var g=r.get(h);if(g===void 0)h in m&&r.set(h,Ai(Ni,o));else{if(l&&typeof h=="string"){var _=r.get("length"),b=Number(h);Number.isInteger(b)&&b<_.v&&Q(_,b)}Q(g,Ni),nv(d)}return!0},get(m,h,g){var O;if(Fe&&h===Kr)return a;if(h===Po)return t;var _=r.get(h),b=h in m;if(_===void 0&&(!b||(O=Dn(m,h))!=null&&O.writable)&&(_=Ai(be(b?m[h]:Ni,a),o),r.set(h,_)),_!==void 0){var T=s(_);if(Fe){var L=T==null?void 0:T[Kr];L&&(L==null?void 0:L.parent)!==a&&Op(a,L)}return T===Ni?void 0:T}return Reflect.get(m,h,g)},getOwnPropertyDescriptor(m,h){var g=Reflect.getOwnPropertyDescriptor(m,h);if(g&&"value"in g){var _=r.get(h);_&&(g.value=s(_))}else if(g===void 0){var b=r.get(h),T=b==null?void 0:b.v;if(b!==void 0&&T!==Ni)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return g},has(m,h){var T;if(Fe&&h===Kr||h===Po)return!0;var g=r.get(h),_=g!==void 0&&g.v!==Ni||Reflect.has(m,h);if(g!==void 0||St!==null&&(!_||(T=Dn(m,h))!=null&&T.writable)){g===void 0&&(g=Ai(_?be(m[h],a):Ni,o),r.set(h,g));var b=s(g);if(b===Ni)return!1}return _},set(m,h,g,_){var Y;var b=r.get(h),T=h in m;if(l&&h==="length")for(var L=g;L<b.v;L+=1){var O=r.get(L+"");O!==void 0?Q(O,Ni):L in m&&(O=Ai(Ni,o),r.set(L+"",O))}if(b===void 0?(!T||(Y=Dn(m,h))!=null&&Y.writable)&&(b=Ai(void 0,o),Q(b,be(g,a)),r.set(h,b)):(T=b.v!==Ni,Q(b,be(g,a))),Fe){var V=g==null?void 0:g[Kr];V&&(V==null?void 0:V.parent)!==a&&Op(a,V),Im(a)}var U=Reflect.getOwnPropertyDescriptor(m,h);if(U!=null&&U.set&&U.set.call(_,g),!T){if(l&&typeof h=="string"){var S=r.get("length"),N=Number(h);Number.isInteger(N)&&N>=S.v&&Q(S,N+1)}nv(d)}return!0},ownKeys(m){s(d);var h=Reflect.ownKeys(m).filter(b=>{var T=r.get(b);return T===void 0||T.v!==Ni});for(var[g,_]of r)_.v!==Ni&&!(g in m)&&h.push(g);return h},setPrototypeOf(){Om()}})}function nv(t,e=1){Q(t,t.v+e)}function Hd(t){return t!==null&&typeof t=="object"&&Po in t?t[Po]:t}function rv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Hd(this[a])===r){Id("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Hd(this[a])===r){Id("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Hd(this[a])===r){Id("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,sv,av,lv;function Fd(){if(Xs===void 0){Xs=window,sv=document;var t=Element.prototype,e=Node.prototype;av=Dn(e,"firstChild").get,lv=Dn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Fe&&(t.__svelte_meta=null,rv())}}function _n(t=""){return document.createTextNode(t)}function mi(t){return av.call(t)}function $o(t){return lv.call(t)}function y(t,e){if(!gt)return mi(t);var i=mi(Tt);if(i===null)i=Tt.appendChild(_n());else if(e&&i.nodeType!==3){var o=_n();return i==null||i.before(o),hi(o),o}return hi(i),i}function we(t,e){var n,r;if(!gt){var i=mi(t);return i.nodeType===8&&i.data===""?$o(i):i}if(e&&((n=Tt)==null?void 0:n.nodeType)!==3){var o=_n();return(r=Tt)==null||r.before(o),hi(o),o}return Tt}function D(t,e=1,i=!1){let o=gt?Tt:t;for(var n;e--;)n=o,o=$o(o);if(!gt)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=_n();return o===null?n==null||n.after(l):o.before(l),hi(l),l}return hi(o),o}function Ql(t){t.textContent=""}function rf(t){St===null&&Dt===null&&Mm(t),Dt!==null&&Dt.f&256&&Am(),Nd&&Pm(t)}function f_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(t,e,i,o=!0){var v;var n=(t&64)!==0,r=St;if(Fe)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:kt,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(Fe&&(l.component_function=Wo),i){var d=Xr;try{Ia(!0),Qs(l),l.f|=32768}catch(m){throw no(l),m}finally{Ia(d)}}else e!==null&&Pa(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&f_(l,r),Dt!==null&&Dt.f&2)){var c=Dt;((v=c.children)!=null?v:c.children=[]).push(l)}return l}function Un(t){let e=Js(8,null,!1);return Qo(e,1024),e.teardown=t,e}function We(t){var n;rf("$effect");var e=St!==null&&(St.f&32)!==0&&kt!==null&&!kt.m;if(Fe&&Gi(t,"name",{value:"$effect"}),e){var i=kt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:St,reaction:Dt})}else{var o=Fn(t);return o}}function Ca(t){return rf("$effect.pre"),Fe&&Gi(t,"name",{value:"$effect.pre"}),ho(t)}function Ud(t){let e=Js(64,t,!0);return()=>{no(e)}}function uv(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?zn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function Fn(t){return Js(4,t,!1)}function ho(t){return Js(8,t,!0)}function R(t){return Fe&&Gi(t,"name",{value:"{expression}"}),so(t)}function so(t,e=0){return Js(24|e,t,!0)}function qi(t,e=!0){return Js(40,t,!0,e)}function ef(t){var e=t.teardown;if(e!==null){let i=Nd,o=Dt;Xp(!0),Go(null);try{e.call(null)}finally{Xp(i),Go(o)}}}function tf(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var i=0;i<e.length;i+=1)ql(e[i])}}function of(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;no(i,e),i=o}}function ov(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||no(e),e=i}}function no(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:$o(o);o.remove(),o=r}i=!0}of(t,e&&!i),tf(t),Gs(t,0),Qo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();ef(t);var d=t.parent;d!==null&&d.first!==null&&nf(t),Fe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function nf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function zn(t,e){var i=[];zd(t,i,!0),sf(i,()=>{no(t),e&&e()})}function sf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function zd(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;zd(o,e,r?i:!1),o=n}}}function _s(t){pv(t,!0)}function pv(t,e){if(t.f&8192){vs(t)&&Qs(t),t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;pv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function af(t,e){if(e){let i=document.body;t.autofocus=!0,vn(()=>{document.activeElement===i&&t.focus()})}}function lf(t){var e=Dt,i=St;Go(null),Yi(null);try{return t()}finally{Go(e),Yi(i)}}var df=new Set,qd=new Set;function ea(t){if(!gt)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function cf(t,e,i,o){function n(r){if(o.capture||Oa.call(e,r),!r.cancelBubble)return lf(()=>i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?vn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Nt(t,e,i,o,n){var r={capture:o,passive:n},l=cf(t,e,i,r);(e===document.body||e===window||e===document)&&Un(()=>{e.removeEventListener(t,l,r)})}function wt(t){for(var e=0;e<t.length;e++)df.add(t[e]);for(var i of qd)i(t)}function Oa(t){var O;var e=this,i=e.ownerDocument,o=t.type,n=((O=t.composedPath)==null?void 0:O.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){Gi(t,"currentTarget",{configurable:!0,get(){return r||i}});var v=Dt,m=St;Go(null),Yi(null);try{for(var h,g=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var b=r["__"+o];if(b!==void 0&&!r.disabled)if(hr(b)){var[T,...L]=b;T.apply(r,[t,...L])}else b.call(r,t)}catch(V){h?g.push(V):h=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(h){for(let V of g)queueMicrotask(()=>{throw V});throw h}}finally{t.__root=e,delete t.currentTarget,Go(v),Yi(m)}}}var v_;function fv(){v_=void 0}function Ha(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function bo(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function F(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(gt)return bo(Tt,null),Tt;n===void 0&&(n=Ha(r?t:"<!>"+t),i||(n=mi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(l),a=l.lastChild;bo(d,a)}else bo(l,l);return l}}function Ae(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(gt)return bo(Tt,null),Tt;if(!l){var d=Ha(r),a=mi(d);if(n)for(l=document.createDocumentFragment();mi(a);)l.appendChild(mi(a));else l=mi(a)}var c=l.cloneNode(!0);if(n){var v=mi(c),m=c.lastChild;bo(v,m)}else bo(c,c);return c}}function ir(t=""){if(!gt){var e=_n(t+"");return bo(e,e),e}var i=Tt;return i.nodeType!==3&&(i.before(i=_n()),hi(i)),bo(i,i),i}function Ge(){if(gt)return bo(Tt,null),Tt;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),bo(e,i),t}function w(t,e){if(gt){St.nodes_end=Tt,Di();return}t!==null&&t.before(e)}var h_=/\r/g;function vv(t){t=t.replace(h_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function gv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var __=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hv(t){return __.includes(t)}var $_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var b_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function _v(t){var e;return t=t.toLowerCase(),(e=b_[t])!=null?e:t}var n7=[...$_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var y_=["touchstart","touchmove"];function $v(t){return y_.includes(t)}function uf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var pf=!0;function Ie(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i==null?"":i+"")}function Wd(t,e){return bv(t,e)}function mf(t,e){var l;Fd(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=gt,n=Tt;try{for(var r=mi(i);r&&(r.nodeType!==8||r.data!==wa);)r=$o(r);if(!r)throw Gr;hn(!0),hi(r),Di();let d=bv(t,{...e,anchor:r});if(Tt===null||Tt.nodeType!==8||Tt.data!==Ws)throw zs(),Gr;return hn(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Rm(),Fd(),Ql(i),hn(!1),Wd(t,e);throw d}finally{hn(o),hi(n),fv()}}var Fa=new Map;function bv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Fd();var d=new Set,a=m=>{for(var h=0;h<m.length;h++){var g=m[h];if(!d.has(g)){d.add(g);var _=$v(g);e.addEventListener(g,Oa,{passive:_});var b=Fa.get(g);b===void 0?(document.addEventListener(g,Oa,{passive:_}),Fa.set(g,1)):Fa.set(g,b+1)}}};a(Hl(df)),qd.add(a);var c=void 0,v=uv(()=>{var m=i!=null?i:e.appendChild(_n());return qi(()=>{if(r){k({});var h=kt;h.c=r}n&&(o.$$events=n),gt&&bo(m,null),pf=l,c=t(m,o)||{},pf=!0,gt&&(St.nodes_end=Tt),r&&P()}),()=>{var _;for(var h of d){e.removeEventListener(h,Oa);var g=Fa.get(h);--g===0?(document.removeEventListener(h,Oa),Fa.delete(h)):Fa.set(h,g)}qd.delete(a),m!==i&&((_=m.parentNode)==null||_.removeChild(m))}});return ff.set(c,v),c}var ff=new WeakMap;function vf(t,e){let i=ff.get(t);return i?(ff.delete(t),i(e)):(Fe&&wm(),Promise.resolve())}var hf;function E(t){return hf=t.target,new gf(t)}var ts,or,gf=class{constructor(e){ps(this,ts);ps(this,or);var r,l;var i=new Map,o=(d,a)=>{var c=Zr(a);return i.set(d,c),c};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===Ol?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var v;return Q((v=i.get(a))!=null?v:o(a,c),c),Reflect.set(d,a,c)}});xa(this,or,(e.hydrate?mf:Wd)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),xa(this,ts,n.$$events);for(let d of Object.keys(Si(this,or)))d==="$set"||d==="$destroy"||d==="$on"||Gi(this,d,{get(){return Si(this,or)[d]},set(a){Si(this,or)[d]=a},enumerable:!0});Si(this,or).$set=d=>{Object.assign(n,d)},Si(this,or).$destroy=()=>{vf(Si(this,or))}}$set(e){Si(this,or).$set(e)}$on(e,i){Si(this,ts)[e]=Si(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return Si(this,ts)[e].push(o),()=>{Si(this,ts)[e]=Si(this,ts)[e].filter(n=>n!==o)}}$destroy(){Si(this,or).$destroy()}};ts=new WeakMap,or=new WeakMap;var yv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yv);var xv=new Map;function wv(t,e){var i=xv.get(t);i||(i=new Set,xv.set(t,i)),i.add(e)}function W(t,e,i=!1){gt&&Di();var o=t,n=null,r=null,l=Ni,d=i?65536:0,a=!1;let c=(m,h=!0)=>{a=!0,v(h,m)},v=(m,h)=>{if(l===(l=m))return;let g=!1;if(gt){let _=o.data===qs;!!l===_&&(o=Da(),hi(o),hn(!1),g=!0)}l?(n?_s(n):h&&(n=qi(()=>h(o))),r&&zn(r,()=>{r=null})):(r?_s(r):h&&(r=qi(()=>h(o))),n&&zn(n,()=>{n=null})),g&&hn(!0)};so(()=>{a=!1,e(c),a||v(null,null)},d),gt&&(o=Tt)}function Gl(t,e,i){gt&&Di();var o=t,n=Ni,r,l=ms()?Em:Sa;so(()=>{l(n,n=e())&&(r&&zn(r),r=qi(()=>i(o)))}),gt&&(o=Tt)}var Yl=null;function Ti(t,e){return e}function L_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)zd(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ql(a),a.append(i),o.clear(),$s(t,e[0].prev,e[r-1].next)}sf(n,()=>{for(var c=0;c<r;c++){var v=e[c];d||(o.delete(v.k),$s(t,v.prev,v.next)),no(v.e,!d)}})}function _i(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=gt?hi(mi(c)):c.appendChild(_n())}gt&&Di();var v=null,m=!1,h=Jr(()=>{var g=i();return hr(g)?g:g==null?[]:Hl(g)});so(()=>{var g=s(h),_=g.length;if(m&&_===0)return;m=_===0;let b=!1;if(gt){var T=l.data===qs;T!==(_===0)&&(l=Da(),hi(l),hn(!1),b=!0)}if(gt){for(var L=null,O,V=0;V<_;V++){if(Tt.nodeType===8&&Tt.data===Ws){l=Tt,b=!0,hn(!1);break}var U=g[V],S=o(U,V);O=Tv(Tt,d,L,null,U,S,V,n,e,i),d.items.set(S,O),L=O}_>0&&hi(Da())}if(!gt){var N=Dt;R_(g,d,l,n,e,(N.f&8192)!==0,o,i)}r!==null&&(_===0?v?_s(v):v=qi(()=>r(l)):v!==null&&zn(v,()=>{v=null})),b&&hn(!0),s(h)}),gt&&(l=Tt)}function R_(t,e,i,o,n,r,l,d){var fe,ie,ge,G;var a=(n&8)!==0,c=(n&3)!==0,v=t.length,m=e.items,h=e.first,g=h,_,b=null,T,L=[],O=[],V,U,S,N;if(a)for(N=0;N<v;N+=1)V=t[N],U=l(V,N),S=m.get(U),S!==void 0&&((fe=S.a)==null||fe.measure(),(T!=null?T:T=new Set).add(S));for(N=0;N<v;N+=1){if(V=t[N],U=l(V,N),S=m.get(U),S===void 0){var Y=g?g.e.nodes_start:i;b=Tv(Y,e,b,b===null?e.first:b.next,V,U,N,o,n,d),m.set(U,b),L=[],O=[],g=b.next;continue}if(c&&V_(S,V,N,n),S.e.f&8192&&(_s(S.e),a&&((ie=S.a)==null||ie.unfix(),(T!=null?T:T=new Set).delete(S))),S!==g){if(_!==void 0&&_.has(S)){if(L.length<O.length){var K=O[0],j;b=K.prev;var oe=L[0],ce=L[L.length-1];for(j=0;j<L.length;j+=1)Cv(L[j],K,i);for(j=0;j<O.length;j+=1)_.delete(O[j]);$s(e,oe.prev,ce.next),$s(e,b,oe),$s(e,ce,K),g=K,b=ce,N-=1,L=[],O=[]}else _.delete(S),Cv(S,g,i),$s(e,S.prev,S.next),$s(e,S,b===null?e.first:b.next),$s(e,b,S),b=S;continue}for(L=[],O=[];g!==null&&g.k!==U;)(r||!(g.e.f&8192))&&(_!=null?_:_=new Set).add(g),O.push(g),g=g.next;if(g===null)continue;S=g}L.push(S),b=S,g=S.next}if(g!==null||_!==void 0){for(var X=_===void 0?[]:Hl(_);g!==null;)(r||!(g.e.f&8192))&&X.push(g),g=g.next;var Z=X.length;if(Z>0){var He=n&4&&v===0?i:null;if(a){for(N=0;N<Z;N+=1)(ge=X[N].a)==null||ge.measure();for(N=0;N<Z;N+=1)(G=X[N].a)==null||G.fix()}L_(e,X,He,m)}}a&&vn(()=>{var ee;if(T!==void 0)for(S of T)(ee=S.a)==null||ee.apply()}),St.first=e.first&&e.first.e,St.last=b&&b.e}function V_(t,e,i,o){o&1&&ka(t.v,e),o&2?ka(t.i,i):t.i=i}function Tv(t,e,i,o,n,r,l,d,a,c){var v=Yl,m=(a&1)!==0,h=(a&16)===0,g=m?h?Zr(n):Ai(n):n,_=a&2?Ai(l):l;Fe&&m&&(g.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var b={i:_,v:g,k:r,a:null,e:null,prev:i,next:o};Yl=b;try{return b.e=qi(()=>d(t,g,_),gt),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{Yl=v}}function Cv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=$o(r);n.before(r),r=l}}function $s(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function B_(t,e,i){var r,l;if(!e||e===vv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Wo)!=null&&l[Pi]&&(o=`in ${Wo[Pi]}`),xm(uf(o))}function jl(t,e,i,o,n){var r=t,l="",d;so(()=>{var a;if(l===(l=(a=e())!=null?a:"")){gt&&Di();return}d!==void 0&&(no(d),d=void 0),l!==""&&(d=qi(()=>{if(gt){for(var c=Tt.data,v=Di(),m=v;v!==null&&(v.nodeType!==8||v.data!=="");)m=v,v=$o(v);if(v===null)throw zs(),Gr;Fe&&!n&&B_(v.parentNode,c,l),bo(Tt,m),r=hi(v);return}var h=l+"";i?h=`<svg>${h}</svg>`:o&&(h=`<math>${h}</math>`);var g=Ha(h);if((i||o)&&(g=mi(g)),bo(mi(g),g.lastChild),i||o)for(;mi(g);)r.before(mi(g));else r.before(g)}))})}function Ve(t,e,i,o,n){var d;gt&&Di();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function ao(t,e,...i){var o=t,n=Qt,r;so(()=>{n!==(n=e())&&(r&&(no(r),r=null),Fe&&n==null&&Vm(),r=qi(()=>n(o,...i)))},65536),gt&&(o=Tt)}function Mi(t,e,i){gt&&Di();var o=t,n,r;so(()=>{n!==(n=e())&&(r&&(zn(r),r=null),n&&(r=qi(()=>i(o,n))))},65536),gt&&(o=Tt)}function le(t,e){vn(()=>{var n,r;var i=t.getRootNode(),o=(i.host?i:(n=i.head)!=null?n:i.ownerDocument.head)||((r=hf)==null?void 0:r.parentNode);if(!(o!=null&&o.querySelector("#"+e.hash))){let l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l),Fe&&wv(e.hash,l)}})}function Iv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Iv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ev(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Iv(t))&&(o&&(o+=" "),o+=e);return o}function Zl(t){return typeof t=="object"?Ev(t):t!=null?t:""}function Av(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(gt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Lv(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[um]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Mv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Be(t,e,i,o,n=!1,r=!1,l=!1){var O;var d=e||{},a=t.tagName==="OPTION";for(var c in e)c in i||(i[c]=null);i.class&&(i.class=Zl(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var v=Mv(t),m=(O=t.__attributes)!=null?O:t.__attributes={};for(let V in i){let U=i[V];if(a&&V==="value"&&U==null){t.value=t.__value="",d[V]=U;continue}var h=d[V];if(U!==h){d[V]=U;var g=V[0]+V[1];if(g!=="$$"){if(g==="on"){let S={},N="$$"+V,Y=V.slice(2);var _=hv(Y);if(gv(Y)&&(Y=Y.slice(0,-7),S.capture=!0),!_&&h){if(U!=null)continue;t.removeEventListener(Y,d[N],S),d[N]=null}if(U!=null)if(_)t[`__${Y}`]=U,wt([Y]);else{let K=function(j){d[V].call(this,j)};var L=K;d[N]=cf(Y,t,K,S)}else _&&(t[`__${Y}`]=void 0)}else if(V==="style"&&U!=null)t.style.cssText=U+"";else if(V==="autofocus")af(t,!!U);else if(V==="__value"||V==="value"&&U!=null)t.value=t[V]=t.__value=U;else if(V==="selected"&&a)Av(t,U);else{var b=V;n||(b=_v(b));var T=b==="defaultValue"||b==="defaultChecked";if(U==null&&!r&&!T)if(m[V]=null,b==="value"||b==="checked"){let S=t;if(b==="value"){let N=S.defaultValue;S.removeAttribute(b),S.defaultValue=N}else{let N=S.defaultChecked;S.removeAttribute(b),S.defaultChecked=N}}else t.removeAttribute(V);else T||v.includes(b)&&(r||typeof U!="string")?t[b]=U:typeof U!="function"&&(gt&&(b==="src"||b==="href"||b==="srcset")?l||Lv(t,b,U!=null?U:""):me(t,b,U))}V==="style"&&"__styles"in t&&(t.__styles={})}}}return d}var kv=new Map;function Mv(t){var e=kv.get(t.nodeName);if(e)return e;kv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Sd(o);for(var r in i)i[r].set&&e.push(r);o=Qr(o)}return e}function Lv(t,e,i){var o;Fe&&(e==="srcset"&&D_(t,i)||bf((o=t.getAttribute(e))!=null?o:"",i)||ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function bf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Pv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function D_(t,e){var i=Pv(t.srcset),o=Pv(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(bf(i[l][0],n)||bf(n,i[l][0])))}function Yo(t,e,i){var o=t.__className,n=O_(e,i);gt&&t.className===n?t.__className=n:(o!==n||gt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function O_(t,e){return(t==null?"":t)+(e?" "+e:"")}function ne(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var bs,Ua,Xl,Qd,Rv,Gd=class Gd{constructor(e){ps(this,Qd);ps(this,bs,new WeakMap);ps(this,Ua);ps(this,Xl);xa(this,Xl,e)}observe(e,i){var o=Si(this,bs).get(e)||new Set;return o.add(i),Si(this,bs).set(e,o),cm(this,Qd,Rv).call(this).observe(e,Si(this,Xl)),()=>{var n=Si(this,bs).get(e);n.delete(i),n.size===0&&(Si(this,bs).delete(e),Si(this,Ua).unobserve(e))}}};bs=new WeakMap,Ua=new WeakMap,Xl=new WeakMap,Qd=new WeakSet,Rv=function(){var e;return(e=Si(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){Gd.entries.set(o.target,o);for(var n of Si(this,bs).get(o.target)||[])n(o)}}))},Nn(Gd,"entries",new WeakMap);var yf=Gd;var z_=new yf({box:"border-box"});function ta(t,e,i){var o=z_.observe(t,()=>i(t[e]));Fn(()=>(ui(()=>i(t[e])),o))}function Vv(t,e){return t===e||(t==null?void 0:t[Po])===e}function Ct(t={},e,i,o){return Fn(()=>{var n,r;return ho(()=>{n=r,r=(o==null?void 0:o())||[],ui(()=>{t!==i(...r)&&(e(t,...r),n&&Vv(i(...n),t)&&e(null,...n))})}),()=>{vn(()=>{r&&Vv(i(...r),t)&&e(null,...r)})}}),t}function $r(t=!1){let e=kt,i=e.l.u;if(!i)return;let o=()=>Od(e.s);if(t){let n=0,r={},l=x(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ca(()=>{Bv(e,o),fs(i.b)}),We(()=>{let n=ui(()=>i.m.map(gm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{Bv(e,o),fs(i.a)})}function Bv(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function A(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function M(t){for(var e in t)e in this&&(this[e]=t[e])}function Ot(t){kt===null&&Aa("onMount"),Ar&&kt.l!==null?W_(kt).m.push(t):We(()=>{let e=ui(t);if(typeof e=="function")return e})}function nr(t){kt===null&&Aa("onDestroy"),Ot(()=>()=>ui(t))}function W_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Qt;let o=ui(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function rr(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Qt){let i=null,o=new Set;function n(d){if(Sa(t,d)&&(t=d,i)){let a=!za.length;for(let c of o)c[1](),za.push(c,t);if(a){for(let c=0;c<za.length;c+=2)za[c][0](za[c+1]);za.length=0}}}function r(d){n(d(t))}function l(d,a=Qt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Qt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function pi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return rr(i,(l,d)=>{let a=!1,c=[],v=0,m=Qt,h=()=>{if(v)return;m();let _=e(o?c[0]:c,l,d);r?l(_):m=typeof _=="function"?_:Qt},g=n.map((_,b)=>Jl(_,T=>{c[b]=T,v&=~(1<<b),a&&h()},()=>{v|=1<<b}));return a=!0,h(),function(){fs(g),m(),a=!1}})}function Le(t){let e;return Jl(t,i=>e=i)(),e}var Yd=!1,xf=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Zr(void 0),unsubscribe:Qt};if(o.store!==t&&!(xf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Qt;else{var n=!0;o.unsubscribe=Jl(t,l=>{n?o.source.v=l:Q(o.source,l)}),n=!1}return t&&xf in i?Le(t):s(o.source)}function Ze(){let t={};function e(){Un(()=>{for(var i in t)t[i].unsubscribe();Gi(t,xf,{enumerable:!1,value:!0})})}return[t,e]}function wf(t){var e=Yd;try{return Yd=!1,[t(),Yd]}finally{Yd=e}}var j_={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),Dd(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Dd(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e){return new Proxy({props:t,exclude:e,special:{},version:Ai(0)},j_)}var Z_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Hs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Hs(n)&&(n=n());let r=Dn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Hs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Dn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Po||e===Ol)return!1;for(let i of t.props)if(Hs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Hs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},Z_)}function Nv(t){for(var e=St,i=St;e!==null&&!(e.f&96);)e=e.parent;try{return Yi(e),t()}finally{Yi(i)}}function p(t,e,i,o){var Y,K;var n=(i&1)!==0,r=!Ar||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=wf(()=>t[e]):c=t[e];var v=Po in t||Ol in t,m=l&&((K=(Y=Dn(t,e))==null?void 0:Y.set)!=null?K:v&&e in t&&(j=>t[e]=j))||void 0,h=o,g=!0,_=!1,b=()=>(_=!0,g&&(g=!1,d?h=ui(o):h=o),h);c===void 0&&o!==void 0&&(m&&r&&Bm(e),c=b(),m&&m(c));var T;if(r)T=()=>{var j=t[e];return j===void 0?b():(g=!0,_=!1,j)};else{var L=Nv(()=>(n?x:Jr)(()=>t[e]));L.f|=131072,T=()=>{var j=s(L);return j!==void 0&&(h=void 0),j===void 0?h:j}}if(!(i&4))return T;if(m){var O=t.$$legacy;return function(j,oe){return arguments.length>0?((!r||!oe||O||a)&&m(oe?T():j),j):T()}}var V=!1,U=!1,S=Zr(c),N=Nv(()=>x(()=>{var j=T(),oe=s(S);return V?(V=!1,U=!0,oe):(U=!1,S.v=j)}));return n||(N.equals=Ta),function(j,oe){if(Ul!==null&&(V=U,T(),s(S)),arguments.length>0){let ce=oe?s(N):r&&l?be(j):j;return N.equals(ce)||(V=!0,Q(S,ce),_&&h!==void 0&&(h=ce),ui(()=>s(N))),j}return s(N)}}var X_;typeof HTMLElement=="function"&&(X_=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),w(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=J_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Cf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Ud(()=>{ho(()=>{var r;this.$$r=!0;for(let l of Rp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Cf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Rp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Cf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function J_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{noop as gp,safeStorage as r3,throttleFn as s3,clientChecker as a3}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as l3}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as t$,fillWithDefault as i$,VideoQuality as Ov}from"@vkontakte/videoplayer-shared/es2018";var o$={isMobile:void 0,defaultLanguage:t$.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ov.Q_480P,highQualityLimit:Ov.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackStateValue:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Hv=t=>i$(t,o$),Fv=t=>Zs("ui-config",t),Jt=()=>js("ui-config");var ed="vk_player_debug_panel_opened";var Uv="videoplayer",zv="videoplayer";var Vr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},qv=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wv=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Kv=new Set(["ShiftRight","ShiftLeft"]);var Qv=["TIMELINE"],td=[...Qv,"GRAPH_BUTTON"],Sf=[...Qv,"PLAY_BUTTON"],id=[...td,"PLAY_BUTTON"];var Br=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Br||{}),oa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Gv,VERSION as n$}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as r$}from"@vkontakte/videoplayer-core/es2018";import{VERSION as s$}from"@vkontakte/videoplayer-statistics/es2018";var jd="prod",qa="1.1.55-dev.7131fb97.0";var na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Yv=Symbol("storeContext"),jv=Symbol("microStoresContext"),Zv=(t,e)=>{Zs(Yv,t),Zs(jv,e),jd==="dev"&&(window.app={store:t,microStores:e})},De=()=>{let t=js(Yv);return Gv(t,"Store context is empty!"),t},jo=()=>{let t=js(jv);return Gv(t,"MicroStores context is empty!"),t},Gt=(t,e)=>Xd(t,t.getValue(),e),Xd=(t,e,i)=>rr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Xv=(t,e,i)=>{var L,O,V,U,S,N;let o=t.info,{width:n,height:r}=Le(i.ui.playerSize),l=(O=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?O:0,d=(U=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?U:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${qa} (core: ${r$}, stat: ${s$}, shared: ${n$})`,v=Le(i.state.errorLog$),m=v.length?`
45
+ `)})}if(Gm(t,e),Ym(e))throw t}function Ad(t){var h,g;var e=_o,i=Hn,o=jr,n=Dt,r=es,l=_r,d=kt,a=t.f;_o=null,Hn=0,jr=null,Dt=a&96?null:t,es=!Xr&&(a&256)!==0,_r=null,kt=t.ctx,Vd++;try{var c=(0,t.fn)(),v=t.deps;if(_o!==null){var m;if(Gs(t,Hn),v!==null&&Hn>0)for(v.length=Hn+_o.length,m=0;m<_o.length;m++)v[Hn+m]=_o[m];else t.deps=v=_o;if(!es)for(m=Hn;m<v.length;m++)((g=(h=v[m]).reactions)!=null?g:h.reactions=[]).push(t)}else v!==null&&Hn<v.length&&(Gs(t,Hn),v.length=Hn);return n!==null&&Vd++,c}finally{_o=e,Hn=i,jr=o,Dt=n,es=r,_r=l,kt=d}}function a_(t,e){let i=e.reactions;if(i!==null){var o=mm.call(i,t);if(o!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[o]=i[n],i.pop())}}i===null&&e.f&2&&(_o===null||!_o.includes(e))&&(Qo(e,4096),e.f&768||(e.f^=512),Gs(e,0))}function Gs(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a_(t,i[o])}function Qs(t){var e=t.f;if(!(e&16384)){Qo(t,1024);var i=St,o=kt;if(St=t,Fe){var n=Wo;Wo=t.component_function}try{e&16?ov(t):of(t),tf(t),ef(t);var r=Ad(t);t.teardown=typeof r=="function"?r:null,t.wv=Jm;var l=t.deps;if(Fe&&Mr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=zl(),d.trace_need_increase=void 0,d.trace_v=void 0)}Fe&&Kl.push(t)}catch(a){Va(a,t,i,o||t.ctx)}finally{St=i,Fe&&(Wo=n)}}}function jm(){console.error("Last ten effects were: ",Kl.slice(-10).map(t=>t.fn)),Kl=[]}function ev(){if(La>1e3){La=0;try{Lm()}catch(t){if(Fe&&Gi(t,"stack",{value:""}),Ma!==null)if(Fe)try{Va(t,Ma,null,null)}catch(e){throw jm(),e}else Va(t,Ma,null,null);else throw Fe&&jm(),t}}La++}function tv(t){var e=t.length;if(e!==0){ev();var i=Xr;Xr=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];iv(n,r),l_(r)}}finally{Xr=i}}}function l_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{vs(o)&&(Qs(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?nf(o):o.fn=null))}catch(n){Va(n,o,null,o.ctx)}}}function d_(){if(Wl=!1,La>1001)return;let t=Ys;Ys=[],tv(t),Wl||(La=0,Ma=null,Fe&&(Kl=[]))}function Pa(t){Ld===Xm&&(Wl||(Wl=!0,queueMicrotask(d_))),Ma=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}Ys.push(e)}function iv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,r=(n&32)!==0,l=r&&(n&1024)!==0,d=i.next;if(!l&&!(n&8192))if(n&8){if(r)i.f^=1024;else try{vs(i)&&Qs(i)}catch(m){Va(m,i,null,i.ctx)}var a=i.first;if(a!==null){i=a;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var c=m.next;if(c!==null){i=c;continue e}m=m.parent}}i=d}for(var v=0;v<o.length;v++)a=o[v],e.push(a),iv(a,e)}function u(t){var e=Ld,i=Ys;try{ev();let n=[];Ld=s_,Ys=n,Wl=!1,tv(i);var o=t==null?void 0:t();return bm(),(Ys.length>0||n.length>0)&&u(),La=0,Ma=null,Fe&&(Kl=[]),o}finally{Ld=e,Ys=i}}async function ro(){await Promise.resolve(),u()}function s(t){var m,h;var e=t.f,i=(e&2)!==0;if(i&&e&16384){var o=Yp(t);return ql(t),o}if(Ul!==null&&Ul.add(t),Dt!==null){_r!==null&&_r.includes(t)&&Hm();var n=Dt.deps;t.rv<Vd&&(t.rv=Vd,_o===null&&n!==null&&n[Hn]===t?Hn++:_o===null?_o=[t]:_o.push(t),jr!==null&&St!==null&&St.f&1024&&!(St.f&32)&&jr.includes(t)&&(Qo(St,2048),Pa(St)))}else if(i&&t.deps===null)for(var r=t,l=r.parent,d=r;l!==null;)if(l.f&2){var a=l;d=a,l=a.parent}else{var c=l;(m=c.deriveds)!=null&&m.includes(d)||((h=c.deriveds)!=null?h:c.deriveds=[]).push(d);break}if(i&&(r=t,vs(r)&&jp(r)),Fe&&Mr&&Fl!==null&&Dt!==null&&Fl.reaction===Dt){if(t.debug)t.debug();else if(t.created){var v=Fl.entries.get(t);v===void 0&&(v={read:[]},Fl.entries.set(t,v)),v.read.push(Yr("TracedAt"))}}return t.v}function ui(t){let e=Dt;try{return Dt=null,t()}finally{Dt=e}}var c_=-7169;function Qo(t,e){t.f=t.f&c_|e}function js(t){let i=Jp("getContext").get(t);if(Fe){let o=kt.function;o&&kd(i,o,!0)}return i}function Zs(t,e){return Jp("setContext").set(t,e),e}function Na(){let t=Jp("getAllContexts");if(Fe){let e=kt==null?void 0:kt.function;if(e)for(let i of t.values())kd(i,e,!0)}return t}function Jp(t){var e;return kt===null&&Aa(t),(e=kt.c)!=null?e:kt.c=new Map(u_(kt)||void 0)}function u_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}function Dd(t,e=1){var i=s(t),o=e===1?i++:i--;return Q(t,i),o}function k(t,e=!1,i){kt={p:kt,c:null,e:null,m:!1,s:t,x:null,l:null},Ar&&!e&&(kt.l={s:null,u:null,r1:[],r2:Ai(!1)}),Fe&&(kt.function=i,Wo=i)}function P(t){var l,d;let e=kt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=St,o=Dt;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];Yi(r.effect),Go(r.reaction),Fn(r.fn)}}finally{Yi(i),Go(o)}}kt=e.p,Fe&&(Wo=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function Od(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Po in t)Bd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Po in i&&Bd(i)}}}function Bd(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Bd(t[o],e)}catch(n){}let i=Qr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Sd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}if(Fe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nm(e)},set:o=>{i=o}})}};p_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var p_;var gt=!1;function hn(t){gt=t}var Tt;function hi(t){if(t===null)throw zs(),Gr;return Tt=t}function Di(){return hi($o(Tt))}function $(t){if(gt){if($o(Tt)!==null)throw zs(),Gr;Tt=t}}function Pe(t=1){if(gt){for(var e=t,i=Tt;e--;)i=$o(i);Tt=i}}function Da(){for(var t=0,e=Tt;;){if(e.nodeType===8){var i=e.data;if(i===Ws){if(t===0)return e;t-=1}else(i===wa||i===qs)&&(t+=1)}var o=$o(e);e.remove(),e=o}}function be(t,e=null,i){var c,v;var o=null;if(Fe&&Mr&&(o=Yr("CreatedAt")),typeof t!="object"||t===null||Po in t)return t;let n=Qr(t);if(n!==Vp&&n!==vm)return t;var r=new Map,l=hr(t),d=Ai(0);l&&r.set("length",Ai(t.length,o));var a;if(Fe)if(a={parent:e,owners:null},i){let m=(v=(c=i.v)==null?void 0:c[Kr])==null?void 0:v.owners;a.owners=m?new Set(m):null}else a.owners=e===null?kt!==null?new Set([kt.function]):null:new Set;return new Proxy(t,{defineProperty(m,h,g){(!("value"in g)||g.configurable===!1||g.enumerable===!1||g.writable===!1)&&Dm();var _=r.get(h);return _===void 0?(_=Ai(g.value,o),r.set(h,_)):Q(_,be(g.value,a)),!0},deleteProperty(m,h){var g=r.get(h);if(g===void 0)h in m&&r.set(h,Ai(Ni,o));else{if(l&&typeof h=="string"){var _=r.get("length"),b=Number(h);Number.isInteger(b)&&b<_.v&&Q(_,b)}Q(g,Ni),nv(d)}return!0},get(m,h,g){var O;if(Fe&&h===Kr)return a;if(h===Po)return t;var _=r.get(h),b=h in m;if(_===void 0&&(!b||(O=Dn(m,h))!=null&&O.writable)&&(_=Ai(be(b?m[h]:Ni,a),o),r.set(h,_)),_!==void 0){var T=s(_);if(Fe){var L=T==null?void 0:T[Kr];L&&(L==null?void 0:L.parent)!==a&&Op(a,L)}return T===Ni?void 0:T}return Reflect.get(m,h,g)},getOwnPropertyDescriptor(m,h){var g=Reflect.getOwnPropertyDescriptor(m,h);if(g&&"value"in g){var _=r.get(h);_&&(g.value=s(_))}else if(g===void 0){var b=r.get(h),T=b==null?void 0:b.v;if(b!==void 0&&T!==Ni)return{enumerable:!0,configurable:!0,value:T,writable:!0}}return g},has(m,h){var T;if(Fe&&h===Kr||h===Po)return!0;var g=r.get(h),_=g!==void 0&&g.v!==Ni||Reflect.has(m,h);if(g!==void 0||St!==null&&(!_||(T=Dn(m,h))!=null&&T.writable)){g===void 0&&(g=Ai(_?be(m[h],a):Ni,o),r.set(h,g));var b=s(g);if(b===Ni)return!1}return _},set(m,h,g,_){var Y;var b=r.get(h),T=h in m;if(l&&h==="length")for(var L=g;L<b.v;L+=1){var O=r.get(L+"");O!==void 0?Q(O,Ni):L in m&&(O=Ai(Ni,o),r.set(L+"",O))}if(b===void 0?(!T||(Y=Dn(m,h))!=null&&Y.writable)&&(b=Ai(void 0,o),Q(b,be(g,a)),r.set(h,b)):(T=b.v!==Ni,Q(b,be(g,a))),Fe){var V=g==null?void 0:g[Kr];V&&(V==null?void 0:V.parent)!==a&&Op(a,V),Im(a)}var U=Reflect.getOwnPropertyDescriptor(m,h);if(U!=null&&U.set&&U.set.call(_,g),!T){if(l&&typeof h=="string"){var S=r.get("length"),N=Number(h);Number.isInteger(N)&&N>=S.v&&Q(S,N+1)}nv(d)}return!0},ownKeys(m){s(d);var h=Reflect.ownKeys(m).filter(b=>{var T=r.get(b);return T===void 0||T.v!==Ni});for(var[g,_]of r)_.v!==Ni&&!(g in m)&&h.push(g);return h},setPrototypeOf(){Om()}})}function nv(t,e=1){Q(t,t.v+e)}function Hd(t){return t!==null&&typeof t=="object"&&Po in t?t[Po]:t}function rv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Hd(this[a])===r){Id("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Hd(this[a])===r){Id("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Hd(this[a])===r){Id("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Xs,sv,av,lv;function Fd(){if(Xs===void 0){Xs=window,sv=document;var t=Element.prototype,e=Node.prototype;av=Dn(e,"firstChild").get,lv=Dn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Fe&&(t.__svelte_meta=null,rv())}}function _n(t=""){return document.createTextNode(t)}function mi(t){return av.call(t)}function $o(t){return lv.call(t)}function y(t,e){if(!gt)return mi(t);var i=mi(Tt);if(i===null)i=Tt.appendChild(_n());else if(e&&i.nodeType!==3){var o=_n();return i==null||i.before(o),hi(o),o}return hi(i),i}function we(t,e){var n,r;if(!gt){var i=mi(t);return i.nodeType===8&&i.data===""?$o(i):i}if(e&&((n=Tt)==null?void 0:n.nodeType)!==3){var o=_n();return(r=Tt)==null||r.before(o),hi(o),o}return Tt}function D(t,e=1,i=!1){let o=gt?Tt:t;for(var n;e--;)n=o,o=$o(o);if(!gt)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=_n();return o===null?n==null||n.after(l):o.before(l),hi(l),l}return hi(o),o}function Ql(t){t.textContent=""}function rf(t){St===null&&Dt===null&&Mm(t),Dt!==null&&Dt.f&256&&Am(),Nd&&Pm(t)}function f_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Js(t,e,i,o=!0){var v;var n=(t&64)!==0,r=St;if(Fe)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:kt,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:r,prev:null,teardown:null,transitions:null,wv:0};if(Fe&&(l.component_function=Wo),i){var d=Xr;try{Ia(!0),Qs(l),l.f|=32768}catch(m){throw no(l),m}finally{Ia(d)}}else e!==null&&Pa(l);var a=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&1048704)===0;if(!a&&!n&&o&&(r!==null&&f_(l,r),Dt!==null&&Dt.f&2)){var c=Dt;((v=c.children)!=null?v:c.children=[]).push(l)}return l}function Un(t){let e=Js(8,null,!1);return Qo(e,1024),e.teardown=t,e}function We(t){var n;rf("$effect");var e=St!==null&&(St.f&32)!==0&&kt!==null&&!kt.m;if(Fe&&Gi(t,"name",{value:"$effect"}),e){var i=kt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:St,reaction:Dt})}else{var o=Fn(t);return o}}function Ca(t){return rf("$effect.pre"),Fe&&Gi(t,"name",{value:"$effect.pre"}),ho(t)}function Ud(t){let e=Js(64,t,!0);return()=>{no(e)}}function uv(t){let e=Js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?zn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function Fn(t){return Js(4,t,!1)}function ho(t){return Js(8,t,!0)}function R(t){return Fe&&Gi(t,"name",{value:"{expression}"}),so(t)}function so(t,e=0){return Js(24|e,t,!0)}function qi(t,e=!0){return Js(40,t,!0,e)}function ef(t){var e=t.teardown;if(e!==null){let i=Nd,o=Dt;Xp(!0),Go(null);try{e.call(null)}finally{Xp(i),Go(o)}}}function tf(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var i=0;i<e.length;i+=1)ql(e[i])}}function of(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;no(i,e),i=o}}function ov(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||no(e),e=i}}function no(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var r=o===n?null:$o(o);o.remove(),o=r}i=!0}of(t,e&&!i),tf(t),Gs(t,0),Qo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();ef(t);var d=t.parent;d!==null&&d.first!==null&&nf(t),Fe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function nf(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function zn(t,e){var i=[];zd(t,i,!0),sf(i,()=>{no(t),e&&e()})}function sf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function zd(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;zd(o,e,r?i:!1),o=n}}}function _s(t){pv(t,!0)}function pv(t,e){if(t.f&8192){vs(t)&&Qs(t),t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;pv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function af(t,e){if(e){let i=document.body;t.autofocus=!0,vn(()=>{document.activeElement===i&&t.focus()})}}function lf(t){var e=Dt,i=St;Go(null),Yi(null);try{return t()}finally{Go(e),Yi(i)}}var df=new Set,qd=new Set;function ea(t){if(!gt)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function cf(t,e,i,o){function n(r){if(o.capture||Oa.call(e,r),!r.cancelBubble)return lf(()=>i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?vn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Nt(t,e,i,o,n){var r={capture:o,passive:n},l=cf(t,e,i,r);(e===document.body||e===window||e===document)&&Un(()=>{e.removeEventListener(t,l,r)})}function wt(t){for(var e=0;e<t.length;e++)df.add(t[e]);for(var i of qd)i(t)}function Oa(t){var O;var e=this,i=e.ownerDocument,o=t.type,n=((O=t.composedPath)==null?void 0:O.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;a<=c&&(l=a)}if(r=n[l]||t.target,r!==e){Gi(t,"currentTarget",{configurable:!0,get(){return r||i}});var v=Dt,m=St;Go(null),Yi(null);try{for(var h,g=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var b=r["__"+o];if(b!==void 0&&!r.disabled)if(hr(b)){var[T,...L]=b;T.apply(r,[t,...L])}else b.call(r,t)}catch(V){h?g.push(V):h=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(h){for(let V of g)queueMicrotask(()=>{throw V});throw h}}finally{t.__root=e,delete t.currentTarget,Go(v),Yi(m)}}}var v_;function fv(){v_=void 0}function Ha(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function bo(t,e){var i=St;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function F(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(gt)return bo(Tt,null),Tt;n===void 0&&(n=Ha(r?t:"<!>"+t),i||(n=mi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=mi(l),a=l.lastChild;bo(d,a)}else bo(l,l);return l}}function Ae(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(gt)return bo(Tt,null),Tt;if(!l){var d=Ha(r),a=mi(d);if(n)for(l=document.createDocumentFragment();mi(a);)l.appendChild(mi(a));else l=mi(a)}var c=l.cloneNode(!0);if(n){var v=mi(c),m=c.lastChild;bo(v,m)}else bo(c,c);return c}}function ir(t=""){if(!gt){var e=_n(t+"");return bo(e,e),e}var i=Tt;return i.nodeType!==3&&(i.before(i=_n()),hi(i)),bo(i,i),i}function Ge(){if(gt)return bo(Tt,null),Tt;var t=document.createDocumentFragment(),e=document.createComment(""),i=_n();return t.append(e,i),bo(e,i),t}function w(t,e){if(gt){St.nodes_end=Tt,Di();return}t!==null&&t.before(e)}var h_=/\r/g;function vv(t){t=t.replace(h_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function gv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var __=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hv(t){return __.includes(t)}var $_=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var b_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function _v(t){var e;return t=t.toLowerCase(),(e=b_[t])!=null?e:t}var n7=[...$_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject"];var y_=["touchstart","touchmove"];function $v(t){return y_.includes(t)}function uf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var pf=!0;function Ie(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i==null?"":i+"")}function Wd(t,e){return bv(t,e)}function mf(t,e){var l;Fd(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=gt,n=Tt;try{for(var r=mi(i);r&&(r.nodeType!==8||r.data!==wa);)r=$o(r);if(!r)throw Gr;hn(!0),hi(r),Di();let d=bv(t,{...e,anchor:r});if(Tt===null||Tt.nodeType!==8||Tt.data!==Ws)throw zs(),Gr;return hn(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Rm(),Fd(),Ql(i),hn(!1),Wd(t,e);throw d}finally{hn(o),hi(n),fv()}}var Fa=new Map;function bv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Fd();var d=new Set,a=m=>{for(var h=0;h<m.length;h++){var g=m[h];if(!d.has(g)){d.add(g);var _=$v(g);e.addEventListener(g,Oa,{passive:_});var b=Fa.get(g);b===void 0?(document.addEventListener(g,Oa,{passive:_}),Fa.set(g,1)):Fa.set(g,b+1)}}};a(Hl(df)),qd.add(a);var c=void 0,v=uv(()=>{var m=i!=null?i:e.appendChild(_n());return qi(()=>{if(r){k({});var h=kt;h.c=r}n&&(o.$$events=n),gt&&bo(m,null),pf=l,c=t(m,o)||{},pf=!0,gt&&(St.nodes_end=Tt),r&&P()}),()=>{var _;for(var h of d){e.removeEventListener(h,Oa);var g=Fa.get(h);--g===0?(document.removeEventListener(h,Oa),Fa.delete(h)):Fa.set(h,g)}qd.delete(a),m!==i&&((_=m.parentNode)==null||_.removeChild(m))}});return ff.set(c,v),c}var ff=new WeakMap;function vf(t,e){let i=ff.get(t);return i?(ff.delete(t),i(e)):(Fe&&wm(),Promise.resolve())}var hf;function E(t){return hf=t.target,new gf(t)}var ts,or,gf=class{constructor(e){ps(this,ts);ps(this,or);var r,l;var i=new Map,o=(d,a)=>{var c=Zr(a);return i.set(d,c),c};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var c;return s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a)))},has(d,a){var c;return a===Ol?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var v;return Q((v=i.get(a))!=null?v:o(a,c),c),Reflect.set(d,a,c)}});xa(this,or,(e.hydrate?mf:Wd)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&u(),xa(this,ts,n.$$events);for(let d of Object.keys(Si(this,or)))d==="$set"||d==="$destroy"||d==="$on"||Gi(this,d,{get(){return Si(this,or)[d]},set(a){Si(this,or)[d]=a},enumerable:!0});Si(this,or).$set=d=>{Object.assign(n,d)},Si(this,or).$destroy=()=>{vf(Si(this,or))}}$set(e){Si(this,or).$set(e)}$on(e,i){Si(this,ts)[e]=Si(this,ts)[e]||[];let o=(...n)=>i.call(this,...n);return Si(this,ts)[e].push(o),()=>{Si(this,ts)[e]=Si(this,ts)[e].filter(n=>n!==o)}}$destroy(){Si(this,or).$destroy()}};ts=new WeakMap,or=new WeakMap;var yv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(yv);var xv=new Map;function wv(t,e){var i=xv.get(t);i||(i=new Set,xv.set(t,i)),i.add(e)}function W(t,e,i=!1){gt&&Di();var o=t,n=null,r=null,l=Ni,d=i?65536:0,a=!1;let c=(m,h=!0)=>{a=!0,v(h,m)},v=(m,h)=>{if(l===(l=m))return;let g=!1;if(gt){let _=o.data===qs;!!l===_&&(o=Da(),hi(o),hn(!1),g=!0)}l?(n?_s(n):h&&(n=qi(()=>h(o))),r&&zn(r,()=>{r=null})):(r?_s(r):h&&(r=qi(()=>h(o))),n&&zn(n,()=>{n=null})),g&&hn(!0)};so(()=>{a=!1,e(c),a||v(null,null)},d),gt&&(o=Tt)}function Gl(t,e,i){gt&&Di();var o=t,n=Ni,r,l=ms()?Em:Sa;so(()=>{l(n,n=e())&&(r&&zn(r),r=qi(()=>i(o)))}),gt&&(o=Tt)}var Yl=null;function Ti(t,e){return e}function L_(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)zd(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Ql(a),a.append(i),o.clear(),$s(t,e[0].prev,e[r-1].next)}sf(n,()=>{for(var c=0;c<r;c++){var v=e[c];d||(o.delete(v.k),$s(t,v.prev,v.next)),no(v.e,!d)}})}function _i(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var c=t;l=gt?hi(mi(c)):c.appendChild(_n())}gt&&Di();var v=null,m=!1,h=Jr(()=>{var g=i();return hr(g)?g:g==null?[]:Hl(g)});so(()=>{var g=s(h),_=g.length;if(m&&_===0)return;m=_===0;let b=!1;if(gt){var T=l.data===qs;T!==(_===0)&&(l=Da(),hi(l),hn(!1),b=!0)}if(gt){for(var L=null,O,V=0;V<_;V++){if(Tt.nodeType===8&&Tt.data===Ws){l=Tt,b=!0,hn(!1);break}var U=g[V],S=o(U,V);O=Tv(Tt,d,L,null,U,S,V,n,e,i),d.items.set(S,O),L=O}_>0&&hi(Da())}if(!gt){var N=Dt;R_(g,d,l,n,e,(N.f&8192)!==0,o,i)}r!==null&&(_===0?v?_s(v):v=qi(()=>r(l)):v!==null&&zn(v,()=>{v=null})),b&&hn(!0),s(h)}),gt&&(l=Tt)}function R_(t,e,i,o,n,r,l,d){var fe,ie,ge,G;var a=(n&8)!==0,c=(n&3)!==0,v=t.length,m=e.items,h=e.first,g=h,_,b=null,T,L=[],O=[],V,U,S,N;if(a)for(N=0;N<v;N+=1)V=t[N],U=l(V,N),S=m.get(U),S!==void 0&&((fe=S.a)==null||fe.measure(),(T!=null?T:T=new Set).add(S));for(N=0;N<v;N+=1){if(V=t[N],U=l(V,N),S=m.get(U),S===void 0){var Y=g?g.e.nodes_start:i;b=Tv(Y,e,b,b===null?e.first:b.next,V,U,N,o,n,d),m.set(U,b),L=[],O=[],g=b.next;continue}if(c&&V_(S,V,N,n),S.e.f&8192&&(_s(S.e),a&&((ie=S.a)==null||ie.unfix(),(T!=null?T:T=new Set).delete(S))),S!==g){if(_!==void 0&&_.has(S)){if(L.length<O.length){var K=O[0],j;b=K.prev;var oe=L[0],ce=L[L.length-1];for(j=0;j<L.length;j+=1)Cv(L[j],K,i);for(j=0;j<O.length;j+=1)_.delete(O[j]);$s(e,oe.prev,ce.next),$s(e,b,oe),$s(e,ce,K),g=K,b=ce,N-=1,L=[],O=[]}else _.delete(S),Cv(S,g,i),$s(e,S.prev,S.next),$s(e,S,b===null?e.first:b.next),$s(e,b,S),b=S;continue}for(L=[],O=[];g!==null&&g.k!==U;)(r||!(g.e.f&8192))&&(_!=null?_:_=new Set).add(g),O.push(g),g=g.next;if(g===null)continue;S=g}L.push(S),b=S,g=S.next}if(g!==null||_!==void 0){for(var X=_===void 0?[]:Hl(_);g!==null;)(r||!(g.e.f&8192))&&X.push(g),g=g.next;var Z=X.length;if(Z>0){var He=n&4&&v===0?i:null;if(a){for(N=0;N<Z;N+=1)(ge=X[N].a)==null||ge.measure();for(N=0;N<Z;N+=1)(G=X[N].a)==null||G.fix()}L_(e,X,He,m)}}a&&vn(()=>{var ee;if(T!==void 0)for(S of T)(ee=S.a)==null||ee.apply()}),St.first=e.first&&e.first.e,St.last=b&&b.e}function V_(t,e,i,o){o&1&&ka(t.v,e),o&2?ka(t.i,i):t.i=i}function Tv(t,e,i,o,n,r,l,d,a,c){var v=Yl,m=(a&1)!==0,h=(a&16)===0,g=m?h?Zr(n):Ai(n):n,_=a&2?Ai(l):l;Fe&&m&&(g.debug=()=>{var T=typeof _=="number"?l:_.v;c()[T]});var b={i:_,v:g,k:r,a:null,e:null,prev:i,next:o};Yl=b;try{return b.e=qi(()=>d(t,g,_),gt),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{Yl=v}}function Cv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=$o(r);n.before(r),r=l}}function $s(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function B_(t,e,i){var r,l;if(!e||e===vv(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Wo)!=null&&l[Pi]&&(o=`in ${Wo[Pi]}`),xm(uf(o))}function jl(t,e,i,o,n){var r=t,l="",d;so(()=>{var a;if(l===(l=(a=e())!=null?a:"")){gt&&Di();return}d!==void 0&&(no(d),d=void 0),l!==""&&(d=qi(()=>{if(gt){for(var c=Tt.data,v=Di(),m=v;v!==null&&(v.nodeType!==8||v.data!=="");)m=v,v=$o(v);if(v===null)throw zs(),Gr;Fe&&!n&&B_(v.parentNode,c,l),bo(Tt,m),r=hi(v);return}var h=l+"";i?h=`<svg>${h}</svg>`:o&&(h=`<math>${h}</math>`);var g=Ha(h);if((i||o)&&(g=mi(g)),bo(mi(g),g.lastChild),i||o)for(;mi(g);)r.before(mi(g));else r.before(g)}))})}function Ve(t,e,i,o,n){var d;gt&&Di();var r=(d=e.$$slots)==null?void 0:d[i],l=!1;r===!0&&(r=e[i==="default"?"children":i],l=!0),r===void 0?n!==null&&n(t):r(t,l?()=>o:o)}function ao(t,e,...i){var o=t,n=Qt,r;so(()=>{n!==(n=e())&&(r&&(no(r),r=null),Fe&&n==null&&Vm(),r=qi(()=>n(o,...i)))},65536),gt&&(o=Tt)}function Mi(t,e,i){gt&&Di();var o=t,n,r;so(()=>{n!==(n=e())&&(r&&(zn(r),r=null),n&&(r=qi(()=>i(o,n))))},65536),gt&&(o=Tt)}function le(t,e){vn(()=>{var n,r;var i=t.getRootNode(),o=(i.host?i:(n=i.head)!=null?n:i.ownerDocument.head)||((r=hf)==null?void 0:r.parentNode);if(!(o!=null&&o.querySelector("#"+e.hash))){let l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l),Fe&&wv(e.hash,l)}})}function Iv(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Iv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Ev(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Iv(t))&&(o&&(o+=" "),o+=e);return o}function Zl(t){return typeof t=="object"?Ev(t):t!=null?t:""}function Av(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function me(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(gt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Lv(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[um]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Mv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Be(t,e,i,o,n=!1,r=!1,l=!1){var O;var d=e||{},a=t.tagName==="OPTION";for(var c in e)c in i||(i[c]=null);i.class&&(i.class=Zl(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var v=Mv(t),m=(O=t.__attributes)!=null?O:t.__attributes={};for(let V in i){let U=i[V];if(a&&V==="value"&&U==null){t.value=t.__value="",d[V]=U;continue}var h=d[V];if(U!==h){d[V]=U;var g=V[0]+V[1];if(g!=="$$"){if(g==="on"){let S={},N="$$"+V,Y=V.slice(2);var _=hv(Y);if(gv(Y)&&(Y=Y.slice(0,-7),S.capture=!0),!_&&h){if(U!=null)continue;t.removeEventListener(Y,d[N],S),d[N]=null}if(U!=null)if(_)t[`__${Y}`]=U,wt([Y]);else{let K=function(j){d[V].call(this,j)};var L=K;d[N]=cf(Y,t,K,S)}else _&&(t[`__${Y}`]=void 0)}else if(V==="style"&&U!=null)t.style.cssText=U+"";else if(V==="autofocus")af(t,!!U);else if(V==="__value"||V==="value"&&U!=null)t.value=t[V]=t.__value=U;else if(V==="selected"&&a)Av(t,U);else{var b=V;n||(b=_v(b));var T=b==="defaultValue"||b==="defaultChecked";if(U==null&&!r&&!T)if(m[V]=null,b==="value"||b==="checked"){let S=t;if(b==="value"){let N=S.defaultValue;S.removeAttribute(b),S.defaultValue=N}else{let N=S.defaultChecked;S.removeAttribute(b),S.defaultChecked=N}}else t.removeAttribute(V);else T||v.includes(b)&&(r||typeof U!="string")?t[b]=U:typeof U!="function"&&(gt&&(b==="src"||b==="href"||b==="srcset")?l||Lv(t,b,U!=null?U:""):me(t,b,U))}V==="style"&&"__styles"in t&&(t.__styles={})}}}return d}var kv=new Map;function Mv(t){var e=kv.get(t.nodeName);if(e)return e;kv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Sd(o);for(var r in i)i[r].set&&e.push(r);o=Qr(o)}return e}function Lv(t,e,i){var o;Fe&&(e==="srcset"&&D_(t,i)||bf((o=t.getAttribute(e))!=null?o:"",i)||ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function bf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Pv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function D_(t,e){var i=Pv(t.srcset),o=Pv(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(bf(i[l][0],n)||bf(n,i[l][0])))}function Yo(t,e,i){var o=t.__className,n=O_(e,i);gt&&t.className===n?t.__className=n:(o!==n||gt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function O_(t,e){return(t==null?"":t)+(e?" "+e:"")}function ne(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var bs,Ua,Xl,Qd,Rv,Gd=class Gd{constructor(e){ps(this,Qd);ps(this,bs,new WeakMap);ps(this,Ua);ps(this,Xl);xa(this,Xl,e)}observe(e,i){var o=Si(this,bs).get(e)||new Set;return o.add(i),Si(this,bs).set(e,o),cm(this,Qd,Rv).call(this).observe(e,Si(this,Xl)),()=>{var n=Si(this,bs).get(e);n.delete(i),n.size===0&&(Si(this,bs).delete(e),Si(this,Ua).unobserve(e))}}};bs=new WeakMap,Ua=new WeakMap,Xl=new WeakMap,Qd=new WeakSet,Rv=function(){var e;return(e=Si(this,Ua))!=null?e:xa(this,Ua,new ResizeObserver(i=>{for(var o of i){Gd.entries.set(o.target,o);for(var n of Si(this,bs).get(o.target)||[])n(o)}}))},Nn(Gd,"entries",new WeakMap);var yf=Gd;var z_=new yf({box:"border-box"});function ta(t,e,i){var o=z_.observe(t,()=>i(t[e]));Fn(()=>(ui(()=>i(t[e])),o))}function Vv(t,e){return t===e||(t==null?void 0:t[Po])===e}function Ct(t={},e,i,o){return Fn(()=>{var n,r;return ho(()=>{n=r,r=(o==null?void 0:o())||[],ui(()=>{t!==i(...r)&&(e(t,...r),n&&Vv(i(...n),t)&&e(null,...n))})}),()=>{vn(()=>{r&&Vv(i(...r),t)&&e(null,...r)})}}),t}function $r(t=!1){let e=kt,i=e.l.u;if(!i)return;let o=()=>Od(e.s);if(t){let n=0,r={},l=x(()=>{let d=!1,a=e.s;for(let c in a)a[c]!==r[c]&&(r[c]=a[c],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Ca(()=>{Bv(e,o),fs(i.b)}),We(()=>{let n=ui(()=>i.m.map(gm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{Bv(e,o),fs(i.a)})}function Bv(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function A(t,e,i){var o;t.$$events||(t.$$events={}),(o=t.$$events)[e]||(o[e]=[]),t.$$events[e].push(i)}function M(t){for(var e in t)e in this&&(this[e]=t[e])}function Ot(t){kt===null&&Aa("onMount"),Ar&&kt.l!==null?W_(kt).m.push(t):We(()=>{let e=ui(t);if(typeof e=="function")return e})}function nr(t){kt===null&&Aa("onDestroy"),Ot(()=>()=>ui(t))}function W_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Jl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Qt;let o=ui(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var za=[];function rr(t,e){return{subscribe:Te(t,e).subscribe}}function Te(t,e=Qt){let i=null,o=new Set;function n(d){if(Sa(t,d)&&(t=d,i)){let a=!za.length;for(let c of o)c[1](),za.push(c,t);if(a){for(let c=0;c<za.length;c+=2)za[c][0](za[c+1]);za.length=0}}}function r(d){n(d(t))}function l(d,a=Qt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Qt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function pi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return rr(i,(l,d)=>{let a=!1,c=[],v=0,m=Qt,h=()=>{if(v)return;m();let _=e(o?c[0]:c,l,d);r?l(_):m=typeof _=="function"?_:Qt},g=n.map((_,b)=>Jl(_,T=>{c[b]=T,v&=~(1<<b),a&&h()},()=>{v|=1<<b}));return a=!0,h(),function(){fs(g),m(),a=!1}})}function Le(t){let e;return Jl(t,i=>e=i)(),e}var Yd=!1,xf=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Zr(void 0),unsubscribe:Qt};if(o.store!==t&&!(xf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Qt;else{var n=!0;o.unsubscribe=Jl(t,l=>{n?o.source.v=l:Q(o.source,l)}),n=!1}return t&&xf in i?Le(t):s(o.source)}function Ze(){let t={};function e(){Un(()=>{for(var i in t)t[i].unsubscribe();Gi(t,xf,{enumerable:!1,value:!0})})}return[t,e]}function wf(t){var e=Yd;try{return Yd=!1,[t(),Yd]}finally{Yd=e}}var j_={get(t,e){if(!t.exclude.includes(e))return s(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,4)),t.special[e](i),Dd(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Dd(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ne(t,e){return new Proxy({props:t,exclude:e,special:{},version:Ai(0)},j_)}var Z_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Hs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Hs(n)&&(n=n());let r=Dn(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Hs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Dn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Po||e===Ol)return!1;for(let i of t.props)if(Hs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Hs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function is(...t){return new Proxy({props:t},Z_)}function Nv(t){for(var e=St,i=St;e!==null&&!(e.f&96);)e=e.parent;try{return Yi(e),t()}finally{Yi(i)}}function p(t,e,i,o){var Y,K;var n=(i&1)!==0,r=!Ar||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=wf(()=>t[e]):c=t[e];var v=Po in t||Ol in t,m=l&&((K=(Y=Dn(t,e))==null?void 0:Y.set)!=null?K:v&&e in t&&(j=>t[e]=j))||void 0,h=o,g=!0,_=!1,b=()=>(_=!0,g&&(g=!1,d?h=ui(o):h=o),h);c===void 0&&o!==void 0&&(m&&r&&Bm(e),c=b(),m&&m(c));var T;if(r)T=()=>{var j=t[e];return j===void 0?b():(g=!0,_=!1,j)};else{var L=Nv(()=>(n?x:Jr)(()=>t[e]));L.f|=131072,T=()=>{var j=s(L);return j!==void 0&&(h=void 0),j===void 0?h:j}}if(!(i&4))return T;if(m){var O=t.$$legacy;return function(j,oe){return arguments.length>0?((!r||!oe||O||a)&&m(oe?T():j),j):T()}}var V=!1,U=!1,S=Zr(c),N=Nv(()=>x(()=>{var j=T(),oe=s(S);return V?(V=!1,U=!0,oe):(U=!1,S.v=j)}));return n||(N.equals=Ta),function(j,oe){if(Ul!==null&&(V=U,T(),s(S)),arguments.length>0){let ce=oe?s(N):r&&l?be(j):j;return N.equals(ce)||(V=!0,Q(S,ce),_&&h!==void 0&&(h=ce),ui(()=>s(N))),j}return s(N)}}var X_;typeof HTMLElement=="function"&&(X_=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),w(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=J_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Cf(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=E({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Ud(()=>{ho(()=>{var r;this.$$r=!0;for(let l of Rp(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Cf(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cf(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Rp(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Cf(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function J_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{noop as gp,safeStorage as r3,throttleFn as s3,clientChecker as a3}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as l3}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as t$,fillWithDefault as i$,VideoQuality as Ov}from"@vkontakte/videoplayer-shared/es2018";var o$={isMobile:void 0,defaultLanguage:t$.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:Ov.Q_480P,highQualityLimit:Ov.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackStateValue:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Hv=t=>i$(t,o$),Fv=t=>Zs("ui-config",t),Jt=()=>js("ui-config");var ed="vk_player_debug_panel_opened";var Uv="videoplayer",zv="videoplayer";var Vr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},qv=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wv=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Kv=new Set(["ShiftRight","ShiftLeft"]);var Qv=["TIMELINE"],td=[...Qv,"GRAPH_BUTTON"],Sf=[...Qv,"PLAY_BUTTON"],id=[...td,"PLAY_BUTTON"];var Br=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Br||{}),oa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Gv,VERSION as n$}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as r$}from"@vkontakte/videoplayer-core/es2018";import{VERSION as s$}from"@vkontakte/videoplayer-statistics/es2018";var jd="prod",qa="1.1.55-dev.74e495c6.0";var na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Yv=Symbol("storeContext"),jv=Symbol("microStoresContext"),Zv=(t,e)=>{Zs(Yv,t),Zs(jv,e),jd==="dev"&&(window.app={store:t,microStores:e})},De=()=>{let t=js(Yv);return Gv(t,"Store context is empty!"),t},jo=()=>{let t=js(jv);return Gv(t,"MicroStores context is empty!"),t},Gt=(t,e)=>Xd(t,t.getValue(),e),Xd=(t,e,i)=>rr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),Xv=(t,e,i)=>{var L,O,V,U,S,N;let o=t.info,{width:n,height:r}=Le(i.ui.playerSize),l=(O=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?O:0,d=(U=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?U:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${qa} (core: ${r$}, stat: ${s$}, shared: ${n$})`,v=Le(i.state.errorLog$),m=v.length?`
46
46
  `+v.map((Y,K)=>{var X;let j=`${K}) Type: ${Y.id}
47
47
  `,oe=`Message: ${Y.message} (${Y.thrown})
48
48
  `,ce=`Trace: ${(X=Y.thrown)==null?void 0:X.stack}