@vkontakte/videoplayer 1.1.60-dev.901a385a.0 → 1.1.60-dev.e2ea22dc.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/es2015.cjs.js +3 -3
- package/es2015.esm.js +3 -3
- package/es2018.cjs.js +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs.js +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs.js +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +5 -5
package/es2015.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.60-dev.
|
|
3
|
-
* Wed, 02 Apr 2025 11:
|
|
2
|
+
* @vkontakte/videoplayer v1.1.60-dev.e2ea22dc.0
|
|
3
|
+
* Wed, 02 Apr 2025 11:48:54 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-60/doc/
|
|
5
5
|
*/
|
|
6
6
|
"use strict";var c0=Object.create;var xl=Object.defineProperty,u0=Object.defineProperties,p0=Object.getOwnPropertyDescriptor,f0=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertyNames,cv=Object.getOwnPropertySymbols,v0=Object.getPrototypeOf,uv=Object.prototype.hasOwnProperty,g0=Object.prototype.propertyIsEnumerable;var pv=t=>{throw TypeError(t)};var Vu=(t,e,i)=>e in t?xl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))uv.call(e,i)&&Vu(t,i,e[i]);if(cv)for(var i of cv(e))g0.call(e,i)&&Vu(t,i,e[i]);return t},Vt=(t,e)=>u0(t,f0(e));var h0=(t,e)=>{for(var i in e)xl(t,i,{get:e[i],enumerable:!0})},fv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of m0(e))!uv.call(t,n)&&n!==i&&xl(t,n,{get:()=>e[n],enumerable:!(o=p0(e,n))||o.enumerable});return t};var mv=(t,e,i)=>(i=t!=null?c0(v0(t)):{},fv(e||!t||!t.__esModule?xl(i,"default",{value:t,enumerable:!0}):i,t)),_0=t=>fv(xl({},"__esModule",{value:!0}),t);var On=(t,e,i)=>Vu(t,typeof e!="symbol"?e+"":e,i),Ru=(t,e,i)=>e.has(t)||pv("Cannot "+i);var Ei=(t,e,i)=>(Ru(t,e,"read from private field"),i?i.call(t):e.get(t)),ms=(t,e,i)=>e.has(t)?pv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Sa=(t,e,i,o)=>(Ru(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),vv=(t,e,i)=>(Ru(t,e,"access private method"),i);var St=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var bx={};h0(bx,{ControlButtonType:()=>xd,GridTypes:()=>Tr,InterfaceLanguage:()=>gl.InterfaceLanguage,MenuItemType:()=>el,PlayerPhase:()=>xs,VERSION:()=>Xs,VKNumericLanguage:()=>gl.VKNumericLanguage,VideoFormat:()=>Eu.VideoFormat,VideoQuality:()=>Eu.VideoQuality,loadVKLangPack:()=>gl.loadVKLangPack,registerPlayerWebComponent:()=>_x});module.exports=_0(bx);var vs="[",Ns="[!",Ds="]",Yr={};var Ai=Symbol(),mi=Symbol("filename"),gv=Symbol("hmr"),hv="http://www.w3.org/1999/xhtml",Nu="http://www.w3.org/2000/svg";var sc=!0;var _v,bv,Du=(bv=(_v=globalThis.process)==null?void 0:_v.env)==null?void 0:bv.NODE_ENV;Du||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Te=Du&&!Du.toLowerCase().includes("prod");var Bo=Symbol("$state"),jr=Symbol("$state metadata"),wl=Symbol("legacy props"),$v=Symbol("");var br=Array.isArray,yv=Array.prototype.indexOf,Sl=Array.from,Bu=Object.keys,no=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,ac=Object.getOwnPropertyDescriptors,Ou=Object.prototype,xv=Array.prototype,Zr=Object.getPrototypeOf;function gs(t){return typeof t=="function"}var ne=()=>{};function wv(t){return t()}function hs(t){for(var e=0;e<t.length;e++)t[e]()}var Cl=[],Hu=[];function Sv(){var t=Cl;Cl=[],hs(t)}function b0(){var t=Hu;Hu=[],hs(t)}function Go(t){Cl.length===0&&queueMicrotask(Sv),Cl.push(t)}function Fu(){Cl.length>0&&Sv(),Hu.length>0&&b0()}function lc(t){return t===this.v}function Ca(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cv(t,e){return t!==e}function Ta(t){return!Ca(t,this.v)}function Tv(){if(Te){let t=new Error(`derived_references_self
|
|
@@ -45,7 +45,7 @@ ${l}in ${p}`).join("")}
|
|
|
45
45
|
`)){let n=(i=A0.exec(o))!=null?i:P0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function pg(){var e;let t=(e=M0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=E0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var wc=Symbol("ADD_OWNER");function sp(t,e,i=!1,o=!1){if(t&&!i){let n=en,a=t[jr];if(a&&!ap(a,n)){let s=lp(a);e&&e[mi]!==n[mi]&&!o&&Gv(n[mi],e[mi],s[mi])}}Sc(t,e,new Set)}function ju(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 Sc(t,e,i){var a;let o=t==null?void 0:t[jr];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),wc in t&&t[wc])xo(()=>{t[wc](e)});else{var n=Zr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ai;xo(()=>{let l=t[s];d!==l&&(d=l,Sc(l,e,i))})}else Sc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Sc(t[s],e,i)}}}function ap(t,e){return t.owners===null?!0:t.owners.has(e)||mi in e&&[...t.owners].some(i=>i[mi]===e[mi])||t.parent!==null&&ap(t.parent,e)}function lp(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:lp(t.parent)}var L0=!1;function jv(t){if(L0)return;let e=pg();if(e&&!ap(t,e)){let i=lp(t);i[mi]!==e[mi]?Yu(e[mi],i[mi]):Yu()}}function Na(t){if(Te){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 Rl(t){Ct=t}var en=null;function Nl(t){en=t}function Da(t){return dp("getContext").get(t)}function Ba(t,e){let i=dp("setContext");return Te&&bt(()=>sp(e,null,!0)),i.set(t,e),e}function Bl(){return dp("getAllContexts")}function K(t,e=!1,i){var o=Ct={p:Ct,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Or&&!e&&(Ct.l={s:null,u:null,r1:[],r2:Hi(!1)}),tn(()=>{o.d=!0}),Te&&(Ct.function=i,en=i)}function W(t){var s,d;let e=Ct;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=yt,o=Dt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];ro(a.effect),$o(a.reaction),gn(a.fn)}}finally{ro(i),$o(o)}}Ct=e.p,Te&&(en=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Fr(){return!Or||Ct!==null&&Ct.l===null}function dp(t){var e;return Ct===null&&Na(t),(e=Ct.c)!=null?e:Ct.c=new Map(R0(Ct)||void 0)}function R0(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 fg(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 mg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var D0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function vg(t){return D0.includes(t)}var B0=["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 O0={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 gg(t){var e;return t=t.toLowerCase(),(e=O0[t])!=null?e:t}var $w=[...B0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var H0=["touchstart","touchmove"];function hg(t){return H0.includes(t)}var F0=["textarea","script","style","title"];function _g(t){return F0.includes(t)}function cp(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var bg=new Map;function $g(t,e){var i=bg.get(t);i||(i=new Set,bg.set(t,i)),i.add(e)}function up(t,e){if(e){let i=document.body;t.autofocus=!0,Go(()=>{document.activeElement===i&&t.focus()})}}function Ol(t){var e=Dt,i=yt;$o(null),ro(null);try{return t()}finally{$o(e),ro(i)}}var pp=new Set,Cc=new Set;function Qs(t){if(!je)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 fp(t,e,i,o={}){function n(a){if(o.capture||Oa.call(e,a),!a.cancelBubble)return Ol(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Go(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Bt(t,e,i,o,n){var a={capture:o,passive:n},s=fp(t,e,i,a);(e===document.body||e===window||e===document)&&tn(()=>{e.removeEventListener(t,s,a)})}function at(t){for(var e=0;e<t.length;e++)pp.add(t[e]);for(var i of Cc)i(t)}function Oa(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.call(t))||[],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 u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){no(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Dt,_=yt;$o(null),ro(null);try{for(var p,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var w=a["__"+o];if(w!=null&&(!a.disabled||t.target===a))if(br(w)){var[S,...I]=w;S.apply(a,[t,...I])}else w.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||y===e||y===null)break;a=y}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,$o(f),ro(_)}}}var z0;function yg(){z0=void 0}function Ha(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function wo(t,e){var i=yt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(je)return wo(mt,null),mt;n===void 0&&(n=Ha(a?t:"<!>"+t),i||(n=gi(n)));var s=o||El?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=gi(s),l=s.lastChild;wo(d,l)}else wo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(je)return wo(mt,null),mt;if(!s){var d=Ha(a),l=gi(d);if(n)for(s=document.createDocumentFragment();gi(l);)s.appendChild(gi(l));else s=gi(l)}var u=s.cloneNode(!0);if(n){var f=gi(u),_=u.lastChild;wo(f,_)}else wo(u,u);return u}}function nr(t=""){if(!je){var e=Xo(t+"");return wo(e,e),e}var i=mt;return i.nodeType!==3&&(i.before(i=Xo()),vi(i)),wo(i,i),i}function ze(){if(je)return wo(mt,null),mt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Xo();return t.append(e,i),wo(e,i),t}function b(t,e){if(je){yt.nodes_end=mt,Ni();return}t!==null&&t.before(e)}var Hl=!0;function Tc(t){Hl=t}function fe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function os(t,e){return wg(t,e)}function vp(t,e){var s;fc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=je,n=mt;try{for(var a=gi(i);a&&(a.nodeType!==8||a.data!==vs);)a=Eo(a);if(!a)throw Yr;ao(!0),vi(a),Ni();let d=wg(t,Vt(q({},e),{anchor:a}));if(mt===null||mt.nodeType!==8||mt.data!==Ds)throw zs(),Yr;return ao(!1),d}catch(d){if(d===Yr)return e.recover===!1&&Pv(),fc(),Al(i),ao(!1),os(t,e);throw d}finally{ao(o),vi(n),yg()}}var Fa=new Map;function wg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){fc();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var y=hg($);e.addEventListener($,Oa,{passive:y});var w=Fa.get($);w===void 0?(document.addEventListener($,Oa,{passive:y}),Fa.set($,1)):Fa.set($,w+1)}}};l(Sl(pp)),Cc.add(l);var u=void 0,f=cg(()=>{var _=i!=null?i:e.appendChild(Xo());return Fi(()=>{if(a){K({});var p=Ct;p.c=a}n&&(o.$$events=n),je&&wo(_,null),Hl=s,u=t(_,o)||{},Hl=!0,je&&(yt.nodes_end=mt),a&&W()}),()=>{var y;for(var p of d){e.removeEventListener(p,Oa);var $=Fa.get(p);--$===0?(document.removeEventListener(p,Oa),Fa.delete(p)):Fa.set(p,$)}Cc.delete(l),_!==i&&((y=_.parentNode)==null||y.removeChild(_))}});return mp.set(u,f),u}var mp=new WeakMap;function Gs(t,e){let i=mp.get(t);return i?(mp.delete(t),i(e)):(Te&&Qv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){je&&i===0&&Ni();var n=t,a=null,s=null,d=Ai,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let y=!1;if(je&&o!==-1){if(i===0){let S=n.data;S===vs?o=0:S===Ns?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=Pa(),vi(n),ao(!1),y=!0,o=-1)}d?(a?is(a):$&&(a=Fi(()=>$(n))),s&&hn(s,()=>{s=null})):(s?is(s):$&&(s=Fi(()=>$(n,[i+1,o]))),a&&hn(a,()=>{a=null})),y&&ao(!0)};lo(()=>{u=!1,e(f),u||_(null,null)},l),je&&(n=mt)}function Fl(t,e,i){je&&Ni();var o=t,n=Ai,a,s=Fr()?Cv:Ca;lo(()=>{s(n,n=e())&&(a&&hn(a),a=Fi(()=>i(o)))}),je&&(o=mt)}var $s=null;function _p(t){$s=t}function Ul(t,e){return e}function Q0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)xc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Al(l),l.append(i),o.clear(),bs(t,e[0].prev,e[a-1].next)}rp(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),bs(t,f.prev,f.next)),so(f.e,!d)}})}function yi(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 u=t;s=je?vi(gi(u)):u.appendChild(Xo())}je&&Ni();var f=null,_=!1,p=xr(()=>{var $=i();return br($)?$:$==null?[]:Sl($)});lo(()=>{var $=r(p),y=$.length;if(_&&y===0)return;_=y===0;let w=!1;if(je){var S=s.data===Ns;S!==(y===0)&&(s=Pa(),vi(s),ao(!1),w=!0)}if(je){for(var I=null,A,P=0;P<y;P++){if(mt.nodeType===8&&mt.data===Ds){s=mt,w=!0,ao(!1);break}var E=$[P],T=o(E,P);A=Tg(mt,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}y>0&&vi(Pa())}je||G0($,d,s,n,e,o,i),a!==null&&(y===0?f?is(f):f=Fi(()=>a(s)):f!==null&&hn(f,()=>{f=null})),w&&ao(!0),r(p)}),je&&(s=mt)}function G0(t,e,i,o,n,a,s){var re,Pe,qe,ie;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,y=null,w,S=[],I=[],A,P,E,T;if(d)for(T=0;T<u;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((re=E.a)==null||re.measure(),(w!=null?w:w=new Set).add(E));for(T=0;T<u;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var R=p?p.e.nodes_start:i;y=Tg(R,e,y,y===null?e.first:y.next,A,P,T,o,n,s),f.set(P,y),S=[],I=[],p=y.next;continue}if(l&&Y0(E,A,T,n),(E.e.f&8192)!==0&&(is(E.e),d&&((Pe=E.a)==null||Pe.unfix(),(w!=null?w:w=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],Z;y=z.prev;var U=S[0],Q=S[S.length-1];for(Z=0;Z<S.length;Z+=1)Sg(S[Z],z,i);for(Z=0;Z<I.length;Z+=1)$.delete(I[Z]);bs(e,U.prev,Q.next),bs(e,y,U),bs(e,Q,z),p=z,y=Q,T-=1,S=[],I=[]}else $.delete(E),Sg(E,p,i),bs(e,E.prev,E.next),bs(e,E,y===null?e.first:y.next),bs(e,y,E),y=E;continue}for(S=[],I=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),y=E,p=E.next}if(p!==null||$!==void 0){for(var ee=$===void 0?[]:Sl($);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var ae=ee.length;if(ae>0){var _e=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ae;T+=1)(qe=ee[T].a)==null||qe.measure();for(T=0;T<ae;T+=1)(ie=ee[T].a)==null||ie.fix()}Q0(e,ee,_e,f)}}d&&Go(()=>{var Le;if(w!==void 0)for(E of w)(Le=E.a)==null||Le.apply()}),yt.first=e.first&&e.first.e,yt.last=y&&y.e}function Y0(t,e,i,o){(o&1)!==0&&ka(t.v,e),(o&2)!==0?ka(t.i,i):t.i=i}function Tg(t,e,i,o,n,a,s,d,l,u){var f=$s,_=(l&1)!==0,p=(l&16)===0,$=_?p?es(n):Hi(n):n,y=(l&2)===0?s:Hi(s);Te&&_&&($.debug=()=>{var S=typeof y=="number"?s:y.v;u()[S]});var w={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};$s=w;try{return w.e=Fi(()=>d(t,$,y,u),je),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{$s=f}}function Sg(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=Eo(a);n.before(a),a=s}}function bs(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 j0(t,e,i){var a,s;if(!e||e===fg(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=en)!=null&&s[mi]&&(o=`in ${en[mi]}`),Wv(cp(o))}function zl(t,e,i,o,n){var a=t,s="",d;lo(()=>{var l;if(s===(s=(l=e())!=null?l:"")){je&&Ni();return}d!==void 0&&(so(d),d=void 0),s!==""&&(d=Fi(()=>{if(je){for(var u=mt.data,f=Ni(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=Eo(f);if(f===null)throw zs(),Yr;Te&&!n&&j0(f.parentNode,u,s),wo(mt,_),a=vi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Ha(p);if((i||o)&&($=gi($)),wo(gi($),$.lastChild),i||o)for(;gi($);)a.before(gi($));else a.before($)}))})}function me(t,e,...i){var o=t,n=ne,a;lo(()=>{n!==(n=e())&&(a&&(so(a),a=null),Te&&n==null&&Mv(),a=Fi(()=>n(o,...i)))},65536),je&&(o=mt)}function Di(t,e,i){je&&Ni();var o=t,n,a;lo(()=>{n!==(n=e())&&(a&&(hn(a),a=null),n&&(a=Fi(()=>i(o,n))))},65536),je&&(o=mt)}function ql(t,e,i,o,n,a){var y;let s=je;je&&Ni();var d=Te&&a&&((y=Ct)==null?void 0:y.function[mi]),l,u,f=null;je&&mt.nodeType===1&&(f=mt,Ni());var _=je?mt:t,p,$=$s;lo(()=>{let w=e()||null;var S=n?n():i||w==="svg"?Nu:null;if(w!==l){var I=$s;_p($),p&&(w===null?hn(p,()=>{p=null,u=null}):w===u?is(p):(so(p),Tc(!1))),w&&w!==u&&(p=Fi(()=>{if(f=je?f:S?document.createElementNS(S,w):document.createElement(w),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),wo(f,f),o){je&&_g(w)&&f.append(document.createComment(""));var A=je?gi(f):f.appendChild(Xo());je&&(A===null?ao(!1):vi(A)),o(f,A)}yt.nodes_end=f,_.before(f)})),l=w,l&&(u=l),Tc(!0),_p(I)}},65536),s&&(ao(!0),vi(_))}var $p;function Ig(t){return $p=t.target,new bp(t)}var ns,rr,bp=class{constructor(e){ms(this,ns);ms(this,rr);var a,s;var i=new Map,o=(d,l)=>{var u=es(l);return i.set(d,u),u};let n=new Proxy(Vt(q({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===wl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});Sa(this,rr,(e.hydrate?vp:os)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Va(),Sa(this,ns,n.$$events);for(let d of Object.keys(Ei(this,rr)))d==="$set"||d==="$destroy"||d==="$on"||no(this,d,{get(){return Ei(this,rr)[d]},set(l){Ei(this,rr)[d]=l},enumerable:!0});Ei(this,rr).$set=d=>{Object.assign(n,d)},Ei(this,rr).$destroy=()=>{Gs(Ei(this,rr))}}$set(e){Ei(this,rr).$set(e)}$on(e,i){Ei(this,ns)[e]=Ei(this,ns)[e]||[];let o=(...n)=>i.call(this,...n);return Ei(this,ns)[e].push(o),()=>{Ei(this,ns)[e]=Ei(this,ns)[e].filter(n=>n!==o)}}$destroy(){Ei(this,rr).$destroy()}};ns=new WeakMap,rr=new WeakMap;function G(t,e){Go(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=$p)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Te&&$g(e.hash,d)}})}function kg(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=kg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Eg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=kg(t))&&(o&&(o+=" "),o+=e);return o}function Kl(t){return typeof t=="object"?Eg(t):t!=null?t:""}var Ag=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function Mg(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 Pg(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 yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Lg(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(yp)),n&&l.push(...Object.keys(n).map(yp));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=yp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=Pg(o)),n&&(i+=Pg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Mg(i,o,a);(!je||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function xp(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 nt(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Lg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}var Ua=Symbol("class"),za=Symbol("style"),Ng=Symbol("is custom element"),Dg=Symbol("is html");function Bg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Og(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||o_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[$v]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Hg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=Og(t),s=a[Ng],d=!a[Dg];let l=je&&s;l&&ao(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Kl(i.class):(o||i[Ua])&&(i.class=null),i[za]&&((E=i.style)!=null||(i.style=null));var p=Hg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,$,R,o,e==null?void 0:e[Ua],i[Ua]),u[T]=R,u[Ua]=i[Ua];continue}if(T==="style"){nt(t,R,e==null?void 0:e[za],i[za]),u[T]=R,u[za]=i[za];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},Z="$$"+T,U=T.slice(2);var S=vg(U);if(mg(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[Z],z),u[Z]=null}if(R!=null)if(S)t[`__${U}`]=R,at([U]);else{let Q=function(ee){u[T].call(this,ee)};var P=Q;u[Z]=fp(U,t,Q,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")De(t,T,R);else if(T==="autofocus")up(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)Bg(t,R);else{var I=T;d||(I=gg(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Z=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Z?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Z?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&De(t,I,R,n)}}}return l&&ao(!0),u}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ng]:t.nodeName.includes("-"),[Dg]:t.namespaceURI===hv}}var Vg=new Map;function Hg(t){var e=Vg.get(t.nodeName);if(e)return e;Vg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=ac(o);for(var a in i)i[a].set&&e.push(a);o=Zr(o)}return e}function o_(t,e,i){var o;Te&&(e==="srcset"&&n_(t,i)||wp((o=t.getAttribute(e))!=null?o:"",i)||Kv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Rg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function n_(t,e){var i=Rg(t.srcset),o=Rg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(wp(i[s][0],n)||wp(n,i[s][0])))}var r_=sc?()=>performance.now():()=>Date.now(),Sr={tick:t=>(sc?requestAnimationFrame:ne)(t),now:()=>r_(),tasks:new Set};function Fg(){let t=Sr.now();Sr.tasks.forEach(e=>{e.c(t)||(Sr.tasks.delete(e),e.f())}),Sr.tasks.size!==0&&Sr.tick(Fg)}function Ug(t){let e;return Sr.tasks.size===0&&Sr.tick(Fg),{promise:new Promise(i=>{Sr.tasks.add(e={c:t,f:i})}),abort(){Sr.tasks.delete(e)}}}function Ic(t,e){Ol(()=>{t.dispatchEvent(new CustomEvent(e))})}function d_(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 zg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=d_(n.trim());e[s]=a.trim()}return e}var c_=t=>t;function Cp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function y(){var R;var E=Dt,T=yt;$o(null),ro(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{$o(E),ro(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),Ic(e,"introstart"),p=Sp(e,y(),$,1,()=>{Ic(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Ic(e,"outrostart"),$=Sp(e,y(),p,0,()=>{Ic(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=yt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&Hl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&gn(()=>{bt(()=>w.in())})}}function Sp(t,e,i,o,n){var a=o===1;if(gs(e)){var s,d=!1;return Go(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Sp(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=c_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=zg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),Z=zg(u(z,1-z));P.push(Z),E||(E=Z.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var Q=w.currentTime;return S+I*_(Q/A)},f&&Ug(()=>{if(w.playState!=="running")return!1;var Q=y();return f(Q,1-Q),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var ys,qa,Wl,Ec,qg,Ac=class Ac{constructor(e){ms(this,Ec);ms(this,ys,new WeakMap);ms(this,qa);ms(this,Wl);Sa(this,Wl,e)}observe(e,i){var o=Ei(this,ys).get(e)||new Set;return o.add(i),Ei(this,ys).set(e,o),vv(this,Ec,qg).call(this).observe(e,Ei(this,Wl)),()=>{var n=Ei(this,ys).get(e);n.delete(i),n.size===0&&(Ei(this,ys).delete(e),Ei(this,qa).unobserve(e))}}};ys=new WeakMap,qa=new WeakMap,Wl=new WeakMap,Ec=new WeakSet,qg=function(){var e;return(e=Ei(this,qa))!=null?e:Sa(this,qa,new ResizeObserver(i=>{for(var o of i){Ac.entries.set(o.target,o);for(var n of Ei(this,ys).get(o.target)||[])n(o)}}))},On(Ac,"entries",new WeakMap);var Tp=Ac;var f_=new Tp({box:"border-box"});function Ur(t,e,i){var o=f_.observe(t,()=>i(t[e]));gn(()=>(bt(()=>i(t[e])),o))}function Kg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function ut(t={},e,i,o){return gn(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&Kg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&Kg(i(...a),t)&&e(null,...a)})}}),t}function Cr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>bc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ra(()=>{Wg(e,o),hs(i.b)}),Ze(()=>{let n=bt(()=>i.m.map(wv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ze(()=>{Wg(e,o),hs(i.a)})}function Wg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Rv(e)},set:o=>{i=o}})}};v_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var v_;function Ft(t){Ct===null&&Na("onMount"),Or&&Ct.l!==null?m_(Ct).m.push(t):Ze(()=>{let e=bt(t);if(typeof e=="function")return e})}function sr(t){Ct===null&&Na("onDestroy"),Ft(()=>()=>bt(t))}function m_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ka=[];function ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ne){let i=null,o=new Set;function n(d){if(Ca(t,d)&&(t=d,i)){let l=!Ka.length;for(let u of o)u[1](),Ka.push(u,t);if(l){for(let u=0;u<Ka.length;u+=2)Ka[u][0](Ka[u+1]);Ka.length=0}}}function a(d){n(d(t))}function s(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function hi(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 ar(i,(s,d)=>{let l=!1,u=[],f=0,_=ne,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:ne},$=n.map((y,w)=>Ql(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){hs($),_(),l=!1}})}function we(t){let e;return Ql(t,i=>e=i)(),e}var Pc=!1,Ip=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:es(void 0),unsubscribe:ne};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=Ql(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&Ip in i?we(t):r(o.source)}function Fe(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();no(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Pc;try{return Pc=!1,[t(),Pc]}finally{Pc=e}}var x_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&Vv(`${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 ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},x_)}var w_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(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];gs(n)&&(n=n());let a=Hn(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(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Hn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===wl)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){gs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function rs(...t){return new Proxy({props:t},w_)}function Qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Z;var n=(i&1)!==0,a=!Or||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=kp(()=>t[e]):u=t[e];var f=Bo in t||wl in t,_=s&&((Z=(z=Hn(t,e))==null?void 0:z.set)!=null?Z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=bt(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&Lv(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:xr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Q){return arguments.length>0?((!a||!Q||A||l)&&_(Q?S():U),U):S()}}var P=!1,E=!1,T=es(u),R=m(()=>{var U=S(),Q=r(T);return P?(P=!1,E=!0,Q):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=Ta),function(U,Q){if(Il!==null&&(P=E,S(),r(T)),arguments.length>0){let ee=Q?r(R):a&&s?pe(U):U;if(!R.equals(ee)){if(P=!0,O(T,ee),y&&p!==void 0&&(p=ee),Qg(R))return U;bt(()=>r(R))}return U}return Qg(R)?R.v:r(R)}}var S_;typeof HTMLElement=="function"&&(S_=class extends HTMLElement{constructor(e,i,o){super();On(this,"$$ctor");On(this,"$$s");On(this,"$$c");On(this,"$$cn",!1);On(this,"$$d",{});On(this,"$$r",!1);On(this,"$$p_d",{});On(this,"$$l",{});On(this,"$$l_u",new Map);On(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=C_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Ep(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Ig({component:this.$$ctor,target:this.shadowRoot||this,props:Vt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=yc(()=>{xo(()=>{var a;this.$$r=!0;for(let s of Bu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Ep(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ep(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Bu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ep(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function C_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Gg="5";var Yg,jg,Zg;typeof window!="undefined"&&((Zg=(jg=(Yg=window.__svelte)!=null?Yg:window.__svelte={}).v)!=null?Zg:jg.v=new Set).add(Gg);var Y1=require("@vkontakte/videoplayer-core/es2015"),lG=require("@vkontakte/videoplayer-core/es2015"),ba=require("@vkontakte/videoplayer-shared/es2015"),j1=require("@vkontakte/videoplayer-statistics/es2015");var Ys=require("@vkontakte/videoplayer-shared/es2015");var I_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Ys.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:Ys.VideoQuality.Q_480P,highQualityLimit:Ys.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Xg=t=>(0,Ys.fillWithDefault)(t,I_),Jg=t=>Ba("ui-config",t),Gt=()=>Da("ui-config");var Gl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var zr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],Yl=[...rh,"GRAPH_BUTTON"],Ap=[...rh,"PLAY_BUTTON"],jl=[...Yl,"PLAY_BUTTON"];var Tr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Tr||{}),Zs={xs:0,s:1,m:2,l:3,xl:4};var Zl=require("@vkontakte/videoplayer-shared/es2015"),sh=require("@vkontakte/videoplayer-core/es2015"),ah=require("@vkontakte/videoplayer-statistics/es2015");var Mc="prod",Xs="1.1.60-dev.901a385a.0";var Js=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lh=Symbol("storeContext"),dh=Symbol("microStoresContext"),ch=(t,e)=>{Ba(lh,t),Ba(dh,e),Mc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Da(lh);return(0,Zl.assertNonNullable)(t,"Store context is empty!"),t},co=()=>{let t=Da(dh);return(0,Zl.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>Vc(t,t.getValue(),e),Vc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),uh=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Xs} (core: ${sh.VERSION}, stat: ${ah.VERSION}, shared: ${Zl.VERSION})`,f=we(i.state.errorLog$),_=f.length?`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function Mg(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 Pg(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 yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Lg(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(yp)),n&&l.push(...Object.keys(n).map(yp));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=yp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=Pg(o)),n&&(i+=Pg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,a){var s=t.__className;if(je||s!==i){var d=Mg(i,o,a);(!je||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function xp(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 nt(t,e,i,o){var n=t.__style;if(je||n!==e){var a=Lg(e,o);(!je||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}var Ua=Symbol("class"),za=Symbol("style"),Ng=Symbol("is custom element"),Dg=Symbol("is html");function Bg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=Og(t);if(je&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||o_(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[$v]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Hg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=Og(t),s=a[Ng],d=!a[Dg];let l=je&&s;l&&ao(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Kl(i.class):(o||i[Ua])&&(i.class=null),i[za]&&((E=i.style)!=null||(i.style=null));var p=Hg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,$,R,o,e==null?void 0:e[Ua],i[Ua]),u[T]=R,u[Ua]=i[Ua];continue}if(T==="style"){nt(t,R,e==null?void 0:e[za],i[za]),u[T]=R,u[za]=i[za];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},Z="$$"+T,U=T.slice(2);var S=vg(U);if(mg(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[Z],z),u[Z]=null}if(R!=null)if(S)t[`__${U}`]=R,at([U]);else{let Q=function(ee){u[T].call(this,ee)};var P=Q;u[Z]=fp(U,t,Q,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")De(t,T,R);else if(T==="autofocus")up(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)Bg(t,R);else{var I=T;d||(I=gg(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Z=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Z?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Z?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&De(t,I,R,n)}}}return l&&ao(!0),u}function Og(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Ng]:t.nodeName.includes("-"),[Dg]:t.namespaceURI===hv}}var Vg=new Map;function Hg(t){var e=Vg.get(t.nodeName);if(e)return e;Vg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=ac(o);for(var a in i)i[a].set&&e.push(a);o=Zr(o)}return e}function o_(t,e,i){var o;Te&&(e==="srcset"&&n_(t,i)||wp((o=t.getAttribute(e))!=null?o:"",i)||Kv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function wp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Rg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function n_(t,e){var i=Rg(t.srcset),o=Rg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(wp(i[s][0],n)||wp(n,i[s][0])))}var r_=sc?()=>performance.now():()=>Date.now(),Sr={tick:t=>(sc?requestAnimationFrame:ne)(t),now:()=>r_(),tasks:new Set};function Fg(){let t=Sr.now();Sr.tasks.forEach(e=>{e.c(t)||(Sr.tasks.delete(e),e.f())}),Sr.tasks.size!==0&&Sr.tick(Fg)}function Ug(t){let e;return Sr.tasks.size===0&&Sr.tick(Fg),{promise:new Promise(i=>{Sr.tasks.add(e={c:t,f:i})}),abort(){Sr.tasks.delete(e)}}}function Ic(t,e){Ol(()=>{t.dispatchEvent(new CustomEvent(e))})}function d_(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 zg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=d_(n.trim());e[s]=a.trim()}return e}var c_=t=>t;function Cp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function y(){var R;var E=Dt,T=yt;$o(null),ro(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{$o(E),ro(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),Ic(e,"introstart"),p=Sp(e,y(),$,1,()=>{Ic(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,Ic(e,"outrostart"),$=Sp(e,y(),p,0,()=>{Ic(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=yt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&Hl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&gn(()=>{bt(()=>w.in())})}}function Sp(t,e,i,o,n){var a=o===1;if(gs(e)){var s,d=!1;return Go(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Sp(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=c_}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=zg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),Z=zg(u(z,1-z));P.push(Z),E||(E=Z.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var Q=w.currentTime;return S+I*_(Q/A)},f&&Ug(()=>{if(w.playState!=="running")return!1;var Q=y();return f(Q,1-Q),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var ys,qa,Wl,Ec,qg,Ac=class Ac{constructor(e){ms(this,Ec);ms(this,ys,new WeakMap);ms(this,qa);ms(this,Wl);Sa(this,Wl,e)}observe(e,i){var o=Ei(this,ys).get(e)||new Set;return o.add(i),Ei(this,ys).set(e,o),vv(this,Ec,qg).call(this).observe(e,Ei(this,Wl)),()=>{var n=Ei(this,ys).get(e);n.delete(i),n.size===0&&(Ei(this,ys).delete(e),Ei(this,qa).unobserve(e))}}};ys=new WeakMap,qa=new WeakMap,Wl=new WeakMap,Ec=new WeakSet,qg=function(){var e;return(e=Ei(this,qa))!=null?e:Sa(this,qa,new ResizeObserver(i=>{for(var o of i){Ac.entries.set(o.target,o);for(var n of Ei(this,ys).get(o.target)||[])n(o)}}))},On(Ac,"entries",new WeakMap);var Tp=Ac;var f_=new Tp({box:"border-box"});function Ur(t,e,i){var o=f_.observe(t,()=>i(t[e]));gn(()=>(bt(()=>i(t[e])),o))}function Kg(t,e){return t===e||(t==null?void 0:t[Bo])===e}function ut(t={},e,i,o){return gn(()=>{var n,a;return xo(()=>{n=a,a=(o==null?void 0:o())||[],bt(()=>{t!==i(...a)&&(e(t,...a),n&&Kg(i(...n),t)&&e(null,...n))})}),()=>{Go(()=>{a&&Kg(i(...a),t)&&e(null,...a)})}}),t}function Cr(t=!1){let e=Ct,i=e.l.u;if(!i)return;let o=()=>bc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ra(()=>{Wg(e,o),hs(i.b)}),Ze(()=>{let n=bt(()=>i.m.map(wv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ze(()=>{Wg(e,o),hs(i.a)})}function Wg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Rv(e)},set:o=>{i=o}})}};v_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var v_;function Ft(t){Ct===null&&Na("onMount"),Or&&Ct.l!==null?m_(Ct).m.push(t):Ze(()=>{let e=bt(t);if(typeof e=="function")return e})}function sr(t){Ct===null&&Na("onDestroy"),Ft(()=>()=>bt(t))}function m_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function Ql(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=bt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ka=[];function ar(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ne){let i=null,o=new Set;function n(d){if(Ca(t,d)&&(t=d,i)){let l=!Ka.length;for(let u of o)u[1](),Ka.push(u,t);if(l){for(let u=0;u<Ka.length;u+=2)Ka[u][0](Ka[u+1]);Ka.length=0}}}function a(d){n(d(t))}function s(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function hi(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 ar(i,(s,d)=>{let l=!1,u=[],f=0,_=ne,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:ne},$=n.map((y,w)=>Ql(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){hs($),_(),l=!1}})}function we(t){let e;return Ql(t,i=>e=i)(),e}var Pc=!1,Ip=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:es(void 0),unsubscribe:ne};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=Ql(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&Ip in i?we(t):r(o.source)}function Fe(){let t={};function e(){tn(()=>{for(var i in t)t[i].unsubscribe();no(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Pc;try{return Pc=!1,[t(),Pc]}finally{Pc=e}}var x_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&Vv(`${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 ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},x_)}var w_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(gs(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];gs(n)&&(n=n());let a=Hn(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(gs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Hn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Bo||e===wl)return!1;for(let i of t.props)if(gs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){gs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function rs(...t){return new Proxy({props:t},w_)}function Qg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Z;var n=(i&1)!==0,a=!Or||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=kp(()=>t[e]):u=t[e];var f=Bo in t||wl in t,_=s&&((Z=(z=Hn(t,e))==null?void 0:z.set)!=null?Z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=bt(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&Lv(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:xr)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Q){return arguments.length>0?((!a||!Q||A||l)&&_(Q?S():U),U):S()}}var P=!1,E=!1,T=es(u),R=m(()=>{var U=S(),Q=r(T);return P?(P=!1,E=!0,Q):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=Ta),function(U,Q){if(Il!==null&&(P=E,S(),r(T)),arguments.length>0){let ee=Q?r(R):a&&s?pe(U):U;if(!R.equals(ee)){if(P=!0,O(T,ee),y&&p!==void 0&&(p=ee),Qg(R))return U;bt(()=>r(R))}return U}return Qg(R)?R.v:r(R)}}var S_;typeof HTMLElement=="function"&&(S_=class extends HTMLElement{constructor(e,i,o){super();On(this,"$$ctor");On(this,"$$s");On(this,"$$c");On(this,"$$cn",!1);On(this,"$$d",{});On(this,"$$r",!1);On(this,"$$p_d",{});On(this,"$$l",{});On(this,"$$l_u",new Map);On(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return St(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=C_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=Ep(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=Ig({component:this.$$ctor,target:this.shadowRoot||this,props:Vt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=yc(()=>{xo(()=>{var a;this.$$r=!0;for(let s of Bu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=Ep(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ep(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Bu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Ep(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function C_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Gg="5";var Yg,jg,Zg;typeof window!="undefined"&&((Zg=(jg=(Yg=window.__svelte)!=null?Yg:window.__svelte={}).v)!=null?Zg:jg.v=new Set).add(Gg);var Y1=require("@vkontakte/videoplayer-core/es2015"),lG=require("@vkontakte/videoplayer-core/es2015"),ba=require("@vkontakte/videoplayer-shared/es2015"),j1=require("@vkontakte/videoplayer-statistics/es2015");var Ys=require("@vkontakte/videoplayer-shared/es2015");var I_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Ys.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:Ys.VideoQuality.Q_480P,highQualityLimit:Ys.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Xg=t=>(0,Ys.fillWithDefault)(t,I_),Jg=t=>Ba("ui-config",t),Gt=()=>Da("ui-config");var Gl="vk_player_debug_panel_opened";var eh="videoplayer",th="videoplayer";var zr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ih=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),oh=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),nh=new Set(["ShiftRight","ShiftLeft"]);var rh=["TIMELINE"],Yl=[...rh,"GRAPH_BUTTON"],Ap=[...rh,"PLAY_BUTTON"],jl=[...Yl,"PLAY_BUTTON"];var Tr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Tr||{}),Zs={xs:0,s:1,m:2,l:3,xl:4};var Zl=require("@vkontakte/videoplayer-shared/es2015"),sh=require("@vkontakte/videoplayer-core/es2015"),ah=require("@vkontakte/videoplayer-statistics/es2015");var Mc="prod",Xs="1.1.60-dev.e2ea22dc.0";var Js=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lh=Symbol("storeContext"),dh=Symbol("microStoresContext"),ch=(t,e)=>{Ba(lh,t),Ba(dh,e),Mc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Da(lh);return(0,Zl.assertNonNullable)(t,"Store context is empty!"),t},co=()=>{let t=Da(dh);return(0,Zl.assertNonNullable)(t,"MicroStores context is empty!"),t},Xt=(t,e)=>Vc(t,t.getValue(),e),Vc=(t,e,i)=>ar(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),uh=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Xs} (core: ${sh.VERSION}, stat: ${ah.VERSION}, shared: ${Zl.VERSION})`,f=we(i.state.errorLog$),_=f.length?`
|
|
49
49
|
`+f.map((z,Z)=>{var ae;let U=`${Z}) Type: ${z.id}
|
|
50
50
|
`,Q=`Message: ${z.message} (${z.thrown})
|
|
51
51
|
`,ee=`Trace: ${(ae=z.thrown)==null?void 0:ae.stack}
|
package/es2015.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.60-dev.
|
|
3
|
-
* Wed, 02 Apr 2025 11:
|
|
2
|
+
* @vkontakte/videoplayer v1.1.60-dev.e2ea22dc.0
|
|
3
|
+
* Wed, 02 Apr 2025 11:48:54 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-60/doc/
|
|
5
5
|
*/
|
|
6
6
|
var R1=Object.defineProperty,N1=Object.defineProperties;var D1=Object.getOwnPropertyDescriptors;var Fm=Object.getOwnPropertySymbols;var B1=Object.prototype.hasOwnProperty,O1=Object.prototype.propertyIsEnumerable;var Um=t=>{throw TypeError(t)};var gu=(t,e,i)=>e in t?R1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))B1.call(e,i)&&gu(t,i,e[i]);if(Fm)for(var i of Fm(e))O1.call(e,i)&&gu(t,i,e[i]);return t},Mt=(t,e)=>N1(t,D1(e));var Nn=(t,e,i)=>gu(t,typeof e!="symbol"?e+"":e,i),hu=(t,e,i)=>e.has(t)||Um("Cannot "+i);var ki=(t,e,i)=>(hu(t,e,"read from private field"),i?i.call(t):e.get(t)),fs=(t,e,i)=>e.has(t)?Um("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),ma=(t,e,i,o)=>(hu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),zm=(t,e,i)=>(hu(t,e,"access private method"),i);var xt=(t,e,i)=>new Promise((o,n)=>{var a=l=>{try{d(i.next(l))}catch(u){n(u)}},s=l=>{try{d(i.throw(l))}catch(u){n(u)}},d=l=>l.done?o(l.value):Promise.resolve(l.value).then(a,s);d((i=i.apply(t,e)).next())});var ms="[",Ms="[!",Ls="]",Gr={};var Ei=Symbol(),fi=Symbol("filename"),qm=Symbol("hmr"),Km="http://www.w3.org/1999/xhtml",_u="http://www.w3.org/2000/svg";var Ud=!0;var Wm,Qm,bu=(Qm=(Wm=globalThis.process)==null?void 0:Wm.env)==null?void 0:Qm.NODE_ENV;bu||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Te=bu&&!bu.toLowerCase().includes("prod");var Ro=Symbol("$state"),Yr=Symbol("$state metadata"),nl=Symbol("legacy props"),Gm=Symbol("");var hr=Array.isArray,Ym=Array.prototype.indexOf,rl=Array.from,$u=Object.keys,eo=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,zd=Object.getOwnPropertyDescriptors,yu=Object.prototype,jm=Array.prototype,jr=Object.getPrototypeOf;function vs(t){return typeof t=="function"}var ne=()=>{};function Zm(t){return t()}function gs(t){for(var e=0;e<t.length;e++)t[e]()}var sl=[],xu=[];function Xm(){var t=sl;sl=[],gs(t)}function H1(){var t=xu;xu=[],gs(t)}function Wo(t){sl.length===0&&queueMicrotask(Xm),sl.push(t)}function wu(){sl.length>0&&Xm(),xu.length>0&&H1()}function qd(t){return t===this.v}function va(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Jm(t,e){return t!==e}function ga(t){return!va(t,this.v)}function ev(){if(Te){let t=new Error(`derived_references_self
|
|
@@ -45,7 +45,7 @@ ${l}in ${p}`).join("")}
|
|
|
45
45
|
`)){let n=(i=Z1.exec(o))!=null?i:X1.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function Hv(){var e;let t=(e=J1())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=j1[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var rc=Symbol("ADD_OWNER");function Uu(t,e,i=!1,o=!1){if(t&&!i){let n=Xo,a=t[Yr];if(a&&!zu(a,n)){let s=qu(a);e&&e[fi]!==n[fi]&&!o&&xv(n[fi],e[fi],s[fi])}}sc(t,e,new Set)}function Mu(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 sc(t,e,i){var a;let o=t==null?void 0:t[Yr];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),rc in t&&t[rc])_o(()=>{t[rc](e)});else{var n=jr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ei;_o(()=>{let l=t[s];d!==l&&(d=l,sc(l,e,i))})}else sc(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)sc(t[s],e,i)}}}function zu(t,e){return t.owners===null?!0:t.owners.has(e)||fi in e&&[...t.owners].some(i=>i[fi]===e[fi])||t.parent!==null&&zu(t.parent,e)}function qu(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:qu(t.parent)}var e0=!1;function Sv(t){if(e0)return;let e=Hv();if(e&&!zu(t,e)){let i=qu(t);i[fi]!==e[fi]?Pu(e[fi],i[fi]):Pu()}}function Ta(t){if(Te){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 wt=null;function gl(t){wt=t}var Xo=null;function hl(t){Xo=t}function Ia(t){return Ku("getContext").get(t)}function ka(t,e){let i=Ku("setContext");return Te&&ht(()=>Uu(e,null,!0)),i.set(t,e),e}function bl(){return Ku("getAllContexts")}function K(t,e=!1,i){var o=wt={p:wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Dr&&!e&&(wt.l={s:null,u:null,r1:[],r2:Bi(!1)}),Jo(()=>{o.d=!0}),Te&&(wt.function=i,Xo=i)}function W(t){var s,d;let e=wt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=bt,o=Rt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];to(a.effect),go(a.reaction),pn(a.fn)}}finally{to(i),go(o)}}wt=e.p,Te&&(Xo=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Or(){return!Dr||wt!==null&&wt.l===null}function Ku(t){var e;return wt===null&&Ta(t),(e=wt.c)!=null?e:wt.c=new Map(i0(wt)||void 0)}function i0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var o0=/\r/g;function Fv(t){t=t.replace(o0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Uv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var n0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function zv(t){return n0.includes(t)}var r0=["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 qv(t){var e;return t=t.toLowerCase(),(e=s0[t])!=null?e:t}var m6=[...r0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var a0=["touchstart","touchmove"];function Kv(t){return a0.includes(t)}var l0=["textarea","script","style","title"];function Wv(t){return l0.includes(t)}function Wu(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Qv=new Map;function Gv(t,e){var i=Qv.get(t);i||(i=new Set,Qv.set(t,i)),i.add(e)}function Qu(t,e){if(e){let i=document.body;t.autofocus=!0,Wo(()=>{document.activeElement===i&&t.focus()})}}function $l(t){var e=Rt,i=bt;go(null),to(null);try{return t()}finally{go(e),to(i)}}var Gu=new Set,ac=new Set;function zs(t){if(!Ye)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 Yu(t,e,i,o={}){function n(a){if(o.capture||Ea.call(e,a),!a.cancelBubble)return $l(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Wo(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Nt(t,e,i,o,n){var a={capture:o,passive:n},s=Yu(t,e,i,a);(e===document.body||e===window||e===document)&&Jo(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)Gu.add(t[e]);for(var i of ac)i(t)}function Ea(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.call(t))||[],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 u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){eo(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Rt,_=bt;go(null),to(null);try{for(var p,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var w=a["__"+o];if(w!=null&&(!a.disabled||t.target===a))if(hr(w)){var[S,...I]=w;S.apply(a,[t,...I])}else w.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||y===e||y===null)break;a=y}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,go(f),to(_)}}}var c0;function Yv(){c0=void 0}function Aa(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function bo(t,e){var i=bt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return bo(ft,null),ft;n===void 0&&(n=Aa(a?t:"<!>"+t),i||(n=vi(n)));var s=o||cl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=vi(s),l=s.lastChild;bo(d,l)}else bo(s,s);return s}}function $e(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return bo(ft,null),ft;if(!s){var d=Aa(a),l=vi(d);if(n)for(s=document.createDocumentFragment();vi(l);)s.appendChild(vi(l));else s=vi(l)}var u=s.cloneNode(!0);if(n){var f=vi(u),_=u.lastChild;bo(f,_)}else bo(u,u);return u}}function ir(t=""){if(!Ye){var e=jo(t+"");return bo(e,e),e}var i=ft;return i.nodeType!==3&&(i.before(i=jo()),mi(i)),bo(i,i),i}function Ue(){if(Ye)return bo(ft,null),ft;var t=document.createDocumentFragment(),e=document.createComment(""),i=jo();return t.append(e,i),bo(e,i),t}function b(t,e){if(Ye){bt.nodes_end=ft,Vi();return}t!==null&&t.before(e)}var yl=!0;function lc(t){yl=t}function fe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function is(t,e){return Zv(t,e)}function Zu(t,e){var s;Yd(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ft;try{for(var a=vi(i);a&&(a.nodeType!==8||a.data!==ms);)a=To(a);if(!a)throw Gr;oo(!0),mi(a),Vi();let d=Zv(t,Mt(q({},e),{anchor:a}));if(ft===null||ft.nodeType!==8||ft.data!==Ls)throw Os(),Gr;return oo(!1),d}catch(d){if(d===Gr)return e.recover===!1&&rv(),Yd(),ul(i),oo(!1),is(t,e);throw d}finally{oo(o),mi(n),Yv()}}var Pa=new Map;function Zv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Yd();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var y=Kv($);e.addEventListener($,Ea,{passive:y});var w=Pa.get($);w===void 0?(document.addEventListener($,Ea,{passive:y}),Pa.set($,1)):Pa.set($,w+1)}}};l(rl(Gu)),ac.add(l);var u=void 0,f=Bv(()=>{var _=i!=null?i:e.appendChild(jo());return Oi(()=>{if(a){K({});var p=wt;p.c=a}n&&(o.$$events=n),Ye&&bo(_,null),yl=s,u=t(_,o)||{},yl=!0,Ye&&(bt.nodes_end=ft),a&&W()}),()=>{var y;for(var p of d){e.removeEventListener(p,Ea);var $=Pa.get(p);--$===0?(document.removeEventListener(p,Ea),Pa.delete(p)):Pa.set(p,$)}ac.delete(l),_!==i&&((y=_.parentNode)==null||y.removeChild(_))}});return ju.set(u,f),u}var ju=new WeakMap;function qs(t,e){let i=ju.get(t);return i?(ju.delete(t),i(e)):(Te&&yv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Ye&&i===0&&Vi();var n=t,a=null,s=null,d=Ei,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let y=!1;if(Ye&&o!==-1){if(i===0){let S=n.data;S===ms?o=0:S===Ms?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=ya(),mi(n),oo(!1),y=!0,o=-1)}d?(a?ts(a):$&&(a=Oi(()=>$(n))),s&&fn(s,()=>{s=null})):(s?ts(s):$&&(s=Oi(()=>$(n,[i+1,o]))),a&&fn(a,()=>{a=null})),y&&oo(!0)};no(()=>{u=!1,e(f),u||_(null,null)},l),Ye&&(n=ft)}function xl(t,e,i){Ye&&Vi();var o=t,n=Ei,a,s=Or()?Jm:va;no(()=>{s(n,n=e())&&(a&&fn(a),a=Oi(()=>i(o)))}),Ye&&(o=ft)}var bs=null;function ep(t){bs=t}function wl(t,e){return e}function m0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)nc(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;ul(l),l.append(i),o.clear(),_s(t,e[0].prev,e[a-1].next)}Fu(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),_s(t,f.prev,f.next)),io(f.e,!d)}})}function $i(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 u=t;s=Ye?mi(vi(u)):u.appendChild(jo())}Ye&&Vi();var f=null,_=!1,p=$r(()=>{var $=i();return hr($)?$:$==null?[]:rl($)});no(()=>{var $=r(p),y=$.length;if(_&&y===0)return;_=y===0;let w=!1;if(Ye){var S=s.data===Ms;S!==(y===0)&&(s=ya(),mi(s),oo(!1),w=!0)}if(Ye){for(var I=null,A,P=0;P<y;P++){if(ft.nodeType===8&&ft.data===Ls){s=ft,w=!0,oo(!1);break}var E=$[P],T=o(E,P);A=eg(ft,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}y>0&&mi(ya())}Ye||v0($,d,s,n,e,o,i),a!==null&&(y===0?f?ts(f):f=Oi(()=>a(s)):f!==null&&fn(f,()=>{f=null})),w&&oo(!0),r(p)}),Ye&&(s=ft)}function v0(t,e,i,o,n,a,s){var re,Pe,ze,ie;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,y=null,w,S=[],I=[],A,P,E,T;if(d)for(T=0;T<u;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((re=E.a)==null||re.measure(),(w!=null?w:w=new Set).add(E));for(T=0;T<u;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var R=p?p.e.nodes_start:i;y=eg(R,e,y,y===null?e.first:y.next,A,P,T,o,n,s),f.set(P,y),S=[],I=[],p=y.next;continue}if(l&&g0(E,A,T,n),(E.e.f&8192)!==0&&(ts(E.e),d&&((Pe=E.a)==null||Pe.unfix(),(w!=null?w:w=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],Z;y=z.prev;var U=S[0],Q=S[S.length-1];for(Z=0;Z<S.length;Z+=1)Xv(S[Z],z,i);for(Z=0;Z<I.length;Z+=1)$.delete(I[Z]);_s(e,U.prev,Q.next),_s(e,y,U),_s(e,Q,z),p=z,y=Q,T-=1,S=[],I=[]}else $.delete(E),Xv(E,p,i),_s(e,E.prev,E.next),_s(e,E,y===null?e.first:y.next),_s(e,y,E),y=E;continue}for(S=[],I=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),y=E,p=E.next}if(p!==null||$!==void 0){for(var ee=$===void 0?[]:rl($);p!==null;)(p.e.f&8192)===0&&ee.push(p),p=p.next;var ae=ee.length;if(ae>0){var _e=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<ae;T+=1)(ze=ee[T].a)==null||ze.measure();for(T=0;T<ae;T+=1)(ie=ee[T].a)==null||ie.fix()}m0(e,ee,_e,f)}}d&&Wo(()=>{var Le;if(w!==void 0)for(E of w)(Le=E.a)==null||Le.apply()}),bt.first=e.first&&e.first.e,bt.last=y&&y.e}function g0(t,e,i,o){(o&1)!==0&&_a(t.v,e),(o&2)!==0?_a(t.i,i):t.i=i}function eg(t,e,i,o,n,a,s,d,l,u){var f=bs,_=(l&1)!==0,p=(l&16)===0,$=_?p?Jr(n):Bi(n):n,y=(l&2)===0?s:Bi(s);Te&&_&&($.debug=()=>{var S=typeof y=="number"?s:y.v;u()[S]});var w={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};bs=w;try{return w.e=Oi(()=>d(t,$,y,u),Ye),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{bs=f}}function Xv(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=To(a);n.before(a),a=s}}function _s(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function h0(t,e,i){var a,s;if(!e||e===Fv(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=Xo)!=null&&s[fi]&&(o=`in ${Xo[fi]}`),$v(Wu(o))}function Sl(t,e,i,o,n){var a=t,s="",d;no(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Vi();return}d!==void 0&&(io(d),d=void 0),s!==""&&(d=Oi(()=>{if(Ye){for(var u=ft.data,f=Vi(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=To(f);if(f===null)throw Os(),Gr;Te&&!n&&h0(f.parentNode,u,s),bo(ft,_),a=mi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Aa(p);if((i||o)&&($=vi($)),bo(vi($),$.lastChild),i||o)for(;vi($);)a.before(vi($));else a.before($)}))})}function me(t,e,...i){var o=t,n=ne,a;no(()=>{n!==(n=e())&&(a&&(io(a),a=null),Te&&n==null&&sv(),a=Oi(()=>n(o,...i)))},65536),Ye&&(o=ft)}function Ri(t,e,i){Ye&&Vi();var o=t,n,a;no(()=>{n!==(n=e())&&(a&&(fn(a),a=null),n&&(a=Oi(()=>i(o,n))))},65536),Ye&&(o=ft)}function Cl(t,e,i,o,n,a){var y;let s=Ye;Ye&&Vi();var d=Te&&a&&((y=wt)==null?void 0:y.function[fi]),l,u,f=null;Ye&&ft.nodeType===1&&(f=ft,Vi());var _=Ye?ft:t,p,$=bs;no(()=>{let w=e()||null;var S=n?n():i||w==="svg"?_u:null;if(w!==l){var I=bs;ep($),p&&(w===null?fn(p,()=>{p=null,u=null}):w===u?ts(p):(io(p),lc(!1))),w&&w!==u&&(p=Oi(()=>{if(f=Ye?f:S?document.createElementNS(S,w):document.createElement(w),Te&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),bo(f,f),o){Ye&&Wv(w)&&f.append(document.createComment(""));var A=Ye?vi(f):f.appendChild(jo());Ye&&(A===null?oo(!1):mi(A)),o(f,A)}bt.nodes_end=f,_.before(f)})),l=w,l&&(u=l),lc(!0),ep(I)}},65536),s&&(oo(!0),mi(_))}var ip;function tg(t){return ip=t.target,new tp(t)}var os,or,tp=class{constructor(e){fs(this,os);fs(this,or);var a,s;var i=new Map,o=(d,l)=>{var u=Jr(l);return i.set(d,u),u};let n=new Proxy(Mt(q({},e.props||{}),{$$events:{}}),{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===nl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});ma(this,or,(e.hydrate?Zu:is)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Sa(),ma(this,os,n.$$events);for(let d of Object.keys(ki(this,or)))d==="$set"||d==="$destroy"||d==="$on"||eo(this,d,{get(){return ki(this,or)[d]},set(l){ki(this,or)[d]=l},enumerable:!0});ki(this,or).$set=d=>{Object.assign(n,d)},ki(this,or).$destroy=()=>{qs(ki(this,or))}}$set(e){ki(this,or).$set(e)}$on(e,i){ki(this,os)[e]=ki(this,os)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,os)[e].push(o),()=>{ki(this,os)[e]=ki(this,os)[e].filter(n=>n!==o)}}$destroy(){ki(this,or).$destroy()}};os=new WeakMap,or=new WeakMap;function G(t,e){Wo(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=ip)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Te&&Gv(e.hash,d)}})}function ig(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=ig(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function og(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ig(t))&&(o&&(o+=" "),o+=e);return o}function Tl(t){return typeof t=="object"?og(t):t!=null?t:""}var ng=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function sg(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||ng.includes(o[s-1]))&&(d===o.length||ng.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function rg(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 op(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ag(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(op)),n&&l.push(...Object.keys(n).map(op));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=op(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=rg(o)),n&&(i+=rg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=sg(i,o,a);(!Ye||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function np(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 ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=ag(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(np(t,i==null?void 0:i[0],o[0]),np(t,i==null?void 0:i[1],o[1],"important")):np(t,i,o));return o}var Ma=Symbol("class"),La=Symbol("style"),cg=Symbol("is custom element"),ug=Symbol("is html");function pg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=fg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||S0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Gm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&mg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=fg(t),s=a[cg],d=!a[ug];let l=Ye&&s;l&&oo(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Tl(i.class):(o||i[Ma])&&(i.class=null),i[La]&&((E=i.style)!=null||(i.style=null));var p=mg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,$,R,o,e==null?void 0:e[Ma],i[Ma]),u[T]=R,u[Ma]=i[Ma];continue}if(T==="style"){ot(t,R,e==null?void 0:e[La],i[La]),u[T]=R,u[La]=i[La];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},Z="$$"+T,U=T.slice(2);var S=zv(U);if(Uv(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[Z],z),u[Z]=null}if(R!=null)if(S)t[`__${U}`]=R,st([U]);else{let Q=function(ee){u[T].call(this,ee)};var P=Q;u[Z]=Yu(U,t,Q,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")De(t,T,R);else if(T==="autofocus")Qu(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)pg(t,R);else{var I=T;d||(I=qv(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Z=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Z?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Z?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&De(t,I,R,n)}}}return l&&oo(!0),u}function fg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[cg]:t.nodeName.includes("-"),[ug]:t.namespaceURI===Km}}var lg=new Map;function mg(t){var e=lg.get(t.nodeName);if(e)return e;lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=zd(o);for(var a in i)i[a].set&&e.push(a);o=jr(o)}return e}function S0(t,e,i){var o;Te&&(e==="srcset"&&C0(t,i)||rp((o=t.getAttribute(e))!=null?o:"",i)||bv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function C0(t,e){var i=dg(t.srcset),o=dg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(rp(i[s][0],n)||rp(n,i[s][0])))}var T0=Ud?()=>performance.now():()=>Date.now(),xr={tick:t=>(Ud?requestAnimationFrame:ne)(t),now:()=>T0(),tasks:new Set};function vg(){let t=xr.now();xr.tasks.forEach(e=>{e.c(t)||(xr.tasks.delete(e),e.f())}),xr.tasks.size!==0&&xr.tick(vg)}function gg(t){let e;return xr.tasks.size===0&&xr.tick(vg),{promise:new Promise(i=>{xr.tasks.add(e={c:t,f:i})}),abort(){xr.tasks.delete(e)}}}function dc(t,e){$l(()=>{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 hg(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 P0=t=>t;function ap(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function y(){var R;var E=Rt,T=bt;go(null),to(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{go(E),to(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),dc(e,"introstart"),p=sp(e,y(),$,1,()=>{dc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,dc(e,"outrostart"),$=sp(e,y(),p,0,()=>{dc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=bt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&yl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&pn(()=>{ht(()=>w.in())})}}function sp(t,e,i,o,n){var a=o===1;if(vs(e)){var s,d=!1;return Wo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=sp(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=P0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=hg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),Z=hg(u(z,1-z));P.push(Z),E||(E=Z.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var Q=w.currentTime;return S+I*_(Q/A)},f&&gg(()=>{if(w.playState!=="running")return!1;var Q=y();return f(Q,1-Q),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var $s,Va,Il,uc,_g,pc=class pc{constructor(e){fs(this,uc);fs(this,$s,new WeakMap);fs(this,Va);fs(this,Il);ma(this,Il,e)}observe(e,i){var o=ki(this,$s).get(e)||new Set;return o.add(i),ki(this,$s).set(e,o),zm(this,uc,_g).call(this).observe(e,ki(this,Il)),()=>{var n=ki(this,$s).get(e);n.delete(i),n.size===0&&(ki(this,$s).delete(e),ki(this,Va).unobserve(e))}}};$s=new WeakMap,Va=new WeakMap,Il=new WeakMap,uc=new WeakSet,_g=function(){var e;return(e=ki(this,Va))!=null?e:ma(this,Va,new ResizeObserver(i=>{for(var o of i){pc.entries.set(o.target,o);for(var n of ki(this,$s).get(o.target)||[])n(o)}}))},Nn(pc,"entries",new WeakMap);var lp=pc;var V0=new lp({box:"border-box"});function Hr(t,e,i){var o=V0.observe(t,()=>i(t[e]));pn(()=>(ht(()=>i(t[e])),o))}function bg(t,e){return t===e||(t==null?void 0:t[Ro])===e}function ct(t={},e,i,o){return pn(()=>{var n,a;return _o(()=>{n=a,a=(o==null?void 0:o())||[],ht(()=>{t!==i(...a)&&(e(t,...a),n&&bg(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{a&&bg(i(...a),t)&&e(null,...a)})}}),t}function wr(t=!1){let e=wt,i=e.l.u;if(!i)return;let o=()=>tc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ca(()=>{$g(e,o),gs(i.b)}),je(()=>{let n=ht(()=>i.m.map(Zm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&je(()=>{$g(e,o),gs(i.a)})}function $g(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;dv(e)},set:o=>{i=o}})}};N0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var N0;function Ot(t){wt===null&&Ta("onMount"),Dr&&wt.l!==null?R0(wt).m.push(t):je(()=>{let e=ht(t);if(typeof e=="function")return e})}function nr(t){wt===null&&Ta("onDestroy"),Ot(()=>()=>ht(t))}function R0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function kl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=ht(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ra=[];function rr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ne){let i=null,o=new Set;function n(d){if(va(t,d)&&(t=d,i)){let l=!Ra.length;for(let u of o)u[1](),Ra.push(u,t);if(l){for(let u=0;u<Ra.length;u+=2)Ra[u][0](Ra[u+1]);Ra.length=0}}}function a(d){n(d(t))}function s(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function gi(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 rr(i,(s,d)=>{let l=!1,u=[],f=0,_=ne,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:ne},$=n.map((y,w)=>kl(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){gs($),_(),l=!1}})}function we(t){let e;return kl(t,i=>e=i)(),e}var fc=!1,dp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Jr(void 0),unsubscribe:ne};if(o.store!==t&&!(dp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=kl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&dp in i?we(t):r(o.source)}function Fe(){let t={};function e(){Jo(()=>{for(var i in t)t[i].unsubscribe();eo(t,dp,{enumerable:!1,value:!0})})}return[t,e]}function cp(t){var e=fc;try{return fc=!1,[t(),fc]}finally{fc=e}}var z0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&lv(`${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 ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},z0)}var q0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(vs(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];vs(n)&&(n=n());let a=Dn(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(vs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Dn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===nl)return!1;for(let i of t.props)if(vs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){vs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},q0)}function yg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Z;var n=(i&1)!==0,a=!Dr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=cp(()=>t[e]):u=t[e];var f=Ro in t||nl in t,_=s&&((Z=(z=Dn(t,e))==null?void 0:z.set)!=null?Z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=ht(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&av(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:$r)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Q){return arguments.length>0?((!a||!Q||A||l)&&_(Q?S():U),U):S()}}var P=!1,E=!1,T=Jr(u),R=m(()=>{var U=S(),Q=r(T);return P?(P=!1,E=!0,Q):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=ga),function(U,Q){if(ll!==null&&(P=E,S(),r(T)),arguments.length>0){let ee=Q?r(R):a&&s?pe(U):U;if(!R.equals(ee)){if(P=!0,O(T,ee),y&&p!==void 0&&(p=ee),yg(R))return U;ht(()=>r(R))}return U}return yg(R)?R.v:r(R)}}var K0;typeof HTMLElement=="function"&&(K0=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=W0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=up(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=tg({component:this.$$ctor,target:this.shadowRoot||this,props:Mt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=oc(()=>{_o(()=>{var a;this.$$r=!0;for(let s of $u(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=up(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=up(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return $u(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function up(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function W0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var xg="5";var wg,Sg,Cg;typeof window!="undefined"&&((Cg=(Sg=(wg=window.__svelte)!=null?wg:window.__svelte={}).v)!=null?Cg:Sg.v=new Set).add(xg);import{clientChecker as bx}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as y1,safeStorage as $x,throttleFn as yx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as xx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as G0,fillWithDefault as Y0,VideoQuality as Tg}from"@vkontakte/videoplayer-shared/es2015";var j0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:G0.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:Tg.Q_480P,highQualityLimit:Tg.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Ig=t=>Y0(t,j0),kg=t=>ka("ui-config",t),Wt=()=>Ia("ui-config");var El="vk_player_debug_panel_opened";var Eg="videoplayer",Ag="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Pg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Mg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lg=new Set(["ShiftRight","ShiftLeft"]);var Vg=["TIMELINE"],Al=[...Vg,"GRAPH_BUTTON"],pp=[...Vg,"PLAY_BUTTON"],Pl=[...Al,"PLAY_BUTTON"];var Ur=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ur||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Rg,VERSION as Z0}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as X0}from"@vkontakte/videoplayer-core/es2015";import{VERSION as J0}from"@vkontakte/videoplayer-statistics/es2015";var mc="prod",Na="1.1.60-dev.901a385a.0";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ng=Symbol("storeContext"),Dg=Symbol("microStoresContext"),Bg=(t,e)=>{ka(Ng,t),ka(Dg,e),mc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ia(Ng);return Rg(t,"Store context is empty!"),t},ro=()=>{let t=Ia(Dg);return Rg(t,"MicroStores context is empty!"),t},Xt=(t,e)=>gc(t,t.getValue(),e),gc=(t,e,i)=>rr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Og=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Na} (core: ${X0}, stat: ${J0}, shared: ${Z0})`,f=we(i.state.errorLog$),_=f.length?`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function sg(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||ng.includes(o[s-1]))&&(d===o.length||ng.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function rg(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 op(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ag(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(op)),n&&l.push(...Object.keys(n).map(op));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=op(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=rg(o)),n&&(i+=rg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function oe(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=sg(i,o,a);(!Ye||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function np(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 ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=ag(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(np(t,i==null?void 0:i[0],o[0]),np(t,i==null?void 0:i[1],o[1],"important")):np(t,i,o));return o}var Ma=Symbol("class"),La=Symbol("style"),cg=Symbol("is custom element"),ug=Symbol("is html");function pg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function De(t,e,i,o){var n=fg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||S0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[Gm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&mg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Se(t,e,i,o,n=!1){var E;var a=fg(t),s=a[cg],d=!a[ug];let l=Ye&&s;l&&oo(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Tl(i.class):(o||i[Ma])&&(i.class=null),i[La]&&((E=i.style)!=null||(i.style=null));var p=mg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";oe(t,$,R,o,e==null?void 0:e[Ma],i[Ma]),u[T]=R,u[Ma]=i[Ma];continue}if(T==="style"){ot(t,R,e==null?void 0:e[La],i[La]),u[T]=R,u[La]=i[La];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},Z="$$"+T,U=T.slice(2);var S=zv(U);if(Uv(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[Z],z),u[Z]=null}if(R!=null)if(S)t[`__${U}`]=R,st([U]);else{let Q=function(ee){u[T].call(this,ee)};var P=Q;u[Z]=Yu(U,t,Q,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")De(t,T,R);else if(T==="autofocus")Qu(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)pg(t,R);else{var I=T;d||(I=qv(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,Z=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=Z?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=Z?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&De(t,I,R,n)}}}return l&&oo(!0),u}function fg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[cg]:t.nodeName.includes("-"),[ug]:t.namespaceURI===Km}}var lg=new Map;function mg(t){var e=lg.get(t.nodeName);if(e)return e;lg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=zd(o);for(var a in i)i[a].set&&e.push(a);o=jr(o)}return e}function S0(t,e,i){var o;Te&&(e==="srcset"&&C0(t,i)||rp((o=t.getAttribute(e))!=null?o:"",i)||bv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function rp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function dg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function C0(t,e){var i=dg(t.srcset),o=dg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(rp(i[s][0],n)||rp(n,i[s][0])))}var T0=Ud?()=>performance.now():()=>Date.now(),xr={tick:t=>(Ud?requestAnimationFrame:ne)(t),now:()=>T0(),tasks:new Set};function vg(){let t=xr.now();xr.tasks.forEach(e=>{e.c(t)||(xr.tasks.delete(e),e.f())}),xr.tasks.size!==0&&xr.tick(vg)}function gg(t){let e;return xr.tasks.size===0&&xr.tick(vg),{promise:new Promise(i=>{xr.tasks.add(e={c:t,f:i})}),abort(){xr.tasks.delete(e)}}}function dc(t,e){$l(()=>{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 hg(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 P0=t=>t;function ap(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function y(){var R;var E=Rt,T=bt;go(null),to(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{go(E),to(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),dc(e,"introstart"),p=sp(e,y(),$,1,()=>{dc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,dc(e,"outrostart"),$=sp(e,y(),p,0,()=>{dc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=bt;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&yl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&pn(()=>{ht(()=>w.in())})}}function sp(t,e,i,o,n){var a=o===1;if(vs(e)){var s,d=!1;return Wo(()=>{if(!d){var S=e({direction:a?"in":"out"});s=sp(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:ne,deactivate:ne,reset:ne,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=P0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=hg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),Z=hg(u(z,1-z));P.push(Z),E||(E=Z.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var Q=w.currentTime;return S+I*_(Q/A)},f&&gg(()=>{if(w.playState!=="running")return!1;var Q=y();return f(Q,1-Q),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=ne)},deactivate:()=>{n=ne},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var $s,Va,Il,uc,_g,pc=class pc{constructor(e){fs(this,uc);fs(this,$s,new WeakMap);fs(this,Va);fs(this,Il);ma(this,Il,e)}observe(e,i){var o=ki(this,$s).get(e)||new Set;return o.add(i),ki(this,$s).set(e,o),zm(this,uc,_g).call(this).observe(e,ki(this,Il)),()=>{var n=ki(this,$s).get(e);n.delete(i),n.size===0&&(ki(this,$s).delete(e),ki(this,Va).unobserve(e))}}};$s=new WeakMap,Va=new WeakMap,Il=new WeakMap,uc=new WeakSet,_g=function(){var e;return(e=ki(this,Va))!=null?e:ma(this,Va,new ResizeObserver(i=>{for(var o of i){pc.entries.set(o.target,o);for(var n of ki(this,$s).get(o.target)||[])n(o)}}))},Nn(pc,"entries",new WeakMap);var lp=pc;var V0=new lp({box:"border-box"});function Hr(t,e,i){var o=V0.observe(t,()=>i(t[e]));pn(()=>(ht(()=>i(t[e])),o))}function bg(t,e){return t===e||(t==null?void 0:t[Ro])===e}function ct(t={},e,i,o){return pn(()=>{var n,a;return _o(()=>{n=a,a=(o==null?void 0:o())||[],ht(()=>{t!==i(...a)&&(e(t,...a),n&&bg(i(...n),t)&&e(null,...n))})}),()=>{Wo(()=>{a&&bg(i(...a),t)&&e(null,...a)})}}),t}function wr(t=!1){let e=wt,i=e.l.u;if(!i)return;let o=()=>tc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Ca(()=>{$g(e,o),gs(i.b)}),je(()=>{let n=ht(()=>i.m.map(Zm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&je(()=>{$g(e,o),gs(i.a)})}function $g(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Te){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;dv(e)},set:o=>{i=o}})}};N0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var N0;function Ot(t){wt===null&&Ta("onMount"),Dr&&wt.l!==null?R0(wt).m.push(t):je(()=>{let e=ht(t);if(typeof e=="function")return e})}function nr(t){wt===null&&Ta("onDestroy"),Ot(()=>()=>ht(t))}function R0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function kl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),ne;let o=ht(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ra=[];function rr(t,e){return{subscribe:de(t,e).subscribe}}function de(t,e=ne){let i=null,o=new Set;function n(d){if(va(t,d)&&(t=d,i)){let l=!Ra.length;for(let u of o)u[1](),Ra.push(u,t);if(l){for(let u=0;u<Ra.length;u+=2)Ra[u][0](Ra[u+1]);Ra.length=0}}}function a(d){n(d(t))}function s(d,l=ne){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||ne),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function gi(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 rr(i,(s,d)=>{let l=!1,u=[],f=0,_=ne,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:ne},$=n.map((y,w)=>kl(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){gs($),_(),l=!1}})}function we(t){let e;return kl(t,i=>e=i)(),e}var fc=!1,dp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:Jr(void 0),unsubscribe:ne};if(o.store!==t&&!(dp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=ne;else{var n=!0;o.unsubscribe=kl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&dp in i?we(t):r(o.source)}function Fe(){let t={};function e(){Jo(()=>{for(var i in t)t[i].unsubscribe();eo(t,dp,{enumerable:!1,value:!0})})}return[t,e]}function cp(t){var e=fc;try{return fc=!1,[t(),fc]}finally{fc=e}}var z0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Te&&lv(`${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 ke(t,e,i){return new Proxy(Te?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},z0)}var q0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(vs(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];vs(n)&&(n=n());let a=Dn(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(vs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Dn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===nl)return!1;for(let i of t.props)if(vs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){vs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ns(...t){return new Proxy({props:t},q0)}function yg(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,Z;var n=(i&1)!==0,a=!Dr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=cp(()=>t[e]):u=t[e];var f=Ro in t||nl in t,_=s&&((Z=(z=Dn(t,e))==null?void 0:z.set)!=null?Z:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=ht(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&av(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:$r)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,Q){return arguments.length>0?((!a||!Q||A||l)&&_(Q?S():U),U):S()}}var P=!1,E=!1,T=Jr(u),R=m(()=>{var U=S(),Q=r(T);return P?(P=!1,E=!0,Q):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=ga),function(U,Q){if(ll!==null&&(P=E,S(),r(T)),arguments.length>0){let ee=Q?r(R):a&&s?pe(U):U;if(!R.equals(ee)){if(P=!0,O(T,ee),y&&p!==void 0&&(p=ee),yg(R))return U;ht(()=>r(R))}return U}return yg(R)?R.v:r(R)}}var K0;typeof HTMLElement=="function"&&(K0=class extends HTMLElement{constructor(e,i,o){super();Nn(this,"$$ctor");Nn(this,"$$s");Nn(this,"$$c");Nn(this,"$$cn",!1);Nn(this,"$$d",{});Nn(this,"$$r",!1);Nn(this,"$$p_d",{});Nn(this,"$$l",{});Nn(this,"$$l_u",new Map);Nn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}connectedCallback(){return xt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=W0(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=up(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=tg({component:this.$$ctor,target:this.shadowRoot||this,props:Mt(q({},this.$$d),{$$slots:o,$$host:this})}),this.$$me=oc(()=>{_o(()=>{var a;this.$$r=!0;for(let s of $u(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=up(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}})}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=up(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return $u(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function up(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function W0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var xg="5";var wg,Sg,Cg;typeof window!="undefined"&&((Cg=(Sg=(wg=window.__svelte)!=null?wg:window.__svelte={}).v)!=null?Cg:Sg.v=new Set).add(xg);import{clientChecker as bx}from"@vkontakte/videoplayer-core/es2015";import"@vkontakte/videoplayer-core/es2015";import{noop as y1,safeStorage as $x,throttleFn as yx}from"@vkontakte/videoplayer-shared/es2015";import{SeekAction as xx}from"@vkontakte/videoplayer-statistics/es2015";import{InterfaceLanguage as G0,fillWithDefault as Y0,VideoQuality as Tg}from"@vkontakte/videoplayer-shared/es2015";var j0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:G0.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:Tg.Q_480P,highQualityLimit:Tg.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Ig=t=>Y0(t,j0),kg=t=>ka("ui-config",t),Wt=()=>Ia("ui-config");var El="vk_player_debug_panel_opened";var Eg="videoplayer",Ag="videoplayer";var Fr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Pg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Mg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Lg=new Set(["ShiftRight","ShiftLeft"]);var Vg=["TIMELINE"],Al=[...Vg,"GRAPH_BUTTON"],pp=[...Vg,"PLAY_BUTTON"],Pl=[...Al,"PLAY_BUTTON"];var Ur=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Ur||{}),Ws={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as Rg,VERSION as Z0}from"@vkontakte/videoplayer-shared/es2015";import{VERSION as X0}from"@vkontakte/videoplayer-core/es2015";import{VERSION as J0}from"@vkontakte/videoplayer-statistics/es2015";var mc="prod",Na="1.1.60-dev.e2ea22dc.0";var Qs=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Ng=Symbol("storeContext"),Dg=Symbol("microStoresContext"),Bg=(t,e)=>{ka(Ng,t),ka(Dg,e),mc==="dev"&&(window.app={store:t,microStores:e})},Ie=()=>{let t=Ia(Ng);return Rg(t,"Store context is empty!"),t},ro=()=>{let t=Ia(Dg);return Rg(t,"MicroStores context is empty!"),t},Xt=(t,e)=>gc(t,t.getValue(),e),gc=(t,e,i)=>rr(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),Og=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=we(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Na} (core: ${X0}, stat: ${J0}, shared: ${Z0})`,f=we(i.state.errorLog$),_=f.length?`
|
|
49
49
|
`+f.map((z,Z)=>{var ae;let U=`${Z}) Type: ${z.id}
|
|
50
50
|
`,Q=`Message: ${z.message} (${z.thrown})
|
|
51
51
|
`,ee=`Trace: ${(ae=z.thrown)==null?void 0:ae.stack}
|
package/es2018.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.60-dev.
|
|
3
|
-
* Wed, 02 Apr 2025 11:
|
|
2
|
+
* @vkontakte/videoplayer v1.1.60-dev.e2ea22dc.0
|
|
3
|
+
* Wed, 02 Apr 2025 11:48:54 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-60/doc/
|
|
5
5
|
*/
|
|
6
6
|
"use strict";var X1=Object.create;var _l=Object.defineProperty;var J1=Object.getOwnPropertyDescriptor;var e0=Object.getOwnPropertyNames;var t0=Object.getPrototypeOf,i0=Object.prototype.hasOwnProperty;var tv=t=>{throw TypeError(t)};var o0=(t,e,i)=>e in t?_l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var n0=(t,e)=>{for(var i in e)_l(t,i,{get:e[i],enumerable:!0})},iv=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of e0(e))!i0.call(t,n)&&n!==i&&_l(t,n,{get:()=>e[n],enumerable:!(o=J1(e,n))||o.enumerable});return t};var ov=(t,e,i)=>(i=t!=null?X1(t0(t)):{},iv(e||!t||!t.__esModule?_l(i,"default",{value:t,enumerable:!0}):i,t)),r0=t=>iv(_l({},"__esModule",{value:!0}),t);var Rn=(t,e,i)=>o0(t,typeof e!="symbol"?e+"":e,i),Eu=(t,e,i)=>e.has(t)||tv("Cannot "+i);var Ci=(t,e,i)=>(Eu(t,e,"read from private field"),i?i.call(t):e.get(t)),cs=(t,e,i)=>e.has(t)?tv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),$a=(t,e,i,o)=>(Eu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),nv=(t,e,i)=>(Eu(t,e,"access private method"),i);var ox={};n0(ox,{ControlButtonType:()=>_d,GridTypes:()=>wr,InterfaceLanguage:()=>pl.InterfaceLanguage,MenuItemType:()=>ja,PlayerPhase:()=>_s,VERSION:()=>Gs,VKNumericLanguage:()=>pl.VKNumericLanguage,VideoFormat:()=>Su.VideoFormat,VideoQuality:()=>Su.VideoQuality,loadVKLangPack:()=>pl.loadVKLangPack,registerPlayerWebComponent:()=>ix});module.exports=r0(ox);var us="[",Ms="[!",Ls="]",Kr={};var Ti=Symbol(),ui=Symbol("filename"),rv=Symbol("hmr"),sv="http://www.w3.org/1999/xhtml",Au="http://www.w3.org/2000/svg";var ic=!0;var av,lv,Pu=(lv=(av=globalThis.process)==null?void 0:av.env)==null?void 0:lv.NODE_ENV;Pu||console.warn("If bundling, conditions should include development or production. If not bundling, conditions or NODE_ENV should include development or production. See https://www.npmjs.com/package/esm-env for tips on setting conditions in popular bundlers and runtimes.");var Ce=Pu&&!Pu.toLowerCase().includes("prod");var Ro=Symbol("$state"),Wr=Symbol("$state metadata"),bl=Symbol("legacy props"),dv=Symbol("");var gr=Array.isArray,cv=Array.prototype.indexOf,$l=Array.from,Mu=Object.keys,to=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,oc=Object.getOwnPropertyDescriptors,Lu=Object.prototype,uv=Array.prototype,Qr=Object.getPrototypeOf;function ps(t){return typeof t=="function"}var oe=()=>{};function pv(t){return t()}function fs(t){for(var e=0;e<t.length;e++)t[e]()}var yl=[],Vu=[];function fv(){var t=yl;yl=[],fs(t)}function s0(){var t=Vu;Vu=[],fs(t)}function Ko(t){yl.length===0&&queueMicrotask(fv),yl.push(t)}function Ru(){yl.length>0&&fv(),Vu.length>0&&s0()}function nc(t){return t===this.v}function ya(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function mv(t,e){return t!==e}function xa(t){return!ya(t,this.v)}function vv(){if(Ce){let t=new Error(`derived_references_self
|
|
@@ -45,7 +45,7 @@ ${l}in ${p}`).join("")}
|
|
|
45
45
|
`)){let n=(i=h0.exec(o))!=null?i:_0.exec(o);n&&e.push({file:n[1],line:+n[2],column:+n[3]})}return e}function tg(){var e;let t=(e=b0())==null?void 0:e.slice(4);if(!t)return null;for(let i=0;i<t.length;i++){let o=t[i],n=g0[o.file];if(!n){if(i===0)return null;continue}for(let a of n){if(a.end==null)return null;if(a.start.line<o.line&&a.end.line>o.line)return a.component}}return null}var bc=Symbol("ADD_OWNER");function ep(t,e,i=!1,o=!1){if(t&&!i){let n=Zo,a=t[Wr];if(a&&!tp(a,n)){let s=ip(a);e&&e[ui]!==n[ui]&&!o&&Dv(n[ui],e[ui],s[ui])}}$c(t,e,new Set)}function qu(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 $c(t,e,i){var a;let o=t==null?void 0:t[Wr];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),bc in t&&t[bc])bo(()=>{t[bc](e)});else{var n=Qr(t);if(n===Object.prototype)for(let s in t)if((a=Object.getOwnPropertyDescriptor(t,s))!=null&&a.get){let d=Ti;bo(()=>{let l=t[s];d!==l&&(d=l,$c(l,e,i))})}else $c(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)$c(t[s],e,i)}}}function tp(t,e){return t.owners===null?!0:t.owners.has(e)||ui in e&&[...t.owners].some(i=>i[ui]===e[ui])||t.parent!==null&&tp(t.parent,e)}function ip(t){var e,i;return(i=(e=t==null?void 0:t.owners)==null?void 0:e.values().next().value)!=null?i:ip(t.parent)}var $0=!1;function Ov(t){if($0)return;let e=tg();if(e&&!tp(t,e)){let i=ip(t);i[ui]!==e[ui]?zu(e[ui],i[ui]):zu()}}function Ma(t){if(Ce){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 wt=null;function Pl(t){wt=t}var Zo=null;function Ml(t){Zo=t}function La(t){return op("getContext").get(t)}function Va(t,e){let i=op("setContext");return Ce&&_t(()=>ep(e,null,!0)),i.set(t,e),e}function Vl(){return op("getAllContexts")}function q(t,e=!1,i){var o=wt={p:wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Nr&&!e&&(wt.l={s:null,u:null,r1:[],r2:Di(!1)}),Xo(()=>{o.d=!0}),Ce&&(wt.function=i,Zo=i)}function K(t){var s,d;let e=wt;if(e!==null){t!==void 0&&(e.x=t);let l=e.e;if(l!==null){var i=$t,o=Vt;e.e=null;try{for(var n=0;n<l.length;n++){var a=l[n];io(a.effect),ho(a.reaction),fn(a.fn)}}finally{io(i),ho(o)}}wt=e.p,Ce&&(Zo=(d=(s=e.p)==null?void 0:s.function)!=null?d:null),e.m=!0}return t||{}}function Br(){return!Nr||wt!==null&&wt.l===null}function op(t){var e;return wt===null&&Ma(t),(e=wt.c)!=null?e:wt.c=new Map(x0(wt)||void 0)}function x0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var w0=/\r/g;function ig(t){t=t.replace(w0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function og(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var S0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ng(t){return S0.includes(t)}var C0=["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 T0={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 rg(t){var e;return t=t.toLowerCase(),(e=T0[t])!=null?e:t}var ow=[...C0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var I0=["touchstart","touchmove"];function sg(t){return I0.includes(t)}var k0=["textarea","script","style","title"];function ag(t){return k0.includes(t)}function np(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var lg=new Map;function dg(t,e){var i=lg.get(t);i||(i=new Set,lg.set(t,i)),i.add(e)}function rp(t,e){if(e){let i=document.body;t.autofocus=!0,Ko(()=>{document.activeElement===i&&t.focus()})}}function Rl(t){var e=Vt,i=$t;ho(null),io(null);try{return t()}finally{ho(e),io(i)}}var sp=new Set,yc=new Set;function zs(t){if(!Ye)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 ap(t,e,i,o={}){function n(a){if(o.capture||Ra.call(e,a),!a.cancelBubble)return Rl(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ko(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Rt(t,e,i,o,n){var a={capture:o,passive:n},s=ap(t,e,i,a);(e===document.body||e===window||e===document)&&Xo(()=>{e.removeEventListener(t,s,a)})}function st(t){for(var e=0;e<t.length;e++)sp.add(t[e]);for(var i of yc)i(t)}function Ra(t){var A;var e=this,i=e.ownerDocument,o=t.type,n=((A=t.composedPath)==null?void 0:A.call(t))||[],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 u=n.indexOf(e);if(u===-1)return;l<=u&&(s=l)}if(a=n[s]||t.target,a!==e){to(t,"currentTarget",{configurable:!0,get(){return a||i}});var f=Vt,_=$t;ho(null),io(null);try{for(var p,$=[];a!==null;){var y=a.assignedSlot||a.parentNode||a.host||null;try{var w=a["__"+o];if(w!=null&&(!a.disabled||t.target===a))if(gr(w)){var[S,...I]=w;S.apply(a,[t,...I])}else w.call(a,t)}catch(P){p?$.push(P):p=P}if(t.cancelBubble||y===e||y===null)break;a=y}if(p){for(let P of $)queueMicrotask(()=>{throw P});throw p}}finally{t.__root=e,delete t.currentTarget,ho(f),io(_)}}}var A0;function cg(){A0=void 0}function Na(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function $o(t,e){var i=$t;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Ye)return $o(ft,null),ft;n===void 0&&(n=Na(a?t:"<!>"+t),i||(n=fi(n)));var s=o||Cl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(s),l=s.lastChild;$o(d,l)}else $o(s,s);return s}}function be(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Ye)return $o(ft,null),ft;if(!s){var d=Na(a),l=fi(d);if(n)for(s=document.createDocumentFragment();fi(l);)s.appendChild(fi(l));else s=fi(l)}var u=s.cloneNode(!0);if(n){var f=fi(u),_=u.lastChild;$o(f,_)}else $o(u,u);return u}}function er(t=""){if(!Ye){var e=Yo(t+"");return $o(e,e),e}var i=ft;return i.nodeType!==3&&(i.before(i=Yo()),pi(i)),$o(i,i),i}function Ue(){if(Ye)return $o(ft,null),ft;var t=document.createDocumentFragment(),e=document.createComment(""),i=Yo();return t.append(e,i),$o(e,i),t}function b(t,e){if(Ye){$t.nodes_end=ft,Pi();return}t!==null&&t.before(e)}var Nl=!0;function xc(t){Nl=t}function pe(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Jr(t,e){return pg(t,e)}function dp(t,e){var s;dc(),e.intro=(s=e.intro)!=null?s:!1;let i=e.target,o=Ye,n=ft;try{for(var a=fi(i);a&&(a.nodeType!==8||a.data!==us);)a=To(a);if(!a)throw Kr;no(!0),pi(a),Pi();let d=pg(t,{...e,anchor:a});if(ft===null||ft.nodeType!==8||ft.data!==Ls)throw Os(),Kr;return no(!1),d}catch(d){if(d===Kr)return e.recover===!1&&$v(),dc(),Tl(i),no(!1),Jr(t,e);throw d}finally{no(o),pi(n),cg()}}var Da=new Map;function pg(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){dc();var d=new Set,l=_=>{for(var p=0;p<_.length;p++){var $=_[p];if(!d.has($)){d.add($);var y=sg($);e.addEventListener($,Ra,{passive:y});var w=Da.get($);w===void 0?(document.addEventListener($,Ra,{passive:y}),Da.set($,1)):Da.set($,w+1)}}};l($l(sp)),yc.add(l);var u=void 0,f=Jv(()=>{var _=i!=null?i:e.appendChild(Yo());return Bi(()=>{if(a){q({});var p=wt;p.c=a}n&&(o.$$events=n),Ye&&$o(_,null),Nl=s,u=t(_,o)||{},Nl=!0,Ye&&($t.nodes_end=ft),a&&K()}),()=>{var y;for(var p of d){e.removeEventListener(p,Ra);var $=Da.get(p);--$===0?(document.removeEventListener(p,Ra),Da.delete(p)):Da.set(p,$)}yc.delete(l),_!==i&&((y=_.parentNode)==null||y.removeChild(_))}});return lp.set(u,f),u}var lp=new WeakMap;function qs(t,e){let i=lp.get(t);return i?(lp.delete(t),i(e)):(Ce&&Nv(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Ye&&i===0&&Pi();var n=t,a=null,s=null,d=Ti,l=i>0?65536:0,u=!1;let f=(p,$=!0)=>{u=!0,_($,p)},_=(p,$)=>{if(d===(d=p))return;let y=!1;if(Ye&&o!==-1){if(i===0){let S=n.data;S===us?o=0:S===Ms?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=Ia(),pi(n),no(!1),y=!0,o=-1)}d?(a?Xr(a):$&&(a=Bi(()=>$(n))),s&&mn(s,()=>{s=null})):(s?Xr(s):$&&(s=Bi(()=>$(n,[i+1,o]))),a&&mn(a,()=>{a=null})),y&&no(!0)};ro(()=>{u=!1,e(f),u||_(null,null)},l),Ye&&(n=ft)}function Dl(t,e,i){Ye&&Pi();var o=t,n=Ti,a,s=Br()?mv:ya;ro(()=>{s(n,n=e())&&(a&&mn(a),a=Bi(()=>i(o)))}),Ye&&(o=ft)}var gs=null;function pp(t){gs=t}function Bl(t,e){return e}function V0(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)_c(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;Tl(l),l.append(i),o.clear(),vs(t,e[0].prev,e[a-1].next)}Ju(n,()=>{for(var u=0;u<a;u++){var f=e[u];d||(o.delete(f.k),vs(t,f.prev,f.next)),oo(f.e,!d)}})}function bi(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 u=t;s=Ye?pi(fi(u)):u.appendChild(Yo())}Ye&&Pi();var f=null,_=!1,p=br(()=>{var $=i();return gr($)?$:$==null?[]:$l($)});ro(()=>{var $=r(p),y=$.length;if(_&&y===0)return;_=y===0;let w=!1;if(Ye){var S=s.data===Ms;S!==(y===0)&&(s=Ia(),pi(s),no(!1),w=!0)}if(Ye){for(var I=null,A,P=0;P<y;P++){if(ft.nodeType===8&&ft.data===Ls){s=ft,w=!0,no(!1);break}var E=$[P],T=o(E,P);A=vg(ft,d,I,null,E,T,P,n,e,i),d.items.set(T,A),I=A}y>0&&pi(Ia())}Ye||R0($,d,s,n,e,o,i),a!==null&&(y===0?f?Xr(f):f=Bi(()=>a(s)):f!==null&&mn(f,()=>{f=null})),w&&no(!0),r(p)}),Ye&&(s=ft)}function R0(t,e,i,o,n,a,s){var ne,Ae,ze,te;var d=(n&8)!==0,l=(n&3)!==0,u=t.length,f=e.items,_=e.first,p=_,$,y=null,w,S=[],I=[],A,P,E,T;if(d)for(T=0;T<u;T+=1)A=t[T],P=a(A,T),E=f.get(P),E!==void 0&&((ne=E.a)==null||ne.measure(),(w!=null?w:w=new Set).add(E));for(T=0;T<u;T+=1){if(A=t[T],P=a(A,T),E=f.get(P),E===void 0){var R=p?p.e.nodes_start:i;y=vg(R,e,y,y===null?e.first:y.next,A,P,T,o,n,s),f.set(P,y),S=[],I=[],p=y.next;continue}if(l&&N0(E,A,T,n),(E.e.f&8192)!==0&&(Xr(E.e),d&&((Ae=E.a)==null||Ae.unfix(),(w!=null?w:w=new Set).delete(E))),E!==p){if($!==void 0&&$.has(E)){if(S.length<I.length){var z=I[0],j;y=z.prev;var U=S[0],W=S[S.length-1];for(j=0;j<S.length;j+=1)fg(S[j],z,i);for(j=0;j<I.length;j+=1)$.delete(I[j]);vs(e,U.prev,W.next),vs(e,y,U),vs(e,W,z),p=z,y=W,T-=1,S=[],I=[]}else $.delete(E),fg(E,p,i),vs(e,E.prev,E.next),vs(e,E,y===null?e.first:y.next),vs(e,y,E),y=E;continue}for(S=[],I=[];p!==null&&p.k!==P;)(p.e.f&8192)===0&&($!=null?$:$=new Set).add(p),I.push(p),p=p.next;if(p===null)continue;E=p}S.push(E),y=E,p=E.next}if(p!==null||$!==void 0){for(var J=$===void 0?[]:$l($);p!==null;)(p.e.f&8192)===0&&J.push(p),p=p.next;var se=J.length;if(se>0){var he=(n&4)!==0&&u===0?i:null;if(d){for(T=0;T<se;T+=1)(ze=J[T].a)==null||ze.measure();for(T=0;T<se;T+=1)(te=J[T].a)==null||te.fix()}V0(e,J,he,f)}}d&&Ko(()=>{var Me;if(w!==void 0)for(E of w)(Me=E.a)==null||Me.apply()}),$t.first=e.first&&e.first.e,$t.last=y&&y.e}function N0(t,e,i,o){(o&1)!==0&&Sa(t.v,e),(o&2)!==0?Sa(t.i,i):t.i=i}function vg(t,e,i,o,n,a,s,d,l,u){var f=gs,_=(l&1)!==0,p=(l&16)===0,$=_?p?jr(n):Di(n):n,y=(l&2)===0?s:Di(s);Ce&&_&&($.debug=()=>{var S=typeof y=="number"?s:y.v;u()[S]});var w={i:y,v:$,k:a,a:null,e:null,prev:i,next:o};gs=w;try{return w.e=Bi(()=>d(t,$,y,u),Ye),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{gs=f}}function fg(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=To(a);n.before(a),a=s}}function vs(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 D0(t,e,i){var a,s;if(!e||e===ig(String(i!=null?i:"")))return;let o,n=(a=t.__svelte_meta)==null?void 0:a.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(s=Zo)!=null&&s[ui]&&(o=`in ${Zo[ui]}`),Rv(np(o))}function Ol(t,e,i,o,n){var a=t,s="",d;ro(()=>{var l;if(s===(s=(l=e())!=null?l:"")){Ye&&Pi();return}d!==void 0&&(oo(d),d=void 0),s!==""&&(d=Bi(()=>{if(Ye){for(var u=ft.data,f=Pi(),_=f;f!==null&&(f.nodeType!==8||f.data!=="");)_=f,f=To(f);if(f===null)throw Os(),Kr;Ce&&!n&&D0(f.parentNode,u,s),$o(ft,_),a=pi(f);return}var p=s+"";i?p=`<svg>${p}</svg>`:o&&(p=`<math>${p}</math>`);var $=Na(p);if((i||o)&&($=fi($)),$o(fi($),$.lastChild),i||o)for(;fi($);)a.before(fi($));else a.before($)}))})}function fe(t,e,...i){var o=t,n=oe,a;ro(()=>{n!==(n=e())&&(a&&(oo(a),a=null),Ce&&n==null&&yv(),a=Bi(()=>n(o,...i)))},65536),Ye&&(o=ft)}function Mi(t,e,i){Ye&&Pi();var o=t,n,a;ro(()=>{n!==(n=e())&&(a&&(mn(a),a=null),n&&(a=Bi(()=>i(o,n))))},65536),Ye&&(o=ft)}function Hl(t,e,i,o,n,a){var y;let s=Ye;Ye&&Pi();var d=Ce&&a&&((y=wt)==null?void 0:y.function[ui]),l,u,f=null;Ye&&ft.nodeType===1&&(f=ft,Pi());var _=Ye?ft:t,p,$=gs;ro(()=>{let w=e()||null;var S=n?n():i||w==="svg"?Au:null;if(w!==l){var I=gs;pp($),p&&(w===null?mn(p,()=>{p=null,u=null}):w===u?Xr(p):(oo(p),xc(!1))),w&&w!==u&&(p=Bi(()=>{if(f=Ye?f:S?document.createElementNS(S,w):document.createElement(w),Ce&&a&&(f.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),$o(f,f),o){Ye&&ag(w)&&f.append(document.createComment(""));var A=Ye?fi(f):f.appendChild(Yo());Ye&&(A===null?no(!1):pi(A)),o(f,A)}$t.nodes_end=f,_.before(f)})),l=w,l&&(u=l),xc(!0),pp(I)}},65536),s&&(no(!0),pi(_))}var mp;function gg(t){return mp=t.target,new fp(t)}var es,tr,fp=class{constructor(e){cs(this,es);cs(this,tr);var a,s;var i=new Map,o=(d,l)=>{var u=jr(l);return i.set(d,u),u};let n=new Proxy({...e.props||{},$$events:{}},{get(d,l){var u;return r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l)))},has(d,l){var u;return l===bl?!0:(r((u=i.get(l))!=null?u:o(l,Reflect.get(d,l))),Reflect.has(d,l))},set(d,l,u){var f;return O((f=i.get(l))!=null?f:o(l,u),u),Reflect.set(d,l,u)}});$a(this,tr,(e.hydrate?dp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(a=e.intro)!=null?a:!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&Aa(),$a(this,es,n.$$events);for(let d of Object.keys(Ci(this,tr)))d==="$set"||d==="$destroy"||d==="$on"||to(this,d,{get(){return Ci(this,tr)[d]},set(l){Ci(this,tr)[d]=l},enumerable:!0});Ci(this,tr).$set=d=>{Object.assign(n,d)},Ci(this,tr).$destroy=()=>{qs(Ci(this,tr))}}$set(e){Ci(this,tr).$set(e)}$on(e,i){Ci(this,es)[e]=Ci(this,es)[e]||[];let o=(...n)=>i.call(this,...n);return Ci(this,es)[e].push(o),()=>{Ci(this,es)[e]=Ci(this,es)[e].filter(n=>n!==o)}}$destroy(){Ci(this,tr).$destroy()}};es=new WeakMap,tr=new WeakMap;function Q(t,e){Ko(()=>{var n,a,s;var i=t.getRootNode(),o=i.host?i:(s=(n=i.head)!=null?n:i.ownerDocument.head)!=null?s:(a=mp)==null?void 0:a.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Ce&&dg(e.hash,d)}})}function hg(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=hg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function _g(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=hg(t))&&(o&&(o+=" "),o+=e);return o}function Fl(t){return typeof t=="object"?_g(t):t!=null?t:""}var bg=[...`
|
|
48
|
-
\r\f\xA0\v\uFEFF`];function yg(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||bg.includes(o[s-1]))&&(d===o.length||bg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function $g(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 vp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function xg(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(vp)),n&&l.push(...Object.keys(n).map(vp));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=vp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=$g(o)),n&&(i+=$g(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=yg(i,o,a);(!Ye||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function gp(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 ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=xg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(gp(t,i==null?void 0:i[0],o[0]),gp(t,i==null?void 0:i[1],o[1],"important")):gp(t,i,o));return o}var Ba=Symbol("class"),Oa=Symbol("style"),Cg=Symbol("is custom element"),Tg=Symbol("is html");function Ig(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=kg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||q0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[dv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Eg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var E;var a=kg(t),s=a[Cg],d=!a[Tg];let l=Ye&&s;l&&no(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Fl(i.class):(o||i[Ba])&&(i.class=null),i[Oa]&&((E=i.style)!=null||(i.style=null));var p=Eg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,R,o,e==null?void 0:e[Ba],i[Ba]),u[T]=R,u[Ba]=i[Ba];continue}if(T==="style"){ot(t,R,e==null?void 0:e[Oa],i[Oa]),u[T]=R,u[Oa]=i[Oa];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},j="$$"+T,U=T.slice(2);var S=ng(U);if(og(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[j],z),u[j]=null}if(R!=null)if(S)t[`__${U}`]=R,st([U]);else{let W=function(J){u[T].call(this,J)};var P=W;u[j]=ap(U,t,W,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")Ne(t,T,R);else if(T==="autofocus")rp(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)Ig(t,R);else{var I=T;d||(I=rg(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,j=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=j?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=j?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&Ne(t,I,R,n)}}}return l&&no(!0),u}function kg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Cg]:t.nodeName.includes("-"),[Tg]:t.namespaceURI===sv}}var wg=new Map;function Eg(t){var e=wg.get(t.nodeName);if(e)return e;wg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=oc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function q0(t,e,i){var o;Ce&&(e==="srcset"&&K0(t,i)||hp((o=t.getAttribute(e))!=null?o:"",i)||Vv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function hp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Sg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K0(t,e){var i=Sg(t.srcset),o=Sg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(hp(i[s][0],n)||hp(n,i[s][0])))}var W0=ic?()=>performance.now():()=>Date.now(),yr={tick:t=>(ic?requestAnimationFrame:oe)(t),now:()=>W0(),tasks:new Set};function Ag(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(Ag)}function Pg(t){let e;return yr.tasks.size===0&&yr.tick(Ag),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function wc(t,e){Rl(()=>{t.dispatchEvent(new CustomEvent(e))})}function j0(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 Mg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=j0(n.trim());e[s]=a.trim()}return e}var Z0=t=>t;function bp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function y(){var R;var E=Vt,T=$t;ho(null),io(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{ho(E),io(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),wc(e,"introstart"),p=_p(e,y(),$,1,()=>{wc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,wc(e,"outrostart"),$=_p(e,y(),p,0,()=>{wc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=$t;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&Nl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&fn(()=>{_t(()=>w.in())})}}function _p(t,e,i,o,n){var a=o===1;if(ps(e)){var s,d=!1;return Ko(()=>{if(!d){var S=e({direction:a?"in":"out"});s=_p(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=Z0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=Mg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),j=Mg(u(z,1-z));P.push(j),E||(E=j.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var W=w.currentTime;return S+I*_(W/A)},f&&Pg(()=>{if(w.playState!=="running")return!1;var W=y();return f(W,1-W),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var hs,Ha,Ul,Cc,Lg,Tc=class Tc{constructor(e){cs(this,Cc);cs(this,hs,new WeakMap);cs(this,Ha);cs(this,Ul);$a(this,Ul,e)}observe(e,i){var o=Ci(this,hs).get(e)||new Set;return o.add(i),Ci(this,hs).set(e,o),nv(this,Cc,Lg).call(this).observe(e,Ci(this,Ul)),()=>{var n=Ci(this,hs).get(e);n.delete(i),n.size===0&&(Ci(this,hs).delete(e),Ci(this,Ha).unobserve(e))}}};hs=new WeakMap,Ha=new WeakMap,Ul=new WeakMap,Cc=new WeakSet,Lg=function(){var e;return(e=Ci(this,Ha))!=null?e:$a(this,Ha,new ResizeObserver(i=>{for(var o of i){Tc.entries.set(o.target,o);for(var n of Ci(this,hs).get(o.target)||[])n(o)}}))},Rn(Tc,"entries",new WeakMap);var $p=Tc;var e_=new $p({box:"border-box"});function Or(t,e,i){var o=e_.observe(t,()=>i(t[e]));fn(()=>(_t(()=>i(t[e])),o))}function Vg(t,e){return t===e||(t==null?void 0:t[Ro])===e}function ct(t={},e,i,o){return fn(()=>{var n,a;return bo(()=>{n=a,a=(o==null?void 0:o())||[],_t(()=>{t!==i(...a)&&(e(t,...a),n&&Vg(i(...n),t)&&e(null,...n))})}),()=>{Ko(()=>{a&&Vg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=wt,i=e.l.u;if(!i)return;let o=()=>vc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Pa(()=>{Rg(e,o),fs(i.b)}),je(()=>{let n=_t(()=>i.m.map(pv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&je(()=>{Rg(e,o),fs(i.a)})}function Rg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ce){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Sv(e)},set:o=>{i=o}})}};i_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var i_;function Bt(t){wt===null&&Ma("onMount"),Nr&&wt.l!==null?t_(wt).m.push(t):je(()=>{let e=_t(t);if(typeof e=="function")return e})}function ir(t){wt===null&&Ma("onDestroy"),Bt(()=>()=>_t(t))}function t_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function zl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=_t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Fa=[];function or(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=oe){let i=null,o=new Set;function n(d){if(ya(t,d)&&(t=d,i)){let l=!Fa.length;for(let u of o)u[1](),Fa.push(u,t);if(l){for(let u=0;u<Fa.length;u+=2)Fa[u][0](Fa[u+1]);Fa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function mi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return or(i,(s,d)=>{let l=!1,u=[],f=0,_=oe,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:oe},$=n.map((y,w)=>zl(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){fs($),_(),l=!1}})}function xe(t){let e;return zl(t,i=>e=i)(),e}var Ic=!1,yp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:jr(void 0),unsubscribe:oe};if(o.store!==t&&!(yp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=zl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&yp in i?xe(t):r(o.source)}function He(){let t={};function e(){Xo(()=>{for(var i in t)t[i].unsubscribe();to(t,yp,{enumerable:!1,value:!0})})}return[t,e]}function xp(t){var e=Ic;try{return Ic=!1,[t(),Ic]}finally{Ic=e}}var d_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&wv(`${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 Ie(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},d_)}var c_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];ps(n)&&(n=n());let a=Nn(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(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===bl)return!1;for(let i of t.props)if(ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},c_)}function Ng(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,j;var n=(i&1)!==0,a=!Nr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=xp(()=>t[e]):u=t[e];var f=Ro in t||bl in t,_=s&&((j=(z=Nn(t,e))==null?void 0:z.set)!=null?j:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=_t(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&xv(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:br)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,W){return arguments.length>0?((!a||!W||A||l)&&_(W?S():U),U):S()}}var P=!1,E=!1,T=jr(u),R=m(()=>{var U=S(),W=r(T);return P?(P=!1,E=!0,W):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=xa),function(U,W){if(wl!==null&&(P=E,S(),r(T)),arguments.length>0){let J=W?r(R):a&&s?ue(U):U;if(!R.equals(J)){if(P=!0,O(T,J),y&&p!==void 0&&(p=J),Ng(R))return U;_t(()=>r(R))}return U}return Ng(R)?R.v:r(R)}}var u_;typeof HTMLElement=="function"&&(u_=class extends HTMLElement{constructor(e,i,o){super();Rn(this,"$$ctor");Rn(this,"$$s");Rn(this,"$$c");Rn(this,"$$cn",!1);Rn(this,"$$d",{});Rn(this,"$$r",!1);Rn(this,"$$p_d",{});Rn(this,"$$l",{});Rn(this,"$$l_u",new Map);Rn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=p_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=wp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=gg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=hc(()=>{bo(()=>{var a;this.$$r=!0;for(let s of Mu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=wp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=wp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Mu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function wp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function p_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Dg="5";var Bg,Og,Hg;typeof window!="undefined"&&((Hg=(Og=(Bg=window.__svelte)!=null?Bg:window.__svelte={}).v)!=null?Hg:Og.v=new Set).add(Dg);var B1=require("@vkontakte/videoplayer-core/es2018"),MW=require("@vkontakte/videoplayer-core/es2018"),va=require("@vkontakte/videoplayer-shared/es2018"),O1=require("@vkontakte/videoplayer-statistics/es2018");var Ks=require("@vkontakte/videoplayer-shared/es2018");var m_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Ks.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:Ks.VideoQuality.Q_480P,highQualityLimit:Ks.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Fg=t=>(0,Ks.fillWithDefault)(t,m_),Ug=t=>Va("ui-config",t),Kt=()=>La("ui-config");var ql="vk_player_debug_panel_opened";var zg="videoplayer",qg="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Qg=new Set(["ShiftRight","ShiftLeft"]);var Gg=["TIMELINE"],Kl=[...Gg,"GRAPH_BUTTON"],Sp=[...Gg,"PLAY_BUTTON"],Wl=[...Kl,"PLAY_BUTTON"];var wr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(wr||{}),Qs={xs:0,s:1,m:2,l:3,xl:4};var Ql=require("@vkontakte/videoplayer-shared/es2018"),Yg=require("@vkontakte/videoplayer-core/es2018"),jg=require("@vkontakte/videoplayer-statistics/es2018");var kc="prod",Gs="1.1.60-dev.901a385a.0";var Ys=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Zg=Symbol("storeContext"),Xg=Symbol("microStoresContext"),Jg=(t,e)=>{Va(Zg,t),Va(Xg,e),kc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=La(Zg);return(0,Ql.assertNonNullable)(t,"Store context is empty!"),t},so=()=>{let t=La(Xg);return(0,Ql.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>Ac(t,t.getValue(),e),Ac=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),eh=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Gs} (core: ${Yg.VERSION}, stat: ${jg.VERSION}, shared: ${Ql.VERSION})`,f=xe(i.state.errorLog$),_=f.length?`
|
|
48
|
+
\r\f\xA0\v\uFEFF`];function yg(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||bg.includes(o[s-1]))&&(d===o.length||bg.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function $g(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 vp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function xg(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(vp)),n&&l.push(...Object.keys(n).map(vp));var u=0,f=-1;let w=t.length;for(var _=0;_<w;_++){var p=t[_];if(d?p==="/"&&t[_-1]==="*"&&(d=!1):a?a===p&&(a=!1):p==="/"&&t[_+1]==="*"?d=!0:p==='"'||p==="'"?a=p:p==="("?s++:p===")"&&s--,!d&&a===!1&&s===0){if(p===":"&&f===-1)f=_;else if(p===";"||_===w-1){if(f!==-1){var $=vp(t.substring(u,f).trim());if(!l.includes($)){p!==";"&&_++;var y=t.substring(u,_).trim();i+=" "+y+";"}}u=_+1,f=-1}}}}return o&&(i+=$g(o)),n&&(i+=$g(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ie(t,e,i,o,n,a){var s=t.__className;if(Ye||s!==i){var d=yg(i,o,a);(!Ye||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 u=!!a[l];(n==null||u!==!!n[l])&&t.classList.toggle(l,u)}return a}function gp(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 ot(t,e,i,o){var n=t.__style;if(Ye||n!==e){var a=xg(e,o);(!Ye||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(gp(t,i==null?void 0:i[0],o[0]),gp(t,i==null?void 0:i[1],o[1],"important")):gp(t,i,o));return o}var Ba=Symbol("class"),Oa=Symbol("style"),Cg=Symbol("is custom element"),Tg=Symbol("is html");function Ig(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=kg(t);if(Ye&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||q0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[dv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Eg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function we(t,e,i,o,n=!1){var E;var a=kg(t),s=a[Cg],d=!a[Tg];let l=Ye&&s;l&&no(!1);var u=e||{},f=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=Fl(i.class):(o||i[Ba])&&(i.class=null),i[Oa]&&((E=i.style)!=null||(i.style=null));var p=Eg(t);for(let T in i){let R=i[T];if(f&&T==="value"&&R==null){t.value=t.__value="",u[T]=R;continue}if(T==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";ie(t,$,R,o,e==null?void 0:e[Ba],i[Ba]),u[T]=R,u[Ba]=i[Ba];continue}if(T==="style"){ot(t,R,e==null?void 0:e[Oa],i[Oa]),u[T]=R,u[Oa]=i[Oa];continue}var y=u[T];if(R!==y){u[T]=R;var w=T[0]+T[1];if(w!=="$$")if(w==="on"){let z={},j="$$"+T,U=T.slice(2);var S=ng(U);if(og(U)&&(U=U.slice(0,-7),z.capture=!0),!S&&y){if(R!=null)continue;t.removeEventListener(U,u[j],z),u[j]=null}if(R!=null)if(S)t[`__${U}`]=R,st([U]);else{let W=function(J){u[T].call(this,J)};var P=W;u[j]=ap(U,t,W,z)}else S&&(t[`__${U}`]=void 0)}else if(T==="style")Ne(t,T,R);else if(T==="autofocus")rp(t,!!R);else if(!s&&(T==="__value"||T==="value"&&R!=null))t.value=t.__value=R;else if(T==="selected"&&f)Ig(t,R);else{var I=T;d||(I=rg(I));var A=I==="defaultValue"||I==="defaultChecked";if(R==null&&!s&&!A)if(a[T]=null,I==="value"||I==="checked"){let z=t,j=e===void 0;if(I==="value"){let U=z.defaultValue;z.removeAttribute(I),z.defaultValue=U,z.value=z.__value=j?U:null}else{let U=z.defaultChecked;z.removeAttribute(I),z.defaultChecked=U,z.checked=j?U:!1}}else t.removeAttribute(T);else A||p.includes(I)&&(s||typeof R!="string")?t[I]=R:typeof R!="function"&&Ne(t,I,R,n)}}}return l&&no(!0),u}function kg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Cg]:t.nodeName.includes("-"),[Tg]:t.namespaceURI===sv}}var wg=new Map;function Eg(t){var e=wg.get(t.nodeName);if(e)return e;wg.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=oc(o);for(var a in i)i[a].set&&e.push(a);o=Qr(o)}return e}function q0(t,e,i){var o;Ce&&(e==="srcset"&&K0(t,i)||hp((o=t.getAttribute(e))!=null?o:"",i)||Vv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function hp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Sg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function K0(t,e){var i=Sg(t.srcset),o=Sg(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(hp(i[s][0],n)||hp(n,i[s][0])))}var W0=ic?()=>performance.now():()=>Date.now(),yr={tick:t=>(ic?requestAnimationFrame:oe)(t),now:()=>W0(),tasks:new Set};function Ag(){let t=yr.now();yr.tasks.forEach(e=>{e.c(t)||(yr.tasks.delete(e),e.f())}),yr.tasks.size!==0&&yr.tick(Ag)}function Pg(t){let e;return yr.tasks.size===0&&yr.tick(Ag),{promise:new Promise(i=>{yr.tasks.add(e={c:t,f:i})}),abort(){yr.tasks.delete(e)}}}function wc(t,e){Rl(()=>{t.dispatchEvent(new CustomEvent(e))})}function j0(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 Mg(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=j0(n.trim());e[s]=a.trim()}return e}var Z0=t=>t;function bp(t,e,i,o){var P;var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",u,f=e.inert,_=e.style.overflow,p,$;function y(){var R;var E=Vt,T=$t;ho(null),io(null);try{return u!=null?u:u=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:l})}finally{ho(E),io(T)}}var w={is_global:d,in(){var E;if(e.inert=f,!n){$==null||$.abort(),(E=$==null?void 0:$.reset)==null||E.call($);return}a||p==null||p.abort(),wc(e,"introstart"),p=_p(e,y(),$,1,()=>{wc(e,"introend"),p==null||p.abort(),p=u=void 0,e.style.overflow=_})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,wc(e,"outrostart"),$=_p(e,y(),p,0,()=>{wc(e,"outroend"),E==null||E()})},stop:()=>{p==null||p.abort(),$==null||$.abort()}},S=$t;if(((P=S.transitions)!=null?P:S.transitions=[]).push(w),n&&Nl){var I=d;if(!I){for(var A=S.parent;A&&(A.f&65536)!==0;)for(;(A=A.parent)&&(A.f&16)===0;);I=!A||(A.f&32768)!==0}I&&fn(()=>{_t(()=>w.in())})}}function _p(t,e,i,o,n){var a=o===1;if(ps(e)){var s,d=!1;return Ko(()=>{if(!d){var S=e({direction:a?"in":"out"});s=_p(t,S,i,o,n)}}),{abort:()=>{d=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:l=0,css:u,tick:f,easing:_=Z0}=e;var p=[];if(a&&i===void 0&&(f&&f(0,1),u)){var $=Mg(u(0,1));p.push($,$)}var y=()=>1-o,w=t.animate(p,{duration:l});return w.onfinish=()=>{var U;var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var I=o-S,A=e.duration*Math.abs(I),P=[];if(A>0){var E=!1;if(u)for(var T=Math.ceil(A/16.666666666666668),R=0;R<=T;R+=1){var z=S+I*_(R/T),j=Mg(u(z,1-z));P.push(j),E||(E=j.overflow==="hidden")}E&&(t.style.overflow="hidden"),y=()=>{var W=w.currentTime;return S+I*_(W/A)},f&&Pg(()=>{if(w.playState!=="running")return!1;var W=y();return f(W,1-W),!0})}w=t.animate(P,{duration:A,fill:"forwards"}),w.onfinish=()=>{y=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>y()}}var hs,Ha,Ul,Cc,Lg,Tc=class Tc{constructor(e){cs(this,Cc);cs(this,hs,new WeakMap);cs(this,Ha);cs(this,Ul);$a(this,Ul,e)}observe(e,i){var o=Ci(this,hs).get(e)||new Set;return o.add(i),Ci(this,hs).set(e,o),nv(this,Cc,Lg).call(this).observe(e,Ci(this,Ul)),()=>{var n=Ci(this,hs).get(e);n.delete(i),n.size===0&&(Ci(this,hs).delete(e),Ci(this,Ha).unobserve(e))}}};hs=new WeakMap,Ha=new WeakMap,Ul=new WeakMap,Cc=new WeakSet,Lg=function(){var e;return(e=Ci(this,Ha))!=null?e:$a(this,Ha,new ResizeObserver(i=>{for(var o of i){Tc.entries.set(o.target,o);for(var n of Ci(this,hs).get(o.target)||[])n(o)}}))},Rn(Tc,"entries",new WeakMap);var $p=Tc;var e_=new $p({box:"border-box"});function Or(t,e,i){var o=e_.observe(t,()=>i(t[e]));fn(()=>(_t(()=>i(t[e])),o))}function Vg(t,e){return t===e||(t==null?void 0:t[Ro])===e}function ct(t={},e,i,o){return fn(()=>{var n,a;return bo(()=>{n=a,a=(o==null?void 0:o())||[],_t(()=>{t!==i(...a)&&(e(t,...a),n&&Vg(i(...n),t)&&e(null,...n))})}),()=>{Ko(()=>{a&&Vg(i(...a),t)&&e(null,...a)})}}),t}function xr(t=!1){let e=wt,i=e.l.u;if(!i)return;let o=()=>vc(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let u in l)l[u]!==a[u]&&(a[u]=l[u],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&Pa(()=>{Rg(e,o),fs(i.b)}),je(()=>{let n=_t(()=>i.m.map(pv));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&je(()=>{Rg(e,o),fs(i.a)})}function Rg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Ce){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Sv(e)},set:o=>{i=o}})}};i_=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var i_;function Bt(t){wt===null&&Ma("onMount"),Nr&&wt.l!==null?t_(wt).m.push(t):je(()=>{let e=_t(t);if(typeof e=="function")return e})}function ir(t){wt===null&&Ma("onDestroy"),Bt(()=>()=>_t(t))}function t_(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}function zl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=_t(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Fa=[];function or(t,e){return{subscribe:le(t,e).subscribe}}function le(t,e=oe){let i=null,o=new Set;function n(d){if(ya(t,d)&&(t=d,i)){let l=!Fa.length;for(let u of o)u[1](),Fa.push(u,t);if(l){for(let u=0;u<Fa.length;u+=2)Fa[u][0](Fa[u+1]);Fa.length=0}}}function a(d){n(d(t))}function s(d,l=oe){let u=[d,l];return o.add(u),o.size===1&&(i=e(n,a)||oe),d(t),()=>{o.delete(u),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function mi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let a=e.length<2;return or(i,(s,d)=>{let l=!1,u=[],f=0,_=oe,p=()=>{if(f)return;_();let y=e(o?u[0]:u,s,d);a?s(y):_=typeof y=="function"?y:oe},$=n.map((y,w)=>zl(y,S=>{u[w]=S,f&=~(1<<w),l&&p()},()=>{f|=1<<w}));return l=!0,p(),function(){fs($),_(),l=!1}})}function xe(t){let e;return zl(t,i=>e=i)(),e}var Ic=!1,yp=Symbol();function C(t,e,i){var a;let o=(a=i[e])!=null?a:i[e]={store:null,source:jr(void 0),unsubscribe:oe};if(o.store!==t&&!(yp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=zl(t,s=>{n?o.source.v=s:O(o.source,s)}),n=!1}return t&&yp in i?xe(t):r(o.source)}function He(){let t={};function e(){Xo(()=>{for(var i in t)t[i].unsubscribe();to(t,yp,{enumerable:!1,value:!0})})}return[t,e]}function xp(t){var e=Ic;try{return Ic=!1,[t(),Ic]}finally{Ic=e}}var d_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Ce&&wv(`${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 Ie(t,e,i){return new Proxy(Ce?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},d_)}var c_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];ps(n)&&(n=n());let a=Nn(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(ps(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=Nn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ro||e===bl)return!1;for(let i of t.props)if(ps(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ps(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function ts(...t){return new Proxy({props:t},c_)}function Ng(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function v(t,e,i,o){var z,j;var n=(i&1)!==0,a=!Nr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,u;s?[u,l]=xp(()=>t[e]):u=t[e];var f=Ro in t||bl in t,_=s&&((j=(z=Nn(t,e))==null?void 0:z.set)!=null?j:f&&e in t&&(U=>t[e]=U))||void 0,p=o,$=!0,y=!1,w=()=>(y=!0,$&&($=!1,d?p=_t(o):p=o),p);u===void 0&&o!==void 0&&(_&&a&&xv(e),u=w(),_&&_(u));var S;if(a)S=()=>{var U=t[e];return U===void 0?w():($=!0,y=!1,U)};else{var I=(n?m:br)(()=>t[e]);I.f|=131072,S=()=>{var U=r(I);return U!==void 0&&(p=void 0),U===void 0?p:U}}if((i&4)===0)return S;if(_){var A=t.$$legacy;return function(U,W){return arguments.length>0?((!a||!W||A||l)&&_(W?S():U),U):S()}}var P=!1,E=!1,T=jr(u),R=m(()=>{var U=S(),W=r(T);return P?(P=!1,E=!0,W):(E=!1,T.v=U)});return s&&r(R),n||(R.equals=xa),function(U,W){if(wl!==null&&(P=E,S(),r(T)),arguments.length>0){let J=W?r(R):a&&s?ue(U):U;if(!R.equals(J)){if(P=!0,O(T,J),y&&p!==void 0&&(p=J),Ng(R))return U;_t(()=>r(R))}return U}return Ng(R)?R.v:r(R)}}var u_;typeof HTMLElement=="function"&&(u_=class extends HTMLElement{constructor(e,i,o){super();Rn(this,"$$ctor");Rn(this,"$$s");Rn(this,"$$c");Rn(this,"$$cn",!1);Rn(this,"$$d",{});Rn(this,"$$r",!1);Rn(this,"$$p_d",{});Rn(this,"$$l",{});Rn(this,"$$l_u",new Map);Rn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(a){return s=>{let d=document.createElement("slot");a!=="default"&&(d.name=a),b(s,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=p_(this);for(let a of this.$$s)a in n&&(a==="default"&&!this.$$d.children?(this.$$d.children=i(a),o.default=!0):o[a]=i(a));for(let a of this.attributes){let s=this.$$g_p(a.name);s in this.$$d||(this.$$d[s]=wp(s,a.value,this.$$p_d,"toProp"))}for(let a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=gg({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=hc(()=>{bo(()=>{var a;this.$$r=!0;for(let s of Mu(this.$$c)){if(!((a=this.$$p_d[s])!=null&&a.reflect))continue;this.$$d[s]=this.$$c[s];let d=wp(s,this.$$d[s],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,d)}this.$$r=!1})});for(let a in this.$$l)for(let s of this.$$l[a]){let d=this.$$c.$on(a,s);this.$$l_u.set(s,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=wp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Mu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function wp(t,e,i,o){var a;let n=(a=i[t])==null?void 0:a.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function p_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Dg="5";var Bg,Og,Hg;typeof window!="undefined"&&((Hg=(Og=(Bg=window.__svelte)!=null?Bg:window.__svelte={}).v)!=null?Hg:Og.v=new Set).add(Dg);var B1=require("@vkontakte/videoplayer-core/es2018"),MW=require("@vkontakte/videoplayer-core/es2018"),va=require("@vkontakte/videoplayer-shared/es2018"),O1=require("@vkontakte/videoplayer-statistics/es2018");var Ks=require("@vkontakte/videoplayer-shared/es2018");var m_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:Ks.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:Ks.VideoQuality.Q_480P,highQualityLimit:Ks.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Fg=t=>(0,Ks.fillWithDefault)(t,m_),Ug=t=>Va("ui-config",t),Kt=()=>La("ui-config");var ql="vk_player_debug_panel_opened";var zg="videoplayer",qg="videoplayer";var Hr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Kg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Wg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Qg=new Set(["ShiftRight","ShiftLeft"]);var Gg=["TIMELINE"],Kl=[...Gg,"GRAPH_BUTTON"],Sp=[...Gg,"PLAY_BUTTON"],Wl=[...Kl,"PLAY_BUTTON"];var wr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(wr||{}),Qs={xs:0,s:1,m:2,l:3,xl:4};var Ql=require("@vkontakte/videoplayer-shared/es2018"),Yg=require("@vkontakte/videoplayer-core/es2018"),jg=require("@vkontakte/videoplayer-statistics/es2018");var kc="prod",Gs="1.1.60-dev.e2ea22dc.0";var Ys=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var Zg=Symbol("storeContext"),Xg=Symbol("microStoresContext"),Jg=(t,e)=>{Va(Zg,t),Va(Xg,e),kc==="dev"&&(window.app={store:t,microStores:e})},Te=()=>{let t=La(Zg);return(0,Ql.assertNonNullable)(t,"Store context is empty!"),t},so=()=>{let t=La(Xg);return(0,Ql.assertNonNullable)(t,"MicroStores context is empty!"),t},Yt=(t,e)=>Ac(t,t.getValue(),e),Ac=(t,e,i)=>or(e,o=>{let n=t.subscribe(a=>{o(a),i==null||i(a)});return()=>n.unsubscribe()}),eh=(t,e,i)=>{var I,A,P,E,T,R;let o=t.info,{width:n,height:a}=xe(i.ui.playerSize),s=(A=(I=o.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?A:0,d=(E=(P=o.rttEstimation$.getValue())==null?void 0:P.toFixed(0))!=null?E:0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Gs} (core: ${Yg.VERSION}, stat: ${jg.VERSION}, shared: ${Ql.VERSION})`,f=xe(i.state.errorLog$),_=f.length?`
|
|
49
49
|
`+f.map((z,j)=>{var se;let U=`${j}) Type: ${z.id}
|
|
50
50
|
`,W=`Message: ${z.message} (${z.thrown})
|
|
51
51
|
`,J=`Trace: ${(se=z.thrown)==null?void 0:se.stack}
|