@vkontakte/videoplayer 1.1.63-beta.2 → 1.1.64-dev.3efb4d41.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/esnext.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.63-beta.2
3
- * Mon, 02 Jun 2025 14:19:50 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-63/doc/
2
+ * @vkontakte/videoplayer v1.1.64-dev.3efb4d41.0
3
+ * Thu, 05 Jun 2025 11:40:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
6
  "use strict";var V1=Object.create;var Gd=Object.defineProperty;var R1=Object.getOwnPropertyDescriptor;var N1=Object.getOwnPropertyNames;var D1=Object.getPrototypeOf,B1=Object.prototype.hasOwnProperty;var O1=(t,e)=>{for(var i in e)Gd(t,i,{get:e[i],enumerable:!0})},Wm=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of N1(e))!B1.call(t,n)&&n!==i&&Gd(t,n,{get:()=>e[n],enumerable:!(o=R1(e,n))||o.enumerable});return t};var Km=(t,e,i)=>(i=t!=null?V1(D1(t)):{},Wm(e||!t||!t.__esModule?Gd(i,"default",{value:t,enumerable:!0}):i,t)),H1=t=>Wm(Gd({},"__esModule",{value:!0}),t);var W3={};O1(W3,{ControlButtonType:()=>cd,GridTypes:()=>mr,InterfaceLanguage:()=>ll.InterfaceLanguage,MenuItemType:()=>Qs,PlayerPhase:()=>Lr,VERSION:()=>Ha,VKNumericLanguage:()=>ll.VKNumericLanguage,VideoFormat:()=>hu.VideoFormat,VideoQuality:()=>hu.VideoQuality,loadVKLangPack:()=>ll.loadVKLangPack,registerPlayerWebComponent:()=>q3});module.exports=H1(W3);var ea="[",xa="[!",wa="]",Br={};var gi=Symbol(),ri=Symbol("filename"),Qm=Symbol("hmr"),Gm="http://www.w3.org/1999/xhtml",wu="http://www.w3.org/2000/svg";var jd=!0;var jm=globalThis.process?.env?.NODE_ENV,ke=jm&&!jm.toLowerCase().startsWith("prod");var yo=Symbol("$state"),Or=Symbol("$state metadata"),ml=Symbol("legacy props"),Ym=Symbol("");var sr=Array.isArray,Zm=Array.prototype.indexOf,vl=Array.from,Su=Object.keys,Ui=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Yd=Object.getOwnPropertyDescriptors,Cu=Object.prototype,Xm=Array.prototype,Hr=Object.getPrototypeOf;function ta(t){return typeof t=="function"}var te=()=>{};function Jm(t){return t()}function ia(t){for(var e=0;e<t.length;e++)t[e]()}var gl=[],ku=[];function ev(){var t=gl;gl=[],ia(t)}function F1(){var t=ku;ku=[],ia(t)}function Ro(t){gl.length===0&&queueMicrotask(ev),gl.push(t)}function Tu(){gl.length>0&&ev(),ku.length>0&&F1()}function Zd(t){return t===this.v}function bs(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function tv(t,e){return t!==e}function $s(t){return!bs(t,this.v)}function iv(){if(ke){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -45,7 +45,7 @@ ${l}in ${u}`).join("")}
45
45
  `)){let o=X1.exec(i)??J1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function Uv(){let t=e0()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=Z1[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var pc=Symbol("ADD_OWNER");function Ku(t,e,i=!1,o=!1){if(t&&!i){let n=Fo,a=t[Or];if(a&&!Qu(a,n)){let s=Gu(a);e&&e[ri]!==n[ri]&&!o&&Sv(n[ri],e[ri],s[ri])}}fc(t,e,new Set)}function Nu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function fc(t,e,i){let o=t?.[Or];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),pc in t&&t[pc])to(()=>{t[pc](e)});else{var n=Hr(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=gi;to(()=>{let d=t[a];s!==d&&(s=d,fc(d,e,i))})}else fc(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)fc(t[a],e,i)}}}function Qu(t,e){return t.owners===null?!0:t.owners.has(e)||ri in e&&[...t.owners].some(i=>i[ri]===e[ri])||t.parent!==null&&Qu(t.parent,e)}function Gu(t){return t?.owners?.values().next().value??Gu(t.parent)}var t0=!1;function kv(t){if(t0)return;let e=Uv();if(e&&!Qu(t,e)){let i=Gu(t);i[ri]!==e[ri]?Ru(e[ri],i[ri]):Ru()}}function Ps(t){if(ke){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
47
  https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Tt=null;function kl(t){Tt=t}var Fo=null;function Tl(t){Fo=t}function As(t){return ju("getContext").get(t)}function Ms(t,e){let i=ju("setContext");return ke&&vt(()=>Ku(e,null,!0)),i.set(t,e),e}function El(){return ju("getAllContexts")}function H(t,e=!1,i){var o=Tt={p:Tt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Tr&&!e&&(Tt.l={s:null,u:null,r1:[],r2:Ei(!1)}),Uo(()=>{o.d=!0}),ke&&(Tt.function=i,Fo=i)}function F(t){let e=Tt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=bt,o=Lt;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];zi(a.effect),Ji(a.reaction),sn(a.fn)}}finally{zi(i),Ji(o)}}Tt=e.p,ke&&(Fo=e.p?.function??null),e.m=!0}return t||{}}function Er(){return!Tr||Tt!==null&&Tt.l===null}function ju(t){return Tt===null&&Ps(t),Tt.c??=new Map(o0(Tt)||void 0)}function o0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var n0=/\r/g;function zv(t){t=t.replace(n0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function qv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var r0=["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 r0.includes(t)}var a0=["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 s0={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 Kv(t){return t=t.toLowerCase(),s0[t]??t}var W5=[...a0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var l0=["touchstart","touchmove"];function Qv(t){return l0.includes(t)}var d0=["textarea","script","style","title"];function Gv(t){return d0.includes(t)}function Yu(t){return t?.replace(/\//g,"/\u200B")}var jv=new Map;function Yv(t,e){var i=jv.get(t);i||(i=new Set,jv.set(t,i)),i.add(e)}function Zu(t,e){if(e){let i=document.body;t.autofocus=!0,Ro(()=>{document.activeElement===i&&t.focus()})}}function Pl(t){var e=Lt,i=bt;Ji(null),zi(null);try{return t()}finally{Ji(e),zi(i)}}var Xu=new Set,mc=new Set;function La(t){if(!Ge)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 Ju(t,e,i,o={}){function n(a){if(o.capture||Ls.call(e,a),!a.cancelBubble)return Pl(()=>i?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ro(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function _t(t,e,i,o,n){var a={capture:o,passive:n},s=Ju(t,e,i,a);(e===document.body||e===window||e===document)&&Uo(()=>{e.removeEventListener(t,s,a)})}function ot(t){for(var e=0;e<t.length;e++)Xu.add(t[e]);for(var i of mc)i(t)}function Ls(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;l<=c&&(s=l)}if(a=n[s]||t.target,a!==e){Ui(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=Lt,b=bt;Ji(null),zi(null);try{for(var p,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var x=a["__"+o];if(x!=null&&(!a.disabled||t.target===a))if(sr(x)){var[k,...C]=x;k.apply(a,[t,...C])}else x.call(a,t)}catch(E){p?$.push(E):p=E}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let E of $)queueMicrotask(()=>{throw E});throw p}}finally{t.__root=e,delete t.currentTarget,Ji(u),zi(b)}}}var u0;function Zv(){u0=void 0}function Vs(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function io(t,e){var i=bt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ge)return io(dt,null),dt;n===void 0&&(n=Vs(a?t:"<!>"+t),i||(n=si(n)));var s=o||$l?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=si(s),l=s.lastChild;io(d,l)}else io(s,s);return s}}function ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ge)return io(dt,null),dt;if(!s){var d=Vs(a),l=si(d);if(n)for(s=document.createDocumentFragment();si(l);)s.appendChild(si(l));else s=si(l)}var c=s.cloneNode(!0);if(n){var u=si(c),b=c.lastChild;io(u,b)}else io(c,c);return c}}function Pr(t=""){if(!Ge){var e=Oo(t+"");return io(e,e),e}var i=dt;return i.nodeType!==3&&(i.before(i=Oo()),ai(i)),io(i,i),i}function Be(){if(Ge)return io(dt,null),dt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Oo();return t.append(e,i),io(e,i),t}function _(t,e){if(Ge){bt.nodes_end=dt,wi();return}t!==null&&t.before(e)}var Al=!0;function vc(t){Al=t}function ue(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Kr(t,e){return Jv(t,e)}function tp(t,e){ic(),e.intro=e.intro??!1;let i=e.target,o=Ge,n=dt;try{for(var a=si(i);a&&(a.nodeType!==8||a.data!==ea);)a=po(a);if(!a)throw Br;Wi(!0),ai(a),wi();let s=Jv(t,{...e,anchor:a});if(dt===null||dt.nodeType!==8||dt.data!==wa)throw Ea(),Br;return Wi(!1),s}catch(s){if(s===Br)return e.recover===!1&&sv(),ic(),yl(i),Wi(!1),Kr(t,e);throw s}finally{Wi(o),ai(n),Zv()}}var Rs=new Map;function Jv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){ic();var d=new Set,l=b=>{for(var p=0;p<b.length;p++){var $=b[p];if(!d.has($)){d.add($);var w=Qv($);e.addEventListener($,Ls,{passive:w});var x=Rs.get($);x===void 0?(document.addEventListener($,Ls,{passive:w}),Rs.set($,1)):Rs.set($,x+1)}}};l(vl(Xu)),mc.add(l);var c=void 0,u=Hv(()=>{var b=i??e.appendChild(Oo());return Pi(()=>{if(a){H({});var p=Tt;p.c=a}n&&(o.$$events=n),Ge&&io(b,null),Al=s,c=t(b,o)||{},Al=!0,Ge&&(bt.nodes_end=dt),a&&F()}),()=>{for(var p of d){e.removeEventListener(p,Ls);var $=Rs.get(p);--$===0?(document.removeEventListener(p,Ls),Rs.delete(p)):Rs.set(p,$)}mc.delete(l),b!==i&&b.parentNode?.removeChild(b)}});return ep.set(c,u),c}var ep=new WeakMap;function Va(t,e){let i=ep.get(t);return i?(ep.delete(t),i(e)):(ke&&wv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Ge&&i===0&&wi();var n=t,a=null,s=null,d=gi,l=i>0?65536:0,c=!1;let u=(p,$=!0)=>{c=!0,b($,p)},b=(p,$)=>{if(d===(d=p))return;let w=!1;if(Ge&&o!==-1){if(i===0){let k=n.data;k===ea?o=0:k===xa?o=1/0:(o=parseInt(k.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=Cs(),ai(n),Wi(!1),w=!0,o=-1)}d?(a?Wr(a):$&&(a=Pi(()=>$(n))),s&&ln(s,()=>{s=null})):(s?Wr(s):$&&(s=Pi(()=>$(n,[i+1,o]))),a&&ln(a,()=>{a=null})),w&&Wi(!0)};Ki(()=>{c=!1,e(u),c||b(null,null)},l),Ge&&(n=dt)}function Ra(t,e,i){Ge&&wi();var o=t,n=gi,a,s=Er()?tv:bs;Ki(()=>{s(n,n=e())&&(a&&ln(a),a=Pi(()=>i(o)))}),Ge&&(o=dt)}var ra=null;function np(t){ra=t}function Ml(t,e){return e}function v0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)uc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;yl(l),l.append(i),o.clear(),na(t,e[0].prev,e[a-1].next)}Wu(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),na(t,u.prev,u.next)),qi(u.e,!d)}})}function ui(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var c=t;s=Ge?ai(si(c)):c.appendChild(Oo())}Ge&&wi();var u=null,b=!1,p=cr(()=>{var $=i();return sr($)?$:$==null?[]:vl($)});Ki(()=>{var $=r(p),w=$.length;if(b&&w===0)return;b=w===0;let x=!1;if(Ge){var k=s.data===xa;k!==(w===0)&&(s=Cs(),ai(s),Wi(!1),x=!0)}if(Ge){for(var C=null,E,A=0;A<w;A++){if(dt.nodeType===8&&dt.data===wa){s=dt,x=!0,Wi(!1);break}var L=$[A],I=o(L,A);E=ig(dt,d,C,null,L,I,A,n,e,i),d.items.set(I,E),C=E}w>0&&ai(Cs())}Ge||g0($,d,s,n,e,o,i),a!==null&&(w===0?u?Wr(u):u=Pi(()=>a(s)):u!==null&&ln(u,()=>{u=null})),x&&Wi(!0),r(p)}),Ge&&(s=dt)}function g0(t,e,i,o,n,a,s){var d=(n&8)!==0,l=(n&3)!==0,c=t.length,u=e.items,b=e.first,p=b,$,w=null,x,k=[],C=[],E,A,L,I;if(d)for(I=0;I<c;I+=1)E=t[I],A=a(E,I),L=u.get(A),L!==void 0&&(L.a?.measure(),(x??=new Set).add(L));for(I=0;I<c;I+=1){if(E=t[I],A=a(E,I),L=u.get(A),L===void 0){var N=p?p.e.nodes_start:i;w=ig(N,e,w,w===null?e.first:w.next,E,A,I,o,n,s),u.set(A,w),k=[],C=[],p=w.next;continue}if(l&&h0(L,E,I,n),(L.e.f&8192)!==0&&(Wr(L.e),d&&(L.a?.unfix(),(x??=new Set).delete(L))),L!==p){if($!==void 0&&$.has(L)){if(k.length<C.length){var W=C[0],Q;w=W.prev;var j=k[0],re=k[k.length-1];for(Q=0;Q<k.length;Q+=1)eg(k[Q],W,i);for(Q=0;Q<C.length;Q+=1)$.delete(C[Q]);na(e,j.prev,re.next),na(e,w,j),na(e,re,W),p=W,w=re,I-=1,k=[],C=[]}else $.delete(L),eg(L,p,i),na(e,L.prev,L.next),na(e,L,w===null?e.first:w.next),na(e,w,L),w=L;continue}for(k=[],C=[];p!==null&&p.k!==A;)(p.e.f&8192)===0&&($??=new Set).add(p),C.push(p),p=p.next;if(p===null)continue;L=p}k.push(L),w=L,p=L.next}if(p!==null||$!==void 0){for(var ce=$===void 0?[]:vl($);p!==null;)(p.e.f&8192)===0&&ce.push(p),p=p.next;var X=ce.length;if(X>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(I=0;I<X;I+=1)ce[I].a?.measure();for(I=0;I<X;I+=1)ce[I].a?.fix()}v0(e,ce,ge,u)}}d&&Ro(()=>{if(x!==void 0)for(L of x)L.a?.apply()}),bt.first=e.first&&e.first.e,bt.last=w&&w.e}function h0(t,e,i,o){(o&1)!==0&&xs(t.v,e),(o&2)!==0?xs(t.i,i):t.i=i}function ig(t,e,i,o,n,a,s,d,l,c){var u=ra,b=(l&1)!==0,p=(l&16)===0,$=b?p?zr(n):Ei(n):n,w=(l&2)===0?s:Ei(s);ke&&b&&($.debug=()=>{var k=typeof w=="number"?s:w.v;c()[k]});var x={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};ra=x;try{return x.e=Pi(()=>d(t,$,w,c),Ge),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{ra=u}}function eg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=po(a);n.before(a),a=s}}function na(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 _0(t,e,i){if(!e||e===zv(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Fo?.[ri]&&(o=`in ${Fo[ri]}`),xv(Yu(o))}function Ll(t,e,i,o,n){var a=t,s="",d;Ki(()=>{if(s===(s=e()??"")){Ge&&wi();return}d!==void 0&&(qi(d),d=void 0),s!==""&&(d=Pi(()=>{if(Ge){for(var l=dt.data,c=wi(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=po(c);if(c===null)throw Ea(),Br;ke&&!n&&_0(c.parentNode,l,s),io(dt,u),a=ai(c);return}var b=s+"";i?b=`<svg>${b}</svg>`:o&&(b=`<math>${b}</math>`);var p=Vs(b);if((i||o)&&(p=si(p)),io(si(p),p.lastChild),i||o)for(;si(p);)a.before(si(p));else a.before(p)}))})}function pe(t,e,...i){var o=t,n=te,a;Ki(()=>{n!==(n=e())&&(a&&(qi(a),a=null),ke&&n==null&&lv(),a=Pi(()=>n(o,...i)))},65536),Ge&&(o=dt)}function pi(t,e,i){Ge&&wi();var o=t,n,a;Ki(()=>{n!==(n=e())&&(a&&(ln(a),a=null),n&&(a=Pi(()=>i(o,n))))},65536),Ge&&(o=dt)}function Na(t,e,i,o,n,a){let s=Ge;Ge&&wi();var d=ke&&a&&Tt?.function[ri],l,c,u=null;Ge&&dt.nodeType===1&&(u=dt,wi());var b=Ge?dt:t,p,$=ra;Ki(()=>{let w=e()||null;var x=n?n():i||w==="svg"?wu:null;if(w!==l){var k=ra;np($),p&&(w===null?ln(p,()=>{p=null,c=null}):w===c?Wr(p):(qi(p),vc(!1))),w&&w!==c&&(p=Pi(()=>{if(u=Ge?u:x?document.createElementNS(x,w):document.createElement(w),ke&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),io(u,u),o){Ge&&Gv(w)&&u.append(document.createComment(""));var C=Ge?si(u):u.appendChild(Oo());Ge&&(C===null?Wi(!1):ai(C)),o(u,C)}bt.nodes_end=u,b.before(u)})),l=w,l&&(c=l),vc(!0),np(k)}},65536),s&&(Wi(!0),ai(b))}var ap;function og(t){return ap=t.target,new rp(t)}var rp=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=zr(s);return i.set(a,d),d};let n=new Proxy({...e.props||{},$$events:{}},{get(a,s){return r(i.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===ml?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return D(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?tp:Kr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Is(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Ui(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(n,a)},this.#e.$destroy=()=>{Va(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};function z(t,e){Ro(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??ap?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),ke&&Yv(e.hash,n)}})}function ng(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=ng(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=ng(t))&&(o&&(o+=" "),o+=e);return o}function Vl(t){return typeof t=="object"?rg(t):t??""}var ag=[...`
48
- \r\f\xA0\v\uFEFF`];function lg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||ag.includes(o[s-1]))&&(d===o.length||ag.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function sg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function sp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(sp)),n&&l.push(...Object.keys(n).map(sp));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=sp(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=sg(o)),n&&(i+=sg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=lg(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function lp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function tt(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=dg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(lp(t,i?.[0],o[0]),lp(t,i?.[1],o[1],"important")):lp(t,i,o));return o}var Ns=Symbol("class"),Ds=Symbol("style"),pg=Symbol("is custom element"),fg=Symbol("is html");function mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=vg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||C0(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ym]=i),i==null?t.removeAttribute(e):typeof i!="string"&&gg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $e(t,e,i,o,n=!1){var a=vg(t),s=a[pg],d=!a[fg];let l=Ge&&s;l&&Wi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=Vl(i.class):(o||i[Ns])&&(i.class=null),i[Ds]&&(i.style??=null);var p=gg(t);for(let L in i){let I=i[L];if(u&&L==="value"&&I==null){t.value=t.__value="",c[L]=I;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,I,o,e?.[Ns],i[Ns]),c[L]=I,c[Ns]=i[Ns];continue}if(L==="style"){tt(t,I,e?.[Ds],i[Ds]),c[L]=I,c[Ds]=i[Ds];continue}var w=c[L];if(I!==w){c[L]=I;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,Q=L.slice(2);var k=Wv(Q);if(qv(Q)&&(Q=Q.slice(0,-7),N.capture=!0),!k&&w){if(I!=null)continue;t.removeEventListener(Q,c[W],N),c[W]=null}if(I!=null)if(k)t[`__${Q}`]=I,ot([Q]);else{let j=function(re){c[L].call(this,re)};var A=j;c[W]=Ju(Q,t,j,N)}else k&&(t[`__${Q}`]=void 0)}else if(L==="style")De(t,L,I);else if(L==="autofocus")Zu(t,!!I);else if(!s&&(L==="__value"||L==="value"&&I!=null))t.value=t.__value=I;else if(L==="selected"&&u)mg(t,I);else{var C=L;d||(C=Kv(C));var E=C==="defaultValue"||C==="defaultChecked";if(I==null&&!s&&!E)if(a[L]=null,C==="value"||C==="checked"){let N=t,W=e===void 0;if(C==="value"){let Q=N.defaultValue;N.removeAttribute(C),N.defaultValue=Q,N.value=N.__value=W?Q:null}else{let Q=N.defaultChecked;N.removeAttribute(C),N.defaultChecked=Q,N.checked=W?Q:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(s||typeof I!="string")?t[C]=I:typeof I!="function"&&De(t,C,I,n)}}}return l&&Wi(!0),c}function vg(t){return t.__attributes??={[pg]:t.nodeName.includes("-"),[fg]:t.namespaceURI===Gm}}var cg=new Map;function gg(t){var e=cg.get(t.nodeName);if(e)return e;cg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var a in i)i[a].set&&e.push(a);o=Hr(o)}return e}function C0(t,e,i){ke&&(e==="srcset"&&k0(t,i)||dp(t.getAttribute(e)??"",i)||yv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function dp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function k0(t,e){var i=ug(t.srcset),o=ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(dp(i[s][0],n)||dp(n,i[s][0])))}var T0=jd?()=>performance.now():()=>Date.now(),pr={tick:t=>(jd?requestAnimationFrame:te)(t),now:()=>T0(),tasks:new Set};function hg(){let t=pr.now();pr.tasks.forEach(e=>{e.c(t)||(pr.tasks.delete(e),e.f())}),pr.tasks.size!==0&&pr.tick(hg)}function _g(t){let e;return pr.tasks.size===0&&pr.tick(hg),{promise:new Promise(i=>{pr.tasks.add(e={c:t,f:i})}),abort(){pr.tasks.delete(e)}}}function gc(t,e){Pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function A0(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 bg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=A0(n.trim());e[s]=a.trim()}return e}var M0=t=>t;function up(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var A=Lt,L=bt;Ji(null),zi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{Ji(A),zi(L)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),gc(e,"introstart"),p=cp(e,w(),$,1,()=>{gc(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,gc(e,"outrostart"),$=cp(e,w(),p,0,()=>{gc(e,"outroend"),A?.()})},stop:()=>{p?.abort(),$?.abort()}},k=bt;if((k.transitions??=[]).push(x),n&&Al){var C=d;if(!C){for(var E=k.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&sn(()=>{vt(()=>x.in())})}}function cp(t,e,i,o,n){var a=o===1;if(ta(e)){var s,d=!1;return Ro(()=>{if(!d){var k=e({direction:a?"in":"out"});s=cp(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=M0}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=bg(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var C=o-k,E=e.duration*Math.abs(C),A=[];if(E>0){var L=!1;if(c)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var W=k+C*b(N/I),Q=bg(c(W,1-W));A.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var j=x.currentTime;return k+C*b(j/E)},u&&_g(()=>{if(x.playState!=="running")return!1;var j=w();return u(j,1-j),!0})}x=t.animate(A,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var pp=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var R0=new pp({box:"border-box"});function Ar(t,e,i){var o=R0.observe(t,()=>i(t[e]));sn(()=>(vt(()=>i(t[e])),o))}function $g(t,e){return t===e||t?.[yo]===e}function st(t={},e,i,o){return sn(()=>{var n,a;return to(()=>{n=a,a=o?.()||[],vt(()=>{t!==i(...a)&&(e(t,...a),n&&$g(i(...n),t)&&e(null,...n))})}),()=>{Ro(()=>{a&&$g(i(...a),t)&&e(null,...a)})}}),t}function fr(t=!1){let e=Tt,i=e.l.u;if(!i)return;let o=()=>lc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Es(()=>{yg(e,o),ia(i.b)}),He(()=>{let n=vt(()=>i.m.map(Jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{yg(e,o),ia(i.a)})}function yg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;uv(e)},set:o=>{i=o}})}};D0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var D0;function Vt(t){Tt===null&&Ps("onMount"),Tr&&Tt.l!==null?N0(Tt).m.push(t):He(()=>{let e=vt(t);if(typeof e=="function")return e})}function dn(t){Tt===null&&Ps("onDestroy"),Vt(()=>()=>vt(t))}function N0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function Rl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=vt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Bs=[];function Gn(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=te){let i=null,o=new Set;function n(d){if(bs(t,d)&&(t=d,i)){let l=!Bs.length;for(let c of o)c[1](),Bs.push(c,t);if(l){for(let c=0;c<Bs.length;c+=2)Bs[c][0](Bs[c+1]);Bs.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function li(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 a=e.length<2;return Gn(i,(s,d)=>{let l=!1,c=[],u=0,b=te,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:te},$=n.map((w,x)=>Rl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){ia($),b(),l=!1}})}function _e(t){let e;return Rl(t,i=>e=i)(),e}var _c=!1,fp=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:zr(void 0),unsubscribe:te};if(o.store!==t&&!(fp in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=Rl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&fp in i?_e(t):r(o.source)}function Le(){let t={};function e(){Uo(()=>{for(var i in t)t[i].unsubscribe();Ui(t,fp,{enumerable:!1,value:!0})})}return[t,e]}function mp(t){var e=_c;try{return _c=!1,[t(),_c]}finally{_c=e}}var q0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&cv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},q0)}var W0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(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];ta(n)&&(n=n());let a=kn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=kn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===yo||e===ml)return!1;for(let i of t.props)if(ta(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ta(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Qr(...t){return new Proxy({props:t},W0)}function xg(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Tr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=mp(()=>t[e]):c=t[e];var u=yo in t||ml in t,b=s&&(kn(t,e)?.set??(u&&e in t&&(W=>t[e]=W)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=vt(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&dv(e),c=x(),b&&b(c));var k;if(a)k=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var C=(n?v:cr)(()=>t[e]);C.f|=131072,k=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0)return k;if(b){var E=t.$$legacy;return function(W,Q){return arguments.length>0?((!a||!Q||E||l)&&b(Q?k():W),W):k()}}var A=!1,L=!1,I=zr(c),N=v(()=>{var W=k(),Q=r(I);return A?(A=!1,L=!0,Q):(L=!1,I.v=W)});return s&&r(N),n||(N.equals=$s),function(W,Q){if(_l!==null&&(A=L,k(),r(I)),arguments.length>0){let j=Q?r(N):a&&s?le(W):W;if(!N.equals(j)){if(A=!0,D(I,j),w&&p!==void 0&&(p=j),xg(N))return W;vt(()=>r(N))}return W}return xg(N)?N.v:r(N)}}var K0;typeof HTMLElement=="function"&&(K0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=Q0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=vp(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=og({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=cc(()=>{to(()=>{this.$$r=!0;for(let n of Su(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=vp(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=vp(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Su(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function vp(t,e,i,o){let n=i[t]?.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;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 Q0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wg="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(wg);var au=require("@vkontakte/videoplayer-core"),eQ=require("@vkontakte/videoplayer-core"),ps=require("@vkontakte/videoplayer-shared"),$1=require("@vkontakte/videoplayer-statistics");var Da=require("@vkontakte/videoplayer-shared");var j0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Da.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:Da.VideoQuality.Q_480P,highQualityLimit:Da.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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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}},Sg=t=>(0,Da.fillWithDefault)(t,j0),Cg=t=>Ms("ui-config",t),Rt=()=>As("ui-config");var Nl="vk_player_debug_panel_opened";var kg="videoplayer",Tg="videoplayer";var Mr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ig=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Eg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Pg=new Set(["ShiftRight","ShiftLeft"]);var Ag=["TIMELINE"],Dl=[...Ag,"GRAPH_BUTTON"],gp=[...Ag,"PLAY_BUTTON"],Bl=[...Dl,"PLAY_BUTTON"];var mr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(mr||{}),Oa={xs:0,s:1,m:2,l:3,xl:4};var Ol=require("@vkontakte/videoplayer-shared"),Mg=require("@vkontakte/videoplayer-core"),Lg=require("@vkontakte/videoplayer-statistics");var bc="prod",Ha="1.1.63-beta.2";var Fa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Vg=Symbol("storeContext"),Rg=Symbol("microStoresContext"),Ng=(t,e)=>{Ms(Vg,t),Ms(Rg,e),bc==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=As(Vg);return(0,Ol.assertNonNullable)(t,"Store context is empty!"),t},Qi=()=>{let t=As(Rg);return(0,Ol.assertNonNullable)(t,"MicroStores context is empty!"),t},Ut=(t,e)=>yc(t,t.getValue(),e),yc=(t,e,i)=>Gn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),Dg=(t,e,i)=>{let o=t.info,{width:n,height:a}=_e(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ha} (core: ${Mg.VERSION}, stat: ${Lg.VERSION}, shared: ${Ol.VERSION})`,u=_e(i.state.errorLog$),b=u.length?`
48
+ \r\f\xA0\v\uFEFF`];function lg(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||ag.includes(o[s-1]))&&(d===o.length||ag.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function sg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function sp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dg(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(sp)),n&&l.push(...Object.keys(n).map(sp));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=sp(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=sg(o)),n&&(i+=sg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Ge||s!==i){var d=lg(i,o,a);(!Ge||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function lp(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function tt(t,e,i,o){var n=t.__style;if(Ge||n!==e){var a=dg(e,o);(!Ge||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(lp(t,i?.[0],o[0]),lp(t,i?.[1],o[1],"important")):lp(t,i,o));return o}var Ns=Symbol("class"),Ds=Symbol("style"),pg=Symbol("is custom element"),fg=Symbol("is html");function mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=vg(t);if(Ge&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||C0(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ym]=i),i==null?t.removeAttribute(e):typeof i!="string"&&gg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $e(t,e,i,o,n=!1){var a=vg(t),s=a[pg],d=!a[fg];let l=Ge&&s;l&&Wi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=Vl(i.class):(o||i[Ns])&&(i.class=null),i[Ds]&&(i.style??=null);var p=gg(t);for(let L in i){let I=i[L];if(u&&L==="value"&&I==null){t.value=t.__value="",c[L]=I;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,I,o,e?.[Ns],i[Ns]),c[L]=I,c[Ns]=i[Ns];continue}if(L==="style"){tt(t,I,e?.[Ds],i[Ds]),c[L]=I,c[Ds]=i[Ds];continue}var w=c[L];if(I!==w){c[L]=I;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,Q=L.slice(2);var k=Wv(Q);if(qv(Q)&&(Q=Q.slice(0,-7),N.capture=!0),!k&&w){if(I!=null)continue;t.removeEventListener(Q,c[W],N),c[W]=null}if(I!=null)if(k)t[`__${Q}`]=I,ot([Q]);else{let j=function(re){c[L].call(this,re)};var A=j;c[W]=Ju(Q,t,j,N)}else k&&(t[`__${Q}`]=void 0)}else if(L==="style")De(t,L,I);else if(L==="autofocus")Zu(t,!!I);else if(!s&&(L==="__value"||L==="value"&&I!=null))t.value=t.__value=I;else if(L==="selected"&&u)mg(t,I);else{var C=L;d||(C=Kv(C));var E=C==="defaultValue"||C==="defaultChecked";if(I==null&&!s&&!E)if(a[L]=null,C==="value"||C==="checked"){let N=t,W=e===void 0;if(C==="value"){let Q=N.defaultValue;N.removeAttribute(C),N.defaultValue=Q,N.value=N.__value=W?Q:null}else{let Q=N.defaultChecked;N.removeAttribute(C),N.defaultChecked=Q,N.checked=W?Q:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(s||typeof I!="string")?t[C]=I:typeof I!="function"&&De(t,C,I,n)}}}return l&&Wi(!0),c}function vg(t){return t.__attributes??={[pg]:t.nodeName.includes("-"),[fg]:t.namespaceURI===Gm}}var cg=new Map;function gg(t){var e=cg.get(t.nodeName);if(e)return e;cg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Yd(o);for(var a in i)i[a].set&&e.push(a);o=Hr(o)}return e}function C0(t,e,i){ke&&(e==="srcset"&&k0(t,i)||dp(t.getAttribute(e)??"",i)||yv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function dp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ug(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function k0(t,e){var i=ug(t.srcset),o=ug(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(dp(i[s][0],n)||dp(n,i[s][0])))}var T0=jd?()=>performance.now():()=>Date.now(),pr={tick:t=>(jd?requestAnimationFrame:te)(t),now:()=>T0(),tasks:new Set};function hg(){let t=pr.now();pr.tasks.forEach(e=>{e.c(t)||(pr.tasks.delete(e),e.f())}),pr.tasks.size!==0&&pr.tick(hg)}function _g(t){let e;return pr.tasks.size===0&&pr.tick(hg),{promise:new Promise(i=>{pr.tasks.add(e={c:t,f:i})}),abort(){pr.tasks.delete(e)}}}function gc(t,e){Pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function A0(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 bg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=A0(n.trim());e[s]=a.trim()}return e}var M0=t=>t;function up(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var A=Lt,L=bt;Ji(null),zi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{Ji(A),zi(L)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),gc(e,"introstart"),p=cp(e,w(),$,1,()=>{gc(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,gc(e,"outrostart"),$=cp(e,w(),p,0,()=>{gc(e,"outroend"),A?.()})},stop:()=>{p?.abort(),$?.abort()}},k=bt;if((k.transitions??=[]).push(x),n&&Al){var C=d;if(!C){for(var E=k.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&sn(()=>{vt(()=>x.in())})}}function cp(t,e,i,o,n){var a=o===1;if(ta(e)){var s,d=!1;return Ro(()=>{if(!d){var k=e({direction:a?"in":"out"});s=cp(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=M0}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=bg(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var C=o-k,E=e.duration*Math.abs(C),A=[];if(E>0){var L=!1;if(c)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var W=k+C*b(N/I),Q=bg(c(W,1-W));A.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var j=x.currentTime;return k+C*b(j/E)},u&&_g(()=>{if(x.playState!=="running")return!1;var j=w();return u(j,1-j),!0})}x=t.animate(A,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var pp=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var R0=new pp({box:"border-box"});function Ar(t,e,i){var o=R0.observe(t,()=>i(t[e]));sn(()=>(vt(()=>i(t[e])),o))}function $g(t,e){return t===e||t?.[yo]===e}function st(t={},e,i,o){return sn(()=>{var n,a;return to(()=>{n=a,a=o?.()||[],vt(()=>{t!==i(...a)&&(e(t,...a),n&&$g(i(...n),t)&&e(null,...n))})}),()=>{Ro(()=>{a&&$g(i(...a),t)&&e(null,...a)})}}),t}function fr(t=!1){let e=Tt,i=e.l.u;if(!i)return;let o=()=>lc(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Es(()=>{yg(e,o),ia(i.b)}),He(()=>{let n=vt(()=>i.m.map(Jm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{yg(e,o),ia(i.a)})}function yg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;uv(e)},set:o=>{i=o}})}};D0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var D0;function Vt(t){Tt===null&&Ps("onMount"),Tr&&Tt.l!==null?N0(Tt).m.push(t):He(()=>{let e=vt(t);if(typeof e=="function")return e})}function dn(t){Tt===null&&Ps("onDestroy"),Vt(()=>()=>vt(t))}function N0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function Rl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=vt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Bs=[];function Gn(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=te){let i=null,o=new Set;function n(d){if(bs(t,d)&&(t=d,i)){let l=!Bs.length;for(let c of o)c[1](),Bs.push(c,t);if(l){for(let c=0;c<Bs.length;c+=2)Bs[c][0](Bs[c+1]);Bs.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function li(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 a=e.length<2;return Gn(i,(s,d)=>{let l=!1,c=[],u=0,b=te,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:te},$=n.map((w,x)=>Rl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){ia($),b(),l=!1}})}function _e(t){let e;return Rl(t,i=>e=i)(),e}var _c=!1,fp=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:zr(void 0),unsubscribe:te};if(o.store!==t&&!(fp in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=Rl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&fp in i?_e(t):r(o.source)}function Le(){let t={};function e(){Uo(()=>{for(var i in t)t[i].unsubscribe();Ui(t,fp,{enumerable:!1,value:!0})})}return[t,e]}function mp(t){var e=_c;try{return _c=!1,[t(),_c]}finally{_c=e}}var q0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&cv(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},q0)}var W0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(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];ta(n)&&(n=n());let a=kn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ta(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=kn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===yo||e===ml)return!1;for(let i of t.props)if(ta(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ta(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Qr(...t){return new Proxy({props:t},W0)}function xg(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Tr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=mp(()=>t[e]):c=t[e];var u=yo in t||ml in t,b=s&&(kn(t,e)?.set??(u&&e in t&&(W=>t[e]=W)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=vt(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&dv(e),c=x(),b&&b(c));var k;if(a)k=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var C=(n?v:cr)(()=>t[e]);C.f|=131072,k=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0)return k;if(b){var E=t.$$legacy;return function(W,Q){return arguments.length>0?((!a||!Q||E||l)&&b(Q?k():W),W):k()}}var A=!1,L=!1,I=zr(c),N=v(()=>{var W=k(),Q=r(I);return A?(A=!1,L=!0,Q):(L=!1,I.v=W)});return s&&r(N),n||(N.equals=$s),function(W,Q){if(_l!==null&&(A=L,k(),r(I)),arguments.length>0){let j=Q?r(N):a&&s?le(W):W;if(!N.equals(j)){if(A=!0,D(I,j),w&&p!==void 0&&(p=j),xg(N))return W;vt(()=>r(N))}return W}return xg(N)?N.v:r(N)}}var K0;typeof HTMLElement=="function"&&(K0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=Q0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=vp(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=og({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=cc(()=>{to(()=>{this.$$r=!0;for(let n of Su(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=vp(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=vp(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Su(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function vp(t,e,i,o){let n=i[t]?.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;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 Q0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var wg="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(wg);var au=require("@vkontakte/videoplayer-core"),eQ=require("@vkontakte/videoplayer-core"),ps=require("@vkontakte/videoplayer-shared"),$1=require("@vkontakte/videoplayer-statistics");var Da=require("@vkontakte/videoplayer-shared");var j0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Da.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:Da.VideoQuality.Q_480P,highQualityLimit:Da.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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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}},Sg=t=>(0,Da.fillWithDefault)(t,j0),Cg=t=>Ms("ui-config",t),Rt=()=>As("ui-config");var Nl="vk_player_debug_panel_opened";var kg="videoplayer",Tg="videoplayer";var Mr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ig=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Eg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Pg=new Set(["ShiftRight","ShiftLeft"]);var Ag=["TIMELINE"],Dl=[...Ag,"GRAPH_BUTTON"],gp=[...Ag,"PLAY_BUTTON"],Bl=[...Dl,"PLAY_BUTTON"];var mr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(mr||{}),Oa={xs:0,s:1,m:2,l:3,xl:4};var Ol=require("@vkontakte/videoplayer-shared"),Mg=require("@vkontakte/videoplayer-core"),Lg=require("@vkontakte/videoplayer-statistics");var bc="prod",Ha="1.1.64-dev.3efb4d41.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 Vg=Symbol("storeContext"),Rg=Symbol("microStoresContext"),Ng=(t,e)=>{Ms(Vg,t),Ms(Rg,e),bc==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=As(Vg);return(0,Ol.assertNonNullable)(t,"Store context is empty!"),t},Qi=()=>{let t=As(Rg);return(0,Ol.assertNonNullable)(t,"MicroStores context is empty!"),t},Ut=(t,e)=>yc(t,t.getValue(),e),yc=(t,e,i)=>Gn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),Dg=(t,e,i)=>{let o=t.info,{width:n,height:a}=_e(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ha} (core: ${Mg.VERSION}, stat: ${Lg.VERSION}, shared: ${Ol.VERSION})`,u=_e(i.state.errorLog$),b=u.length?`
49
49
  `+u.map((C,E)=>{let A=`${E}) Type: ${C.id}
50
50
  `,L=`Message: ${C.message} (${C.thrown})
51
51
  `,I=`Trace: ${C.thrown?.stack}
package/esnext.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.63-beta.2
3
- * Mon, 02 Jun 2025 14:19:50 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-63/doc/
2
+ * @vkontakte/videoplayer v1.1.64-dev.3efb4d41.0
3
+ * Thu, 05 Jun 2025 11:40:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
6
  var Jr="[",ba="[!",$a="]",Nr={};var vi=Symbol(),ni=Symbol("filename"),xm=Symbol("hmr"),wm="http://www.w3.org/1999/xhtml",ou="http://www.w3.org/2000/svg";var Ad=!0;var Sm=globalThis.process?.env?.NODE_ENV,ke=Sm&&!Sm.toLowerCase().startsWith("prod");var ho=Symbol("$state"),Dr=Symbol("$state metadata"),Ys=Symbol("legacy props"),Cm=Symbol("");var ar=Array.isArray,km=Array.prototype.indexOf,Zs=Array.from,nu=Object.keys,Bi=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Md=Object.getOwnPropertyDescriptors,ru=Object.prototype,Tm=Array.prototype,Br=Object.getPrototypeOf;function ea(t){return typeof t=="function"}var te=()=>{};function Im(t){return t()}function ta(t){for(var e=0;e<t.length;e++)t[e]()}var Xs=[],au=[];function Em(){var t=Xs;Xs=[],ta(t)}function s1(){var t=au;au=[],ta(t)}function Mo(t){Xs.length===0&&queueMicrotask(Em),Xs.push(t)}function su(){Xs.length>0&&Em(),au.length>0&&s1()}function Ld(t){return t===this.v}function ds(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Pm(t,e){return t!==e}function cs(t){return!ds(t,this.v)}function Am(){if(ke){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -45,7 +45,7 @@ ${l}in ${u}`).join("")}
45
45
  `)){let o=_1.exec(i)??b1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function hv(){let t=$1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=h1[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var Gd=Symbol("ADD_OWNER");function ku(t,e,i=!1,o=!1){if(t&&!i){let n=Bo,a=t[Dr];if(a&&!Tu(a,n)){let s=Iu(a);e&&e[ni]!==n[ni]&&!o&&Jm(n[ni],e[ni],s[ni])}}jd(t,e,new Set)}function gu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function jd(t,e,i){let o=t?.[Dr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Gd in t&&t[Gd])Zi(()=>{t[Gd](e)});else{var n=Br(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=vi;Zi(()=>{let d=t[a];s!==d&&(s=d,jd(d,e,i))})}else jd(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)jd(t[a],e,i)}}}function Tu(t,e){return t.owners===null?!0:t.owners.has(e)||ni in e&&[...t.owners].some(i=>i[ni]===e[ni])||t.parent!==null&&Tu(t.parent,e)}function Iu(t){return t?.owners?.values().next().value??Iu(t.parent)}var y1=!1;function tv(t){if(y1)return;let e=hv();if(e&&!Tu(t,e)){let i=Iu(t);i[ni]!==e[ni]?vu(e[ni],i[ni]):vu()}}function $s(t){if(ke){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
47
  https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ct=null;function ll(t){Ct=t}var Bo=null;function dl(t){Bo=t}function ys(t){return Eu("getContext").get(t)}function xs(t,e){let i=Eu("setContext");return ke&&ft(()=>ku(e,null,!0)),i.set(t,e),e}function ul(){return Eu("getAllContexts")}function H(t,e=!1,i){var o=Ct={p:Ct,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Cr&&!e&&(Ct.l={s:null,u:null,r1:[],r2:Ti(!1)}),Oo(()=>{o.d=!0}),ke&&(Ct.function=i,Bo=i)}function F(t){let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=ht,o=At;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Oi(a.effect),ji(a.reaction),on(a.fn)}}finally{Oi(i),ji(o)}}Ct=e.p,ke&&(Bo=e.p?.function??null),e.m=!0}return t||{}}function Tr(){return!Cr||Ct!==null&&Ct.l===null}function Eu(t){return Ct===null&&$s(t),Ct.c??=new Map(w1(Ct)||void 0)}function w1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var S1=/\r/g;function _v(t){t=t.replace(S1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var C1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $v(t){return C1.includes(t)}var k1=["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 T1={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 yv(t){return t=t.toLowerCase(),T1[t]??t}var Nw=[...k1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var I1=["touchstart","touchmove"];function xv(t){return I1.includes(t)}var E1=["textarea","script","style","title"];function wv(t){return E1.includes(t)}function Pu(t){return t?.replace(/\//g,"/\u200B")}var Sv=new Map;function Cv(t,e){var i=Sv.get(t);i||(i=new Set,Sv.set(t,i)),i.add(e)}function Au(t,e){if(e){let i=document.body;t.autofocus=!0,Mo(()=>{document.activeElement===i&&t.focus()})}}function pl(t){var e=At,i=ht;ji(null),Oi(null);try{return t()}finally{ji(e),Oi(i)}}var Mu=new Set,Yd=new Set;function Pa(t){if(!Qe)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 Lu(t,e,i,o={}){function n(a){if(o.capture||ws.call(e,a),!a.cancelBubble)return pl(()=>i?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Mo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function gt(t,e,i,o,n){var a={capture:o,passive:n},s=Lu(t,e,i,a);(e===document.body||e===window||e===document)&&Oo(()=>{e.removeEventListener(t,s,a)})}function it(t){for(var e=0;e<t.length;e++)Mu.add(t[e]);for(var i of Yd)i(t)}function ws(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;l<=c&&(s=l)}if(a=n[s]||t.target,a!==e){Bi(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=At,b=ht;ji(null),Oi(null);try{for(var p,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var x=a["__"+o];if(x!=null&&(!a.disabled||t.target===a))if(ar(x)){var[k,...C]=x;k.apply(a,[t,...C])}else x.call(a,t)}catch(E){p?$.push(E):p=E}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let E of $)queueMicrotask(()=>{throw E});throw p}}finally{t.__root=e,delete t.currentTarget,ji(u),Oi(b)}}}var A1;function kv(){A1=void 0}function Ss(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Xi(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Qe)return Xi(lt,null),lt;n===void 0&&(n=Ss(a?t:"<!>"+t),i||(n=ai(n)));var s=o||il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=ai(s),l=s.lastChild;Xi(d,l)}else Xi(s,s);return s}}function ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Qe)return Xi(lt,null),lt;if(!s){var d=Ss(a),l=ai(d);if(n)for(s=document.createDocumentFragment();ai(l);)s.appendChild(ai(l));else s=ai(l)}var c=s.cloneNode(!0);if(n){var u=ai(c),b=c.lastChild;Xi(u,b)}else Xi(c,c);return c}}function Ir(t=""){if(!Qe){var e=No(t+"");return Xi(e,e),e}var i=lt;return i.nodeType!==3&&(i.before(i=No()),ri(i)),Xi(i,i),i}function Be(){if(Qe)return Xi(lt,null),lt;var t=document.createDocumentFragment(),e=document.createComment(""),i=No();return t.append(e,i),Xi(e,i),t}function _(t,e){if(Qe){ht.nodes_end=lt,yi();return}t!==null&&t.before(e)}var fl=!0;function Zd(t){fl=t}function ue(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function qr(t,e){return Iv(t,e)}function Ru(t,e){Bd(),e.intro=e.intro??!1;let i=e.target,o=Qe,n=lt;try{for(var a=ai(i);a&&(a.nodeType!==8||a.data!==Jr);)a=lo(a);if(!a)throw Nr;Fi(!0),ri(a),yi();let s=Iv(t,{...e,anchor:a});if(lt===null||lt.nodeType!==8||lt.data!==$a)throw ka(),Nr;return Fi(!1),s}catch(s){if(s===Nr)return e.recover===!1&&Nm(),Bd(),ol(i),Fi(!1),qr(t,e);throw s}finally{Fi(o),ri(n),kv()}}var Cs=new Map;function Iv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Bd();var d=new Set,l=b=>{for(var p=0;p<b.length;p++){var $=b[p];if(!d.has($)){d.add($);var w=xv($);e.addEventListener($,ws,{passive:w});var x=Cs.get($);x===void 0?(document.addEventListener($,ws,{passive:w}),Cs.set($,1)):Cs.set($,x+1)}}};l(Zs(Mu)),Yd.add(l);var c=void 0,u=vv(()=>{var b=i??e.appendChild(No());return Ii(()=>{if(a){H({});var p=Ct;p.c=a}n&&(o.$$events=n),Qe&&Xi(b,null),fl=s,c=t(b,o)||{},fl=!0,Qe&&(ht.nodes_end=lt),a&&F()}),()=>{for(var p of d){e.removeEventListener(p,ws);var $=Cs.get(p);--$===0?(document.removeEventListener(p,ws),Cs.delete(p)):Cs.set(p,$)}Yd.delete(l),b!==i&&b.parentNode?.removeChild(b)}});return Vu.set(c,u),c}var Vu=new WeakMap;function Aa(t,e){let i=Vu.get(t);return i?(Vu.delete(t),i(e)):(ke&&Xm(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Qe&&i===0&&yi();var n=t,a=null,s=null,d=vi,l=i>0?65536:0,c=!1;let u=(p,$=!0)=>{c=!0,b($,p)},b=(p,$)=>{if(d===(d=p))return;let w=!1;if(Qe&&o!==-1){if(i===0){let k=n.data;k===Jr?o=0:k===ba?o=1/0:(o=parseInt(k.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=vs(),ri(n),Fi(!1),w=!0,o=-1)}d?(a?zr(a):$&&(a=Ii(()=>$(n))),s&&nn(s,()=>{s=null})):(s?zr(s):$&&(s=Ii(()=>$(n,[i+1,o]))),a&&nn(a,()=>{a=null})),w&&Fi(!0)};Ui(()=>{c=!1,e(u),c||b(null,null)},l),Qe&&(n=lt)}function Ma(t,e,i){Qe&&yi();var o=t,n=vi,a,s=Tr()?Pm:ds;Ui(()=>{s(n,n=e())&&(a&&nn(a),a=Ii(()=>i(o)))}),Qe&&(o=lt)}var na=null;function Bu(t){na=t}function ml(t,e){return e}function R1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Qd(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ol(l),l.append(i),o.clear(),oa(t,e[0].prev,e[a-1].next)}Cu(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),oa(t,u.prev,u.next)),Hi(u.e,!d)}})}function ci(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var c=t;s=Qe?ri(ai(c)):c.appendChild(No())}Qe&&yi();var u=null,b=!1,p=dr(()=>{var $=i();return ar($)?$:$==null?[]:Zs($)});Ui(()=>{var $=r(p),w=$.length;if(b&&w===0)return;b=w===0;let x=!1;if(Qe){var k=s.data===ba;k!==(w===0)&&(s=vs(),ri(s),Fi(!1),x=!0)}if(Qe){for(var C=null,E,A=0;A<w;A++){if(lt.nodeType===8&&lt.data===$a){s=lt,x=!0,Fi(!1);break}var L=$[A],I=o(L,A);E=Av(lt,d,C,null,L,I,A,n,e,i),d.items.set(I,E),C=E}w>0&&ri(vs())}Qe||N1($,d,s,n,e,o,i),a!==null&&(w===0?u?zr(u):u=Ii(()=>a(s)):u!==null&&nn(u,()=>{u=null})),x&&Fi(!0),r(p)}),Qe&&(s=lt)}function N1(t,e,i,o,n,a,s){var d=(n&8)!==0,l=(n&3)!==0,c=t.length,u=e.items,b=e.first,p=b,$,w=null,x,k=[],C=[],E,A,L,I;if(d)for(I=0;I<c;I+=1)E=t[I],A=a(E,I),L=u.get(A),L!==void 0&&(L.a?.measure(),(x??=new Set).add(L));for(I=0;I<c;I+=1){if(E=t[I],A=a(E,I),L=u.get(A),L===void 0){var N=p?p.e.nodes_start:i;w=Av(N,e,w,w===null?e.first:w.next,E,A,I,o,n,s),u.set(A,w),k=[],C=[],p=w.next;continue}if(l&&D1(L,E,I,n),(L.e.f&8192)!==0&&(zr(L.e),d&&(L.a?.unfix(),(x??=new Set).delete(L))),L!==p){if($!==void 0&&$.has(L)){if(k.length<C.length){var W=C[0],Q;w=W.prev;var j=k[0],re=k[k.length-1];for(Q=0;Q<k.length;Q+=1)Ev(k[Q],W,i);for(Q=0;Q<C.length;Q+=1)$.delete(C[Q]);oa(e,j.prev,re.next),oa(e,w,j),oa(e,re,W),p=W,w=re,I-=1,k=[],C=[]}else $.delete(L),Ev(L,p,i),oa(e,L.prev,L.next),oa(e,L,w===null?e.first:w.next),oa(e,w,L),w=L;continue}for(k=[],C=[];p!==null&&p.k!==A;)(p.e.f&8192)===0&&($??=new Set).add(p),C.push(p),p=p.next;if(p===null)continue;L=p}k.push(L),w=L,p=L.next}if(p!==null||$!==void 0){for(var ce=$===void 0?[]:Zs($);p!==null;)(p.e.f&8192)===0&&ce.push(p),p=p.next;var X=ce.length;if(X>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(I=0;I<X;I+=1)ce[I].a?.measure();for(I=0;I<X;I+=1)ce[I].a?.fix()}R1(e,ce,ge,u)}}d&&Mo(()=>{if(x!==void 0)for(L of x)L.a?.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function D1(t,e,i,o){(o&1)!==0&&ps(t.v,e),(o&2)!==0?ps(t.i,i):t.i=i}function Av(t,e,i,o,n,a,s,d,l,c){var u=na,b=(l&1)!==0,p=(l&16)===0,$=b?p?Fr(n):Ti(n):n,w=(l&2)===0?s:Ti(s);ke&&b&&($.debug=()=>{var k=typeof w=="number"?s:w.v;c()[k]});var x={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};na=x;try{return x.e=Ii(()=>d(t,$,w,c),Qe),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{na=u}}function Ev(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=lo(a);n.before(a),a=s}}function oa(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 B1(t,e,i){if(!e||e===_v(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Bo?.[ni]&&(o=`in ${Bo[ni]}`),Zm(Pu(o))}function vl(t,e,i,o,n){var a=t,s="",d;Ui(()=>{if(s===(s=e()??"")){Qe&&yi();return}d!==void 0&&(Hi(d),d=void 0),s!==""&&(d=Ii(()=>{if(Qe){for(var l=lt.data,c=yi(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=lo(c);if(c===null)throw ka(),Nr;ke&&!n&&B1(c.parentNode,l,s),Xi(lt,u),a=ri(c);return}var b=s+"";i?b=`<svg>${b}</svg>`:o&&(b=`<math>${b}</math>`);var p=Ss(b);if((i||o)&&(p=ai(p)),Xi(ai(p),p.lastChild),i||o)for(;ai(p);)a.before(ai(p));else a.before(p)}))})}function pe(t,e,...i){var o=t,n=te,a;Ui(()=>{n!==(n=e())&&(a&&(Hi(a),a=null),ke&&n==null&&Dm(),a=Ii(()=>n(o,...i)))},65536),Qe&&(o=lt)}function ui(t,e,i){Qe&&yi();var o=t,n,a;Ui(()=>{n!==(n=e())&&(a&&(nn(a),a=null),n&&(a=Ii(()=>i(o,n))))},65536),Qe&&(o=lt)}function La(t,e,i,o,n,a){let s=Qe;Qe&&yi();var d=ke&&a&&Ct?.function[ni],l,c,u=null;Qe&&lt.nodeType===1&&(u=lt,yi());var b=Qe?lt:t,p,$=na;Ui(()=>{let w=e()||null;var x=n?n():i||w==="svg"?ou:null;if(w!==l){var k=na;Bu($),p&&(w===null?nn(p,()=>{p=null,c=null}):w===c?zr(p):(Hi(p),Zd(!1))),w&&w!==c&&(p=Ii(()=>{if(u=Qe?u:x?document.createElementNS(x,w):document.createElement(w),ke&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Xi(u,u),o){Qe&&wv(w)&&u.append(document.createComment(""));var C=Qe?ai(u):u.appendChild(No());Qe&&(C===null?Fi(!1):ri(C)),o(u,C)}ht.nodes_end=u,b.before(u)})),l=w,l&&(c=l),Zd(!0),Bu(k)}},65536),s&&(Fi(!0),ri(b))}var Hu;function Mv(t){return Hu=t.target,new Ou(t)}var Ou=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=Fr(s);return i.set(a,d),d};let n=new Proxy({...e.props||{},$$events:{}},{get(a,s){return r(i.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===Ys?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return D(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?Ru:qr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&_s(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Bi(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(n,a)},this.#e.$destroy=()=>{Aa(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};function z(t,e){Mo(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Hu?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),ke&&Cv(e.hash,n)}})}function Lv(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=Lv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Vv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Lv(t))&&(o&&(o+=" "),o+=e);return o}function gl(t){return typeof t=="object"?Vv(t):t??""}var Rv=[...`
48
- \r\f\xA0\v\uFEFF`];function Dv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Rv.includes(o[s-1]))&&(d===o.length||Rv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Nv(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Fu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bv(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Fu)),n&&l.push(...Object.keys(n).map(Fu));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=Fu(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=Nv(o)),n&&(i+=Nv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Qe||s!==i){var d=Dv(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Uu(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function et(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=Bv(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Uu(t,i?.[0],o[0]),Uu(t,i?.[1],o[1],"important")):Uu(t,i,o));return o}var ks=Symbol("class"),Ts=Symbol("style"),Fv=Symbol("is custom element"),Uv=Symbol("is html");function zv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=qv(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||W1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Cm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Wv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $e(t,e,i,o,n=!1){var a=qv(t),s=a[Fv],d=!a[Uv];let l=Qe&&s;l&&Fi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=gl(i.class):(o||i[ks])&&(i.class=null),i[Ts]&&(i.style??=null);var p=Wv(t);for(let L in i){let I=i[L];if(u&&L==="value"&&I==null){t.value=t.__value="",c[L]=I;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,I,o,e?.[ks],i[ks]),c[L]=I,c[ks]=i[ks];continue}if(L==="style"){et(t,I,e?.[Ts],i[Ts]),c[L]=I,c[Ts]=i[Ts];continue}var w=c[L];if(I!==w){c[L]=I;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,Q=L.slice(2);var k=$v(Q);if(bv(Q)&&(Q=Q.slice(0,-7),N.capture=!0),!k&&w){if(I!=null)continue;t.removeEventListener(Q,c[W],N),c[W]=null}if(I!=null)if(k)t[`__${Q}`]=I,it([Q]);else{let j=function(re){c[L].call(this,re)};var A=j;c[W]=Lu(Q,t,j,N)}else k&&(t[`__${Q}`]=void 0)}else if(L==="style")De(t,L,I);else if(L==="autofocus")Au(t,!!I);else if(!s&&(L==="__value"||L==="value"&&I!=null))t.value=t.__value=I;else if(L==="selected"&&u)zv(t,I);else{var C=L;d||(C=yv(C));var E=C==="defaultValue"||C==="defaultChecked";if(I==null&&!s&&!E)if(a[L]=null,C==="value"||C==="checked"){let N=t,W=e===void 0;if(C==="value"){let Q=N.defaultValue;N.removeAttribute(C),N.defaultValue=Q,N.value=N.__value=W?Q:null}else{let Q=N.defaultChecked;N.removeAttribute(C),N.defaultChecked=Q,N.checked=W?Q:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(s||typeof I!="string")?t[C]=I:typeof I!="function"&&De(t,C,I,n)}}}return l&&Fi(!0),c}function qv(t){return t.__attributes??={[Fv]:t.nodeName.includes("-"),[Uv]:t.namespaceURI===wm}}var Ov=new Map;function Wv(t){var e=Ov.get(t.nodeName);if(e)return e;Ov.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Md(o);for(var a in i)i[a].set&&e.push(a);o=Br(o)}return e}function W1(t,e,i){ke&&(e==="srcset"&&K1(t,i)||zu(t.getAttribute(e)??"",i)||Ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Hv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K1(t,e){var i=Hv(t.srcset),o=Hv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(zu(i[s][0],n)||zu(n,i[s][0])))}var Q1=Ad?()=>performance.now():()=>Date.now(),ur={tick:t=>(Ad?requestAnimationFrame:te)(t),now:()=>Q1(),tasks:new Set};function Kv(){let t=ur.now();ur.tasks.forEach(e=>{e.c(t)||(ur.tasks.delete(e),e.f())}),ur.tasks.size!==0&&ur.tick(Kv)}function Qv(t){let e;return ur.tasks.size===0&&ur.tick(Kv),{promise:new Promise(i=>{ur.tasks.add(e={c:t,f:i})}),abort(){ur.tasks.delete(e)}}}function Xd(t,e){pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function Z1(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 Gv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=Z1(n.trim());e[s]=a.trim()}return e}var X1=t=>t;function Wu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var A=At,L=ht;ji(null),Oi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{ji(A),Oi(L)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),Xd(e,"introstart"),p=qu(e,w(),$,1,()=>{Xd(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,Xd(e,"outrostart"),$=qu(e,w(),p,0,()=>{Xd(e,"outroend"),A?.()})},stop:()=>{p?.abort(),$?.abort()}},k=ht;if((k.transitions??=[]).push(x),n&&fl){var C=d;if(!C){for(var E=k.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&on(()=>{ft(()=>x.in())})}}function qu(t,e,i,o,n){var a=o===1;if(ea(e)){var s,d=!1;return Mo(()=>{if(!d){var k=e({direction:a?"in":"out"});s=qu(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=X1}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=Gv(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var C=o-k,E=e.duration*Math.abs(C),A=[];if(E>0){var L=!1;if(c)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var W=k+C*b(N/I),Q=Gv(c(W,1-W));A.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var j=x.currentTime;return k+C*b(j/E)},u&&Qv(()=>{if(x.playState!=="running")return!1;var j=w();return u(j,1-j),!0})}x=t.animate(A,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var Ku=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var t0=new Ku({box:"border-box"});function Er(t,e,i){var o=t0.observe(t,()=>i(t[e]));on(()=>(ft(()=>i(t[e])),o))}function jv(t,e){return t===e||t?.[ho]===e}function at(t={},e,i,o){return on(()=>{var n,a;return Zi(()=>{n=a,a=o?.()||[],ft(()=>{t!==i(...a)&&(e(t,...a),n&&jv(i(...n),t)&&e(null,...n))})}),()=>{Mo(()=>{a&&jv(i(...a),t)&&e(null,...a)})}}),t}function pr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&bs(()=>{Yv(e,o),ta(i.b)}),He(()=>{let n=ft(()=>i.m.map(Im));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{Yv(e,o),ta(i.a)})}function Yv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Hm(e)},set:o=>{i=o}})}};o0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var o0;function Mt(t){Ct===null&&$s("onMount"),Cr&&Ct.l!==null?i0(Ct).m.push(t):He(()=>{let e=ft(t);if(typeof e=="function")return e})}function rn(t){Ct===null&&$s("onDestroy"),Mt(()=>()=>ft(t))}function i0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=ft(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Is=[];function Qn(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=te){let i=null,o=new Set;function n(d){if(ds(t,d)&&(t=d,i)){let l=!Is.length;for(let c of o)c[1](),Is.push(c,t);if(l){for(let c=0;c<Is.length;c+=2)Is[c][0](Is[c+1]);Is.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function si(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 a=e.length<2;return Qn(i,(s,d)=>{let l=!1,c=[],u=0,b=te,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:te},$=n.map((w,x)=>hl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){ta($),b(),l=!1}})}function _e(t){let e;return hl(t,i=>e=i)(),e}var ec=!1,Qu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Fr(void 0),unsubscribe:te};if(o.store!==t&&!(Qu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&Qu in i?_e(t):r(o.source)}function Le(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();Bi(t,Qu,{enumerable:!1,value:!0})})}return[t,e]}function Gu(t){var e=ec;try{return ec=!1,[t(),ec]}finally{ec=e}}var c0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Om(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c0)}var u0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(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];ea(n)&&(n=n());let a=wn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=wn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===ho||e===Ys)return!1;for(let i of t.props)if(ea(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ea(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Wr(...t){return new Proxy({props:t},u0)}function Zv(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Cr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Gu(()=>t[e]):c=t[e];var u=ho in t||Ys in t,b=s&&(wn(t,e)?.set??(u&&e in t&&(W=>t[e]=W)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=ft(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&Bm(e),c=x(),b&&b(c));var k;if(a)k=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var C=(n?v:dr)(()=>t[e]);C.f|=131072,k=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0)return k;if(b){var E=t.$$legacy;return function(W,Q){return arguments.length>0?((!a||!Q||E||l)&&b(Q?k():W),W):k()}}var A=!1,L=!1,I=Fr(c),N=v(()=>{var W=k(),Q=r(I);return A?(A=!1,L=!0,Q):(L=!1,I.v=W)});return s&&r(N),n||(N.equals=cs),function(W,Q){if(el!==null&&(A=L,k(),r(I)),arguments.length>0){let j=Q?r(N):a&&s?le(W):W;if(!N.equals(j)){if(A=!0,D(I,j),w&&p!==void 0&&(p=j),Zv(N))return W;ft(()=>r(N))}return W}return Zv(N)?N.v:r(N)}}var p0;typeof HTMLElement=="function"&&(p0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=f0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=ju(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Mv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Kd(()=>{Zi(()=>{this.$$r=!0;for(let n of nu(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=ju(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ju(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ju(t,e,i,o){let n=i[t]?.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;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 f0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Xv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xv);import{clientChecker as cm}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-core";import{noop as Qh,safeStorage as Z3,throttleFn as X3}from"@vkontakte/videoplayer-shared";import{SeekAction as J3}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as v0,fillWithDefault as g0,VideoQuality as Jv}from"@vkontakte/videoplayer-shared";var h0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:v0.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:Jv.Q_480P,highQualityLimit:Jv.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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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}},eg=t=>g0(t,h0),tg=t=>xs("ui-config",t),Lt=()=>ys("ui-config");var _l="vk_player_debug_panel_opened";var ig="videoplayer",og="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ng=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ag=new Set(["ShiftRight","ShiftLeft"]);var sg=["TIMELINE"],bl=[...sg,"GRAPH_BUTTON"],Yu=[...sg,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),Ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as lg,VERSION as _0}from"@vkontakte/videoplayer-shared";import{VERSION as b0}from"@vkontakte/videoplayer-core";import{VERSION as $0}from"@vkontakte/videoplayer-statistics";var tc="prod",Es="1.1.63-beta.2";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var dg=Symbol("storeContext"),cg=Symbol("microStoresContext"),ug=(t,e)=>{xs(dg,t),xs(cg,e),tc==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=ys(dg);return lg(t,"Store context is empty!"),t},zi=()=>{let t=ys(cg);return lg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>oc(t,t.getValue(),e),oc=(t,e,i)=>Qn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),pg=(t,e,i)=>{let o=t.info,{width:n,height:a}=_e(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Es} (core: ${b0}, stat: ${$0}, shared: ${_0})`,u=_e(i.state.errorLog$),b=u.length?`
48
+ \r\f\xA0\v\uFEFF`];function Dv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Rv.includes(o[s-1]))&&(d===o.length||Rv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Nv(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Fu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bv(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Fu)),n&&l.push(...Object.keys(n).map(Fu));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=Fu(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=Nv(o)),n&&(i+=Nv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Qe||s!==i){var d=Dv(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Uu(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function et(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=Bv(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Uu(t,i?.[0],o[0]),Uu(t,i?.[1],o[1],"important")):Uu(t,i,o));return o}var ks=Symbol("class"),Ts=Symbol("style"),Fv=Symbol("is custom element"),Uv=Symbol("is html");function zv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=qv(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||W1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Cm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Wv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $e(t,e,i,o,n=!1){var a=qv(t),s=a[Fv],d=!a[Uv];let l=Qe&&s;l&&Fi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=gl(i.class):(o||i[ks])&&(i.class=null),i[Ts]&&(i.style??=null);var p=Wv(t);for(let L in i){let I=i[L];if(u&&L==="value"&&I==null){t.value=t.__value="",c[L]=I;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,I,o,e?.[ks],i[ks]),c[L]=I,c[ks]=i[ks];continue}if(L==="style"){et(t,I,e?.[Ts],i[Ts]),c[L]=I,c[Ts]=i[Ts];continue}var w=c[L];if(I!==w){c[L]=I;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,Q=L.slice(2);var k=$v(Q);if(bv(Q)&&(Q=Q.slice(0,-7),N.capture=!0),!k&&w){if(I!=null)continue;t.removeEventListener(Q,c[W],N),c[W]=null}if(I!=null)if(k)t[`__${Q}`]=I,it([Q]);else{let j=function(re){c[L].call(this,re)};var A=j;c[W]=Lu(Q,t,j,N)}else k&&(t[`__${Q}`]=void 0)}else if(L==="style")De(t,L,I);else if(L==="autofocus")Au(t,!!I);else if(!s&&(L==="__value"||L==="value"&&I!=null))t.value=t.__value=I;else if(L==="selected"&&u)zv(t,I);else{var C=L;d||(C=yv(C));var E=C==="defaultValue"||C==="defaultChecked";if(I==null&&!s&&!E)if(a[L]=null,C==="value"||C==="checked"){let N=t,W=e===void 0;if(C==="value"){let Q=N.defaultValue;N.removeAttribute(C),N.defaultValue=Q,N.value=N.__value=W?Q:null}else{let Q=N.defaultChecked;N.removeAttribute(C),N.defaultChecked=Q,N.checked=W?Q:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(s||typeof I!="string")?t[C]=I:typeof I!="function"&&De(t,C,I,n)}}}return l&&Fi(!0),c}function qv(t){return t.__attributes??={[Fv]:t.nodeName.includes("-"),[Uv]:t.namespaceURI===wm}}var Ov=new Map;function Wv(t){var e=Ov.get(t.nodeName);if(e)return e;Ov.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Md(o);for(var a in i)i[a].set&&e.push(a);o=Br(o)}return e}function W1(t,e,i){ke&&(e==="srcset"&&K1(t,i)||zu(t.getAttribute(e)??"",i)||Ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Hv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K1(t,e){var i=Hv(t.srcset),o=Hv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(zu(i[s][0],n)||zu(n,i[s][0])))}var Q1=Ad?()=>performance.now():()=>Date.now(),ur={tick:t=>(Ad?requestAnimationFrame:te)(t),now:()=>Q1(),tasks:new Set};function Kv(){let t=ur.now();ur.tasks.forEach(e=>{e.c(t)||(ur.tasks.delete(e),e.f())}),ur.tasks.size!==0&&ur.tick(Kv)}function Qv(t){let e;return ur.tasks.size===0&&ur.tick(Kv),{promise:new Promise(i=>{ur.tasks.add(e={c:t,f:i})}),abort(){ur.tasks.delete(e)}}}function Xd(t,e){pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function Z1(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 Gv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=Z1(n.trim());e[s]=a.trim()}return e}var X1=t=>t;function Wu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var A=At,L=ht;ji(null),Oi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{ji(A),Oi(L)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),Xd(e,"introstart"),p=qu(e,w(),$,1,()=>{Xd(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,Xd(e,"outrostart"),$=qu(e,w(),p,0,()=>{Xd(e,"outroend"),A?.()})},stop:()=>{p?.abort(),$?.abort()}},k=ht;if((k.transitions??=[]).push(x),n&&fl){var C=d;if(!C){for(var E=k.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&on(()=>{ft(()=>x.in())})}}function qu(t,e,i,o,n){var a=o===1;if(ea(e)){var s,d=!1;return Mo(()=>{if(!d){var k=e({direction:a?"in":"out"});s=qu(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=X1}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=Gv(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var C=o-k,E=e.duration*Math.abs(C),A=[];if(E>0){var L=!1;if(c)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var W=k+C*b(N/I),Q=Gv(c(W,1-W));A.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var j=x.currentTime;return k+C*b(j/E)},u&&Qv(()=>{if(x.playState!=="running")return!1;var j=w();return u(j,1-j),!0})}x=t.animate(A,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var Ku=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var t0=new Ku({box:"border-box"});function Er(t,e,i){var o=t0.observe(t,()=>i(t[e]));on(()=>(ft(()=>i(t[e])),o))}function jv(t,e){return t===e||t?.[ho]===e}function at(t={},e,i,o){return on(()=>{var n,a;return Zi(()=>{n=a,a=o?.()||[],ft(()=>{t!==i(...a)&&(e(t,...a),n&&jv(i(...n),t)&&e(null,...n))})}),()=>{Mo(()=>{a&&jv(i(...a),t)&&e(null,...a)})}}),t}function pr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&bs(()=>{Yv(e,o),ta(i.b)}),He(()=>{let n=ft(()=>i.m.map(Im));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{Yv(e,o),ta(i.a)})}function Yv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Hm(e)},set:o=>{i=o}})}};o0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var o0;function Mt(t){Ct===null&&$s("onMount"),Cr&&Ct.l!==null?i0(Ct).m.push(t):He(()=>{let e=ft(t);if(typeof e=="function")return e})}function rn(t){Ct===null&&$s("onDestroy"),Mt(()=>()=>ft(t))}function i0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=ft(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Is=[];function Qn(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=te){let i=null,o=new Set;function n(d){if(ds(t,d)&&(t=d,i)){let l=!Is.length;for(let c of o)c[1](),Is.push(c,t);if(l){for(let c=0;c<Is.length;c+=2)Is[c][0](Is[c+1]);Is.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function si(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 a=e.length<2;return Qn(i,(s,d)=>{let l=!1,c=[],u=0,b=te,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:te},$=n.map((w,x)=>hl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){ta($),b(),l=!1}})}function _e(t){let e;return hl(t,i=>e=i)(),e}var ec=!1,Qu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Fr(void 0),unsubscribe:te};if(o.store!==t&&!(Qu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&Qu in i?_e(t):r(o.source)}function Le(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();Bi(t,Qu,{enumerable:!1,value:!0})})}return[t,e]}function Gu(t){var e=ec;try{return ec=!1,[t(),ec]}finally{ec=e}}var c0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Om(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c0)}var u0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(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];ea(n)&&(n=n());let a=wn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=wn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===ho||e===Ys)return!1;for(let i of t.props)if(ea(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ea(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Wr(...t){return new Proxy({props:t},u0)}function Zv(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Cr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Gu(()=>t[e]):c=t[e];var u=ho in t||Ys in t,b=s&&(wn(t,e)?.set??(u&&e in t&&(W=>t[e]=W)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=ft(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&Bm(e),c=x(),b&&b(c));var k;if(a)k=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var C=(n?v:dr)(()=>t[e]);C.f|=131072,k=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0)return k;if(b){var E=t.$$legacy;return function(W,Q){return arguments.length>0?((!a||!Q||E||l)&&b(Q?k():W),W):k()}}var A=!1,L=!1,I=Fr(c),N=v(()=>{var W=k(),Q=r(I);return A?(A=!1,L=!0,Q):(L=!1,I.v=W)});return s&&r(N),n||(N.equals=cs),function(W,Q){if(el!==null&&(A=L,k(),r(I)),arguments.length>0){let j=Q?r(N):a&&s?le(W):W;if(!N.equals(j)){if(A=!0,D(I,j),w&&p!==void 0&&(p=j),Zv(N))return W;ft(()=>r(N))}return W}return Zv(N)?N.v:r(N)}}var p0;typeof HTMLElement=="function"&&(p0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=f0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=ju(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Mv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Kd(()=>{Zi(()=>{this.$$r=!0;for(let n of nu(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=ju(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ju(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ju(t,e,i,o){let n=i[t]?.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;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 f0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Xv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xv);import{clientChecker as cm}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-core";import{noop as Qh,safeStorage as Z3,throttleFn as X3}from"@vkontakte/videoplayer-shared";import{SeekAction as J3}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as v0,fillWithDefault as g0,VideoQuality as Jv}from"@vkontakte/videoplayer-shared";var h0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:v0.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:Jv.Q_480P,highQualityLimit:Jv.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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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}},eg=t=>g0(t,h0),tg=t=>xs("ui-config",t),Lt=()=>ys("ui-config");var _l="vk_player_debug_panel_opened";var ig="videoplayer",og="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ng=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ag=new Set(["ShiftRight","ShiftLeft"]);var sg=["TIMELINE"],bl=[...sg,"GRAPH_BUTTON"],Yu=[...sg,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),Ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as lg,VERSION as _0}from"@vkontakte/videoplayer-shared";import{VERSION as b0}from"@vkontakte/videoplayer-core";import{VERSION as $0}from"@vkontakte/videoplayer-statistics";var tc="prod",Es="1.1.64-dev.3efb4d41.0";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var dg=Symbol("storeContext"),cg=Symbol("microStoresContext"),ug=(t,e)=>{xs(dg,t),xs(cg,e),tc==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=ys(dg);return lg(t,"Store context is empty!"),t},zi=()=>{let t=ys(cg);return lg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>oc(t,t.getValue(),e),oc=(t,e,i)=>Qn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),pg=(t,e,i)=>{let o=t.info,{width:n,height:a}=_e(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Es} (core: ${b0}, stat: ${$0}, shared: ${_0})`,u=_e(i.state.errorLog$),b=u.length?`
49
49
  `+u.map((C,E)=>{let A=`${E}) Type: ${C.id}
50
50
  `,L=`Message: ${C.message} (${C.thrown})
51
51
  `,I=`Trace: ${C.thrown?.stack}
package/evergreen.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.63-beta.2
3
- * Mon, 02 Jun 2025 14:19:50 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-63/doc/
2
+ * @vkontakte/videoplayer v1.1.64-dev.3efb4d41.0
3
+ * Thu, 05 Jun 2025 11:40:28 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-64/doc/
5
5
  */
6
6
  var Jr="[",ba="[!",$a="]",Nr={};var vi=Symbol(),ni=Symbol("filename"),xm=Symbol("hmr"),wm="http://www.w3.org/1999/xhtml",ou="http://www.w3.org/2000/svg";var Ad=!0;var Sm=globalThis.process?.env?.NODE_ENV,ke=Sm&&!Sm.toLowerCase().startsWith("prod");var ho=Symbol("$state"),Dr=Symbol("$state metadata"),Ys=Symbol("legacy props"),Cm=Symbol("");var ar=Array.isArray,km=Array.prototype.indexOf,Zs=Array.from,nu=Object.keys,Bi=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Md=Object.getOwnPropertyDescriptors,ru=Object.prototype,Tm=Array.prototype,Br=Object.getPrototypeOf;function ea(t){return typeof t=="function"}var te=()=>{};function Im(t){return t()}function ta(t){for(var e=0;e<t.length;e++)t[e]()}var Xs=[],au=[];function Em(){var t=Xs;Xs=[],ta(t)}function s1(){var t=au;au=[],ta(t)}function Mo(t){Xs.length===0&&queueMicrotask(Em),Xs.push(t)}function su(){Xs.length>0&&Em(),au.length>0&&s1()}function Ld(t){return t===this.v}function ds(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Pm(t,e){return t!==e}function cs(t){return!ds(t,this.v)}function Am(){if(ke){let t=new Error(`derived_references_self
7
7
  A derived value cannot reference itself recursively
@@ -45,7 +45,7 @@ ${l}in ${u}`).join("")}
45
45
  `)){let o=_1.exec(i)??b1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function hv(){let t=$1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=h1[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var Gd=Symbol("ADD_OWNER");function ku(t,e,i=!1,o=!1){if(t&&!i){let n=Bo,a=t[Dr];if(a&&!Tu(a,n)){let s=Iu(a);e&&e[ni]!==n[ni]&&!o&&Jm(n[ni],e[ni],s[ni])}}jd(t,e,new Set)}function gu(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let i of t.owners)e.owners.add(i);t=t.parent}}function jd(t,e,i){let o=t?.[Dr];if(o)"owners"in o&&o.owners!=null&&(e?o.owners.add(e):o.owners=null);else if(t&&typeof t=="object"){if(i.has(t))return;if(i.add(t),Gd in t&&t[Gd])Zi(()=>{t[Gd](e)});else{var n=Br(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=vi;Zi(()=>{let d=t[a];s!==d&&(s=d,jd(d,e,i))})}else jd(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)jd(t[a],e,i)}}}function Tu(t,e){return t.owners===null?!0:t.owners.has(e)||ni in e&&[...t.owners].some(i=>i[ni]===e[ni])||t.parent!==null&&Tu(t.parent,e)}function Iu(t){return t?.owners?.values().next().value??Iu(t.parent)}var y1=!1;function tv(t){if(y1)return;let e=hv();if(e&&!Tu(t,e)){let i=Iu(t);i[ni]!==e[ni]?vu(e[ni],i[ni]):vu()}}function $s(t){if(ke){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
47
  https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Ct=null;function ll(t){Ct=t}var Bo=null;function dl(t){Bo=t}function ys(t){return Eu("getContext").get(t)}function xs(t,e){let i=Eu("setContext");return ke&&ft(()=>ku(e,null,!0)),i.set(t,e),e}function ul(){return Eu("getAllContexts")}function H(t,e=!1,i){var o=Ct={p:Ct,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Cr&&!e&&(Ct.l={s:null,u:null,r1:[],r2:Ti(!1)}),Oo(()=>{o.d=!0}),ke&&(Ct.function=i,Bo=i)}function F(t){let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=ht,o=At;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Oi(a.effect),ji(a.reaction),on(a.fn)}}finally{Oi(i),ji(o)}}Ct=e.p,ke&&(Bo=e.p?.function??null),e.m=!0}return t||{}}function Tr(){return!Cr||Ct!==null&&Ct.l===null}function Eu(t){return Ct===null&&$s(t),Ct.c??=new Map(w1(Ct)||void 0)}function w1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var S1=/\r/g;function _v(t){t=t.replace(S1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var C1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $v(t){return C1.includes(t)}var k1=["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 T1={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 yv(t){return t=t.toLowerCase(),T1[t]??t}var Nw=[...k1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var I1=["touchstart","touchmove"];function xv(t){return I1.includes(t)}var E1=["textarea","script","style","title"];function wv(t){return E1.includes(t)}function Pu(t){return t?.replace(/\//g,"/\u200B")}var Sv=new Map;function Cv(t,e){var i=Sv.get(t);i||(i=new Set,Sv.set(t,i)),i.add(e)}function Au(t,e){if(e){let i=document.body;t.autofocus=!0,Mo(()=>{document.activeElement===i&&t.focus()})}}function pl(t){var e=At,i=ht;ji(null),Oi(null);try{return t()}finally{ji(e),Oi(i)}}var Mu=new Set,Yd=new Set;function Pa(t){if(!Qe)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 Lu(t,e,i,o={}){function n(a){if(o.capture||ws.call(e,a),!a.cancelBubble)return pl(()=>i?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Mo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function gt(t,e,i,o,n){var a={capture:o,passive:n},s=Lu(t,e,i,a);(e===document.body||e===window||e===document)&&Oo(()=>{e.removeEventListener(t,s,a)})}function it(t){for(var e=0;e<t.length;e++)Mu.add(t[e]);for(var i of Yd)i(t)}function ws(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],a=n[0]||t.target,s=0,d=t.__root;if(d){var l=n.indexOf(d);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var c=n.indexOf(e);if(c===-1)return;l<=c&&(s=l)}if(a=n[s]||t.target,a!==e){Bi(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=At,b=ht;ji(null),Oi(null);try{for(var p,$=[];a!==null;){var w=a.assignedSlot||a.parentNode||a.host||null;try{var x=a["__"+o];if(x!=null&&(!a.disabled||t.target===a))if(ar(x)){var[k,...C]=x;k.apply(a,[t,...C])}else x.call(a,t)}catch(E){p?$.push(E):p=E}if(t.cancelBubble||w===e||w===null)break;a=w}if(p){for(let E of $)queueMicrotask(()=>{throw E});throw p}}finally{t.__root=e,delete t.currentTarget,ji(u),Oi(b)}}}var A1;function kv(){A1=void 0}function Ss(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Xi(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Qe)return Xi(lt,null),lt;n===void 0&&(n=Ss(a?t:"<!>"+t),i||(n=ai(n)));var s=o||il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=ai(s),l=s.lastChild;Xi(d,l)}else Xi(s,s);return s}}function ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Qe)return Xi(lt,null),lt;if(!s){var d=Ss(a),l=ai(d);if(n)for(s=document.createDocumentFragment();ai(l);)s.appendChild(ai(l));else s=ai(l)}var c=s.cloneNode(!0);if(n){var u=ai(c),b=c.lastChild;Xi(u,b)}else Xi(c,c);return c}}function Ir(t=""){if(!Qe){var e=No(t+"");return Xi(e,e),e}var i=lt;return i.nodeType!==3&&(i.before(i=No()),ri(i)),Xi(i,i),i}function Be(){if(Qe)return Xi(lt,null),lt;var t=document.createDocumentFragment(),e=document.createComment(""),i=No();return t.append(e,i),Xi(e,i),t}function _(t,e){if(Qe){ht.nodes_end=lt,yi();return}t!==null&&t.before(e)}var fl=!0;function Zd(t){fl=t}function ue(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function qr(t,e){return Iv(t,e)}function Ru(t,e){Bd(),e.intro=e.intro??!1;let i=e.target,o=Qe,n=lt;try{for(var a=ai(i);a&&(a.nodeType!==8||a.data!==Jr);)a=lo(a);if(!a)throw Nr;Fi(!0),ri(a),yi();let s=Iv(t,{...e,anchor:a});if(lt===null||lt.nodeType!==8||lt.data!==$a)throw ka(),Nr;return Fi(!1),s}catch(s){if(s===Nr)return e.recover===!1&&Nm(),Bd(),ol(i),Fi(!1),qr(t,e);throw s}finally{Fi(o),ri(n),kv()}}var Cs=new Map;function Iv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Bd();var d=new Set,l=b=>{for(var p=0;p<b.length;p++){var $=b[p];if(!d.has($)){d.add($);var w=xv($);e.addEventListener($,ws,{passive:w});var x=Cs.get($);x===void 0?(document.addEventListener($,ws,{passive:w}),Cs.set($,1)):Cs.set($,x+1)}}};l(Zs(Mu)),Yd.add(l);var c=void 0,u=vv(()=>{var b=i??e.appendChild(No());return Ii(()=>{if(a){H({});var p=Ct;p.c=a}n&&(o.$$events=n),Qe&&Xi(b,null),fl=s,c=t(b,o)||{},fl=!0,Qe&&(ht.nodes_end=lt),a&&F()}),()=>{for(var p of d){e.removeEventListener(p,ws);var $=Cs.get(p);--$===0?(document.removeEventListener(p,ws),Cs.delete(p)):Cs.set(p,$)}Yd.delete(l),b!==i&&b.parentNode?.removeChild(b)}});return Vu.set(c,u),c}var Vu=new WeakMap;function Aa(t,e){let i=Vu.get(t);return i?(Vu.delete(t),i(e)):(ke&&Xm(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Qe&&i===0&&yi();var n=t,a=null,s=null,d=vi,l=i>0?65536:0,c=!1;let u=(p,$=!0)=>{c=!0,b($,p)},b=(p,$)=>{if(d===(d=p))return;let w=!1;if(Qe&&o!==-1){if(i===0){let k=n.data;k===Jr?o=0:k===ba?o=1/0:(o=parseInt(k.substring(1)),o!==o&&(o=d?1/0:-1))}let x=o>i;!!d===x&&(n=vs(),ri(n),Fi(!1),w=!0,o=-1)}d?(a?zr(a):$&&(a=Ii(()=>$(n))),s&&nn(s,()=>{s=null})):(s?zr(s):$&&(s=Ii(()=>$(n,[i+1,o]))),a&&nn(a,()=>{a=null})),w&&Fi(!0)};Ui(()=>{c=!1,e(u),c||b(null,null)},l),Qe&&(n=lt)}function Ma(t,e,i){Qe&&yi();var o=t,n=vi,a,s=Tr()?Pm:ds;Ui(()=>{s(n,n=e())&&(a&&nn(a),a=Ii(()=>i(o)))}),Qe&&(o=lt)}var na=null;function Bu(t){na=t}function ml(t,e){return e}function R1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Qd(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ol(l),l.append(i),o.clear(),oa(t,e[0].prev,e[a-1].next)}Cu(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),oa(t,u.prev,u.next)),Hi(u.e,!d)}})}function ci(t,e,i,o,n,a=null){var s=t,d={flags:e,items:new Map,first:null},l=(e&4)!==0;if(l){var c=t;s=Qe?ri(ai(c)):c.appendChild(No())}Qe&&yi();var u=null,b=!1,p=dr(()=>{var $=i();return ar($)?$:$==null?[]:Zs($)});Ui(()=>{var $=r(p),w=$.length;if(b&&w===0)return;b=w===0;let x=!1;if(Qe){var k=s.data===ba;k!==(w===0)&&(s=vs(),ri(s),Fi(!1),x=!0)}if(Qe){for(var C=null,E,A=0;A<w;A++){if(lt.nodeType===8&&lt.data===$a){s=lt,x=!0,Fi(!1);break}var L=$[A],I=o(L,A);E=Av(lt,d,C,null,L,I,A,n,e,i),d.items.set(I,E),C=E}w>0&&ri(vs())}Qe||N1($,d,s,n,e,o,i),a!==null&&(w===0?u?zr(u):u=Ii(()=>a(s)):u!==null&&nn(u,()=>{u=null})),x&&Fi(!0),r(p)}),Qe&&(s=lt)}function N1(t,e,i,o,n,a,s){var d=(n&8)!==0,l=(n&3)!==0,c=t.length,u=e.items,b=e.first,p=b,$,w=null,x,k=[],C=[],E,A,L,I;if(d)for(I=0;I<c;I+=1)E=t[I],A=a(E,I),L=u.get(A),L!==void 0&&(L.a?.measure(),(x??=new Set).add(L));for(I=0;I<c;I+=1){if(E=t[I],A=a(E,I),L=u.get(A),L===void 0){var N=p?p.e.nodes_start:i;w=Av(N,e,w,w===null?e.first:w.next,E,A,I,o,n,s),u.set(A,w),k=[],C=[],p=w.next;continue}if(l&&D1(L,E,I,n),(L.e.f&8192)!==0&&(zr(L.e),d&&(L.a?.unfix(),(x??=new Set).delete(L))),L!==p){if($!==void 0&&$.has(L)){if(k.length<C.length){var W=C[0],Q;w=W.prev;var j=k[0],re=k[k.length-1];for(Q=0;Q<k.length;Q+=1)Ev(k[Q],W,i);for(Q=0;Q<C.length;Q+=1)$.delete(C[Q]);oa(e,j.prev,re.next),oa(e,w,j),oa(e,re,W),p=W,w=re,I-=1,k=[],C=[]}else $.delete(L),Ev(L,p,i),oa(e,L.prev,L.next),oa(e,L,w===null?e.first:w.next),oa(e,w,L),w=L;continue}for(k=[],C=[];p!==null&&p.k!==A;)(p.e.f&8192)===0&&($??=new Set).add(p),C.push(p),p=p.next;if(p===null)continue;L=p}k.push(L),w=L,p=L.next}if(p!==null||$!==void 0){for(var ce=$===void 0?[]:Zs($);p!==null;)(p.e.f&8192)===0&&ce.push(p),p=p.next;var X=ce.length;if(X>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(I=0;I<X;I+=1)ce[I].a?.measure();for(I=0;I<X;I+=1)ce[I].a?.fix()}R1(e,ce,ge,u)}}d&&Mo(()=>{if(x!==void 0)for(L of x)L.a?.apply()}),ht.first=e.first&&e.first.e,ht.last=w&&w.e}function D1(t,e,i,o){(o&1)!==0&&ps(t.v,e),(o&2)!==0?ps(t.i,i):t.i=i}function Av(t,e,i,o,n,a,s,d,l,c){var u=na,b=(l&1)!==0,p=(l&16)===0,$=b?p?Fr(n):Ti(n):n,w=(l&2)===0?s:Ti(s);ke&&b&&($.debug=()=>{var k=typeof w=="number"?s:w.v;c()[k]});var x={i:w,v:$,k:a,a:null,e:null,prev:i,next:o};na=x;try{return x.e=Ii(()=>d(t,$,w,c),Qe),x.e.prev=i&&i.e,x.e.next=o&&o.e,i===null?e.first=x:(i.next=x,i.e.next=x.e),o!==null&&(o.prev=x,o.e.prev=x.e),x}finally{na=u}}function Ev(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=lo(a);n.before(a),a=s}}function oa(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 B1(t,e,i){if(!e||e===_v(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Bo?.[ni]&&(o=`in ${Bo[ni]}`),Zm(Pu(o))}function vl(t,e,i,o,n){var a=t,s="",d;Ui(()=>{if(s===(s=e()??"")){Qe&&yi();return}d!==void 0&&(Hi(d),d=void 0),s!==""&&(d=Ii(()=>{if(Qe){for(var l=lt.data,c=yi(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=lo(c);if(c===null)throw ka(),Nr;ke&&!n&&B1(c.parentNode,l,s),Xi(lt,u),a=ri(c);return}var b=s+"";i?b=`<svg>${b}</svg>`:o&&(b=`<math>${b}</math>`);var p=Ss(b);if((i||o)&&(p=ai(p)),Xi(ai(p),p.lastChild),i||o)for(;ai(p);)a.before(ai(p));else a.before(p)}))})}function pe(t,e,...i){var o=t,n=te,a;Ui(()=>{n!==(n=e())&&(a&&(Hi(a),a=null),ke&&n==null&&Dm(),a=Ii(()=>n(o,...i)))},65536),Qe&&(o=lt)}function ui(t,e,i){Qe&&yi();var o=t,n,a;Ui(()=>{n!==(n=e())&&(a&&(nn(a),a=null),n&&(a=Ii(()=>i(o,n))))},65536),Qe&&(o=lt)}function La(t,e,i,o,n,a){let s=Qe;Qe&&yi();var d=ke&&a&&Ct?.function[ni],l,c,u=null;Qe&&lt.nodeType===1&&(u=lt,yi());var b=Qe?lt:t,p,$=na;Ui(()=>{let w=e()||null;var x=n?n():i||w==="svg"?ou:null;if(w!==l){var k=na;Bu($),p&&(w===null?nn(p,()=>{p=null,c=null}):w===c?zr(p):(Hi(p),Zd(!1))),w&&w!==c&&(p=Ii(()=>{if(u=Qe?u:x?document.createElementNS(x,w):document.createElement(w),ke&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Xi(u,u),o){Qe&&wv(w)&&u.append(document.createComment(""));var C=Qe?ai(u):u.appendChild(No());Qe&&(C===null?Fi(!1):ri(C)),o(u,C)}ht.nodes_end=u,b.before(u)})),l=w,l&&(c=l),Zd(!0),Bu(k)}},65536),s&&(Fi(!0),ri(b))}var Hu;function Mv(t){return Hu=t.target,new Ou(t)}var Ou=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=Fr(s);return i.set(a,d),d};let n=new Proxy({...e.props||{},$$events:{}},{get(a,s){return r(i.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===Ys?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return D(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?Ru:qr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&_s(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Bi(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(n,a)},this.#e.$destroy=()=>{Aa(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};function z(t,e){Mo(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Hu?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),ke&&Cv(e.hash,n)}})}function Lv(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=Lv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Vv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Lv(t))&&(o&&(o+=" "),o+=e);return o}function gl(t){return typeof t=="object"?Vv(t):t??""}var Rv=[...`
48
- \r\f\xA0\v\uFEFF`];function Dv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Rv.includes(o[s-1]))&&(d===o.length||Rv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Nv(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Fu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bv(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Fu)),n&&l.push(...Object.keys(n).map(Fu));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=Fu(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=Nv(o)),n&&(i+=Nv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Qe||s!==i){var d=Dv(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Uu(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function et(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=Bv(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Uu(t,i?.[0],o[0]),Uu(t,i?.[1],o[1],"important")):Uu(t,i,o));return o}var ks=Symbol("class"),Ts=Symbol("style"),Fv=Symbol("is custom element"),Uv=Symbol("is html");function zv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=qv(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||W1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Cm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Wv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $e(t,e,i,o,n=!1){var a=qv(t),s=a[Fv],d=!a[Uv];let l=Qe&&s;l&&Fi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=gl(i.class):(o||i[ks])&&(i.class=null),i[Ts]&&(i.style??=null);var p=Wv(t);for(let L in i){let I=i[L];if(u&&L==="value"&&I==null){t.value=t.__value="",c[L]=I;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,I,o,e?.[ks],i[ks]),c[L]=I,c[ks]=i[ks];continue}if(L==="style"){et(t,I,e?.[Ts],i[Ts]),c[L]=I,c[Ts]=i[Ts];continue}var w=c[L];if(I!==w){c[L]=I;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,Q=L.slice(2);var k=$v(Q);if(bv(Q)&&(Q=Q.slice(0,-7),N.capture=!0),!k&&w){if(I!=null)continue;t.removeEventListener(Q,c[W],N),c[W]=null}if(I!=null)if(k)t[`__${Q}`]=I,it([Q]);else{let j=function(re){c[L].call(this,re)};var A=j;c[W]=Lu(Q,t,j,N)}else k&&(t[`__${Q}`]=void 0)}else if(L==="style")De(t,L,I);else if(L==="autofocus")Au(t,!!I);else if(!s&&(L==="__value"||L==="value"&&I!=null))t.value=t.__value=I;else if(L==="selected"&&u)zv(t,I);else{var C=L;d||(C=yv(C));var E=C==="defaultValue"||C==="defaultChecked";if(I==null&&!s&&!E)if(a[L]=null,C==="value"||C==="checked"){let N=t,W=e===void 0;if(C==="value"){let Q=N.defaultValue;N.removeAttribute(C),N.defaultValue=Q,N.value=N.__value=W?Q:null}else{let Q=N.defaultChecked;N.removeAttribute(C),N.defaultChecked=Q,N.checked=W?Q:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(s||typeof I!="string")?t[C]=I:typeof I!="function"&&De(t,C,I,n)}}}return l&&Fi(!0),c}function qv(t){return t.__attributes??={[Fv]:t.nodeName.includes("-"),[Uv]:t.namespaceURI===wm}}var Ov=new Map;function Wv(t){var e=Ov.get(t.nodeName);if(e)return e;Ov.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Md(o);for(var a in i)i[a].set&&e.push(a);o=Br(o)}return e}function W1(t,e,i){ke&&(e==="srcset"&&K1(t,i)||zu(t.getAttribute(e)??"",i)||Ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Hv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K1(t,e){var i=Hv(t.srcset),o=Hv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(zu(i[s][0],n)||zu(n,i[s][0])))}var Q1=Ad?()=>performance.now():()=>Date.now(),ur={tick:t=>(Ad?requestAnimationFrame:te)(t),now:()=>Q1(),tasks:new Set};function Kv(){let t=ur.now();ur.tasks.forEach(e=>{e.c(t)||(ur.tasks.delete(e),e.f())}),ur.tasks.size!==0&&ur.tick(Kv)}function Qv(t){let e;return ur.tasks.size===0&&ur.tick(Kv),{promise:new Promise(i=>{ur.tasks.add(e={c:t,f:i})}),abort(){ur.tasks.delete(e)}}}function Xd(t,e){pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function Z1(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 Gv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=Z1(n.trim());e[s]=a.trim()}return e}var X1=t=>t;function Wu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var A=At,L=ht;ji(null),Oi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{ji(A),Oi(L)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),Xd(e,"introstart"),p=qu(e,w(),$,1,()=>{Xd(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,Xd(e,"outrostart"),$=qu(e,w(),p,0,()=>{Xd(e,"outroend"),A?.()})},stop:()=>{p?.abort(),$?.abort()}},k=ht;if((k.transitions??=[]).push(x),n&&fl){var C=d;if(!C){for(var E=k.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&on(()=>{ft(()=>x.in())})}}function qu(t,e,i,o,n){var a=o===1;if(ea(e)){var s,d=!1;return Mo(()=>{if(!d){var k=e({direction:a?"in":"out"});s=qu(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=X1}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=Gv(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var C=o-k,E=e.duration*Math.abs(C),A=[];if(E>0){var L=!1;if(c)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var W=k+C*b(N/I),Q=Gv(c(W,1-W));A.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var j=x.currentTime;return k+C*b(j/E)},u&&Qv(()=>{if(x.playState!=="running")return!1;var j=w();return u(j,1-j),!0})}x=t.animate(A,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var Ku=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var t0=new Ku({box:"border-box"});function Er(t,e,i){var o=t0.observe(t,()=>i(t[e]));on(()=>(ft(()=>i(t[e])),o))}function jv(t,e){return t===e||t?.[ho]===e}function at(t={},e,i,o){return on(()=>{var n,a;return Zi(()=>{n=a,a=o?.()||[],ft(()=>{t!==i(...a)&&(e(t,...a),n&&jv(i(...n),t)&&e(null,...n))})}),()=>{Mo(()=>{a&&jv(i(...a),t)&&e(null,...a)})}}),t}function pr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&bs(()=>{Yv(e,o),ta(i.b)}),He(()=>{let n=ft(()=>i.m.map(Im));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{Yv(e,o),ta(i.a)})}function Yv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Hm(e)},set:o=>{i=o}})}};o0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var o0;function Mt(t){Ct===null&&$s("onMount"),Cr&&Ct.l!==null?i0(Ct).m.push(t):He(()=>{let e=ft(t);if(typeof e=="function")return e})}function rn(t){Ct===null&&$s("onDestroy"),Mt(()=>()=>ft(t))}function i0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=ft(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Is=[];function Qn(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=te){let i=null,o=new Set;function n(d){if(ds(t,d)&&(t=d,i)){let l=!Is.length;for(let c of o)c[1](),Is.push(c,t);if(l){for(let c=0;c<Is.length;c+=2)Is[c][0](Is[c+1]);Is.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function si(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 a=e.length<2;return Qn(i,(s,d)=>{let l=!1,c=[],u=0,b=te,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:te},$=n.map((w,x)=>hl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){ta($),b(),l=!1}})}function _e(t){let e;return hl(t,i=>e=i)(),e}var ec=!1,Qu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Fr(void 0),unsubscribe:te};if(o.store!==t&&!(Qu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&Qu in i?_e(t):r(o.source)}function Le(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();Bi(t,Qu,{enumerable:!1,value:!0})})}return[t,e]}function Gu(t){var e=ec;try{return ec=!1,[t(),ec]}finally{ec=e}}var c0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Om(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c0)}var u0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(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];ea(n)&&(n=n());let a=wn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=wn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===ho||e===Ys)return!1;for(let i of t.props)if(ea(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ea(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Wr(...t){return new Proxy({props:t},u0)}function Zv(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Cr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Gu(()=>t[e]):c=t[e];var u=ho in t||Ys in t,b=s&&(wn(t,e)?.set??(u&&e in t&&(W=>t[e]=W)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=ft(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&Bm(e),c=x(),b&&b(c));var k;if(a)k=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var C=(n?v:dr)(()=>t[e]);C.f|=131072,k=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0)return k;if(b){var E=t.$$legacy;return function(W,Q){return arguments.length>0?((!a||!Q||E||l)&&b(Q?k():W),W):k()}}var A=!1,L=!1,I=Fr(c),N=v(()=>{var W=k(),Q=r(I);return A?(A=!1,L=!0,Q):(L=!1,I.v=W)});return s&&r(N),n||(N.equals=cs),function(W,Q){if(el!==null&&(A=L,k(),r(I)),arguments.length>0){let j=Q?r(N):a&&s?le(W):W;if(!N.equals(j)){if(A=!0,D(I,j),w&&p!==void 0&&(p=j),Zv(N))return W;ft(()=>r(N))}return W}return Zv(N)?N.v:r(N)}}var p0;typeof HTMLElement=="function"&&(p0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=f0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=ju(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Mv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Kd(()=>{Zi(()=>{this.$$r=!0;for(let n of nu(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=ju(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ju(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ju(t,e,i,o){let n=i[t]?.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;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 f0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Xv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xv);import{clientChecker as cm}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-core/evergreen";import{noop as Qh,safeStorage as Z3,throttleFn as X3}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as J3}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as v0,fillWithDefault as g0,VideoQuality as Jv}from"@vkontakte/videoplayer-shared/evergreen";var h0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:v0.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:Jv.Q_480P,highQualityLimit:Jv.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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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}},eg=t=>g0(t,h0),tg=t=>xs("ui-config",t),Lt=()=>ys("ui-config");var _l="vk_player_debug_panel_opened";var ig="videoplayer",og="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ng=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ag=new Set(["ShiftRight","ShiftLeft"]);var sg=["TIMELINE"],bl=[...sg,"GRAPH_BUTTON"],Yu=[...sg,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),Ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as lg,VERSION as _0}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as b0}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as $0}from"@vkontakte/videoplayer-statistics/evergreen";var tc="prod",Es="1.1.63-beta.2";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var dg=Symbol("storeContext"),cg=Symbol("microStoresContext"),ug=(t,e)=>{xs(dg,t),xs(cg,e),tc==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=ys(dg);return lg(t,"Store context is empty!"),t},zi=()=>{let t=ys(cg);return lg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>oc(t,t.getValue(),e),oc=(t,e,i)=>Qn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),pg=(t,e,i)=>{let o=t.info,{width:n,height:a}=_e(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Es} (core: ${b0}, stat: ${$0}, shared: ${_0})`,u=_e(i.state.errorLog$),b=u.length?`
48
+ \r\f\xA0\v\uFEFF`];function Dv(t,e,i){var o=t==null?"":""+t;if(e&&(o=o?o+" "+e:e),i){for(var n in i)if(i[n])o=o?o+" "+n:n;else if(o.length)for(var a=n.length,s=0;(s=o.indexOf(n,s))>=0;){var d=s+a;(s===0||Rv.includes(o[s-1]))&&(d===o.length||Rv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Nv(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var a=t[n];a!=null&&a!==""&&(o+=" "+n+": "+a+i)}return o}function Fu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bv(t,e){if(e){var i="",o,n;if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,d=!1,l=[];o&&l.push(...Object.keys(o).map(Fu)),n&&l.push(...Object.keys(n).map(Fu));var c=0,u=-1;let x=t.length;for(var b=0;b<x;b++){var p=t[b];if(d?p==="/"&&t[b-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[b+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&u===-1)u=b;else if(p===";"||b===x-1){if(u!==-1){var $=Fu(t.substring(c,u).trim());if(!l.includes($)){p!==";"&&b++;var w=t.substring(c,b).trim();i+=" "+w+";"}}c=b+1,u=-1}}}}return o&&(i+=Nv(o)),n&&(i+=Nv(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,a){var s=t.__className;if(Qe||s!==i){var d=Dv(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Uu(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function et(t,e,i,o){var n=t.__style;if(Qe||n!==e){var a=Bv(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Uu(t,i?.[0],o[0]),Uu(t,i?.[1],o[1],"important")):Uu(t,i,o));return o}var ks=Symbol("class"),Ts=Symbol("style"),Fv=Symbol("is custom element"),Uv=Symbol("is html");function zv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=qv(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||W1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Cm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Wv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function $e(t,e,i,o,n=!1){var a=qv(t),s=a[Fv],d=!a[Uv];let l=Qe&&s;l&&Fi(!1);var c=e||{},u=t.tagName==="OPTION";for(var b in e)b in i||(i[b]=null);i.class?i.class=gl(i.class):(o||i[ks])&&(i.class=null),i[Ts]&&(i.style??=null);var p=Wv(t);for(let L in i){let I=i[L];if(u&&L==="value"&&I==null){t.value=t.__value="",c[L]=I;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,I,o,e?.[ks],i[ks]),c[L]=I,c[ks]=i[ks];continue}if(L==="style"){et(t,I,e?.[Ts],i[Ts]),c[L]=I,c[Ts]=i[Ts];continue}var w=c[L];if(I!==w){c[L]=I;var x=L[0]+L[1];if(x!=="$$")if(x==="on"){let N={},W="$$"+L,Q=L.slice(2);var k=$v(Q);if(bv(Q)&&(Q=Q.slice(0,-7),N.capture=!0),!k&&w){if(I!=null)continue;t.removeEventListener(Q,c[W],N),c[W]=null}if(I!=null)if(k)t[`__${Q}`]=I,it([Q]);else{let j=function(re){c[L].call(this,re)};var A=j;c[W]=Lu(Q,t,j,N)}else k&&(t[`__${Q}`]=void 0)}else if(L==="style")De(t,L,I);else if(L==="autofocus")Au(t,!!I);else if(!s&&(L==="__value"||L==="value"&&I!=null))t.value=t.__value=I;else if(L==="selected"&&u)zv(t,I);else{var C=L;d||(C=yv(C));var E=C==="defaultValue"||C==="defaultChecked";if(I==null&&!s&&!E)if(a[L]=null,C==="value"||C==="checked"){let N=t,W=e===void 0;if(C==="value"){let Q=N.defaultValue;N.removeAttribute(C),N.defaultValue=Q,N.value=N.__value=W?Q:null}else{let Q=N.defaultChecked;N.removeAttribute(C),N.defaultChecked=Q,N.checked=W?Q:!1}}else t.removeAttribute(L);else E||p.includes(C)&&(s||typeof I!="string")?t[C]=I:typeof I!="function"&&De(t,C,I,n)}}}return l&&Fi(!0),c}function qv(t){return t.__attributes??={[Fv]:t.nodeName.includes("-"),[Uv]:t.namespaceURI===wm}}var Ov=new Map;function Wv(t){var e=Ov.get(t.nodeName);if(e)return e;Ov.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Md(o);for(var a in i)i[a].set&&e.push(a);o=Br(o)}return e}function W1(t,e,i){ke&&(e==="srcset"&&K1(t,i)||zu(t.getAttribute(e)??"",i)||Ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function zu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Hv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K1(t,e){var i=Hv(t.srcset),o=Hv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(zu(i[s][0],n)||zu(n,i[s][0])))}var Q1=Ad?()=>performance.now():()=>Date.now(),ur={tick:t=>(Ad?requestAnimationFrame:te)(t),now:()=>Q1(),tasks:new Set};function Kv(){let t=ur.now();ur.tasks.forEach(e=>{e.c(t)||(ur.tasks.delete(e),e.f())}),ur.tasks.size!==0&&ur.tick(Kv)}function Qv(t){let e;return ur.tasks.size===0&&ur.tick(Kv),{promise:new Promise(i=>{ur.tasks.add(e={c:t,f:i})}),abort(){ur.tasks.delete(e)}}}function Xd(t,e){pl(()=>{t.dispatchEvent(new CustomEvent(e))})}function Z1(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 Gv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=Z1(n.trim());e[s]=a.trim()}return e}var X1=t=>t;function Wu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,b=e.style.overflow,p,$;function w(){var A=At,L=ht;ji(null),Oi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{ji(A),Oi(L)}}var x={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||p?.abort(),Xd(e,"introstart"),p=qu(e,w(),$,1,()=>{Xd(e,"introend"),p?.abort(),p=c=void 0,e.style.overflow=b})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,Xd(e,"outrostart"),$=qu(e,w(),p,0,()=>{Xd(e,"outroend"),A?.()})},stop:()=>{p?.abort(),$?.abort()}},k=ht;if((k.transitions??=[]).push(x),n&&fl){var C=d;if(!C){for(var E=k.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);C=!E||(E.f&32768)!==0}C&&on(()=>{ft(()=>x.in())})}}function qu(t,e,i,o,n){var a=o===1;if(ea(e)){var s,d=!1;return Mo(()=>{if(!d){var k=e({direction:a?"in":"out"});s=qu(t,k,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:b=X1}=e;var p=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=Gv(c(0,1));p.push($,$)}var w=()=>1-o,x=t.animate(p,{duration:l});return x.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var C=o-k,E=e.duration*Math.abs(C),A=[];if(E>0){var L=!1;if(c)for(var I=Math.ceil(E/16.666666666666668),N=0;N<=I;N+=1){var W=k+C*b(N/I),Q=Gv(c(W,1-W));A.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),w=()=>{var j=x.currentTime;return k+C*b(j/E)},u&&Qv(()=>{if(x.playState!=="running")return!1;var j=w();return u(j,1-j),!0})}x=t.animate(A,{duration:E,fill:"forwards"}),x.onfinish=()=>{w=()=>o,u?.(o,1-o),n()}},{abort:()=>{x&&(x.cancel(),x.effect=null,x.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>w()}}var Ku=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var t0=new Ku({box:"border-box"});function Er(t,e,i){var o=t0.observe(t,()=>i(t[e]));on(()=>(ft(()=>i(t[e])),o))}function jv(t,e){return t===e||t?.[ho]===e}function at(t={},e,i,o){return on(()=>{var n,a;return Zi(()=>{n=a,a=o?.()||[],ft(()=>{t!==i(...a)&&(e(t,...a),n&&jv(i(...n),t)&&e(null,...n))})}),()=>{Mo(()=>{a&&jv(i(...a),t)&&e(null,...a)})}}),t}function pr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&bs(()=>{Yv(e,o),ta(i.b)}),He(()=>{let n=ft(()=>i.m.map(Im));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{Yv(e,o),ta(i.a)})}function Yv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(ke){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Hm(e)},set:o=>{i=o}})}};o0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var o0;function Mt(t){Ct===null&&$s("onMount"),Cr&&Ct.l!==null?i0(Ct).m.push(t):He(()=>{let e=ft(t);if(typeof e=="function")return e})}function rn(t){Ct===null&&$s("onDestroy"),Mt(()=>()=>ft(t))}function i0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=ft(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Is=[];function Qn(t,e){return{subscribe:ne(t,e).subscribe}}function ne(t,e=te){let i=null,o=new Set;function n(d){if(ds(t,d)&&(t=d,i)){let l=!Is.length;for(let c of o)c[1](),Is.push(c,t);if(l){for(let c=0;c<Is.length;c+=2)Is[c][0](Is[c+1]);Is.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function si(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 a=e.length<2;return Qn(i,(s,d)=>{let l=!1,c=[],u=0,b=te,p=()=>{if(u)return;b();let w=e(o?c[0]:c,s,d);a?s(w):b=typeof w=="function"?w:te},$=n.map((w,x)=>hl(w,k=>{c[x]=k,u&=~(1<<x),l&&p()},()=>{u|=1<<x}));return l=!0,p(),function(){ta($),b(),l=!1}})}function _e(t){let e;return hl(t,i=>e=i)(),e}var ec=!1,Qu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Fr(void 0),unsubscribe:te};if(o.store!==t&&!(Qu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&Qu in i?_e(t):r(o.source)}function Le(){let t={};function e(){Oo(()=>{for(var i in t)t[i].unsubscribe();Bi(t,Qu,{enumerable:!1,value:!0})})}return[t,e]}function Gu(t){var e=ec;try{return ec=!1,[t(),ec]}finally{ec=e}}var c0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return ke&&Om(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},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 Te(t,e,i){return new Proxy(ke?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c0)}var u0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(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];ea(n)&&(n=n());let a=wn(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ea(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=wn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===ho||e===Ys)return!1;for(let i of t.props)if(ea(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ea(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Wr(...t){return new Proxy({props:t},u0)}function Zv(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Cr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Gu(()=>t[e]):c=t[e];var u=ho in t||Ys in t,b=s&&(wn(t,e)?.set??(u&&e in t&&(W=>t[e]=W)))||void 0,p=o,$=!0,w=!1,x=()=>(w=!0,$&&($=!1,d?p=ft(o):p=o),p);c===void 0&&o!==void 0&&(b&&a&&Bm(e),c=x(),b&&b(c));var k;if(a)k=()=>{var W=t[e];return W===void 0?x():($=!0,w=!1,W)};else{var C=(n?v:dr)(()=>t[e]);C.f|=131072,k=()=>{var W=r(C);return W!==void 0&&(p=void 0),W===void 0?p:W}}if((i&4)===0)return k;if(b){var E=t.$$legacy;return function(W,Q){return arguments.length>0?((!a||!Q||E||l)&&b(Q?k():W),W):k()}}var A=!1,L=!1,I=Fr(c),N=v(()=>{var W=k(),Q=r(I);return A?(A=!1,L=!0,Q):(L=!1,I.v=W)});return s&&r(N),n||(N.equals=cs),function(W,Q){if(el!==null&&(A=L,k(),r(I)),arguments.length>0){let j=Q?r(N):a&&s?le(W):W;if(!N.equals(j)){if(A=!0,D(I,j),w&&p!==void 0&&(p=j),Zv(N))return W;ft(()=>r(N))}return W}return Zv(N)?N.v:r(N)}}var p0;typeof HTMLElement=="function"&&(p0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),_(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=f0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=ju(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Mv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Kd(()=>{Zi(()=>{this.$$r=!0;for(let n of nu(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=ju(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ju(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ju(t,e,i,o){let n=i[t]?.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;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 f0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Xv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xv);import{clientChecker as cm}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-core/evergreen";import{noop as Qh,safeStorage as Z3,throttleFn as X3}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as J3}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as v0,fillWithDefault as g0,VideoQuality as Jv}from"@vkontakte/videoplayer-shared/evergreen";var h0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:v0.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:Jv.Q_480P,highQualityLimit:Jv.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,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!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,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},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}},eg=t=>g0(t,h0),tg=t=>xs("ui-config",t),Lt=()=>ys("ui-config");var _l="vk_player_debug_panel_opened";var ig="videoplayer",og="videoplayer";var Pr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ng=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ag=new Set(["ShiftRight","ShiftLeft"]);var sg=["TIMELINE"],bl=[...sg,"GRAPH_BUTTON"],Yu=[...sg,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Ar=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ar||{}),Ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as lg,VERSION as _0}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as b0}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as $0}from"@vkontakte/videoplayer-statistics/evergreen";var tc="prod",Es="1.1.64-dev.3efb4d41.0";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var dg=Symbol("storeContext"),cg=Symbol("microStoresContext"),ug=(t,e)=>{xs(dg,t),xs(cg,e),tc==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=ys(dg);return lg(t,"Store context is empty!"),t},zi=()=>{let t=ys(cg);return lg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>oc(t,t.getValue(),e),oc=(t,e,i)=>Qn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),pg=(t,e,i)=>{let o=t.info,{width:n,height:a}=_e(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Es} (core: ${b0}, stat: ${$0}, shared: ${_0})`,u=_e(i.state.errorLog$),b=u.length?`
49
49
  `+u.map((C,E)=>{let A=`${E}) Type: ${C.id}
50
50
  `,L=`Message: ${C.message} (${C.thrown})
51
51
  `,I=`Trace: ${C.thrown?.stack}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.63-beta.2",
3
+ "version": "1.1.64-dev.3efb4d41.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -55,9 +55,9 @@
55
55
  ],
56
56
  "dependencies": {
57
57
  "@adtech/rbadman": "2.2.57",
58
- "@vkontakte/videoplayer-core": "2.0.133-beta.2",
59
- "@vkontakte/videoplayer-interactive": "1.0.38-beta.2",
60
- "@vkontakte/videoplayer-shared": "1.0.61-beta.2",
61
- "@vkontakte/videoplayer-statistics": "1.0.79-beta.2"
58
+ "@vkontakte/videoplayer-core": "2.0.134-dev.ca4b9a20.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.39-dev.2be73400.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.62-dev.656a0916.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.80-dev.19ee35de.0"
62
62
  }
63
63
  }