@vkontakte/videoplayer 1.1.59-dev.50aa90ae.0 → 1.1.59-dev.5ccf8bf2.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.59-dev.50aa90ae.0
3
- * Wed, 26 Mar 2025 07:52:41 GMT
2
+ * @vkontakte/videoplayer v1.1.59-dev.5ccf8bf2.0
3
+ * Mon, 31 Mar 2025 07:54:23 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-59/doc/
5
5
  */
6
6
  "use strict";var W_=Object.create;var ud=Object.defineProperty;var q_=Object.getOwnPropertyDescriptor;var K_=Object.getOwnPropertyNames;var Q_=Object.getPrototypeOf,G_=Object.prototype.hasOwnProperty;var fv=t=>{throw TypeError(t)};var Y_=(t,e,i)=>e in t?ud(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var j_=(t,e)=>{for(var i in e)ud(t,i,{get:e[i],enumerable:!0})},mv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of K_(e))!G_.call(t,n)&&n!==i&&ud(t,n,{get:()=>e[n],enumerable:!(o=q_(e,n))||o.enumerable});return t};var vv=(t,e,i)=>(i=t!=null?W_(Q_(t)):{},mv(e||!t||!t.__esModule?ud(i,"default",{value:t,enumerable:!0}):i,t)),Z_=t=>mv(ud({},"__esModule",{value:!0}),t);var kn=(t,e,i)=>Y_(t,typeof e!="symbol"?e+"":e,i),xf=(t,e,i)=>e.has(t)||fv("Cannot "+i);var Mi=(t,e,i)=>(xf(t,e,"read from private field"),i?i.call(t):e.get(t)),As=(t,e,i)=>e.has(t)?fv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Oa=(t,e,i,o)=>(xf(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),gv=(t,e,i)=>(xf(t,e,"access private method"),i);var Zx={};j_(Zx,{ControlButtonType:()=>Ud,GridTypes:()=>Dr,InterfaceLanguage:()=>ld.InterfaceLanguage,MenuItemType:()=>$l,PlayerPhase:()=>Ds,VERSION:()=>$a,VKNumericLanguage:()=>ld.VKNumericLanguage,VideoFormat:()=>yf.VideoFormat,VideoQuality:()=>yf.VideoQuality,loadVKLangPack:()=>ld.loadVKLangPack,registerPlayerWebComponent:()=>jx});module.exports=Z_(Zx);var No=Symbol("$state"),cs=Symbol("$state metadata"),pd=Symbol("legacy props"),hv=Symbol("");var vc=!0;var _v,$v,wf=($v=(_v=globalThis.process)==null?void 0:_v.env)==null?void 0:$v.NODE_ENV;wf||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 ze=wf&&!wf.toLowerCase().includes("prod");var Ar=Array.isArray,bv=Array.prototype.indexOf,fd=Array.from,Cf=Object.keys,ao=Object.defineProperty,En=Object.getOwnPropertyDescriptor,gc=Object.getOwnPropertyDescriptors,Sf=Object.prototype,yv=Array.prototype,us=Object.getPrototypeOf;function Ms(t){return typeof t=="function"}var Kt=()=>{};function xv(t){return t()}function Ls(t){for(var e=0;e<t.length;e++)t[e]()}var hc=!1,Cv=!1,Tf=[],wv=[];function Sv(){hc=!1;let t=Tf.slice();Tf=[],Ls(t)}function X_(){Cv=!1;let t=wv.slice();wv=[],Ls(t)}function Ko(t){hc||(hc=!0,queueMicrotask(Sv)),Tf.push(t)}function Tv(){hc&&Sv(),Cv&&X_()}function _c(t){return t===this.v}function Ha(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Iv(t,e){return t!==e}function Fa(t){return!Ha(t,this.v)}function kv(){if(ze){let t=new Error(`derived_references_self
@@ -42,7 +42,7 @@ ${n.map(m=>`
42
42
  ${a}in ${m}`).join("")}
43
43
  `}),ao(t,"component_stack",{value:n});let c=t.stack;if(c){let m=c.split(`
44
44
  `),h=[];for(let _=0;_<m.length;_++){let y=m[_];y.includes("svelte/src/internal")||h.push(y)}ao(t,"stack",{value:h.join(`
45
- `)})}if(eg(t,e),tg(e))throw t}function sg(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?sg(r,e,i+1):e===r&&(i===0?Yo(r,2048):r.f&1024&&Yo(r,4096),ja(r))}}function wc(t){var h,_;var e=jo,i=Ln,o=Xr,n=Qt,r=gs,l=Mr,d=Nt,a=Lr,c=t.f;jo=null,Ln=0,Xr=null,Qt=c&96?null:t,gs=(c&256)!==0&&(!vs||n===null||a),Mr=null,gd(t.ctx),Lr=!1,Ic++;try{var f=(0,t.fn)(),g=t.deps;if(jo!==null){var m;if(xd(t,Ln),g!==null&&Ln>0)for(g.length=Ln+jo.length,m=0;m<jo.length;m++)g[Ln+m]=jo[m];else t.deps=g=jo;if(!gs)for(m=Ln;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Ln<g.length&&(xd(t,Ln),g.length=Ln);if(Zr()&&Xr!==null&&!(t.f&6146))for(m=0;m<Xr.length;m++)sg(Xr[m],t);return n!==null&&Ic++,f}finally{jo=e,Ln=i,Xr=o,Qt=n,gs=r,Mr=l,gd(d),Lr=a}}function c$(t,e){let i=e.reactions;if(i!==null){var o=bv.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&&(jo===null||!jo.includes(e))&&(Yo(e,4096),e.f&768||(e.f^=512),xc(e),xd(e,0))}function xd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)c$(t,i[o])}function Ya(t){var e=t.f;if(!(e&16384)){Yo(t,1024);var i=Et,o=Nt;if(Et=t,ze){var n=Go;hd(t.component_function)}try{e&16?cg(t):Wf(t),zf(t);var r=wc(t);t.teardown=typeof r=="function"?r:null,t.wv=rg;var l=t.deps;if(ze&&jr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=$d(),d.trace_need_increase=void 0,d.trace_v=void 0)}ze&&yd.push(t)}catch(a){el(a,t,i,o||t.ctx)}finally{Et=i,ze&&hd(n)}}}function ig(){console.error("Last ten effects were: ",yd.slice(-10).map(t=>t.fn)),yd=[]}function ag(){if(Xa>1e3){Xa=0;try{Mv()}catch(t){if(ze&&ao(t,"stack",{value:""}),Za!==null)if(ze)try{el(t,Za,null,null)}catch(e){throw ig(),e}else el(t,Za,null,null);else throw ze&&ig(),t}}Xa++}function lg(t){var e=t.length;if(e!==0){ag();var i=vs;vs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];dg(n,r),u$(r)}}finally{vs=i}}}function u$(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)&&(Ya(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?qf(o):o.fn=null))}catch(n){el(n,o,null,o.ctx)}}}function p$(){if(bd=!1,Xa>1001)return;let t=pa;pa=[],lg(t),bd||(Xa=0,Za=null,ze&&(yd=[]))}function ja(t){Sc===ng&&(bd||(bd=!0,queueMicrotask(p$))),Za=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}}pa.push(e)}function dg(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{var a=Qt;try{Qt=i,Vs(i)&&Ya(i)}catch(m){el(m,i,null,i.ctx)}finally{Qt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),dg(c,e)}function u(t){var e=Sc,i=pa;try{ag();let n=[];Sc=d$,pa=n,bd=!1,lg(i);var o=t==null?void 0:t();return Tv(),(pa.length>0||n.length>0)&&u(),Xa=0,Za=null,ze&&(yd=[]),o}finally{Sc=e,pa=i}}async function ho(){await Promise.resolve(),u()}function s(t){var e=t.f,i=(e&2)!==0;if(vd!==null&&vd.add(t),Qt!==null&&!Lr){Mr!==null&&Mr.includes(t)&&Ov();var o=Qt.deps;t.rv<Ic&&(t.rv=Ic,jo===null&&o!==null&&o[Ln]===t?Ln++:jo===null?jo=[t]:(!gs||!jo.includes(t))&&jo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Vs(n)&&Hf(n)),ze&&jr&&md!==null&&Qt!==null&&md.reaction===Qt){if(t.debug)t.debug();else if(t.created){var l=md.entries.get(t);l===void 0&&(l={read:[]},md.entries.set(t,l)),l.read.push(fs("TracedAt"))}}return t.v}function kt(t){var e=Lr;try{return Lr=!0,t()}finally{Lr=e}}var f$=-7169;function Yo(t,e){t.f=t.f&f$|e}function Pc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(No in t)kc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&No in i&&kc(i)}}}function kc(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{kc(t[o],e)}catch(n){}let i=us(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=gc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var at=!1;function co(t){at=t}var Ct;function fi(t){if(t===null)throw da(),ps;return Ct=t}function Li(){return fi(To(Ct))}function b(t){if(at){if(To(Ct)!==null)throw da(),ps;Ct=t}}function Me(t=1){if(at){for(var e=t,i=Ct;e--;)i=To(i);Ct=i}}function il(){for(var t=0,e=Ct;;){if(e.nodeType===8){var i=e.data;if(i===ra){if(t===0)return e;t-=1}else(i===Ua||i===na)&&(t+=1)}var o=To(e);e.remove(),e=o}}function Ae(t,e=null,i){var c,f;var o=null;if(ze&&jr&&(o=fs("CreatedAt")),typeof t!="object"||t===null||No in t)return t;let n=us(t);if(n!==Sf&&n!==yv)return t;var r=new Map,l=Ar(t),d=Ui(0);l&&r.set("length",Ui(t.length,o));var a;if(ze)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[cs])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Nt!==null?new Set([Nt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&Bv();var _=r.get(m);return _===void 0?(_=Ui(h.value,o),r.set(m,_)):Y(_,Ae(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Ui(Gi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),y=Number(m);Number.isInteger(y)&&y<_.v&&Y(_,y)}Y(h,Gi),ug(d)}return!0},get(g,m,h){var B;if(ze&&m===cs)return a;if(m===No)return t;var _=r.get(m),y=m in g;if(_===void 0&&(!y||(B=En(g,m))!=null&&B.writable)&&(_=Ui(Ae(y?g[m]:Gi,a),o),r.set(m,_)),_!==void 0){var S=s(_);if(ze){var L=S==null?void 0:S[cs];L&&(L==null?void 0:L.parent)!==a&&Mf(a,L)}return S===Gi?void 0:S}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var y=r.get(m),S=y==null?void 0:y.v;if(y!==void 0&&S!==Gi)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return h},has(g,m){var S;if(ze&&m===cs||m===No)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Gi||Reflect.has(g,m);if(h!==void 0||Et!==null&&(!_||(S=En(g,m))!=null&&S.writable)){h===void 0&&(h=Ui(_?Ae(g[m],a):Gi,o),r.set(m,h));var y=s(h);if(y===Gi)return!1}return _},set(g,m,h,_){var K;var y=r.get(m),S=m in g;if(l&&m==="length")for(var L=h;L<y.v;L+=1){var B=r.get(L+"");B!==void 0?Y(B,Gi):L in g&&(B=Ui(Gi,o),r.set(L+"",B))}if(y===void 0?(!S||(K=En(g,m))!=null&&K.writable)&&(y=Ui(void 0,o),Y(y,Ae(h,a)),r.set(m,y)):(S=y.v!==Gi,Y(y,Ae(h,a))),ze){var V=h==null?void 0:h[cs];V&&(V==null?void 0:V.parent)!==a&&Mf(a,V),Yv(a)}var N=Reflect.getOwnPropertyDescriptor(g,m);if(N!=null&&N.set&&N.set.call(_,h),!S){if(l&&typeof m=="string"){var T=r.get("length"),U=Number(m);Number.isInteger(U)&&U>=T.v&&Y(T,U+1)}ug(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(y=>{var S=r.get(y);return S===void 0||S.v!==Gi});for(var[h,_]of r)_.v!==Gi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){Dv()}})}function ug(t,e=1){Y(t,t.v+e)}function Ac(t){return t!==null&&typeof t=="object"&&No in t?t[No]:t}function pg(){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(Ac(this[a])===r){$c("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(Ac(this[a])===r){$c("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(Ac(this[a])===r){$c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var fa,fg,mg,vg;function Mc(){if(fa===void 0){fa=window,fg=document;var t=Element.prototype,e=Node.prototype;mg=En(e,"firstChild").get,vg=En(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,ze&&(t.__svelte_meta=null,pg())}}function Zo(t=""){return document.createTextNode(t)}function mi(t){return mg.call(t)}function To(t){return vg.call(t)}function x(t,e){if(!at)return mi(t);var i=mi(Ct);if(i===null)i=Ct.appendChild(Zo());else if(e&&i.nodeType!==3){var o=Zo();return i==null||i.before(o),fi(o),o}return fi(i),i}function Ie(t,e){var n,r;if(!at){var i=mi(t);return i.nodeType===8&&i.data===""?To(i):i}if(e&&((n=Ct)==null?void 0:n.nodeType)!==3){var o=Zo();return(r=Ct)==null||r.before(o),fi(o),o}return Ct}function O(t,e=1,i=!1){let o=at?Ct:t;for(var n;e--;)n=o,o=To(o);if(!at)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=Zo();return o===null?n==null||n.after(l):o.before(l),fi(l),l}return fi(o),o}function Cd(t){t.textContent=""}function Qf(t){Et===null&&Qt===null&&Av(t),Qt!==null&&Qt.f&256&&Et===null&&Pv(),Ec&&Ev(t)}function m$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ma(t,e,i,o=!0){var f;var n=(t&64)!==0,r=Et;if(ze)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Nt,deps: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(ze&&(l.component_function=Go),i){var d=vs;try{Qa(!0),Ya(l),l.f|=32768}catch(g){throw lo(l),g}finally{Qa(d)}}else e!==null&&ja(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&&m$(l,r),Qt!==null&&Qt.f&2)){var c=Qt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Vn(t){let e=ma(8,null,!1);return Yo(e,1024),e.teardown=t,e}function st(t){var n;Qf("$effect");var e=Et!==null&&(Et.f&32)!==0&&Nt!==null&&!Nt.m;if(ze&&ao(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:Qt})}else{var o=dn(t);return o}}function za(t){return Qf("$effect.pre"),ze&&ao(t,"name",{value:"$effect.pre"}),So(t)}function Lc(t){let e=ma(64,t,!0);return()=>{lo(e)}}function hg(t){let e=ma(64,t,!0);return(i={})=>new Promise(o=>{i.outro?pn(e,()=>{lo(e),o(void 0)}):(lo(e),o(void 0))})}function dn(t){return ma(4,t,!1)}function So(t){return ma(8,t,!0)}function R(t,e=[],i=$){let o=e.map(i),n=()=>t(...o.map(s));return ze&&ao(n,"name",{value:"{expression}"}),uo(n)}function uo(t,e=0){return ma(24|e,t,!0)}function Yi(t,e=!0){return ma(40,t,!0,e)}function zf(t){var e=t.teardown;if(e!==null){let i=Ec,o=Qt;Uf(!0),go(null);try{e.call(null)}finally{Uf(i),go(o)}}}function Wf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;lo(i,e),i=o}}function cg(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||lo(e),e=i}}function lo(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:To(o);o.remove(),o=r}i=!0}Wf(t,e&&!i),xd(t,0),Yo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();zf(t);var d=t.parent;d!==null&&d.first!==null&&qf(t),ze&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function qf(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 pn(t,e){var i=[];Vc(t,i,!0),Gf(i,()=>{lo(t),e&&e()})}function Gf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Vc(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;Vc(o,e,r?i:!1),o=n}}}function hs(t){_g(t,!0)}function _g(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Vs(t)&&(Yo(t,2048),ja(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;_g(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Yf(t,e){if(e){let i=document.body;t.autofocus=!0,Ko(()=>{document.activeElement===i&&t.focus()})}}function jf(t){var e=Qt,i=Et;go(null),Fi(null);try{return t()}finally{go(e),Fi(i)}}var Zf=new Set,Rc=new Set;function va(t){if(!at)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 Xf(t,e,i,o={}){function n(r){if(o.capture||ol.call(e,r),!r.cancelBubble)return jf(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ko(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function zt(t,e,i,o,n){var r={capture:o,passive:n},l=Xf(t,e,i,r);(e===document.body||e===window||e===document)&&Vn(()=>{e.removeEventListener(t,l,r)})}function yt(t){for(var e=0;e<t.length;e++)Zf.add(t[e]);for(var i of Rc)i(t)}function ol(t){var B;var e=this,i=e.ownerDocument,o=t.type,n=((B=t.composedPath)==null?void 0:B.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){ao(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Qt,g=Et;go(null),Fi(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!==void 0&&!r.disabled)if(Ar(y)){var[S,...L]=y;S.apply(r,[t,...L])}else y.call(r,t)}catch(V){m?h.push(V):m=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let V of h)queueMicrotask(()=>{throw V});throw m}}finally{t.__root=e,delete t.currentTarget,go(f),Fi(g)}}}var g$;function $g(){g$=void 0}function nl(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=Et;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(at)return _o(Ct,null),Ct;n===void 0&&(n=nl(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;_o(d,a)}else _o(l,l);return l}}function Le(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(at)return _o(Ct,null),Ct;if(!l){var d=nl(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 f=mi(c),g=c.lastChild;_o(f,g)}else _o(c,c);return c}}function sr(t=""){if(!at){var e=Zo(t+"");return _o(e,e),e}var i=Ct;return i.nodeType!==3&&(i.before(i=Zo()),fi(i)),_o(i,i),i}function Ze(){if(at)return _o(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=Zo();return t.append(e,i),_o(e,i),t}function w(t,e){if(at){Et.nodes_end=Ct,Li();return}t!==null&&t.before(e)}var _$=/\r/g;function yg(t){t=t.replace(_$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function xg(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 wg(t){return $$.includes(t)}var b$=["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","defer","disablepictureinpicture","disableremoteplayback"];var y$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Cg(t){var e;return t=t.toLowerCase(),(e=y$[t])!=null?e:t}var Ew=[...b$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var x$=["touchstart","touchmove"];function Sg(t){return x$.includes(t)}var w$=["textarea","script","style","title"];function Tg(t){return w$.includes(t)}function Jf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Sd=!0;function Nc(t){Sd=t}function ke(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+"")}function Bc(t,e){return Ig(t,e)}function tm(t,e){var l;Mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=at,n=Ct;try{for(var r=mi(i);r&&(r.nodeType!==8||r.data!==Ua);)r=To(r);if(!r)throw ps;co(!0),fi(r),Li();let d=Ig(t,{...e,anchor:r});if(Ct===null||Ct.nodeType!==8||Ct.data!==ra)throw da(),ps;return co(!1),d}catch(d){if(d===ps)return e.recover===!1&&Lv(),Mc(),Cd(i),co(!1),Bc(t,e);throw d}finally{co(o),fi(n),$g()}}var rl=new Map;function Ig(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Mc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Sg(h);e.addEventListener(h,ol,{passive:_});var y=rl.get(h);y===void 0?(document.addEventListener(h,ol,{passive:_}),rl.set(h,1)):rl.set(h,y+1)}}};a(fd(Zf)),Rc.add(a);var c=void 0,f=hg(()=>{var g=i!=null?i:e.appendChild(Zo());return Yi(()=>{if(r){E({});var m=Nt;m.c=r}n&&(o.$$events=n),at&&_o(g,null),Sd=l,c=t(g,o)||{},Sd=!0,at&&(Et.nodes_end=Ct),r&&P()}),()=>{var _;for(var m of d){e.removeEventListener(m,ol);var h=rl.get(m);--h===0?(document.removeEventListener(m,ol),rl.delete(m)):rl.set(m,h)}Rc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return em.set(c,f),c}var em=new WeakMap;function im(t,e){let i=em.get(t);return i?(em.delete(t),i(e)):(ze&&Kv(),Promise.resolve())}var nm;function k(t){return nm=t.target,new om(t)}var _s,ar,om=class{constructor(e){As(this,_s);As(this,ar);var r,l;var i=new Map,o=(d,a)=>{var c=ms(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===pd?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return Y((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Oa(this,ar,(e.hydrate?tm:Bc)(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(),Oa(this,_s,n.$$events);for(let d of Object.keys(Mi(this,ar)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Mi(this,ar)[d]},set(a){Mi(this,ar)[d]=a},enumerable:!0});Mi(this,ar).$set=d=>{Object.assign(n,d)},Mi(this,ar).$destroy=()=>{im(Mi(this,ar))}}$set(e){Mi(this,ar).$set(e)}$on(e,i){Mi(this,_s)[e]=Mi(this,_s)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,_s)[e].push(o),()=>{Mi(this,_s)[e]=Mi(this,_s)[e].filter(n=>n!==o)}}$destroy(){Mi(this,ar).$destroy()}};_s=new WeakMap,ar=new WeakMap;var kg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(kg);var Eg=new Map;function Pg(t,e){var i=Eg.get(t);i||(i=new Set,Eg.set(t,i)),i.add(e)}function W(t,e,i=!1){at&&Li();var o=t,n=null,r=null,l=Gi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(at){let _=o.data===na;!!l===_&&(o=il(),fi(o),co(!1),h=!0)}l?(n?hs(n):m&&(n=Yi(()=>m(o))),r&&pn(r,()=>{r=null})):(r?hs(r):m&&(r=Yi(()=>m(o))),n&&pn(n,()=>{n=null})),h&&co(!0)};uo(()=>{a=!1,e(c),a||f(null,null)},d),at&&(o=Ct)}function Td(t,e,i){at&&Li();var o=t,n=Gi,r,l=Zr()?Iv:Ha;uo(()=>{l(n,n=e())&&(r&&pn(r),r=Yi(()=>i(o)))}),at&&(o=Ct)}var Ns=null;function am(t){Ns=t}function oo(t,e){return e}function M$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Vc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Cd(a),a.append(i),o.clear(),Rs(t,e[0].prev,e[r-1].next)}Gf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Rs(t,f.prev,f.next)),lo(f.e,!d)}})}function Ti(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=at?fi(mi(c)):c.appendChild(Zo())}at&&Li();var f=null,g=!1,m=Vr(()=>{var h=i();return Ar(h)?h:h==null?[]:fd(h)});uo(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let y=!1;if(at){var S=l.data===na;S!==(_===0)&&(l=il(),fi(l),co(!1),y=!0)}if(at){for(var L=null,B,V=0;V<_;V++){if(Ct.nodeType===8&&Ct.data===ra){l=Ct,y=!0,co(!1);break}var N=h[V],T=o(N,V);B=Lg(Ct,d,L,null,N,T,V,n,e,i),d.items.set(T,B),L=B}_>0&&fi(il())}at||L$(h,d,l,n,e,o,i),r!==null&&(_===0?f?hs(f):f=Yi(()=>r(l)):f!==null&&pn(f,()=>{f=null})),y&&co(!0),s(m)}),at&&(l=Ct)}function L$(t,e,i,o,n,r,l){var Ce,Q,pe,he;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,y,S=[],L=[],B,V,N,T;if(d)for(T=0;T<c;T+=1)B=t[T],V=r(B,T),N=f.get(V),N!==void 0&&((Ce=N.a)==null||Ce.measure(),(y!=null?y:y=new Set).add(N));for(T=0;T<c;T+=1){if(B=t[T],V=r(B,T),N=f.get(V),N===void 0){var U=m?m.e.nodes_start:i;_=Lg(U,e,_,_===null?e.first:_.next,B,V,T,o,n,l),f.set(V,_),S=[],L=[],m=_.next;continue}if(a&&V$(N,B,T,n),N.e.f&8192&&(hs(N.e),d&&((Q=N.a)==null||Q.unfix(),(y!=null?y:y=new Set).delete(N))),N!==m){if(h!==void 0&&h.has(N)){if(S.length<L.length){var K=L[0],H;_=K.prev;var G=S[0],J=S[S.length-1];for(H=0;H<S.length;H+=1)Ag(S[H],K,i);for(H=0;H<L.length;H+=1)h.delete(L[H]);Rs(e,G.prev,J.next),Rs(e,_,G),Rs(e,J,K),m=K,_=J,T-=1,S=[],L=[]}else h.delete(N),Ag(N,m,i),Rs(e,N.prev,N.next),Rs(e,N,_===null?e.first:_.next),Rs(e,_,N),_=N;continue}for(S=[],L=[];m!==null&&m.k!==V;)m.e.f&8192||(h!=null?h:h=new Set).add(m),L.push(m),m=m.next;if(m===null)continue;N=m}S.push(N),_=N,m=N.next}if(m!==null||h!==void 0){for(var de=h===void 0?[]:fd(h);m!==null;)m.e.f&8192||de.push(m),m=m.next;var te=de.length;if(te>0){var xe=n&4&&c===0?i:null;if(d){for(T=0;T<te;T+=1)(pe=de[T].a)==null||pe.measure();for(T=0;T<te;T+=1)(he=de[T].a)==null||he.fix()}M$(e,de,xe,f)}}d&&Ko(()=>{var j;if(y!==void 0)for(N of y)(j=N.a)==null||j.apply()}),Et.first=e.first&&e.first.e,Et.last=_&&_.e}function V$(t,e,i,o){o&1&&Ga(t.v,e),o&2?Ga(t.i,i):t.i=i}function Lg(t,e,i,o,n,r,l,d,a,c){var f=Ns,g=(a&1)!==0,m=(a&16)===0,h=g?m?ms(n):Ui(n):n,_=a&2?Ui(l):l;ze&&g&&(h.debug=()=>{var S=typeof _=="number"?l:_.v;c()[S]});var y={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Ns=y;try{return y.e=Yi(()=>d(t,h,_,c),at),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ns=f}}function Ag(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=To(r);n.before(r),r=l}}function Rs(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 R$(t,e,i){var r,l;if(!e||e===yg(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[wi]&&(o=`in ${Go[wi]}`),qv(Jf(o))}function Id(t,e,i,o,n){var r=t,l="",d;uo(()=>{var a;if(l===(l=(a=e())!=null?a:"")){at&&Li();return}d!==void 0&&(lo(d),d=void 0),l!==""&&(d=Yi(()=>{if(at){for(var c=Ct.data,f=Li(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=To(f);if(f===null)throw da(),ps;ze&&!n&&R$(f.parentNode,c,l),_o(Ct,g),r=fi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=nl(m);if((i||o)&&(h=mi(h)),_o(mi(h),h.lastChild),i||o)for(;mi(h);)r.before(mi(h));else r.before(h)}))})}function Fe(t,e,i,o,n){var d;at&&Li();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 $o(t,e,...i){var o=t,n=Kt,r;uo(()=>{n!==(n=e())&&(r&&(lo(r),r=null),ze&&n==null&&Vv(),r=Yi(()=>n(o,...i)))},65536),at&&(o=Ct)}function zi(t,e,i){at&&Li();var o=t,n,r;uo(()=>{n!==(n=e())&&(r&&(pn(r),r=null),n&&(r=Yi(()=>i(o,n))))},65536),at&&(o=Ct)}function kd(t,e,i,o,n,r){var _;let l=at;at&&Li();var d=ze&&r&&((_=Nt)==null?void 0:_.function[wi]),a,c,f=null;at&&Ct.nodeType===1&&(f=Ct,Li());var g=at?Ct:t,m,h=Ns;uo(()=>{let y=e()||null;var S=n?n():i||y==="svg"?sa:null;if(y!==a){var L=Ns;am(h),m&&(y===null?pn(m,()=>{m=null,c=null}):y===c?hs(m):(lo(m),Nc(!1))),y&&y!==c&&(m=Yi(()=>{if(f=at?f:S?document.createElementNS(S,y):document.createElement(y),ze&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),_o(f,f),o){at&&Tg(y)&&f.append(document.createComment(""));var B=at?mi(f):f.appendChild(Zo());at&&(B===null?co(!1):fi(B)),o(f,B)}Et.nodes_end=f,g.before(f)})),a=y,a&&(c=a),Nc(!0),am(L)}},65536),l&&(co(!0),fi(g))}function ne(t,e){Ko(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=nm)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ze&&Pg(e.hash,d)}})}function Vg(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=Vg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Rg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Vg(t))&&(o&&(o+=" "),o+=e);return o}function Ed(t){return typeof t=="object"?Rg(t):t!=null?t:""}function Dg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(at&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||N$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[hv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Og(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oe(t,e,i,o,n=!1,r=!1,l=!1){var V;let d=at&&r;d&&co(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=Ed(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=Og(t),m=(V=t.__attributes)!=null?V:t.__attributes={};for(let N in i){let T=i[N];if(c&&N==="value"&&T==null){t.value=t.__value="",a[N]=T;continue}var h=a[N];if(T!==h){a[N]=T;var _=N[0]+N[1];if(_!=="$$"){if(_==="on"){let U={},K="$$"+N,H=N.slice(2);var y=wg(H);if(xg(H)&&(H=H.slice(0,-7),U.capture=!0),!y&&h){if(T!=null)continue;t.removeEventListener(H,a[K],U),a[K]=null}if(T!=null)if(y)t[`__${H}`]=T,yt([H]);else{let G=function(J){a[N].call(this,J)};var B=G;a[K]=Xf(H,t,G,U)}else y&&(t[`__${H}`]=void 0)}else if(N==="style"&&T!=null)t.style.cssText=T+"";else if(N==="autofocus")Yf(t,!!T);else if(!r&&(N==="__value"||N==="value"&&T!=null))t.value=t.__value=T;else if(N==="selected"&&c)Dg(t,T);else{var S=N;n||(S=Cg(S));var L=S==="defaultValue"||S==="defaultChecked";if(T==null&&!r&&!L)if(m[N]=null,S==="value"||S==="checked"){let U=t;if(S==="value"){let K=U.defaultValue;U.removeAttribute(S),U.defaultValue=K}else{let K=U.defaultChecked;U.removeAttribute(S),U.defaultChecked=K}}else t.removeAttribute(N);else L||g.includes(S)&&(r||typeof T!="string")?t[S]=T:typeof T!="function"&&fe(t,S,T)}N==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&co(!0),a}var Ng=new Map;function Og(t){var e=Ng.get(t.nodeName);if(e)return e;Ng.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=gc(o);for(var r in i)i[r].set&&e.push(r);o=us(o)}return e}function N$(t,e,i){var o;ze&&(e==="srcset"&&B$(t,i)||lm((o=t.getAttribute(e))!=null?o:"",i)||Wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function lm(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Bg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function B$(t,e){var i=Bg(t.srcset),o=Bg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(lm(i[l][0],n)||lm(n,i[l][0])))}function Xo(t,e,i){var o=t.__className,n=D$(e,i);at&&t.className===n?t.__className=n:(o!==n||at&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function D$(t,e){return(t==null?"":t)+(e?" "+e:"")}function re(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 O$=vc?()=>performance.now():()=>Date.now(),Nr={tick:t=>(vc?requestAnimationFrame:Kt)(t),now:()=>O$(),tasks:new Set};function Hg(){let t=Nr.now();Nr.tasks.forEach(e=>{e.c(t)||(Nr.tasks.delete(e),e.f())}),Nr.tasks.size!==0&&Nr.tick(Hg)}function Fg(t){let e;return Nr.tasks.size===0&&Nr.tick(Hg),{promise:new Promise(i=>{Nr.tasks.add(e={c:t,f:i})}),abort(){Nr.tasks.delete(e)}}}function Dc(t,e){t.dispatchEvent(new CustomEvent(e))}function z$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Ug(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=z$(n.trim());e[l]=r.trim()}return e}var W$=t=>t;function cm(t,e,i,o){var V;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var U;var N=Qt,T=Et;go(null),Fi(null);try{return c!=null?c:c=i()(e,(U=o==null?void 0:o())!=null?U:{},{direction:a})}finally{go(N),Fi(T)}}var y={is_global:d,in(){var N;if(e.inert=f,!n){h==null||h.abort(),(N=h==null?void 0:h.reset)==null||N.call(h);return}r||m==null||m.abort(),Dc(e,"introstart"),m=dm(e,_(),h,1,()=>{Dc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(N){if(!r){N==null||N(),c=void 0;return}e.inert=!0,Dc(e,"outrostart"),h=dm(e,_(),m,0,()=>{Dc(e,"outroend"),N==null||N()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},S=Et;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&Sd){var L=d;if(!L){for(var B=S.parent;B&&B.f&65536;)for(;(B=B.parent)&&!(B.f&16););L=!B||(B.f&32768)!==0}L&&dn(()=>{kt(()=>y.in())})}}function dm(t,e,i,o,n){var r=o===1;if(Ms(e)){var l,d=!1;return Ko(()=>{if(!d){var S=e({direction:r?"in":"out"});l=dm(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Kt,deactivate:Kt,reset:Kt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=W$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=Ug(c(0,1));m.push(h,h)}var _=()=>1-o,y=t.animate(m,{duration:a});return y.onfinish=()=>{var G;var S=(G=i==null?void 0:i.t())!=null?G:1-o;i==null||i.abort();var L=o-S,B=e.duration*Math.abs(L),V=[];if(B>0){var N=!1;if(c)for(var T=Math.ceil(B/16.666666666666668),U=0;U<=T;U+=1){var K=S+L*g(U/T),H=Ug(c(K,1-K));V.push(H),N||(N=H.overflow==="hidden")}N&&(t.style.overflow="hidden"),_=()=>{var J=y.currentTime;return S+L*g(J/B)},f&&Fg(()=>{if(y.playState!=="running")return!1;var J=_();return f(J,1-J),!0})}y=t.animate(V,{duration:B,fill:"forwards"}),y.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=Kt)},deactivate:()=>{n=Kt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Bs,sl,Pd,Hc,zg,Fc=class Fc{constructor(e){As(this,Hc);As(this,Bs,new WeakMap);As(this,sl);As(this,Pd);Oa(this,Pd,e)}observe(e,i){var o=Mi(this,Bs).get(e)||new Set;return o.add(i),Mi(this,Bs).set(e,o),gv(this,Hc,zg).call(this).observe(e,Mi(this,Pd)),()=>{var n=Mi(this,Bs).get(e);n.delete(i),n.size===0&&(Mi(this,Bs).delete(e),Mi(this,sl).unobserve(e))}}};Bs=new WeakMap,sl=new WeakMap,Pd=new WeakMap,Hc=new WeakSet,zg=function(){var e;return(e=Mi(this,sl))!=null?e:Oa(this,sl,new ResizeObserver(i=>{for(var o of i){Fc.entries.set(o.target,o);for(var n of Mi(this,Bs).get(o.target)||[])n(o)}}))},kn(Fc,"entries",new WeakMap);var um=Fc;var Q$=new um({box:"border-box"});function es(t,e,i){var o=Q$.observe(t,()=>i(t[e]));dn(()=>(kt(()=>i(t[e])),o))}function Wg(t,e){return t===e||(t==null?void 0:t[No])===e}function wt(t={},e,i,o){return dn(()=>{var n,r;return So(()=>{n=r,r=(o==null?void 0:o())||[],kt(()=>{t!==i(...r)&&(e(t,...r),n&&Wg(i(...n),t)&&e(null,...n))})}),()=>{Ko(()=>{r&&Wg(i(...r),t)&&e(null,...r)})}}),t}function Br(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Pc(e.s);if(t){let n=0,r={},l=$(()=>{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&&za(()=>{qg(e,o),Ls(i.b)}),st(()=>{let n=kt(()=>i.m.map(xv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&st(()=>{qg(e,o),Ls(i.a)})}function qg(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])}if(ze){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nv(e)},set:o=>{i=o}})}};Y$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Y$;function Gt(t){Nt===null&&Wa("onMount"),Yr&&Nt.l!==null?G$(Nt).m.push(t):st(()=>{let e=kt(t);if(typeof e=="function")return e})}function lr(t){Nt===null&&Wa("onDestroy"),Gt(()=>()=>kt(t))}function G$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ad(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Kt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var al=[];function dr(t,e){return{subscribe:Se(t,e).subscribe}}function Se(t,e=Kt){let i=null,o=new Set;function n(d){if(Ha(t,d)&&(t=d,i)){let a=!al.length;for(let c of o)c[1](),al.push(c,t);if(a){for(let c=0;c<al.length;c+=2)al[c][0](al[c+1]);al.length=0}}}function r(d){n(d(t))}function l(d,a=Kt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Kt),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 dr(i,(l,d)=>{let a=!1,c=[],f=0,g=Kt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Kt},h=n.map((_,y)=>Ad(_,S=>{c[y]=S,f&=~(1<<y),a&&m()},()=>{f|=1<<y}));return a=!0,m(),function(){Ls(h),g(),a=!1}})}function Ne(t){let e;return Ad(t,i=>e=i)(),e}var Uc=!1,pm=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ms(void 0),unsubscribe:Kt};if(o.store!==t&&!(pm in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Kt;else{var n=!0;o.unsubscribe=Ad(t,l=>{n?o.source.v=l:Y(o.source,l)}),n=!1}return t&&pm in i?Ne(t):s(o.source)}function Xe(){let t={};function e(){Vn(()=>{for(var i in t)t[i].unsubscribe();ao(t,pm,{enumerable:!1,value:!0})})}return[t,e]}function fm(t){var e=Uc;try{return Uc=!1,[t(),Uc]}finally{Uc=e}}var e1={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),yc(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),yc(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 Ue(t,e){return new Proxy({props:t,exclude:e,special:{},version:Ui(0)},e1)}var t1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(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];Ms(n)&&(n=n());let r=En(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(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=En(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===No||e===pd)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function $s(...t){return new Proxy({props:t},t1)}function Kg(t){for(var e=Et,i=Et;e!==null&&!(e.f&96);)e=e.parent;try{return Fi(e),t()}finally{Fi(i)}}function p(t,e,i,o){var K,H;var n=(i&1)!==0,r=!Yr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=fm(()=>t[e]):c=t[e];var f=No in t||pd in t,g=l&&((H=(K=En(t,e))==null?void 0:K.set)!=null?H:f&&e in t&&(G=>t[e]=G))||void 0,m=o,h=!0,_=!1,y=()=>(_=!0,h&&(h=!1,d?m=kt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&Rv(e),c=y(),g&&g(c));var S;if(r)S=()=>{var G=t[e];return G===void 0?y():(h=!0,_=!1,G)};else{var L=Kg(()=>(n?$:Vr)(()=>t[e]));L.f|=131072,S=()=>{var G=s(L);return G!==void 0&&(m=void 0),G===void 0?m:G}}if(!(i&4))return S;if(g){var B=t.$$legacy;return function(G,J){return arguments.length>0?((!r||!J||B||a)&&g(J?S():G),G):S()}}var V=!1,N=!1,T=ms(c),U=Kg(()=>$(()=>{var G=S(),J=s(T);return V?(V=!1,N=!0,J):(N=!1,T.v=G)}));return n||(U.equals=Fa),function(G,J){if(vd!==null&&(V=N,S(),s(T)),arguments.length>0){let de=J?s(U):r&&l?Ae(G):G;return U.equals(de)||(V=!0,Y(T,de),_&&m!==void 0&&(m=de),kt(()=>s(U))),G}return s(U)}}var i1;typeof HTMLElement=="function"&&(i1=class extends HTMLElement{constructor(e,i,o){super();kn(this,"$$ctor");kn(this,"$$s");kn(this,"$$c");kn(this,"$$cn",!1);kn(this,"$$d",{});kn(this,"$$r",!1);kn(this,"$$p_d",{});kn(this,"$$l",{});kn(this,"$$l_u",new Map);kn(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=o1(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]=mm(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=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Lc(()=>{So(()=>{var r;this.$$r=!0;for(let l of Cf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=mm(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]=mm(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 Cf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function mm(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 o1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var A_=require("@vkontakte/videoplayer-core/es2018"),WY=require("@vkontakte/videoplayer-core/es2018"),Ts=require("@vkontakte/videoplayer-shared/es2018"),M_=require("@vkontakte/videoplayer-statistics/es2018");var ga=require("@vkontakte/videoplayer-shared/es2018");var r1={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:ga.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:ga.VideoQuality.Q_480P,highQualityLimit:ga.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Gg=t=>(0,ga.fillWithDefault)(t,r1),Yg=t=>Ka("ui-config",t),ei=()=>qa("ui-config");var Md="vk_player_debug_panel_opened";var jg="videoplayer",Zg="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),eh=new Set(["ShiftRight","ShiftLeft"]);var th=["TIMELINE"],Ld=[...th,"GRAPH_BUTTON"],vm=[...th,"PLAY_BUTTON"],Vd=[...Ld,"PLAY_BUTTON"];var Dr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Dr||{}),_a={xs:0,s:1,m:2,l:3,xl:4};var Rd=require("@vkontakte/videoplayer-shared/es2018"),ih=require("@vkontakte/videoplayer-core/es2018"),oh=require("@vkontakte/videoplayer-statistics/es2018");var zc="prod",$a="1.1.59-dev.50aa90ae.0";var ba=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var nh=Symbol("storeContext"),rh=Symbol("microStoresContext"),sh=(t,e)=>{Ka(nh,t),Ka(rh,e),zc==="dev"&&(window.app={store:t,microStores:e})},He=()=>{let t=qa(nh);return(0,Rd.assertNonNullable)(t,"Store context is empty!"),t},Io=()=>{let t=qa(rh);return(0,Rd.assertNonNullable)(t,"MicroStores context is empty!"),t},ii=(t,e)=>qc(t,t.getValue(),e),qc=(t,e,i)=>dr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),ah=(t,e,i)=>{var L,B,V,N,T,U;let o=t.info,{width:n,height:r}=Ne(i.ui.playerSize),l=(B=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?B:0,d=(N=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?N:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${$a} (core: ${ih.VERSION}, stat: ${oh.VERSION}, shared: ${Rd.VERSION})`,f=Ne(i.state.errorLog$),g=f.length?`
45
+ `)})}if(eg(t,e),tg(e))throw t}function sg(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?sg(r,e,i+1):e===r&&(i===0?Yo(r,2048):r.f&1024&&Yo(r,4096),ja(r))}}function wc(t){var h,_;var e=jo,i=Ln,o=Xr,n=Qt,r=gs,l=Mr,d=Nt,a=Lr,c=t.f;jo=null,Ln=0,Xr=null,Qt=c&96?null:t,gs=(c&256)!==0&&(!vs||n===null||a),Mr=null,gd(t.ctx),Lr=!1,Ic++;try{var f=(0,t.fn)(),g=t.deps;if(jo!==null){var m;if(xd(t,Ln),g!==null&&Ln>0)for(g.length=Ln+jo.length,m=0;m<jo.length;m++)g[Ln+m]=jo[m];else t.deps=g=jo;if(!gs)for(m=Ln;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&Ln<g.length&&(xd(t,Ln),g.length=Ln);if(Zr()&&Xr!==null&&!(t.f&6146))for(m=0;m<Xr.length;m++)sg(Xr[m],t);return n!==null&&Ic++,f}finally{jo=e,Ln=i,Xr=o,Qt=n,gs=r,Mr=l,gd(d),Lr=a}}function c$(t,e){let i=e.reactions;if(i!==null){var o=bv.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&&(jo===null||!jo.includes(e))&&(Yo(e,4096),e.f&768||(e.f^=512),xc(e),xd(e,0))}function xd(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)c$(t,i[o])}function Ya(t){var e=t.f;if(!(e&16384)){Yo(t,1024);var i=Et,o=Nt;if(Et=t,ze){var n=Go;hd(t.component_function)}try{e&16?cg(t):Wf(t),zf(t);var r=wc(t);t.teardown=typeof r=="function"?r:null,t.wv=rg;var l=t.deps;if(ze&&jr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=$d(),d.trace_need_increase=void 0,d.trace_v=void 0)}ze&&yd.push(t)}catch(a){el(a,t,i,o||t.ctx)}finally{Et=i,ze&&hd(n)}}}function ig(){console.error("Last ten effects were: ",yd.slice(-10).map(t=>t.fn)),yd=[]}function ag(){if(Xa>1e3){Xa=0;try{Mv()}catch(t){if(ze&&ao(t,"stack",{value:""}),Za!==null)if(ze)try{el(t,Za,null,null)}catch(e){throw ig(),e}else el(t,Za,null,null);else throw ze&&ig(),t}}Xa++}function lg(t){var e=t.length;if(e!==0){ag();var i=vs;vs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];dg(n,r),u$(r)}}finally{vs=i}}}function u$(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)&&(Ya(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?qf(o):o.fn=null))}catch(n){el(n,o,null,o.ctx)}}}function p$(){if(bd=!1,Xa>1001)return;let t=pa;pa=[],lg(t),bd||(Xa=0,Za=null,ze&&(yd=[]))}function ja(t){Sc===ng&&(bd||(bd=!0,queueMicrotask(p$))),Za=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}}pa.push(e)}function dg(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{var a=Qt;try{Qt=i,Vs(i)&&Ya(i)}catch(m){el(m,i,null,i.ctx)}finally{Qt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),dg(c,e)}function u(t){var e=Sc,i=pa;try{ag();let n=[];Sc=d$,pa=n,bd=!1,lg(i);var o=t==null?void 0:t();return Tv(),(pa.length>0||n.length>0)&&u(),Xa=0,Za=null,ze&&(yd=[]),o}finally{Sc=e,pa=i}}async function ho(){await Promise.resolve(),u()}function s(t){var e=t.f,i=(e&2)!==0;if(vd!==null&&vd.add(t),Qt!==null&&!Lr){Mr!==null&&Mr.includes(t)&&Ov();var o=Qt.deps;t.rv<Ic&&(t.rv=Ic,jo===null&&o!==null&&o[Ln]===t?Ln++:jo===null?jo=[t]:(!gs||!jo.includes(t))&&jo.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Vs(n)&&Hf(n)),ze&&jr&&md!==null&&Qt!==null&&md.reaction===Qt){if(t.debug)t.debug();else if(t.created){var l=md.entries.get(t);l===void 0&&(l={read:[]},md.entries.set(t,l)),l.read.push(fs("TracedAt"))}}return t.v}function kt(t){var e=Lr;try{return Lr=!0,t()}finally{Lr=e}}var f$=-7169;function Yo(t,e){t.f=t.f&f$|e}function Pc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(No in t)kc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&No in i&&kc(i)}}}function kc(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{kc(t[o],e)}catch(n){}let i=us(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=gc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var at=!1;function co(t){at=t}var Ct;function fi(t){if(t===null)throw da(),ps;return Ct=t}function Li(){return fi(To(Ct))}function b(t){if(at){if(To(Ct)!==null)throw da(),ps;Ct=t}}function Me(t=1){if(at){for(var e=t,i=Ct;e--;)i=To(i);Ct=i}}function il(){for(var t=0,e=Ct;;){if(e.nodeType===8){var i=e.data;if(i===ra){if(t===0)return e;t-=1}else(i===Ua||i===na)&&(t+=1)}var o=To(e);e.remove(),e=o}}function Ae(t,e=null,i){var c,f;var o=null;if(ze&&jr&&(o=fs("CreatedAt")),typeof t!="object"||t===null||No in t)return t;let n=us(t);if(n!==Sf&&n!==yv)return t;var r=new Map,l=Ar(t),d=Ui(0);l&&r.set("length",Ui(t.length,o));var a;if(ze)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[cs])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Nt!==null?new Set([Nt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&Bv();var _=r.get(m);return _===void 0?(_=Ui(h.value,o),r.set(m,_)):Y(_,Ae(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Ui(Gi,o));else{if(l&&typeof m=="string"){var _=r.get("length"),y=Number(m);Number.isInteger(y)&&y<_.v&&Y(_,y)}Y(h,Gi),ug(d)}return!0},get(g,m,h){var B;if(ze&&m===cs)return a;if(m===No)return t;var _=r.get(m),y=m in g;if(_===void 0&&(!y||(B=En(g,m))!=null&&B.writable)&&(_=Ui(Ae(y?g[m]:Gi,a),o),r.set(m,_)),_!==void 0){var S=s(_);if(ze){var L=S==null?void 0:S[cs];L&&(L==null?void 0:L.parent)!==a&&Mf(a,L)}return S===Gi?void 0:S}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var y=r.get(m),S=y==null?void 0:y.v;if(y!==void 0&&S!==Gi)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return h},has(g,m){var S;if(ze&&m===cs||m===No)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Gi||Reflect.has(g,m);if(h!==void 0||Et!==null&&(!_||(S=En(g,m))!=null&&S.writable)){h===void 0&&(h=Ui(_?Ae(g[m],a):Gi,o),r.set(m,h));var y=s(h);if(y===Gi)return!1}return _},set(g,m,h,_){var K;var y=r.get(m),S=m in g;if(l&&m==="length")for(var L=h;L<y.v;L+=1){var B=r.get(L+"");B!==void 0?Y(B,Gi):L in g&&(B=Ui(Gi,o),r.set(L+"",B))}if(y===void 0?(!S||(K=En(g,m))!=null&&K.writable)&&(y=Ui(void 0,o),Y(y,Ae(h,a)),r.set(m,y)):(S=y.v!==Gi,Y(y,Ae(h,a))),ze){var V=h==null?void 0:h[cs];V&&(V==null?void 0:V.parent)!==a&&Mf(a,V),Yv(a)}var N=Reflect.getOwnPropertyDescriptor(g,m);if(N!=null&&N.set&&N.set.call(_,h),!S){if(l&&typeof m=="string"){var T=r.get("length"),U=Number(m);Number.isInteger(U)&&U>=T.v&&Y(T,U+1)}ug(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(y=>{var S=r.get(y);return S===void 0||S.v!==Gi});for(var[h,_]of r)_.v!==Gi&&!(h in g)&&m.push(h);return m},setPrototypeOf(){Dv()}})}function ug(t,e=1){Y(t,t.v+e)}function Ac(t){return t!==null&&typeof t=="object"&&No in t?t[No]:t}function pg(){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(Ac(this[a])===r){$c("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(Ac(this[a])===r){$c("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(Ac(this[a])===r){$c("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var fa,fg,mg,vg;function Mc(){if(fa===void 0){fa=window,fg=document;var t=Element.prototype,e=Node.prototype;mg=En(e,"firstChild").get,vg=En(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,ze&&(t.__svelte_meta=null,pg())}}function Zo(t=""){return document.createTextNode(t)}function mi(t){return mg.call(t)}function To(t){return vg.call(t)}function x(t,e){if(!at)return mi(t);var i=mi(Ct);if(i===null)i=Ct.appendChild(Zo());else if(e&&i.nodeType!==3){var o=Zo();return i==null||i.before(o),fi(o),o}return fi(i),i}function Ie(t,e){var n,r;if(!at){var i=mi(t);return i.nodeType===8&&i.data===""?To(i):i}if(e&&((n=Ct)==null?void 0:n.nodeType)!==3){var o=Zo();return(r=Ct)==null||r.before(o),fi(o),o}return Ct}function O(t,e=1,i=!1){let o=at?Ct:t;for(var n;e--;)n=o,o=To(o);if(!at)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=Zo();return o===null?n==null||n.after(l):o.before(l),fi(l),l}return fi(o),o}function Cd(t){t.textContent=""}function Qf(t){Et===null&&Qt===null&&Av(t),Qt!==null&&Qt.f&256&&Et===null&&Pv(),Ec&&Ev(t)}function m$(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ma(t,e,i,o=!0){var f;var n=(t&64)!==0,r=Et;if(ze)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Nt,deps: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(ze&&(l.component_function=Go),i){var d=vs;try{Qa(!0),Ya(l),l.f|=32768}catch(g){throw lo(l),g}finally{Qa(d)}}else e!==null&&ja(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&&m$(l,r),Qt!==null&&Qt.f&2)){var c=Qt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Vn(t){let e=ma(8,null,!1);return Yo(e,1024),e.teardown=t,e}function st(t){var n;Qf("$effect");var e=Et!==null&&(Et.f&32)!==0&&Nt!==null&&!Nt.m;if(ze&&ao(t,"name",{value:"$effect"}),e){var i=Nt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:Et,reaction:Qt})}else{var o=dn(t);return o}}function za(t){return Qf("$effect.pre"),ze&&ao(t,"name",{value:"$effect.pre"}),So(t)}function Lc(t){let e=ma(64,t,!0);return()=>{lo(e)}}function hg(t){let e=ma(64,t,!0);return(i={})=>new Promise(o=>{i.outro?pn(e,()=>{lo(e),o(void 0)}):(lo(e),o(void 0))})}function dn(t){return ma(4,t,!1)}function So(t){return ma(8,t,!0)}function R(t,e=[],i=$){let o=e.map(i),n=()=>t(...o.map(s));return ze&&ao(n,"name",{value:"{expression}"}),uo(n)}function uo(t,e=0){return ma(24|e,t,!0)}function Yi(t,e=!0){return ma(40,t,!0,e)}function zf(t){var e=t.teardown;if(e!==null){let i=Ec,o=Qt;Uf(!0),go(null);try{e.call(null)}finally{Uf(i),go(o)}}}function Wf(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;lo(i,e),i=o}}function cg(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||lo(e),e=i}}function lo(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:To(o);o.remove(),o=r}i=!0}Wf(t,e&&!i),xd(t,0),Yo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();zf(t);var d=t.parent;d!==null&&d.first!==null&&qf(t),ze&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function qf(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 pn(t,e){var i=[];Vc(t,i,!0),Gf(i,()=>{lo(t),e&&e()})}function Gf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Vc(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;Vc(o,e,r?i:!1),o=n}}}function hs(t){_g(t,!0)}function _g(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Vs(t)&&(Yo(t,2048),ja(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;_g(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Yf(t,e){if(e){let i=document.body;t.autofocus=!0,Ko(()=>{document.activeElement===i&&t.focus()})}}function jf(t){var e=Qt,i=Et;go(null),Fi(null);try{return t()}finally{go(e),Fi(i)}}var Zf=new Set,Rc=new Set;function va(t){if(!at)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 Xf(t,e,i,o={}){function n(r){if(o.capture||ol.call(e,r),!r.cancelBubble)return jf(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ko(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function zt(t,e,i,o,n){var r={capture:o,passive:n},l=Xf(t,e,i,r);(e===document.body||e===window||e===document)&&Vn(()=>{e.removeEventListener(t,l,r)})}function yt(t){for(var e=0;e<t.length;e++)Zf.add(t[e]);for(var i of Rc)i(t)}function ol(t){var B;var e=this,i=e.ownerDocument,o=t.type,n=((B=t.composedPath)==null?void 0:B.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){ao(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Qt,g=Et;go(null),Fi(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!==void 0&&!r.disabled)if(Ar(y)){var[S,...L]=y;S.apply(r,[t,...L])}else y.call(r,t)}catch(V){m?h.push(V):m=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let V of h)queueMicrotask(()=>{throw V});throw m}}finally{t.__root=e,delete t.currentTarget,go(f),Fi(g)}}}var g$;function $g(){g$=void 0}function nl(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function _o(t,e){var i=Et;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(at)return _o(Ct,null),Ct;n===void 0&&(n=nl(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;_o(d,a)}else _o(l,l);return l}}function Le(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(at)return _o(Ct,null),Ct;if(!l){var d=nl(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 f=mi(c),g=c.lastChild;_o(f,g)}else _o(c,c);return c}}function sr(t=""){if(!at){var e=Zo(t+"");return _o(e,e),e}var i=Ct;return i.nodeType!==3&&(i.before(i=Zo()),fi(i)),_o(i,i),i}function Ze(){if(at)return _o(Ct,null),Ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=Zo();return t.append(e,i),_o(e,i),t}function w(t,e){if(at){Et.nodes_end=Ct,Li();return}t!==null&&t.before(e)}var _$=/\r/g;function yg(t){t=t.replace(_$,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function xg(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 wg(t){return $$.includes(t)}var b$=["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","defer","disablepictureinpicture","disableremoteplayback"];var y$={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Cg(t){var e;return t=t.toLowerCase(),(e=y$[t])!=null?e:t}var Ew=[...b$,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var x$=["touchstart","touchmove"];function Sg(t){return x$.includes(t)}var w$=["textarea","script","style","title"];function Tg(t){return w$.includes(t)}function Jf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Sd=!0;function Nc(t){Sd=t}function ke(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+"")}function Bc(t,e){return Ig(t,e)}function tm(t,e){var l;Mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=at,n=Ct;try{for(var r=mi(i);r&&(r.nodeType!==8||r.data!==Ua);)r=To(r);if(!r)throw ps;co(!0),fi(r),Li();let d=Ig(t,{...e,anchor:r});if(Ct===null||Ct.nodeType!==8||Ct.data!==ra)throw da(),ps;return co(!1),d}catch(d){if(d===ps)return e.recover===!1&&Lv(),Mc(),Cd(i),co(!1),Bc(t,e);throw d}finally{co(o),fi(n),$g()}}var rl=new Map;function Ig(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){Mc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Sg(h);e.addEventListener(h,ol,{passive:_});var y=rl.get(h);y===void 0?(document.addEventListener(h,ol,{passive:_}),rl.set(h,1)):rl.set(h,y+1)}}};a(fd(Zf)),Rc.add(a);var c=void 0,f=hg(()=>{var g=i!=null?i:e.appendChild(Zo());return Yi(()=>{if(r){E({});var m=Nt;m.c=r}n&&(o.$$events=n),at&&_o(g,null),Sd=l,c=t(g,o)||{},Sd=!0,at&&(Et.nodes_end=Ct),r&&P()}),()=>{var _;for(var m of d){e.removeEventListener(m,ol);var h=rl.get(m);--h===0?(document.removeEventListener(m,ol),rl.delete(m)):rl.set(m,h)}Rc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return em.set(c,f),c}var em=new WeakMap;function im(t,e){let i=em.get(t);return i?(em.delete(t),i(e)):(ze&&Kv(),Promise.resolve())}var nm;function k(t){return nm=t.target,new om(t)}var _s,ar,om=class{constructor(e){As(this,_s);As(this,ar);var r,l;var i=new Map,o=(d,a)=>{var c=ms(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===pd?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return Y((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Oa(this,ar,(e.hydrate?tm:Bc)(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(),Oa(this,_s,n.$$events);for(let d of Object.keys(Mi(this,ar)))d==="$set"||d==="$destroy"||d==="$on"||ao(this,d,{get(){return Mi(this,ar)[d]},set(a){Mi(this,ar)[d]=a},enumerable:!0});Mi(this,ar).$set=d=>{Object.assign(n,d)},Mi(this,ar).$destroy=()=>{im(Mi(this,ar))}}$set(e){Mi(this,ar).$set(e)}$on(e,i){Mi(this,_s)[e]=Mi(this,_s)[e]||[];let o=(...n)=>i.call(this,...n);return Mi(this,_s)[e].push(o),()=>{Mi(this,_s)[e]=Mi(this,_s)[e].filter(n=>n!==o)}}$destroy(){Mi(this,ar).$destroy()}};_s=new WeakMap,ar=new WeakMap;var kg="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(kg);var Eg=new Map;function Pg(t,e){var i=Eg.get(t);i||(i=new Set,Eg.set(t,i)),i.add(e)}function W(t,e,i=!1){at&&Li();var o=t,n=null,r=null,l=Gi,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(at){let _=o.data===na;!!l===_&&(o=il(),fi(o),co(!1),h=!0)}l?(n?hs(n):m&&(n=Yi(()=>m(o))),r&&pn(r,()=>{r=null})):(r?hs(r):m&&(r=Yi(()=>m(o))),n&&pn(n,()=>{n=null})),h&&co(!0)};uo(()=>{a=!1,e(c),a||f(null,null)},d),at&&(o=Ct)}function Td(t,e,i){at&&Li();var o=t,n=Gi,r,l=Zr()?Iv:Ha;uo(()=>{l(n,n=e())&&(r&&pn(r),r=Yi(()=>i(o)))}),at&&(o=Ct)}var Ns=null;function am(t){Ns=t}function oo(t,e){return e}function M$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)Vc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;Cd(a),a.append(i),o.clear(),Rs(t,e[0].prev,e[r-1].next)}Gf(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Rs(t,f.prev,f.next)),lo(f.e,!d)}})}function Ti(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=at?fi(mi(c)):c.appendChild(Zo())}at&&Li();var f=null,g=!1,m=Vr(()=>{var h=i();return Ar(h)?h:h==null?[]:fd(h)});uo(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let y=!1;if(at){var S=l.data===na;S!==(_===0)&&(l=il(),fi(l),co(!1),y=!0)}if(at){for(var L=null,B,V=0;V<_;V++){if(Ct.nodeType===8&&Ct.data===ra){l=Ct,y=!0,co(!1);break}var N=h[V],T=o(N,V);B=Lg(Ct,d,L,null,N,T,V,n,e,i),d.items.set(T,B),L=B}_>0&&fi(il())}at||L$(h,d,l,n,e,o,i),r!==null&&(_===0?f?hs(f):f=Yi(()=>r(l)):f!==null&&pn(f,()=>{f=null})),y&&co(!0),s(m)}),at&&(l=Ct)}function L$(t,e,i,o,n,r,l){var Ce,Q,pe,he;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,y,S=[],L=[],B,V,N,T;if(d)for(T=0;T<c;T+=1)B=t[T],V=r(B,T),N=f.get(V),N!==void 0&&((Ce=N.a)==null||Ce.measure(),(y!=null?y:y=new Set).add(N));for(T=0;T<c;T+=1){if(B=t[T],V=r(B,T),N=f.get(V),N===void 0){var U=m?m.e.nodes_start:i;_=Lg(U,e,_,_===null?e.first:_.next,B,V,T,o,n,l),f.set(V,_),S=[],L=[],m=_.next;continue}if(a&&V$(N,B,T,n),N.e.f&8192&&(hs(N.e),d&&((Q=N.a)==null||Q.unfix(),(y!=null?y:y=new Set).delete(N))),N!==m){if(h!==void 0&&h.has(N)){if(S.length<L.length){var K=L[0],H;_=K.prev;var G=S[0],J=S[S.length-1];for(H=0;H<S.length;H+=1)Ag(S[H],K,i);for(H=0;H<L.length;H+=1)h.delete(L[H]);Rs(e,G.prev,J.next),Rs(e,_,G),Rs(e,J,K),m=K,_=J,T-=1,S=[],L=[]}else h.delete(N),Ag(N,m,i),Rs(e,N.prev,N.next),Rs(e,N,_===null?e.first:_.next),Rs(e,_,N),_=N;continue}for(S=[],L=[];m!==null&&m.k!==V;)m.e.f&8192||(h!=null?h:h=new Set).add(m),L.push(m),m=m.next;if(m===null)continue;N=m}S.push(N),_=N,m=N.next}if(m!==null||h!==void 0){for(var de=h===void 0?[]:fd(h);m!==null;)m.e.f&8192||de.push(m),m=m.next;var te=de.length;if(te>0){var xe=n&4&&c===0?i:null;if(d){for(T=0;T<te;T+=1)(pe=de[T].a)==null||pe.measure();for(T=0;T<te;T+=1)(he=de[T].a)==null||he.fix()}M$(e,de,xe,f)}}d&&Ko(()=>{var j;if(y!==void 0)for(N of y)(j=N.a)==null||j.apply()}),Et.first=e.first&&e.first.e,Et.last=_&&_.e}function V$(t,e,i,o){o&1&&Ga(t.v,e),o&2?Ga(t.i,i):t.i=i}function Lg(t,e,i,o,n,r,l,d,a,c){var f=Ns,g=(a&1)!==0,m=(a&16)===0,h=g?m?ms(n):Ui(n):n,_=a&2?Ui(l):l;ze&&g&&(h.debug=()=>{var S=typeof _=="number"?l:_.v;c()[S]});var y={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Ns=y;try{return y.e=Yi(()=>d(t,h,_,c),at),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Ns=f}}function Ag(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=To(r);n.before(r),r=l}}function Rs(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 R$(t,e,i){var r,l;if(!e||e===yg(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[wi]&&(o=`in ${Go[wi]}`),qv(Jf(o))}function Id(t,e,i,o,n){var r=t,l="",d;uo(()=>{var a;if(l===(l=(a=e())!=null?a:"")){at&&Li();return}d!==void 0&&(lo(d),d=void 0),l!==""&&(d=Yi(()=>{if(at){for(var c=Ct.data,f=Li(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=To(f);if(f===null)throw da(),ps;ze&&!n&&R$(f.parentNode,c,l),_o(Ct,g),r=fi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=nl(m);if((i||o)&&(h=mi(h)),_o(mi(h),h.lastChild),i||o)for(;mi(h);)r.before(mi(h));else r.before(h)}))})}function Fe(t,e,i,o,n){var d;at&&Li();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 $o(t,e,...i){var o=t,n=Kt,r;uo(()=>{n!==(n=e())&&(r&&(lo(r),r=null),ze&&n==null&&Vv(),r=Yi(()=>n(o,...i)))},65536),at&&(o=Ct)}function zi(t,e,i){at&&Li();var o=t,n,r;uo(()=>{n!==(n=e())&&(r&&(pn(r),r=null),n&&(r=Yi(()=>i(o,n))))},65536),at&&(o=Ct)}function kd(t,e,i,o,n,r){var _;let l=at;at&&Li();var d=ze&&r&&((_=Nt)==null?void 0:_.function[wi]),a,c,f=null;at&&Ct.nodeType===1&&(f=Ct,Li());var g=at?Ct:t,m,h=Ns;uo(()=>{let y=e()||null;var S=n?n():i||y==="svg"?sa:null;if(y!==a){var L=Ns;am(h),m&&(y===null?pn(m,()=>{m=null,c=null}):y===c?hs(m):(lo(m),Nc(!1))),y&&y!==c&&(m=Yi(()=>{if(f=at?f:S?document.createElementNS(S,y):document.createElement(y),ze&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),_o(f,f),o){at&&Tg(y)&&f.append(document.createComment(""));var B=at?mi(f):f.appendChild(Zo());at&&(B===null?co(!1):fi(B)),o(f,B)}Et.nodes_end=f,g.before(f)})),a=y,a&&(c=a),Nc(!0),am(L)}},65536),l&&(co(!0),fi(g))}function ne(t,e){Ko(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=nm)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ze&&Pg(e.hash,d)}})}function Vg(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=Vg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Rg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Vg(t))&&(o&&(o+=" "),o+=e);return o}function Ed(t){return typeof t=="object"?Rg(t):t!=null?t:""}function Dg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(at&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||N$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[hv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Og(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oe(t,e,i,o,n=!1,r=!1,l=!1){var V;let d=at&&r;d&&co(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=Ed(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=Og(t),m=(V=t.__attributes)!=null?V:t.__attributes={};for(let N in i){let T=i[N];if(c&&N==="value"&&T==null){t.value=t.__value="",a[N]=T;continue}var h=a[N];if(T!==h){a[N]=T;var _=N[0]+N[1];if(_!=="$$"){if(_==="on"){let U={},K="$$"+N,H=N.slice(2);var y=wg(H);if(xg(H)&&(H=H.slice(0,-7),U.capture=!0),!y&&h){if(T!=null)continue;t.removeEventListener(H,a[K],U),a[K]=null}if(T!=null)if(y)t[`__${H}`]=T,yt([H]);else{let G=function(J){a[N].call(this,J)};var B=G;a[K]=Xf(H,t,G,U)}else y&&(t[`__${H}`]=void 0)}else if(N==="style"&&T!=null)t.style.cssText=T+"";else if(N==="autofocus")Yf(t,!!T);else if(!r&&(N==="__value"||N==="value"&&T!=null))t.value=t.__value=T;else if(N==="selected"&&c)Dg(t,T);else{var S=N;n||(S=Cg(S));var L=S==="defaultValue"||S==="defaultChecked";if(T==null&&!r&&!L)if(m[N]=null,S==="value"||S==="checked"){let U=t;if(S==="value"){let K=U.defaultValue;U.removeAttribute(S),U.defaultValue=K}else{let K=U.defaultChecked;U.removeAttribute(S),U.defaultChecked=K}}else t.removeAttribute(N);else L||g.includes(S)&&(r||typeof T!="string")?t[S]=T:typeof T!="function"&&fe(t,S,T)}N==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&co(!0),a}var Ng=new Map;function Og(t){var e=Ng.get(t.nodeName);if(e)return e;Ng.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=gc(o);for(var r in i)i[r].set&&e.push(r);o=us(o)}return e}function N$(t,e,i){var o;ze&&(e==="srcset"&&B$(t,i)||lm((o=t.getAttribute(e))!=null?o:"",i)||Wv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function lm(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Bg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function B$(t,e){var i=Bg(t.srcset),o=Bg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(lm(i[l][0],n)||lm(n,i[l][0])))}function Xo(t,e,i){var o=t.__className,n=D$(e,i);at&&t.className===n?t.__className=n:(o!==n||at&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function D$(t,e){return(t==null?"":t)+(e?" "+e:"")}function re(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 O$=vc?()=>performance.now():()=>Date.now(),Nr={tick:t=>(vc?requestAnimationFrame:Kt)(t),now:()=>O$(),tasks:new Set};function Hg(){let t=Nr.now();Nr.tasks.forEach(e=>{e.c(t)||(Nr.tasks.delete(e),e.f())}),Nr.tasks.size!==0&&Nr.tick(Hg)}function Fg(t){let e;return Nr.tasks.size===0&&Nr.tick(Hg),{promise:new Promise(i=>{Nr.tasks.add(e={c:t,f:i})}),abort(){Nr.tasks.delete(e)}}}function Dc(t,e){t.dispatchEvent(new CustomEvent(e))}function z$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Ug(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=z$(n.trim());e[l]=r.trim()}return e}var W$=t=>t;function cm(t,e,i,o){var V;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var U;var N=Qt,T=Et;go(null),Fi(null);try{return c!=null?c:c=i()(e,(U=o==null?void 0:o())!=null?U:{},{direction:a})}finally{go(N),Fi(T)}}var y={is_global:d,in(){var N;if(e.inert=f,!n){h==null||h.abort(),(N=h==null?void 0:h.reset)==null||N.call(h);return}r||m==null||m.abort(),Dc(e,"introstart"),m=dm(e,_(),h,1,()=>{Dc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(N){if(!r){N==null||N(),c=void 0;return}e.inert=!0,Dc(e,"outrostart"),h=dm(e,_(),m,0,()=>{Dc(e,"outroend"),N==null||N()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},S=Et;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&Sd){var L=d;if(!L){for(var B=S.parent;B&&B.f&65536;)for(;(B=B.parent)&&!(B.f&16););L=!B||(B.f&32768)!==0}L&&dn(()=>{kt(()=>y.in())})}}function dm(t,e,i,o,n){var r=o===1;if(Ms(e)){var l,d=!1;return Ko(()=>{if(!d){var S=e({direction:r?"in":"out"});l=dm(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Kt,deactivate:Kt,reset:Kt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=W$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=Ug(c(0,1));m.push(h,h)}var _=()=>1-o,y=t.animate(m,{duration:a});return y.onfinish=()=>{var G;var S=(G=i==null?void 0:i.t())!=null?G:1-o;i==null||i.abort();var L=o-S,B=e.duration*Math.abs(L),V=[];if(B>0){var N=!1;if(c)for(var T=Math.ceil(B/16.666666666666668),U=0;U<=T;U+=1){var K=S+L*g(U/T),H=Ug(c(K,1-K));V.push(H),N||(N=H.overflow==="hidden")}N&&(t.style.overflow="hidden"),_=()=>{var J=y.currentTime;return S+L*g(J/B)},f&&Fg(()=>{if(y.playState!=="running")return!1;var J=_();return f(J,1-J),!0})}y=t.animate(V,{duration:B,fill:"forwards"}),y.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=Kt)},deactivate:()=>{n=Kt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Bs,sl,Pd,Hc,zg,Fc=class Fc{constructor(e){As(this,Hc);As(this,Bs,new WeakMap);As(this,sl);As(this,Pd);Oa(this,Pd,e)}observe(e,i){var o=Mi(this,Bs).get(e)||new Set;return o.add(i),Mi(this,Bs).set(e,o),gv(this,Hc,zg).call(this).observe(e,Mi(this,Pd)),()=>{var n=Mi(this,Bs).get(e);n.delete(i),n.size===0&&(Mi(this,Bs).delete(e),Mi(this,sl).unobserve(e))}}};Bs=new WeakMap,sl=new WeakMap,Pd=new WeakMap,Hc=new WeakSet,zg=function(){var e;return(e=Mi(this,sl))!=null?e:Oa(this,sl,new ResizeObserver(i=>{for(var o of i){Fc.entries.set(o.target,o);for(var n of Mi(this,Bs).get(o.target)||[])n(o)}}))},kn(Fc,"entries",new WeakMap);var um=Fc;var Q$=new um({box:"border-box"});function es(t,e,i){var o=Q$.observe(t,()=>i(t[e]));dn(()=>(kt(()=>i(t[e])),o))}function Wg(t,e){return t===e||(t==null?void 0:t[No])===e}function wt(t={},e,i,o){return dn(()=>{var n,r;return So(()=>{n=r,r=(o==null?void 0:o())||[],kt(()=>{t!==i(...r)&&(e(t,...r),n&&Wg(i(...n),t)&&e(null,...n))})}),()=>{Ko(()=>{r&&Wg(i(...r),t)&&e(null,...r)})}}),t}function Br(t=!1){let e=Nt,i=e.l.u;if(!i)return;let o=()=>Pc(e.s);if(t){let n=0,r={},l=$(()=>{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&&za(()=>{qg(e,o),Ls(i.b)}),st(()=>{let n=kt(()=>i.m.map(xv));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&st(()=>{qg(e,o),Ls(i.a)})}function qg(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])}if(ze){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nv(e)},set:o=>{i=o}})}};Y$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Y$;function Gt(t){Nt===null&&Wa("onMount"),Yr&&Nt.l!==null?G$(Nt).m.push(t):st(()=>{let e=kt(t);if(typeof e=="function")return e})}function lr(t){Nt===null&&Wa("onDestroy"),Gt(()=>()=>kt(t))}function G$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ad(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Kt;let o=kt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var al=[];function dr(t,e){return{subscribe:Se(t,e).subscribe}}function Se(t,e=Kt){let i=null,o=new Set;function n(d){if(Ha(t,d)&&(t=d,i)){let a=!al.length;for(let c of o)c[1](),al.push(c,t);if(a){for(let c=0;c<al.length;c+=2)al[c][0](al[c+1]);al.length=0}}}function r(d){n(d(t))}function l(d,a=Kt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Kt),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 dr(i,(l,d)=>{let a=!1,c=[],f=0,g=Kt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Kt},h=n.map((_,y)=>Ad(_,S=>{c[y]=S,f&=~(1<<y),a&&m()},()=>{f|=1<<y}));return a=!0,m(),function(){Ls(h),g(),a=!1}})}function Ne(t){let e;return Ad(t,i=>e=i)(),e}var Uc=!1,pm=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ms(void 0),unsubscribe:Kt};if(o.store!==t&&!(pm in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Kt;else{var n=!0;o.unsubscribe=Ad(t,l=>{n?o.source.v=l:Y(o.source,l)}),n=!1}return t&&pm in i?Ne(t):s(o.source)}function Xe(){let t={};function e(){Vn(()=>{for(var i in t)t[i].unsubscribe();ao(t,pm,{enumerable:!1,value:!0})})}return[t,e]}function fm(t){var e=Uc;try{return Uc=!1,[t(),Uc]}finally{Uc=e}}var e1={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),yc(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),yc(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 Ue(t,e){return new Proxy({props:t,exclude:e,special:{},version:Ui(0)},e1)}var t1={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ms(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];Ms(n)&&(n=n());let r=En(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(Ms(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=En(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===No||e===pd)return!1;for(let i of t.props)if(Ms(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ms(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function $s(...t){return new Proxy({props:t},t1)}function Kg(t){for(var e=Et,i=Et;e!==null&&!(e.f&96);)e=e.parent;try{return Fi(e),t()}finally{Fi(i)}}function p(t,e,i,o){var K,H;var n=(i&1)!==0,r=!Yr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=fm(()=>t[e]):c=t[e];var f=No in t||pd in t,g=l&&((H=(K=En(t,e))==null?void 0:K.set)!=null?H:f&&e in t&&(G=>t[e]=G))||void 0,m=o,h=!0,_=!1,y=()=>(_=!0,h&&(h=!1,d?m=kt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&Rv(e),c=y(),g&&g(c));var S;if(r)S=()=>{var G=t[e];return G===void 0?y():(h=!0,_=!1,G)};else{var L=Kg(()=>(n?$:Vr)(()=>t[e]));L.f|=131072,S=()=>{var G=s(L);return G!==void 0&&(m=void 0),G===void 0?m:G}}if(!(i&4))return S;if(g){var B=t.$$legacy;return function(G,J){return arguments.length>0?((!r||!J||B||a)&&g(J?S():G),G):S()}}var V=!1,N=!1,T=ms(c),U=Kg(()=>$(()=>{var G=S(),J=s(T);return V?(V=!1,N=!0,J):(N=!1,T.v=G)}));return n||(U.equals=Fa),function(G,J){if(vd!==null&&(V=N,S(),s(T)),arguments.length>0){let de=J?s(U):r&&l?Ae(G):G;return U.equals(de)||(V=!0,Y(T,de),_&&m!==void 0&&(m=de),kt(()=>s(U))),G}return s(U)}}var i1;typeof HTMLElement=="function"&&(i1=class extends HTMLElement{constructor(e,i,o){super();kn(this,"$$ctor");kn(this,"$$s");kn(this,"$$c");kn(this,"$$cn",!1);kn(this,"$$d",{});kn(this,"$$r",!1);kn(this,"$$p_d",{});kn(this,"$$l",{});kn(this,"$$l_u",new Map);kn(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=o1(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]=mm(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=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=Lc(()=>{So(()=>{var r;this.$$r=!0;for(let l of Cf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=mm(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]=mm(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 Cf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function mm(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 o1(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var A_=require("@vkontakte/videoplayer-core/es2018"),WY=require("@vkontakte/videoplayer-core/es2018"),Ts=require("@vkontakte/videoplayer-shared/es2018"),M_=require("@vkontakte/videoplayer-statistics/es2018");var ga=require("@vkontakte/videoplayer-shared/es2018");var r1={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:ga.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:ga.VideoQuality.Q_480P,highQualityLimit:ga.VideoQuality.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Gg=t=>(0,ga.fillWithDefault)(t,r1),Yg=t=>Ka("ui-config",t),ei=()=>qa("ui-config");var Md="vk_player_debug_panel_opened";var jg="videoplayer",Zg="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),eh=new Set(["ShiftRight","ShiftLeft"]);var th=["TIMELINE"],Ld=[...th,"GRAPH_BUTTON"],vm=[...th,"PLAY_BUTTON"],Vd=[...Ld,"PLAY_BUTTON"];var Dr=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Dr||{}),_a={xs:0,s:1,m:2,l:3,xl:4};var Rd=require("@vkontakte/videoplayer-shared/es2018"),ih=require("@vkontakte/videoplayer-core/es2018"),oh=require("@vkontakte/videoplayer-statistics/es2018");var zc="prod",$a="1.1.59-dev.5ccf8bf2.0";var ba=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var nh=Symbol("storeContext"),rh=Symbol("microStoresContext"),sh=(t,e)=>{Ka(nh,t),Ka(rh,e),zc==="dev"&&(window.app={store:t,microStores:e})},He=()=>{let t=qa(nh);return(0,Rd.assertNonNullable)(t,"Store context is empty!"),t},Io=()=>{let t=qa(rh);return(0,Rd.assertNonNullable)(t,"MicroStores context is empty!"),t},ii=(t,e)=>qc(t,t.getValue(),e),qc=(t,e,i)=>dr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),ah=(t,e,i)=>{var L,B,V,N,T,U;let o=t.info,{width:n,height:r}=Ne(i.ui.playerSize),l=(B=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?B:0,d=(N=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?N:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${$a} (core: ${ih.VERSION}, stat: ${oh.VERSION}, shared: ${Rd.VERSION})`,f=Ne(i.state.errorLog$),g=f.length?`
46
46
  `+f.map((K,H)=>{var te;let G=`${H}) Type: ${K.id}
47
47
  `,J=`Message: ${K.message} (${K.thrown})
48
48
  `,de=`Trace: ${(te=K.thrown)==null?void 0:te.stack}
package/es2018.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.59-dev.50aa90ae.0
3
- * Wed, 26 Mar 2025 07:52:41 GMT
2
+ * @vkontakte/videoplayer v1.1.59-dev.5ccf8bf2.0
3
+ * Mon, 31 Mar 2025 07:54:23 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-59/doc/
5
5
  */
6
6
  var I_=Object.defineProperty;var Nm=t=>{throw TypeError(t)};var k_=(t,e,i)=>e in t?I_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Tn=(t,e,i)=>k_(t,typeof e!="symbol"?e+"":e,i),of=(t,e,i)=>e.has(t)||Nm("Cannot "+i);var Pi=(t,e,i)=>(of(t,e,"read from private field"),i?i.call(t):e.get(t)),Es=(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),Pa=(t,e,i,o)=>(of(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),Bm=(t,e,i)=>(of(t,e,"access private method"),i);var Lo=Symbol("$state"),ls=Symbol("$state metadata"),Ql=Symbol("legacy props"),Dm=Symbol("");var Gd=!0;var Om,Hm,nf=(Hm=(Om=globalThis.process)==null?void 0:Om.env)==null?void 0:Hm.NODE_ENV;nf||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 ze=nf&&!nf.toLowerCase().includes("prod");var Pr=Array.isArray,Fm=Array.prototype.indexOf,Gl=Array.from,rf=Object.keys,oo=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Yd=Object.getOwnPropertyDescriptors,sf=Object.prototype,Um=Array.prototype,ds=Object.getPrototypeOf;function Ps(t){return typeof t=="function"}var Wt=()=>{};function zm(t){return t()}function As(t){for(var e=0;e<t.length;e++)t[e]()}var jd=!1,qm=!1,af=[],Wm=[];function Km(){jd=!1;let t=af.slice();af=[],As(t)}function E_(){qm=!1;let t=Wm.slice();Wm=[],As(t)}function Wo(t){jd||(jd=!0,queueMicrotask(Km)),af.push(t)}function Qm(){jd&&Km(),qm&&E_()}function Zd(t){return t===this.v}function Aa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Gm(t,e){return t!==e}function Ma(t){return!Aa(t,this.v)}function Ym(){if(ze){let t=new Error(`derived_references_self
@@ -42,7 +42,7 @@ ${n.map(m=>`
42
42
  ${a}in ${m}`).join("")}
43
43
  `}),oo(t,"component_stack",{value:n});let c=t.stack;if(c){let m=c.split(`
44
44
  `),h=[];for(let _=0;_<m.length;_++){let y=m[_];y.includes("svelte/src/internal")||h.push(y)}oo(t,"stack",{value:h.join(`
45
- `)})}if(yv(t,e),xv(e))throw t}function Iv(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?Iv(r,e,i+1):e===r&&(i===0?Qo(r,2048):r.f&1024&&Qo(r,4096),Fa(r))}}function ic(t){var h,_;var e=Go,i=An,o=jr,n=qt,r=ms,l=Ar,d=Vt,a=Mr,c=t.f;Go=null,An=0,jr=null,qt=c&96?null:t,ms=(c&256)!==0&&(!fs||n===null||a),Ar=null,Zl(t.ctx),Mr=!1,sc++;try{var f=(0,t.fn)(),g=t.deps;if(Go!==null){var m;if(od(t,An),g!==null&&An>0)for(g.length=An+Go.length,m=0;m<Go.length;m++)g[An+m]=Go[m];else t.deps=g=Go;if(!ms)for(m=An;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&An<g.length&&(od(t,An),g.length=An);if(Yr()&&jr!==null&&!(t.f&6146))for(m=0;m<jr.length;m++)Iv(jr[m],t);return n!==null&&sc++,f}finally{Go=e,An=i,jr=o,qt=n,ms=r,Ar=l,Zl(d),Mr=a}}function F_(t,e){let i=e.reactions;if(i!==null){var o=Fm.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&&(Go===null||!Go.includes(e))&&(Qo(e,4096),e.f&768||(e.f^=512),tc(e),od(e,0))}function od(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)F_(t,i[o])}function Ha(t){var e=t.f;if(!(e&16384)){Qo(t,1024);var i=It,o=Vt;if(It=t,ze){var n=Ko;Xl(t.component_function)}try{e&16?Av(t):Sf(t),Cf(t);var r=ic(t);t.teardown=typeof r=="function"?r:null,t.wv=Tv;var l=t.deps;if(ze&&Gr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=ed(),d.trace_need_increase=void 0,d.trace_v=void 0)}ze&&id.push(t)}catch(a){qa(a,t,i,o||t.ctx)}finally{It=i,ze&&Xl(n)}}}function wv(){console.error("Last ten effects were: ",id.slice(-10).map(t=>t.fn)),id=[]}function kv(){if(za>1e3){za=0;try{Jm()}catch(t){if(ze&&oo(t,"stack",{value:""}),Ua!==null)if(ze)try{qa(t,Ua,null,null)}catch(e){throw wv(),e}else qa(t,Ua,null,null);else throw ze&&wv(),t}}za++}function Ev(t){var e=t.length;if(e!==0){kv();var i=fs;fs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Pv(n,r),U_(r)}}finally{fs=i}}}function U_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Ms(o)&&(Ha(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Tf(o):o.fn=null))}catch(n){qa(n,o,null,o.ctx)}}}function z_(){if(td=!1,za>1001)return;let t=aa;aa=[],Ev(t),td||(za=0,Ua=null,ze&&(id=[]))}function Fa(t){nc===Sv&&(td||(td=!0,queueMicrotask(z_))),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}}aa.push(e)}function Pv(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{var a=qt;try{qt=i,Ms(i)&&Ha(i)}catch(m){qa(m,i,null,i.ctx)}finally{qt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),Pv(c,e)}function u(t){var e=nc,i=aa;try{kv();let n=[];nc=H_,aa=n,td=!1,Ev(i);var o=t==null?void 0:t();return Qm(),(aa.length>0||n.length>0)&&u(),za=0,Ua=null,ze&&(id=[]),o}finally{nc=e,aa=i}}async function fo(){await Promise.resolve(),u()}function s(t){var e=t.f,i=(e&2)!==0;if(jl!==null&&jl.add(t),qt!==null&&!Mr){Ar!==null&&Ar.includes(t)&&sv();var o=qt.deps;t.rv<sc&&(t.rv=sc,Go===null&&o!==null&&o[An]===t?An++:Go===null?Go=[t]:(!ms||!Go.includes(t))&&Go.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Ms(n)&&yf(n)),ze&&Gr&&Yl!==null&&qt!==null&&Yl.reaction===qt){if(t.debug)t.debug();else if(t.created){var l=Yl.entries.get(t);l===void 0&&(l={read:[]},Yl.entries.set(t,l)),l.read.push(us("TracedAt"))}}return t.v}function Tt(t){var e=Mr;try{return Mr=!0,t()}finally{Mr=e}}var W_=-7169;function Qo(t,e){t.f=t.f&W_|e}function dc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&ac(i)}}}function ac(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{ac(t[o],e)}catch(n){}let i=ds(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Yd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var st=!1;function ro(t){st=t}var wt;function pi(t){if(t===null)throw na(),cs;return wt=t}function Ai(){return pi(wo(wt))}function b(t){if(st){if(wo(wt)!==null)throw na(),cs;wt=t}}function Me(t=1){if(st){for(var e=t,i=wt;e--;)i=wo(i);wt=i}}function Qa(){for(var t=0,e=wt;;){if(e.nodeType===8){var i=e.data;if(i===ea){if(t===0)return e;t-=1}else(i===La||i===Js)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function Ae(t,e=null,i){var c,f;var o=null;if(ze&&Gr&&(o=us("CreatedAt")),typeof t!="object"||t===null||Lo in t)return t;let n=ds(t);if(n!==sf&&n!==Um)return t;var r=new Map,l=Pr(t),d=Oi(0);l&&r.set("length",Oi(t.length,o));var a;if(ze)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[ls])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Vt!==null?new Set([Vt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&nv();var _=r.get(m);return _===void 0?(_=Oi(h.value,o),r.set(m,_)):Y(_,Ae(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Oi(Ki,o));else{if(l&&typeof m=="string"){var _=r.get("length"),y=Number(m);Number.isInteger(y)&&y<_.v&&Y(_,y)}Y(h,Ki),Mv(d)}return!0},get(g,m,h){var B;if(ze&&m===ls)return a;if(m===Lo)return t;var _=r.get(m),y=m in g;if(_===void 0&&(!y||(B=In(g,m))!=null&&B.writable)&&(_=Oi(Ae(y?g[m]:Ki,a),o),r.set(m,_)),_!==void 0){var S=s(_);if(ze){var L=S==null?void 0:S[ls];L&&(L==null?void 0:L.parent)!==a&&ff(a,L)}return S===Ki?void 0:S}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var y=r.get(m),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ki)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return h},has(g,m){var S;if(ze&&m===ls||m===Lo)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Ki||Reflect.has(g,m);if(h!==void 0||It!==null&&(!_||(S=In(g,m))!=null&&S.writable)){h===void 0&&(h=Oi(_?Ae(g[m],a):Ki,o),r.set(m,h));var y=s(h);if(y===Ki)return!1}return _},set(g,m,h,_){var K;var y=r.get(m),S=m in g;if(l&&m==="length")for(var L=h;L<y.v;L+=1){var B=r.get(L+"");B!==void 0?Y(B,Ki):L in g&&(B=Oi(Ki,o),r.set(L+"",B))}if(y===void 0?(!S||(K=In(g,m))!=null&&K.writable)&&(y=Oi(void 0,o),Y(y,Ae(h,a)),r.set(m,y)):(S=y.v!==Ki,Y(y,Ae(h,a))),ze){var V=h==null?void 0:h[ls];V&&(V==null?void 0:V.parent)!==a&&ff(a,V),gv(a)}var N=Reflect.getOwnPropertyDescriptor(g,m);if(N!=null&&N.set&&N.set.call(_,h),!S){if(l&&typeof m=="string"){var T=r.get("length"),U=Number(m);Number.isInteger(U)&&U>=T.v&&Y(T,U+1)}Mv(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(y=>{var S=r.get(y);return S===void 0||S.v!==Ki});for(var[h,_]of r)_.v!==Ki&&!(h in g)&&m.push(h);return m},setPrototypeOf(){rv()}})}function Mv(t,e=1){Y(t,t.v+e)}function cc(t){return t!==null&&typeof t=="object"&&Lo in t?t[Lo]:t}function Lv(){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(cc(this[a])===r){Xd("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(cc(this[a])===r){Xd("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(cc(this[a])===r){Xd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var la,Vv,Rv,Nv;function uc(){if(la===void 0){la=window,Vv=document;var t=Element.prototype,e=Node.prototype;Rv=In(e,"firstChild").get,Nv=In(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,ze&&(t.__svelte_meta=null,Lv())}}function Yo(t=""){return document.createTextNode(t)}function fi(t){return Rv.call(t)}function wo(t){return Nv.call(t)}function x(t,e){if(!st)return fi(t);var i=fi(wt);if(i===null)i=wt.appendChild(Yo());else if(e&&i.nodeType!==3){var o=Yo();return i==null||i.before(o),pi(o),o}return pi(i),i}function Ie(t,e){var n,r;if(!st){var i=fi(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&((n=wt)==null?void 0:n.nodeType)!==3){var o=Yo();return(r=wt)==null||r.before(o),pi(o),o}return wt}function O(t,e=1,i=!1){let o=st?wt:t;for(var n;e--;)n=o,o=wo(o);if(!st)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=Yo();return o===null?n==null||n.after(l):o.before(l),pi(l),l}return pi(o),o}function rd(t){t.textContent=""}function kf(t){It===null&&qt===null&&Xm(t),qt!==null&&qt.f&256&&It===null&&Zm(),lc&&jm(t)}function q_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function da(t,e,i,o=!0){var f;var n=(t&64)!==0,r=It;if(ze)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Vt,deps: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(ze&&(l.component_function=Ko),i){var d=fs;try{Da(!0),Ha(l),l.f|=32768}catch(g){throw no(l),g}finally{Da(d)}}else e!==null&&Fa(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&&q_(l,r),qt!==null&&qt.f&2)){var c=qt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Mn(t){let e=da(8,null,!1);return Qo(e,1024),e.teardown=t,e}function rt(t){var n;kf("$effect");var e=It!==null&&(It.f&32)!==0&&Vt!==null&&!Vt.m;if(ze&&oo(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:It,reaction:qt})}else{var o=sn(t);return o}}function Va(t){return kf("$effect.pre"),ze&&oo(t,"name",{value:"$effect.pre"}),xo(t)}function pc(t){let e=da(64,t,!0);return()=>{no(e)}}function Dv(t){let e=da(64,t,!0);return(i={})=>new Promise(o=>{i.outro?dn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function sn(t){return da(4,t,!1)}function xo(t){return da(8,t,!0)}function R(t,e=[],i=$){let o=e.map(i),n=()=>t(...o.map(s));return ze&&oo(n,"name",{value:"{expression}"}),so(n)}function so(t,e=0){return da(24|e,t,!0)}function Qi(t,e=!0){return da(40,t,!0,e)}function Cf(t){var e=t.teardown;if(e!==null){let i=lc,o=qt;wf(!0),po(null);try{e.call(null)}finally{wf(i),po(o)}}}function Sf(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 Av(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:wo(o);o.remove(),o=r}i=!0}Sf(t,e&&!i),od(t,0),Qo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();Cf(t);var d=t.parent;d!==null&&d.first!==null&&Tf(t),ze&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Tf(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 dn(t,e){var i=[];fc(t,i,!0),Ef(i,()=>{no(t),e&&e()})}function Ef(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function fc(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;fc(o,e,r?i:!1),o=n}}}function vs(t){Ov(t,!0)}function Ov(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Ms(t)&&(Qo(t,2048),Fa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ov(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Pf(t,e){if(e){let i=document.body;t.autofocus=!0,Wo(()=>{document.activeElement===i&&t.focus()})}}function Af(t){var e=qt,i=It;po(null),Di(null);try{return t()}finally{po(e),Di(i)}}var Mf=new Set,mc=new Set;function ca(t){if(!st)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 Lf(t,e,i,o={}){function n(r){if(o.capture||Ga.call(e,r),!r.cancelBubble)return Af(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ft(t,e,i,o,n){var r={capture:o,passive:n},l=Lf(t,e,i,r);(e===document.body||e===window||e===document)&&Mn(()=>{e.removeEventListener(t,l,r)})}function bt(t){for(var e=0;e<t.length;e++)Mf.add(t[e]);for(var i of mc)i(t)}function Ga(t){var B;var e=this,i=e.ownerDocument,o=t.type,n=((B=t.composedPath)==null?void 0:B.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){oo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=qt,g=It;po(null),Di(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!==void 0&&!r.disabled)if(Pr(y)){var[S,...L]=y;S.apply(r,[t,...L])}else y.call(r,t)}catch(V){m?h.push(V):m=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let V of h)queueMicrotask(()=>{throw V});throw m}}finally{t.__root=e,delete t.currentTarget,po(f),Di(g)}}}var Q_;function Hv(){Q_=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function mo(t,e){var i=It;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(st)return mo(wt,null),wt;n===void 0&&(n=Ya(r?t:"<!>"+t),i||(n=fi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(l),a=l.lastChild;mo(d,a)}else mo(l,l);return l}}function Le(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(st)return mo(wt,null),wt;if(!l){var d=Ya(r),a=fi(d);if(n)for(l=document.createDocumentFragment();fi(a);)l.appendChild(fi(a));else l=fi(a)}var c=l.cloneNode(!0);if(n){var f=fi(c),g=c.lastChild;mo(f,g)}else mo(c,c);return c}}function rr(t=""){if(!st){var e=Yo(t+"");return mo(e,e),e}var i=wt;return i.nodeType!==3&&(i.before(i=Yo()),pi(i)),mo(i,i),i}function Ze(){if(st)return mo(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Yo();return t.append(e,i),mo(e,i),t}function w(t,e){if(st){It.nodes_end=wt,Ai();return}t!==null&&t.before(e)}var Y_=/\r/g;function Uv(t){t=t.replace(Y_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var j_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wv(t){return j_.includes(t)}var Z_=["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","defer","disablepictureinpicture","disableremoteplayback"];var X_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function qv(t){var e;return t=t.toLowerCase(),(e=X_[t])!=null?e:t}var f7=[...Z_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var J_=["touchstart","touchmove"];function Kv(t){return J_.includes(t)}var e$=["textarea","script","style","title"];function Qv(t){return e$.includes(t)}function Vf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function vc(t){sd=t}function ke(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+"")}function gc(t,e){return Gv(t,e)}function Nf(t,e){var l;uc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=st,n=wt;try{for(var r=fi(i);r&&(r.nodeType!==8||r.data!==La);)r=wo(r);if(!r)throw cs;ro(!0),pi(r),Ai();let d=Gv(t,{...e,anchor:r});if(wt===null||wt.nodeType!==8||wt.data!==ea)throw na(),cs;return ro(!1),d}catch(d){if(d===cs)return e.recover===!1&&ev(),uc(),rd(i),ro(!1),gc(t,e);throw d}finally{ro(o),pi(n),Hv()}}var ja=new Map;function Gv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){uc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Kv(h);e.addEventListener(h,Ga,{passive:_});var y=ja.get(h);y===void 0?(document.addEventListener(h,Ga,{passive:_}),ja.set(h,1)):ja.set(h,y+1)}}};a(Gl(Mf)),mc.add(a);var c=void 0,f=Dv(()=>{var g=i!=null?i:e.appendChild(Yo());return Qi(()=>{if(r){E({});var m=Vt;m.c=r}n&&(o.$$events=n),st&&mo(g,null),sd=l,c=t(g,o)||{},sd=!0,st&&(It.nodes_end=wt),r&&P()}),()=>{var _;for(var m of d){e.removeEventListener(m,Ga);var h=ja.get(m);--h===0?(document.removeEventListener(m,Ga),ja.delete(m)):ja.set(m,h)}mc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return Rf.set(c,f),c}var Rf=new WeakMap;function Bf(t,e){let i=Rf.get(t);return i?(Rf.delete(t),i(e)):(ze&&fv(),Promise.resolve())}var Of;function k(t){return Of=t.target,new Df(t)}var gs,sr,Df=class{constructor(e){Es(this,gs);Es(this,sr);var r,l;var i=new Map,o=(d,a)=>{var c=ps(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===Ql?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return Y((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Pa(this,sr,(e.hydrate?Nf:gc)(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(),Pa(this,gs,n.$$events);for(let d of Object.keys(Pi(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Pi(this,sr)[d]},set(a){Pi(this,sr)[d]=a},enumerable:!0});Pi(this,sr).$set=d=>{Object.assign(n,d)},Pi(this,sr).$destroy=()=>{Bf(Pi(this,sr))}}$set(e){Pi(this,sr).$set(e)}$on(e,i){Pi(this,gs)[e]=Pi(this,gs)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,gs)[e].push(o),()=>{Pi(this,gs)[e]=Pi(this,gs)[e].filter(n=>n!==o)}}$destroy(){Pi(this,sr).$destroy()}};gs=new WeakMap,sr=new WeakMap;var Yv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yv);var jv=new Map;function Zv(t,e){var i=jv.get(t);i||(i=new Set,jv.set(t,i)),i.add(e)}function W(t,e,i=!1){st&&Ai();var o=t,n=null,r=null,l=Ki,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(st){let _=o.data===Js;!!l===_&&(o=Qa(),pi(o),ro(!1),h=!0)}l?(n?vs(n):m&&(n=Qi(()=>m(o))),r&&dn(r,()=>{r=null})):(r?vs(r):m&&(r=Qi(()=>m(o))),n&&dn(n,()=>{n=null})),h&&ro(!0)};so(()=>{a=!1,e(c),a||f(null,null)},d),st&&(o=wt)}function ad(t,e,i){st&&Ai();var o=t,n=Ki,r,l=Yr()?Gm:Aa;so(()=>{l(n,n=e())&&(r&&dn(r),r=Qi(()=>i(o)))}),st&&(o=wt)}var Vs=null;function Uf(t){Vs=t}function Ji(t,e){return e}function d$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)fc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;rd(a),a.append(i),o.clear(),Ls(t,e[0].prev,e[r-1].next)}Ef(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ls(t,f.prev,f.next)),no(f.e,!d)}})}function Ci(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=st?pi(fi(c)):c.appendChild(Yo())}st&&Ai();var f=null,g=!1,m=Lr(()=>{var h=i();return Pr(h)?h:h==null?[]:Gl(h)});so(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let y=!1;if(st){var S=l.data===Js;S!==(_===0)&&(l=Qa(),pi(l),ro(!1),y=!0)}if(st){for(var L=null,B,V=0;V<_;V++){if(wt.nodeType===8&&wt.data===ea){l=wt,y=!0,ro(!1);break}var N=h[V],T=o(N,V);B=eg(wt,d,L,null,N,T,V,n,e,i),d.items.set(T,B),L=B}_>0&&pi(Qa())}st||c$(h,d,l,n,e,o,i),r!==null&&(_===0?f?vs(f):f=Qi(()=>r(l)):f!==null&&dn(f,()=>{f=null})),y&&ro(!0),s(m)}),st&&(l=wt)}function c$(t,e,i,o,n,r,l){var Ce,Q,pe,he;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,y,S=[],L=[],B,V,N,T;if(d)for(T=0;T<c;T+=1)B=t[T],V=r(B,T),N=f.get(V),N!==void 0&&((Ce=N.a)==null||Ce.measure(),(y!=null?y:y=new Set).add(N));for(T=0;T<c;T+=1){if(B=t[T],V=r(B,T),N=f.get(V),N===void 0){var U=m?m.e.nodes_start:i;_=eg(U,e,_,_===null?e.first:_.next,B,V,T,o,n,l),f.set(V,_),S=[],L=[],m=_.next;continue}if(a&&u$(N,B,T,n),N.e.f&8192&&(vs(N.e),d&&((Q=N.a)==null||Q.unfix(),(y!=null?y:y=new Set).delete(N))),N!==m){if(h!==void 0&&h.has(N)){if(S.length<L.length){var K=L[0],H;_=K.prev;var G=S[0],J=S[S.length-1];for(H=0;H<S.length;H+=1)Xv(S[H],K,i);for(H=0;H<L.length;H+=1)h.delete(L[H]);Ls(e,G.prev,J.next),Ls(e,_,G),Ls(e,J,K),m=K,_=J,T-=1,S=[],L=[]}else h.delete(N),Xv(N,m,i),Ls(e,N.prev,N.next),Ls(e,N,_===null?e.first:_.next),Ls(e,_,N),_=N;continue}for(S=[],L=[];m!==null&&m.k!==V;)m.e.f&8192||(h!=null?h:h=new Set).add(m),L.push(m),m=m.next;if(m===null)continue;N=m}S.push(N),_=N,m=N.next}if(m!==null||h!==void 0){for(var de=h===void 0?[]:Gl(h);m!==null;)m.e.f&8192||de.push(m),m=m.next;var te=de.length;if(te>0){var xe=n&4&&c===0?i:null;if(d){for(T=0;T<te;T+=1)(pe=de[T].a)==null||pe.measure();for(T=0;T<te;T+=1)(he=de[T].a)==null||he.fix()}d$(e,de,xe,f)}}d&&Wo(()=>{var j;if(y!==void 0)for(N of y)(j=N.a)==null||j.apply()}),It.first=e.first&&e.first.e,It.last=_&&_.e}function u$(t,e,i,o){o&1&&Oa(t.v,e),o&2?Oa(t.i,i):t.i=i}function eg(t,e,i,o,n,r,l,d,a,c){var f=Vs,g=(a&1)!==0,m=(a&16)===0,h=g?m?ps(n):Oi(n):n,_=a&2?Oi(l):l;ze&&g&&(h.debug=()=>{var S=typeof _=="number"?l:_.v;c()[S]});var y={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Vs=y;try{return y.e=Qi(()=>d(t,h,_,c),st),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Vs=f}}function Xv(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 Ls(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 p$(t,e,i){var r,l;if(!e||e===Uv(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=Ko)!=null&&l[yi]&&(o=`in ${Ko[yi]}`),pv(Vf(o))}function ld(t,e,i,o,n){var r=t,l="",d;so(()=>{var a;if(l===(l=(a=e())!=null?a:"")){st&&Ai();return}d!==void 0&&(no(d),d=void 0),l!==""&&(d=Qi(()=>{if(st){for(var c=wt.data,f=Ai(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=wo(f);if(f===null)throw na(),cs;ze&&!n&&p$(f.parentNode,c,l),mo(wt,g),r=pi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Ya(m);if((i||o)&&(h=fi(h)),mo(fi(h),h.lastChild),i||o)for(;fi(h);)r.before(fi(h));else r.before(h)}))})}function Fe(t,e,i,o,n){var d;st&&Ai();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 vo(t,e,...i){var o=t,n=Wt,r;so(()=>{n!==(n=e())&&(r&&(no(r),r=null),ze&&n==null&&tv(),r=Qi(()=>n(o,...i)))},65536),st&&(o=wt)}function Hi(t,e,i){st&&Ai();var o=t,n,r;so(()=>{n!==(n=e())&&(r&&(dn(r),r=null),n&&(r=Qi(()=>i(o,n))))},65536),st&&(o=wt)}function dd(t,e,i,o,n,r){var _;let l=st;st&&Ai();var d=ze&&r&&((_=Vt)==null?void 0:_.function[yi]),a,c,f=null;st&&wt.nodeType===1&&(f=wt,Ai());var g=st?wt:t,m,h=Vs;so(()=>{let y=e()||null;var S=n?n():i||y==="svg"?ta:null;if(y!==a){var L=Vs;Uf(h),m&&(y===null?dn(m,()=>{m=null,c=null}):y===c?vs(m):(no(m),vc(!1))),y&&y!==c&&(m=Qi(()=>{if(f=st?f:S?document.createElementNS(S,y):document.createElement(y),ze&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),mo(f,f),o){st&&Qv(y)&&f.append(document.createComment(""));var B=st?fi(f):f.appendChild(Yo());st&&(B===null?ro(!1):pi(B)),o(f,B)}It.nodes_end=f,g.before(f)})),a=y,a&&(c=a),vc(!0),Uf(L)}},65536),l&&(ro(!0),pi(g))}function ne(t,e){Wo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Of)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ze&&Zv(e.hash,d)}})}function tg(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=tg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ig(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=tg(t))&&(o&&(o+=" "),o+=e);return o}function cd(t){return typeof t=="object"?ig(t):t!=null?t:""}function rg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(st&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||f$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Dm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oe(t,e,i,o,n=!1,r=!1,l=!1){var V;let d=st&&r;d&&ro(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=cd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=sg(t),m=(V=t.__attributes)!=null?V:t.__attributes={};for(let N in i){let T=i[N];if(c&&N==="value"&&T==null){t.value=t.__value="",a[N]=T;continue}var h=a[N];if(T!==h){a[N]=T;var _=N[0]+N[1];if(_!=="$$"){if(_==="on"){let U={},K="$$"+N,H=N.slice(2);var y=Wv(H);if(zv(H)&&(H=H.slice(0,-7),U.capture=!0),!y&&h){if(T!=null)continue;t.removeEventListener(H,a[K],U),a[K]=null}if(T!=null)if(y)t[`__${H}`]=T,bt([H]);else{let G=function(J){a[N].call(this,J)};var B=G;a[K]=Lf(H,t,G,U)}else y&&(t[`__${H}`]=void 0)}else if(N==="style"&&T!=null)t.style.cssText=T+"";else if(N==="autofocus")Pf(t,!!T);else if(!r&&(N==="__value"||N==="value"&&T!=null))t.value=t.__value=T;else if(N==="selected"&&c)rg(t,T);else{var S=N;n||(S=qv(S));var L=S==="defaultValue"||S==="defaultChecked";if(T==null&&!r&&!L)if(m[N]=null,S==="value"||S==="checked"){let U=t;if(S==="value"){let K=U.defaultValue;U.removeAttribute(S),U.defaultValue=K}else{let K=U.defaultChecked;U.removeAttribute(S),U.defaultChecked=K}}else t.removeAttribute(N);else L||g.includes(S)&&(r||typeof T!="string")?t[S]=T:typeof T!="function"&&fe(t,S,T)}N==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&ro(!0),a}var og=new Map;function sg(t){var e=og.get(t.nodeName);if(e)return e;og.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var r in i)i[r].set&&e.push(r);o=ds(o)}return e}function f$(t,e,i){var o;ze&&(e==="srcset"&&m$(t,i)||zf((o=t.getAttribute(e))!=null?o:"",i)||uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ng(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function m$(t,e){var i=ng(t.srcset),o=ng(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(zf(i[l][0],n)||zf(n,i[l][0])))}function jo(t,e,i){var o=t.__className,n=v$(e,i);st&&t.className===n?t.__className=n:(o!==n||st&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function v$(t,e){return(t==null?"":t)+(e?" "+e:"")}function re(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 g$=Gd?()=>performance.now():()=>Date.now(),Rr={tick:t=>(Gd?requestAnimationFrame:Wt)(t),now:()=>g$(),tasks:new Set};function ag(){let t=Rr.now();Rr.tasks.forEach(e=>{e.c(t)||(Rr.tasks.delete(e),e.f())}),Rr.tasks.size!==0&&Rr.tick(ag)}function lg(t){let e;return Rr.tasks.size===0&&Rr.tick(ag),{promise:new Promise(i=>{Rr.tasks.add(e={c:t,f:i})}),abort(){Rr.tasks.delete(e)}}}function hc(t,e){t.dispatchEvent(new CustomEvent(e))}function b$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function dg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=b$(n.trim());e[l]=r.trim()}return e}var y$=t=>t;function qf(t,e,i,o){var V;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var U;var N=qt,T=It;po(null),Di(null);try{return c!=null?c:c=i()(e,(U=o==null?void 0:o())!=null?U:{},{direction:a})}finally{po(N),Di(T)}}var y={is_global:d,in(){var N;if(e.inert=f,!n){h==null||h.abort(),(N=h==null?void 0:h.reset)==null||N.call(h);return}r||m==null||m.abort(),hc(e,"introstart"),m=Wf(e,_(),h,1,()=>{hc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(N){if(!r){N==null||N(),c=void 0;return}e.inert=!0,hc(e,"outrostart"),h=Wf(e,_(),m,0,()=>{hc(e,"outroend"),N==null||N()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},S=It;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&sd){var L=d;if(!L){for(var B=S.parent;B&&B.f&65536;)for(;(B=B.parent)&&!(B.f&16););L=!B||(B.f&32768)!==0}L&&sn(()=>{Tt(()=>y.in())})}}function Wf(t,e,i,o,n){var r=o===1;if(Ps(e)){var l,d=!1;return Wo(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Wf(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Wt,deactivate:Wt,reset:Wt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=y$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=dg(c(0,1));m.push(h,h)}var _=()=>1-o,y=t.animate(m,{duration:a});return y.onfinish=()=>{var G;var S=(G=i==null?void 0:i.t())!=null?G:1-o;i==null||i.abort();var L=o-S,B=e.duration*Math.abs(L),V=[];if(B>0){var N=!1;if(c)for(var T=Math.ceil(B/16.666666666666668),U=0;U<=T;U+=1){var K=S+L*g(U/T),H=dg(c(K,1-K));V.push(H),N||(N=H.overflow==="hidden")}N&&(t.style.overflow="hidden"),_=()=>{var J=y.currentTime;return S+L*g(J/B)},f&&lg(()=>{if(y.playState!=="running")return!1;var J=_();return f(J,1-J),!0})}y=t.animate(V,{duration:B,fill:"forwards"}),y.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=Wt)},deactivate:()=>{n=Wt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Rs,Za,ud,$c,cg,bc=class bc{constructor(e){Es(this,$c);Es(this,Rs,new WeakMap);Es(this,Za);Es(this,ud);Pa(this,ud,e)}observe(e,i){var o=Pi(this,Rs).get(e)||new Set;return o.add(i),Pi(this,Rs).set(e,o),Bm(this,$c,cg).call(this).observe(e,Pi(this,ud)),()=>{var n=Pi(this,Rs).get(e);n.delete(i),n.size===0&&(Pi(this,Rs).delete(e),Pi(this,Za).unobserve(e))}}};Rs=new WeakMap,Za=new WeakMap,ud=new WeakMap,$c=new WeakSet,cg=function(){var e;return(e=Pi(this,Za))!=null?e:Pa(this,Za,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Pi(this,Rs).get(o.target)||[])n(o)}}))},Tn(bc,"entries",new WeakMap);var Kf=bc;var C$=new Kf({box:"border-box"});function Xr(t,e,i){var o=C$.observe(t,()=>i(t[e]));sn(()=>(Tt(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Lo])===e}function xt(t={},e,i,o){return sn(()=>{var n,r;return xo(()=>{n=r,r=(o==null?void 0:o())||[],Tt(()=>{t!==i(...r)&&(e(t,...r),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{r&&ug(i(...r),t)&&e(null,...r)})}}),t}function Nr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>dc(e.s);if(t){let n=0,r={},l=$(()=>{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&&Va(()=>{pg(e,o),As(i.b)}),rt(()=>{let n=Tt(()=>i.m.map(zm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&rt(()=>{pg(e,o),As(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])}if(ze){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ov(e)},set:o=>{i=o}})}};T$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var T$;function Kt(t){Vt===null&&Ra("onMount"),Qr&&Vt.l!==null?S$(Vt).m.push(t):rt(()=>{let e=Tt(t);if(typeof e=="function")return e})}function ar(t){Vt===null&&Ra("onDestroy"),Kt(()=>()=>Tt(t))}function S$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Wt;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Xa=[];function lr(t,e){return{subscribe:Se(t,e).subscribe}}function Se(t,e=Wt){let i=null,o=new Set;function n(d){if(Aa(t,d)&&(t=d,i)){let a=!Xa.length;for(let c of o)c[1](),Xa.push(c,t);if(a){for(let c=0;c<Xa.length;c+=2)Xa[c][0](Xa[c+1]);Xa.length=0}}}function r(d){n(d(t))}function l(d,a=Wt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Wt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function mi(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 lr(i,(l,d)=>{let a=!1,c=[],f=0,g=Wt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Wt},h=n.map((_,y)=>pd(_,S=>{c[y]=S,f&=~(1<<y),a&&m()},()=>{f|=1<<y}));return a=!0,m(),function(){As(h),g(),a=!1}})}function Ne(t){let e;return pd(t,i=>e=i)(),e}var yc=!1,Qf=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ps(void 0),unsubscribe:Wt};if(o.store!==t&&!(Qf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Wt;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:Y(o.source,l)}),n=!1}return t&&Qf in i?Ne(t):s(o.source)}function Xe(){let t={};function e(){Mn(()=>{for(var i in t)t[i].unsubscribe();oo(t,Qf,{enumerable:!1,value:!0})})}return[t,e]}function Gf(t){var e=yc;try{return yc=!1,[t(),yc]}finally{yc=e}}var A$={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),ec(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),ec(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 Ue(t,e){return new Proxy({props:t,exclude:e,special:{},version:Oi(0)},A$)}var M$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(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];Ps(n)&&(n=n());let r=In(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(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=In(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Ql)return!1;for(let i of t.props)if(Ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function hs(...t){return new Proxy({props:t},M$)}function fg(t){for(var e=It,i=It;e!==null&&!(e.f&96);)e=e.parent;try{return Di(e),t()}finally{Di(i)}}function p(t,e,i,o){var K,H;var n=(i&1)!==0,r=!Qr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Gf(()=>t[e]):c=t[e];var f=Lo in t||Ql in t,g=l&&((H=(K=In(t,e))==null?void 0:K.set)!=null?H:f&&e in t&&(G=>t[e]=G))||void 0,m=o,h=!0,_=!1,y=()=>(_=!0,h&&(h=!1,d?m=Tt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&iv(e),c=y(),g&&g(c));var S;if(r)S=()=>{var G=t[e];return G===void 0?y():(h=!0,_=!1,G)};else{var L=fg(()=>(n?$:Lr)(()=>t[e]));L.f|=131072,S=()=>{var G=s(L);return G!==void 0&&(m=void 0),G===void 0?m:G}}if(!(i&4))return S;if(g){var B=t.$$legacy;return function(G,J){return arguments.length>0?((!r||!J||B||a)&&g(J?S():G),G):S()}}var V=!1,N=!1,T=ps(c),U=fg(()=>$(()=>{var G=S(),J=s(T);return V?(V=!1,N=!0,J):(N=!1,T.v=G)}));return n||(U.equals=Ma),function(G,J){if(jl!==null&&(V=N,S(),s(T)),arguments.length>0){let de=J?s(U):r&&l?Ae(G):G;return U.equals(de)||(V=!0,Y(T,de),_&&m!==void 0&&(m=de),Tt(()=>s(U))),G}return s(U)}}var L$;typeof HTMLElement=="function"&&(L$=class extends HTMLElement{constructor(e,i,o){super();Tn(this,"$$ctor");Tn(this,"$$s");Tn(this,"$$c");Tn(this,"$$cn",!1);Tn(this,"$$d",{});Tn(this,"$$r",!1);Tn(this,"$$p_d",{});Tn(this,"$$l",{});Tn(this,"$$l_u",new Map);Tn(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=V$(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]=Yf(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=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=pc(()=>{xo(()=>{var r;this.$$r=!0;for(let l of rf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Yf(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]=Yf(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 rf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Yf(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 V$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{clientChecker as Gx}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as Up,safeStorage as Yx,throttleFn as jx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Zx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as N$,fillWithDefault as B$,VideoQuality as vg}from"@vkontakte/videoplayer-shared/es2018";var D$={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:N$.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:vg.Q_480P,highQualityLimit:vg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},gg=t=>B$(t,D$),hg=t=>Ba("ui-config",t),Xt=()=>Na("ui-config");var fd="vk_player_debug_panel_opened";var _g="videoplayer",$g="videoplayer";var Jr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},bg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),yg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),xg=new Set(["ShiftRight","ShiftLeft"]);var wg=["TIMELINE"],md=[...wg,"GRAPH_BUTTON"],jf=[...wg,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var es=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(es||{}),pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Cg,VERSION as O$}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as H$}from"@vkontakte/videoplayer-core/es2018";import{VERSION as F$}from"@vkontakte/videoplayer-statistics/es2018";var xc="prod",Ja="1.1.59-dev.50aa90ae.0";var fa=(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)=>{Ba(Sg,t),Ba(Tg,e),xc==="dev"&&(window.app={store:t,microStores:e})},He=()=>{let t=Na(Sg);return Cg(t,"Store context is empty!"),t},Co=()=>{let t=Na(Tg);return Cg(t,"MicroStores context is empty!"),t},ii=(t,e)=>Cc(t,t.getValue(),e),Cc=(t,e,i)=>lr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),kg=(t,e,i)=>{var L,B,V,N,T,U;let o=t.info,{width:n,height:r}=Ne(i.ui.playerSize),l=(B=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?B:0,d=(N=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?N:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ja} (core: ${H$}, stat: ${F$}, shared: ${O$})`,f=Ne(i.state.errorLog$),g=f.length?`
45
+ `)})}if(yv(t,e),xv(e))throw t}function Iv(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];r.f&2?Iv(r,e,i+1):e===r&&(i===0?Qo(r,2048):r.f&1024&&Qo(r,4096),Fa(r))}}function ic(t){var h,_;var e=Go,i=An,o=jr,n=qt,r=ms,l=Ar,d=Vt,a=Mr,c=t.f;Go=null,An=0,jr=null,qt=c&96?null:t,ms=(c&256)!==0&&(!fs||n===null||a),Ar=null,Zl(t.ctx),Mr=!1,sc++;try{var f=(0,t.fn)(),g=t.deps;if(Go!==null){var m;if(od(t,An),g!==null&&An>0)for(g.length=An+Go.length,m=0;m<Go.length;m++)g[An+m]=Go[m];else t.deps=g=Go;if(!ms)for(m=An;m<g.length;m++)((_=(h=g[m]).reactions)!=null?_:h.reactions=[]).push(t)}else g!==null&&An<g.length&&(od(t,An),g.length=An);if(Yr()&&jr!==null&&!(t.f&6146))for(m=0;m<jr.length;m++)Iv(jr[m],t);return n!==null&&sc++,f}finally{Go=e,An=i,jr=o,qt=n,ms=r,Ar=l,Zl(d),Mr=a}}function F_(t,e){let i=e.reactions;if(i!==null){var o=Fm.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&&(Go===null||!Go.includes(e))&&(Qo(e,4096),e.f&768||(e.f^=512),tc(e),od(e,0))}function od(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)F_(t,i[o])}function Ha(t){var e=t.f;if(!(e&16384)){Qo(t,1024);var i=It,o=Vt;if(It=t,ze){var n=Ko;Xl(t.component_function)}try{e&16?Av(t):Sf(t),Cf(t);var r=ic(t);t.teardown=typeof r=="function"?r:null,t.wv=Tv;var l=t.deps;if(ze&&Gr&&t.f&2048&&l!==null)for(let a=0;a<l.length;a++){var d=l[a];d.trace_need_increase&&(d.wv=ed(),d.trace_need_increase=void 0,d.trace_v=void 0)}ze&&id.push(t)}catch(a){qa(a,t,i,o||t.ctx)}finally{It=i,ze&&Xl(n)}}}function wv(){console.error("Last ten effects were: ",id.slice(-10).map(t=>t.fn)),id=[]}function kv(){if(za>1e3){za=0;try{Jm()}catch(t){if(ze&&oo(t,"stack",{value:""}),Ua!==null)if(ze)try{qa(t,Ua,null,null)}catch(e){throw wv(),e}else qa(t,Ua,null,null);else throw ze&&wv(),t}}za++}function Ev(t){var e=t.length;if(e!==0){kv();var i=fs;fs=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var r=[];Pv(n,r),U_(r)}}finally{fs=i}}}function U_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{Ms(o)&&(Ha(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Tf(o):o.fn=null))}catch(n){qa(n,o,null,o.ctx)}}}function z_(){if(td=!1,za>1001)return;let t=aa;aa=[],Ev(t),td||(za=0,Ua=null,ze&&(id=[]))}function Fa(t){nc===Sv&&(td||(td=!0,queueMicrotask(z_))),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}}aa.push(e)}function Pv(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{var a=qt;try{qt=i,Ms(i)&&Ha(i)}catch(m){qa(m,i,null,i.ctx)}finally{qt=a}}var c=i.first;if(c!==null){i=c;continue}}else n&4&&o.push(i);if(d===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=d}for(var g=0;g<o.length;g++)c=o[g],e.push(c),Pv(c,e)}function u(t){var e=nc,i=aa;try{kv();let n=[];nc=H_,aa=n,td=!1,Ev(i);var o=t==null?void 0:t();return Qm(),(aa.length>0||n.length>0)&&u(),za=0,Ua=null,ze&&(id=[]),o}finally{nc=e,aa=i}}async function fo(){await Promise.resolve(),u()}function s(t){var e=t.f,i=(e&2)!==0;if(jl!==null&&jl.add(t),qt!==null&&!Mr){Ar!==null&&Ar.includes(t)&&sv();var o=qt.deps;t.rv<sc&&(t.rv=sc,Go===null&&o!==null&&o[An]===t?An++:Go===null?Go=[t]:(!ms||!Go.includes(t))&&Go.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&!(r.f&256)&&(n.f^=256)}if(i&&(n=t,Ms(n)&&yf(n)),ze&&Gr&&Yl!==null&&qt!==null&&Yl.reaction===qt){if(t.debug)t.debug();else if(t.created){var l=Yl.entries.get(t);l===void 0&&(l={read:[]},Yl.entries.set(t,l)),l.read.push(us("TracedAt"))}}return t.v}function Tt(t){var e=Mr;try{return Mr=!0,t()}finally{Mr=e}}var W_=-7169;function Qo(t,e){t.f=t.f&W_|e}function dc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)ac(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&ac(i)}}}function ac(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{ac(t[o],e)}catch(n){}let i=ds(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Yd(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}var st=!1;function ro(t){st=t}var wt;function pi(t){if(t===null)throw na(),cs;return wt=t}function Ai(){return pi(wo(wt))}function b(t){if(st){if(wo(wt)!==null)throw na(),cs;wt=t}}function Me(t=1){if(st){for(var e=t,i=wt;e--;)i=wo(i);wt=i}}function Qa(){for(var t=0,e=wt;;){if(e.nodeType===8){var i=e.data;if(i===ea){if(t===0)return e;t-=1}else(i===La||i===Js)&&(t+=1)}var o=wo(e);e.remove(),e=o}}function Ae(t,e=null,i){var c,f;var o=null;if(ze&&Gr&&(o=us("CreatedAt")),typeof t!="object"||t===null||Lo in t)return t;let n=ds(t);if(n!==sf&&n!==Um)return t;var r=new Map,l=Pr(t),d=Oi(0);l&&r.set("length",Oi(t.length,o));var a;if(ze)if(a={parent:e,owners:null},i){let g=(f=(c=i.v)==null?void 0:c[ls])==null?void 0:f.owners;a.owners=g?new Set(g):null}else a.owners=e===null?Vt!==null?new Set([Vt.function]):null:new Set;return new Proxy(t,{defineProperty(g,m,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&nv();var _=r.get(m);return _===void 0?(_=Oi(h.value,o),r.set(m,_)):Y(_,Ae(h.value,a)),!0},deleteProperty(g,m){var h=r.get(m);if(h===void 0)m in g&&r.set(m,Oi(Ki,o));else{if(l&&typeof m=="string"){var _=r.get("length"),y=Number(m);Number.isInteger(y)&&y<_.v&&Y(_,y)}Y(h,Ki),Mv(d)}return!0},get(g,m,h){var B;if(ze&&m===ls)return a;if(m===Lo)return t;var _=r.get(m),y=m in g;if(_===void 0&&(!y||(B=In(g,m))!=null&&B.writable)&&(_=Oi(Ae(y?g[m]:Ki,a),o),r.set(m,_)),_!==void 0){var S=s(_);if(ze){var L=S==null?void 0:S[ls];L&&(L==null?void 0:L.parent)!==a&&ff(a,L)}return S===Ki?void 0:S}return Reflect.get(g,m,h)},getOwnPropertyDescriptor(g,m){var h=Reflect.getOwnPropertyDescriptor(g,m);if(h&&"value"in h){var _=r.get(m);_&&(h.value=s(_))}else if(h===void 0){var y=r.get(m),S=y==null?void 0:y.v;if(y!==void 0&&S!==Ki)return{enumerable:!0,configurable:!0,value:S,writable:!0}}return h},has(g,m){var S;if(ze&&m===ls||m===Lo)return!0;var h=r.get(m),_=h!==void 0&&h.v!==Ki||Reflect.has(g,m);if(h!==void 0||It!==null&&(!_||(S=In(g,m))!=null&&S.writable)){h===void 0&&(h=Oi(_?Ae(g[m],a):Ki,o),r.set(m,h));var y=s(h);if(y===Ki)return!1}return _},set(g,m,h,_){var K;var y=r.get(m),S=m in g;if(l&&m==="length")for(var L=h;L<y.v;L+=1){var B=r.get(L+"");B!==void 0?Y(B,Ki):L in g&&(B=Oi(Ki,o),r.set(L+"",B))}if(y===void 0?(!S||(K=In(g,m))!=null&&K.writable)&&(y=Oi(void 0,o),Y(y,Ae(h,a)),r.set(m,y)):(S=y.v!==Ki,Y(y,Ae(h,a))),ze){var V=h==null?void 0:h[ls];V&&(V==null?void 0:V.parent)!==a&&ff(a,V),gv(a)}var N=Reflect.getOwnPropertyDescriptor(g,m);if(N!=null&&N.set&&N.set.call(_,h),!S){if(l&&typeof m=="string"){var T=r.get("length"),U=Number(m);Number.isInteger(U)&&U>=T.v&&Y(T,U+1)}Mv(d)}return!0},ownKeys(g){s(d);var m=Reflect.ownKeys(g).filter(y=>{var S=r.get(y);return S===void 0||S.v!==Ki});for(var[h,_]of r)_.v!==Ki&&!(h in g)&&m.push(h);return m},setPrototypeOf(){rv()}})}function Mv(t,e=1){Y(t,t.v+e)}function cc(t){return t!==null&&typeof t=="object"&&Lo in t?t[Lo]:t}function Lv(){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(cc(this[a])===r){Xd("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(cc(this[a])===r){Xd("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(cc(this[a])===r){Xd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var la,Vv,Rv,Nv;function uc(){if(la===void 0){la=window,Vv=document;var t=Element.prototype,e=Node.prototype;Rv=In(e,"firstChild").get,Nv=In(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,ze&&(t.__svelte_meta=null,Lv())}}function Yo(t=""){return document.createTextNode(t)}function fi(t){return Rv.call(t)}function wo(t){return Nv.call(t)}function x(t,e){if(!st)return fi(t);var i=fi(wt);if(i===null)i=wt.appendChild(Yo());else if(e&&i.nodeType!==3){var o=Yo();return i==null||i.before(o),pi(o),o}return pi(i),i}function Ie(t,e){var n,r;if(!st){var i=fi(t);return i.nodeType===8&&i.data===""?wo(i):i}if(e&&((n=wt)==null?void 0:n.nodeType)!==3){var o=Yo();return(r=wt)==null||r.before(o),pi(o),o}return wt}function O(t,e=1,i=!1){let o=st?wt:t;for(var n;e--;)n=o,o=wo(o);if(!st)return o;var r=o==null?void 0:o.nodeType;if(i&&r!==3){var l=Yo();return o===null?n==null||n.after(l):o.before(l),pi(l),l}return pi(o),o}function rd(t){t.textContent=""}function kf(t){It===null&&qt===null&&Xm(t),qt!==null&&qt.f&256&&It===null&&Zm(),lc&&jm(t)}function q_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function da(t,e,i,o=!0){var f;var n=(t&64)!==0,r=It;if(ze)for(;r!==null&&r.f&262144;)r=r.parent;var l={ctx:Vt,deps: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(ze&&(l.component_function=Ko),i){var d=fs;try{Da(!0),Ha(l),l.f|=32768}catch(g){throw no(l),g}finally{Da(d)}}else e!==null&&Fa(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&&q_(l,r),qt!==null&&qt.f&2)){var c=qt;((f=c.effects)!=null?f:c.effects=[]).push(l)}return l}function Mn(t){let e=da(8,null,!1);return Qo(e,1024),e.teardown=t,e}function rt(t){var n;kf("$effect");var e=It!==null&&(It.f&32)!==0&&Vt!==null&&!Vt.m;if(ze&&oo(t,"name",{value:"$effect"}),e){var i=Vt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:It,reaction:qt})}else{var o=sn(t);return o}}function Va(t){return kf("$effect.pre"),ze&&oo(t,"name",{value:"$effect.pre"}),xo(t)}function pc(t){let e=da(64,t,!0);return()=>{no(e)}}function Dv(t){let e=da(64,t,!0);return(i={})=>new Promise(o=>{i.outro?dn(e,()=>{no(e),o(void 0)}):(no(e),o(void 0))})}function sn(t){return da(4,t,!1)}function xo(t){return da(8,t,!0)}function R(t,e=[],i=$){let o=e.map(i),n=()=>t(...o.map(s));return ze&&oo(n,"name",{value:"{expression}"}),so(n)}function so(t,e=0){return da(24|e,t,!0)}function Qi(t,e=!0){return da(40,t,!0,e)}function Cf(t){var e=t.teardown;if(e!==null){let i=lc,o=qt;wf(!0),po(null);try{e.call(null)}finally{wf(i),po(o)}}}function Sf(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 Av(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:wo(o);o.remove(),o=r}i=!0}Sf(t,e&&!i),od(t,0),Qo(t,16384);var l=t.transitions;if(l!==null)for(let a of l)a.stop();Cf(t);var d=t.parent;d!==null&&d.first!==null&&Tf(t),ze&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Tf(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 dn(t,e){var i=[];fc(t,i,!0),Ef(i,()=>{no(t),e&&e()})}function Ef(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function fc(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;fc(o,e,r?i:!1),o=n}}}function vs(t){Ov(t,!0)}function Ov(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),Ms(t)&&(Qo(t,2048),Fa(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Ov(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}function Pf(t,e){if(e){let i=document.body;t.autofocus=!0,Wo(()=>{document.activeElement===i&&t.focus()})}}function Af(t){var e=qt,i=It;po(null),Di(null);try{return t()}finally{po(e),Di(i)}}var Mf=new Set,mc=new Set;function ca(t){if(!st)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 Lf(t,e,i,o={}){function n(r){if(o.capture||Ga.call(e,r),!r.cancelBubble)return Af(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Ft(t,e,i,o,n){var r={capture:o,passive:n},l=Lf(t,e,i,r);(e===document.body||e===window||e===document)&&Mn(()=>{e.removeEventListener(t,l,r)})}function bt(t){for(var e=0;e<t.length;e++)Mf.add(t[e]);for(var i of mc)i(t)}function Ga(t){var B;var e=this,i=e.ownerDocument,o=t.type,n=((B=t.composedPath)==null?void 0:B.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){oo(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=qt,g=It;po(null),Di(null);try{for(var m,h=[];r!==null;){var _=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!==void 0&&!r.disabled)if(Pr(y)){var[S,...L]=y;S.apply(r,[t,...L])}else y.call(r,t)}catch(V){m?h.push(V):m=V}if(t.cancelBubble||_===e||_===null)break;r=_}if(m){for(let V of h)queueMicrotask(()=>{throw V});throw m}}finally{t.__root=e,delete t.currentTarget,po(f),Di(g)}}}var Q_;function Hv(){Q_=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function mo(t,e){var i=It;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(st)return mo(wt,null),wt;n===void 0&&(n=Ya(r?t:"<!>"+t),i||(n=fi(n)));var l=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(l),a=l.lastChild;mo(d,a)}else mo(l,l);return l}}function Le(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(st)return mo(wt,null),wt;if(!l){var d=Ya(r),a=fi(d);if(n)for(l=document.createDocumentFragment();fi(a);)l.appendChild(fi(a));else l=fi(a)}var c=l.cloneNode(!0);if(n){var f=fi(c),g=c.lastChild;mo(f,g)}else mo(c,c);return c}}function rr(t=""){if(!st){var e=Yo(t+"");return mo(e,e),e}var i=wt;return i.nodeType!==3&&(i.before(i=Yo()),pi(i)),mo(i,i),i}function Ze(){if(st)return mo(wt,null),wt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Yo();return t.append(e,i),mo(e,i),t}function w(t,e){if(st){It.nodes_end=wt,Ai();return}t!==null&&t.before(e)}var Y_=/\r/g;function Uv(t){t=t.replace(Y_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function zv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var j_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Wv(t){return j_.includes(t)}var Z_=["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","defer","disablepictureinpicture","disableremoteplayback"];var X_={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function qv(t){var e;return t=t.toLowerCase(),(e=X_[t])!=null?e:t}var f7=[...Z_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var J_=["touchstart","touchmove"];function Kv(t){return J_.includes(t)}var e$=["textarea","script","style","title"];function Qv(t){return e$.includes(t)}function Vf(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var sd=!0;function vc(t){sd=t}function ke(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+"")}function gc(t,e){return Gv(t,e)}function Nf(t,e){var l;uc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=st,n=wt;try{for(var r=fi(i);r&&(r.nodeType!==8||r.data!==La);)r=wo(r);if(!r)throw cs;ro(!0),pi(r),Ai();let d=Gv(t,{...e,anchor:r});if(wt===null||wt.nodeType!==8||wt.data!==ea)throw na(),cs;return ro(!1),d}catch(d){if(d===cs)return e.recover===!1&&ev(),uc(),rd(i),ro(!1),gc(t,e);throw d}finally{ro(o),pi(n),Hv()}}var ja=new Map;function Gv(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){uc();var d=new Set,a=g=>{for(var m=0;m<g.length;m++){var h=g[m];if(!d.has(h)){d.add(h);var _=Kv(h);e.addEventListener(h,Ga,{passive:_});var y=ja.get(h);y===void 0?(document.addEventListener(h,Ga,{passive:_}),ja.set(h,1)):ja.set(h,y+1)}}};a(Gl(Mf)),mc.add(a);var c=void 0,f=Dv(()=>{var g=i!=null?i:e.appendChild(Yo());return Qi(()=>{if(r){E({});var m=Vt;m.c=r}n&&(o.$$events=n),st&&mo(g,null),sd=l,c=t(g,o)||{},sd=!0,st&&(It.nodes_end=wt),r&&P()}),()=>{var _;for(var m of d){e.removeEventListener(m,Ga);var h=ja.get(m);--h===0?(document.removeEventListener(m,Ga),ja.delete(m)):ja.set(m,h)}mc.delete(a),g!==i&&((_=g.parentNode)==null||_.removeChild(g))}});return Rf.set(c,f),c}var Rf=new WeakMap;function Bf(t,e){let i=Rf.get(t);return i?(Rf.delete(t),i(e)):(ze&&fv(),Promise.resolve())}var Of;function k(t){return Of=t.target,new Df(t)}var gs,sr,Df=class{constructor(e){Es(this,gs);Es(this,sr);var r,l;var i=new Map,o=(d,a)=>{var c=ps(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===Ql?!0:(s((c=i.get(a))!=null?c:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,c){var f;return Y((f=i.get(a))!=null?f:o(a,c),c),Reflect.set(d,a,c)}});Pa(this,sr,(e.hydrate?Nf:gc)(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(),Pa(this,gs,n.$$events);for(let d of Object.keys(Pi(this,sr)))d==="$set"||d==="$destroy"||d==="$on"||oo(this,d,{get(){return Pi(this,sr)[d]},set(a){Pi(this,sr)[d]=a},enumerable:!0});Pi(this,sr).$set=d=>{Object.assign(n,d)},Pi(this,sr).$destroy=()=>{Bf(Pi(this,sr))}}$set(e){Pi(this,sr).$set(e)}$on(e,i){Pi(this,gs)[e]=Pi(this,gs)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,gs)[e].push(o),()=>{Pi(this,gs)[e]=Pi(this,gs)[e].filter(n=>n!==o)}}$destroy(){Pi(this,sr).$destroy()}};gs=new WeakMap,sr=new WeakMap;var Yv="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yv);var jv=new Map;function Zv(t,e){var i=jv.get(t);i||(i=new Set,jv.set(t,i)),i.add(e)}function W(t,e,i=!1){st&&Ai();var o=t,n=null,r=null,l=Ki,d=i?65536:0,a=!1;let c=(g,m=!0)=>{a=!0,f(m,g)},f=(g,m)=>{if(l===(l=g))return;let h=!1;if(st){let _=o.data===Js;!!l===_&&(o=Qa(),pi(o),ro(!1),h=!0)}l?(n?vs(n):m&&(n=Qi(()=>m(o))),r&&dn(r,()=>{r=null})):(r?vs(r):m&&(r=Qi(()=>m(o))),n&&dn(n,()=>{n=null})),h&&ro(!0)};so(()=>{a=!1,e(c),a||f(null,null)},d),st&&(o=wt)}function ad(t,e,i){st&&Ai();var o=t,n=Ki,r,l=Yr()?Gm:Aa;so(()=>{l(n,n=e())&&(r&&dn(r),r=Qi(()=>i(o)))}),st&&(o=wt)}var Vs=null;function Uf(t){Vs=t}function Ji(t,e){return e}function d$(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)fc(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;rd(a),a.append(i),o.clear(),Ls(t,e[0].prev,e[r-1].next)}Ef(n,()=>{for(var c=0;c<r;c++){var f=e[c];d||(o.delete(f.k),Ls(t,f.prev,f.next)),no(f.e,!d)}})}function Ci(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=st?pi(fi(c)):c.appendChild(Yo())}st&&Ai();var f=null,g=!1,m=Lr(()=>{var h=i();return Pr(h)?h:h==null?[]:Gl(h)});so(()=>{var h=s(m),_=h.length;if(g&&_===0)return;g=_===0;let y=!1;if(st){var S=l.data===Js;S!==(_===0)&&(l=Qa(),pi(l),ro(!1),y=!0)}if(st){for(var L=null,B,V=0;V<_;V++){if(wt.nodeType===8&&wt.data===ea){l=wt,y=!0,ro(!1);break}var N=h[V],T=o(N,V);B=eg(wt,d,L,null,N,T,V,n,e,i),d.items.set(T,B),L=B}_>0&&pi(Qa())}st||c$(h,d,l,n,e,o,i),r!==null&&(_===0?f?vs(f):f=Qi(()=>r(l)):f!==null&&dn(f,()=>{f=null})),y&&ro(!0),s(m)}),st&&(l=wt)}function c$(t,e,i,o,n,r,l){var Ce,Q,pe,he;var d=(n&8)!==0,a=(n&3)!==0,c=t.length,f=e.items,g=e.first,m=g,h,_=null,y,S=[],L=[],B,V,N,T;if(d)for(T=0;T<c;T+=1)B=t[T],V=r(B,T),N=f.get(V),N!==void 0&&((Ce=N.a)==null||Ce.measure(),(y!=null?y:y=new Set).add(N));for(T=0;T<c;T+=1){if(B=t[T],V=r(B,T),N=f.get(V),N===void 0){var U=m?m.e.nodes_start:i;_=eg(U,e,_,_===null?e.first:_.next,B,V,T,o,n,l),f.set(V,_),S=[],L=[],m=_.next;continue}if(a&&u$(N,B,T,n),N.e.f&8192&&(vs(N.e),d&&((Q=N.a)==null||Q.unfix(),(y!=null?y:y=new Set).delete(N))),N!==m){if(h!==void 0&&h.has(N)){if(S.length<L.length){var K=L[0],H;_=K.prev;var G=S[0],J=S[S.length-1];for(H=0;H<S.length;H+=1)Xv(S[H],K,i);for(H=0;H<L.length;H+=1)h.delete(L[H]);Ls(e,G.prev,J.next),Ls(e,_,G),Ls(e,J,K),m=K,_=J,T-=1,S=[],L=[]}else h.delete(N),Xv(N,m,i),Ls(e,N.prev,N.next),Ls(e,N,_===null?e.first:_.next),Ls(e,_,N),_=N;continue}for(S=[],L=[];m!==null&&m.k!==V;)m.e.f&8192||(h!=null?h:h=new Set).add(m),L.push(m),m=m.next;if(m===null)continue;N=m}S.push(N),_=N,m=N.next}if(m!==null||h!==void 0){for(var de=h===void 0?[]:Gl(h);m!==null;)m.e.f&8192||de.push(m),m=m.next;var te=de.length;if(te>0){var xe=n&4&&c===0?i:null;if(d){for(T=0;T<te;T+=1)(pe=de[T].a)==null||pe.measure();for(T=0;T<te;T+=1)(he=de[T].a)==null||he.fix()}d$(e,de,xe,f)}}d&&Wo(()=>{var j;if(y!==void 0)for(N of y)(j=N.a)==null||j.apply()}),It.first=e.first&&e.first.e,It.last=_&&_.e}function u$(t,e,i,o){o&1&&Oa(t.v,e),o&2?Oa(t.i,i):t.i=i}function eg(t,e,i,o,n,r,l,d,a,c){var f=Vs,g=(a&1)!==0,m=(a&16)===0,h=g?m?ps(n):Oi(n):n,_=a&2?Oi(l):l;ze&&g&&(h.debug=()=>{var S=typeof _=="number"?l:_.v;c()[S]});var y={i:_,v:h,k:r,a:null,e:null,prev:i,next:o};Vs=y;try{return y.e=Qi(()=>d(t,h,_,c),st),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Vs=f}}function Xv(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 Ls(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 p$(t,e,i){var r,l;if(!e||e===Uv(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=Ko)!=null&&l[yi]&&(o=`in ${Ko[yi]}`),pv(Vf(o))}function ld(t,e,i,o,n){var r=t,l="",d;so(()=>{var a;if(l===(l=(a=e())!=null?a:"")){st&&Ai();return}d!==void 0&&(no(d),d=void 0),l!==""&&(d=Qi(()=>{if(st){for(var c=wt.data,f=Ai(),g=f;f!==null&&(f.nodeType!==8||f.data!=="");)g=f,f=wo(f);if(f===null)throw na(),cs;ze&&!n&&p$(f.parentNode,c,l),mo(wt,g),r=pi(f);return}var m=l+"";i?m=`<svg>${m}</svg>`:o&&(m=`<math>${m}</math>`);var h=Ya(m);if((i||o)&&(h=fi(h)),mo(fi(h),h.lastChild),i||o)for(;fi(h);)r.before(fi(h));else r.before(h)}))})}function Fe(t,e,i,o,n){var d;st&&Ai();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 vo(t,e,...i){var o=t,n=Wt,r;so(()=>{n!==(n=e())&&(r&&(no(r),r=null),ze&&n==null&&tv(),r=Qi(()=>n(o,...i)))},65536),st&&(o=wt)}function Hi(t,e,i){st&&Ai();var o=t,n,r;so(()=>{n!==(n=e())&&(r&&(dn(r),r=null),n&&(r=Qi(()=>i(o,n))))},65536),st&&(o=wt)}function dd(t,e,i,o,n,r){var _;let l=st;st&&Ai();var d=ze&&r&&((_=Vt)==null?void 0:_.function[yi]),a,c,f=null;st&&wt.nodeType===1&&(f=wt,Ai());var g=st?wt:t,m,h=Vs;so(()=>{let y=e()||null;var S=n?n():i||y==="svg"?ta:null;if(y!==a){var L=Vs;Uf(h),m&&(y===null?dn(m,()=>{m=null,c=null}):y===c?vs(m):(no(m),vc(!1))),y&&y!==c&&(m=Qi(()=>{if(f=st?f:S?document.createElementNS(S,y):document.createElement(y),ze&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),mo(f,f),o){st&&Qv(y)&&f.append(document.createComment(""));var B=st?fi(f):f.appendChild(Yo());st&&(B===null?ro(!1):pi(B)),o(f,B)}It.nodes_end=f,g.before(f)})),a=y,a&&(c=a),vc(!0),Uf(L)}},65536),l&&(ro(!0),pi(g))}function ne(t,e){Wo(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=Of)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),ze&&Zv(e.hash,d)}})}function tg(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=tg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function ig(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=tg(t))&&(o&&(o+=" "),o+=e);return o}function cd(t){return typeof t=="object"?ig(t):t!=null?t:""}function rg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function fe(t,e,i,o){var r;var n=(r=t.__attributes)!=null?r:t.__attributes={};if(st&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||f$(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Dm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&sg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oe(t,e,i,o,n=!1,r=!1,l=!1){var V;let d=st&&r;d&&ro(!1);var a=e||{},c=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=cd(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var g=sg(t),m=(V=t.__attributes)!=null?V:t.__attributes={};for(let N in i){let T=i[N];if(c&&N==="value"&&T==null){t.value=t.__value="",a[N]=T;continue}var h=a[N];if(T!==h){a[N]=T;var _=N[0]+N[1];if(_!=="$$"){if(_==="on"){let U={},K="$$"+N,H=N.slice(2);var y=Wv(H);if(zv(H)&&(H=H.slice(0,-7),U.capture=!0),!y&&h){if(T!=null)continue;t.removeEventListener(H,a[K],U),a[K]=null}if(T!=null)if(y)t[`__${H}`]=T,bt([H]);else{let G=function(J){a[N].call(this,J)};var B=G;a[K]=Lf(H,t,G,U)}else y&&(t[`__${H}`]=void 0)}else if(N==="style"&&T!=null)t.style.cssText=T+"";else if(N==="autofocus")Pf(t,!!T);else if(!r&&(N==="__value"||N==="value"&&T!=null))t.value=t.__value=T;else if(N==="selected"&&c)rg(t,T);else{var S=N;n||(S=qv(S));var L=S==="defaultValue"||S==="defaultChecked";if(T==null&&!r&&!L)if(m[N]=null,S==="value"||S==="checked"){let U=t;if(S==="value"){let K=U.defaultValue;U.removeAttribute(S),U.defaultValue=K}else{let K=U.defaultChecked;U.removeAttribute(S),U.defaultChecked=K}}else t.removeAttribute(N);else L||g.includes(S)&&(r||typeof T!="string")?t[S]=T:typeof T!="function"&&fe(t,S,T)}N==="style"&&"__styles"in t&&(t.__styles={})}}}return d&&ro(!0),a}var og=new Map;function sg(t){var e=og.get(t.nodeName);if(e)return e;og.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var r in i)i[r].set&&e.push(r);o=ds(o)}return e}function f$(t,e,i){var o;ze&&(e==="srcset"&&m$(t,i)||zf((o=t.getAttribute(e))!=null?o:"",i)||uv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zf(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ng(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function m$(t,e){var i=ng(t.srcset),o=ng(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(zf(i[l][0],n)||zf(n,i[l][0])))}function jo(t,e,i){var o=t.__className,n=v$(e,i);st&&t.className===n?t.__className=n:(o!==n||st&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function v$(t,e){return(t==null?"":t)+(e?" "+e:"")}function re(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 g$=Gd?()=>performance.now():()=>Date.now(),Rr={tick:t=>(Gd?requestAnimationFrame:Wt)(t),now:()=>g$(),tasks:new Set};function ag(){let t=Rr.now();Rr.tasks.forEach(e=>{e.c(t)||(Rr.tasks.delete(e),e.f())}),Rr.tasks.size!==0&&Rr.tick(ag)}function lg(t){let e;return Rr.tasks.size===0&&Rr.tick(ag),{promise:new Promise(i=>{Rr.tasks.add(e={c:t,f:i})}),abort(){Rr.tasks.delete(e)}}}function hc(t,e){t.dispatchEvent(new CustomEvent(e))}function b$(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function dg(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=b$(n.trim());e[l]=r.trim()}return e}var y$=t=>t;function qf(t,e,i,o){var V;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",c,f=e.inert,g=e.style.overflow,m,h;function _(){var U;var N=qt,T=It;po(null),Di(null);try{return c!=null?c:c=i()(e,(U=o==null?void 0:o())!=null?U:{},{direction:a})}finally{po(N),Di(T)}}var y={is_global:d,in(){var N;if(e.inert=f,!n){h==null||h.abort(),(N=h==null?void 0:h.reset)==null||N.call(h);return}r||m==null||m.abort(),hc(e,"introstart"),m=Wf(e,_(),h,1,()=>{hc(e,"introend"),m==null||m.abort(),m=c=void 0,e.style.overflow=g})},out(N){if(!r){N==null||N(),c=void 0;return}e.inert=!0,hc(e,"outrostart"),h=Wf(e,_(),m,0,()=>{hc(e,"outroend"),N==null||N()})},stop:()=>{m==null||m.abort(),h==null||h.abort()}},S=It;if(((V=S.transitions)!=null?V:S.transitions=[]).push(y),n&&sd){var L=d;if(!L){for(var B=S.parent;B&&B.f&65536;)for(;(B=B.parent)&&!(B.f&16););L=!B||(B.f&32768)!==0}L&&sn(()=>{Tt(()=>y.in())})}}function Wf(t,e,i,o,n){var r=o===1;if(Ps(e)){var l,d=!1;return Wo(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Wf(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:Wt,deactivate:Wt,reset:Wt,t:()=>o};let{delay:a=0,css:c,tick:f,easing:g=y$}=e;var m=[];if(r&&i===void 0&&(f&&f(0,1),c)){var h=dg(c(0,1));m.push(h,h)}var _=()=>1-o,y=t.animate(m,{duration:a});return y.onfinish=()=>{var G;var S=(G=i==null?void 0:i.t())!=null?G:1-o;i==null||i.abort();var L=o-S,B=e.duration*Math.abs(L),V=[];if(B>0){var N=!1;if(c)for(var T=Math.ceil(B/16.666666666666668),U=0;U<=T;U+=1){var K=S+L*g(U/T),H=dg(c(K,1-K));V.push(H),N||(N=H.overflow==="hidden")}N&&(t.style.overflow="hidden"),_=()=>{var J=y.currentTime;return S+L*g(J/B)},f&&lg(()=>{if(y.playState!=="running")return!1;var J=_();return f(J,1-J),!0})}y=t.animate(V,{duration:B,fill:"forwards"}),y.onfinish=()=>{_=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=Wt)},deactivate:()=>{n=Wt},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>_()}}var Rs,Za,ud,$c,cg,bc=class bc{constructor(e){Es(this,$c);Es(this,Rs,new WeakMap);Es(this,Za);Es(this,ud);Pa(this,ud,e)}observe(e,i){var o=Pi(this,Rs).get(e)||new Set;return o.add(i),Pi(this,Rs).set(e,o),Bm(this,$c,cg).call(this).observe(e,Pi(this,ud)),()=>{var n=Pi(this,Rs).get(e);n.delete(i),n.size===0&&(Pi(this,Rs).delete(e),Pi(this,Za).unobserve(e))}}};Rs=new WeakMap,Za=new WeakMap,ud=new WeakMap,$c=new WeakSet,cg=function(){var e;return(e=Pi(this,Za))!=null?e:Pa(this,Za,new ResizeObserver(i=>{for(var o of i){bc.entries.set(o.target,o);for(var n of Pi(this,Rs).get(o.target)||[])n(o)}}))},Tn(bc,"entries",new WeakMap);var Kf=bc;var C$=new Kf({box:"border-box"});function Xr(t,e,i){var o=C$.observe(t,()=>i(t[e]));sn(()=>(Tt(()=>i(t[e])),o))}function ug(t,e){return t===e||(t==null?void 0:t[Lo])===e}function xt(t={},e,i,o){return sn(()=>{var n,r;return xo(()=>{n=r,r=(o==null?void 0:o())||[],Tt(()=>{t!==i(...r)&&(e(t,...r),n&&ug(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{r&&ug(i(...r),t)&&e(null,...r)})}}),t}function Nr(t=!1){let e=Vt,i=e.l.u;if(!i)return;let o=()=>dc(e.s);if(t){let n=0,r={},l=$(()=>{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&&Va(()=>{pg(e,o),As(i.b)}),rt(()=>{let n=Tt(()=>i.m.map(zm));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&rt(()=>{pg(e,o),As(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])}if(ze){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;ov(e)},set:o=>{i=o}})}};T$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var T$;function Kt(t){Vt===null&&Ra("onMount"),Qr&&Vt.l!==null?S$(Vt).m.push(t):rt(()=>{let e=Tt(t);if(typeof e=="function")return e})}function ar(t){Vt===null&&Ra("onDestroy"),Kt(()=>()=>Tt(t))}function S$(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function pd(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Wt;let o=Tt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Xa=[];function lr(t,e){return{subscribe:Se(t,e).subscribe}}function Se(t,e=Wt){let i=null,o=new Set;function n(d){if(Aa(t,d)&&(t=d,i)){let a=!Xa.length;for(let c of o)c[1](),Xa.push(c,t);if(a){for(let c=0;c<Xa.length;c+=2)Xa[c][0](Xa[c+1]);Xa.length=0}}}function r(d){n(d(t))}function l(d,a=Wt){let c=[d,a];return o.add(c),o.size===1&&(i=e(n,r)||Wt),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function mi(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 lr(i,(l,d)=>{let a=!1,c=[],f=0,g=Wt,m=()=>{if(f)return;g();let _=e(o?c[0]:c,l,d);r?l(_):g=typeof _=="function"?_:Wt},h=n.map((_,y)=>pd(_,S=>{c[y]=S,f&=~(1<<y),a&&m()},()=>{f|=1<<y}));return a=!0,m(),function(){As(h),g(),a=!1}})}function Ne(t){let e;return pd(t,i=>e=i)(),e}var yc=!1,Qf=Symbol();function I(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:ps(void 0),unsubscribe:Wt};if(o.store!==t&&!(Qf in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=Wt;else{var n=!0;o.unsubscribe=pd(t,l=>{n?o.source.v=l:Y(o.source,l)}),n=!1}return t&&Qf in i?Ne(t):s(o.source)}function Xe(){let t={};function e(){Mn(()=>{for(var i in t)t[i].unsubscribe();oo(t,Qf,{enumerable:!1,value:!0})})}return[t,e]}function Gf(t){var e=yc;try{return yc=!1,[t(),yc]}finally{yc=e}}var A$={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),ec(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),ec(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 Ue(t,e){return new Proxy({props:t,exclude:e,special:{},version:Oi(0)},A$)}var M$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ps(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];Ps(n)&&(n=n());let r=In(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(Ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=In(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Ql)return!1;for(let i of t.props)if(Ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function hs(...t){return new Proxy({props:t},M$)}function fg(t){for(var e=It,i=It;e!==null&&!(e.f&96);)e=e.parent;try{return Di(e),t()}finally{Di(i)}}function p(t,e,i,o){var K,H;var n=(i&1)!==0,r=!Qr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,c;l?[c,a]=Gf(()=>t[e]):c=t[e];var f=Lo in t||Ql in t,g=l&&((H=(K=In(t,e))==null?void 0:K.set)!=null?H:f&&e in t&&(G=>t[e]=G))||void 0,m=o,h=!0,_=!1,y=()=>(_=!0,h&&(h=!1,d?m=Tt(o):m=o),m);c===void 0&&o!==void 0&&(g&&r&&iv(e),c=y(),g&&g(c));var S;if(r)S=()=>{var G=t[e];return G===void 0?y():(h=!0,_=!1,G)};else{var L=fg(()=>(n?$:Lr)(()=>t[e]));L.f|=131072,S=()=>{var G=s(L);return G!==void 0&&(m=void 0),G===void 0?m:G}}if(!(i&4))return S;if(g){var B=t.$$legacy;return function(G,J){return arguments.length>0?((!r||!J||B||a)&&g(J?S():G),G):S()}}var V=!1,N=!1,T=ps(c),U=fg(()=>$(()=>{var G=S(),J=s(T);return V?(V=!1,N=!0,J):(N=!1,T.v=G)}));return n||(U.equals=Ma),function(G,J){if(jl!==null&&(V=N,S(),s(T)),arguments.length>0){let de=J?s(U):r&&l?Ae(G):G;return U.equals(de)||(V=!0,Y(T,de),_&&m!==void 0&&(m=de),Tt(()=>s(U))),G}return s(U)}}var L$;typeof HTMLElement=="function"&&(L$=class extends HTMLElement{constructor(e,i,o){super();Tn(this,"$$ctor");Tn(this,"$$s");Tn(this,"$$c");Tn(this,"$$cn",!1);Tn(this,"$$d",{});Tn(this,"$$r",!1);Tn(this,"$$p_d",{});Tn(this,"$$l",{});Tn(this,"$$l_u",new Map);Tn(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=V$(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]=Yf(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=k({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=pc(()=>{xo(()=>{var r;this.$$r=!0;for(let l of rf(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Yf(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]=Yf(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 rf(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Yf(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 V$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{clientChecker as Gx}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as Up,safeStorage as Yx,throttleFn as jx}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as Zx}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as N$,fillWithDefault as B$,VideoQuality as vg}from"@vkontakte/videoplayer-shared/es2018";var D$={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:N$.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:vg.Q_480P,highQualityLimit:vg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,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,slots:!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,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!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,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},gg=t=>B$(t,D$),hg=t=>Ba("ui-config",t),Xt=()=>Na("ui-config");var fd="vk_player_debug_panel_opened";var _g="videoplayer",$g="videoplayer";var Jr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},bg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),yg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),xg=new Set(["ShiftRight","ShiftLeft"]);var wg=["TIMELINE"],md=[...wg,"GRAPH_BUTTON"],jf=[...wg,"PLAY_BUTTON"],vd=[...md,"PLAY_BUTTON"];var es=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(es||{}),pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Cg,VERSION as O$}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as H$}from"@vkontakte/videoplayer-core/es2018";import{VERSION as F$}from"@vkontakte/videoplayer-statistics/es2018";var xc="prod",Ja="1.1.59-dev.5ccf8bf2.0";var fa=(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)=>{Ba(Sg,t),Ba(Tg,e),xc==="dev"&&(window.app={store:t,microStores:e})},He=()=>{let t=Na(Sg);return Cg(t,"Store context is empty!"),t},Co=()=>{let t=Na(Tg);return Cg(t,"MicroStores context is empty!"),t},ii=(t,e)=>Cc(t,t.getValue(),e),Cc=(t,e,i)=>lr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),kg=(t,e,i)=>{var L,B,V,N,T,U;let o=t.info,{width:n,height:r}=Ne(i.ui.playerSize),l=(B=(L=o.throughputEstimation$.getValue())==null?void 0:L.toFixed(0))!=null?B:0,d=(N=(V=o.rttEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?N:0,a=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ja} (core: ${H$}, stat: ${F$}, shared: ${O$})`,f=Ne(i.state.errorLog$),g=f.length?`
46
46
  `+f.map((K,H)=>{var te;let G=`${H}) Type: ${K.id}
47
47
  `,J=`Message: ${K.message} (${K.thrown})
48
48
  `,de=`Trace: ${(te=K.thrown)==null?void 0:te.stack}