@vkontakte/videoplayer-shared 1.0.36 → 1.0.37-dev.0bef53b3.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 +4 -4
  2. package/es2015.esm.js +4 -4
  3. package/es2018.cjs.js +4 -4
  4. package/es2018.esm.js +4 -4
  5. package/esnext.cjs.js +4 -4
  6. package/esnext.esm.js +4 -4
  7. package/evergreen.esm.js +4 -4
  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 +31 -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
3
- * Tue, 18 Jun 2024 13:17:03 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-36/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.37-dev.0bef53b3.0
3
+ * Wed, 10 Jul 2024 00:39:25 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-37/doc/
5
5
  */
6
- "use strict";const On="1.0.36";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 ys=Object.create;var te=Object.defineProperty,hs=Object.defineProperties,Is=Object.getOwnPropertyDescriptor,gs=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,xs=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty,Es=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))Es.call(r,t)&&Nt(e,t,r[t]);return e},he=(e,r)=>hs(e,gs(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 Os(r))!jt.call(e,o)&&o!==t&&te(e,o,{get:()=>r[o],enumerable:!(n=Is(r,o))||n.enumerable});return e};var ws=(e,r,t)=>(t=e!=null?ys(xs(e)):{},Dt(r||!e||!e.__esModule?te(t,"default",{value:e,enumerable:!0}):t,e)),Ss=e=>Dt(te({},"__esModule",{value:!0}),e);var Ie=(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((fd,En)=>{"use strict";En.exports=function(e){try{return!!e()}catch(r){return!0}}});var le=i((pd,wn)=>{"use strict";var ks=_();wn.exports=!ks(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var N=i((vd,Rn)=>{"use strict";var Sn=le(),qn=Function.prototype,Sr=qn.call,Ds=Sn&&qn.bind.bind(Sr,Sr);Rn.exports=Sn?Ds:function(e){return function(){return Sr.apply(e,arguments)}}});var _e=i((bd,An)=>{"use strict";var Pn=N(),Vs=Pn({}.toString),Fs=Pn("".slice);An.exports=function(e){return Fs(Vs(e),8,-1)}});var Ln=i((dd,_n)=>{"use strict";var Us=N(),Gs=_(),Qs=_e(),qr=Object,Bs=Us("".split);_n.exports=Gs(function(){return!qr("z").propertyIsEnumerable(0)})?function(e){return Qs(e)=="String"?Bs(e,""):qr(e)}:qr});var Le=i((Td,Cn)=>{"use strict";Cn.exports=function(e){return e==null}});var Rr=i((md,Nn)=>{"use strict";var $s=Le(),Ws=TypeError;Nn.exports=function(e){if($s(e))throw Ws("Can't call method on "+e);return e}});var X=i((yd,jn)=>{"use strict";var zs=Ln(),Ks=Rr();jn.exports=function(e){return zs(Ks(e))}});var kn=i((hd,Mn)=>{"use strict";Mn.exports=function(){}});var B=i((Id,Dn)=>{"use strict";Dn.exports={}});var S=i((Vn,Fn)=>{"use strict";var Ce=function(e){return e&&e.Math==Math&&e};Fn.exports=Ce(typeof globalThis=="object"&&globalThis)||Ce(typeof window=="object"&&window)||Ce(typeof self=="object"&&self)||Ce(typeof global=="object"&&global)||function(){return this}()||Vn||Function("return this")()});var Ar=i((gd,Un)=>{"use strict";var Pr=typeof document=="object"&&document.all,Ys=typeof Pr=="undefined"&&Pr!==void 0;Un.exports={all:Pr,IS_HTMLDDA:Ys}});var x=i((Od,Qn)=>{"use strict";var Gn=Ar(),Hs=Gn.all;Qn.exports=Gn.IS_HTMLDDA?function(e){return typeof e=="function"||e===Hs}:function(e){return typeof e=="function"}});var Wn=i((xd,$n)=>{"use strict";var Xs=S(),Js=x(),Bn=Xs.WeakMap;$n.exports=Js(Bn)&&/native code/.test(String(Bn))});var $=i((Ed,Yn)=>{"use strict";var zn=x(),Kn=Ar(),Zs=Kn.all;Yn.exports=Kn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:zn(e)||e===Zs}:function(e){return typeof e=="object"?e!==null:zn(e)}});var j=i((wd,Hn)=>{"use strict";var eu=_();Hn.exports=!eu(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Lr=i((Sd,Jn)=>{"use strict";var ru=S(),Xn=$(),_r=ru.document,tu=Xn(_r)&&Xn(_r.createElement);Jn.exports=function(e){return tu?_r.createElement(e):{}}});var Cr=i((qd,Zn)=>{"use strict";var nu=j(),ou=_(),iu=Lr();Zn.exports=!nu&&!ou(function(){return Object.defineProperty(iu("div"),"a",{get:function(){return 7}}).a!=7})});var Nr=i((Rd,eo)=>{"use strict";var au=j(),su=_();eo.exports=au&&su(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var V=i((Pd,ro)=>{"use strict";var uu=$(),lu=String,cu=TypeError;ro.exports=function(e){if(uu(e))return e;throw cu(lu(e)+" is not an object")}});var F=i((Ad,to)=>{"use strict";var fu=le(),Ne=Function.prototype.call;to.exports=fu?Ne.bind(Ne):function(){return Ne.apply(Ne,arguments)}});var je=i((_d,no)=>{"use strict";no.exports={}});var kr=i((Ld,io)=>{"use strict";var jr=je(),Mr=S(),pu=x(),oo=function(e){return pu(e)?e:void 0};io.exports=function(e,r){return arguments.length<2?oo(jr[e])||oo(Mr[e]):jr[e]&&jr[e][r]||Mr[e]&&Mr[e][r]}});var Dr=i((Cd,ao)=>{"use strict";var vu=N();ao.exports=vu({}.isPrototypeOf)});var uo=i((Nd,so)=>{"use strict";so.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var To=i((jd,bo)=>{"use strict";var vo=S(),Vr=uo(),lo=vo.process,co=vo.Deno,fo=lo&&lo.versions||co&&co.version,po=fo&&fo.v8,R,Me;po&&(R=po.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])));bo.exports=Me});var Fr=i((Md,yo)=>{"use strict";var mo=To(),bu=_(),du=S(),Tu=du.String;yo.exports=!!Object.getOwnPropertySymbols&&!bu(function(){var e=Symbol();return!Tu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&mo&&mo<41})});var Ur=i((kd,ho)=>{"use strict";var mu=Fr();ho.exports=mu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Gr=i((Dd,Io)=>{"use strict";var yu=kr(),hu=x(),Iu=Dr(),gu=Ur(),Ou=Object;Io.exports=gu?function(e){return typeof e=="symbol"}:function(e){var r=yu("Symbol");return hu(r)&&Iu(r.prototype,Ou(e))}});var ke=i((Vd,go)=>{"use strict";var xu=String;go.exports=function(e){try{return xu(e)}catch(r){return"Object"}}});var ce=i((Fd,Oo)=>{"use strict";var Eu=x(),wu=ke(),Su=TypeError;Oo.exports=function(e){if(Eu(e))return e;throw Su(wu(e)+" is not a function")}});var De=i((Ud,xo)=>{"use strict";var qu=ce(),Ru=Le();xo.exports=function(e,r){var t=e[r];return Ru(t)?void 0:qu(t)}});var wo=i((Gd,Eo)=>{"use strict";var Qr=F(),Br=x(),$r=$(),Pu=TypeError;Eo.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 Pu("Can't convert object to primitive value")}});var fe=i((Qd,So)=>{"use strict";So.exports=!0});var Po=i((Bd,Ro)=>{"use strict";var qo=S(),Au=Object.defineProperty;Ro.exports=function(e,r){try{Au(qo,e,{value:r,configurable:!0,writable:!0})}catch(t){qo[e]=r}return r}});var Wr=i(($d,_o)=>{"use strict";var _u=S(),Lu=Po(),Ao="__core-js_shared__",Cu=_u[Ao]||Lu(Ao,{});_o.exports=Cu});var zr=i((Wd,Co)=>{"use strict";var Nu=fe(),Lo=Wr();(Co.exports=function(e,r){return Lo[e]||(Lo[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:Nu?"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((zd,No)=>{"use strict";var ju=Rr(),Mu=Object;No.exports=function(e){return Mu(ju(e))}});var M=i((Kd,jo)=>{"use strict";var ku=N(),Du=Kr(),Vu=ku({}.hasOwnProperty);jo.exports=Object.hasOwn||function(r,t){return Vu(Du(r),t)}});var Yr=i((Yd,Mo)=>{"use strict";var Fu=N(),Uu=0,Gu=Math.random(),Qu=Fu(1 .toString);Mo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qu(++Uu+Gu,36)}});var L=i((Hd,Do)=>{"use strict";var Bu=S(),$u=zr(),ko=M(),Wu=Yr(),zu=Fr(),Ku=Ur(),J=Bu.Symbol,Hr=$u("wks"),Yu=Ku?J.for||J:J&&J.withoutSetter||Wu;Do.exports=function(e){return ko(Hr,e)||(Hr[e]=zu&&ko(J,e)?J[e]:Yu("Symbol."+e)),Hr[e]}});var Go=i((Xd,Uo)=>{"use strict";var Hu=F(),Vo=$(),Fo=Gr(),Xu=De(),Ju=wo(),Zu=L(),el=TypeError,rl=Zu("toPrimitive");Uo.exports=function(e,r){if(!Vo(e)||Fo(e))return e;var t=Xu(e,rl),n;if(t){if(r===void 0&&(r="default"),n=Hu(t,e,r),!Vo(n)||Fo(n))return n;throw el("Can't convert object to primitive value")}return r===void 0&&(r="number"),Ju(e,r)}});var Ve=i((Jd,Qo)=>{"use strict";var tl=Go(),nl=Gr();Qo.exports=function(e){var r=tl(e,"string");return nl(r)?r:r+""}});var Z=i($o=>{"use strict";var ol=j(),il=Cr(),al=Nr(),Fe=V(),Bo=Ve(),sl=TypeError,Xr=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,Jr="enumerable",Zr="configurable",et="writable";$o.f=ol?al?function(r,t,n){if(Fe(r),t=Bo(t),Fe(n),typeof r=="function"&&t==="prototype"&&"value"in n&&et in n&&!n[et]){var o=ul(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=Bo(t),Fe(n),il)try{return Xr(r,t,n)}catch(o){}if("get"in n||"set"in n)throw sl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var pe=i((eT,Wo)=>{"use strict";Wo.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var W=i((rT,zo)=>{"use strict";var ll=j(),cl=Z(),fl=pe();zo.exports=ll?function(e,r,t){return cl.f(e,r,fl(1,t))}:function(e,r,t){return e[r]=t,e}});var Ue=i((tT,Yo)=>{"use strict";var pl=zr(),vl=Yr(),Ko=pl("keys");Yo.exports=function(e){return Ko[e]||(Ko[e]=vl(e))}});var Ge=i((nT,Ho)=>{"use strict";Ho.exports={}});var ei=i((oT,Zo)=>{"use strict";var bl=Wn(),Jo=S(),dl=$(),Tl=W(),rt=M(),tt=Wr(),ml=Ue(),yl=Ge(),Xo="Object already initialized",nt=Jo.TypeError,hl=Jo.WeakMap,Qe,ve,Be,Il=function(e){return Be(e)?ve(e):Qe(e,{})},gl=function(e){return function(r){var t;if(!dl(r)||(t=ve(r)).type!==e)throw nt("Incompatible receiver, "+e+" required");return t}};bl||tt.state?(P=tt.state||(tt.state=new hl),P.get=P.get,P.has=P.has,P.set=P.set,Qe=function(e,r){if(P.has(e))throw nt(Xo);return r.facade=e,P.set(e,r),r},ve=function(e){return P.get(e)||{}},Be=function(e){return P.has(e)}):(z=ml("state"),yl[z]=!0,Qe=function(e,r){if(rt(e,z))throw nt(Xo);return r.facade=e,Tl(e,z,r),r},ve=function(e){return rt(e,z)?e[z]:{}},Be=function(e){return rt(e,z)});var P,z;Zo.exports={set:Qe,get:ve,has:Be,enforce:Il,getterFor:gl}});var ii=i((iT,oi)=>{"use strict";var Ol=le(),ni=Function.prototype,ri=ni.apply,ti=ni.call;oi.exports=typeof Reflect=="object"&&Reflect.apply||(Ol?ti.bind(ri):function(){return ti.apply(ri,arguments)})});var ot=i((aT,ai)=>{"use strict";var xl=_e(),El=N();ai.exports=function(e){if(xl(e)==="Function")return El(e)}});var ci=i(li=>{"use strict";var si={}.propertyIsEnumerable,ui=Object.getOwnPropertyDescriptor,wl=ui&&!si.call({1:2},1);li.f=wl?function(r){var t=ui(this,r);return!!t&&t.enumerable}:si});var vi=i(pi=>{"use strict";var Sl=j(),ql=F(),Rl=ci(),Pl=pe(),Al=X(),_l=Ve(),Ll=M(),Cl=Cr(),fi=Object.getOwnPropertyDescriptor;pi.f=Sl?fi:function(r,t){if(r=Al(r),t=_l(t),Cl)try{return fi(r,t)}catch(n){}if(Ll(r,t))return Pl(!ql(Rl.f,r,t),r[t])}});var di=i((lT,bi)=>{"use strict";var Nl=_(),jl=x(),Ml=/#|\.prototype\./,be=function(e,r){var t=Dl[kl(e)];return t==Fl?!0:t==Vl?!1:jl(r)?Nl(r):!!r},kl=be.normalize=function(e){return String(e).replace(Ml,".").toLowerCase()},Dl=be.data={},Vl=be.NATIVE="N",Fl=be.POLYFILL="P";bi.exports=be});var it=i((cT,mi)=>{"use strict";var Ti=ot(),Ul=ce(),Gl=le(),Ql=Ti(Ti.bind);mi.exports=function(e,r){return Ul(e),r===void 0?e:Gl?Ql(e,r):function(){return e.apply(r,arguments)}}});var at=i((fT,hi)=>{"use strict";var $e=S(),Bl=ii(),$l=ot(),Wl=x(),zl=vi().f,Kl=di(),ee=je(),Yl=it(),re=W(),yi=M(),Hl=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 Bl(e,this,arguments)};return r.prototype=e.prototype,r};hi.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=Kl(n?b:t+(o?".":"#")+b,e.forced),f=!l&&u&&yi(u,b),m=s[b],f&&(e.dontCallGetSet?(h=zl(u,b),y=h&&h.value):y=u[b]),d=f&&y?y:r[b],!(f&&typeof m==typeof d)&&(e.bind&&f?g=Yl(d,$e):e.wrap&&f?g=Hl(d):a&&Wl(d)?g=$l(d):g=d,(e.sham||d&&d.sham||m&&m.sham)&&re(g,"sham",!0),re(s,b,g),a&&(p=t+"Prototype",yi(ee,p)||re(ee,p,{}),re(ee[p],b,d),e.real&&c&&(l||!c[b])&&re(c,b,d)))}});var Oi=i((pT,gi)=>{"use strict";var st=j(),Xl=M(),Ii=Function.prototype,Jl=st&&Object.getOwnPropertyDescriptor,ut=Xl(Ii,"name"),Zl=ut&&function(){}.name==="something",ec=ut&&(!st||st&&Jl(Ii,"name").configurable);gi.exports={EXISTS:ut,PROPER:Zl,CONFIGURABLE:ec}});var Ei=i((vT,xi)=>{"use strict";var rc=Math.ceil,tc=Math.floor;xi.exports=Math.trunc||function(r){var t=+r;return(t>0?tc:rc)(t)}});var lt=i((bT,wi)=>{"use strict";var nc=Ei();wi.exports=function(e){var r=+e;return r!==r||r===0?0:nc(r)}});var qi=i((dT,Si)=>{"use strict";var oc=lt(),ic=Math.max,ac=Math.min;Si.exports=function(e,r){var t=oc(e);return t<0?ic(t+r,0):ac(t,r)}});var Pi=i((TT,Ri)=>{"use strict";var sc=lt(),uc=Math.min;Ri.exports=function(e){return e>0?uc(sc(e),9007199254740991):0}});var ct=i((mT,Ai)=>{"use strict";var lc=Pi();Ai.exports=function(e){return lc(e.length)}});var Ci=i((yT,Li)=>{"use strict";var cc=X(),fc=qi(),pc=ct(),_i=function(e){return function(r,t,n){var o=cc(r),a=pc(o),u=fc(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}};Li.exports={includes:_i(!0),indexOf:_i(!1)}});var Mi=i((hT,ji)=>{"use strict";var vc=N(),ft=M(),bc=X(),dc=Ci().indexOf,Tc=Ge(),Ni=vc([].push);ji.exports=function(e,r){var t=bc(e),n=0,o=[],a;for(a in t)!ft(Tc,a)&&ft(t,a)&&Ni(o,a);for(;r.length>n;)ft(t,a=r[n++])&&(~dc(o,a)||Ni(o,a));return o}});var pt=i((IT,ki)=>{"use strict";ki.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vi=i((gT,Di)=>{"use strict";var mc=Mi(),yc=pt();Di.exports=Object.keys||function(r){return mc(r,yc)}});var Ui=i(Fi=>{"use strict";var hc=j(),Ic=Nr(),gc=Z(),Oc=V(),xc=X(),Ec=Vi();Fi.f=hc&&!Ic?Object.defineProperties:function(r,t){Oc(r);for(var n=xc(t),o=Ec(t),a=o.length,u=0,s;a>u;)gc.f(r,s=o[u++],n[s]);return r}});var Qi=i((xT,Gi)=>{"use strict";var wc=kr();Gi.exports=wc("document","documentElement")});var Tt=i((ET,Hi)=>{"use strict";var Sc=V(),qc=Ui(),Bi=pt(),Rc=Ge(),Pc=Qi(),Ac=Lr(),_c=Ue(),$i=">",Wi="<",bt="prototype",dt="script",Ki=_c("IE_PROTO"),vt=function(){},Yi=function(e){return Wi+dt+$i+e+Wi+"/"+dt+$i},zi=function(e){e.write(Yi("")),e.close();var r=e.parentWindow.Object;return e=null,r},Lc=function(){var e=Ac("iframe"),r="java"+dt+":",t;return e.style.display="none",Pc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(Yi("document.F=Object")),t.close(),t.F},We,ze=function(){try{We=new ActiveXObject("htmlfile")}catch(r){}ze=typeof document!="undefined"?document.domain&&We?zi(We):Lc():zi(We);for(var e=Bi.length;e--;)delete ze[bt][Bi[e]];return ze()};Rc[Ki]=!0;Hi.exports=Object.create||function(r,t){var n;return r!==null?(vt[bt]=Sc(r),n=new vt,vt[bt]=null,n[Ki]=r):n=ze(),t===void 0?n:qc.f(n,t)}});var Ji=i((wT,Xi)=>{"use strict";var Cc=_();Xi.exports=!Cc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var yt=i((ST,ea)=>{"use strict";var Nc=M(),jc=x(),Mc=Kr(),kc=Ue(),Dc=Ji(),Zi=kc("IE_PROTO"),mt=Object,Vc=mt.prototype;ea.exports=Dc?mt.getPrototypeOf:function(e){var r=Mc(e);if(Nc(r,Zi))return r[Zi];var t=r.constructor;return jc(t)&&r instanceof t?t.prototype:r instanceof mt?Vc:null}});var ht=i((qT,ra)=>{"use strict";var Fc=W();ra.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Fc(e,r,t),e}});var xt=i((RT,oa)=>{"use strict";var Uc=_(),Gc=x(),Qc=$(),Bc=Tt(),ta=yt(),$c=ht(),Wc=L(),zc=fe(),Ot=Wc("iterator"),na=!1,k,It,gt;[].keys&&(gt=[].keys(),"next"in gt?(It=ta(ta(gt)),It!==Object.prototype&&(k=It)):na=!0);var Kc=!Qc(k)||Uc(function(){var e={};return k[Ot].call(e)!==e});Kc?k={}:zc&&(k=Bc(k));Gc(k[Ot])||$c(k,Ot,function(){return this});oa.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:na}});var Ke=i((PT,aa)=>{"use strict";var Yc=L(),Hc=Yc("toStringTag"),ia={};ia[Hc]="z";aa.exports=String(ia)==="[object z]"});var He=i((AT,sa)=>{"use strict";var Xc=Ke(),Jc=x(),Ye=_e(),Zc=L(),ef=Zc("toStringTag"),rf=Object,tf=Ye(function(){return arguments}())=="Arguments",nf=function(e,r){try{return e[r]}catch(t){}};sa.exports=Xc?Ye:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=nf(r=rf(e),ef))=="string"?t:tf?Ye(r):(n=Ye(r))=="Object"&&Jc(r.callee)?"Arguments":n}});var la=i((_T,ua)=>{"use strict";var of=Ke(),af=He();ua.exports=of?{}.toString:function(){return"[object "+af(this)+"]"}});var Et=i((LT,fa)=>{"use strict";var sf=Ke(),uf=Z().f,lf=W(),cf=M(),ff=la(),pf=L(),ca=pf("toStringTag");fa.exports=function(e,r,t,n){if(e){var o=t?e:e.prototype;cf(o,ca)||uf(o,ca,{configurable:!0,value:r}),n&&!sf&&lf(o,"toString",ff)}}});var va=i((CT,pa)=>{"use strict";var vf=xt().IteratorPrototype,bf=Tt(),df=pe(),Tf=Et(),mf=B(),yf=function(){return this};pa.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=bf(vf,{next:df(+!n,t)}),Tf(e,o,!1,!0),mf[o]=yf,e}});var da=i((NT,ba)=>{"use strict";var hf=N(),If=ce();ba.exports=function(e,r,t){try{return hf(If(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var ma=i((jT,Ta)=>{"use strict";var gf=x(),Of=String,xf=TypeError;Ta.exports=function(e){if(typeof e=="object"||gf(e))return e;throw xf("Can't set "+Of(e)+" as a prototype")}});var ha=i((MT,ya)=>{"use strict";var Ef=da(),wf=V(),Sf=ma();ya.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Ef(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,a){return wf(o),Sf(a),e?t(o,a):o.__proto__=a,o}}():void 0)});var Aa=i((kT,Pa)=>{"use strict";var qf=at(),Rf=F(),Xe=fe(),qa=Oi(),Pf=x(),Af=va(),Ia=yt(),ga=ha(),_f=Et(),Lf=W(),wt=ht(),Cf=L(),Oa=B(),Ra=xt(),Nf=qa.PROPER,jf=qa.CONFIGURABLE,xa=Ra.IteratorPrototype,Je=Ra.BUGGY_SAFARI_ITERATORS,de=Cf("iterator"),Ea="keys",Te="values",wa="entries",Sa=function(){return this};Pa.exports=function(e,r,t,n,o,a,u){Af(t,r,n);var s=function(h){if(h===o&&b)return b;if(!Je&&h in f)return f[h];switch(h){case Ea:return function(){return new t(this,h)};case Te:return function(){return new t(this,h)};case wa:return function(){return new t(this,h)}}return function(){return new t(this)}},c=r+" Iterator",l=!1,f=e.prototype,p=f[de]||f["@@iterator"]||o&&f[o],b=!Je&&p||s(o),d=r=="Array"&&f.entries||p,m,y,g;if(d&&(m=Ia(d.call(new e)),m!==Object.prototype&&m.next&&(!Xe&&Ia(m)!==xa&&(ga?ga(m,xa):Pf(m[de])||wt(m,de,Sa)),_f(m,c,!0,!0),Xe&&(Oa[c]=Sa))),Nf&&o==Te&&p&&p.name!==Te&&(!Xe&&jf?Lf(f,"name",Te):(l=!0,b=function(){return Rf(p,this)})),o)if(y={values:s(Te),keys:a?b:s(Ea),entries:s(wa)},u)for(g in y)(Je||l||!(g in f))&&wt(f,g,y[g]);else qf({target:r,proto:!0,forced:Je||l},y);return(!Xe||u)&&f[de]!==b&&wt(f,de,b,{name:o}),Oa[r]=b,y}});var La=i((DT,_a)=>{"use strict";_a.exports=function(e,r){return{value:e,done:r}}});var qt=i((VT,ka)=>{"use strict";var Mf=X(),St=kn(),Ca=B(),ja=ei(),kf=Z().f,Df=Aa(),Ze=La(),Vf=fe(),Ff=j(),Ma="Array Iterator",Uf=ja.set,Gf=ja.getterFor(Ma);ka.exports=Df(Array,"Array",function(e,r){Uf(this,{type:Ma,target:Mf(e),index:0,kind:r})},function(){var e=Gf(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 Na=Ca.Arguments=Ca.Array;St("keys");St("values");St("entries");if(!Vf&&Ff&&Na.name!=="values")try{kf(Na,"name",{value:"values"})}catch(e){}});var Va=i((FT,Da)=>{"use strict";var Qf=L(),Bf=B(),$f=Qf("iterator"),Wf=Array.prototype;Da.exports=function(e){return e!==void 0&&(Bf.Array===e||Wf[$f]===e)}});var Rt=i((UT,Ua)=>{"use strict";var zf=He(),Fa=De(),Kf=Le(),Yf=B(),Hf=L(),Xf=Hf("iterator");Ua.exports=function(e){if(!Kf(e))return Fa(e,Xf)||Fa(e,"@@iterator")||Yf[zf(e)]}});var Qa=i((GT,Ga)=>{"use strict";var Jf=F(),Zf=ce(),ep=V(),rp=ke(),tp=Rt(),np=TypeError;Ga.exports=function(e,r){var t=arguments.length<2?tp(e):r;if(Zf(t))return ep(Jf(t,e));throw np(rp(e)+" is not iterable")}});var Wa=i((QT,$a)=>{"use strict";var op=F(),Ba=V(),ip=De();$a.exports=function(e,r,t){var n,o;Ba(e);try{if(n=ip(e,"return"),!n){if(r==="throw")throw t;return t}n=op(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return Ba(n),t}});var Xa=i((BT,Ha)=>{"use strict";var ap=it(),sp=F(),up=V(),lp=ke(),cp=Va(),fp=ct(),za=Dr(),pp=Qa(),vp=Rt(),Ka=Wa(),bp=TypeError,er=function(e,r){this.stopped=e,this.result=r},Ya=er.prototype;Ha.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=ap(r,n),l,f,p,b,d,m,y,g=function(I){return l&&Ka(l,"normal",I),new er(!0,I)},h=function(I){return o?(up(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=vp(e),!f)throw bp(lp(e)+" is not iterable");if(cp(f)){for(p=0,b=fp(e);b>p;p++)if(d=h(e[p]),d&&za(Ya,d))return d;return new er(!1)}l=pp(e,f)}for(m=a?e.next:l.next;!(y=sp(m,l)).done;){try{d=h(y.value)}catch(I){Ka(l,"throw",I)}if(typeof d=="object"&&d&&za(Ya,d))return d}return new er(!1)}});var Za=i(($T,Ja)=>{"use strict";var dp=Ve(),Tp=Z(),mp=pe();Ja.exports=function(e,r,t){var n=dp(r);n in e?Tp.f(e,n,mp(0,t)):e[n]=t}});var es=i(()=>{"use strict";var yp=at(),hp=Xa(),Ip=Za();yp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return hp(r,function(n,o){Ip(t,n,o)},{AS_ENTRIES:!0}),t}})});var ts=i((KT,rs)=>{"use strict";qt();es();var gp=je();rs.exports=gp.Object.fromEntries});var os=i((YT,ns)=>{"use strict";ns.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 ss=i(()=>{"use strict";qt();var Op=os(),xp=S(),Ep=He(),wp=W(),is=B(),Sp=L(),as=Sp("toStringTag");for(rr in Op)Pt=xp[rr],tr=Pt&&Pt.prototype,tr&&Ep(tr)!==as&&wp(tr,as,rr),is[rr]=is.Array;var Pt,tr,rr});var ls=i((JT,us)=>{"use strict";var qp=ts();ss();us.exports=qp});var fs=i((ZT,cs)=>{"use strict";var Rp=ls();cs.exports=Rp});var Cp={};kt(Cp,{CurrentClientBrowser:()=>nr,CurrentClientDevice:()=>or,ErrorCategory:()=>gn,InterfaceLanguage:()=>bs,Logger:()=>ge,Observable:()=>v,Subject:()=>C,Subscription:()=>E,VERSION:()=>Vt,VKNumericLanguage:()=>vs,ValueSubject:()=>ie,VideoQuality:()=>Ee,abortable:()=>Kt,addScript:()=>$t,areQualitiesExact:()=>fn,assertEmptyArray:()=>Bt,assertNever:()=>A,assertNonNullable:()=>Ut,assertNotEmptyArray:()=>Qt,assertNullable:()=>Gt,assertQualityIsExact:()=>pn,buffer:()=>lr,checkNever:()=>Ft,cloneDeep:()=>bn,cloneDeepWith:()=>oe,combine:()=>ar,debounce:()=>fr,debounceFn:()=>qe,detectEmbed:()=>rn,fillWithDefault:()=>vn,filter:()=>dr,filterChanged:()=>mr,fromEvent:()=>hn,getCurrentBrowser:()=>ne,getExponentialDelay:()=>en,getHighestQuality:()=>an,getIOSVersion:()=>Ht,interval:()=>mn,isAndroid:()=>Xt,isHigher:()=>tn,isHigherOrEqual:()=>nn,isIOS:()=>Yt,isInvariantQuality:()=>Se,isLower:()=>we,isLowerOrEqual:()=>on,isMacLike:()=>Jt,isMobile:()=>Zt,isNonNullable:()=>G,isNullable:()=>Oe,loadVKLangPack:()=>Ap,map:()=>ae,mapTo:()=>hr,merge:()=>sr,noop:()=>D,now:()=>zt,observableFrom:()=>yn,observeElementSize:()=>dn,once:()=>Ir,pairwise:()=>Or,safeStorage:()=>xe,tap:()=>Er,throttle:()=>vr,throttleFn:()=>Re,timeCodeToString:()=>Cs,timeout:()=>Tn,videoHeightToQuality:()=>un,videoQualityToHeight:()=>cn,videoSizeToQuality:()=>ln});module.exports=Ss(Cp);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 ge=class{constructor(){this.log$=new C;this.logs=[];this.log=r=>{let t=he(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 Oe(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)=>Ie(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||{}),ne=()=>{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(ne().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=()=>ne().device==="Android",Jt=()=>["Mac","iPhone","iPad","iPod"].includes(ne().device),Zt=()=>{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 en=(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:()=>Ls,get:()=>Rs,has:()=>As,isPersistent:()=>qs,remove:()=>_s,set:()=>Ps});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},qs=()=>Y()===0,Rs=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)}},Ps=(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)}},As=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}},_s=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)}},Ls=()=>{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 rn=()=>{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}},tn=(e,r)=>w[e].height>w[r].height,nn=(e,r)=>w[e].height>=w[r].height,we=(e,r)=>w[e].height<w[r].height,on=(e,r)=>w[e].height<=w[r].height,an=e=>e.sort((r,t)=>r===t?0:r==="Invariant quality"?1:t==="Invariant quality"?-1:we(r,t)?1:-1)[0],sn=Object.keys(w).sort((e,r)=>we(e,r)?-1:1),un=(e,r=.02)=>[...sn].find(n=>w[n].height*(1+r)>=e),ln=({width:e,height:r})=>{let t=Math.min(e,r),n=Math.max(e,r);return sn.find(o=>{let a=w[o];return a.width>=n&&a.height>=t})},cn=e=>w[e].height,Se=e=>e==="Invariant quality",fn=e=>e.every(r=>!Se(r));function pn(e){if(Se(e))throw new Error("Expected exact quality")}var vn=(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]=vn(a,o):t[n]=n in e?a:o}return t};var Cs=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(me,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 me(){let T=Date.now();if(At(T))return _t(T);s=y(me,I(T))}function _t(T){return s=void 0,b&&n?m(T):(n=o=void 0,u)}function ds(){s!==void 0&&g(s),l=0,n=c=o=s=void 0}function Ts(){return s===void 0?u:_t(Date.now())}function ms(){return s!==void 0}function ye(...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(me,r),m(c)}return s===void 0&&(s=y(me,r)),u}return ye.cancel=ds,ye.flush=Ts,ye.pending=ms,ye}var Re=(e,r=0,t)=>qe(e,r,he(K(K({},{leading:!0,trailing:!0}),t),{maxWait:r}));var oe=(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]=oe(e[n],r):t[n]=e[n]}return t};var bn=e=>oe(e);var Ns=300,dn=(e,r=Ns)=>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 ie=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 Tn=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 mn=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var yn=e=>new v(r=>{e.forEach(t=>r.next(t))});var hn=(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 js={leading:!1,trailing:!0};function fr(e,r=js){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 Ms={leading:!0,trailing:!1};function vr(e,r=Ms){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,Oe(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 In={},Tr=class{constructor(r,t){this.destination=r;this.predicate=t;this.lastValue=In}next(r){let t;try{t=this.lastValue===In||!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 ae(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 ae(()=>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 gn=(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))(gn||{});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)}},se=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&&(se.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 ue=Ae({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),On=ue?wr({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,xn=ue?On.fetch:window.fetch,sd=ue?On.Request:window.Request,ud=ue?se:window.AbortController,ld=ue?H:window.AbortSignal;var ps=ws(fs(),1);var vs=(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))(vs||{}),Pp="vk.com",Ap=(e,r,t)=>Ie(void 0,null,function*(){let n=new URL(`https://${Pp}/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 xn(n.toString())).json();return _p(a,t)}),_p=(e,r)=>(0,ps.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Lp(n)])),Lp=e=>Array.isArray(e)?e[0]:e;var bs=(t=>(t.RU="ru",t.EN="en",t))(bs||{});
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer-shared v1.0.36
3
- * Tue, 18 Jun 2024 13:17:03 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-36/doc/
2
+ * @vkontakte/videoplayer-shared v1.0.37-dev.0bef53b3.0
3
+ * Wed, 10 Jul 2024 00:39:25 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-0-37/doc/
5
5
  */
6
- const cl="1.0.36";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((ud,Gt)=>{"use strict";Gt.exports=function(e){try{return!!e()}catch(r){return!0}}});var oe=i((ld,Qt)=>{"use strict";var Cs=A();Qt.exports=!Cs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var C=i((cd,Wt)=>{"use strict";var Bt=oe(),$t=Function.prototype,vr=$t.call,Ns=Bt&&$t.bind.bind(vr,vr);Wt.exports=Bt?Ns:function(e){return function(){return vr.apply(e,arguments)}}});var xe=i((fd,Kt)=>{"use strict";var zt=C(),js=zt({}.toString),Ms=zt("".slice);Kt.exports=function(e){return Ms(js(e),8,-1)}});var Ht=i((pd,Yt)=>{"use strict";var ks=C(),Ds=A(),Vs=xe(),br=Object,Fs=ks("".split);Yt.exports=Ds(function(){return!br("z").propertyIsEnumerable(0)})?function(e){return Vs(e)=="String"?Fs(e,""):br(e)}:br});var Ee=i((vd,Xt)=>{"use strict";Xt.exports=function(e){return e==null}});var dr=i((bd,Jt)=>{"use strict";var Us=Ee(),Gs=TypeError;Jt.exports=function(e){if(Us(e))throw Gs("Can't call method on "+e);return e}});var X=i((dd,Zt)=>{"use strict";var Qs=Ht(),Bs=dr();Zt.exports=function(e){return Qs(Bs(e))}});var rn=i((Td,en)=>{"use strict";en.exports=function(){}});var Q=i((md,tn)=>{"use strict";tn.exports={}});var S=i((nn,on)=>{"use strict";var we=function(e){return e&&e.Math==Math&&e};on.exports=we(typeof globalThis=="object"&&globalThis)||we(typeof window=="object"&&window)||we(typeof self=="object"&&self)||we(typeof global=="object"&&global)||function(){return this}()||nn||Function("return this")()});var mr=i((yd,an)=>{"use strict";var Tr=typeof document=="object"&&document.all,$s=typeof Tr=="undefined"&&Tr!==void 0;an.exports={all:Tr,IS_HTMLDDA:$s}});var x=i((hd,un)=>{"use strict";var sn=mr(),Ws=sn.all;un.exports=sn.IS_HTMLDDA?function(e){return typeof e=="function"||e===Ws}:function(e){return typeof e=="function"}});var fn=i((Id,cn)=>{"use strict";var zs=S(),Ks=x(),ln=zs.WeakMap;cn.exports=Ks(ln)&&/native code/.test(String(ln))});var B=i((gd,bn)=>{"use strict";var pn=x(),vn=mr(),Ys=vn.all;bn.exports=vn.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:pn(e)||e===Ys}:function(e){return typeof e=="object"?e!==null:pn(e)}});var N=i((Od,dn)=>{"use strict";var Hs=A();dn.exports=!Hs(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var hr=i((xd,mn)=>{"use strict";var Xs=S(),Tn=B(),yr=Xs.document,Js=Tn(yr)&&Tn(yr.createElement);mn.exports=function(e){return Js?yr.createElement(e):{}}});var Ir=i((Ed,yn)=>{"use strict";var Zs=N(),eu=A(),ru=hr();yn.exports=!Zs&&!eu(function(){return Object.defineProperty(ru("div"),"a",{get:function(){return 7}}).a!=7})});var gr=i((wd,hn)=>{"use strict";var tu=N(),nu=A();hn.exports=tu&&nu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var D=i((Sd,In)=>{"use strict";var ou=B(),iu=String,au=TypeError;In.exports=function(e){if(ou(e))return e;throw au(iu(e)+" is not an object")}});var V=i((qd,gn)=>{"use strict";var su=oe(),Se=Function.prototype.call;gn.exports=su?Se.bind(Se):function(){return Se.apply(Se,arguments)}});var qe=i((Rd,On)=>{"use strict";On.exports={}});var Er=i((Pd,En)=>{"use strict";var Or=qe(),xr=S(),uu=x(),xn=function(e){return uu(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((Ad,wn)=>{"use strict";var lu=C();wn.exports=lu({}.isPrototypeOf)});var qn=i((_d,Sn)=>{"use strict";Sn.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var Nn=i((Ld,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,Re;_n&&(R=_n.split("."),Re=R[0]>0&&R[0]<4?1:+(R[0]+R[1]));!Re&&Sr&&(R=Sr.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=Sr.match(/Chrome\/(\d+)/),R&&(Re=+R[1])));Cn.exports=Re});var qr=i((Cd,Mn)=>{"use strict";var jn=Nn(),cu=A(),fu=S(),pu=fu.String;Mn.exports=!!Object.getOwnPropertySymbols&&!cu(function(){var e=Symbol();return!pu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jn&&jn<41})});var Rr=i((Nd,kn)=>{"use strict";var vu=qr();kn.exports=vu&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Pr=i((jd,Dn)=>{"use strict";var bu=Er(),du=x(),Tu=wr(),mu=Rr(),yu=Object;Dn.exports=mu?function(e){return typeof e=="symbol"}:function(e){var r=bu("Symbol");return du(r)&&Tu(r.prototype,yu(e))}});var Pe=i((Md,Vn)=>{"use strict";var hu=String;Vn.exports=function(e){try{return hu(e)}catch(r){return"Object"}}});var ie=i((kd,Fn)=>{"use strict";var Iu=x(),gu=Pe(),Ou=TypeError;Fn.exports=function(e){if(Iu(e))return e;throw Ou(gu(e)+" is not a function")}});var Ae=i((Dd,Un)=>{"use strict";var xu=ie(),Eu=Ee();Un.exports=function(e,r){var t=e[r];return Eu(t)?void 0:xu(t)}});var Qn=i((Vd,Gn)=>{"use strict";var Ar=V(),_r=x(),Lr=B(),wu=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 wu("Can't convert object to primitive value")}});var ae=i((Fd,Bn)=>{"use strict";Bn.exports=!0});var zn=i((Ud,Wn)=>{"use strict";var $n=S(),Su=Object.defineProperty;Wn.exports=function(e,r){try{Su($n,e,{value:r,configurable:!0,writable:!0})}catch(t){$n[e]=r}return r}});var Cr=i((Gd,Yn)=>{"use strict";var qu=S(),Ru=zn(),Kn="__core-js_shared__",Pu=qu[Kn]||Ru(Kn,{});Yn.exports=Pu});var Nr=i((Qd,Xn)=>{"use strict";var Au=ae(),Hn=Cr();(Xn.exports=function(e,r){return Hn[e]||(Hn[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.31.0",mode:Au?"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((Bd,Jn)=>{"use strict";var _u=dr(),Lu=Object;Jn.exports=function(e){return Lu(_u(e))}});var j=i(($d,Zn)=>{"use strict";var Cu=C(),Nu=jr(),ju=Cu({}.hasOwnProperty);Zn.exports=Object.hasOwn||function(r,t){return ju(Nu(r),t)}});var Mr=i((Wd,eo)=>{"use strict";var Mu=C(),ku=0,Du=Math.random(),Vu=Mu(1 .toString);eo.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Vu(++ku+Du,36)}});var _=i((zd,to)=>{"use strict";var Fu=S(),Uu=Nr(),ro=j(),Gu=Mr(),Qu=qr(),Bu=Rr(),J=Fu.Symbol,kr=Uu("wks"),$u=Bu?J.for||J:J&&J.withoutSetter||Gu;to.exports=function(e){return ro(kr,e)||(kr[e]=Qu&&ro(J,e)?J[e]:$u("Symbol."+e)),kr[e]}});var ao=i((Kd,io)=>{"use strict";var Wu=V(),no=B(),oo=Pr(),zu=Ae(),Ku=Qn(),Yu=_(),Hu=TypeError,Xu=Yu("toPrimitive");io.exports=function(e,r){if(!no(e)||oo(e))return e;var t=zu(e,Xu),n;if(t){if(r===void 0&&(r="default"),n=Wu(t,e,r),!no(n)||oo(n))return n;throw Hu("Can't convert object to primitive value")}return r===void 0&&(r="number"),Ku(e,r)}});var _e=i((Yd,so)=>{"use strict";var Ju=ao(),Zu=Pr();so.exports=function(e){var r=Ju(e,"string");return Zu(r)?r:r+""}});var Z=i(lo=>{"use strict";var el=N(),rl=Ir(),tl=gr(),Le=D(),uo=_e(),nl=TypeError,Dr=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,Vr="enumerable",Fr="configurable",Ur="writable";lo.f=el?tl?function(r,t,n){if(Le(r),t=uo(t),Le(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Ur in n&&!n[Ur]){var o=ol(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(Le(r),t=uo(t),Le(n),rl)try{return Dr(r,t,n)}catch(o){}if("get"in n||"set"in n)throw nl("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var se=i((Xd,co)=>{"use strict";co.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var $=i((Jd,fo)=>{"use strict";var il=N(),al=Z(),sl=se();fo.exports=il?function(e,r,t){return al.f(e,r,sl(1,t))}:function(e,r,t){return e[r]=t,e}});var Ce=i((Zd,vo)=>{"use strict";var ul=Nr(),ll=Mr(),po=ul("keys");vo.exports=function(e){return po[e]||(po[e]=ll(e))}});var Ne=i((eT,bo)=>{"use strict";bo.exports={}});var ho=i((rT,yo)=>{"use strict";var cl=fn(),mo=S(),fl=B(),pl=$(),Gr=j(),Qr=Cr(),vl=Ce(),bl=Ne(),To="Object already initialized",Br=mo.TypeError,dl=mo.WeakMap,je,ue,Me,Tl=function(e){return Me(e)?ue(e):je(e,{})},ml=function(e){return function(r){var t;if(!fl(r)||(t=ue(r)).type!==e)throw Br("Incompatible receiver, "+e+" required");return t}};cl||Qr.state?(P=Qr.state||(Qr.state=new dl),P.get=P.get,P.has=P.has,P.set=P.set,je=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)||{}},Me=function(e){return P.has(e)}):(W=vl("state"),bl[W]=!0,je=function(e,r){if(Gr(e,W))throw Br(To);return r.facade=e,pl(e,W,r),r},ue=function(e){return Gr(e,W)?e[W]:{}},Me=function(e){return Gr(e,W)});var P,W;yo.exports={set:je,get:ue,has:Me,enforce:Tl,getterFor:ml}});var Eo=i((tT,xo)=>{"use strict";var yl=oe(),Oo=Function.prototype,Io=Oo.apply,go=Oo.call;xo.exports=typeof Reflect=="object"&&Reflect.apply||(yl?go.bind(Io):function(){return go.apply(Io,arguments)})});var $r=i((nT,wo)=>{"use strict";var hl=xe(),Il=C();wo.exports=function(e){if(hl(e)==="Function")return Il(e)}});var Po=i(Ro=>{"use strict";var So={}.propertyIsEnumerable,qo=Object.getOwnPropertyDescriptor,gl=qo&&!So.call({1:2},1);Ro.f=gl?function(r){var t=qo(this,r);return!!t&&t.enumerable}:So});var Lo=i(_o=>{"use strict";var Ol=N(),xl=V(),El=Po(),wl=se(),Sl=X(),ql=_e(),Rl=j(),Pl=Ir(),Ao=Object.getOwnPropertyDescriptor;_o.f=Ol?Ao:function(r,t){if(r=Sl(r),t=ql(t),Pl)try{return Ao(r,t)}catch(n){}if(Rl(r,t))return wl(!xl(El.f,r,t),r[t])}});var No=i((aT,Co)=>{"use strict";var Al=A(),_l=x(),Ll=/#|\.prototype\./,le=function(e,r){var t=Nl[Cl(e)];return t==Ml?!0:t==jl?!1:_l(r)?Al(r):!!r},Cl=le.normalize=function(e){return String(e).replace(Ll,".").toLowerCase()},Nl=le.data={},jl=le.NATIVE="N",Ml=le.POLYFILL="P";Co.exports=le});var Wr=i((sT,Mo)=>{"use strict";var jo=$r(),kl=ie(),Dl=oe(),Vl=jo(jo.bind);Mo.exports=function(e,r){return kl(e),r===void 0?e:Dl?Vl(e,r):function(){return e.apply(r,arguments)}}});var zr=i((uT,Do)=>{"use strict";var ke=S(),Fl=Eo(),Ul=$r(),Gl=x(),Ql=Lo().f,Bl=No(),ee=qe(),$l=Wr(),re=$(),ko=j(),Wl=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 Fl(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?ke:o?ke[t]:(ke[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=Bl(n?b:t+(o?".":"#")+b,e.forced),f=!l&&u&&ko(u,b),m=s[b],f&&(e.dontCallGetSet?(h=Ql(u,b),y=h&&h.value):y=u[b]),d=f&&y?y:r[b],!(f&&typeof m==typeof d)&&(e.bind&&f?g=$l(d,ke):e.wrap&&f?g=Wl(d):a&&Gl(d)?g=Ul(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((lT,Fo)=>{"use strict";var Kr=N(),zl=j(),Vo=Function.prototype,Kl=Kr&&Object.getOwnPropertyDescriptor,Yr=zl(Vo,"name"),Yl=Yr&&function(){}.name==="something",Hl=Yr&&(!Kr||Kr&&Kl(Vo,"name").configurable);Fo.exports={EXISTS:Yr,PROPER:Yl,CONFIGURABLE:Hl}});var Qo=i((cT,Go)=>{"use strict";var Xl=Math.ceil,Jl=Math.floor;Go.exports=Math.trunc||function(r){var t=+r;return(t>0?Jl:Xl)(t)}});var Hr=i((fT,Bo)=>{"use strict";var Zl=Qo();Bo.exports=function(e){var r=+e;return r!==r||r===0?0:Zl(r)}});var Wo=i((pT,$o)=>{"use strict";var ec=Hr(),rc=Math.max,tc=Math.min;$o.exports=function(e,r){var t=ec(e);return t<0?rc(t+r,0):tc(t,r)}});var Ko=i((vT,zo)=>{"use strict";var nc=Hr(),oc=Math.min;zo.exports=function(e){return e>0?oc(nc(e),9007199254740991):0}});var Xr=i((bT,Yo)=>{"use strict";var ic=Ko();Yo.exports=function(e){return ic(e.length)}});var Jo=i((dT,Xo)=>{"use strict";var ac=X(),sc=Wo(),uc=Xr(),Ho=function(e){return function(r,t,n){var o=ac(r),a=uc(o),u=sc(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((TT,ei)=>{"use strict";var lc=C(),Jr=j(),cc=X(),fc=Jo().indexOf,pc=Ne(),Zo=lc([].push);ei.exports=function(e,r){var t=cc(e),n=0,o=[],a;for(a in t)!Jr(pc,a)&&Jr(t,a)&&Zo(o,a);for(;r.length>n;)Jr(t,a=r[n++])&&(~fc(o,a)||Zo(o,a));return o}});var Zr=i((mT,ti)=>{"use strict";ti.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var oi=i((yT,ni)=>{"use strict";var vc=ri(),bc=Zr();ni.exports=Object.keys||function(r){return vc(r,bc)}});var ai=i(ii=>{"use strict";var dc=N(),Tc=gr(),mc=Z(),yc=D(),hc=X(),Ic=oi();ii.f=dc&&!Tc?Object.defineProperties:function(r,t){yc(r);for(var n=hc(t),o=Ic(t),a=o.length,u=0,s;a>u;)mc.f(r,s=o[u++],n[s]);return r}});var ui=i((IT,si)=>{"use strict";var gc=Er();si.exports=gc("document","documentElement")});var nt=i((gT,di)=>{"use strict";var Oc=D(),xc=ai(),li=Zr(),Ec=Ne(),wc=ui(),Sc=hr(),qc=Ce(),ci=">",fi="<",rt="prototype",tt="script",vi=qc("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},Rc=function(){var e=Sc("iframe"),r="java"+tt+":",t;return e.style.display="none",wc.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(bi("document.F=Object")),t.close(),t.F},De,Ve=function(){try{De=new ActiveXObject("htmlfile")}catch(r){}Ve=typeof document!="undefined"?document.domain&&De?pi(De):Rc():pi(De);for(var e=li.length;e--;)delete Ve[rt][li[e]];return Ve()};Ec[vi]=!0;di.exports=Object.create||function(r,t){var n;return r!==null?(et[rt]=Oc(r),n=new et,et[rt]=null,n[vi]=r):n=Ve(),t===void 0?n:xc.f(n,t)}});var mi=i((OT,Ti)=>{"use strict";var Pc=A();Ti.exports=!Pc(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var it=i((xT,hi)=>{"use strict";var Ac=j(),_c=x(),Lc=jr(),Cc=Ce(),Nc=mi(),yi=Cc("IE_PROTO"),ot=Object,jc=ot.prototype;hi.exports=Nc?ot.getPrototypeOf:function(e){var r=Lc(e);if(Ac(r,yi))return r[yi];var t=r.constructor;return _c(t)&&r instanceof t?t.prototype:r instanceof ot?jc:null}});var at=i((ET,Ii)=>{"use strict";var Mc=$();Ii.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:Mc(e,r,t),e}});var ct=i((wT,xi)=>{"use strict";var kc=A(),Dc=x(),Vc=B(),Fc=nt(),gi=it(),Uc=at(),Gc=_(),Qc=ae(),lt=Gc("iterator"),Oi=!1,M,st,ut;[].keys&&(ut=[].keys(),"next"in ut?(st=gi(gi(ut)),st!==Object.prototype&&(M=st)):Oi=!0);var Bc=!Vc(M)||kc(function(){var e={};return M[lt].call(e)!==e});Bc?M={}:Qc&&(M=Fc(M));Dc(M[lt])||Uc(M,lt,function(){return this});xi.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:Oi}});var Fe=i((ST,wi)=>{"use strict";var $c=_(),Wc=$c("toStringTag"),Ei={};Ei[Wc]="z";wi.exports=String(Ei)==="[object z]"});var Ge=i((qT,Si)=>{"use strict";var zc=Fe(),Kc=x(),Ue=xe(),Yc=_(),Hc=Yc("toStringTag"),Xc=Object,Jc=Ue(function(){return arguments}())=="Arguments",Zc=function(e,r){try{return e[r]}catch(t){}};Si.exports=zc?Ue:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=Zc(r=Xc(e),Hc))=="string"?t:Jc?Ue(r):(n=Ue(r))=="Object"&&Kc(r.callee)?"Arguments":n}});var Ri=i((RT,qi)=>{"use strict";var ef=Fe(),rf=Ge();qi.exports=ef?{}.toString:function(){return"[object "+rf(this)+"]"}});var ft=i((PT,Ai)=>{"use strict";var tf=Fe(),nf=Z().f,of=$(),af=j(),sf=Ri(),uf=_(),Pi=uf("toStringTag");Ai.exports=function(e,r,t,n){if(e){var o=t?e:e.prototype;af(o,Pi)||nf(o,Pi,{configurable:!0,value:r}),n&&!tf&&of(o,"toString",sf)}}});var Li=i((AT,_i)=>{"use strict";var lf=ct().IteratorPrototype,cf=nt(),ff=se(),pf=ft(),vf=Q(),bf=function(){return this};_i.exports=function(e,r,t,n){var o=r+" Iterator";return e.prototype=cf(lf,{next:ff(+!n,t)}),pf(e,o,!1,!0),vf[o]=bf,e}});var Ni=i((_T,Ci)=>{"use strict";var df=C(),Tf=ie();Ci.exports=function(e,r,t){try{return df(Tf(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Mi=i((LT,ji)=>{"use strict";var mf=x(),yf=String,hf=TypeError;ji.exports=function(e){if(typeof e=="object"||mf(e))return e;throw hf("Can't set "+yf(e)+" as a prototype")}});var Di=i((CT,ki)=>{"use strict";var If=Ni(),gf=D(),Of=Mi();ki.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=If(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(o,a){return gf(o),Of(a),e?t(o,a):o.__proto__=a,o}}():void 0)});var Yi=i((NT,Ki)=>{"use strict";var xf=zr(),Ef=V(),Qe=ae(),Wi=Uo(),wf=x(),Sf=Li(),Vi=it(),Fi=Di(),qf=ft(),Rf=$(),pt=at(),Pf=_(),Ui=Q(),zi=ct(),Af=Wi.PROPER,_f=Wi.CONFIGURABLE,Gi=zi.IteratorPrototype,Be=zi.BUGGY_SAFARI_ITERATORS,ce=Pf("iterator"),Qi="keys",fe="values",Bi="entries",$i=function(){return this};Ki.exports=function(e,r,t,n,o,a,u){Sf(t,r,n);var s=function(h){if(h===o&&b)return b;if(!Be&&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=!Be&&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&&(!Qe&&Vi(m)!==Gi&&(Fi?Fi(m,Gi):wf(m[ce])||pt(m,ce,$i)),qf(m,c,!0,!0),Qe&&(Ui[c]=$i))),Af&&o==fe&&p&&p.name!==fe&&(!Qe&&_f?Rf(f,"name",fe):(l=!0,b=function(){return Ef(p,this)})),o)if(y={values:s(fe),keys:a?b:s(Qi),entries:s(Bi)},u)for(g in y)(Be||l||!(g in f))&&pt(f,g,y[g]);else xf({target:r,proto:!0,forced:Be||l},y);return(!Qe||u)&&f[ce]!==b&&pt(f,ce,b,{name:o}),Ui[r]=b,y}});var Xi=i((jT,Hi)=>{"use strict";Hi.exports=function(e,r){return{value:e,done:r}}});var bt=i((MT,ta)=>{"use strict";var Lf=X(),vt=rn(),Ji=Q(),ea=ho(),Cf=Z().f,Nf=Yi(),$e=Xi(),jf=ae(),Mf=N(),ra="Array Iterator",kf=ea.set,Df=ea.getterFor(ra);ta.exports=Nf(Array,"Array",function(e,r){kf(this,{type:ra,target:Lf(e),index:0,kind:r})},function(){var e=Df(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,$e(void 0,!0)):t=="keys"?$e(n,!1):t=="values"?$e(r[n],!1):$e([n,r[n]],!1)},"values");var Zi=Ji.Arguments=Ji.Array;vt("keys");vt("values");vt("entries");if(!jf&&Mf&&Zi.name!=="values")try{Cf(Zi,"name",{value:"values"})}catch(e){}});var oa=i((kT,na)=>{"use strict";var Vf=_(),Ff=Q(),Uf=Vf("iterator"),Gf=Array.prototype;na.exports=function(e){return e!==void 0&&(Ff.Array===e||Gf[Uf]===e)}});var dt=i((DT,aa)=>{"use strict";var Qf=Ge(),ia=Ae(),Bf=Ee(),$f=Q(),Wf=_(),zf=Wf("iterator");aa.exports=function(e){if(!Bf(e))return ia(e,zf)||ia(e,"@@iterator")||$f[Qf(e)]}});var ua=i((VT,sa)=>{"use strict";var Kf=V(),Yf=ie(),Hf=D(),Xf=Pe(),Jf=dt(),Zf=TypeError;sa.exports=function(e,r){var t=arguments.length<2?Jf(e):r;if(Yf(t))return Hf(Kf(t,e));throw Zf(Xf(e)+" is not iterable")}});var fa=i((FT,ca)=>{"use strict";var ep=V(),la=D(),rp=Ae();ca.exports=function(e,r,t){var n,o;la(e);try{if(n=rp(e,"return"),!n){if(r==="throw")throw t;return t}n=ep(n,e)}catch(a){o=!0,n=a}if(r==="throw")throw t;if(o)throw n;return la(n),t}});var Ta=i((UT,da)=>{"use strict";var tp=Wr(),np=V(),op=D(),ip=Pe(),ap=oa(),sp=Xr(),pa=wr(),up=ua(),lp=dt(),va=fa(),cp=TypeError,We=function(e,r){this.stopped=e,this.result=r},ba=We.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=tp(r,n),l,f,p,b,d,m,y,g=function(I){return l&&va(l,"normal",I),new We(!0,I)},h=function(I){return o?(op(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=lp(e),!f)throw cp(ip(e)+" is not iterable");if(ap(f)){for(p=0,b=sp(e);b>p;p++)if(d=h(e[p]),d&&pa(ba,d))return d;return new We(!1)}l=up(e,f)}for(m=a?e.next:l.next;!(y=np(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 We(!1)}});var ya=i((GT,ma)=>{"use strict";var fp=_e(),pp=Z(),vp=se();ma.exports=function(e,r,t){var n=fp(r);n in e?pp.f(e,n,vp(0,t)):e[n]=t}});var ha=i(()=>{"use strict";var bp=zr(),dp=Ta(),Tp=ya();bp({target:"Object",stat:!0},{fromEntries:function(r){var t={};return dp(r,function(n,o){Tp(t,n,o)},{AS_ENTRIES:!0}),t}})});var ga=i(($T,Ia)=>{"use strict";bt();ha();var mp=qe();Ia.exports=mp.Object.fromEntries});var xa=i((WT,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 yp=xa(),hp=S(),Ip=Ge(),gp=$(),Ea=Q(),Op=_(),wa=Op("toStringTag");for(ze in yp)Tt=hp[ze],Ke=Tt&&Tt.prototype,Ke&&Ip(Ke)!==wa&&gp(Ke,wa,ze),Ea[ze]=Ea.Array;var Tt,Ke,ze});var Ra=i((YT,qa)=>{"use strict";var xp=ga();Sa();qa.exports=xp});var Aa=i((HT,Pa)=>{"use strict";var Ep=Ra();Pa.exports=Ep});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 Ye=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 He(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||{}),me=()=>{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(me().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=()=>me().device==="Android",ns=()=>["Mac","iPhone","iPad","iPod"].includes(me().device),os=()=>{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 is=(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:()=>fs,get:()=>ss,has:()=>ls,isPersistent:()=>as,remove:()=>cs,set:()=>us});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},as=()=>Y()===0,ss=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)}},us=(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)}},ls=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}},cs=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)}},fs=()=>{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 ps=()=>{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}},vs=(e,r)=>w[e].height>w[r].height,bs=(e,r)=>w[e].height>=w[r].height,er=(e,r)=>w[e].height<w[r].height,ds=(e,r)=>w[e].height<=w[r].height,Ts=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),ms=(e,r=.02)=>[...qt].find(n=>w[n].height*(1+r)>=e),ys=({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})},hs=e=>w[e].height,rr=e=>e==="Invariant quality",Is=e=>e.every(r=>!rr(r));function gs(e){if(rr(e))throw new Error("Expected exact quality")}var Os=(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]=Os(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 ye=(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]=ye(e[n],r):t[n]=e[n]}return t};var xs=e=>ye(e);var Es=300,ws=(e,r=Es)=>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 he=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 Ss=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 qs=e=>new v(r=>{let t=window.setInterval(()=>r.next(),e);return()=>{t&&(window.clearInterval(t),t=void 0)}});var Rs=e=>new v(r=>{e.forEach(t=>r.next(t))});var Ps=(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 As={leading:!1,trailing:!0};function _t(e,r=As){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 _s={leading:!0,trailing:!1};function Lt(e,r=_s){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,He(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 Ie(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 Ie(()=>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 Ls=(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))(Ls||{});var ge=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 ge{constructor(){super(),this.listeners||ge.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 Oe(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(!Oe({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=Oe({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,od=ne?Ft.Request:window.Request,id=ne?te:window.AbortController,ad=ne?H:window.AbortSignal;var _a=Ba(Aa(),1);var wp=(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))(wp||{}),Sp="vk.com",JT=(e,r,t)=>Te(void 0,null,function*(){let n=new URL(`https://${Sp}/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 qp(a,t)}),qp=(e,r)=>(0,_a.default)(Object.entries(e.keys).map(([t,n])=>[t.substring(`${r}_`.length),Rp(n)])),Rp=e=>Array.isArray(e)?e[0]:e;var Pp=(t=>(t.RU="ru",t.EN="en",t))(Pp||{});export{wt as CurrentClientBrowser,St as CurrentClientDevice,Ls as ErrorCategory,Pp as InterfaceLanguage,Ye as Logger,v as Observable,k as Subject,E as Subscription,$a as VERSION,wp as VKNumericLanguage,he as ValueSubject,Ze as VideoQuality,Za as abortable,Xa as addScript,Is as areQualitiesExact,Ha as assertEmptyArray,L as assertNever,za as assertNonNullable,Ya as assertNotEmptyArray,Ka as assertNullable,gs as assertQualityIsExact,At as buffer,Wa as checkNever,xs as cloneDeep,ye as cloneDeepWith,Rt as combine,_t as debounce,tr as debounceFn,ps as detectEmbed,Os as fillWithDefault,Ct as filter,jt as filterChanged,Ps as fromEvent,me as getCurrentBrowser,is as getExponentialDelay,Ts as getHighestQuality,rs as getIOSVersion,qs as interval,ts as isAndroid,vs as isHigher,bs as isHigherOrEqual,es as isIOS,rr as isInvariantQuality,er as isLower,ds as isLowerOrEqual,ns as isMacLike,os as isMobile,K as isNonNullable,He as isNullable,JT as loadVKLangPack,Ie as map,Mt as mapTo,Pt as merge,U as noop,Ja as now,Rs as observableFrom,ws as observeElementSize,kt as once,Dt as pairwise,Je as safeStorage,Vt as tap,Lt as throttle,nr as throttleFn,uv as timeCodeToString,Ss as timeout,ms as videoHeightToQuality,hs as videoQualityToHeight,ys as videoSizeToQuality};