@vkontakte/videoplayer-shared 1.0.36-dev.8794a45a.0 → 1.0.36-dev.c504893e.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.
Files changed (62) hide show
  1. package/es2015.cjs.js +3 -3
  2. package/es2015.esm.js +3 -3
  3. package/es2018.cjs.js +3 -3
  4. package/es2018.esm.js +3 -3
  5. package/esnext.cjs.js +3 -3
  6. package/esnext.esm.js +3 -3
  7. package/evergreen.esm.js +3 -3
  8. package/package.json +7 -7
  9. package/types/Logger/Logger.d.ts +10 -0
  10. package/types/Logger/index.d.ts +2 -0
  11. package/types/Logger/types.d.ts +30 -0
  12. package/types/env.d.ts +1 -0
  13. package/types/index.d.ts +6 -0
  14. package/types/reactive/Observable.d.ts +7 -0
  15. package/types/reactive/Subject.d.ts +10 -0
  16. package/types/reactive/Subscription.d.ts +6 -0
  17. package/types/reactive/ValueSubject.d.ts +10 -0
  18. package/types/reactive/combine.d.ts +10 -0
  19. package/types/reactive/fromEvent.d.ts +7 -0
  20. package/types/reactive/index.d.ts +21 -0
  21. package/types/reactive/interval.d.ts +4 -0
  22. package/types/reactive/merge.d.ts +12 -0
  23. package/types/reactive/observableFrom.d.ts +3 -0
  24. package/types/reactive/operators/buffer.d.ts +2 -0
  25. package/types/reactive/operators/debounce.d.ts +6 -0
  26. package/types/reactive/operators/filter.d.ts +3 -0
  27. package/types/reactive/operators/filterChanged.d.ts +5 -0
  28. package/types/reactive/operators/map.d.ts +2 -0
  29. package/types/reactive/operators/mapTo.d.ts +2 -0
  30. package/types/reactive/operators/once.d.ts +5 -0
  31. package/types/reactive/operators/pairwise.d.ts +4 -0
  32. package/types/reactive/operators/tap.d.ts +2 -0
  33. package/types/reactive/operators/throttle.d.ts +5 -0
  34. package/types/reactive/timeout.d.ts +4 -0
  35. package/types/reactive/types.d.ts +29 -0
  36. package/types/translation/index.d.ts +2 -0
  37. package/types/translation/loadVKLangPack.d.ts +16 -0
  38. package/types/translation/types.d.ts +5 -0
  39. package/types/types/index.d.ts +53 -0
  40. package/types/utils/abortable.d.ts +3 -0
  41. package/types/utils/addScript.d.ts +1 -0
  42. package/types/utils/cloneDeep.d.ts +1 -0
  43. package/types/utils/cloneDeepWith.d.ts +3 -0
  44. package/types/utils/config.d.ts +2 -0
  45. package/types/utils/debounceFn.d.ts +13 -0
  46. package/types/utils/detectBrowser.d.ts +30 -0
  47. package/types/utils/detectEmbed.d.ts +4 -0
  48. package/types/utils/empty.d.ts +2 -0
  49. package/types/utils/exponentialBackoff.d.ts +9 -0
  50. package/types/utils/iframeSafeStorage.d.ts +6 -0
  51. package/types/utils/index.d.ts +22 -0
  52. package/types/utils/never.d.ts +2 -0
  53. package/types/utils/noop.d.ts +1 -0
  54. package/types/utils/now.d.ts +2 -0
  55. package/types/utils/nullable.d.ts +7 -0
  56. package/types/utils/observeElementSize.d.ts +3 -0
  57. package/types/utils/quality/index.d.ts +20 -0
  58. package/types/utils/quality/types.d.ts +21 -0
  59. package/types/utils/semanticTypes.d.ts +7 -0
  60. package/types/utils/throttleFn.d.ts +5 -0
  61. package/types/utils/timecode.d.ts +1 -0
  62. package/index.d.ts +0 -415
package/es2015.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.36-dev.8794a45a.0
3
- * Thu, 06 Jun 2024 14:58:43 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.36-dev.c504893e.0
3
+ * Mon, 10 Jun 2024 11:23:26 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-36/doc/
5
5
  */
6
- "use strict";const On="1.0.36-dev.8794a45a.0";class H{constructor(){this.subscriptions=[]}unsubscribe(){const r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}}const M=e=>{throw new Error(`${e} is value of unexpected type`)},En=e=>{},B=()=>{};class g{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var n;let i;t?typeof t=="function"?i={next:t,error:B}:i={next:s=>t.next(s),error:s=>{var u;return(u=t.error)===null||u===void 0?void 0:u.call(t,s)}}:i={next:B,error:B};const o=typeof r=="function"?{next:s=>{try{r(s)}catch(u){i.next(u)}},error:s=>i.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):i.next(s)};let a;try{a=this._subscribe(o)}catch(s){(n=o.error)===null||n===void 0||n.call(o,s)}return new H().add(()=>{switch(o.next=B,o.error=B,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return M(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}}class Je extends g{constructor(){super(),this.keyCounter=0,this.subscribers=new Map}next(r){this.subscribers.forEach(t=>t.next(r))}error(r){this.subscribers.forEach(t=>{var n;return(n=t.error)===null||n===void 0?void 0:n.call(t,r)})}_subscribe(r){const t=this.keyCounter++;return this.subscribers.set(t,r),new H().add(()=>this.subscribers.delete(t))}}class Sn{constructor(){this.log$=new Je,this.logs=[],this.log=r=>{const t=Object.assign(Object.assign({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)},this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(i){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>Object.assign({component:r},t))}}function $n(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Tn(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function de(e){return typeof e!="undefined"&&e!==null}function vt(e){return e==null}function In(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Rn(e,r){if(e!=null&&e.length)throw new Error(r)}const Pn=(e,r,t)=>new Promise((n,i)=>{r.addEventListener("abort",()=>{s(),c.remove()});const o=()=>{s(),i()},a=()=>{s(),n()},s=()=>{u&&clearTimeout(u),c.removeEventListener("load",a),c.removeEventListener("error",o)};let u;t&&(u=window.setTimeout(o,t));const c=document.createElement("script");c.addEventListener("load",a),c.addEventListener("error",o),c.src=e,document.head.appendChild(c)});var me;const _n=typeof((me=window.performance)===null||me===void 0?void 0:me.now)=="function"?()=>window.performance.now():()=>Date.now();function dt(e,r,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(l){try{c(n.next(l))}catch(f){a(f)}}function u(l){try{c(n.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((n=n.apply(e,r||[])).next())})}const An=(e,r)=>(...t)=>dt(void 0,void 0,void 0,function*(){var n;const i=r(...t);let o=e.aborted,a;for(;!o&&!e.aborted;)try{const s=yield i.next(a);o=(n=s.done)!==null&&n!==void 0?n:!1,a=s.value}catch(s){yield i.throw(s)}return a});exports.CurrentClientBrowser=void 0;(function(e){e.Unknown="Unknown",e.Yandex="Yandex",e.Chrome="Chrome",e.Chromium="Chromium",e.Firefox="Firefox",e.Safari="Safari",e.Opera="Opera",e.Edge="Edge",e.Rest="Rest"})(exports.CurrentClientBrowser||(exports.CurrentClientBrowser={}));exports.CurrentClientDevice=void 0;(function(e){e.Unknown="Unknown",e.Android="Android",e.iPhone="iPhone",e.iPad="iPad",e.iPod="iPod",e.RestMobile="RestMobile",e.Mac="Mac",e.Desktop="Desktop"})(exports.CurrentClientDevice||(exports.CurrentClientDevice={}));const Ze=()=>{const{userAgent:e}=window.navigator,r=/yabrowser/i.test(e)?exports.CurrentClientBrowser.Yandex:void 0,t=/chrome|crios/i.test(e)?exports.CurrentClientBrowser.Chrome:void 0,n=/chromium/i.test(e)?exports.CurrentClientBrowser.Chromium:void 0,i=/firefox|fxios/i.test(e)?exports.CurrentClientBrowser.Firefox:void 0,o=/webkit|safari|khtml/i.test(e)?exports.CurrentClientBrowser.Safari:void 0,a=/opr\//i.test(e)?exports.CurrentClientBrowser.Opera:void 0,s=/edg/i.test(e)?exports.CurrentClientBrowser.Edge:void 0,u=/android/i.test(e)?exports.CurrentClientDevice.Android:void 0,c=/iphone/i.test(e)?exports.CurrentClientDevice.iPhone:void 0,l=/ipad/i.test(e)?exports.CurrentClientDevice.iPad:void 0,f=/ipod/i.test(e)?exports.CurrentClientDevice.iPod:void 0,v=/mac/i.test(e)?exports.CurrentClientDevice.Mac:void 0,d=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?exports.CurrentClientDevice.RestMobile:void 0;return{browser:r||i||a||s||t||n||o||exports.CurrentClientBrowser.Rest,device:u||c||l||f||d||v||exports.CurrentClientDevice.Desktop}},Cn=(e=!1)=>{const t=[exports.CurrentClientDevice.iPhone,exports.CurrentClientDevice.iPad,exports.CurrentClientDevice.iPod].includes(Ze().device);if(!e)return t;const{userAgent:n,maxTouchPoints:i}=window.navigator;return!!(t||/macintosh/i.test(n)&&i>0)},jn=()=>{const{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return null;const t=r[1],n=parseFloat(t);return isNaN(n)?null:n},Ln=()=>[exports.CurrentClientDevice.Mac,exports.CurrentClientDevice.iPhone,exports.CurrentClientDevice.iPad,exports.CurrentClientDevice.iPod].includes(Ze().device),xn=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!==null&&e!==void 0?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)===null||r===void 0?void 0:r.mobile)},Mn=(e,{start:r=0,factor:t=2,max:n=1/0,min:i=r,random:o=0}={})=>{let a=r;return a*=Math.pow(t,e),a*=1+(Math.random()*o*2-o),a=Math.round(a),a=Math.min(a,n),a=Math.max(a,i),a};var b;(function(e){e[e.LOCAL_STORAGE=0]="LOCAL_STORAGE",e[e.SESSION_STORAGE=1]="SESSION_STORAGE",e[e.RUNTIME=2]="RUNTIME"})(b||(b={}));let E,x;const we=`vk-videoplayer-dummy-key-${Math.random()}`,Q=()=>{if(x!==void 0)return x;try{localStorage.setItem(we,"test"),localStorage.removeItem(we),x=b.LOCAL_STORAGE}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(we),x=b.SESSION_STORAGE}catch(r){if(r instanceof DOMException||r instanceof TypeError)x=b.RUNTIME;else throw r}else throw e}return x===b.RUNTIME&&(E=new Map),x},Nn=()=>Q()===b.LOCAL_STORAGE,Dn=e=>{var r,t;const n=Q();switch(n){case b.LOCAL_STORAGE:return(r=localStorage.getItem(e))!==null&&r!==void 0?r:void 0;case b.SESSION_STORAGE:return(t=sessionStorage.getItem(e))!==null&&t!==void 0?t:void 0;case b.RUNTIME:return E==null?void 0:E.get(e);default:M(n)}},Fn=(e,r)=>{const t=Q();switch(t){case b.LOCAL_STORAGE:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case b.SESSION_STORAGE:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case b.RUNTIME:return void(E==null?void 0:E.set(e,r));default:M(t)}},Gn=e=>{var r;const t=Q();switch(t){case b.LOCAL_STORAGE:return e in localStorage;case b.SESSION_STORAGE:return e in sessionStorage;case b.RUNTIME:return(r=E==null?void 0:E.has(e))!==null&&r!==void 0?r:!1;default:return M(t),!1}},kn=e=>{const r=Q();switch(r){case b.LOCAL_STORAGE:return localStorage.removeItem(e);case b.SESSION_STORAGE:return sessionStorage.removeItem(e);case b.RUNTIME:return void(E==null?void 0:E.delete(e));default:M(r)}},Vn=()=>{const e=Q();switch(e){case b.LOCAL_STORAGE:return localStorage.clear();case b.SESSION_STORAGE:return sessionStorage.clear();case b.RUNTIME:return E==null?void 0:E.clear();default:M(e)}};var Bn=Object.freeze({__proto__:null,clear:Vn,get:Dn,has:Gn,isPersistent:Nn,remove:kn,set:Fn});const Un=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}const t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};exports.VideoQuality=void 0;(function(e){e.INVARIANT="Invariant quality",e.Q_144P="144p",e.Q_240P="240p",e.Q_360P="360p",e.Q_480P="480p",e.Q_720P="720p",e.Q_1080P="1080p",e.Q_1440P="1440p",e.Q_2160P="2160p",e.Q_4320P="4320p"})(exports.VideoQuality||(exports.VideoQuality={}));const S={[exports.VideoQuality.Q_144P]:{width:256,height:144},[exports.VideoQuality.Q_240P]:{width:428,height:240},[exports.VideoQuality.Q_360P]:{width:640,height:360},[exports.VideoQuality.Q_480P]:{width:856,height:480},[exports.VideoQuality.Q_720P]:{width:1280,height:720},[exports.VideoQuality.Q_1080P]:{width:1920,height:1080},[exports.VideoQuality.Q_1440P]:{width:2560,height:1440},[exports.VideoQuality.Q_2160P]:{width:3840,height:2160},[exports.VideoQuality.Q_4320P]:{width:7680,height:4320}},Qn=(e,r)=>S[e].height>S[r].height,qn=(e,r)=>S[e].height>=S[r].height,er=(e,r)=>S[e].height<S[r].height,Kn=(e,r)=>S[e].height<=S[r].height,zn=e=>e.sort((r,t)=>r===t?0:r===exports.VideoQuality.INVARIANT?1:t===exports.VideoQuality.INVARIANT?-1:er(r,t)?1:-1)[0],ht=Object.keys(S).sort((e,r)=>er(e,r)?-1:1),Wn=(e,r=.02)=>[...ht].find(n=>S[n].height*(1+r)>=e),Yn=({width:e,height:r})=>{const t=Math.min(e,r),n=Math.max(e,r);return ht.find(i=>{const o=S[i];return o.width>=n&&o.height>=t})},Hn=e=>S[e].height,rr=e=>e===exports.VideoQuality.INVARIANT,Xn=e=>e.every(r=>!rr(r));function Jn(e){if(rr(e))throw new Error("Expected exact quality")}const bt=(e,r)=>{const t={};for(const n of Object.keys(r)){const i=r[n],o=e[n];Array.isArray(i)&&Array.isArray(o)?t[n]=o:typeof i=="object"&&typeof o=="object"?t[n]=bt(o,i):t[n]=n in e?o:i}return t},Zn=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function pt(e,r=0,t){let n,i,o,a,s,u,c=0,l=!1,f=!1,v=!0;const d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(l=!!t.leading,f="maxWait"in t,o=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):o,v="trailing"in t?!!t.trailing:v);function p(h){const $=n,L=i;return n=i=void 0,c=h,a=e.apply(L,$),a}function y(h,$){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(h)):setTimeout(h,$)}function O(h){if(d){window.cancelAnimationFrame(h);return}clearTimeout(h)}function m(h){return c=h,s=y(ee,r),l?p(h):a}function w(h){const $=h-u,L=h-c,gr=r-$;return f?Math.min(gr,o-L):gr}function pr(h){const $=h-u,L=h-c;return u===void 0||$>=r||$<0||f&&L>=o}function ee(){const h=Date.now();if(pr(h))return yr(h);s=y(ee,w(h))}function yr(h){return s=void 0,v&&n?p(h):(n=i=void 0,a)}function gn(){s!==void 0&&O(s),c=0,n=u=i=s=void 0}function mn(){return s===void 0?a:yr(Date.now())}function wn(){return s!==void 0}function re(...h){const $=Date.now(),L=pr($);if(n=h,i=this,u=$,L){if(s===void 0)return m(u);if(f)return s=y(ee,r),p(u)}return s===void 0&&(s=y(ee,r)),a}return re.cancel=gn,re.flush=mn,re.pending=wn,re}const yt=(e,r=0,t)=>pt(e,r,Object.assign(Object.assign(Object.assign({},{leading:!0,trailing:!0}),t),{maxWait:r})),tr=(e,r)=>{if(e===null||typeof e!="object")return e;const t=Array.isArray(e)?[]:{};for(const n in e){if(typeof r=="function"){const i=r(e[n],n,e,t);if(i!==void 0){t[n]=i;continue}}typeof e[n]=="object"?t[n]=tr(e[n],r):t[n]=e[n]}return t},ei=e=>tr(e),ri=300,ti=(e,r=ri)=>new g(t=>{const{width:n,height:i}=e.getBoundingClientRect();if(t.next({width:n,height:i}),!window.ResizeObserver)return;const o=new ResizeObserver(yt(a=>{const s=a[0];if(!s)return;let u,c;s.contentBoxSize&&s.contentBoxSize[0]?(c=s.contentBoxSize[0].blockSize,u=s.contentBoxSize[0].inlineSize):s.contentRect&&(u=s.contentRect.width,c=s.contentRect.height),de(u)&&de(c)&&t.next({width:u,height:c})},r));return o.observe(e),()=>o.disconnect()});class ni extends Je{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){const t=super._subscribe(r);return r.next(this.value),t}}function ii(e){return new g(r=>{const t={};let n=Object.keys(e).length;const i=o=>a=>{o in t||n--,t[o]=a,n===0&&r.next(t)};return Object.entries(e).reduce((o,[a,s])=>o.add(s.subscribe(i(a))),new H)})}function oi(...e){return new g(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new H))}var ai=e=>new g(r=>{const t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)}),si=e=>new g(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}}),ci=e=>new g(r=>{e.forEach(t=>r.next(t))}),li=(e,r)=>new g(t=>{const n=i=>t.next(i);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function ui(e){return r=>new g(t=>r.subscribe(new fi(t,e)))}class fi{constructor(r,t){this.destination=r,this.size=t,this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}const vi={leading:!1,trailing:!0};function di(e,r=vi){return t=>new g(n=>t.subscribe(new hi(n,e,r)))}class hi{constructor(r,t,n){this.destination=r,this.time=t,this.config=n}next(r){this.lastValue=r,de(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}const bi={leading:!0,trailing:!1};function pi(e,r=bi){return t=>new g(n=>t.subscribe(new yi(n,e,r)))}class yi{constructor(r,t,n){this.destination=r,this.time=t,this.config=n}next(r){this.lastValue=r,vt(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function gi(e){return r=>new g(t=>r.subscribe(new mi(t,e)))}class mi{constructor(r,t){this.destination=r,this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function wi(e=(r,t)=>r===t){return r=>new g(t=>r.subscribe(new Oi(t,e)))}const mr={};class Oi{constructor(r,t){this.destination=r,this.predicate=t,this.lastValue=mr}next(r){let t;try{t=this.lastValue===mr||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function gt(e){return r=>new g(t=>r.subscribe(new Ei(t,e)))}let Ei=class{constructor(r,t){this.destination=r,this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}};function Si(e){return gt(()=>e)}function $i(){return e=>new g(r=>{let t=!1,n=!1;const i=e.subscribe(o=>{t||(t=!0,r.next(o)),n&&i.unsubscribe()},o=>{var a;t=!0,(a=r.error)===null||a===void 0||a.call(r,o),n&&i.unsubscribe()});return n=!0,t&&i.unsubscribe(),i})}function Ti(){return e=>new g(r=>e.subscribe(new Ii(r)))}class Ii{constructor(r){this.destination=r,this.hasLast=!1}next(r){const t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function Ri(e){return r=>new g(t=>r.subscribe(new Pi(t,e)))}class Pi{constructor(r,t){this.destination=r,this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}exports.ErrorCategory=void 0;(function(e){e.NETWORK="network",e.VIDEO_PIPELINE="video_pipeline",e.EXTERNAL_API="external_api",e.PARSER="parser",e.DOM="dom",e.WTF="wtf",e.FATAL="fatal"})(exports.ErrorCategory||(exports.ErrorCategory={}));class wr{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;const n=this.listeners[r];for(let i=0,o=n.length;i<o;i++)if(n[i].callback===t){n.splice(i,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;const n=this.listeners[r.type].slice();for(let i=0,o=n.length;i<o;i++){const a=n[i];try{a.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}a.options&&a.options.once&&this.removeEventListener(r.type,a.callback)}return!r.defaultPrevented}}class mt extends wr{constructor(){super(),this.listeners||wr.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}}class _i{constructor(){Object.defineProperty(this,"signal",{value:new mt,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(i){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(i){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}}typeof Symbol!="undefined"&&Symbol.toStringTag&&(_i.prototype[Symbol.toStringTag]="AbortController",mt.prototype[Symbol.toStringTag]="AbortSignal");function wt(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Ai(e){typeof e=="function"&&(e={fetch:e});const{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i=!1}=e;if(!wt({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:i}))return{fetch:r,Request:o};let o=t;(o&&!o.prototype.hasOwnProperty("signal")||i)&&(o=function(c,l){let f;l&&l.signal&&(f=l.signal,delete l.signal);const v=new t(c,l);return f&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),v},o.prototype=t.prototype);const a=r;return{fetch:(u,c)=>{const l=o&&o.prototype.isPrototypeOf(u)?u.signal:c?c.signal:void 0;if(l){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(l.aborted)return Promise.reject(f);const v=new Promise((d,p)=>{l.addEventListener("abort",()=>p(f),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([v,a(u,c)])}return a(u,c)},Request:o}}const nr=wt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ot=nr?Ai({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Ci=nr?Ot.fetch:window.fetch;nr?Ot.Request:window.Request;var Oe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A=function(e){try{return!!e()}catch(r){return!0}},Li=A,ye=!Li(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Et=ye,St=Function.prototype,Ue=St.call,xi=Et&&St.bind.bind(Ue,Ue),N=Et?xi:function(e){return function(){return Ue.apply(e,arguments)}},$t=N,Mi=$t({}.toString),Ni=$t("".slice),ir=function(e){return Ni(Mi(e),8,-1)},Di=N,Fi=A,Gi=ir,Ee=Object,ki=Di("".split),Vi=Fi(function(){return!Ee("z").propertyIsEnumerable(0)})?function(e){return Gi(e)=="String"?ki(e,""):Ee(e)}:Ee,or=function(e){return e==null},Bi=or,Ui=TypeError,Tt=function(e){if(Bi(e))throw Ui("Can't call method on "+e);return e},Qi=Vi,qi=Tt,X=function(e){return Qi(qi(e))},q={},te=function(e){return e&&e.Math==Math&&e},I=te(typeof globalThis=="object"&&globalThis)||te(typeof window=="object"&&window)||te(typeof self=="object"&&self)||te(typeof Oe=="object"&&Oe)||function(){return this}()||Oe||Function("return this")(),Qe=typeof document=="object"&&document.all,Ki=typeof Qe=="undefined"&&Qe!==void 0,It={all:Qe,IS_HTMLDDA:Ki},Rt=It,zi=Rt.all,R=Rt.IS_HTMLDDA?function(e){return typeof e=="function"||e===zi}:function(e){return typeof e=="function"},Wi=I,Yi=R,Or=Wi.WeakMap,Hi=Yi(Or)&&/native code/.test(String(Or)),Er=R,Pt=It,Xi=Pt.all,K=Pt.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Er(e)||e===Xi}:function(e){return typeof e=="object"?e!==null:Er(e)},Ji=A,D=!Ji(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),z={},Zi=I,Sr=K,qe=Zi.document,eo=Sr(qe)&&Sr(qe.createElement),_t=function(e){return eo?qe.createElement(e):{}},ro=D,to=A,no=_t,At=!ro&&!to(function(){return Object.defineProperty(no("div"),"a",{get:function(){return 7}}).a!=7}),io=D,oo=A,Ct=io&&oo(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),ao=K,so=String,co=TypeError,W=function(e){if(ao(e))return e;throw co(so(e)+" is not an object")},lo=ye,ne=Function.prototype.call,F=lo?ne.bind(ne):function(){return ne.apply(ne,arguments)},ar={},Se=ar,$e=I,uo=R,$r=function(e){return uo(e)?e:void 0},jt=function(e,r){return arguments.length<2?$r(Se[e])||$r($e[e]):Se[e]&&Se[e][r]||$e[e]&&$e[e][r]},fo=N,Lt=fo({}.isPrototypeOf),vo=typeof navigator!="undefined"&&String(navigator.userAgent)||"",xt=I,Te=vo,Tr=xt.process,Ir=xt.Deno,Rr=Tr&&Tr.versions||Ir&&Ir.version,Pr=Rr&&Rr.v8,T,he;Pr&&(T=Pr.split("."),he=T[0]>0&&T[0]<4?1:+(T[0]+T[1]));!he&&Te&&(T=Te.match(/Edge\/(\d+)/),(!T||T[1]>=74)&&(T=Te.match(/Chrome\/(\d+)/),T&&(he=+T[1])));var ho=he,_r=ho,bo=A,po=I,yo=po.String,Mt=!!Object.getOwnPropertySymbols&&!bo(function(){var e=Symbol();return!yo(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_r&&_r<41}),go=Mt,Nt=go&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mo=jt,wo=R,Oo=Lt,Eo=Nt,So=Object,Dt=Eo?function(e){return typeof e=="symbol"}:function(e){var r=mo("Symbol");return wo(r)&&Oo(r.prototype,So(e))},$o=String,sr=function(e){try{return $o(e)}catch(r){return"Object"}},To=R,Io=sr,Ro=TypeError,cr=function(e){if(To(e))return e;throw Ro(Io(e)+" is not a function")},Po=cr,_o=or,lr=function(e,r){var t=e[r];return _o(t)?void 0:Po(t)},Ie=F,Re=R,Pe=K,Ao=TypeError,Co=function(e,r){var t,n;if(r==="string"&&Re(t=e.toString)&&!Pe(n=Ie(t,e))||Re(t=e.valueOf)&&!Pe(n=Ie(t,e))||r!=="string"&&Re(t=e.toString)&&!Pe(n=Ie(t,e)))return n;throw Ao("Can't convert object to primitive value")},Ft={exports:{}},Ar=I,jo=Object.defineProperty,Lo=function(e,r){try{jo(Ar,e,{value:r,configurable:!0,writable:!0})}catch(t){Ar[e]=r}return r},xo=I,Mo=Lo,Cr="__core-js_shared__",No=xo[Cr]||Mo(Cr,{}),Gt=No,jr=Gt;(Ft.exports=function(e,r){return jr[e]||(jr[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"});var kt=Ft.exports,Do=Tt,Fo=Object,Vt=function(e){return Fo(Do(e))},Go=N,ko=Vt,Vo=Go({}.hasOwnProperty),j=Object.hasOwn||function(r,t){return Vo(ko(r),t)},Bo=N,Uo=0,Qo=Math.random(),qo=Bo(1 .toString),Bt=function(e){return"Symbol("+(e===void 0?"":e)+")_"+qo(++Uo+Qo,36)},Ko=I,zo=kt,Lr=j,Wo=Bt,Yo=Mt,Ho=Nt,U=Ko.Symbol,_e=zo("wks"),Xo=Ho?U.for||U:U&&U.withoutSetter||Wo,C=function(e){return Lr(_e,e)||(_e[e]=Yo&&Lr(U,e)?U[e]:Xo("Symbol."+e)),_e[e]},Jo=F,xr=K,Mr=Dt,Zo=lr,ea=Co,ra=C,ta=TypeError,na=ra("toPrimitive"),ia=function(e,r){if(!xr(e)||Mr(e))return e;var t=Zo(e,na),n;if(t){if(r===void 0&&(r="default"),n=Jo(t,e,r),!xr(n)||Mr(n))return n;throw ta("Can't convert object to primitive value")}return r===void 0&&(r="number"),ea(e,r)},oa=ia,aa=Dt,ur=function(e){var r=oa(e,"string");return aa(r)?r:r+""},sa=D,ca=At,la=Ct,ie=W,Nr=ur,ua=TypeError,Ae=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,Ce="enumerable",je="configurable",Le="writable";z.f=sa?la?function(r,t,n){if(ie(r),t=Nr(t),ie(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Le in n&&!n[Le]){var i=fa(r,t);i&&i[Le]&&(r[t]=n.value,n={configurable:je in n?n[je]:i[je],enumerable:Ce in n?n[Ce]:i[Ce],writable:!1})}return Ae(r,t,n)}:Ae:function(r,t,n){if(ie(r),t=Nr(t),ie(n),ca)try{return Ae(r,t,n)}catch(i){}if("get"in n||"set"in n)throw ua("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var ge=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},va=D,da=z,ha=ge,J=va?function(e,r,t){return da.f(e,r,ha(1,t))}:function(e,r,t){return e[r]=t,e},ba=kt,pa=Bt,Dr=ba("keys"),fr=function(e){return Dr[e]||(Dr[e]=pa(e))},vr={},ya=Hi,Ut=I,ga=K,ma=J,xe=j,Me=Gt,wa=fr,Oa=vr,Fr="Object already initialized",Ke=Ut.TypeError,Ea=Ut.WeakMap,be,Y,pe,Sa=function(e){return pe(e)?Y(e):be(e,{})},$a=function(e){return function(r){var t;if(!ga(r)||(t=Y(r)).type!==e)throw Ke("Incompatible receiver, "+e+" required");return t}};if(ya||Me.state){var P=Me.state||(Me.state=new Ea);P.get=P.get,P.has=P.has,P.set=P.set,be=function(e,r){if(P.has(e))throw Ke(Fr);return r.facade=e,P.set(e,r),r},Y=function(e){return P.get(e)||{}},pe=function(e){return P.has(e)}}else{var G=wa("state");Oa[G]=!0,be=function(e,r){if(xe(e,G))throw Ke(Fr);return r.facade=e,ma(e,G,r),r},Y=function(e){return xe(e,G)?e[G]:{}},pe=function(e){return xe(e,G)}}var Ta={set:be,get:Y,has:pe,enforce:Sa,getterFor:$a},Ia=ye,Qt=Function.prototype,Gr=Qt.apply,kr=Qt.call,Ra=typeof Reflect=="object"&&Reflect.apply||(Ia?kr.bind(Gr):function(){return kr.apply(Gr,arguments)}),Pa=ir,_a=N,qt=function(e){if(Pa(e)==="Function")return _a(e)},Kt={},zt={},Wt={}.propertyIsEnumerable,Yt=Object.getOwnPropertyDescriptor,Aa=Yt&&!Wt.call({1:2},1);zt.f=Aa?function(r){var t=Yt(this,r);return!!t&&t.enumerable}:Wt;var Ca=D,ja=F,La=zt,xa=ge,Ma=X,Na=ur,Da=j,Fa=At,Vr=Object.getOwnPropertyDescriptor;Kt.f=Ca?Vr:function(r,t){if(r=Ma(r),t=Na(t),Fa)try{return Vr(r,t)}catch(n){}if(Da(r,t))return xa(!ja(La.f,r,t),r[t])};var Ga=A,ka=R,Va=/#|\.prototype\./,Z=function(e,r){var t=Ua[Ba(e)];return t==qa?!0:t==Qa?!1:ka(r)?Ga(r):!!r},Ba=Z.normalize=function(e){return String(e).replace(Va,".").toLowerCase()},Ua=Z.data={},Qa=Z.NATIVE="N",qa=Z.POLYFILL="P",Ka=Z,Br=qt,za=cr,Wa=ye,Ya=Br(Br.bind),Ht=function(e,r){return za(e),r===void 0?e:Wa?Ya(e,r):function(){return e.apply(r,arguments)}},oe=I,Ha=Ra,Xa=qt,Ja=R,Za=Kt.f,es=Ka,k=ar,rs=Ht,V=J,Ur=j,ts=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return Ha(e,this,arguments)};return r.prototype=e.prototype,r},Xt=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?oe:i?oe[t]:(oe[t]||{}).prototype,s=n?k:k[t]||V(k,t,{})[t],u=s.prototype,c,l,f,v,d,p,y,O,m;for(v in r)c=es(n?v:t+(i?".":"#")+v,e.forced),l=!c&&a&&Ur(a,v),p=s[v],l&&(e.dontCallGetSet?(m=Za(a,v),y=m&&m.value):y=a[v]),d=l&&y?y:r[v],!(l&&typeof p==typeof d)&&(e.bind&&l?O=rs(d,oe):e.wrap&&l?O=ts(d):o&&Ja(d)?O=Xa(d):O=d,(e.sham||d&&d.sham||p&&p.sham)&&V(O,"sham",!0),V(s,v,O),o&&(f=t+"Prototype",Ur(k,f)||V(k,f,{}),V(k[f],v,d),e.real&&u&&(c||!u[v])&&V(u,v,d)))},ze=D,ns=j,Jt=Function.prototype,is=ze&&Object.getOwnPropertyDescriptor,dr=ns(Jt,"name"),os=dr&&function(){}.name==="something",as=dr&&(!ze||ze&&is(Jt,"name").configurable),ss={EXISTS:dr,PROPER:os,CONFIGURABLE:as},Zt={},cs=Math.ceil,ls=Math.floor,us=Math.trunc||function(r){var t=+r;return(t>0?ls:cs)(t)},fs=us,en=function(e){var r=+e;return r!==r||r===0?0:fs(r)},vs=en,ds=Math.max,hs=Math.min,bs=function(e,r){var t=vs(e);return t<0?ds(t+r,0):hs(t,r)},ps=en,ys=Math.min,gs=function(e){return e>0?ys(ps(e),9007199254740991):0},ms=gs,rn=function(e){return ms(e.length)},ws=X,Os=bs,Es=rn,Qr=function(e){return function(r,t,n){var i=ws(r),o=Es(i),a=Os(n,o),s;if(e&&t!=t){for(;o>a;)if(s=i[a++],s!=s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}},Ss={includes:Qr(!0),indexOf:Qr(!1)},$s=N,Ne=j,Ts=X,Is=Ss.indexOf,Rs=vr,qr=$s([].push),Ps=function(e,r){var t=Ts(e),n=0,i=[],o;for(o in t)!Ne(Rs,o)&&Ne(t,o)&&qr(i,o);for(;r.length>n;)Ne(t,o=r[n++])&&(~Is(i,o)||qr(i,o));return i},tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_s=Ps,As=tn,Cs=Object.keys||function(r){return _s(r,As)},js=D,Ls=Ct,xs=z,Ms=W,Ns=X,Ds=Cs;Zt.f=js&&!Ls?Object.defineProperties:function(r,t){Ms(r);for(var n=Ns(t),i=Ds(t),o=i.length,a=0,s;o>a;)xs.f(r,s=i[a++],n[s]);return r};var Fs=jt,Gs=Fs("document","documentElement"),ks=W,Vs=Zt,Kr=tn,Bs=vr,Us=Gs,Qs=_t,qs=fr,zr=">",Wr="<",We="prototype",Ye="script",nn=qs("IE_PROTO"),De=function(){},on=function(e){return Wr+Ye+zr+e+Wr+"/"+Ye+zr},Yr=function(e){e.write(on("")),e.close();var r=e.parentWindow.Object;return e=null,r},Ks=function(){var e=Qs("iframe"),r="java"+Ye+":",t;return e.style.display="none",Us.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(on("document.F=Object")),t.close(),t.F},ae,ue=function(){try{ae=new ActiveXObject("htmlfile")}catch(r){}ue=typeof document!="undefined"?document.domain&&ae?Yr(ae):Ks():Yr(ae);for(var e=Kr.length;e--;)delete ue[We][Kr[e]];return ue()};Bs[nn]=!0;var an=Object.create||function(r,t){var n;return r!==null?(De[We]=ks(r),n=new De,De[We]=null,n[nn]=r):n=ue(),t===void 0?n:Vs.f(n,t)},zs=A,Ws=!zs(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ys=j,Hs=R,Xs=Vt,Js=fr,Zs=Ws,Hr=Js("IE_PROTO"),He=Object,ec=He.prototype,sn=Zs?He.getPrototypeOf:function(e){var r=Xs(e);if(Ys(r,Hr))return r[Hr];var t=r.constructor;return Hs(t)&&r instanceof t?t.prototype:r instanceof He?ec:null},rc=J,cn=function(e,r,t,n){return n&&n.enumerable?e[r]=t:rc(e,r,t),e},tc=A,nc=R,ic=K,oc=an,Xr=sn,ac=cn,sc=C,Xe=sc("iterator"),ln=!1,_,Fe,Ge;[].keys&&(Ge=[].keys(),"next"in Ge?(Fe=Xr(Xr(Ge)),Fe!==Object.prototype&&(_=Fe)):ln=!0);var cc=!ic(_)||tc(function(){var e={};return _[Xe].call(e)!==e});cc?_={}:_=oc(_);nc(_[Xe])||ac(_,Xe,function(){return this});var un={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:ln},lc=C,uc=lc("toStringTag"),fn={};fn[uc]="z";var hr=String(fn)==="[object z]",fc=hr,vc=R,fe=ir,dc=C,hc=dc("toStringTag"),bc=Object,pc=fe(function(){return arguments}())=="Arguments",yc=function(e,r){try{return e[r]}catch(t){}},br=fc?fe:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=yc(r=bc(e),hc))=="string"?t:pc?fe(r):(n=fe(r))=="Object"&&vc(r.callee)?"Arguments":n},gc=hr,mc=br,wc=gc?{}.toString:function(){return"[object "+mc(this)+"]"},Oc=hr,Ec=z.f,Sc=J,$c=j,Tc=wc,Ic=C,Jr=Ic("toStringTag"),vn=function(e,r,t,n){if(e){var i=t?e:e.prototype;$c(i,Jr)||Ec(i,Jr,{configurable:!0,value:r}),n&&!Oc&&Sc(i,"toString",Tc)}},Rc=un.IteratorPrototype,Pc=an,_c=ge,Ac=vn,Cc=q,jc=function(){return this},Lc=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Pc(Rc,{next:_c(+!n,t)}),Ac(e,i,!1,!0),Cc[i]=jc,e},xc=Xt,Mc=F,dn=ss,Nc=Lc,Dc=sn,Fc=vn,Zr=cn,Gc=C,et=q,hn=un,kc=dn.PROPER;dn.CONFIGURABLE;hn.IteratorPrototype;var se=hn.BUGGY_SAFARI_ITERATORS,ke=Gc("iterator"),rt="keys",ce="values",tt="entries",Vc=function(){return this},Bc=function(e,r,t,n,i,o,a){Nc(t,r,n);var s=function(m){if(m===i&&v)return v;if(!se&&m in l)return l[m];switch(m){case rt:return function(){return new t(this,m)};case ce:return function(){return new t(this,m)};case tt:return function(){return new t(this,m)}}return function(){return new t(this)}},u=r+" Iterator",c=!1,l=e.prototype,f=l[ke]||l["@@iterator"]||i&&l[i],v=!se&&f||s(i),d=r=="Array"&&l.entries||f,p,y,O;if(d&&(p=Dc(d.call(new e)),p!==Object.prototype&&p.next&&(Fc(p,u,!0,!0),et[u]=Vc)),kc&&i==ce&&f&&f.name!==ce&&(c=!0,v=function(){return Mc(f,this)}),i)if(y={values:s(ce),keys:o?v:s(rt),entries:s(tt)},a)for(O in y)(se||c||!(O in l))&&Zr(l,O,y[O]);else xc({target:r,proto:!0,forced:se||c},y);return a&&l[ke]!==v&&Zr(l,ke,v,{name:i}),et[r]=v,y},Uc=function(e,r){return{value:e,done:r}},Qc=X,nt=q,bn=Ta;z.f;var qc=Bc,le=Uc,pn="Array Iterator",Kc=bn.set,zc=bn.getterFor(pn);qc(Array,"Array",function(e,r){Kc(this,{type:pn,target:Qc(e),index:0,kind:r})},function(){var e=zc(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,le(void 0,!0)):t=="keys"?le(n,!1):t=="values"?le(r[n],!1):le([n,r[n]],!1)},"values");nt.Arguments=nt.Array;var Wc=C,Yc=q,Hc=Wc("iterator"),Xc=Array.prototype,Jc=function(e){return e!==void 0&&(Yc.Array===e||Xc[Hc]===e)},Zc=br,it=lr,el=or,rl=q,tl=C,nl=tl("iterator"),yn=function(e){if(!el(e))return it(e,nl)||it(e,"@@iterator")||rl[Zc(e)]},il=F,ol=cr,al=W,sl=sr,cl=yn,ll=TypeError,ul=function(e,r){var t=arguments.length<2?cl(e):r;if(ol(t))return al(il(t,e));throw ll(sl(e)+" is not iterable")},fl=F,ot=W,vl=lr,dl=function(e,r,t){var n,i;ot(e);try{if(n=vl(e,"return"),!n){if(r==="throw")throw t;return t}n=fl(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return ot(n),t},hl=Ht,bl=F,pl=W,yl=sr,gl=Jc,ml=rn,at=Lt,wl=ul,Ol=yn,st=dl,El=TypeError,ve=function(e,r){this.stopped=e,this.result=r},ct=ve.prototype,Sl=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=hl(r,n),c,l,f,v,d,p,y,O=function(w){return c&&st(c,"normal",w),new ve(!0,w)},m=function(w){return i?(pl(w),s?u(w[0],w[1],O):u(w[0],w[1])):s?u(w,O):u(w)};if(o)c=e.iterator;else if(a)c=e;else{if(l=Ol(e),!l)throw El(yl(e)+" is not iterable");if(gl(l)){for(f=0,v=ml(e);v>f;f++)if(d=m(e[f]),d&&at(ct,d))return d;return new ve(!1)}c=wl(e,l)}for(p=o?e.next:c.next;!(y=bl(p,c)).done;){try{d=m(y.value)}catch(w){st(c,"throw",w)}if(typeof d=="object"&&d&&at(ct,d))return d}return new ve(!1)},$l=ur,Tl=z,Il=ge,Rl=function(e,r,t){var n=$l(r);n in e?Tl.f(e,n,Il(0,t)):e[n]=t},Pl=Xt,_l=Sl,Al=Rl;Pl({target:"Object",stat:!0},{fromEntries:function(r){var t={};return _l(r,function(n,i){Al(t,n,i)},{AS_ENTRIES:!0}),t}});var Cl=ar,jl=Cl.Object.fromEntries,Ll={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xl=Ll,Ml=I,Nl=br,Dl=J,lt=q,Fl=C,ut=Fl("toStringTag");for(var Ve in xl){var ft=Ml[Ve],Be=ft&&ft.prototype;Be&&Nl(Be)!==ut&&Dl(Be,ut,Ve),lt[Ve]=lt.Array}var Gl=jl,kl=Gl,Vl=kl,Bl=Vl,Ul=ji(Bl);exports.VKNumericLanguage=void 0;(function(e){e.Armenian="58",e.Azerbaijani="57",e.Belarusian="114",e.English="3",e.Kazakh="97",e.Portuguese="73",e.Russian="0",e.Spanish="4",e.Ukrainian="1",e.Uzbek="65",e.Vietnamese="75"})(exports.VKNumericLanguage||(exports.VKNumericLanguage={}));const Ql="vk.com",ql=(e,r,t)=>dt(void 0,void 0,void 0,function*(){const n=new URL(`https://${Ql}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);const o=yield(yield Ci(n.toString())).json();return Kl(o,t)}),Kl=(e,r)=>Ul(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),zl(n)])),zl=e=>Array.isArray(e)?e[0]:e;exports.InterfaceLanguage=void 0;(function(e){e.RU="ru",e.EN="en"})(exports.InterfaceLanguage||(exports.InterfaceLanguage={}));exports.Logger=Sn;exports.Observable=g;exports.Subject=Je;exports.Subscription=H;exports.VERSION=On;exports.ValueSubject=ni;exports.abortable=An;exports.addScript=Pn;exports.areQualitiesExact=Xn;exports.assertEmptyArray=Rn;exports.assertNever=M;exports.assertNonNullable=$n;exports.assertNotEmptyArray=In;exports.assertNullable=Tn;exports.assertQualityIsExact=Jn;exports.buffer=ui;exports.checkNever=En;exports.cloneDeep=ei;exports.cloneDeepWith=tr;exports.combine=ii;exports.debounce=di;exports.debounceFn=pt;exports.detectEmbed=Un;exports.fillWithDefault=bt;exports.filter=gi;exports.filterChanged=wi;exports.fromEvent=li;exports.getCurrentBrowser=Ze;exports.getExponentialDelay=Mn;exports.getHighestQuality=zn;exports.getIOSVersion=jn;exports.interval=si;exports.isHigher=Qn;exports.isHigherOrEqual=qn;exports.isIOS=Cn;exports.isInvariantQuality=rr;exports.isLower=er;exports.isLowerOrEqual=Kn;exports.isMacLike=Ln;exports.isMobile=xn;exports.isNonNullable=de;exports.isNullable=vt;exports.loadVKLangPack=ql;exports.map=gt;exports.mapTo=Si;exports.merge=oi;exports.noop=B;exports.now=_n;exports.observableFrom=ci;exports.observeElementSize=ti;exports.once=$i;exports.pairwise=Ti;exports.safeStorage=Bn;exports.tap=Ri;exports.throttle=pi;exports.throttleFn=yt;exports.timeCodeToString=Zn;exports.timeout=ai;exports.videoHeightToQuality=Wn;exports.videoQualityToHeight=Hn;exports.videoSizeToQuality=Yn;
6
+ "use strict";var ms=Object.create;var te=Object.defineProperty,ys=Object.defineProperties,hs=Object.getOwnPropertyDescriptor,Is=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,Os=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable;var Mt=Math.pow,Nt=(e,r,t)=>r in e?te(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,K=(e,r)=>{for(var t in r||(r={}))jt.call(r,t)&&Nt(e,t,r[t]);if(Ct)for(var t of Ct(r))xs.call(r,t)&&Nt(e,t,r[t]);return e},ye=(e,r)=>ys(e,Is(r));var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),kt=(e,r)=>{for(var t in r)te(e,t,{get:r[t],enumerable:!0})},Dt=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of gs(r))!jt.call(e,o)&&o!==t&&te(e,o,{get:()=>r[o],enumerable:!(n=hs(r,o))||n.enumerable});return e};var Es=(e,r,t)=>(t=e!=null?ms(Os(e)):{},Dt(r||!e||!e.__esModule?te(t,"default",{value:e,enumerable:!0}):t,e)),ws=e=>Dt(te({},"__esModule",{value:!0}),e);var he=(e,r,t)=>new Promise((n,o)=>{var a=c=>{try{s(t.next(c))}catch(l){o(l)}},u=c=>{try{s(t.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,u);s((t=t.apply(e,r)).next())});var _=i((pd,xn)=>{"use strict";xn.exports=function(e){try{return!!e()}catch(r){return!0}}});var ue=i((vd,En)=>{"use strict";var Ms=_();En.exports=!Ms(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=i((bd,qn)=>{"use strict";var wn=ue(),Sn=Function.prototype,Sr=Sn.call,ks=wn&&Sn.bind.bind(Sr,Sr);qn.exports=wn?ks:function(e){return function(){return Sr.apply(e,arguments)}}});var _e=i((dd,Pn)=>{"use strict";var Rn=N(),Ds=Rn({}.toString),Vs=Rn("".slice);Pn.exports=function(e){return Vs(Ds(e),8,-1)}});var _n=i((Td,An)=>{"use strict";var Fs=N(),Us=_(),Gs=_e(),qr=Object,Qs=Fs("".split);An.exports=Us(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return Gs(e)=="String"?Qs(e,""):qr(e)}:qr});var Le=i((md,Ln)=>{"use strict";Ln.exports=function(e){return e==null}});var Rr=i((yd,Cn)=>{"use strict";var Bs=Le(),$s=TypeError;Cn.exports=function(e){if(Bs(e))throw $s("Can't call method on "+e);return e}});var X=i((hd,Nn)=>{"use strict";var Ws=_n(),zs=Rr();Nn.exports=function(e){return Ws(zs(e))}});var Mn=i((Id,jn)=>{"use strict";jn.exports=function(){}});var B=i((gd,kn)=>{"use strict";kn.exports={}});var S=i((Dn,Vn)=>{"use strict";var Ce=function(e){return e&&e.Math==Math&&e};Vn.exports=Ce(typeof globalThis=="object"&&globalThis)||Ce(typeof window=="object"&&window)||Ce(typeof self=="object"&&self)||Ce(typeof global=="object"&&global)||function(){return this}()||Dn||Function("return this")()});var Ar=i((Od,Fn)=>{"use strict";var Pr=typeof document=="object"&&document.all,Ks=typeof Pr=="undefined"&&Pr!==void 0;Fn.exports={all:Pr,IS_HTMLDDA:Ks}});var x=i((xd,Gn)=>{"use strict";var Un=Ar(),Ys=Un.all;Gn.exports=Un.IS_HTMLDDA?function(e){return typeof e=="function"||e===Ys}:function(e){return typeof e=="function"}});var $n=i((Ed,Bn)=>{"use strict";var Hs=S(),Xs=x(),Qn=Hs.WeakMap;Bn.exports=Xs(Qn)&&/native code/.test(String(Qn))});var $=i((wd,Kn)=>{"use strict";var Wn=x(),zn=Ar(),Js=zn.all;Kn.exports=zn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:Wn(e)||e===Js}:function(e){return typeof e=="object"?e!==null:Wn(e)}});var j=i((Sd,Yn)=>{"use strict";var Zs=_();Yn.exports=!Zs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Lr=i((qd,Xn)=>{"use strict";var eu=S(),Hn=$(),_r=eu.document,ru=Hn(_r)&&Hn(_r.createElement);Xn.exports=function(e){return ru?_r.createElement(e):{}}});var Cr=i((Rd,Jn)=>{"use strict";var tu=j(),nu=_(),ou=Lr();Jn.exports=!tu&&!nu(function(){return Object.defineProperty(ou("div"),"a",{get:function(){return 7}}).a!=7})});var Nr=i((Pd,Zn)=>{"use strict";var iu=j(),au=_();Zn.exports=iu&&au(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var V=i((Ad,eo)=>{"use strict";var su=$(),uu=String,lu=TypeError;eo.exports=function(e){if(su(e))return e;throw lu(uu(e)+" is not an object")}});var F=i((_d,ro)=>{"use strict";var cu=ue(),Ne=Function.prototype.call;ro.exports=cu?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var je=i((Ld,to)=>{"use strict";to.exports={}});var kr=i((Cd,oo)=>{"use strict";var jr=je(),Mr=S(),fu=x(),no=function(e){return fu(e)?e:void 0};oo.exports=function(e,r){return arguments.length<2?no(jr[e])||no(Mr[e]):jr[e]&&jr[e][r]||Mr[e]&&Mr[e][r]}});var Dr=i((Nd,io)=>{"use strict";var pu=N();io.exports=pu({}.isPrototypeOf)});var so=i((jd,ao)=>{"use strict";ao.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var bo=i((Md,vo)=>{"use strict";var po=S(),Vr=so(),uo=po.process,lo=po.Deno,co=uo&&uo.versions||lo&&lo.version,fo=co&&co.v8,R,Me;fo&&(R=fo.split("."),Me=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Me&&Vr&&(R=Vr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Vr.match(/Chrome\/(\d+)/),R&&(Me=+R[1])));vo.exports=Me});var Fr=i((kd,mo)=>{"use strict";var To=bo(),vu=_(),bu=S(),du=bu.String;mo.exports=!!Object.getOwnPropertySymbols&&!vu(function(){var e=Symbol();return!du(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&To&&To<41})});var Ur=i((Dd,yo)=>{"use strict";var Tu=Fr();yo.exports=Tu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Gr=i((Vd,ho)=>{"use strict";var mu=kr(),yu=x(),hu=Dr(),Iu=Ur(),gu=Object;ho.exports=Iu?function(e){return typeof e=="symbol"}:function(e){var r=mu("Symbol");return yu(r)&&hu(r.prototype,gu(e))}});var ke=i((Fd,Io)=>{"use strict";var Ou=String;Io.exports=function(e){try{return Ou(e)}catch(r){return"Object"}}});var le=i((Ud,go)=>{"use strict";var xu=x(),Eu=ke(),wu=TypeError;go.exports=function(e){if(xu(e))return e;throw wu(Eu(e)+" is not a function")}});var De=i((Gd,Oo)=>{"use strict";var Su=le(),qu=Le();Oo.exports=function(e,r){var t=e[r];return qu(t)?void 0:Su(t)}});var Eo=i((Qd,xo)=>{"use strict";var Qr=F(),Br=x(),$r=$(),Ru=TypeError;xo.exports=function(e,r){var t,n;if(r==="string"&&Br(t=e.toString)&&!$r(n=Qr(t,e))||Br(t=e.valueOf)&&!$r(n=Qr(t,e))||r!=="string"&&Br(t=e.toString)&&!$r(n=Qr(t,e)))return n;throw Ru("Can't convert object to primitive value")}});var ce=i((Bd,wo)=>{"use strict";wo.exports=!0});var Ro=i(($d,qo)=>{"use strict";var So=S(),Pu=Object.defineProperty;qo.exports=function(e,r){try{Pu(So,e,{value:r,configurable:!0,writable:!0})}catch(t){So[e]=r}return r}});var Wr=i((Wd,Ao)=>{"use strict";var Au=S(),_u=Ro(),Po="__core-js_shared__",Lu=Au[Po]||_u(Po,{});Ao.exports=Lu});var zr=i((zd,Lo)=>{"use strict";var Cu=ce(),_o=Wr();(Lo.exports=function(e,r){return _o[e]||(_o[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:Cu?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Kr=i((Kd,Co)=>{"use strict";var Nu=Rr(),ju=Object;Co.exports=function(e){return ju(Nu(e))}});var M=i((Yd,No)=>{"use strict";var Mu=N(),ku=Kr(),Du=Mu({}.hasOwnProperty);No.exports=Object.hasOwn||function(r,t){return Du(ku(r),t)}});var Yr=i((Hd,jo)=>{"use strict";var Vu=N(),Fu=0,Uu=Math.random(),Gu=Vu(1 .toString);jo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Gu(++Fu+Uu,36)}});var L=i((Xd,ko)=>{"use strict";var Qu=S(),Bu=zr(),Mo=M(),$u=Yr(),Wu=Fr(),zu=Ur(),J=Qu.Symbol,Hr=Bu("wks"),Ku=zu?J.for||J:J&&J.withoutSetter||$u;ko.exports=function(e){return Mo(Hr,e)||(Hr[e]=Wu&&Mo(J,e)?J[e]:Ku("Symbol."+e)),Hr[e]}});var Uo=i((Jd,Fo)=>{"use strict";var Yu=F(),Do=$(),Vo=Gr(),Hu=De(),Xu=Eo(),Ju=L(),Zu=TypeError,el=Ju("toPrimitive");Fo.exports=function(e,r){if(!Do(e)||Vo(e))return e;var t=Hu(e,el),n;if(t){if(r===void 0&&(r="default"),n=Yu(t,e,r),!Do(n)||Vo(n))return n;throw Zu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Xu(e,r)}});var Ve=i((Zd,Go)=>{"use strict";var rl=Uo(),tl=Gr();Go.exports=function(e){var r=rl(e,"string");return tl(r)?r:r+""}});var Z=i(Bo=>{"use strict";var nl=j(),ol=Cr(),il=Nr(),Fe=V(),Qo=Ve(),al=TypeError,Xr=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Jr="enumerable",Zr="configurable",et="writable";Bo.f=nl?il?function(r,t,n){if(Fe(r),t=Qo(t),Fe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&et in n&&!n[et]){var o=sl(r,t);o&&o[et]&&(r[t]=n.value,n={configurable:Zr in n?n[Zr]:o[Zr],enumerable:Jr in n?n[Jr]:o[Jr],writable:!1})}return Xr(r,t,n)}:Xr:function(r,t,n){if(Fe(r),t=Qo(t),Fe(n),ol)try{return Xr(r,t,n)}catch(o){}if("get"in n||"set"in n)throw al("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=i((rT,$o)=>{"use strict";$o.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var W=i((tT,Wo)=>{"use strict";var ul=j(),ll=Z(),cl=fe();Wo.exports=ul?function(e,r,t){return ll.f(e,r,cl(1,t))}:function(e,r,t){return e[r]=t,e}});var Ue=i((nT,Ko)=>{"use strict";var fl=zr(),pl=Yr(),zo=fl("keys");Ko.exports=function(e){return zo[e]||(zo[e]=pl(e))}});var Ge=i((oT,Yo)=>{"use strict";Yo.exports={}});var Zo=i((iT,Jo)=>{"use strict";var vl=$n(),Xo=S(),bl=$(),dl=W(),rt=M(),tt=Wr(),Tl=Ue(),ml=Ge(),Ho="Object already initialized",nt=Xo.TypeError,yl=Xo.WeakMap,Qe,pe,Be,hl=function(e){return Be(e)?pe(e):Qe(e,{})},Il=function(e){return function(r){var t;if(!bl(r)||(t=pe(r)).type!==e)throw nt("Incompatible receiver, "+e+" required");return t}};vl||tt.state?(P=tt.state||(tt.state=new yl),P.get=P.get,P.has=P.has,P.set=P.set,Qe=function(e,r){if(P.has(e))throw nt(Ho);return r.facade=e,P.set(e,r),r},pe=function(e){return P.get(e)||{}},Be=function(e){return P.has(e)}):(z=Tl("state"),ml[z]=!0,Qe=function(e,r){if(rt(e,z))throw nt(Ho);return r.facade=e,dl(e,z,r),r},pe=function(e){return rt(e,z)?e[z]:{}},Be=function(e){return rt(e,z)});var P,z;Jo.exports={set:Qe,get:pe,has:Be,enforce:hl,getterFor:Il}});var oi=i((aT,ni)=>{"use strict";var gl=ue(),ti=Function.prototype,ei=ti.apply,ri=ti.call;ni.exports=typeof Reflect=="object"&&Reflect.apply||(gl?ri.bind(ei):function(){return ri.apply(ei,arguments)})});var ot=i((sT,ii)=>{"use strict";var Ol=_e(),xl=N();ii.exports=function(e){if(Ol(e)==="Function")return xl(e)}});var li=i(ui=>{"use strict";var ai={}.propertyIsEnumerable,si=Object.getOwnPropertyDescriptor,El=si&&!ai.call({1:2},1);ui.f=El?function(r){var t=si(this,r);return!!t&&t.enumerable}:ai});var pi=i(fi=>{"use strict";var wl=j(),Sl=F(),ql=li(),Rl=fe(),Pl=X(),Al=Ve(),_l=M(),Ll=Cr(),ci=Object.getOwnPropertyDescriptor;fi.f=wl?ci:function(r,t){if(r=Pl(r),t=Al(t),Ll)try{return ci(r,t)}catch(n){}if(_l(r,t))return Rl(!Sl(ql.f,r,t),r[t])}});var bi=i((cT,vi)=>{"use strict";var Cl=_(),Nl=x(),jl=/#|\.prototype\./,ve=function(e,r){var t=kl[Ml(e)];return t==Vl?!0:t==Dl?!1:Nl(r)?Cl(r):!!r},Ml=ve.normalize=function(e){return String(e).replace(jl,".").toLowerCase()},kl=ve.data={},Dl=ve.NATIVE="N",Vl=ve.POLYFILL="P";vi.exports=ve});var it=i((fT,Ti)=>{"use strict";var di=ot(),Fl=le(),Ul=ue(),Gl=di(di.bind);Ti.exports=function(e,r){return Fl(e),r===void 0?e:Ul?Gl(e,r):function(){return e.apply(r,arguments)}}});var at=i((pT,yi)=>{"use strict";var $e=S(),Ql=oi(),Bl=ot(),$l=x(),Wl=pi().f,zl=bi(),ee=je(),Kl=it(),re=W(),mi=M(),Yl=function(e){var r=function(t,n,o){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return Ql(e,this,arguments)};return r.prototype=e.prototype,r};yi.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,a=e.proto,u=n?$e:o?$e[t]:($e[t]||{}).prototype,s=n?ee:ee[t]||re(ee,t,{})[t],c=s.prototype,l,f,p,b,d,m,y,g,h;for(b in r)l=zl(n?b:t+(o?".":"#")+b,e.forced),f=!l&&u&&mi(u,b),m=s[b],f&&(e.dontCallGetSet?(h=Wl(u,b),y=h&&h.value):y=u[b]),d=f&&y?y:r[b],!(f&&typeof m==typeof d)&&(e.bind&&f?g=Kl(d,$e):e.wrap&&f?g=Yl(d):a&&$l(d)?g=Bl(d):g=d,(e.sham||d&&d.sham||m&&m.sham)&&re(g,"sham",!0),re(s,b,g),a&&(p=t+"Prototype",mi(ee,p)||re(ee,p,{}),re(ee[p],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var gi=i((vT,Ii)=>{"use strict";var st=j(),Hl=M(),hi=Function.prototype,Xl=st&&Object.getOwnPropertyDescriptor,ut=Hl(hi,"name"),Jl=ut&&function(){}.name==="something",Zl=ut&&(!st||st&&Xl(hi,"name").configurable);Ii.exports={EXISTS:ut,PROPER:Jl,CONFIGURABLE:Zl}});var xi=i((bT,Oi)=>{"use strict";var ec=Math.ceil,rc=Math.floor;Oi.exports=Math.trunc||function(r){var t=+r;return(t>0?rc:ec)(t)}});var lt=i((dT,Ei)=>{"use strict";var tc=xi();Ei.exports=function(e){var r=+e;return r!==r||r===0?0:tc(r)}});var Si=i((TT,wi)=>{"use strict";var nc=lt(),oc=Math.max,ic=Math.min;wi.exports=function(e,r){var t=nc(e);return t<0?oc(t+r,0):ic(t,r)}});var Ri=i((mT,qi)=>{"use strict";var ac=lt(),sc=Math.min;qi.exports=function(e){return e>0?sc(ac(e),9007199254740991):0}});var ct=i((yT,Pi)=>{"use strict";var uc=Ri();Pi.exports=function(e){return uc(e.length)}});var Li=i((hT,_i)=>{"use strict";var lc=X(),cc=Si(),fc=ct(),Ai=function(e){return function(r,t,n){var o=lc(r),a=fc(o),u=cc(n,a),s;if(e&&t!=t){for(;a>u;)if(s=o[u++],s!=s)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===t)return e||u||0;return!e&&-1}};_i.exports={includes:Ai(!0),indexOf:Ai(!1)}});var ji=i((IT,Ni)=>{"use strict";var pc=N(),ft=M(),vc=X(),bc=Li().indexOf,dc=Ge(),Ci=pc([].push);Ni.exports=function(e,r){var t=vc(e),n=0,o=[],a;for(a in t)!ft(dc,a)&&ft(t,a)&&Ci(o,a);for(;r.length>n;)ft(t,a=r[n++])&&(~bc(o,a)||Ci(o,a));return o}});var pt=i((gT,Mi)=>{"use strict";Mi.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Di=i((OT,ki)=>{"use strict";var Tc=ji(),mc=pt();ki.exports=Object.keys||function(r){return Tc(r,mc)}});var Fi=i(Vi=>{"use strict";var yc=j(),hc=Nr(),Ic=Z(),gc=V(),Oc=X(),xc=Di();Vi.f=yc&&!hc?Object.defineProperties:function(r,t){gc(r);for(var n=Oc(t),o=xc(t),a=o.length,u=0,s;a>u;)Ic.f(r,s=o[u++],n[s]);return r}});var Gi=i((ET,Ui)=>{"use strict";var Ec=kr();Ui.exports=Ec("document","documentElement")});var Tt=i((wT,Yi)=>{"use strict";var wc=V(),Sc=Fi(),Qi=pt(),qc=Ge(),Rc=Gi(),Pc=Lr(),Ac=Ue(),Bi=">",$i="<",bt="prototype",dt="script",zi=Ac("IE_PROTO"),vt=function(){},Ki=function(e){return $i+dt+Bi+e+$i+"/"+dt+Bi},Wi=function(e){e.write(Ki("")),e.close();var r=e.parentWindow.Object;return e=null,r},_c=function(){var e=Pc("iframe"),r="java"+dt+":",t;return e.style.display="none",Rc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Ki("document.F=Object")),t.close(),t.F},We,ze=function(){try{We=new ActiveXObject("htmlfile")}catch(r){}ze=typeof document!="undefined"?document.domain&&We?Wi(We):_c():Wi(We);for(var e=Qi.length;e--;)delete ze[bt][Qi[e]];return ze()};qc[zi]=!0;Yi.exports=Object.create||function(r,t){var n;return r!==null?(vt[bt]=wc(r),n=new vt,vt[bt]=null,n[zi]=r):n=ze(),t===void 0?n:Sc.f(n,t)}});var Xi=i((ST,Hi)=>{"use strict";var Lc=_();Hi.exports=!Lc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var yt=i((qT,Zi)=>{"use strict";var Cc=M(),Nc=x(),jc=Kr(),Mc=Ue(),kc=Xi(),Ji=Mc("IE_PROTO"),mt=Object,Dc=mt.prototype;Zi.exports=kc?mt.getPrototypeOf:function(e){var r=jc(e);if(Cc(r,Ji))return r[Ji];var t=r.constructor;return Nc(t)&&r instanceof t?t.prototype:r instanceof mt?Dc:null}});var ht=i((RT,ea)=>{"use strict";var Vc=W();ea.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Vc(e,r,t),e}});var xt=i((PT,na)=>{"use strict";var Fc=_(),Uc=x(),Gc=$(),Qc=Tt(),ra=yt(),Bc=ht(),$c=L(),Wc=ce(),Ot=$c("iterator"),ta=!1,k,It,gt;[].keys&&(gt=[].keys(),"next"in gt?(It=ra(ra(gt)),It!==Object.prototype&&(k=It)):ta=!0);var zc=!Gc(k)||Fc(function(){var e={};return k[Ot].call(e)!==e});zc?k={}:Wc&&(k=Qc(k));Uc(k[Ot])||Bc(k,Ot,function(){return this});na.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:ta}});var Ke=i((AT,ia)=>{"use strict";var Kc=L(),Yc=Kc("toStringTag"),oa={};oa[Yc]="z";ia.exports=String(oa)==="[object z]"});var He=i((_T,aa)=>{"use strict";var Hc=Ke(),Xc=x(),Ye=_e(),Jc=L(),Zc=Jc("toStringTag"),ef=Object,rf=Ye(function(){return arguments}())=="Arguments",tf=function(e,r){try{return e[r]}catch(t){}};aa.exports=Hc?Ye:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=tf(r=ef(e),Zc))=="string"?t:rf?Ye(r):(n=Ye(r))=="Object"&&Xc(r.callee)?"Arguments":n}});var ua=i((LT,sa)=>{"use strict";var nf=Ke(),of=He();sa.exports=nf?{}.toString:function(){return"[object "+of(this)+"]"}});var Et=i((CT,ca)=>{"use strict";var af=Ke(),sf=Z().f,uf=W(),lf=M(),cf=ua(),ff=L(),la=ff("toStringTag");ca.exports=function(e,r,t,n){if(e){var o=t?e:e.prototype;lf(o,la)||sf(o,la,{configurable:!0,value:r}),n&&!af&&uf(o,"toString",cf)}}});var pa=i((NT,fa)=>{"use strict";var pf=xt().IteratorPrototype,vf=Tt(),bf=fe(),df=Et(),Tf=B(),mf=function(){return this};fa.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=vf(pf,{next:bf(+!n,t)}),df(e,o,!1,!0),Tf[o]=mf,e}});var ba=i((jT,va)=>{"use strict";var yf=N(),hf=le();va.exports=function(e,r,t){try{return yf(hf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Ta=i((MT,da)=>{"use strict";var If=x(),gf=String,Of=TypeError;da.exports=function(e){if(typeof e=="object"||If(e))return e;throw Of("Can't set "+gf(e)+" as a prototype")}});var ya=i((kT,ma)=>{"use strict";var xf=ba(),Ef=V(),wf=Ta();ma.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=xf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,a){return Ef(o),wf(a),e?t(o,a):o.__proto__=a,o}}():void 0)});var Pa=i((DT,Ra)=>{"use strict";var Sf=at(),qf=F(),Xe=ce(),Sa=gi(),Rf=x(),Pf=pa(),ha=yt(),Ia=ya(),Af=Et(),_f=W(),wt=ht(),Lf=L(),ga=B(),qa=xt(),Cf=Sa.PROPER,Nf=Sa.CONFIGURABLE,Oa=qa.IteratorPrototype,Je=qa.BUGGY_SAFARI_ITERATORS,be=Lf("iterator"),xa="keys",de="values",Ea="entries",wa=function(){return this};Ra.exports=function(e,r,t,n,o,a,u){Pf(t,r,n);var s=function(h){if(h===o&&b)return b;if(!Je&&h in f)return f[h];switch(h){case xa:return function(){return new t(this,h)};case de:return function(){return new t(this,h)};case Ea:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,f=e.prototype,p=f[be]||f["@@iterator"]||o&&f[o],b=!Je&&p||s(o),d=r=="Array"&&f.entries||p,m,y,g;if(d&&(m=ha(d.call(new e)),m!==Object.prototype&&m.next&&(!Xe&&ha(m)!==Oa&&(Ia?Ia(m,Oa):Rf(m[be])||wt(m,be,wa)),Af(m,c,!0,!0),Xe&&(ga[c]=wa))),Cf&&o==de&&p&&p.name!==de&&(!Xe&&Nf?_f(f,"name",de):(l=!0,b=function(){return qf(p,this)})),o)if(y={values:s(de),keys:a?b:s(xa),entries:s(Ea)},u)for(g in y)(Je||l||!(g in f))&&wt(f,g,y[g]);else Sf({target:r,proto:!0,forced:Je||l},y);return(!Xe||u)&&f[be]!==b&&wt(f,be,b,{name:o}),ga[r]=b,y}});var _a=i((VT,Aa)=>{"use strict";Aa.exports=function(e,r){return{value:e,done:r}}});var qt=i((FT,Ma)=>{"use strict";var jf=X(),St=Mn(),La=B(),Na=Zo(),Mf=Z().f,kf=Pa(),Ze=_a(),Df=ce(),Vf=j(),ja="Array Iterator",Ff=Na.set,Uf=Na.getterFor(ja);Ma.exports=kf(Array,"Array",function(e,r){Ff(this,{type:ja,target:jf(e),index:0,kind:r})},function(){var e=Uf(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,Ze(void 0,!0)):t=="keys"?Ze(n,!1):t=="values"?Ze(r[n],!1):Ze([n,r[n]],!1)},"values");var Ca=La.Arguments=La.Array;St("keys");St("values");St("entries");if(!Df&&Vf&&Ca.name!=="values")try{Mf(Ca,"name",{value:"values"})}catch(e){}});var Da=i((UT,ka)=>{"use strict";var Gf=L(),Qf=B(),Bf=Gf("iterator"),$f=Array.prototype;ka.exports=function(e){return e!==void 0&&(Qf.Array===e||$f[Bf]===e)}});var Rt=i((GT,Fa)=>{"use strict";var Wf=He(),Va=De(),zf=Le(),Kf=B(),Yf=L(),Hf=Yf("iterator");Fa.exports=function(e){if(!zf(e))return Va(e,Hf)||Va(e,"@@iterator")||Kf[Wf(e)]}});var Ga=i((QT,Ua)=>{"use strict";var Xf=F(),Jf=le(),Zf=V(),ep=ke(),rp=Rt(),tp=TypeError;Ua.exports=function(e,r){var t=arguments.length<2?rp(e):r;if(Jf(t))return Zf(Xf(t,e));throw tp(ep(e)+" is not iterable")}});var $a=i((BT,Ba)=>{"use strict";var np=F(),Qa=V(),op=De();Ba.exports=function(e,r,t){var n,o;Qa(e);try{if(n=op(e,"return"),!n){if(r==="throw")throw t;return t}n=np(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return Qa(n),t}});var Ha=i(($T,Ya)=>{"use strict";var ip=it(),ap=F(),sp=V(),up=ke(),lp=Da(),cp=ct(),Wa=Dr(),fp=Ga(),pp=Rt(),za=$a(),vp=TypeError,er=function(e,r){this.stopped=e,this.result=r},Ka=er.prototype;Ya.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=ip(r,n),l,f,p,b,d,m,y,g=function(I){return l&&za(l,"normal",I),new er(!0,I)},h=function(I){return o?(sp(I),s?c(I[0],I[1],g):c(I[0],I[1])):s?c(I,g):c(I)};if(a)l=e.iterator;else if(u)l=e;else{if(f=pp(e),!f)throw vp(up(e)+" is not iterable");if(lp(f)){for(p=0,b=cp(e);b>p;p++)if(d=h(e[p]),d&&Wa(Ka,d))return d;return new er(!1)}l=fp(e,f)}for(m=a?e.next:l.next;!(y=ap(m,l)).done;){try{d=h(y.value)}catch(I){za(l,"throw",I)}if(typeof d=="object"&&d&&Wa(Ka,d))return d}return new er(!1)}});var Ja=i((WT,Xa)=>{"use strict";var bp=Ve(),dp=Z(),Tp=fe();Xa.exports=function(e,r,t){var n=bp(r);n in e?dp.f(e,n,Tp(0,t)):e[n]=t}});var Za=i(()=>{"use strict";var mp=at(),yp=Ha(),hp=Ja();mp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return yp(r,function(n,o){hp(t,n,o)},{AS_ENTRIES:!0}),t}})});var rs=i((YT,es)=>{"use strict";qt();Za();var Ip=je();es.exports=Ip.Object.fromEntries});var ns=i((HT,ts)=>{"use strict";ts.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var as=i(()=>{"use strict";qt();var gp=ns(),Op=S(),xp=He(),Ep=W(),os=B(),wp=L(),is=wp("toStringTag");for(rr in gp)Pt=Op[rr],tr=Pt&&Pt.prototype,tr&&xp(tr)!==is&&Ep(tr,is,rr),os[rr]=os.Array;var Pt,tr,rr});var us=i((ZT,ss)=>{"use strict";var Sp=rs();as();ss.exports=Sp});var cs=i((em,ls)=>{"use strict";var qp=us();ls.exports=qp});var Lp={};kt(Lp,{CurrentClientBrowser:()=>nr,CurrentClientDevice:()=>or,ErrorCategory:()=>In,InterfaceLanguage:()=>vs,Logger:()=>Ie,Observable:()=>v,Subject:()=>C,Subscription:()=>E,VERSION:()=>Vt,VKNumericLanguage:()=>ps,ValueSubject:()=>oe,VideoQuality:()=>Ee,abortable:()=>Kt,addScript:()=>$t,areQualitiesExact:()=>cn,assertEmptyArray:()=>Bt,assertNever:()=>A,assertNonNullable:()=>Ut,assertNotEmptyArray:()=>Qt,assertNullable:()=>Gt,assertQualityIsExact:()=>fn,buffer:()=>lr,checkNever:()=>Ft,cloneDeep:()=>vn,cloneDeepWith:()=>ne,combine:()=>ar,debounce:()=>fr,debounceFn:()=>qe,detectEmbed:()=>en,fillWithDefault:()=>pn,filter:()=>dr,filterChanged:()=>mr,fromEvent:()=>yn,getCurrentBrowser:()=>Oe,getExponentialDelay:()=>Zt,getHighestQuality:()=>on,getIOSVersion:()=>Ht,interval:()=>Tn,isHigher:()=>rn,isHigherOrEqual:()=>tn,isIOS:()=>Yt,isInvariantQuality:()=>Se,isLower:()=>we,isLowerOrEqual:()=>nn,isMacLike:()=>Xt,isMobile:()=>Jt,isNonNullable:()=>G,isNullable:()=>ge,loadVKLangPack:()=>Pp,map:()=>ie,mapTo:()=>hr,merge:()=>sr,noop:()=>D,now:()=>zt,observableFrom:()=>mn,observeElementSize:()=>bn,once:()=>Ir,pairwise:()=>Or,safeStorage:()=>xe,tap:()=>Er,throttle:()=>vr,throttleFn:()=>Re,timeCodeToString:()=>Ls,timeout:()=>dn,videoHeightToQuality:()=>sn,videoQualityToHeight:()=>ln,videoSizeToQuality:()=>un});module.exports=ws(Lp);var Vt="__VERSION__";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var A=e=>{throw new Error(`${e} is value of unexpected type`)},Ft=e=>{};var D=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:D}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:D,error:D};let o=typeof r=="function"?{next:s=>{try{r(s)}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(o)}catch(s){(u=o.error)==null||u.call(o,s)}return new E().add(()=>{switch(o.next=D,o.error=D,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return A(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var C=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var Ie=class{constructor(){this.log$=new C;this.logs=[];this.log=r=>{let t=ye(K({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>K({component:r},t))}};function Ut(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Gt(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function G(e){return typeof e!="undefined"&&e!==null}function ge(e){return e==null}function Qt(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Bt(e,r){if(e!=null&&e.length)throw new Error(r)}var $t=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{s(),l.remove()});let a=()=>{s(),o()},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),l.removeEventListener("load",u),l.removeEventListener("error",a)},c;t&&(c=window.setTimeout(a,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Wt,zt=typeof((Wt=window.performance)==null?void 0:Wt.now)=="function"?()=>window.performance.now():()=>Date.now();var Kt=(e,r)=>(...t)=>he(void 0,null,function*(){var u;let n=r(...t),o=e.aborted,a;for(;!o&&!e.aborted;)try{let s=yield n.next(a);o=(u=s.done)!=null?u:!1,a=s.value}catch(s){yield n.throw(s)}return a});var nr=(l=>(l.Unknown="Unknown",l.Yandex="Yandex",l.Chrome="Chrome",l.Chromium="Chromium",l.Firefox="Firefox",l.Safari="Safari",l.Opera="Opera",l.Edge="Edge",l.Rest="Rest",l))(nr||{}),or=(c=>(c.Unknown="Unknown",c.Android="Android",c.iPhone="iPhone",c.iPad="iPad",c.iPod="iPod",c.RestMobile="RestMobile",c.Mac="Mac",c.Desktop="Desktop",c))(or||{}),Oe=()=>{let{userAgent:e}=window.navigator,r=/yabrowser/i.test(e)?"Yandex":void 0,t=/chrome|crios/i.test(e)?"Chrome":void 0,n=/chromium/i.test(e)?"Chromium":void 0,o=/firefox|fxios/i.test(e)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(e)?"Safari":void 0,u=/opr\//i.test(e)?"Opera":void 0,s=/edg/i.test(e)?"Edge":void 0,c=/android/i.test(e)?"Android":void 0,l=/iphone/i.test(e)?"iPhone":void 0,f=/ipad/i.test(e)?"iPad":void 0,p=/ipod/i.test(e)?"iPod":void 0,b=/mac/i.test(e)?"Mac":void 0,d=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?"RestMobile":void 0;return{browser:r||o||u||s||t||n||a||"Rest",device:c||l||f||p||d||b||"Desktop"}},Yt=(e=!1)=>{let t=["iPhone","iPad","iPod"].includes(Oe().device);if(!e)return t;let{userAgent:n,maxTouchPoints:o}=window.navigator;return!!(t||/macintosh/i.test(n)&&o>0)},Ht=()=>{let{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return null;let t=r[1],n=parseFloat(t);return isNaN(n)?null:n},Xt=()=>["Mac","iPhone","iPad","iPod"].includes(Oe().device),Jt=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)};var Zt=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:a=0}={})=>{let u=r;return u*=Mt(t,e),u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,o),u};var xe={};kt(xe,{clear:()=>_s,get:()=>qs,has:()=>Ps,isPersistent:()=>Ss,remove:()=>As,set:()=>Rs});var O,Q,ir=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(Q!==void 0)return Q;try{localStorage.setItem(ir,"test"),localStorage.removeItem(ir),Q=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(ir),Q=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)Q=2;else throw r}else throw e}return Q===2&&(O=new Map),Q},Ss=()=>Y()===0,qs=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:A(r)}},Rs=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:A(t)}},Ps=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return A(r),!1}},As=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:A(r)}},_s=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:A(e)}};var en=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ee=(f=>(f.INVARIANT="Invariant quality",f.Q_144P="144p",f.Q_240P="240p",f.Q_360P="360p",f.Q_480P="480p",f.Q_720P="720p",f.Q_1080P="1080p",f.Q_1440P="1440p",f.Q_2160P="2160p",f.Q_4320P="4320p",f))(Ee||{});var w={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},rn=(e,r)=>w[e].height>w[r].height,tn=(e,r)=>w[e].height>=w[r].height,we=(e,r)=>w[e].height<w[r].height,nn=(e,r)=>w[e].height<=w[r].height,on=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:we(r,t)?1:-1)[0],an=Object.keys(w).sort((e,r)=>we(e,r)?-1:1),sn=(e,r=.02)=>[...an].find(n=>w[n].height*(1+r)>=e),un=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return an.find(o=>{let a=w[o];return a.width>=n&&a.height>=t})},ln=e=>w[e].height,Se=e=>e==="Invariant quality",cn=e=>e.every(r=>!Se(r));function fn(e){if(Se(e))throw new Error("Expected exact quality")}var pn=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],a=e[n];Array.isArray(o)&&Array.isArray(a)?t[n]=a:typeof o=="object"&&typeof a=="object"?t[n]=pn(a,o):t[n]=n in e?a:o}return t};var Ls=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function qe(e,r=0,t){let n,o,a,u,s,c,l=0,f=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(f=!!t.leading,p="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,U=o;return n=o=void 0,l=T,u=e.apply(U,q),u}function y(T,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(T)):setTimeout(T,q)}function g(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return l=T,s=y(Te,r),f?m(T):u}function I(T){let q=T-c,U=T-l,Lt=r-q;return p?Math.min(Lt,a-U):Lt}function At(T){let q=T-c,U=T-l;return c===void 0||q>=r||q<0||p&&U>=a}function Te(){let T=Date.now();if(At(T))return _t(T);s=y(Te,I(T))}function _t(T){return s=void 0,b&&n?m(T):(n=o=void 0,u)}function bs(){s!==void 0&&g(s),l=0,n=c=o=s=void 0}function ds(){return s===void 0?u:_t(Date.now())}function Ts(){return s!==void 0}function me(...T){let q=Date.now(),U=At(q);if(n=T,o=this,c=q,U){if(s===void 0)return h(c);if(p)return s=y(Te,r),m(c)}return s===void 0&&(s=y(Te,r)),u}return me.cancel=bs,me.flush=ds,me.pending=Ts,me}var Re=(e,r=0,t)=>qe(e,r,ye(K(K({},{leading:!0,trailing:!0}),t),{maxWait:r}));var ne=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=ne(e[n],r):t[n]=e[n]}return t};var vn=e=>ne(e);var Cs=300,bn=(e,r=Cs)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let a=new ResizeObserver(Re(u=>{let s=u[0];if(!s)return;let c,l;s.contentBoxSize&&s.contentBoxSize[0]?(l=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,l=s.contentRect.height),G(c)&&G(l)&&t.next({width:c,height:l})},r));return a.observe(e),()=>a.disconnect()});var oe=class extends C{constructor(t){super();this.value=t}next(t){super.next(this.value=t)}error(t){super.error(this.value=t)}getValue(){return this.value}_subscribe(t){let n=super._subscribe(t);return t.next(this.value),n}};function ar(e){return new v(r=>{let t={},n=Object.keys(e).length,o=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return Object.entries(e).reduce((a,[u,s])=>a.add(s.subscribe(o(u))),new E)})}function sr(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var dn=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var Tn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var mn=e=>new v(r=>{e.forEach(t=>r.next(t))});var yn=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function lr(e){return r=>new v(t=>r.subscribe(new ur(t,e)))}var ur=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ns={leading:!1,trailing:!0};function fr(e,r=Ns){return t=>new v(n=>t.subscribe(new cr(n,e,r)))}var cr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,G(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var js={leading:!0,trailing:!1};function vr(e,r=js){return t=>new v(n=>t.subscribe(new pr(n,e,r)))}var pr=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,ge(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function dr(e){return r=>new v(t=>r.subscribe(new br(t,e)))}var br=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function mr(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new Tr(t,e)))}var hn={},Tr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=hn}next(r){let t;try{t=this.lastValue===hn||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function ie(e){return r=>new v(t=>r.subscribe(new yr(t,e)))}var yr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function hr(e){return ie(()=>e)}function Ir(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&o.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Or(){return e=>new v(r=>e.subscribe(new gr(r)))}var gr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Er(e){return r=>new v(t=>r.subscribe(new xr(t,e)))}var xr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var In=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(In||{});var Pe=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let o=0,a=n.length;o<a;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,a=n.length;o<a;o++){let u=n[o];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},H=class extends Pe{constructor(){super(),this.listeners||Pe.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},ae=class{constructor(){Object.defineProperty(this,"signal",{value:new H,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(ae.prototype[Symbol.toStringTag]="AbortController",H.prototype[Symbol.toStringTag]="AbortSignal");function Ae(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function wr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!Ae({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(l,f){let p;f&&f.signal&&(p=f.signal,delete f.signal);let b=new t(l,f);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,l)=>{let f=a&&a.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(f){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(f.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{f.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(c,l)])}return u(c,l)},Request:a}}var se=Ae({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),gn=se?wr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,On=se?gn.fetch:window.fetch,ud=se?gn.Request:window.Request,ld=se?ae:window.AbortController,cd=se?H:window.AbortSignal;var fs=Es(cs(),1);var ps=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(ps||{}),Rp="vk.com",Pp=(e,r,t)=>he(void 0,null,function*(){let n=new URL(`https://${Rp}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=yield(yield On(n.toString())).json();return Ap(a,t)}),Ap=(e,r)=>(0,fs.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),_p(n)])),_p=e=>Array.isArray(e)?e[0]:e;var vs=(t=>(t.RU="ru",t.EN="en",t))(vs||{});
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.36-dev.8794a45a.0
3
- * Thu, 06 Jun 2024 14:58:43 GMT
2
+ * @vkontakte/videoplayer-shared v1.0.36-dev.c504893e.0
3
+ * Mon, 10 Jun 2024 11:23:26 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-36/doc/
5
5
  */
6
- const cl="1.0.36-dev.8794a45a.0";class ge{constructor(){this.subscriptions=[]}unsubscribe(){const r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}}const K=e=>{throw new Error(`${e} is value of unexpected type`)},ll=e=>{},X=()=>{};class O{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var n;let o;t?typeof t=="function"?o={next:t,error:X}:o={next:s=>t.next(s),error:s=>{var u;return(u=t.error)===null||u===void 0?void 0:u.call(t,s)}}:o={next:X,error:X};const a=typeof r=="function"?{next:s=>{try{r(s)}catch(u){o.next(u)}},error:s=>o.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):o.next(s)};let i;try{i=this._subscribe(a)}catch(s){(n=a.error)===null||n===void 0||n.call(a,s)}return new ge().add(()=>{switch(a.next=X,a.error=X,typeof i){case"function":i();return;case"object":i.unsubscribe();return;case"undefined":return;default:return K(i)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}}class dt extends O{constructor(){super(),this.keyCounter=0,this.subscribers=new Map}next(r){this.subscribers.forEach(t=>t.next(r))}error(r){this.subscribers.forEach(t=>{var n;return(n=t.error)===null||n===void 0?void 0:n.call(t,r)})}_subscribe(r){const t=this.keyCounter++;return this.subscribers.set(t,r),new ge().add(()=>this.subscribers.delete(t))}}class ul{constructor(){this.log$=new dt,this.logs=[],this.log=r=>{const t=Object.assign(Object.assign({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)},this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>Object.assign({component:r},t))}}function fl(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function vl(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function Ke(e){return typeof e!="undefined"&&e!==null}function $n(e){return e==null}function dl(e,r){if(!(e!=null&&e.length))throw new Error(r)}function hl(e,r){if(e!=null&&e.length)throw new Error(r)}const pl=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{s(),c.remove()});const a=()=>{s(),o()},i=()=>{s(),n()},s=()=>{u&&clearTimeout(u),c.removeEventListener("load",i),c.removeEventListener("error",a)};let u;t&&(u=window.setTimeout(a,t));const c=document.createElement("script");c.addEventListener("load",i),c.addEventListener("error",a),c.src=e,document.head.appendChild(c)});var we;const bl=typeof((we=window.performance)===null||we===void 0?void 0:we.now)=="function"?()=>window.performance.now():()=>Date.now();function ht(e,r,t,n){function o(a){return a instanceof t?a:new t(function(i){i(a)})}return new(t||(t=Promise))(function(a,i){function s(l){try{c(n.next(l))}catch(f){i(f)}}function u(l){try{c(n.throw(l))}catch(f){i(f)}}function c(l){l.done?a(l.value):o(l.value).then(s,u)}c((n=n.apply(e,r||[])).next())})}const yl=(e,r)=>(...t)=>ht(void 0,void 0,void 0,function*(){var n;const o=r(...t);let a=e.aborted,i;for(;!a&&!e.aborted;)try{const s=yield o.next(i);a=(n=s.done)!==null&&n!==void 0?n:!1,i=s.value}catch(s){yield o.throw(s)}return i});var j;(function(e){e.Unknown="Unknown",e.Yandex="Yandex",e.Chrome="Chrome",e.Chromium="Chromium",e.Firefox="Firefox",e.Safari="Safari",e.Opera="Opera",e.Edge="Edge",e.Rest="Rest"})(j||(j={}));var $;(function(e){e.Unknown="Unknown",e.Android="Android",e.iPhone="iPhone",e.iPad="iPad",e.iPod="iPod",e.RestMobile="RestMobile",e.Mac="Mac",e.Desktop="Desktop"})($||($={}));const pt=()=>{const{userAgent:e}=window.navigator,r=/yabrowser/i.test(e)?j.Yandex:void 0,t=/chrome|crios/i.test(e)?j.Chrome:void 0,n=/chromium/i.test(e)?j.Chromium:void 0,o=/firefox|fxios/i.test(e)?j.Firefox:void 0,a=/webkit|safari|khtml/i.test(e)?j.Safari:void 0,i=/opr\//i.test(e)?j.Opera:void 0,s=/edg/i.test(e)?j.Edge:void 0,u=/android/i.test(e)?$.Android:void 0,c=/iphone/i.test(e)?$.iPhone:void 0,l=/ipad/i.test(e)?$.iPad:void 0,f=/ipod/i.test(e)?$.iPod:void 0,v=/mac/i.test(e)?$.Mac:void 0,d=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?$.RestMobile:void 0;return{browser:r||o||i||s||t||n||a||j.Rest,device:u||c||l||f||d||v||$.Desktop}},gl=(e=!1)=>{const t=[$.iPhone,$.iPad,$.iPod].includes(pt().device);if(!e)return t;const{userAgent:n,maxTouchPoints:o}=window.navigator;return!!(t||/macintosh/i.test(n)&&o>0)},ml=()=>{const{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return null;const t=r[1],n=parseFloat(t);return isNaN(n)?null:n},Ol=()=>[$.Mac,$.iPhone,$.iPad,$.iPod].includes(pt().device),wl=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!==null&&e!==void 0?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)===null||r===void 0?void 0:r.mobile)},$l=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:a=0}={})=>{let i=r;return i*=Math.pow(t,e),i*=1+(Math.random()*a*2-a),i=Math.round(i),i=Math.min(i,n),i=Math.max(i,o),i};var p;(function(e){e[e.LOCAL_STORAGE=0]="LOCAL_STORAGE",e[e.SESSION_STORAGE=1]="SESSION_STORAGE",e[e.RUNTIME=2]="RUNTIME"})(p||(p={}));let S,C;const $e=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(C!==void 0)return C;try{localStorage.setItem($e,"test"),localStorage.removeItem($e),C=p.LOCAL_STORAGE}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem($e),C=p.SESSION_STORAGE}catch(r){if(r instanceof DOMException||r instanceof TypeError)C=p.RUNTIME;else throw r}else throw e}return C===p.RUNTIME&&(S=new Map),C},Sn=()=>Y()===p.LOCAL_STORAGE,En=e=>{var r,t;const n=Y();switch(n){case p.LOCAL_STORAGE:return(r=localStorage.getItem(e))!==null&&r!==void 0?r:void 0;case p.SESSION_STORAGE:return(t=sessionStorage.getItem(e))!==null&&t!==void 0?t:void 0;case p.RUNTIME:return S==null?void 0:S.get(e);default:K(n)}},Tn=(e,r)=>{const t=Y();switch(t){case p.LOCAL_STORAGE:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case p.SESSION_STORAGE:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case p.RUNTIME:return void(S==null?void 0:S.set(e,r));default:K(t)}},In=e=>{var r;const t=Y();switch(t){case p.LOCAL_STORAGE:return e in localStorage;case p.SESSION_STORAGE:return e in sessionStorage;case p.RUNTIME:return(r=S==null?void 0:S.has(e))!==null&&r!==void 0?r:!1;default:return K(t),!1}},Rn=e=>{const r=Y();switch(r){case p.LOCAL_STORAGE:return localStorage.removeItem(e);case p.SESSION_STORAGE:return sessionStorage.removeItem(e);case p.RUNTIME:return void(S==null?void 0:S.delete(e));default:K(r)}},Pn=()=>{const e=Y();switch(e){case p.LOCAL_STORAGE:return localStorage.clear();case p.SESSION_STORAGE:return sessionStorage.clear();case p.RUNTIME:return S==null?void 0:S.clear();default:K(e)}};var Sl=Object.freeze({__proto__:null,clear:Pn,get:En,has:In,isPersistent:Sn,remove:Rn,set:Tn});const El=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}const t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var E;(function(e){e.INVARIANT="Invariant quality",e.Q_144P="144p",e.Q_240P="240p",e.Q_360P="360p",e.Q_480P="480p",e.Q_720P="720p",e.Q_1080P="1080p",e.Q_1440P="1440p",e.Q_2160P="2160p",e.Q_4320P="4320p"})(E||(E={}));const T={[E.Q_144P]:{width:256,height:144},[E.Q_240P]:{width:428,height:240},[E.Q_360P]:{width:640,height:360},[E.Q_480P]:{width:856,height:480},[E.Q_720P]:{width:1280,height:720},[E.Q_1080P]:{width:1920,height:1080},[E.Q_1440P]:{width:2560,height:1440},[E.Q_2160P]:{width:3840,height:2160},[E.Q_4320P]:{width:7680,height:4320}},Tl=(e,r)=>T[e].height>T[r].height,Il=(e,r)=>T[e].height>=T[r].height,bt=(e,r)=>T[e].height<T[r].height,Rl=(e,r)=>T[e].height<=T[r].height,Pl=e=>e.sort((r,t)=>r===t?0:r===E.INVARIANT?1:t===E.INVARIANT?-1:bt(r,t)?1:-1)[0],yt=Object.keys(T).sort((e,r)=>bt(e,r)?-1:1),_l=(e,r=.02)=>[...yt].find(n=>T[n].height*(1+r)>=e),Al=({width:e,height:r})=>{const t=Math.min(e,r),n=Math.max(e,r);return yt.find(o=>{const a=T[o];return a.width>=n&&a.height>=t})},jl=e=>T[e].height,gt=e=>e===E.INVARIANT,xl=e=>e.every(r=>!gt(r));function Ll(e){if(gt(e))throw new Error("Expected exact quality")}const _n=(e,r)=>{const t={};for(const n of Object.keys(r)){const o=r[n],a=e[n];Array.isArray(o)&&Array.isArray(a)?t[n]=a:typeof o=="object"&&typeof a=="object"?t[n]=_n(a,o):t[n]=n in e?a:o}return t},Ml=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function An(e,r=0,t){let n,o,a,i,s,u,c=0,l=!1,f=!1,v=!0;const d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(l=!!t.leading,f="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,v="trailing"in t?!!t.trailing:v);function b(h){const I=n,F=o;return n=o=void 0,c=h,i=e.apply(F,I),i}function y(h,I){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(h)):setTimeout(h,I)}function w(h){if(d){window.cancelAnimationFrame(h);return}clearTimeout(h)}function g(h){return c=h,s=y(te,r),l?b(h):i}function m(h){const I=h-u,F=h-c,br=r-I;return f?Math.min(br,a-F):br}function hr(h){const I=h-u,F=h-c;return u===void 0||I>=r||I<0||f&&F>=a}function te(){const h=Date.now();if(hr(h))return pr(h);s=y(te,m(h))}function pr(h){return s=void 0,v&&n?b(h):(n=o=void 0,i)}function mn(){s!==void 0&&w(s),c=0,n=u=o=s=void 0}function On(){return s===void 0?i:pr(Date.now())}function wn(){return s!==void 0}function ne(...h){const I=Date.now(),F=hr(I);if(n=h,o=this,u=I,F){if(s===void 0)return g(u);if(f)return s=y(te,r),b(u)}return s===void 0&&(s=y(te,r)),i}return ne.cancel=mn,ne.flush=On,ne.pending=wn,ne}const jn=(e,r=0,t)=>An(e,r,Object.assign(Object.assign(Object.assign({},{leading:!0,trailing:!0}),t),{maxWait:r})),mt=(e,r)=>{if(e===null||typeof e!="object")return e;const t=Array.isArray(e)?[]:{};for(const n in e){if(typeof r=="function"){const o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=mt(e[n],r):t[n]=e[n]}return t},Nl=e=>mt(e),xn=300,Fl=(e,r=xn)=>new O(t=>{const{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;const a=new ResizeObserver(jn(i=>{const s=i[0];if(!s)return;let u,c;s.contentBoxSize&&s.contentBoxSize[0]?(c=s.contentBoxSize[0].blockSize,u=s.contentBoxSize[0].inlineSize):s.contentRect&&(u=s.contentRect.width,c=s.contentRect.height),Ke(u)&&Ke(c)&&t.next({width:u,height:c})},r));return a.observe(e),()=>a.disconnect()});class Cl extends dt{constructor(r){super(),this.value=r}next(r){super.next(this.value=r)}error(r){super.error(this.value=r)}getValue(){return this.value}_subscribe(r){const t=super._subscribe(r);return r.next(this.value),t}}function Dl(e){return new O(r=>{const t={};let n=Object.keys(e).length;const o=a=>i=>{a in t||n--,t[a]=i,n===0&&r.next(t)};return Object.entries(e).reduce((a,[i,s])=>a.add(s.subscribe(o(i))),new ge)})}function Gl(...e){return new O(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new ge))}var kl=e=>new O(r=>{const t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)}),Ul=e=>new O(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}}),Bl=e=>new O(r=>{e.forEach(t=>r.next(t))}),Vl=(e,r)=>new O(t=>{const n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function ql(e){return r=>new O(t=>r.subscribe(new Ln(t,e)))}class Ln{constructor(r,t){this.destination=r,this.size=t,this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}const Mn={leading:!1,trailing:!0};function Kl(e,r=Mn){return t=>new O(n=>t.subscribe(new Nn(n,e,r)))}class Nn{constructor(r,t,n){this.destination=r,this.time=t,this.config=n}next(r){this.lastValue=r,Ke(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}const Fn={leading:!0,trailing:!1};function Yl(e,r=Fn){return t=>new O(n=>t.subscribe(new Cn(n,e,r)))}class Cn{constructor(r,t,n){this.destination=r,this.time=t,this.config=n}next(r){this.lastValue=r,$n(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function zl(e){return r=>new O(t=>r.subscribe(new Dn(t,e)))}class Dn{constructor(r,t){this.destination=r,this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function Wl(e=(r,t)=>r===t){return r=>new O(t=>r.subscribe(new Gn(t,e)))}const yr={};class Gn{constructor(r,t){this.destination=r,this.predicate=t,this.lastValue=yr}next(r){let t;try{t=this.lastValue===yr||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function kn(e){return r=>new O(t=>r.subscribe(new Un(t,e)))}let Un=class{constructor(r,t){this.destination=r,this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}};function Hl(e){return kn(()=>e)}function Xl(){return e=>new O(r=>{let t=!1,n=!1;const o=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&o.unsubscribe()},a=>{var i;t=!0,(i=r.error)===null||i===void 0||i.call(r,a),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Jl(){return e=>new O(r=>e.subscribe(new Bn(r)))}class Bn{constructor(r){this.destination=r,this.hasLast=!1}next(r){const t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}function Zl(e){return r=>new O(t=>r.subscribe(new Vn(t,e)))}class Vn{constructor(r,t){this.destination=r,this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)===null||n===void 0||n.call(t,r)}}var gr;(function(e){e.NETWORK="network",e.VIDEO_PIPELINE="video_pipeline",e.EXTERNAL_API="external_api",e.PARSER="parser",e.DOM="dom",e.WTF="wtf",e.FATAL="fatal"})(gr||(gr={}));class mr{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;const n=this.listeners[r];for(let o=0,a=n.length;o<a;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;const n=this.listeners[r.type].slice();for(let o=0,a=n.length;o<a;o++){const i=n[o];try{i.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}i.options&&i.options.once&&this.removeEventListener(r.type,i.callback)}return!r.defaultPrevented}}class Ot extends mr{constructor(){super(),this.listeners||mr.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}}class qn{constructor(){Object.defineProperty(this,"signal",{value:new Ot,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}}typeof Symbol!="undefined"&&Symbol.toStringTag&&(qn.prototype[Symbol.toStringTag]="AbortController",Ot.prototype[Symbol.toStringTag]="AbortSignal");function wt(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function Kn(e){typeof e=="function"&&(e={fetch:e});const{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!wt({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(c,l){let f;l&&l.signal&&(f=l.signal,delete l.signal);const v=new t(c,l);return f&&Object.defineProperty(v,"signal",{writable:!1,enumerable:!1,configurable:!0,value:f}),v},a.prototype=t.prototype);const i=r;return{fetch:(u,c)=>{const l=a&&a.prototype.isPrototypeOf(u)?u.signal:c?c.signal:void 0;if(l){let f;try{f=new DOMException("Aborted","AbortError")}catch(d){f=new Error("Aborted"),f.name="AbortError"}if(l.aborted)return Promise.reject(f);const v=new Promise((d,b)=>{l.addEventListener("abort",()=>b(f),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([v,i(u,c)])}return i(u,c)},Request:a}}const rr=wt({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),$t=rr?Kn({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Yn=rr?$t.fetch:window.fetch;rr?$t.Request:window.Request;var Se=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L=function(e){try{return!!e()}catch(r){return!0}},Wn=L,me=!Wn(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),St=me,Et=Function.prototype,Ye=Et.call,Qn=St&&Et.bind.bind(Ye,Ye),D=St?Qn:function(e){return function(){return Ye.apply(e,arguments)}},Tt=D,Hn=Tt({}.toString),Xn=Tt("".slice),tr=function(e){return Xn(Hn(e),8,-1)},Jn=D,Zn=L,eo=tr,Ee=Object,ro=Jn("".split),to=Zn(function(){return!Ee("z").propertyIsEnumerable(0)})?function(e){return eo(e)=="String"?ro(e,""):Ee(e)}:Ee,nr=function(e){return e==null},no=nr,oo=TypeError,It=function(e){if(no(e))throw oo("Can't call method on "+e);return e},ao=to,io=It,Z=function(e){return ao(io(e))},z={},oe=function(e){return e&&e.Math==Math&&e},P=oe(typeof globalThis=="object"&&globalThis)||oe(typeof window=="object"&&window)||oe(typeof self=="object"&&self)||oe(typeof Se=="object"&&Se)||function(){return this}()||Se||Function("return this")(),ze=typeof document=="object"&&document.all,so=typeof ze=="undefined"&&ze!==void 0,Rt={all:ze,IS_HTMLDDA:so},Pt=Rt,co=Pt.all,_=Pt.IS_HTMLDDA?function(e){return typeof e=="function"||e===co}:function(e){return typeof e=="function"},lo=P,uo=_,Or=lo.WeakMap,fo=uo(Or)&&/native code/.test(String(Or)),wr=_,_t=Rt,vo=_t.all,W=_t.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:wr(e)||e===vo}:function(e){return typeof e=="object"?e!==null:wr(e)},ho=L,G=!ho(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Q={},po=P,$r=W,We=po.document,bo=$r(We)&&$r(We.createElement),At=function(e){return bo?We.createElement(e):{}},yo=G,go=L,mo=At,jt=!yo&&!go(function(){return Object.defineProperty(mo("div"),"a",{get:function(){return 7}}).a!=7}),Oo=G,wo=L,xt=Oo&&wo(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),$o=W,So=String,Eo=TypeError,H=function(e){if($o(e))return e;throw Eo(So(e)+" is not an object")},To=me,ae=Function.prototype.call,k=To?ae.bind(ae):function(){return ae.apply(ae,arguments)},or={},Te=or,Ie=P,Io=_,Sr=function(e){return Io(e)?e:void 0},Lt=function(e,r){return arguments.length<2?Sr(Te[e])||Sr(Ie[e]):Te[e]&&Te[e][r]||Ie[e]&&Ie[e][r]},Ro=D,Mt=Ro({}.isPrototypeOf),Po=typeof navigator!="undefined"&&String(navigator.userAgent)||"",Nt=P,Re=Po,Er=Nt.process,Tr=Nt.Deno,Ir=Er&&Er.versions||Tr&&Tr.version,Rr=Ir&&Ir.v8,R,pe;Rr&&(R=Rr.split("."),pe=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!pe&&Re&&(R=Re.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Re.match(/Chrome\/(\d+)/),R&&(pe=+R[1])));var _o=pe,Pr=_o,Ao=L,jo=P,xo=jo.String,Ft=!!Object.getOwnPropertySymbols&&!Ao(function(){var e=Symbol();return!xo(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pr&&Pr<41}),Lo=Ft,Ct=Lo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mo=Lt,No=_,Fo=Mt,Co=Ct,Do=Object,Dt=Co?function(e){return typeof e=="symbol"}:function(e){var r=Mo("Symbol");return No(r)&&Fo(r.prototype,Do(e))},Go=String,ar=function(e){try{return Go(e)}catch(r){return"Object"}},ko=_,Uo=ar,Bo=TypeError,ir=function(e){if(ko(e))return e;throw Bo(Uo(e)+" is not a function")},Vo=ir,qo=nr,sr=function(e,r){var t=e[r];return qo(t)?void 0:Vo(t)},Pe=k,_e=_,Ae=W,Ko=TypeError,Yo=function(e,r){var t,n;if(r==="string"&&_e(t=e.toString)&&!Ae(n=Pe(t,e))||_e(t=e.valueOf)&&!Ae(n=Pe(t,e))||r!=="string"&&_e(t=e.toString)&&!Ae(n=Pe(t,e)))return n;throw Ko("Can't convert object to primitive value")},Gt={exports:{}},_r=P,zo=Object.defineProperty,Wo=function(e,r){try{zo(_r,e,{value:r,configurable:!0,writable:!0})}catch(t){_r[e]=r}return r},Qo=P,Ho=Wo,Ar="__core-js_shared__",Xo=Qo[Ar]||Ho(Ar,{}),kt=Xo,jr=kt;(Gt.exports=function(e,r){return jr[e]||(jr[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ut=Gt.exports,Jo=It,Zo=Object,Bt=function(e){return Zo(Jo(e))},ea=D,ra=Bt,ta=ea({}.hasOwnProperty),N=Object.hasOwn||function(r,t){return ta(ra(r),t)},na=D,oa=0,aa=Math.random(),ia=na(1 .toString),Vt=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ia(++oa+aa,36)},sa=P,ca=Ut,xr=N,la=Vt,ua=Ft,fa=Ct,q=sa.Symbol,je=ca("wks"),va=fa?q.for||q:q&&q.withoutSetter||la,M=function(e){return xr(je,e)||(je[e]=ua&&xr(q,e)?q[e]:va("Symbol."+e)),je[e]},da=k,Lr=W,Mr=Dt,ha=sr,pa=Yo,ba=M,ya=TypeError,ga=ba("toPrimitive"),ma=function(e,r){if(!Lr(e)||Mr(e))return e;var t=ha(e,ga),n;if(t){if(r===void 0&&(r="default"),n=da(t,e,r),!Lr(n)||Mr(n))return n;throw ya("Can't convert object to primitive value")}return r===void 0&&(r="number"),pa(e,r)},Oa=ma,wa=Dt,cr=function(e){var r=Oa(e,"string");return wa(r)?r:r+""},$a=G,Sa=jt,Ea=xt,ie=H,Nr=cr,Ta=TypeError,xe=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Le="enumerable",Me="configurable",Ne="writable";Q.f=$a?Ea?function(r,t,n){if(ie(r),t=Nr(t),ie(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Ne in n&&!n[Ne]){var o=Ia(r,t);o&&o[Ne]&&(r[t]=n.value,n={configurable:Me in n?n[Me]:o[Me],enumerable:Le in n?n[Le]:o[Le],writable:!1})}return xe(r,t,n)}:xe:function(r,t,n){if(ie(r),t=Nr(t),ie(n),Sa)try{return xe(r,t,n)}catch(o){}if("get"in n||"set"in n)throw Ta("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var Oe=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}},Ra=G,Pa=Q,_a=Oe,ee=Ra?function(e,r,t){return Pa.f(e,r,_a(1,t))}:function(e,r,t){return e[r]=t,e},Aa=Ut,ja=Vt,Fr=Aa("keys"),lr=function(e){return Fr[e]||(Fr[e]=ja(e))},ur={},xa=fo,qt=P,La=W,Ma=ee,Fe=N,Ce=kt,Na=lr,Fa=ur,Cr="Object already initialized",Qe=qt.TypeError,Ca=qt.WeakMap,be,J,ye,Da=function(e){return ye(e)?J(e):be(e,{})},Ga=function(e){return function(r){var t;if(!La(r)||(t=J(r)).type!==e)throw Qe("Incompatible receiver, "+e+" required");return t}};if(xa||Ce.state){var A=Ce.state||(Ce.state=new Ca);A.get=A.get,A.has=A.has,A.set=A.set,be=function(e,r){if(A.has(e))throw Qe(Cr);return r.facade=e,A.set(e,r),r},J=function(e){return A.get(e)||{}},ye=function(e){return A.has(e)}}else{var U=Na("state");Fa[U]=!0,be=function(e,r){if(Fe(e,U))throw Qe(Cr);return r.facade=e,Ma(e,U,r),r},J=function(e){return Fe(e,U)?e[U]:{}},ye=function(e){return Fe(e,U)}}var ka={set:be,get:J,has:ye,enforce:Da,getterFor:Ga},Ua=me,Kt=Function.prototype,Dr=Kt.apply,Gr=Kt.call,Ba=typeof Reflect=="object"&&Reflect.apply||(Ua?Gr.bind(Dr):function(){return Gr.apply(Dr,arguments)}),Va=tr,qa=D,Yt=function(e){if(Va(e)==="Function")return qa(e)},zt={},Wt={},Qt={}.propertyIsEnumerable,Ht=Object.getOwnPropertyDescriptor,Ka=Ht&&!Qt.call({1:2},1);Wt.f=Ka?function(r){var t=Ht(this,r);return!!t&&t.enumerable}:Qt;var Ya=G,za=k,Wa=Wt,Qa=Oe,Ha=Z,Xa=cr,Ja=N,Za=jt,kr=Object.getOwnPropertyDescriptor;zt.f=Ya?kr:function(r,t){if(r=Ha(r),t=Xa(t),Za)try{return kr(r,t)}catch(n){}if(Ja(r,t))return Qa(!za(Wa.f,r,t),r[t])};var ei=L,ri=_,ti=/#|\.prototype\./,re=function(e,r){var t=oi[ni(e)];return t==ii?!0:t==ai?!1:ri(r)?ei(r):!!r},ni=re.normalize=function(e){return String(e).replace(ti,".").toLowerCase()},oi=re.data={},ai=re.NATIVE="N",ii=re.POLYFILL="P",si=re,Ur=Yt,ci=ir,li=me,ui=Ur(Ur.bind),Xt=function(e,r){return ci(e),r===void 0?e:li?ui(e,r):function(){return e.apply(r,arguments)}},se=P,fi=Ba,vi=Yt,di=_,hi=zt.f,pi=si,B=or,bi=Xt,V=ee,Br=N,yi=function(e){var r=function(t,n,o){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return fi(e,this,arguments)};return r.prototype=e.prototype,r},Jt=function(e,r){var t=e.target,n=e.global,o=e.stat,a=e.proto,i=n?se:o?se[t]:(se[t]||{}).prototype,s=n?B:B[t]||V(B,t,{})[t],u=s.prototype,c,l,f,v,d,b,y,w,g;for(v in r)c=pi(n?v:t+(o?".":"#")+v,e.forced),l=!c&&i&&Br(i,v),b=s[v],l&&(e.dontCallGetSet?(g=hi(i,v),y=g&&g.value):y=i[v]),d=l&&y?y:r[v],!(l&&typeof b==typeof d)&&(e.bind&&l?w=bi(d,se):e.wrap&&l?w=yi(d):a&&di(d)?w=vi(d):w=d,(e.sham||d&&d.sham||b&&b.sham)&&V(w,"sham",!0),V(s,v,w),a&&(f=t+"Prototype",Br(B,f)||V(B,f,{}),V(B[f],v,d),e.real&&u&&(c||!u[v])&&V(u,v,d)))},He=G,gi=N,Zt=Function.prototype,mi=He&&Object.getOwnPropertyDescriptor,fr=gi(Zt,"name"),Oi=fr&&function(){}.name==="something",wi=fr&&(!He||He&&mi(Zt,"name").configurable),$i={EXISTS:fr,PROPER:Oi,CONFIGURABLE:wi},en={},Si=Math.ceil,Ei=Math.floor,Ti=Math.trunc||function(r){var t=+r;return(t>0?Ei:Si)(t)},Ii=Ti,rn=function(e){var r=+e;return r!==r||r===0?0:Ii(r)},Ri=rn,Pi=Math.max,_i=Math.min,Ai=function(e,r){var t=Ri(e);return t<0?Pi(t+r,0):_i(t,r)},ji=rn,xi=Math.min,Li=function(e){return e>0?xi(ji(e),9007199254740991):0},Mi=Li,tn=function(e){return Mi(e.length)},Ni=Z,Fi=Ai,Ci=tn,Vr=function(e){return function(r,t,n){var o=Ni(r),a=Ci(o),i=Fi(n,a),s;if(e&&t!=t){for(;a>i;)if(s=o[i++],s!=s)return!0}else for(;a>i;i++)if((e||i in o)&&o[i]===t)return e||i||0;return!e&&-1}},Di={includes:Vr(!0),indexOf:Vr(!1)},Gi=D,De=N,ki=Z,Ui=Di.indexOf,Bi=ur,qr=Gi([].push),Vi=function(e,r){var t=ki(e),n=0,o=[],a;for(a in t)!De(Bi,a)&&De(t,a)&&qr(o,a);for(;r.length>n;)De(t,a=r[n++])&&(~Ui(o,a)||qr(o,a));return o},nn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qi=Vi,Ki=nn,Yi=Object.keys||function(r){return qi(r,Ki)},zi=G,Wi=xt,Qi=Q,Hi=H,Xi=Z,Ji=Yi;en.f=zi&&!Wi?Object.defineProperties:function(r,t){Hi(r);for(var n=Xi(t),o=Ji(t),a=o.length,i=0,s;a>i;)Qi.f(r,s=o[i++],n[s]);return r};var Zi=Lt,es=Zi("document","documentElement"),rs=H,ts=en,Kr=nn,ns=ur,os=es,as=At,is=lr,Yr=">",zr="<",Xe="prototype",Je="script",on=is("IE_PROTO"),Ge=function(){},an=function(e){return zr+Je+Yr+e+zr+"/"+Je+Yr},Wr=function(e){e.write(an("")),e.close();var r=e.parentWindow.Object;return e=null,r},ss=function(){var e=as("iframe"),r="java"+Je+":",t;return e.style.display="none",os.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(an("document.F=Object")),t.close(),t.F},ce,ve=function(){try{ce=new ActiveXObject("htmlfile")}catch(r){}ve=typeof document!="undefined"?document.domain&&ce?Wr(ce):ss():Wr(ce);for(var e=Kr.length;e--;)delete ve[Xe][Kr[e]];return ve()};ns[on]=!0;var sn=Object.create||function(r,t){var n;return r!==null?(Ge[Xe]=rs(r),n=new Ge,Ge[Xe]=null,n[on]=r):n=ve(),t===void 0?n:ts.f(n,t)},cs=L,ls=!cs(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),us=N,fs=_,vs=Bt,ds=lr,hs=ls,Qr=ds("IE_PROTO"),Ze=Object,ps=Ze.prototype,cn=hs?Ze.getPrototypeOf:function(e){var r=vs(e);if(us(r,Qr))return r[Qr];var t=r.constructor;return fs(t)&&r instanceof t?t.prototype:r instanceof Ze?ps:null},bs=ee,ln=function(e,r,t,n){return n&&n.enumerable?e[r]=t:bs(e,r,t),e},ys=L,gs=_,ms=W,Os=sn,Hr=cn,ws=ln,$s=M,er=$s("iterator"),un=!1,x,ke,Ue;[].keys&&(Ue=[].keys(),"next"in Ue?(ke=Hr(Hr(Ue)),ke!==Object.prototype&&(x=ke)):un=!0);var Ss=!ms(x)||ys(function(){var e={};return x[er].call(e)!==e});Ss?x={}:x=Os(x);gs(x[er])||ws(x,er,function(){return this});var fn={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:un},Es=M,Ts=Es("toStringTag"),vn={};vn[Ts]="z";var vr=String(vn)==="[object z]",Is=vr,Rs=_,de=tr,Ps=M,_s=Ps("toStringTag"),As=Object,js=de(function(){return arguments}())=="Arguments",xs=function(e,r){try{return e[r]}catch(t){}},dr=Is?de:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=xs(r=As(e),_s))=="string"?t:js?de(r):(n=de(r))=="Object"&&Rs(r.callee)?"Arguments":n},Ls=vr,Ms=dr,Ns=Ls?{}.toString:function(){return"[object "+Ms(this)+"]"},Fs=vr,Cs=Q.f,Ds=ee,Gs=N,ks=Ns,Us=M,Xr=Us("toStringTag"),dn=function(e,r,t,n){if(e){var o=t?e:e.prototype;Gs(o,Xr)||Cs(o,Xr,{configurable:!0,value:r}),n&&!Fs&&Ds(o,"toString",ks)}},Bs=fn.IteratorPrototype,Vs=sn,qs=Oe,Ks=dn,Ys=z,zs=function(){return this},Ws=function(e,r,t,n){var o=r+" Iterator";return e.prototype=Vs(Bs,{next:qs(+!n,t)}),Ks(e,o,!1,!0),Ys[o]=zs,e},Qs=Jt,Hs=k,hn=$i,Xs=Ws,Js=cn,Zs=dn,Jr=ln,ec=M,Zr=z,pn=fn,rc=hn.PROPER;hn.CONFIGURABLE;pn.IteratorPrototype;var le=pn.BUGGY_SAFARI_ITERATORS,Be=ec("iterator"),et="keys",ue="values",rt="entries",tc=function(){return this},nc=function(e,r,t,n,o,a,i){Xs(t,r,n);var s=function(g){if(g===o&&v)return v;if(!le&&g in l)return l[g];switch(g){case et:return function(){return new t(this,g)};case ue:return function(){return new t(this,g)};case rt:return function(){return new t(this,g)}}return function(){return new t(this)}},u=r+" Iterator",c=!1,l=e.prototype,f=l[Be]||l["@@iterator"]||o&&l[o],v=!le&&f||s(o),d=r=="Array"&&l.entries||f,b,y,w;if(d&&(b=Js(d.call(new e)),b!==Object.prototype&&b.next&&(Zs(b,u,!0,!0),Zr[u]=tc)),rc&&o==ue&&f&&f.name!==ue&&(c=!0,v=function(){return Hs(f,this)}),o)if(y={values:s(ue),keys:a?v:s(et),entries:s(rt)},i)for(w in y)(le||c||!(w in l))&&Jr(l,w,y[w]);else Qs({target:r,proto:!0,forced:le||c},y);return i&&l[Be]!==v&&Jr(l,Be,v,{name:o}),Zr[r]=v,y},oc=function(e,r){return{value:e,done:r}},ac=Z,tt=z,bn=ka;Q.f;var ic=nc,fe=oc,yn="Array Iterator",sc=bn.set,cc=bn.getterFor(yn);ic(Array,"Array",function(e,r){sc(this,{type:yn,target:ac(e),index:0,kind:r})},function(){var e=cc(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,fe(void 0,!0)):t=="keys"?fe(n,!1):t=="values"?fe(r[n],!1):fe([n,r[n]],!1)},"values");tt.Arguments=tt.Array;var lc=M,uc=z,fc=lc("iterator"),vc=Array.prototype,dc=function(e){return e!==void 0&&(uc.Array===e||vc[fc]===e)},hc=dr,nt=sr,pc=nr,bc=z,yc=M,gc=yc("iterator"),gn=function(e){if(!pc(e))return nt(e,gc)||nt(e,"@@iterator")||bc[hc(e)]},mc=k,Oc=ir,wc=H,$c=ar,Sc=gn,Ec=TypeError,Tc=function(e,r){var t=arguments.length<2?Sc(e):r;if(Oc(t))return wc(mc(t,e));throw Ec($c(e)+" is not iterable")},Ic=k,ot=H,Rc=sr,Pc=function(e,r,t){var n,o;ot(e);try{if(n=Rc(e,"return"),!n){if(r==="throw")throw t;return t}n=Ic(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return ot(n),t},_c=Xt,Ac=k,jc=H,xc=ar,Lc=dc,Mc=tn,at=Mt,Nc=Tc,Fc=gn,it=Pc,Cc=TypeError,he=function(e,r){this.stopped=e,this.result=r},st=he.prototype,Dc=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),i=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=_c(r,n),c,l,f,v,d,b,y,w=function(m){return c&&it(c,"normal",m),new he(!0,m)},g=function(m){return o?(jc(m),s?u(m[0],m[1],w):u(m[0],m[1])):s?u(m,w):u(m)};if(a)c=e.iterator;else if(i)c=e;else{if(l=Fc(e),!l)throw Cc(xc(e)+" is not iterable");if(Lc(l)){for(f=0,v=Mc(e);v>f;f++)if(d=g(e[f]),d&&at(st,d))return d;return new he(!1)}c=Nc(e,l)}for(b=a?e.next:c.next;!(y=Ac(b,c)).done;){try{d=g(y.value)}catch(m){it(c,"throw",m)}if(typeof d=="object"&&d&&at(st,d))return d}return new he(!1)},Gc=cr,kc=Q,Uc=Oe,Bc=function(e,r,t){var n=Gc(r);n in e?kc.f(e,n,Uc(0,t)):e[n]=t},Vc=Jt,qc=Dc,Kc=Bc;Vc({target:"Object",stat:!0},{fromEntries:function(r){var t={};return qc(r,function(n,o){Kc(t,n,o)},{AS_ENTRIES:!0}),t}});var Yc=or,zc=Yc.Object.fromEntries,Wc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qc=Wc,Hc=P,Xc=dr,Jc=ee,ct=z,Zc=M,lt=Zc("toStringTag");for(var Ve in Qc){var ut=Hc[Ve],qe=ut&&ut.prototype;qe&&Xc(qe)!==lt&&Jc(qe,lt,Ve),ct[Ve]=ct.Array}var el=zc,rl=el,tl=rl,nl=tl,ol=zn(nl),ft;(function(e){e.Armenian="58",e.Azerbaijani="57",e.Belarusian="114",e.English="3",e.Kazakh="97",e.Portuguese="73",e.Russian="0",e.Spanish="4",e.Ukrainian="1",e.Uzbek="65",e.Vietnamese="75"})(ft||(ft={}));const al="vk.com",eu=(e,r,t)=>ht(void 0,void 0,void 0,function*(){const n=new URL(`https://${al}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);const a=yield(yield Yn(n.toString())).json();return il(a,t)}),il=(e,r)=>ol(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),sl(n)])),sl=e=>Array.isArray(e)?e[0]:e;var vt;(function(e){e.RU="ru",e.EN="en"})(vt||(vt={}));export{j as CurrentClientBrowser,$ as CurrentClientDevice,gr as ErrorCategory,vt as InterfaceLanguage,ul as Logger,O as Observable,dt as Subject,ge as Subscription,cl as VERSION,ft as VKNumericLanguage,Cl as ValueSubject,E as VideoQuality,yl as abortable,pl as addScript,xl as areQualitiesExact,hl as assertEmptyArray,K as assertNever,fl as assertNonNullable,dl as assertNotEmptyArray,vl as assertNullable,Ll as assertQualityIsExact,ql as buffer,ll as checkNever,Nl as cloneDeep,mt as cloneDeepWith,Dl as combine,Kl as debounce,An as debounceFn,El as detectEmbed,_n as fillWithDefault,zl as filter,Wl as filterChanged,Vl as fromEvent,pt as getCurrentBrowser,$l as getExponentialDelay,Pl as getHighestQuality,ml as getIOSVersion,Ul as interval,Tl as isHigher,Il as isHigherOrEqual,gl as isIOS,gt as isInvariantQuality,bt as isLower,Rl as isLowerOrEqual,Ol as isMacLike,wl as isMobile,Ke as isNonNullable,$n as isNullable,eu as loadVKLangPack,kn as map,Hl as mapTo,Gl as merge,X as noop,bl as now,Bl as observableFrom,Fl as observeElementSize,Xl as once,Jl as pairwise,Sl as safeStorage,Zl as tap,Yl as throttle,jn as throttleFn,Ml as timeCodeToString,kl as timeout,_l as videoHeightToQuality,jl as videoQualityToHeight,Al as videoSizeToQuality};
6
+ var ja=Object.create;var be=Object.defineProperty,Ma=Object.defineProperties,ka=Object.getOwnPropertyDescriptor,Da=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertyNames,It=Object.getOwnPropertySymbols,Fa=Object.getPrototypeOf,Ot=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable;var xt=Math.pow,gt=(e,r,t)=>r in e?be(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))Ot.call(r,t)&&gt(e,t,r[t]);if(It)for(var t of It(r))Ua.call(r,t)&&gt(e,t,r[t]);return e},de=(e,r)=>Ma(e,Da(r));var i=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ga=(e,r)=>{for(var t in r)be(e,t,{get:r[t],enumerable:!0})},Qa=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Va(r))!Ot.call(e,o)&&o!==t&&be(e,o,{get:()=>r[o],enumerable:!(n=ka(r,o))||n.enumerable});return e};var Ba=(e,r,t)=>(t=e!=null?ja(Fa(e)):{},Qa(r||!e||!e.__esModule?be(t,"default",{value:e,enumerable:!0}):t,e));var Te=(e,r,t)=>new Promise((n,o)=>{var a=c=>{try{s(t.next(c))}catch(l){o(l)}},u=c=>{try{s(t.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,u);s((t=t.apply(e,r)).next())});var A=i((ld,Gt)=>{"use strict";Gt.exports=function(e){try{return!!e()}catch(r){return!0}}});var oe=i((cd,Qt)=>{"use strict";var Ls=A();Qt.exports=!Ls(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var C=i((fd,Wt)=>{"use strict";var Bt=oe(),$t=Function.prototype,vr=$t.call,Cs=Bt&&$t.bind.bind(vr,vr);Wt.exports=Bt?Cs:function(e){return function(){return vr.apply(e,arguments)}}});var Oe=i((pd,Kt)=>{"use strict";var zt=C(),Ns=zt({}.toString),js=zt("".slice);Kt.exports=function(e){return js(Ns(e),8,-1)}});var Ht=i((vd,Yt)=>{"use strict";var Ms=C(),ks=A(),Ds=Oe(),br=Object,Vs=Ms("".split);Yt.exports=ks(function(){return!br("z").propertyIsEnumerable(0)})?function(e){return Ds(e)=="String"?Vs(e,""):br(e)}:br});var xe=i((bd,Xt)=>{"use strict";Xt.exports=function(e){return e==null}});var dr=i((dd,Jt)=>{"use strict";var Fs=xe(),Us=TypeError;Jt.exports=function(e){if(Fs(e))throw Us("Can't call method on "+e);return e}});var X=i((Td,Zt)=>{"use strict";var Gs=Ht(),Qs=dr();Zt.exports=function(e){return Gs(Qs(e))}});var rn=i((md,en)=>{"use strict";en.exports=function(){}});var Q=i((yd,tn)=>{"use strict";tn.exports={}});var S=i((nn,on)=>{"use strict";var Ee=function(e){return e&&e.Math==Math&&e};on.exports=Ee(typeof globalThis=="object"&&globalThis)||Ee(typeof window=="object"&&window)||Ee(typeof self=="object"&&self)||Ee(typeof global=="object"&&global)||function(){return this}()||nn||Function("return this")()});var mr=i((hd,an)=>{"use strict";var Tr=typeof document=="object"&&document.all,Bs=typeof Tr=="undefined"&&Tr!==void 0;an.exports={all:Tr,IS_HTMLDDA:Bs}});var x=i((Id,un)=>{"use strict";var sn=mr(),$s=sn.all;un.exports=sn.IS_HTMLDDA?function(e){return typeof e=="function"||e===$s}:function(e){return typeof e=="function"}});var fn=i((gd,cn)=>{"use strict";var Ws=S(),zs=x(),ln=Ws.WeakMap;cn.exports=zs(ln)&&/native code/.test(String(ln))});var B=i((Od,bn)=>{"use strict";var pn=x(),vn=mr(),Ks=vn.all;bn.exports=vn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:pn(e)||e===Ks}:function(e){return typeof e=="object"?e!==null:pn(e)}});var N=i((xd,dn)=>{"use strict";var Ys=A();dn.exports=!Ys(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var hr=i((Ed,mn)=>{"use strict";var Hs=S(),Tn=B(),yr=Hs.document,Xs=Tn(yr)&&Tn(yr.createElement);mn.exports=function(e){return Xs?yr.createElement(e):{}}});var Ir=i((wd,yn)=>{"use strict";var Js=N(),Zs=A(),eu=hr();yn.exports=!Js&&!Zs(function(){return Object.defineProperty(eu("div"),"a",{get:function(){return 7}}).a!=7})});var gr=i((Sd,hn)=>{"use strict";var ru=N(),tu=A();hn.exports=ru&&tu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var D=i((qd,In)=>{"use strict";var nu=B(),ou=String,iu=TypeError;In.exports=function(e){if(nu(e))return e;throw iu(ou(e)+" is not an object")}});var V=i((Rd,gn)=>{"use strict";var au=oe(),we=Function.prototype.call;gn.exports=au?we.bind(we):function(){return we.apply(we,arguments)}});var Se=i((Pd,On)=>{"use strict";On.exports={}});var Er=i((Ad,En)=>{"use strict";var Or=Se(),xr=S(),su=x(),xn=function(e){return su(e)?e:void 0};En.exports=function(e,r){return arguments.length<2?xn(Or[e])||xn(xr[e]):Or[e]&&Or[e][r]||xr[e]&&xr[e][r]}});var wr=i((_d,wn)=>{"use strict";var uu=C();wn.exports=uu({}.isPrototypeOf)});var qn=i((Ld,Sn)=>{"use strict";Sn.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var Nn=i((Cd,Cn)=>{"use strict";var Ln=S(),Sr=qn(),Rn=Ln.process,Pn=Ln.Deno,An=Rn&&Rn.versions||Pn&&Pn.version,_n=An&&An.v8,R,qe;_n&&(R=_n.split("."),qe=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!qe&&Sr&&(R=Sr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Sr.match(/Chrome\/(\d+)/),R&&(qe=+R[1])));Cn.exports=qe});var qr=i((Nd,Mn)=>{"use strict";var jn=Nn(),lu=A(),cu=S(),fu=cu.String;Mn.exports=!!Object.getOwnPropertySymbols&&!lu(function(){var e=Symbol();return!fu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jn&&jn<41})});var Rr=i((jd,kn)=>{"use strict";var pu=qr();kn.exports=pu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Pr=i((Md,Dn)=>{"use strict";var vu=Er(),bu=x(),du=wr(),Tu=Rr(),mu=Object;Dn.exports=Tu?function(e){return typeof e=="symbol"}:function(e){var r=vu("Symbol");return bu(r)&&du(r.prototype,mu(e))}});var Re=i((kd,Vn)=>{"use strict";var yu=String;Vn.exports=function(e){try{return yu(e)}catch(r){return"Object"}}});var ie=i((Dd,Fn)=>{"use strict";var hu=x(),Iu=Re(),gu=TypeError;Fn.exports=function(e){if(hu(e))return e;throw gu(Iu(e)+" is not a function")}});var Pe=i((Vd,Un)=>{"use strict";var Ou=ie(),xu=xe();Un.exports=function(e,r){var t=e[r];return xu(t)?void 0:Ou(t)}});var Qn=i((Fd,Gn)=>{"use strict";var Ar=V(),_r=x(),Lr=B(),Eu=TypeError;Gn.exports=function(e,r){var t,n;if(r==="string"&&_r(t=e.toString)&&!Lr(n=Ar(t,e))||_r(t=e.valueOf)&&!Lr(n=Ar(t,e))||r!=="string"&&_r(t=e.toString)&&!Lr(n=Ar(t,e)))return n;throw Eu("Can't convert object to primitive value")}});var ae=i((Ud,Bn)=>{"use strict";Bn.exports=!0});var zn=i((Gd,Wn)=>{"use strict";var $n=S(),wu=Object.defineProperty;Wn.exports=function(e,r){try{wu($n,e,{value:r,configurable:!0,writable:!0})}catch(t){$n[e]=r}return r}});var Cr=i((Qd,Yn)=>{"use strict";var Su=S(),qu=zn(),Kn="__core-js_shared__",Ru=Su[Kn]||qu(Kn,{});Yn.exports=Ru});var Nr=i((Bd,Xn)=>{"use strict";var Pu=ae(),Hn=Cr();(Xn.exports=function(e,r){return Hn[e]||(Hn[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:Pu?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var jr=i(($d,Jn)=>{"use strict";var Au=dr(),_u=Object;Jn.exports=function(e){return _u(Au(e))}});var j=i((Wd,Zn)=>{"use strict";var Lu=C(),Cu=jr(),Nu=Lu({}.hasOwnProperty);Zn.exports=Object.hasOwn||function(r,t){return Nu(Cu(r),t)}});var Mr=i((zd,eo)=>{"use strict";var ju=C(),Mu=0,ku=Math.random(),Du=ju(1 .toString);eo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Du(++Mu+ku,36)}});var _=i((Kd,to)=>{"use strict";var Vu=S(),Fu=Nr(),ro=j(),Uu=Mr(),Gu=qr(),Qu=Rr(),J=Vu.Symbol,kr=Fu("wks"),Bu=Qu?J.for||J:J&&J.withoutSetter||Uu;to.exports=function(e){return ro(kr,e)||(kr[e]=Gu&&ro(J,e)?J[e]:Bu("Symbol."+e)),kr[e]}});var ao=i((Yd,io)=>{"use strict";var $u=V(),no=B(),oo=Pr(),Wu=Pe(),zu=Qn(),Ku=_(),Yu=TypeError,Hu=Ku("toPrimitive");io.exports=function(e,r){if(!no(e)||oo(e))return e;var t=Wu(e,Hu),n;if(t){if(r===void 0&&(r="default"),n=$u(t,e,r),!no(n)||oo(n))return n;throw Yu("Can't convert object to primitive value")}return r===void 0&&(r="number"),zu(e,r)}});var Ae=i((Hd,so)=>{"use strict";var Xu=ao(),Ju=Pr();so.exports=function(e){var r=Xu(e,"string");return Ju(r)?r:r+""}});var Z=i(lo=>{"use strict";var Zu=N(),el=Ir(),rl=gr(),_e=D(),uo=Ae(),tl=TypeError,Dr=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,Vr="enumerable",Fr="configurable",Ur="writable";lo.f=Zu?rl?function(r,t,n){if(_e(r),t=uo(t),_e(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Ur in n&&!n[Ur]){var o=nl(r,t);o&&o[Ur]&&(r[t]=n.value,n={configurable:Fr in n?n[Fr]:o[Fr],enumerable:Vr in n?n[Vr]:o[Vr],writable:!1})}return Dr(r,t,n)}:Dr:function(r,t,n){if(_e(r),t=uo(t),_e(n),el)try{return Dr(r,t,n)}catch(o){}if("get"in n||"set"in n)throw tl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var se=i((Jd,co)=>{"use strict";co.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var $=i((Zd,fo)=>{"use strict";var ol=N(),il=Z(),al=se();fo.exports=ol?function(e,r,t){return il.f(e,r,al(1,t))}:function(e,r,t){return e[r]=t,e}});var Le=i((eT,vo)=>{"use strict";var sl=Nr(),ul=Mr(),po=sl("keys");vo.exports=function(e){return po[e]||(po[e]=ul(e))}});var Ce=i((rT,bo)=>{"use strict";bo.exports={}});var ho=i((tT,yo)=>{"use strict";var ll=fn(),mo=S(),cl=B(),fl=$(),Gr=j(),Qr=Cr(),pl=Le(),vl=Ce(),To="Object already initialized",Br=mo.TypeError,bl=mo.WeakMap,Ne,ue,je,dl=function(e){return je(e)?ue(e):Ne(e,{})},Tl=function(e){return function(r){var t;if(!cl(r)||(t=ue(r)).type!==e)throw Br("Incompatible receiver, "+e+" required");return t}};ll||Qr.state?(P=Qr.state||(Qr.state=new bl),P.get=P.get,P.has=P.has,P.set=P.set,Ne=function(e,r){if(P.has(e))throw Br(To);return r.facade=e,P.set(e,r),r},ue=function(e){return P.get(e)||{}},je=function(e){return P.has(e)}):(W=pl("state"),vl[W]=!0,Ne=function(e,r){if(Gr(e,W))throw Br(To);return r.facade=e,fl(e,W,r),r},ue=function(e){return Gr(e,W)?e[W]:{}},je=function(e){return Gr(e,W)});var P,W;yo.exports={set:Ne,get:ue,has:je,enforce:dl,getterFor:Tl}});var Eo=i((nT,xo)=>{"use strict";var ml=oe(),Oo=Function.prototype,Io=Oo.apply,go=Oo.call;xo.exports=typeof Reflect=="object"&&Reflect.apply||(ml?go.bind(Io):function(){return go.apply(Io,arguments)})});var $r=i((oT,wo)=>{"use strict";var yl=Oe(),hl=C();wo.exports=function(e){if(yl(e)==="Function")return hl(e)}});var Po=i(Ro=>{"use strict";var So={}.propertyIsEnumerable,qo=Object.getOwnPropertyDescriptor,Il=qo&&!So.call({1:2},1);Ro.f=Il?function(r){var t=qo(this,r);return!!t&&t.enumerable}:So});var Lo=i(_o=>{"use strict";var gl=N(),Ol=V(),xl=Po(),El=se(),wl=X(),Sl=Ae(),ql=j(),Rl=Ir(),Ao=Object.getOwnPropertyDescriptor;_o.f=gl?Ao:function(r,t){if(r=wl(r),t=Sl(t),Rl)try{return Ao(r,t)}catch(n){}if(ql(r,t))return El(!Ol(xl.f,r,t),r[t])}});var No=i((sT,Co)=>{"use strict";var Pl=A(),Al=x(),_l=/#|\.prototype\./,le=function(e,r){var t=Cl[Ll(e)];return t==jl?!0:t==Nl?!1:Al(r)?Pl(r):!!r},Ll=le.normalize=function(e){return String(e).replace(_l,".").toLowerCase()},Cl=le.data={},Nl=le.NATIVE="N",jl=le.POLYFILL="P";Co.exports=le});var Wr=i((uT,Mo)=>{"use strict";var jo=$r(),Ml=ie(),kl=oe(),Dl=jo(jo.bind);Mo.exports=function(e,r){return Ml(e),r===void 0?e:kl?Dl(e,r):function(){return e.apply(r,arguments)}}});var zr=i((lT,Do)=>{"use strict";var Me=S(),Vl=Eo(),Fl=$r(),Ul=x(),Gl=Lo().f,Ql=No(),ee=Se(),Bl=Wr(),re=$(),ko=j(),$l=function(e){var r=function(t,n,o){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return Vl(e,this,arguments)};return r.prototype=e.prototype,r};Do.exports=function(e,r){var t=e.target,n=e.global,o=e.stat,a=e.proto,u=n?Me:o?Me[t]:(Me[t]||{}).prototype,s=n?ee:ee[t]||re(ee,t,{})[t],c=s.prototype,l,f,p,b,d,m,y,g,h;for(b in r)l=Ql(n?b:t+(o?".":"#")+b,e.forced),f=!l&&u&&ko(u,b),m=s[b],f&&(e.dontCallGetSet?(h=Gl(u,b),y=h&&h.value):y=u[b]),d=f&&y?y:r[b],!(f&&typeof m==typeof d)&&(e.bind&&f?g=Bl(d,Me):e.wrap&&f?g=$l(d):a&&Ul(d)?g=Fl(d):g=d,(e.sham||d&&d.sham||m&&m.sham)&&re(g,"sham",!0),re(s,b,g),a&&(p=t+"Prototype",ko(ee,p)||re(ee,p,{}),re(ee[p],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var Uo=i((cT,Fo)=>{"use strict";var Kr=N(),Wl=j(),Vo=Function.prototype,zl=Kr&&Object.getOwnPropertyDescriptor,Yr=Wl(Vo,"name"),Kl=Yr&&function(){}.name==="something",Yl=Yr&&(!Kr||Kr&&zl(Vo,"name").configurable);Fo.exports={EXISTS:Yr,PROPER:Kl,CONFIGURABLE:Yl}});var Qo=i((fT,Go)=>{"use strict";var Hl=Math.ceil,Xl=Math.floor;Go.exports=Math.trunc||function(r){var t=+r;return(t>0?Xl:Hl)(t)}});var Hr=i((pT,Bo)=>{"use strict";var Jl=Qo();Bo.exports=function(e){var r=+e;return r!==r||r===0?0:Jl(r)}});var Wo=i((vT,$o)=>{"use strict";var Zl=Hr(),ec=Math.max,rc=Math.min;$o.exports=function(e,r){var t=Zl(e);return t<0?ec(t+r,0):rc(t,r)}});var Ko=i((bT,zo)=>{"use strict";var tc=Hr(),nc=Math.min;zo.exports=function(e){return e>0?nc(tc(e),9007199254740991):0}});var Xr=i((dT,Yo)=>{"use strict";var oc=Ko();Yo.exports=function(e){return oc(e.length)}});var Jo=i((TT,Xo)=>{"use strict";var ic=X(),ac=Wo(),sc=Xr(),Ho=function(e){return function(r,t,n){var o=ic(r),a=sc(o),u=ac(n,a),s;if(e&&t!=t){for(;a>u;)if(s=o[u++],s!=s)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===t)return e||u||0;return!e&&-1}};Xo.exports={includes:Ho(!0),indexOf:Ho(!1)}});var ri=i((mT,ei)=>{"use strict";var uc=C(),Jr=j(),lc=X(),cc=Jo().indexOf,fc=Ce(),Zo=uc([].push);ei.exports=function(e,r){var t=lc(e),n=0,o=[],a;for(a in t)!Jr(fc,a)&&Jr(t,a)&&Zo(o,a);for(;r.length>n;)Jr(t,a=r[n++])&&(~cc(o,a)||Zo(o,a));return o}});var Zr=i((yT,ti)=>{"use strict";ti.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var oi=i((hT,ni)=>{"use strict";var pc=ri(),vc=Zr();ni.exports=Object.keys||function(r){return pc(r,vc)}});var ai=i(ii=>{"use strict";var bc=N(),dc=gr(),Tc=Z(),mc=D(),yc=X(),hc=oi();ii.f=bc&&!dc?Object.defineProperties:function(r,t){mc(r);for(var n=yc(t),o=hc(t),a=o.length,u=0,s;a>u;)Tc.f(r,s=o[u++],n[s]);return r}});var ui=i((gT,si)=>{"use strict";var Ic=Er();si.exports=Ic("document","documentElement")});var nt=i((OT,di)=>{"use strict";var gc=D(),Oc=ai(),li=Zr(),xc=Ce(),Ec=ui(),wc=hr(),Sc=Le(),ci=">",fi="<",rt="prototype",tt="script",vi=Sc("IE_PROTO"),et=function(){},bi=function(e){return fi+tt+ci+e+fi+"/"+tt+ci},pi=function(e){e.write(bi("")),e.close();var r=e.parentWindow.Object;return e=null,r},qc=function(){var e=wc("iframe"),r="java"+tt+":",t;return e.style.display="none",Ec.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(bi("document.F=Object")),t.close(),t.F},ke,De=function(){try{ke=new ActiveXObject("htmlfile")}catch(r){}De=typeof document!="undefined"?document.domain&&ke?pi(ke):qc():pi(ke);for(var e=li.length;e--;)delete De[rt][li[e]];return De()};xc[vi]=!0;di.exports=Object.create||function(r,t){var n;return r!==null?(et[rt]=gc(r),n=new et,et[rt]=null,n[vi]=r):n=De(),t===void 0?n:Oc.f(n,t)}});var mi=i((xT,Ti)=>{"use strict";var Rc=A();Ti.exports=!Rc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=i((ET,hi)=>{"use strict";var Pc=j(),Ac=x(),_c=jr(),Lc=Le(),Cc=mi(),yi=Lc("IE_PROTO"),ot=Object,Nc=ot.prototype;hi.exports=Cc?ot.getPrototypeOf:function(e){var r=_c(e);if(Pc(r,yi))return r[yi];var t=r.constructor;return Ac(t)&&r instanceof t?t.prototype:r instanceof ot?Nc:null}});var at=i((wT,Ii)=>{"use strict";var jc=$();Ii.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:jc(e,r,t),e}});var ct=i((ST,xi)=>{"use strict";var Mc=A(),kc=x(),Dc=B(),Vc=nt(),gi=it(),Fc=at(),Uc=_(),Gc=ae(),lt=Uc("iterator"),Oi=!1,M,st,ut;[].keys&&(ut=[].keys(),"next"in ut?(st=gi(gi(ut)),st!==Object.prototype&&(M=st)):Oi=!0);var Qc=!Dc(M)||Mc(function(){var e={};return M[lt].call(e)!==e});Qc?M={}:Gc&&(M=Vc(M));kc(M[lt])||Fc(M,lt,function(){return this});xi.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Oi}});var Ve=i((qT,wi)=>{"use strict";var Bc=_(),$c=Bc("toStringTag"),Ei={};Ei[$c]="z";wi.exports=String(Ei)==="[object z]"});var Ue=i((RT,Si)=>{"use strict";var Wc=Ve(),zc=x(),Fe=Oe(),Kc=_(),Yc=Kc("toStringTag"),Hc=Object,Xc=Fe(function(){return arguments}())=="Arguments",Jc=function(e,r){try{return e[r]}catch(t){}};Si.exports=Wc?Fe:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Jc(r=Hc(e),Yc))=="string"?t:Xc?Fe(r):(n=Fe(r))=="Object"&&zc(r.callee)?"Arguments":n}});var Ri=i((PT,qi)=>{"use strict";var Zc=Ve(),ef=Ue();qi.exports=Zc?{}.toString:function(){return"[object "+ef(this)+"]"}});var ft=i((AT,Ai)=>{"use strict";var rf=Ve(),tf=Z().f,nf=$(),of=j(),af=Ri(),sf=_(),Pi=sf("toStringTag");Ai.exports=function(e,r,t,n){if(e){var o=t?e:e.prototype;of(o,Pi)||tf(o,Pi,{configurable:!0,value:r}),n&&!rf&&nf(o,"toString",af)}}});var Li=i((_T,_i)=>{"use strict";var uf=ct().IteratorPrototype,lf=nt(),cf=se(),ff=ft(),pf=Q(),vf=function(){return this};_i.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=lf(uf,{next:cf(+!n,t)}),ff(e,o,!1,!0),pf[o]=vf,e}});var Ni=i((LT,Ci)=>{"use strict";var bf=C(),df=ie();Ci.exports=function(e,r,t){try{return bf(df(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Mi=i((CT,ji)=>{"use strict";var Tf=x(),mf=String,yf=TypeError;ji.exports=function(e){if(typeof e=="object"||Tf(e))return e;throw yf("Can't set "+mf(e)+" as a prototype")}});var Di=i((NT,ki)=>{"use strict";var hf=Ni(),If=D(),gf=Mi();ki.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=hf(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,a){return If(o),gf(a),e?t(o,a):o.__proto__=a,o}}():void 0)});var Yi=i((jT,Ki)=>{"use strict";var Of=zr(),xf=V(),Ge=ae(),Wi=Uo(),Ef=x(),wf=Li(),Vi=it(),Fi=Di(),Sf=ft(),qf=$(),pt=at(),Rf=_(),Ui=Q(),zi=ct(),Pf=Wi.PROPER,Af=Wi.CONFIGURABLE,Gi=zi.IteratorPrototype,Qe=zi.BUGGY_SAFARI_ITERATORS,ce=Rf("iterator"),Qi="keys",fe="values",Bi="entries",$i=function(){return this};Ki.exports=function(e,r,t,n,o,a,u){wf(t,r,n);var s=function(h){if(h===o&&b)return b;if(!Qe&&h in f)return f[h];switch(h){case Qi:return function(){return new t(this,h)};case fe:return function(){return new t(this,h)};case Bi:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,f=e.prototype,p=f[ce]||f["@@iterator"]||o&&f[o],b=!Qe&&p||s(o),d=r=="Array"&&f.entries||p,m,y,g;if(d&&(m=Vi(d.call(new e)),m!==Object.prototype&&m.next&&(!Ge&&Vi(m)!==Gi&&(Fi?Fi(m,Gi):Ef(m[ce])||pt(m,ce,$i)),Sf(m,c,!0,!0),Ge&&(Ui[c]=$i))),Pf&&o==fe&&p&&p.name!==fe&&(!Ge&&Af?qf(f,"name",fe):(l=!0,b=function(){return xf(p,this)})),o)if(y={values:s(fe),keys:a?b:s(Qi),entries:s(Bi)},u)for(g in y)(Qe||l||!(g in f))&&pt(f,g,y[g]);else Of({target:r,proto:!0,forced:Qe||l},y);return(!Ge||u)&&f[ce]!==b&&pt(f,ce,b,{name:o}),Ui[r]=b,y}});var Xi=i((MT,Hi)=>{"use strict";Hi.exports=function(e,r){return{value:e,done:r}}});var bt=i((kT,ta)=>{"use strict";var _f=X(),vt=rn(),Ji=Q(),ea=ho(),Lf=Z().f,Cf=Yi(),Be=Xi(),Nf=ae(),jf=N(),ra="Array Iterator",Mf=ea.set,kf=ea.getterFor(ra);ta.exports=Cf(Array,"Array",function(e,r){Mf(this,{type:ra,target:_f(e),index:0,kind:r})},function(){var e=kf(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,Be(void 0,!0)):t=="keys"?Be(n,!1):t=="values"?Be(r[n],!1):Be([n,r[n]],!1)},"values");var Zi=Ji.Arguments=Ji.Array;vt("keys");vt("values");vt("entries");if(!Nf&&jf&&Zi.name!=="values")try{Lf(Zi,"name",{value:"values"})}catch(e){}});var oa=i((DT,na)=>{"use strict";var Df=_(),Vf=Q(),Ff=Df("iterator"),Uf=Array.prototype;na.exports=function(e){return e!==void 0&&(Vf.Array===e||Uf[Ff]===e)}});var dt=i((VT,aa)=>{"use strict";var Gf=Ue(),ia=Pe(),Qf=xe(),Bf=Q(),$f=_(),Wf=$f("iterator");aa.exports=function(e){if(!Qf(e))return ia(e,Wf)||ia(e,"@@iterator")||Bf[Gf(e)]}});var ua=i((FT,sa)=>{"use strict";var zf=V(),Kf=ie(),Yf=D(),Hf=Re(),Xf=dt(),Jf=TypeError;sa.exports=function(e,r){var t=arguments.length<2?Xf(e):r;if(Kf(t))return Yf(zf(t,e));throw Jf(Hf(e)+" is not iterable")}});var fa=i((UT,ca)=>{"use strict";var Zf=V(),la=D(),ep=Pe();ca.exports=function(e,r,t){var n,o;la(e);try{if(n=ep(e,"return"),!n){if(r==="throw")throw t;return t}n=Zf(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return la(n),t}});var Ta=i((GT,da)=>{"use strict";var rp=Wr(),tp=V(),np=D(),op=Re(),ip=oa(),ap=Xr(),pa=wr(),sp=ua(),up=dt(),va=fa(),lp=TypeError,$e=function(e,r){this.stopped=e,this.result=r},ba=$e.prototype;da.exports=function(e,r,t){var n=t&&t.that,o=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),u=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),c=rp(r,n),l,f,p,b,d,m,y,g=function(I){return l&&va(l,"normal",I),new $e(!0,I)},h=function(I){return o?(np(I),s?c(I[0],I[1],g):c(I[0],I[1])):s?c(I,g):c(I)};if(a)l=e.iterator;else if(u)l=e;else{if(f=up(e),!f)throw lp(op(e)+" is not iterable");if(ip(f)){for(p=0,b=ap(e);b>p;p++)if(d=h(e[p]),d&&pa(ba,d))return d;return new $e(!1)}l=sp(e,f)}for(m=a?e.next:l.next;!(y=tp(m,l)).done;){try{d=h(y.value)}catch(I){va(l,"throw",I)}if(typeof d=="object"&&d&&pa(ba,d))return d}return new $e(!1)}});var ya=i((QT,ma)=>{"use strict";var cp=Ae(),fp=Z(),pp=se();ma.exports=function(e,r,t){var n=cp(r);n in e?fp.f(e,n,pp(0,t)):e[n]=t}});var ha=i(()=>{"use strict";var vp=zr(),bp=Ta(),dp=ya();vp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return bp(r,function(n,o){dp(t,n,o)},{AS_ENTRIES:!0}),t}})});var ga=i((WT,Ia)=>{"use strict";bt();ha();var Tp=Se();Ia.exports=Tp.Object.fromEntries});var xa=i((zT,Oa)=>{"use strict";Oa.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Sa=i(()=>{"use strict";bt();var mp=xa(),yp=S(),hp=Ue(),Ip=$(),Ea=Q(),gp=_(),wa=gp("toStringTag");for(We in mp)Tt=yp[We],ze=Tt&&Tt.prototype,ze&&hp(ze)!==wa&&Ip(ze,wa,We),Ea[We]=Ea.Array;var Tt,ze,We});var Ra=i((HT,qa)=>{"use strict";var Op=ga();Sa();qa.exports=Op});var Aa=i((XT,Pa)=>{"use strict";var xp=Ra();Pa.exports=xp});var $a="__VERSION__";var E=class{constructor(){this.subscriptions=[]}unsubscribe(){let r=this.subscriptions;this.subscriptions=[],r.forEach(t=>typeof t=="function"?t():t.unsubscribe())}add(r){return this.subscriptions.push(r),this}};var L=e=>{throw new Error(`${e} is value of unexpected type`)},Wa=e=>{};var U=()=>{};var v=class{constructor(r){r&&(this._subscribe=r)}subscribe(r,t){var u;let n;t?typeof t=="function"?n={next:t,error:U}:n={next:s=>t.next(s),error:s=>{var c;return(c=t.error)==null?void 0:c.call(t,s)}}:n={next:U,error:U};let o=typeof r=="function"?{next:s=>{try{r(s)}catch(c){n.next(c)}},error:s=>n.next(s)}:{next:s=>r.next(s),error:s=>r.error?r.error(s):n.next(s)},a;try{a=this._subscribe(o)}catch(s){(u=o.error)==null||u.call(o,s)}return new E().add(()=>{switch(o.next=U,o.error=U,typeof a){case"function":a();return;case"object":a.unsubscribe();return;case"undefined":return;default:return L(a)}})}pipe(...r){return r.reduce((t,n)=>n(t),this)}_subscribe(r){}};var k=class extends v{constructor(){super();this.keyCounter=0;this.subscribers=new Map}next(t){this.subscribers.forEach(n=>n.next(t))}error(t){this.subscribers.forEach(n=>{var o;return(o=n.error)==null?void 0:o.call(n,t)})}_subscribe(t){let n=this.keyCounter++;return this.subscribers.set(n,t),new E().add(()=>this.subscribers.delete(n))}};var Ke=class{constructor(){this.log$=new k;this.logs=[];this.log=r=>{let t=de(z({},r),{timestamp:Date.now()});this.logs.push(t),this.log$.next(t)};this.getAllLogs=()=>this.logs}createCustomLog(r){return(...t)=>{let n;try{n=r(...t)}catch(o){n={message:"error in `createCustomLog`",component:"Logger"}}this.log(n)}}createComponentLog(r){return this.createCustomLog(t=>z({component:r},t))}};function za(e,r='Assertion "value is not nullable" failed'){if(e==null)throw new Error(r)}function Ka(e,r='Assertion "value is nullable" failed'){if(e!=null)throw new Error(r)}function K(e){return typeof e!="undefined"&&e!==null}function Ye(e){return e==null}function Ya(e,r){if(!(e!=null&&e.length))throw new Error(r)}function Ha(e,r){if(e!=null&&e.length)throw new Error(r)}var Xa=(e,r,t)=>new Promise((n,o)=>{r.addEventListener("abort",()=>{s(),l.remove()});let a=()=>{s(),o()},u=()=>{s(),n()},s=()=>{c&&clearTimeout(c),l.removeEventListener("load",u),l.removeEventListener("error",a)},c;t&&(c=window.setTimeout(a,t));let l=document.createElement("script");l.addEventListener("load",u),l.addEventListener("error",a),l.src=e,document.head.appendChild(l)});var Et,Ja=typeof((Et=window.performance)==null?void 0:Et.now)=="function"?()=>window.performance.now():()=>Date.now();var Za=(e,r)=>(...t)=>Te(void 0,null,function*(){var u;let n=r(...t),o=e.aborted,a;for(;!o&&!e.aborted;)try{let s=yield n.next(a);o=(u=s.done)!=null?u:!1,a=s.value}catch(s){yield n.throw(s)}return a});var wt=(l=>(l.Unknown="Unknown",l.Yandex="Yandex",l.Chrome="Chrome",l.Chromium="Chromium",l.Firefox="Firefox",l.Safari="Safari",l.Opera="Opera",l.Edge="Edge",l.Rest="Rest",l))(wt||{}),St=(c=>(c.Unknown="Unknown",c.Android="Android",c.iPhone="iPhone",c.iPad="iPad",c.iPod="iPod",c.RestMobile="RestMobile",c.Mac="Mac",c.Desktop="Desktop",c))(St||{}),He=()=>{let{userAgent:e}=window.navigator,r=/yabrowser/i.test(e)?"Yandex":void 0,t=/chrome|crios/i.test(e)?"Chrome":void 0,n=/chromium/i.test(e)?"Chromium":void 0,o=/firefox|fxios/i.test(e)?"Firefox":void 0,a=/webkit|safari|khtml/i.test(e)?"Safari":void 0,u=/opr\//i.test(e)?"Opera":void 0,s=/edg/i.test(e)?"Edge":void 0,c=/android/i.test(e)?"Android":void 0,l=/iphone/i.test(e)?"iPhone":void 0,f=/ipad/i.test(e)?"iPad":void 0,p=/ipod/i.test(e)?"iPod":void 0,b=/mac/i.test(e)?"Mac":void 0,d=/webOS|BlackBerry|IEMobile|Opera Mini/i.test(e)?"RestMobile":void 0;return{browser:r||o||u||s||t||n||a||"Rest",device:c||l||f||p||d||b||"Desktop"}},es=(e=!1)=>{let t=["iPhone","iPad","iPod"].includes(He().device);if(!e)return t;let{userAgent:n,maxTouchPoints:o}=window.navigator;return!!(t||/macintosh/i.test(n)&&o>0)},rs=()=>{let{userAgent:e}=window.navigator,r=e.match(/Version\/(\d+(\.\d+)?)/i);if(!r)return null;let t=r[1],n=parseFloat(t);return isNaN(n)?null:n},ts=()=>["Mac","iPhone","iPad","iPod"].includes(He().device),ns=()=>{var e,r;return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test((e=navigator.appVersion)!=null?e:navigator.userAgent)||((r=navigator==null?void 0:navigator.userAgentData)==null?void 0:r.mobile)};var os=(e,{start:r=0,factor:t=2,max:n=1/0,min:o=r,random:a=0}={})=>{let u=r;return u*=xt(t,e),u*=1+(Math.random()*a*2-a),u=Math.round(u),u=Math.min(u,n),u=Math.max(u,o),u};var Je={};Ga(Je,{clear:()=>cs,get:()=>as,has:()=>us,isPersistent:()=>is,remove:()=>ls,set:()=>ss});var O,G,Xe=`vk-videoplayer-dummy-key-${Math.random()}`,Y=()=>{if(G!==void 0)return G;try{localStorage.setItem(Xe,"test"),localStorage.removeItem(Xe),G=0}catch(e){if(e instanceof DOMException||e instanceof TypeError)try{sessionStorage.getItem(Xe),G=1}catch(r){if(r instanceof DOMException||r instanceof TypeError)G=2;else throw r}else throw e}return G===2&&(O=new Map),G},is=()=>Y()===0,as=e=>{var t,n;let r=Y();switch(r){case 0:return(t=localStorage.getItem(e))!=null?t:void 0;case 1:return(n=sessionStorage.getItem(e))!=null?n:void 0;case 2:return O==null?void 0:O.get(e);default:L(r)}},ss=(e,r)=>{let t=Y();switch(t){case 0:try{localStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 1:try{sessionStorage.setItem(e,r)}catch(n){if(n instanceof DOMException)console.error(n);else throw n}break;case 2:return void(O==null?void 0:O.set(e,r));default:L(t)}},us=e=>{var t;let r=Y();switch(r){case 0:return e in localStorage;case 1:return e in sessionStorage;case 2:return(t=O==null?void 0:O.has(e))!=null?t:!1;default:return L(r),!1}},ls=e=>{let r=Y();switch(r){case 0:return localStorage.removeItem(e);case 1:return sessionStorage.removeItem(e);case 2:return void(O==null?void 0:O.delete(e));default:L(r)}},cs=()=>{let e=Y();switch(e){case 0:return localStorage.clear();case 1:return sessionStorage.clear();case 2:return O==null?void 0:O.clear();default:L(e)}};var fs=()=>{let e,r;try{e=window.self!==window.top}catch(n){n instanceof DOMException&&n.name==="SecurityError"?e=!0:(e=!1,console.error(n))}try{window.location.ancestorOrigins&&(r=window.location.ancestorOrigins[window.location.ancestorOrigins.length-1])}catch(n){console.error(n)}try{!r&&document.referrer&&(r=document.referrer)}catch(n){console.error(n)}let t=r?new URL(r).hostname:void 0;return{isEmbed:e,host:t}};var Ze=(f=>(f.INVARIANT="Invariant quality",f.Q_144P="144p",f.Q_240P="240p",f.Q_360P="360p",f.Q_480P="480p",f.Q_720P="720p",f.Q_1080P="1080p",f.Q_1440P="1440p",f.Q_2160P="2160p",f.Q_4320P="4320p",f))(Ze||{});var w={"144p":{width:256,height:144},"240p":{width:428,height:240},"360p":{width:640,height:360},"480p":{width:856,height:480},"720p":{width:1280,height:720},"1080p":{width:1920,height:1080},"1440p":{width:2560,height:1440},"2160p":{width:3840,height:2160},"4320p":{width:7680,height:4320}},ps=(e,r)=>w[e].height>w[r].height,vs=(e,r)=>w[e].height>=w[r].height,er=(e,r)=>w[e].height<w[r].height,bs=(e,r)=>w[e].height<=w[r].height,ds=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:er(r,t)?1:-1)[0],qt=Object.keys(w).sort((e,r)=>er(e,r)?-1:1),Ts=(e,r=.02)=>[...qt].find(n=>w[n].height*(1+r)>=e),ms=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return qt.find(o=>{let a=w[o];return a.width>=n&&a.height>=t})},ys=e=>w[e].height,rr=e=>e==="Invariant quality",hs=e=>e.every(r=>!rr(r));function Is(e){if(rr(e))throw new Error("Expected exact quality")}var gs=(e,r)=>{let t={};for(let n of Object.keys(r)){let o=r[n],a=e[n];Array.isArray(o)&&Array.isArray(a)?t[n]=a:typeof o=="object"&&typeof a=="object"?t[n]=gs(a,o):t[n]=n in e?a:o}return t};var uv=e=>{let r="";return e>=3600&&(r+=Math.floor(e/3600)+"h",e=e%3600),e>=60&&(r+=Math.floor(e/60)+"m",e=e%60),e>0&&(r+=Math.floor(e)+"s"),r};function tr(e,r=0,t){let n,o,a,u,s,c,l=0,f=!1,p=!1,b=!0,d=!r&&r!==0&&typeof window.requestAnimationFrame=="function";t&&(f=!!t.leading,p="maxWait"in t,a=t!=null&&t.maxWait?Math.max(+(t==null?void 0:t.maxWait)||0,r):a,b="trailing"in t?!!t.trailing:b);function m(T){let q=n,F=o;return n=o=void 0,l=T,u=e.apply(F,q),u}function y(T,q){return d?(s&&window.cancelAnimationFrame(s),window.requestAnimationFrame(T)):setTimeout(T,q)}function g(T){if(d){window.cancelAnimationFrame(T);return}clearTimeout(T)}function h(T){return l=T,s=y(pe,r),f?m(T):u}function I(T){let q=T-c,F=T-l,ht=r-q;return p?Math.min(ht,a-F):ht}function mt(T){let q=T-c,F=T-l;return c===void 0||q>=r||q<0||p&&F>=a}function pe(){let T=Date.now();if(mt(T))return yt(T);s=y(pe,I(T))}function yt(T){return s=void 0,b&&n?m(T):(n=o=void 0,u)}function La(){s!==void 0&&g(s),l=0,n=c=o=s=void 0}function Ca(){return s===void 0?u:yt(Date.now())}function Na(){return s!==void 0}function ve(...T){let q=Date.now(),F=mt(q);if(n=T,o=this,c=q,F){if(s===void 0)return h(c);if(p)return s=y(pe,r),m(c)}return s===void 0&&(s=y(pe,r)),u}return ve.cancel=La,ve.flush=Ca,ve.pending=Na,ve}var nr=(e,r=0,t)=>tr(e,r,de(z(z({},{leading:!0,trailing:!0}),t),{maxWait:r}));var me=(e,r)=>{if(e===null||typeof e!="object")return e;let t=Array.isArray(e)?[]:{};for(let n in e){if(typeof r=="function"){let o=r(e[n],n,e,t);if(o!==void 0){t[n]=o;continue}}typeof e[n]=="object"?t[n]=me(e[n],r):t[n]=e[n]}return t};var Os=e=>me(e);var xs=300,Es=(e,r=xs)=>new v(t=>{let{width:n,height:o}=e.getBoundingClientRect();if(t.next({width:n,height:o}),!window.ResizeObserver)return;let a=new ResizeObserver(nr(u=>{let s=u[0];if(!s)return;let c,l;s.contentBoxSize&&s.contentBoxSize[0]?(l=s.contentBoxSize[0].blockSize,c=s.contentBoxSize[0].inlineSize):s.contentRect&&(c=s.contentRect.width,l=s.contentRect.height),K(c)&&K(l)&&t.next({width:c,height:l})},r));return a.observe(e),()=>a.disconnect()});var ye=class extends k{constructor(t){super();this.value=t}next(t){super.next(this.value=t)}error(t){super.error(this.value=t)}getValue(){return this.value}_subscribe(t){let n=super._subscribe(t);return t.next(this.value),n}};function Rt(e){return new v(r=>{let t={},n=Object.keys(e).length,o=a=>u=>{a in t||n--,t[a]=u,n===0&&r.next(t)};return Object.entries(e).reduce((a,[u,s])=>a.add(s.subscribe(o(u))),new E)})}function Pt(...e){return new v(r=>e.reduce((t,n)=>t.add(n.subscribe(r)),new E))}var ws=e=>new v(r=>{let t=window.setTimeout(()=>{try{r.next()}catch(n){if(r.error)r.error(n);else throw n}},e);return()=>window.clearTimeout(t)});var Ss=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var qs=e=>new v(r=>{e.forEach(t=>r.next(t))});var Rs=(e,r)=>new v(t=>{let n=o=>t.next(o);return e.addEventListener(r,n),()=>e.removeEventListener(r,n)});function At(e){return r=>new v(t=>r.subscribe(new or(t,e)))}var or=class{constructor(r,t){this.destination=r;this.size=t;this.lastValues=[]}next(r){this.lastValues.length===this.size&&this.lastValues.shift(),this.lastValues.push(r),this.destination.next(this.lastValues)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var Ps={leading:!1,trailing:!0};function _t(e,r=Ps){return t=>new v(n=>t.subscribe(new ir(n,e,r)))}var ir=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,K(this.timeout)?window.clearTimeout(this.timeout):this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{if(this.config.trailing)try{this.destination.next(this.lastValue)}catch(t){if(this.destination.error)this.destination.error(t);else throw t}this.timeout=void 0},this.time)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var As={leading:!0,trailing:!1};function Lt(e,r=As){return t=>new v(n=>t.subscribe(new ar(n,e,r)))}var ar=class{constructor(r,t,n){this.destination=r;this.time=t;this.config=n}next(r){this.lastValue=r,Ye(this.timeout)&&(this.config.leading&&this.destination.next(r),this.timeout=window.setTimeout(()=>{this.config.trailing&&this.destination.next(this.lastValue),this.timeout=void 0},this.time))}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Ct(e){return r=>new v(t=>r.subscribe(new sr(t,e)))}var sr=class{constructor(r,t){this.destination=r;this.predicate=t}next(r){let t;try{t=this.predicate(r)}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function jt(e=(r,t)=>r===t){return r=>new v(t=>r.subscribe(new ur(t,e)))}var Nt={},ur=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=Nt}next(r){let t;try{t=this.lastValue===Nt||!this.predicate(this.lastValue,r),this.lastValue=r}catch(n){throw this.error(n),n}t&&this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function he(e){return r=>new v(t=>r.subscribe(new lr(t,e)))}var lr=class{constructor(r,t){this.destination=r;this.mapper=t}next(r){let t;try{t=this.mapper(r)}catch(n){throw this.error(n),n}this.destination.next(t)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Mt(e){return he(()=>e)}function kt(){return e=>new v(r=>{let t=!1,n=!1,o=e.subscribe(a=>{t||(t=!0,r.next(a)),n&&o.unsubscribe()},a=>{var u;t=!0,(u=r.error)==null||u.call(r,a),n&&o.unsubscribe()});return n=!0,t&&o.unsubscribe(),o})}function Dt(){return e=>new v(r=>e.subscribe(new cr(r)))}var cr=class{constructor(r){this.destination=r;this.hasLast=!1}next(r){let t=this.last;if(this.last=r,!this.hasLast){this.hasLast=!0;return}this.destination.next([t,r])}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};function Vt(e){return r=>new v(t=>r.subscribe(new fr(t,e)))}var fr=class{constructor(r,t){this.destination=r;this.effect=t}next(r){try{this.effect(r)}catch(t){throw this.error(t),t}this.destination.next(r)}error(r){var t,n;(n=(t=this.destination).error)==null||n.call(t,r)}};var _s=(s=>(s.NETWORK="network",s.VIDEO_PIPELINE="video_pipeline",s.EXTERNAL_API="external_api",s.PARSER="parser",s.DOM="dom",s.WTF="wtf",s.FATAL="fatal",s))(_s||{});var Ie=class{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(r,t,n){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push({callback:t,options:n})}removeEventListener(r,t){if(!(r in this.listeners))return;let n=this.listeners[r];for(let o=0,a=n.length;o<a;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return;let n=this.listeners[r.type].slice();for(let o=0,a=n.length;o<a;o++){let u=n[o];try{u.callback.call(this,r)}catch(s){Promise.resolve().then(()=>{throw s})}u.options&&u.options.once&&this.removeEventListener(r.type,u.callback)}return!r.defaultPrevented}},H=class extends Ie{constructor(){super(),this.listeners||Ie.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(r){r.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,r)),super.dispatchEvent(r)}},te=class{constructor(){Object.defineProperty(this,"signal",{value:new H,writable:!0,configurable:!0})}abort(r){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=r;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(te.prototype[Symbol.toStringTag]="AbortController",H.prototype[Symbol.toStringTag]="AbortSignal");function ge(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof e.Request=="function"&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}function pr(e){typeof e=="function"&&(e={fetch:e});let{fetch:r,Request:t=r.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=e;if(!ge({fetch:r,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:r,Request:a};let a=t;(a&&!a.prototype.hasOwnProperty("signal")||o)&&(a=function(l,f){let p;f&&f.signal&&(p=f.signal,delete f.signal);let b=new t(l,f);return p&&Object.defineProperty(b,"signal",{writable:!1,enumerable:!1,configurable:!0,value:p}),b},a.prototype=t.prototype);let u=r;return{fetch:(c,l)=>{let f=a&&a.prototype.isPrototypeOf(c)?c.signal:l?l.signal:void 0;if(f){let p;try{p=new DOMException("Aborted","AbortError")}catch(d){p=new Error("Aborted"),p.name="AbortError"}if(f.aborted)return Promise.reject(p);let b=new Promise((d,m)=>{f.addEventListener("abort",()=>m(p),{once:!0})});return l&&l.signal&&delete l.signal,Promise.race([b,u(c,l)])}return u(c,l)},Request:a}}var ne=ge({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ft=ne?pr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Ut=ne?Ft.fetch:window.fetch,id=ne?Ft.Request:window.Request,ad=ne?te:window.AbortController,sd=ne?H:window.AbortSignal;var _a=Ba(Aa(),1);var Ep=(p=>(p.Armenian="58",p.Azerbaijani="57",p.Belarusian="114",p.English="3",p.Kazakh="97",p.Portuguese="73",p.Russian="0",p.Spanish="4",p.Ukrainian="1",p.Uzbek="65",p.Vietnamese="75",p))(Ep||{}),wp="vk.com",ZT=(e,r,t)=>Te(void 0,null,function*(){let n=new URL(`https://${wp}/js/lang-pack.js`);n.searchParams.set("format","json"),n.searchParams.set("name",r),e!==void 0&&n.searchParams.set("lang",e);let a=yield(yield Ut(n.toString())).json();return Sp(a,t)}),Sp=(e,r)=>(0,_a.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),qp(n)])),qp=e=>Array.isArray(e)?e[0]:e;var Rp=(t=>(t.RU="ru",t.EN="en",t))(Rp||{});export{wt as CurrentClientBrowser,St as CurrentClientDevice,_s as ErrorCategory,Rp as InterfaceLanguage,Ke as Logger,v as Observable,k as Subject,E as Subscription,$a as VERSION,Ep as VKNumericLanguage,ye as ValueSubject,Ze as VideoQuality,Za as abortable,Xa as addScript,hs as areQualitiesExact,Ha as assertEmptyArray,L as assertNever,za as assertNonNullable,Ya as assertNotEmptyArray,Ka as assertNullable,Is as assertQualityIsExact,At as buffer,Wa as checkNever,Os as cloneDeep,me as cloneDeepWith,Rt as combine,_t as debounce,tr as debounceFn,fs as detectEmbed,gs as fillWithDefault,Ct as filter,jt as filterChanged,Rs as fromEvent,He as getCurrentBrowser,os as getExponentialDelay,ds as getHighestQuality,rs as getIOSVersion,Ss as interval,ps as isHigher,vs as isHigherOrEqual,es as isIOS,rr as isInvariantQuality,er as isLower,bs as isLowerOrEqual,ts as isMacLike,ns as isMobile,K as isNonNullable,Ye as isNullable,ZT as loadVKLangPack,he as map,Mt as mapTo,Pt as merge,U as noop,Ja as now,qs as observableFrom,Es as observeElementSize,kt as once,Dt as pairwise,Je as safeStorage,Vt as tap,Lt as throttle,nr as throttleFn,uv as timeCodeToString,ws as timeout,Ts as videoHeightToQuality,ys as videoQualityToHeight,ms as videoSizeToQuality};